@kitelev/exocortex-cli 15.147.3 → 15.148.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +25 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// @kitelev/exocortex-cli v15.
|
|
2
|
+
// @kitelev/exocortex-cli v15.148.0
|
|
3
3
|
// CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more
|
|
4
4
|
// License: MIT
|
|
5
5
|
|
|
@@ -30,14 +30,14 @@ Expecting one of '${r.join("', '")}'`);return this._lifeCycleHooks[e]?this._life
|
|
|
30
30
|
Expecting one of '${r.join("', '")}'`);let i=`${e}Help`;return this.on(i,s=>{let a;typeof t=="function"?a=t({error:s.error,command:s.command}):a=t,a&&s.write(`${a}
|
|
31
31
|
`)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(i=>t.is(i))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function T2(n){return n.map(e=>{if(!e.startsWith("--inspect"))return e;let t,r="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?t=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=s[1],/^\d+$/.test(s[3])?i=s[3]:r=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=s[1],r=s[3],i=s[4]),t&&i!=="0"?`${t}=${r}:${parseInt(i)+1}`:e})}o(T2,"incrementNodeInspectorPort");function Qy(){if(it.env.NO_COLOR||it.env.FORCE_COLOR==="0"||it.env.FORCE_COLOR==="false")return!1;if(it.env.FORCE_COLOR||it.env.CLICOLOR_FORCE!==void 0)return!0}o(Qy,"useColor");Yy.Command=Hy;Yy.useColor=Qy});var R2=S(Wn=>{var{Argument:x2}=qd(),{Command:Ky}=A2(),{CommanderError:SN,InvalidArgumentError:C2}=Eu(),{Help:vN}=By(),{Option:I2}=Wy();Wn.program=new Ky;Wn.createCommand=n=>new Ky(n);Wn.createOption=(n,e)=>new I2(n,e);Wn.createArgument=(n,e)=>new x2(n,e);Wn.Command=Ky;Wn.Option=I2;Wn.Argument=x2;Wn.Help=vN;Wn.CommanderError=SN;Wn.InvalidArgumentError=C2;Wn.InvalidOptionArgumentError=C2});var Tu=S(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.AssetClass=void 0;var O2;(function(n){n.AREA="ems__Area",n.TASK="ems__Task",n.PROJECT="ems__Project",n.MEETING="ems__Meeting",n.INITIATIVE="ems__Initiative",n.TASK_PROTOTYPE="ems__TaskPrototype",n.MEETING_PROTOTYPE="ems__MeetingPrototype",n.EVENT_PROTOTYPE="exo__EventPrototype",n.PROJECT_PROTOTYPE="ems__ProjectPrototype",n.EVENT="exo__Event",n.DAILY_NOTE="pn__DailyNote",n.CONCEPT="ims__Concept",n.SESSION_START_EVENT="ems__SessionStartEvent",n.SESSION_END_EVENT="ems__SessionEndEvent",n.PROTOTYPE="exo__Prototype",n.CLASS="exo__Class",n.FLEETING_NOTE="ztlk__FleetingNote",n.WORKFLOW="ems__Workflow",n.WORKFLOW_STATE="ems__WorkflowState",n.WORKFLOW_TRANSITION="ems__WorkflowTransition",n.COMMAND="exocmd__Command",n.PRECONDITION="exocmd__Precondition",n.GROUNDING="exocmd__Grounding",n.COMMAND_BINDING="exocmd__CommandBinding"})(O2||(Gd.AssetClass=O2={}))});var _c=S(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.EffortStatus=void 0;var F2;(function(n){n.DRAFT="ems__EffortStatusDraft",n.BACKLOG="ems__EffortStatusBacklog",n.ANALYSIS="ems__EffortStatusAnalysis",n.TODO="ems__EffortStatusToDo",n.DOING="ems__EffortStatusDoing",n.DONE="ems__EffortStatusDone",n.TRASHED="ems__EffortStatusTrashed"})(F2||(zd.EffortStatus=F2={}))});var Xy=S(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.EFFORT_STATUS_OPTIONS=zt.STATUS_NAME_TO_WIKILINK=zt.STATUS_NAME_TO_ENUM=zt.EFFORT_STATUS_CONFIG=void 0;zt.normalizeEffortStatus=bN;zt.isDoneStatus=wN;zt.isTrashedStatus=EN;zt.getEffortStatusLabel=TN;var ns=_c();zt.EFFORT_STATUS_CONFIG=[{name:"Draft",status:ns.EffortStatus.DRAFT,wikilink:"[[ems__EffortStatusDraft]]"},{name:"Backlog",status:ns.EffortStatus.BACKLOG,wikilink:"[[ems__EffortStatusBacklog]]"},{name:"Analysis",status:ns.EffortStatus.ANALYSIS,wikilink:"[[ems__EffortStatusAnalysis]]"},{name:"To Do",status:ns.EffortStatus.TODO,wikilink:"[[ems__EffortStatusToDo]]"},{name:"Doing",status:ns.EffortStatus.DOING,wikilink:"[[ems__EffortStatusDoing]]"},{name:"Done",status:ns.EffortStatus.DONE,wikilink:"[[ems__EffortStatusDone]]"},{name:"Trashed",status:ns.EffortStatus.TRASHED,wikilink:"[[ems__EffortStatusTrashed]]"}];zt.STATUS_NAME_TO_ENUM=Object.fromEntries(zt.EFFORT_STATUS_CONFIG.map(n=>[n.name,n.status]));zt.STATUS_NAME_TO_WIKILINK=Object.fromEntries(zt.EFFORT_STATUS_CONFIG.map(n=>[n.name,n.wikilink]));zt.EFFORT_STATUS_OPTIONS=zt.EFFORT_STATUS_CONFIG.map(n=>({value:n.wikilink,label:n.name}));function bN(n,e=ns.EffortStatus.DRAFT){if(n.startsWith("ems__")){let r=zt.EFFORT_STATUS_CONFIG.find(i=>i.status===n);return r?r.status:e}return zt.STATUS_NAME_TO_ENUM[n]??e}o(bN,"normalizeEffortStatus");function wN(n){return n===ns.EffortStatus.DONE}o(wN,"isDoneStatus");function EN(n){return n===ns.EffortStatus.TRASHED}o(EN,"isTrashedStatus");function TN(n){if(!n)return"-";let e=String(n);if(e==="")return"-";for(let r of zt.EFFORT_STATUS_CONFIG)if(r.wikilink===e||`[[${e}]]`===r.wikilink||r.status===e||r.name===e)return r.name;let t=e.toLowerCase();for(let r of zt.EFFORT_STATUS_CONFIG)if(r.name.toLowerCase()===t)return r.name;return e}o(TN,"getEffortStatusLabel")});var Sc=S(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.GroundingType=void 0;var D2;(function(n){n.SPARQL_UPDATE="sparql_update",n.PROPERTY_DELETE="property_delete",n.PROPERTY_SET="property_set",n.COMPOSITE="composite",n.SERVICE_CALL="service_call",n.CREATE_INSTANCE="create_instance"})(D2||(Hd.GroundingType=D2={}))});var Jy=S(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.CommandBindingStyleProperty=Gn.CommandBindingProperty=Gn.GroundingProperty=Gn.PreconditionProperty=Gn.CommandProperty=void 0;Gn.CommandProperty={ICON:"exocmd__Command_icon",PRECONDITION:"exocmd__Command_precondition",GROUNDING:"exocmd__Command_grounding",CONFIRM_MESSAGE:"exocmd__Command_confirmMessage",SUCCESS_MESSAGE:"exocmd__Command_successMessage",CATEGORY:"exocmd__Command_category"};Gn.PreconditionProperty={SPARQL_ASK:"exocmd__Precondition_sparqlAsk",QUERY:"exocmd__Precondition_query"};Gn.GroundingProperty={TYPE:"exocmd__Grounding_type",SPARQL_UPDATE:"exocmd__Grounding_sparqlUpdate",TARGET_PROPERTY:"exocmd__Grounding_targetProperty",TARGET_VALUE:"exocmd__Grounding_targetValue",STEPS:"exocmd__Grounding_steps"};Gn.CommandBindingProperty={COMMAND:"exocmd__CommandBinding_command",TARGET_CLASS:"exocmd__CommandBinding_targetClass",TARGET_PROTOTYPE:"exocmd__CommandBinding_targetPrototype",TARGET_ASSET:"exocmd__CommandBinding_targetAsset",POSITION:"exocmd__CommandBinding_position",ORDER:"exocmd__CommandBinding_order",PRECONDITION:"exocmd__CommandBinding_precondition",STYLE:"exocmd__CommandBinding_style",VARIANT:"exocmd__CommandBinding_variant"};Gn.CommandBindingStyleProperty={VARIANT:"exocmd__CommandBindingStyle_variant",SHOW_ICON:"exocmd__CommandBindingStyle_showIcon",LABEL_CLASS:"exocmd__CommandBindingStyle_labelClass",ARIA_LABEL:"exocmd__CommandBindingStyle_ariaLabel",TOOLTIP:"exocmd__CommandBindingStyle_tooltip",KEYBOARD_SHORTCUT:"exocmd__CommandBindingStyle_keyboardShortcut",SOURCE:"exocmd__CommandBindingStyle_source"}});var Zy=S(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.STYLE_SOURCE_VALUES=bn.LABEL_CLASS_VALUES=bn.COMMAND_VARIANT_VALUES=void 0;bn.isCommandVariant=AN;bn.isLabelClass=xN;bn.isStyleSource=CN;bn.COMMAND_VARIANT_VALUES=Object.freeze(["primary","secondary","success","warning","danger","muted"]);bn.LABEL_CLASS_VALUES=Object.freeze(["muted","bold","uppercase","compact"]);bn.STYLE_SOURCE_VALUES=Object.freeze(["vendor","user"]);function AN(n){return typeof n=="string"&&bn.COMMAND_VARIANT_VALUES.includes(n)}o(AN,"isCommandVariant");function xN(n){return typeof n=="string"&&bn.LABEL_CLASS_VALUES.includes(n)}o(xN,"isLabelClass");function CN(n){return typeof n=="string"&&bn.STYLE_SOURCE_VALUES.includes(n)}o(CN,"isStyleSource")});var N2=S(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.isCommandFrontmatter=IN;vc.isPreconditionFrontmatter=RN;vc.isGroundingFrontmatter=PN;vc.isCommandBindingFrontmatter=ON;function IN(n){return Qd(n,"exocmd__Command")}o(IN,"isCommandFrontmatter");function RN(n){return Qd(n,"exocmd__Precondition")}o(RN,"isPreconditionFrontmatter");function PN(n){return Qd(n,"exocmd__Grounding")}o(PN,"isGroundingFrontmatter");function ON(n){return Qd(n,"exocmd__CommandBinding")}o(ON,"isCommandBindingFrontmatter");function Qd(n,e){let t=n.exo__Instance_class;if(t==null)return!1;let r=Array.isArray(t)?t:[t];for(let i of r){if(typeof i!="string")continue;let s=i.match(/\[\[([^|\]]+)/);if((s?s[1]:i)===e)return!0}return!1}o(Qd,"hasInstanceClass")});var L2=S(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.hasPosition=FN;Yd.isFixed=DN;function FN(n){return typeof n.x=="number"&&typeof n.y=="number"}o(FN,"hasPosition");function DN(n){return n.fx!==null&&n.fx!==void 0&&n.fy!==null&&n.fy!==void 0}o(DN,"isFixed")});var k2=S(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.createEmptyGraphData=NN;Kd.mergeGraphData=LN;function NN(){return{nodes:[],edges:[],lastUpdated:Date.now(),version:0}}o(NN,"createEmptyGraphData");function LN(n,e){let t=new Map,r=new Set,i=[];for(let s of n.nodes)t.set(s.id,s);for(let s of e.nodes)t.set(s.id,s);for(let s of n.edges){let a=`${s.source}->${s.target}:${s.type}`;r.has(a)||(r.add(a),i.push(s))}for(let s of e.edges){let a=`${s.source}->${s.target}:${s.type}`;r.has(a)||(r.add(a),i.push(s))}return{nodes:Array.from(t.values()),edges:i,lastUpdated:Date.now(),version:Math.max(n.version??0,e.version??0)+1}}o(LN,"mergeGraphData")});var e0=S(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.createEdgeId=kN;Xd.edgesEqual=MN;function kN(n,e,t,r){let i=r?`|${r}`:"";return`${n}->${e}:${t}${i}`}o(kN,"createEdgeId");function MN(n,e){return n.source===e.source&&n.target===e.target&&n.type===e.type&&n.predicate===e.predicate}o(MN,"edgesEqual")});var t0=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.BUILT_IN_EDGE_STYLES=Vt.BUILT_IN_NODE_STYLES=Vt.DEFAULT_EDGE_STYLE=Vt.DEFAULT_NODE_STYLE=Vt.RDF_TYPE_PREDICATES=void 0;Vt.mergeNodeStyles=jN;Vt.mergeEdgeStyles=$N;Vt.extractLocalName=BN;Vt.isClassType=VN;Vt.isTypePredicate=UN;Vt.isSubClassPredicate=qN;Vt.RDF_TYPE_PREDICATES={RDF_TYPE:"http://www.w3.org/1999/02/22-rdf-syntax-ns#type",RDFS_CLASS:"http://www.w3.org/2000/01/rdf-schema#Class",OWL_CLASS:"http://www.w3.org/2002/07/owl#Class",RDFS_SUBCLASS_OF:"http://www.w3.org/2000/01/rdf-schema#subClassOf",OWL_EQUIVALENT_CLASS:"http://www.w3.org/2002/07/owl#equivalentClass",RDFS_LABEL:"http://www.w3.org/2000/01/rdf-schema#label",RDFS_COMMENT:"http://www.w3.org/2000/01/rdf-schema#comment"};Vt.DEFAULT_NODE_STYLE={color:"#6366f1",borderColor:"#4f46e5",borderWidth:2,size:30,shape:"circle",icon:"",opacity:1,shadow:!1,animation:"none"};Vt.DEFAULT_EDGE_STYLE={color:"#9ca3af",width:1,lineStyle:"solid",arrow:"standard",curvature:0,opacity:.6,showLabel:!1,labelPosition:.5};Vt.BUILT_IN_NODE_STYLES={"http://www.w3.org/2000/01/rdf-schema#Class":{color:"#f59e0b",shape:"diamond",size:40},"http://www.w3.org/2002/07/owl#Class":{color:"#f59e0b",shape:"diamond",size:40},ems__Task:{color:"#22c55e",shape:"circle"},ems__Project:{color:"#3b82f6",shape:"square"},ems__Area:{color:"#8b5cf6",shape:"hexagon",size:40},ems__Meeting:{color:"#ec4899",shape:"circle"},exo__Class:{color:"#f59e0b",shape:"diamond"},ims__Person:{color:"#06b6d4",shape:"circle"}};Vt.BUILT_IN_EDGE_STYLES={"http://www.w3.org/1999/02/22-rdf-syntax-ns#type":{color:"#f59e0b",lineStyle:"dashed",arrow:"standard"},"http://www.w3.org/2000/01/rdf-schema#subClassOf":{color:"#8b5cf6",width:2,arrow:"triangle"},"https://exocortex.my/ontology/ems#Effort_parent":{color:"#6366f1",width:2,arrow:"standard"},"https://exocortex.my/ontology/exo#Asset_prototype":{color:"#f59e0b",lineStyle:"dashed",arrow:"circle"},"https://exocortex.my/ontology/exo#references":{color:"#22c55e",opacity:.4,arrow:"standard"}};function jN(n,e){return{...n,...Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}}o(jN,"mergeNodeStyles");function $N(n,e){return{...n,...Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}}o($N,"mergeEdgeStyles");function BN(n){let e=n.lastIndexOf("#"),t=n.lastIndexOf("/"),r=Math.max(e,t);return r>=0?n.substring(r+1):n}o(BN,"extractLocalName");function VN(n){return n===Vt.RDF_TYPE_PREDICATES.RDFS_CLASS||n===Vt.RDF_TYPE_PREDICATES.OWL_CLASS}o(VN,"isClassType");function UN(n){return n===Vt.RDF_TYPE_PREDICATES.RDF_TYPE}o(UN,"isTypePredicate");function qN(n){return n===Vt.RDF_TYPE_PREDICATES.RDFS_SUBCLASS_OF}o(qN,"isSubClassPredicate")});var j2=S(M2=>{"use strict";Object.defineProperty(M2,"__esModule",{value:!0})});var Ce=S(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.IRI=void 0;var r0=class n{static{o(this,"IRI")}constructor(e){let t=e.trim();if(t.length===0)throw new Error("IRI cannot be empty");if(!n.isValidIRI(t))throw new Error("Invalid IRI format");this._value=t}get value(){return this._value}equals(e){return this._value===e._value}toString(){return this._value}static isValidIRI(e){if(!e||e.trim().length===0||/\s/.test(e)||!/^[a-z][a-z0-9+.-]*:/i.test(e))return!1;let r=["http","https","ftp","ftps","file","mailto","tel","data","ws","wss","urn","obsidian"],i=e.match(/^([a-z][a-z0-9+.-]*?):/i);if(i){let s=i[1].toLowerCase();if(!r.includes(s))return!1}try{return new URL(e),!0}catch{return/^urn:[a-z0-9][a-z0-9-]{0,31}:[^\s]+$/i.test(e)}}};Jd.IRI=r0});var je=S(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.Literal=void 0;ho.parseLanguageTag=$2;ho.createDirectionalLiteral=GN;ho.createLiteralFromLanguageTag=zN;var WN="http://www.w3.org/2001/XMLSchema#string",Au=class{static{o(this,"Literal")}constructor(e,t,r,i){if(e.length===0)throw new Error("Literal value cannot be empty");if(t&&r)throw new Error("Literal cannot have both datatype and language tag");if(i&&!r)throw new Error("Literal cannot have direction without language tag");if(i&&i!=="ltr"&&i!=="rtl")throw new Error('Direction must be "ltr" or "rtl"');this._value=e,this._datatype=t,this._language=r?r.toLowerCase():void 0,this._direction=i}get value(){return this._value}get datatype(){return this._datatype}get language(){return this._language}get direction(){return this._direction}hasDirection(){return this._direction!==void 0}equals(e){if(this._value!==e._value||this._language!==e._language||this._direction!==e._direction)return!1;let t=this.normalizedDatatype(),r=e.normalizedDatatype();return t===r}normalizedDatatype(){return!this._datatype||this._datatype.value===WN?null:this._datatype.value}toString(){let e=`"${this._value}"`;return this._datatype?e+=`^^<${this._datatype.value}>`:this._language&&(e+=`@${this._language}`,this._direction&&(e+=`--${this._direction}`)),e}};ho.Literal=Au;function $2(n){let t=n.lastIndexOf("--");if(t===-1)return{language:n.toLowerCase()};let r=n.substring(t+2),i=n.substring(0,t);return r==="ltr"||r==="rtl"?{language:i.toLowerCase(),direction:r}:{language:n.toLowerCase()}}o($2,"parseLanguageTag");function GN(n,e,t){return new Au(n,void 0,e,t)}o(GN,"createDirectionalLiteral");function zN(n,e){let{language:t,direction:r}=$2(e);return new Au(n,void 0,t,r)}o(zN,"createLiteralFromLanguageTag")});var Ht=S(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.BlankNode=void 0;var Zd=class n{static{o(this,"BlankNode")}constructor(e){let t=e.trim();if(t.length===0)throw new Error("BlankNode id cannot be empty");this._id=t}get id(){return this._id}equals(e){return this._id===e._id}toString(){return`_:${this._id}`}static generateId(){return`b${++n.counter}`}static create(){return new n(n.generateId())}};eh.BlankNode=Zd;Zd.counter=0});var Pr=S(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.Namespace=void 0;var B2=Ce(),ft=class{static{o(this,"Namespace")}constructor(e,t){if(e.trim().length===0)throw new Error("Namespace prefix cannot be empty");this._prefix=e,this._iri=new B2.IRI(t)}get prefix(){return this._prefix}get iri(){return this._iri}term(e){return new B2.IRI(`${this._iri.value}${e}`)}expand(e){let t=e.split(":");if(t.length!==2)return null;let[r,i]=t;return r!==this._prefix?null:this.term(i)}};th.Namespace=ft;ft.RDF=new ft("rdf","http://www.w3.org/1999/02/22-rdf-syntax-ns#");ft.RDFS=new ft("rdfs","http://www.w3.org/2000/01/rdf-schema#");ft.OWL=new ft("owl","http://www.w3.org/2002/07/owl#");ft.XSD=new ft("xsd","http://www.w3.org/2001/XMLSchema#");ft.EXO=new ft("exo","https://exocortex.my/ontology/exo#");ft.EMS=new ft("ems","https://exocortex.my/ontology/ems#");ft.EXOCMD=new ft("exocmd","https://exocortex.my/ontology/exocmd#");ft.IMS=new ft("ims","https://exocortex.my/ontology/ims#");ft.ZTLK=new ft("ztlk","https://exocortex.my/ontology/ztlk#");ft.PTMS=new ft("ptms","https://exocortex.my/ontology/ptms#");ft.LIT=new ft("lit","https://exocortex.my/ontology/lit#");ft.INBOX=new ft("inbox","https://exocortex.my/ontology/inbox#");ft.PMBOK=new ft("pmbok","https://exocortex.my/ontology/pmbok#")});var li=S(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.Triple=void 0;var n0=Ce(),i0=je(),s0=Ht(),a0=class{static{o(this,"Triple")}constructor(e,t,r){this._subject=e,this._predicate=t,this._object=r}get subject(){return this._subject}get predicate(){return this._predicate}get object(){return this._object}equals(e){return!(!this.equalsNode(this._subject,e._subject)||!this._predicate.equals(e._predicate)||!this.equalsNode(this._object,e._object))}equalsNode(e,t){return e instanceof n0.IRI&&t instanceof n0.IRI||e instanceof s0.BlankNode&&t instanceof s0.BlankNode||e instanceof i0.Literal&&t instanceof i0.Literal||this.isQuotedTriple(e)&&this.isQuotedTriple(t)?e.equals(t):!1}isQuotedTriple(e){return typeof e=="object"&&e!==null&&"termType"in e&&e.termType==="QuotedTriple"}toString(){let e=this.nodeToString(this._subject),t=`<${this._predicate.value}>`,r=this.nodeToString(this._object);return`${e} ${t} ${r} .`}nodeToString(e){return e instanceof n0.IRI?`<${e.value}>`:e instanceof s0.BlankNode||e instanceof i0.Literal||this.isQuotedTriple(e)?e.toString():""}};rh.Triple=a0});var xu=S(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.QuotedTriple=void 0;var o0=Ce(),c0=je(),l0=Ht(),u0=class n{static{o(this,"QuotedTriple")}constructor(e,t,r){this._subject=e,this._predicate=t,this._object=r}get subject(){return this._subject}get predicate(){return this._predicate}get object(){return this._object}equals(e){return!(!this.equalsNode(this._subject,e._subject)||!this._predicate.equals(e._predicate)||!this.equalsNode(this._object,e._object))}equalsNode(e,t){return e instanceof o0.IRI&&t instanceof o0.IRI||e instanceof l0.BlankNode&&t instanceof l0.BlankNode||e instanceof c0.Literal&&t instanceof c0.Literal||e instanceof n&&t instanceof n?e.equals(t):!1}get termType(){return"QuotedTriple"}toString(){let e=this.nodeToString(this._subject),t=`<${this._predicate.value}>`,r=this.nodeToString(this._object);return`<< ${e} ${t} ${r} >>`}nodeToString(e){return e instanceof o0.IRI?`<${e.value}>`:e instanceof l0.BlankNode||e instanceof c0.Literal||e instanceof n?e.toString():""}};nh.QuotedTriple=u0});var V2=S(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.QuotedTriple=Zt.Triple=Zt.Namespace=Zt.BlankNode=Zt.createLiteralFromLanguageTag=Zt.createDirectionalLiteral=Zt.parseLanguageTag=Zt.Literal=Zt.IRI=void 0;var HN=Ce();Object.defineProperty(Zt,"IRI",{enumerable:!0,get:o(function(){return HN.IRI},"get")});var ih=je();Object.defineProperty(Zt,"Literal",{enumerable:!0,get:o(function(){return ih.Literal},"get")});Object.defineProperty(Zt,"parseLanguageTag",{enumerable:!0,get:o(function(){return ih.parseLanguageTag},"get")});Object.defineProperty(Zt,"createDirectionalLiteral",{enumerable:!0,get:o(function(){return ih.createDirectionalLiteral},"get")});Object.defineProperty(Zt,"createLiteralFromLanguageTag",{enumerable:!0,get:o(function(){return ih.createLiteralFromLanguageTag},"get")});var QN=Ht();Object.defineProperty(Zt,"BlankNode",{enumerable:!0,get:o(function(){return QN.BlankNode},"get")});var YN=Pr();Object.defineProperty(Zt,"Namespace",{enumerable:!0,get:o(function(){return YN.Namespace},"get")});var KN=li();Object.defineProperty(Zt,"Triple",{enumerable:!0,get:o(function(){return KN.Triple},"get")});var XN=xu();Object.defineProperty(Zt,"QuotedTriple",{enumerable:!0,get:o(function(){return XN.QuotedTriple},"get")})});var sh=S(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.UUID_URL_NAMESPACE=Hn.DEFAULT_LANGUAGE_TAG=Hn.REQUIRED_PROPERTIES=Hn.ALLOWED_PROPERTIES=Hn.Exo003MetadataType=void 0;var zn;(function(n){n.Namespace="namespace",n.Anchor="anchor",n.BlankNode="blank_node",n.Statement="statement",n.Body="body"})(zn||(Hn.Exo003MetadataType=zn={}));Hn.ALLOWED_PROPERTIES={[zn.Namespace]:["metadata","uri","aliases"],[zn.Anchor]:["metadata","uri","aliases"],[zn.BlankNode]:["metadata","uri","aliases"],[zn.Statement]:["metadata","subject","predicate","object","aliases"],[zn.Body]:["metadata","subject","predicate","aliases"]};Hn.REQUIRED_PROPERTIES={[zn.Namespace]:["metadata","uri"],[zn.Anchor]:["metadata","uri"],[zn.BlankNode]:["metadata","uri"],[zn.Statement]:["metadata","subject","predicate","object"],[zn.Body]:["metadata","subject","predicate"]};Hn.DEFAULT_LANGUAGE_TAG="ru";Hn.UUID_URL_NAMESPACE="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});var U2=S(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});f0.default="ffffffff-ffff-ffff-ffff-ffffffffffff"});var q2=S(d0=>{"use strict";Object.defineProperty(d0,"__esModule",{value:!0});d0.default="00000000-0000-0000-0000-000000000000"});var W2=S(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0});h0.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i});var Cu=S(p0=>{"use strict";Object.defineProperty(p0,"__esModule",{value:!0});var JN=W2();function ZN(n){return typeof n=="string"&&JN.default.test(n)}o(ZN,"validate");p0.default=ZN});var Iu=S(m0=>{"use strict";Object.defineProperty(m0,"__esModule",{value:!0});var eL=Cu();function tL(n){if(!(0,eL.default)(n))throw TypeError("Invalid UUID");let e;return Uint8Array.of((e=parseInt(n.slice(0,8),16))>>>24,e>>>16&255,e>>>8&255,e&255,(e=parseInt(n.slice(9,13),16))>>>8,e&255,(e=parseInt(n.slice(14,18),16))>>>8,e&255,(e=parseInt(n.slice(19,23),16))>>>8,e&255,(e=parseInt(n.slice(24,36),16))/1099511627776&255,e/4294967296&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255)}o(tL,"parse");m0.default=tL});var Ms=S(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.unsafeStringify=void 0;var rL=Cu(),Or=[];for(let n=0;n<256;++n)Or.push((n+256).toString(16).slice(1));function G2(n,e=0){return(Or[n[e+0]]+Or[n[e+1]]+Or[n[e+2]]+Or[n[e+3]]+"-"+Or[n[e+4]]+Or[n[e+5]]+"-"+Or[n[e+6]]+Or[n[e+7]]+"-"+Or[n[e+8]]+Or[n[e+9]]+"-"+Or[n[e+10]]+Or[n[e+11]]+Or[n[e+12]]+Or[n[e+13]]+Or[n[e+14]]+Or[n[e+15]]).toLowerCase()}o(G2,"unsafeStringify");Ru.unsafeStringify=G2;function nL(n,e=0){let t=G2(n,e);if(!(0,rL.default)(t))throw TypeError("Stringified UUID is invalid");return t}o(nL,"stringify");Ru.default=nL});var ch=S(g0=>{"use strict";Object.defineProperty(g0,"__esModule",{value:!0});var iL=require("crypto"),oh=new Uint8Array(256),ah=oh.length;function sL(){return ah>oh.length-16&&((0,iL.randomFillSync)(oh),ah=0),oh.slice(ah,ah+=16)}o(sL,"rng");g0.default=sL});var y0=S(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.updateV1State=void 0;var z2=ch(),aL=Ms(),Pu={};function oL(n,e,t){let r,i=n?._v6??!1;if(n){let s=Object.keys(n);s.length===1&&s[0]==="_v6"&&(n=void 0)}if(n)r=H2(n.random??n.rng?.()??(0,z2.default)(),n.msecs,n.nsecs,n.clockseq,n.node,e,t);else{let s=Date.now(),a=(0,z2.default)();Q2(Pu,s,a),r=H2(a,Pu.msecs,Pu.nsecs,i?void 0:Pu.clockseq,i?void 0:Pu.node,e,t)}return e??(0,aL.unsafeStringify)(r)}o(oL,"v1");function Q2(n,e,t){return n.msecs??=-1/0,n.nsecs??=0,e===n.msecs?(n.nsecs++,n.nsecs>=1e4&&(n.node=void 0,n.nsecs=0)):e>n.msecs?n.nsecs=0:e<n.msecs&&(n.node=void 0),n.node||(n.node=t.slice(10,16),n.node[0]|=1,n.clockseq=(t[8]<<8|t[9])&16383),n.msecs=e,n}o(Q2,"updateV1State");Ou.updateV1State=Q2;function H2(n,e,t,r,i,s,a=0){if(n.length<16)throw new Error("Random bytes length must be >= 16");if(!s)s=new Uint8Array(16),a=0;else if(a<0||a+16>s.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);e??=Date.now(),t??=0,r??=(n[8]<<8|n[9])&16383,i??=n.slice(10,16),e+=122192928e5;let c=((e&268435455)*1e4+t)%4294967296;s[a++]=c>>>24&255,s[a++]=c>>>16&255,s[a++]=c>>>8&255,s[a++]=c&255;let l=e/4294967296*1e4&268435455;s[a++]=l>>>8&255,s[a++]=l&255,s[a++]=l>>>24&15|16,s[a++]=l>>>16&255,s[a++]=r>>>8|128,s[a++]=r&255;for(let u=0;u<6;++u)s[a++]=i[u];return s}o(H2,"v1Bytes");Ou.default=oL});var S0=S(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});var cL=Iu(),lL=Ms();function uL(n){let e=typeof n=="string"?(0,cL.default)(n):n,t=fL(e);return typeof n=="string"?(0,lL.unsafeStringify)(t):t}o(uL,"v1ToV6");_0.default=uL;function fL(n){return Uint8Array.of((n[6]&15)<<4|n[7]>>4&15,(n[7]&15)<<4|(n[4]&240)>>4,(n[4]&15)<<4|(n[5]&240)>>4,(n[5]&15)<<4|(n[0]&240)>>4,(n[0]&15)<<4|(n[1]&240)>>4,(n[1]&15)<<4|(n[2]&240)>>4,96|n[2]&15,n[3],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15])}o(fL,"_v1ToV6")});var Y2=S(v0=>{"use strict";Object.defineProperty(v0,"__esModule",{value:!0});var dL=require("crypto");function hL(n){return Array.isArray(n)?n=Buffer.from(n):typeof n=="string"&&(n=Buffer.from(n,"utf8")),(0,dL.createHash)("md5").update(n).digest()}o(hL,"md5");v0.default=hL});var Fu=S(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.URL=js.DNS=js.stringToBytes=void 0;var K2=Iu(),pL=Ms();function X2(n){n=unescape(encodeURIComponent(n));let e=new Uint8Array(n.length);for(let t=0;t<n.length;++t)e[t]=n.charCodeAt(t);return e}o(X2,"stringToBytes");js.stringToBytes=X2;js.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8";js.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function mL(n,e,t,r,i,s){let a=typeof t=="string"?X2(t):t,c=typeof r=="string"?(0,K2.default)(r):r;if(typeof r=="string"&&(r=(0,K2.default)(r)),r?.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+a.length);if(l.set(c),l.set(a,c.length),l=e(l),l[6]=l[6]&15|n,l[8]=l[8]&63|128,i){s=s||0;for(let u=0;u<16;++u)i[s+u]=l[u];return i}return(0,pL.unsafeStringify)(l)}o(mL,"v35");js.default=mL});var Z2=S(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.URL=po.DNS=void 0;var gL=Y2(),b0=Fu(),J2=Fu();Object.defineProperty(po,"DNS",{enumerable:!0,get:o(function(){return J2.DNS},"get")});Object.defineProperty(po,"URL",{enumerable:!0,get:o(function(){return J2.URL},"get")});function w0(n,e,t,r){return(0,b0.default)(48,gL.default,n,e,t,r)}o(w0,"v3");w0.DNS=b0.DNS;w0.URL=b0.URL;po.default=w0});var eT=S(E0=>{"use strict";Object.defineProperty(E0,"__esModule",{value:!0});var yL=require("crypto");E0.default={randomUUID:yL.randomUUID}});var rT=S(T0=>{"use strict";Object.defineProperty(T0,"__esModule",{value:!0});var tT=eT(),_L=ch(),SL=Ms();function vL(n,e,t){if(tT.default.randomUUID&&!e&&!n)return tT.default.randomUUID();n=n||{};let r=n.random??n.rng?.()??(0,_L.default)();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){if(t=t||0,t<0||t+16>e.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let i=0;i<16;++i)e[t+i]=r[i];return e}return(0,SL.unsafeStringify)(r)}o(vL,"v4");T0.default=vL});var nT=S(A0=>{"use strict";Object.defineProperty(A0,"__esModule",{value:!0});var bL=require("crypto");function wL(n){return Array.isArray(n)?n=Buffer.from(n):typeof n=="string"&&(n=Buffer.from(n,"utf8")),(0,bL.createHash)("sha1").update(n).digest()}o(wL,"sha1");A0.default=wL});var sT=S(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.URL=mo.DNS=void 0;var EL=nT(),x0=Fu(),iT=Fu();Object.defineProperty(mo,"DNS",{enumerable:!0,get:o(function(){return iT.DNS},"get")});Object.defineProperty(mo,"URL",{enumerable:!0,get:o(function(){return iT.URL},"get")});function C0(n,e,t,r){return(0,x0.default)(80,EL.default,n,e,t,r)}o(C0,"v5");C0.DNS=x0.DNS;C0.URL=x0.URL;mo.default=C0});var aT=S(I0=>{"use strict";Object.defineProperty(I0,"__esModule",{value:!0});var TL=Ms(),AL=y0(),xL=S0();function CL(n,e,t){n??={},t??=0;let r=(0,AL.default)({...n,_v6:!0},new Uint8Array(16));if(r=(0,xL.default)(r),e){for(let i=0;i<16;i++)e[t+i]=r[i];return e}return(0,TL.unsafeStringify)(r)}o(CL,"v6");I0.default=CL});var oT=S(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});var IL=Iu(),RL=Ms();function PL(n){let e=typeof n=="string"?(0,IL.default)(n):n,t=OL(e);return typeof n=="string"?(0,RL.unsafeStringify)(t):t}o(PL,"v6ToV1");R0.default=PL;function OL(n){return Uint8Array.of((n[3]&15)<<4|n[4]>>4&15,(n[4]&15)<<4|(n[5]&240)>>4,(n[5]&15)<<4|n[6]&15,n[7],(n[1]&15)<<4|(n[2]&240)>>4,(n[2]&15)<<4|(n[3]&240)>>4,16|(n[0]&240)>>4,(n[0]&15)<<4|(n[1]&240)>>4,n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15])}o(OL,"_v6ToV1")});var fT=S(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.updateV7State=void 0;var cT=ch(),FL=Ms(),P0={};function DL(n,e,t){let r;if(n)r=lT(n.random??n.rng?.()??(0,cT.default)(),n.msecs,n.seq,e,t);else{let i=Date.now(),s=(0,cT.default)();uT(P0,i,s),r=lT(s,P0.msecs,P0.seq,e,t)}return e??(0,FL.unsafeStringify)(r)}o(DL,"v7");function uT(n,e,t){return n.msecs??=-1/0,n.seq??=0,e>n.msecs?(n.seq=t[6]<<23|t[7]<<16|t[8]<<8|t[9],n.msecs=e):(n.seq=n.seq+1|0,n.seq===0&&n.msecs++),n}o(uT,"updateV7State");Du.updateV7State=uT;function lT(n,e,t,r,i=0){if(n.length<16)throw new Error("Random bytes length must be >= 16");if(!r)r=new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return e??=Date.now(),t??=n[6]*127<<24|n[7]<<16|n[8]<<8|n[9],r[i++]=e/1099511627776&255,r[i++]=e/4294967296&255,r[i++]=e/16777216&255,r[i++]=e/65536&255,r[i++]=e/256&255,r[i++]=e&255,r[i++]=112|t>>>28&15,r[i++]=t>>>20&255,r[i++]=128|t>>>14&63,r[i++]=t>>>6&255,r[i++]=t<<2&255|n[10]&3,r[i++]=n[11],r[i++]=n[12],r[i++]=n[13],r[i++]=n[14],r[i++]=n[15],r}o(lT,"v7Bytes");Du.default=DL});var dT=S(O0=>{"use strict";Object.defineProperty(O0,"__esModule",{value:!0});var NL=Cu();function LL(n){if(!(0,NL.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}o(LL,"version");O0.default=LL});var wn=S(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.version=ot.validate=ot.v7=ot.v6ToV1=ot.v6=ot.v5=ot.v4=ot.v3=ot.v1ToV6=ot.v1=ot.stringify=ot.parse=ot.NIL=ot.MAX=void 0;var kL=U2();Object.defineProperty(ot,"MAX",{enumerable:!0,get:o(function(){return kL.default},"get")});var ML=q2();Object.defineProperty(ot,"NIL",{enumerable:!0,get:o(function(){return ML.default},"get")});var jL=Iu();Object.defineProperty(ot,"parse",{enumerable:!0,get:o(function(){return jL.default},"get")});var $L=Ms();Object.defineProperty(ot,"stringify",{enumerable:!0,get:o(function(){return $L.default},"get")});var BL=y0();Object.defineProperty(ot,"v1",{enumerable:!0,get:o(function(){return BL.default},"get")});var VL=S0();Object.defineProperty(ot,"v1ToV6",{enumerable:!0,get:o(function(){return VL.default},"get")});var UL=Z2();Object.defineProperty(ot,"v3",{enumerable:!0,get:o(function(){return UL.default},"get")});var qL=rT();Object.defineProperty(ot,"v4",{enumerable:!0,get:o(function(){return qL.default},"get")});var WL=sT();Object.defineProperty(ot,"v5",{enumerable:!0,get:o(function(){return WL.default},"get")});var GL=aT();Object.defineProperty(ot,"v6",{enumerable:!0,get:o(function(){return GL.default},"get")});var zL=oT();Object.defineProperty(ot,"v6ToV1",{enumerable:!0,get:o(function(){return zL.default},"get")});var HL=fT();Object.defineProperty(ot,"v7",{enumerable:!0,get:o(function(){return HL.default},"get")});var QL=Cu();Object.defineProperty(ot,"validate",{enumerable:!0,get:o(function(){return QL.default},"get")});var YL=dT();Object.defineProperty(ot,"version",{enumerable:!0,get:o(function(){return YL.default},"get")})});var N0=S(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.Exo003UUIDGenerator=void 0;var F0=wn(),hT=sh(),D0=class{static{o(this,"Exo003UUIDGenerator")}static generateNamespaceUUID(e){if(!e||e.trim().length===0)throw new Error("Namespace URI cannot be empty");return(0,F0.v5)(e,hT.UUID_URL_NAMESPACE)}static generateAssetUUID(e,t){if(!t||t.trim().length===0)throw new Error("Local identifier cannot be empty");let r=this.generateNamespaceUUID(e);return(0,F0.v5)(t,r)}static generateFromIRI(e){if(!e||e.trim().length===0)throw new Error("IRI cannot be empty");let{namespace:t,localName:r}=this.splitIRI(e);return r?this.generateAssetUUID(t,r):(0,F0.v5)(e,hT.UUID_URL_NAMESPACE)}static generateBlankNodeUUID(e,t){if(!e||e.trim().length===0)throw new Error("Blank node ID cannot be empty");let r="urn:exocortex:blank-node:",i=t?`${t}#${e}`:e;return this.generateAssetUUID(r,i)}static generateStatementUUID(e,t,r){if(!e||!t||!r)throw new Error("Subject, predicate, and object cannot be empty");let i="urn:exocortex:statement:",s=`${e} ${t} ${r}`;return this.generateAssetUUID(i,s)}static generateBodyUUID(e,t){let r="urn:exocortex:body:",i=e;return t?.datatype?i+=`^^${t.datatype}`:t?.language&&(i+=`@${t.language}`,t.direction&&(i+=`--${t.direction}`)),this.generateAssetUUID(r,i)}static splitIRI(e){let t=e.lastIndexOf("#");if(t!==-1&&t<e.length-1)return{namespace:e.substring(0,t+1),localName:e.substring(t+1)};let r=e.lastIndexOf("/"),i=e.indexOf("://");return r!==-1&&r>i+2&&r<e.length-1?{namespace:e.substring(0,r+1),localName:e.substring(r+1)}:{namespace:e,localName:""}}static isValidUUID(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)}};lh.Exo003UUIDGenerator=D0});var mT=S(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.Exo003Parser=void 0;var mt=sh(),Nu=N0(),_a=Ce(),uh=je(),pT=Ht(),KL=li(),L0=class{static{o(this,"Exo003Parser")}static parse(e,t){let r=this.validate(e);if(!r.valid)return{success:!1,errors:r.errors};let i=e.metadata;try{return{success:!0,metadata:this.parseByType(e,i),bodyContent:i===mt.Exo003MetadataType.Body?t:void 0}}catch(s){return{success:!1,errors:[s instanceof Error?s.message:String(s)]}}}static validate(e){let t=[],r=[];if(!e.metadata)return t.push("Missing required property: metadata"),{valid:!1,errors:t,warnings:r};let i=e.metadata;if(!Object.values(mt.Exo003MetadataType).includes(i))return t.push(`Invalid metadata: ${i}. Valid types: ${Object.values(mt.Exo003MetadataType).join(", ")}`),{valid:!1,errors:t,warnings:r};let s=i,a=mt.ALLOWED_PROPERTIES[s],c=mt.REQUIRED_PROPERTIES[s];for(let l of c)(e[l]===void 0||e[l]===null)&&t.push(`Missing required property: ${l}`);for(let l of Object.keys(e))a.includes(l)||t.push(`Forbidden property for ${s}: ${l}`);switch(s){case mt.Exo003MetadataType.Namespace:this.validateNamespaceMetadata(e,t);break;case mt.Exo003MetadataType.Anchor:this.validateAnchorMetadata(e,t);break;case mt.Exo003MetadataType.BlankNode:this.validateBlankNodeMetadata(e,t);break;case mt.Exo003MetadataType.Statement:this.validateStatementMetadata(e,t);break;case mt.Exo003MetadataType.Body:this.validateBodyMetadata(e,t,r);break}return{valid:t.length===0,errors:t,warnings:r}}static parseByType(e,t){let r={metadata:t,aliases:e.aliases};switch(t){case mt.Exo003MetadataType.Namespace:return{...r,metadata:mt.Exo003MetadataType.Namespace,uri:e.uri};case mt.Exo003MetadataType.Anchor:return{...r,metadata:mt.Exo003MetadataType.Anchor,uri:e.uri};case mt.Exo003MetadataType.BlankNode:return{...r,metadata:mt.Exo003MetadataType.BlankNode,uri:e.uri};case mt.Exo003MetadataType.Statement:return{...r,metadata:mt.Exo003MetadataType.Statement,subject:e.subject,predicate:e.predicate,object:e.object};case mt.Exo003MetadataType.Body:return{...r,metadata:mt.Exo003MetadataType.Body,subject:e.subject,predicate:e.predicate}}}static validateNamespaceMetadata(e,t){let r=e.uri;if(r&&typeof r!="string")t.push("uri must be a string");else if(r)try{new _a.IRI(r)}catch{t.push(`uri is not a valid IRI: ${String(r)}`)}}static validateAnchorMetadata(e,t){let r=e.uri;if(r&&typeof r!="string")t.push("uri must be a string");else if(r)try{new _a.IRI(r)}catch{t.push(`uri is not a valid IRI: ${String(r)}`)}}static validateBlankNodeMetadata(e,t){let r=e.uri;if(r&&typeof r!="string")t.push("uri must be a string");else if(r){let i=r;if(!i.startsWith("_:"))try{new _a.IRI(i)}catch{t.push(`uri is not a valid IRI or blank node identifier: ${String(r)}`)}}}static validateStatementMetadata(e,t){let r=e.subject,i=e.predicate,s=e.object,a=[["subject",r],["predicate",i],["object",s]];for(let[c,l]of a)l&&typeof l!="string"&&t.push(`${c} must be a string`)}static validateBodyMetadata(e,t,r){let i=e.subject,s=e.predicate;i&&typeof i!="string"&&t.push("subject must be a string"),s&&typeof s!="string"&&t.push("predicate must be a string")}static toTriple(e,t,r){let i=t(e.subject),s;if(i.type==="iri")s=new _a.IRI(i.value);else if(i.type==="blank")s=new pT.BlankNode(i.value);else throw new Error("Statement subject cannot be a literal");let a=t(e.predicate);if(a.type!=="iri")throw new Error("Statement predicate must be an IRI");let c=new _a.IRI(a.value),l=t(e.object),u;if(l.type==="iri")u=new _a.IRI(l.value);else if(l.type==="blank")u=new pT.BlankNode(l.value);else{let f=r||l.value;if(l.datatype)u=new uh.Literal(f,new _a.IRI(l.datatype));else{let d=l.language||mt.DEFAULT_LANGUAGE_TAG;u=(0,uh.createDirectionalLiteral)(f,d,l.direction)}}return new KL.Triple(s,c,u)}static toLiteral(e,t,r){if(r?.datatype)return new uh.Literal(t,new _a.IRI(r.datatype));let i=r?.language||mt.DEFAULT_LANGUAGE_TAG;return(0,uh.createDirectionalLiteral)(t,i,r?.direction)}static isExo003Format(e){let t=e.metadata;return typeof t=="string"&&Object.values(mt.Exo003MetadataType).includes(t)}static generateUUID(e,t){switch(e.metadata){case mt.Exo003MetadataType.Namespace:return Nu.Exo003UUIDGenerator.generateNamespaceUUID(e.uri);case mt.Exo003MetadataType.Anchor:return Nu.Exo003UUIDGenerator.generateNamespaceUUID(e.uri);case mt.Exo003MetadataType.BlankNode:return Nu.Exo003UUIDGenerator.generateNamespaceUUID(e.uri);case mt.Exo003MetadataType.Statement:{let r=e;return Nu.Exo003UUIDGenerator.generateStatementUUID(r.subject,r.predicate,r.object)}case mt.Exo003MetadataType.Body:{let r=e;return Nu.Exo003UUIDGenerator.generateBodyUUID(r.subject+"|"+r.predicate)}}}};fh.Exo003Parser=L0});var k0=S(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.Exo003Parser=Ur.Exo003UUIDGenerator=Ur.UUID_URL_NAMESPACE=Ur.DEFAULT_LANGUAGE_TAG=Ur.REQUIRED_PROPERTIES=Ur.ALLOWED_PROPERTIES=Ur.Exo003MetadataType=void 0;var Lu=sh();Object.defineProperty(Ur,"Exo003MetadataType",{enumerable:!0,get:o(function(){return Lu.Exo003MetadataType},"get")});Object.defineProperty(Ur,"ALLOWED_PROPERTIES",{enumerable:!0,get:o(function(){return Lu.ALLOWED_PROPERTIES},"get")});Object.defineProperty(Ur,"REQUIRED_PROPERTIES",{enumerable:!0,get:o(function(){return Lu.REQUIRED_PROPERTIES},"get")});Object.defineProperty(Ur,"DEFAULT_LANGUAGE_TAG",{enumerable:!0,get:o(function(){return Lu.DEFAULT_LANGUAGE_TAG},"get")});Object.defineProperty(Ur,"UUID_URL_NAMESPACE",{enumerable:!0,get:o(function(){return Lu.UUID_URL_NAMESPACE},"get")});var XL=N0();Object.defineProperty(Ur,"Exo003UUIDGenerator",{enumerable:!0,get:o(function(){return XL.Exo003UUIDGenerator},"get")});var JL=mT();Object.defineProperty(Ur,"Exo003Parser",{enumerable:!0,get:o(function(){return JL.Exo003Parser},"get")})});var $s=S(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.WikiLinkHelpers=void 0;var ku=class{static{o(this,"WikiLinkHelpers")}static normalize(e){if(!e)return"";let t=e.replace(this.WIKI_LINK_PATTERN,"").trim();if(!t)return"";let r=t.indexOf("|");if(r===-1)return t;let i=t.substring(0,r).trim(),s=t.substring(r+1).trim();return this.UUID_PATTERN.test(i)&&s||i}static normalizeArray(e){return e?(Array.isArray(e)?e:[e]).map(r=>this.normalize(r)).filter(r=>r.length>0):[]}static equals(e,t){return this.normalize(e)===this.normalize(t)}static includes(e,t){let r=this.normalizeArray(e),i=this.normalize(t);return r.includes(i)}};dh.WikiLinkHelpers=ku;ku.WIKI_LINK_PATTERN=/\[\[|\]\]/g;ku.UUID_PATTERN=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i});var Ln=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.CommandBindingProperty=et.GroundingProperty=et.PreconditionProperty=et.CommandProperty=et.GroundingType=et.getEffortStatusLabel=et.isTrashedStatus=et.isDoneStatus=et.normalizeEffortStatus=et.EFFORT_STATUS_OPTIONS=et.STATUS_NAME_TO_WIKILINK=et.STATUS_NAME_TO_ENUM=et.EFFORT_STATUS_CONFIG=et.EffortStatus=et.AssetClass=void 0;var ZL=Tu();Object.defineProperty(et,"AssetClass",{enumerable:!0,get:o(function(){return ZL.AssetClass},"get")});var ek=_c();Object.defineProperty(et,"EffortStatus",{enumerable:!0,get:o(function(){return ek.EffortStatus},"get")});var Sa=Xy();Object.defineProperty(et,"EFFORT_STATUS_CONFIG",{enumerable:!0,get:o(function(){return Sa.EFFORT_STATUS_CONFIG},"get")});Object.defineProperty(et,"STATUS_NAME_TO_ENUM",{enumerable:!0,get:o(function(){return Sa.STATUS_NAME_TO_ENUM},"get")});Object.defineProperty(et,"STATUS_NAME_TO_WIKILINK",{enumerable:!0,get:o(function(){return Sa.STATUS_NAME_TO_WIKILINK},"get")});Object.defineProperty(et,"EFFORT_STATUS_OPTIONS",{enumerable:!0,get:o(function(){return Sa.EFFORT_STATUS_OPTIONS},"get")});Object.defineProperty(et,"normalizeEffortStatus",{enumerable:!0,get:o(function(){return Sa.normalizeEffortStatus},"get")});Object.defineProperty(et,"isDoneStatus",{enumerable:!0,get:o(function(){return Sa.isDoneStatus},"get")});Object.defineProperty(et,"isTrashedStatus",{enumerable:!0,get:o(function(){return Sa.isTrashedStatus},"get")});Object.defineProperty(et,"getEffortStatusLabel",{enumerable:!0,get:o(function(){return Sa.getEffortStatusLabel},"get")});var tk=Sc();Object.defineProperty(et,"GroundingType",{enumerable:!0,get:o(function(){return tk.GroundingType},"get")});var hh=Jy();Object.defineProperty(et,"CommandProperty",{enumerable:!0,get:o(function(){return hh.CommandProperty},"get")});Object.defineProperty(et,"PreconditionProperty",{enumerable:!0,get:o(function(){return hh.PreconditionProperty},"get")});Object.defineProperty(et,"GroundingProperty",{enumerable:!0,get:o(function(){return hh.GroundingProperty},"get")});Object.defineProperty(et,"CommandBindingProperty",{enumerable:!0,get:o(function(){return hh.CommandBindingProperty},"get")})});var _o=S(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.hasClass=yo;qr.isAreaOrProject=rk;qr.isEffort=nk;qr.hasStatus=ik;qr.isAssetArchived=sk;qr.hasEmptyProperties=ak;qr.needsFolderRepair=ok;qr.getTodayDateString=M0;qr.isPlannedForToday=ck;qr.hasPlannedStartTimestamp=lk;qr.extractDailyNoteDate=uk;qr.isCurrentDateGteDay=fk;qr.inheritsFromPrototype=_T;qr.isPrototypeClass=hk;var yT=$s(),go=Ln();function yo(n,e){return n?(Array.isArray(n)?n:[n]).some(r=>yT.WikiLinkHelpers.normalize(r)===e):!1}o(yo,"hasClass");function rk(n){return yo(n,go.AssetClass.AREA)||yo(n,go.AssetClass.PROJECT)}o(rk,"isAreaOrProject");function nk(n){return yo(n,go.AssetClass.TASK)||yo(n,go.AssetClass.PROJECT)||yo(n,go.AssetClass.MEETING)}o(nk,"isEffort");function ik(n,e){if(!n)return!1;let t=Array.isArray(n)?n[0]:n;return t?yT.WikiLinkHelpers.normalize(t)===e:!1}o(ik,"hasStatus");function sk(n){if(n===!0||n===1)return!0;if(typeof n=="string"){let e=n.toLowerCase();return e==="true"||e==="yes"}return!1}o(sk,"isAssetArchived");function ak(n){return!n||Object.keys(n).length===0?!1:Object.values(n).some(e=>!!(e==null||typeof e=="string"&&e.trim()===""||Array.isArray(e)&&e.length===0||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0))}o(ak,"hasEmptyProperties");function ok(n,e){if(!e)return!1;let t=n.replace(/\/$/,""),r=e.replace(/\/$/,"");return t!==r}o(ok,"needsFolderRepair");function M0(){let n=new Date,e=n.getFullYear(),t=String(n.getMonth()+1).padStart(2,"0"),r=String(n.getDate()).padStart(2,"0");return`${e}-${t}-${r}`}o(M0,"getTodayDateString");function ck(n){let e=n.ems__Effort_plannedStartTimestamp;if(!e)return!1;let t=M0();return typeof e=="string"?e.split("T")[0]===t:Array.isArray(e)&&e.length>0?String(e[0]).split("T")[0]===t:!1}o(ck,"isPlannedForToday");function lk(n){let e=n.ems__Effort_plannedStartTimestamp;return e?typeof e=="string"?e.trim().length>0:Array.isArray(e)&&e.length>0?String(e[0]).trim().length>0:!1:!1}o(lk,"hasPlannedStartTimestamp");function uk(n){let e=n.pn__DailyNote_day;if(!e)return null;if(typeof e=="string"){let t=e.match(/\[\[([^\[\]]+)\]\]/);return t?t[1]:e}if(Array.isArray(e)&&e.length>0){let t=String(e[0]),r=t.match(/\[\[([^\[\]]+)\]\]/);return r?r[1]:t}return null}o(uk,"extractDailyNoteDate");function fk(n){return M0()>=n}o(fk,"isCurrentDateGteDay");function gT(n){return n?n.replace(/^["']|["']$/g,"").replace(/\[\[|\]\]/g,"").trim():""}o(gT,"normalizeWithQuotes");var dk=10;function _T(n,e=dk){let t=n.exo__Class_superClass;if(!t)return!1;let r=new Set,i=[],s=Array.isArray(t)?t:[t];for(let a of s){let c=gT(a);c&&i.push({className:c,depth:0})}for(;i.length>0;){let a=i.shift();if(!a)continue;let{className:c,depth:l}=a;if(l>e)continue;if(c===go.AssetClass.PROTOTYPE)return!0;if(r.has(c))continue;r.add(c);let u=`${c}__exo__Class_superClass`,f=n[u];if(f){let d=Array.isArray(f)?f:[f];for(let h of d){let p=gT(h);p&&!r.has(p)&&i.push({className:p,depth:l+1})}}}return!1}o(_T,"inheritsFromPrototype");function hk(n,e){return yo(n,go.AssetClass.CLASS)?_T(e):!1}o(hk,"isPrototypeClass")});var ST=S(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.canCreateTask=pk;wc.canCreateRelatedTask=mk;wc.canConvertTaskToProject=gk;wc.canSetCriticalityZone=yk;var bc=_o(),j0=Ln();function pk(n){return(0,bc.isAreaOrProject)(n.instanceClass)}o(pk,"canCreateTask");function mk(n){return!(!(0,bc.hasClass)(n.instanceClass,j0.AssetClass.TASK)||(0,bc.isAssetArchived)(n.isArchived))}o(mk,"canCreateRelatedTask");function gk(n){return(0,bc.hasClass)(n.instanceClass,j0.AssetClass.TASK)}o(gk,"canConvertTaskToProject");function yk(n){return!(!(0,bc.hasClass)(n.instanceClass,j0.AssetClass.TASK)||(0,bc.isAssetArchived)(n.isArchived))}o(yk,"canSetCriticalityZone")});var vT=S(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.canCreateProject=_k;Ec.canMoveToAnalysis=Sk;Ec.canMoveToToDo=vk;Ec.canConvertProjectToTask=bk;var va=_o(),ba=Ln();function _k(n){return(0,va.hasClass)(n.instanceClass,ba.AssetClass.AREA)||(0,va.hasClass)(n.instanceClass,ba.AssetClass.INITIATIVE)||(0,va.hasClass)(n.instanceClass,ba.AssetClass.PROJECT)}o(_k,"canCreateProject");function Sk(n){return(0,va.hasClass)(n.instanceClass,ba.AssetClass.PROJECT)?(0,va.hasStatus)(n.currentStatus,ba.EffortStatus.BACKLOG):!1}o(Sk,"canMoveToAnalysis");function vk(n){return(0,va.hasClass)(n.instanceClass,ba.AssetClass.PROJECT)?(0,va.hasStatus)(n.currentStatus,ba.EffortStatus.ANALYSIS):!1}o(vk,"canMoveToToDo");function bk(n){return(0,va.hasClass)(n.instanceClass,ba.AssetClass.PROJECT)}o(bk,"canConvertProjectToTask")});var ET=S(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.canCreateChildArea=wk;ph.canSetActiveFocus=Ek;var bT=_o(),wT=Ln();function wk(n){return(0,bT.hasClass)(n.instanceClass,wT.AssetClass.AREA)}o(wk,"canCreateChildArea");function Ek(n){return(0,bT.hasClass)(n.instanceClass,wT.AssetClass.AREA)}o(Ek,"canSetActiveFocus")});var AT=S(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.canPlanOnToday=Tk;on.canPlanForEvening=Ak;on.canShiftDayBackward=xk;on.canShiftDayForward=Ck;on.canSetDraftStatus=Ik;on.canMoveToBacklog=Rk;on.canStartEffort=Pk;on.canMarkDone=Ok;on.canTrashEffort=Fk;on.canVoteOnEffort=Dk;on.canRollbackStatus=Nk;on.canArchiveTask=Lk;on.canMarkReviewed=kk;var TT=$s(),dt=_o(),an=Ln();function Tk(n){return!(!(0,dt.isEffort)(n.instanceClass)||(0,dt.isPlannedForToday)(n.metadata))}o(Tk,"canPlanOnToday");function Ak(n){return!(0,dt.hasClass)(n.instanceClass,an.AssetClass.TASK)&&!(0,dt.hasClass)(n.instanceClass,an.AssetClass.MEETING)?!1:(0,dt.hasStatus)(n.currentStatus,an.EffortStatus.BACKLOG)}o(Ak,"canPlanForEvening");function xk(n){return(0,dt.isEffort)(n.instanceClass)?(0,dt.hasPlannedStartTimestamp)(n.metadata):!1}o(xk,"canShiftDayBackward");function Ck(n){return(0,dt.isEffort)(n.instanceClass)?(0,dt.hasPlannedStartTimestamp)(n.metadata):!1}o(Ck,"canShiftDayForward");function Ik(n){return(0,dt.isEffort)(n.instanceClass)?!n.currentStatus:!1}o(Ik,"canSetDraftStatus");function Rk(n){return(0,dt.isEffort)(n.instanceClass)?(0,dt.hasStatus)(n.currentStatus,an.EffortStatus.DRAFT):!1}o(Rk,"canMoveToBacklog");function Pk(n){return(0,dt.isEffort)(n.instanceClass)?(0,dt.hasClass)(n.instanceClass,an.AssetClass.TASK)||(0,dt.hasClass)(n.instanceClass,an.AssetClass.MEETING)?(0,dt.hasStatus)(n.currentStatus,an.EffortStatus.BACKLOG):(0,dt.hasClass)(n.instanceClass,an.AssetClass.PROJECT)?(0,dt.hasStatus)(n.currentStatus,an.EffortStatus.TODO):!1:!1}o(Pk,"canStartEffort");function Ok(n){return(0,dt.isEffort)(n.instanceClass)?(0,dt.hasStatus)(n.currentStatus,an.EffortStatus.DOING):!1}o(Ok,"canMarkDone");function Fk(n){return(0,dt.isEffort)(n.instanceClass)?n.currentStatus?!(Array.isArray(n.currentStatus)?n.currentStatus:[n.currentStatus]).some(r=>{let i=TT.WikiLinkHelpers.normalize(r);return i===an.EffortStatus.TRASHED||i===an.EffortStatus.DONE}):!0:!1}o(Fk,"canTrashEffort");function Dk(n){return!(!(0,dt.isEffort)(n.instanceClass)||(0,dt.isAssetArchived)(n.isArchived))}o(Dk,"canVoteOnEffort");function Nk(n){if(!(0,dt.isEffort)(n.instanceClass)||(0,dt.isAssetArchived)(n.isArchived)||!n.currentStatus)return!1;let e=Array.isArray(n.currentStatus)?n.currentStatus[0]:n.currentStatus;return!(!e||TT.WikiLinkHelpers.normalize(e)===an.EffortStatus.TRASHED)}o(Nk,"canRollbackStatus");function Lk(n){return!(0,dt.isAssetArchived)(n.isArchived)}o(Lk,"canArchiveTask");function kk(n){return!(!(0,dt.hasClass)(n.instanceClass,an.AssetClass.TASK)&&!(0,dt.hasClass)(n.instanceClass,an.AssetClass.PROJECT)||(0,dt.isAssetArchived)(n.isArchived))}o(kk,"canMarkReviewed")});var xT=S(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.canCreateEvent=$k;Qn.canCreateInstance=Bk;Qn.canCleanProperties=Vk;Qn.canRepairFolder=Uk;Qn.canRenameToUid=qk;Qn.canCopyLabelToAliases=Wk;Qn.canCreateNarrowerConcept=Gk;Qn.canCreateSubclass=zk;Qn.canCreateTaskForDailyNote=Hk;Qn.canCopyFleetingNoteLabel=Qk;var Wr=_o(),Bs=Ln(),Mk="75302770-279e-4a59-ba85-09df29725713",jk="fca0a931-a01f-48e4-b72a-4af206c94bc7";function $k(n){return(0,Wr.isAreaOrProject)(n.instanceClass)}o($k,"canCreateEvent");function Bk(n){return(0,Wr.hasClass)(n.instanceClass,Bs.AssetClass.TASK_PROTOTYPE)||(0,Wr.hasClass)(n.instanceClass,Mk)||(0,Wr.hasClass)(n.instanceClass,Bs.AssetClass.MEETING_PROTOTYPE)||(0,Wr.hasClass)(n.instanceClass,Bs.AssetClass.EVENT_PROTOTYPE)||(0,Wr.hasClass)(n.instanceClass,Bs.AssetClass.PROJECT_PROTOTYPE)||(0,Wr.hasClass)(n.instanceClass,Bs.AssetClass.PROTOTYPE)||n.classIsPrototype?!0:(0,Wr.isPrototypeClass)(n.instanceClass,n.metadata)}o(Bk,"canCreateInstance");function Vk(n){return(0,Wr.hasEmptyProperties)(n.metadata)}o(Vk,"canCleanProperties");function Uk(n){return(0,Wr.needsFolderRepair)(n.currentFolder,n.expectedFolder)}o(Uk,"canRepairFolder");function qk(n,e){let t=n.metadata.exo__Asset_uid;return t?e!==t:!1}o(qk,"canRenameToUid");function Wk(n){let e=n.metadata.exo__Asset_label;if(!e||typeof e!="string"||e.trim()==="")return!1;let t=e.trim(),r=n.metadata.aliases;return!r||!Array.isArray(r)||r.length===0?!0:!r.some(i=>typeof i!="string"?!1:i.trim()===t)}o(Wk,"canCopyLabelToAliases");function Gk(n){return(0,Wr.hasClass)(n.instanceClass,Bs.AssetClass.CONCEPT)}o(Gk,"canCreateNarrowerConcept");function zk(n){return(0,Wr.hasClass)(n.instanceClass,Bs.AssetClass.CLASS)}o(zk,"canCreateSubclass");function Hk(n){return!(!(0,Wr.hasClass)(n.instanceClass,Bs.AssetClass.DAILY_NOTE)||n.isArchived||!(0,Wr.extractDailyNoteDate)(n.metadata))}o(Hk,"canCreateTaskForDailyNote");function Qk(n){return(0,Wr.hasClass)(n.instanceClass,Bs.AssetClass.FLEETING_NOTE)||(0,Wr.hasClass)(n.instanceClass,jk)}o(Qk,"canCopyFleetingNoteLabel")});var IT=S(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.canCopyFleetingNoteLabel=L.canCreateTaskForDailyNote=L.canCreateSubclass=L.canCreateNarrowerConcept=L.canCopyLabelToAliases=L.canRenameToUid=L.canRepairFolder=L.canCleanProperties=L.canCreateInstance=L.canCreateEvent=L.canMarkReviewed=L.canArchiveTask=L.canRollbackStatus=L.canVoteOnEffort=L.canTrashEffort=L.canMarkDone=L.canStartEffort=L.canMoveToBacklog=L.canSetDraftStatus=L.canShiftDayForward=L.canShiftDayBackward=L.canPlanForEvening=L.canPlanOnToday=L.canSetActiveFocus=L.canCreateChildArea=L.canConvertProjectToTask=L.canMoveToToDo=L.canMoveToAnalysis=L.canCreateProject=L.canSetCriticalityZone=L.canConvertTaskToProject=L.canCreateRelatedTask=L.canCreateTask=L.isPrototypeClass=L.inheritsFromPrototype=L.isCurrentDateGteDay=L.extractDailyNoteDate=L.hasPlannedStartTimestamp=L.isPlannedForToday=L.getTodayDateString=L.needsFolderRepair=L.hasEmptyProperties=L.isAssetArchived=L.hasStatus=L.isEffort=L.isAreaOrProject=L.hasClass=void 0;var En=_o();Object.defineProperty(L,"hasClass",{enumerable:!0,get:o(function(){return En.hasClass},"get")});Object.defineProperty(L,"isAreaOrProject",{enumerable:!0,get:o(function(){return En.isAreaOrProject},"get")});Object.defineProperty(L,"isEffort",{enumerable:!0,get:o(function(){return En.isEffort},"get")});Object.defineProperty(L,"hasStatus",{enumerable:!0,get:o(function(){return En.hasStatus},"get")});Object.defineProperty(L,"isAssetArchived",{enumerable:!0,get:o(function(){return En.isAssetArchived},"get")});Object.defineProperty(L,"hasEmptyProperties",{enumerable:!0,get:o(function(){return En.hasEmptyProperties},"get")});Object.defineProperty(L,"needsFolderRepair",{enumerable:!0,get:o(function(){return En.needsFolderRepair},"get")});Object.defineProperty(L,"getTodayDateString",{enumerable:!0,get:o(function(){return En.getTodayDateString},"get")});Object.defineProperty(L,"isPlannedForToday",{enumerable:!0,get:o(function(){return En.isPlannedForToday},"get")});Object.defineProperty(L,"hasPlannedStartTimestamp",{enumerable:!0,get:o(function(){return En.hasPlannedStartTimestamp},"get")});Object.defineProperty(L,"extractDailyNoteDate",{enumerable:!0,get:o(function(){return En.extractDailyNoteDate},"get")});Object.defineProperty(L,"isCurrentDateGteDay",{enumerable:!0,get:o(function(){return En.isCurrentDateGteDay},"get")});Object.defineProperty(L,"inheritsFromPrototype",{enumerable:!0,get:o(function(){return En.inheritsFromPrototype},"get")});Object.defineProperty(L,"isPrototypeClass",{enumerable:!0,get:o(function(){return En.isPrototypeClass},"get")});var mh=ST();Object.defineProperty(L,"canCreateTask",{enumerable:!0,get:o(function(){return mh.canCreateTask},"get")});Object.defineProperty(L,"canCreateRelatedTask",{enumerable:!0,get:o(function(){return mh.canCreateRelatedTask},"get")});Object.defineProperty(L,"canConvertTaskToProject",{enumerable:!0,get:o(function(){return mh.canConvertTaskToProject},"get")});Object.defineProperty(L,"canSetCriticalityZone",{enumerable:!0,get:o(function(){return mh.canSetCriticalityZone},"get")});var gh=vT();Object.defineProperty(L,"canCreateProject",{enumerable:!0,get:o(function(){return gh.canCreateProject},"get")});Object.defineProperty(L,"canMoveToAnalysis",{enumerable:!0,get:o(function(){return gh.canMoveToAnalysis},"get")});Object.defineProperty(L,"canMoveToToDo",{enumerable:!0,get:o(function(){return gh.canMoveToToDo},"get")});Object.defineProperty(L,"canConvertProjectToTask",{enumerable:!0,get:o(function(){return gh.canConvertProjectToTask},"get")});var CT=ET();Object.defineProperty(L,"canCreateChildArea",{enumerable:!0,get:o(function(){return CT.canCreateChildArea},"get")});Object.defineProperty(L,"canSetActiveFocus",{enumerable:!0,get:o(function(){return CT.canSetActiveFocus},"get")});var kn=AT();Object.defineProperty(L,"canPlanOnToday",{enumerable:!0,get:o(function(){return kn.canPlanOnToday},"get")});Object.defineProperty(L,"canPlanForEvening",{enumerable:!0,get:o(function(){return kn.canPlanForEvening},"get")});Object.defineProperty(L,"canShiftDayBackward",{enumerable:!0,get:o(function(){return kn.canShiftDayBackward},"get")});Object.defineProperty(L,"canShiftDayForward",{enumerable:!0,get:o(function(){return kn.canShiftDayForward},"get")});Object.defineProperty(L,"canSetDraftStatus",{enumerable:!0,get:o(function(){return kn.canSetDraftStatus},"get")});Object.defineProperty(L,"canMoveToBacklog",{enumerable:!0,get:o(function(){return kn.canMoveToBacklog},"get")});Object.defineProperty(L,"canStartEffort",{enumerable:!0,get:o(function(){return kn.canStartEffort},"get")});Object.defineProperty(L,"canMarkDone",{enumerable:!0,get:o(function(){return kn.canMarkDone},"get")});Object.defineProperty(L,"canTrashEffort",{enumerable:!0,get:o(function(){return kn.canTrashEffort},"get")});Object.defineProperty(L,"canVoteOnEffort",{enumerable:!0,get:o(function(){return kn.canVoteOnEffort},"get")});Object.defineProperty(L,"canRollbackStatus",{enumerable:!0,get:o(function(){return kn.canRollbackStatus},"get")});Object.defineProperty(L,"canArchiveTask",{enumerable:!0,get:o(function(){return kn.canArchiveTask},"get")});Object.defineProperty(L,"canMarkReviewed",{enumerable:!0,get:o(function(){return kn.canMarkReviewed},"get")});var is=xT();Object.defineProperty(L,"canCreateEvent",{enumerable:!0,get:o(function(){return is.canCreateEvent},"get")});Object.defineProperty(L,"canCreateInstance",{enumerable:!0,get:o(function(){return is.canCreateInstance},"get")});Object.defineProperty(L,"canCleanProperties",{enumerable:!0,get:o(function(){return is.canCleanProperties},"get")});Object.defineProperty(L,"canRepairFolder",{enumerable:!0,get:o(function(){return is.canRepairFolder},"get")});Object.defineProperty(L,"canRenameToUid",{enumerable:!0,get:o(function(){return is.canRenameToUid},"get")});Object.defineProperty(L,"canCopyLabelToAliases",{enumerable:!0,get:o(function(){return is.canCopyLabelToAliases},"get")});Object.defineProperty(L,"canCreateNarrowerConcept",{enumerable:!0,get:o(function(){return is.canCreateNarrowerConcept},"get")});Object.defineProperty(L,"canCreateSubclass",{enumerable:!0,get:o(function(){return is.canCreateSubclass},"get")});Object.defineProperty(L,"canCreateTaskForDailyNote",{enumerable:!0,get:o(function(){return is.canCreateTaskForDailyNote},"get")});Object.defineProperty(L,"canCopyFleetingNoteLabel",{enumerable:!0,get:o(function(){return is.canCopyFleetingNoteLabel},"get")})});var RT=S(So=>{"use strict";var Yk=So&&So.__createBinding||(Object.create?(function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[t]},"get")}),Object.defineProperty(n,r,i)}):(function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]})),Kk=So&&So.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Yk(e,n,t)};Object.defineProperty(So,"__esModule",{value:!0});Kk(IT(),So)});var yh=S(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.PropertyFieldType=void 0;Mu.rangeToFieldType=Zk;var Fr;(function(n){n.Text="text",n.Number="number",n.Date="date",n.DateTime="datetime",n.Boolean="boolean",n.Reference="reference",n.Enum="enum",n.StatusSelect="status-select",n.SizeSelect="size-select",n.Wikilink="wikilink",n.Timestamp="timestamp",n.Unknown="unknown"})(Fr||(Mu.PropertyFieldType=Fr={}));var PT="http://www.w3.org/2001/XMLSchema#",Xk="https://exocortex.my/ontology/exo#",Jk="https://exocortex.my/ontology/ems#";function Zk(n){if(!n)return Fr.Unknown;let e=n.trim();if(!e)return Fr.Unknown;if(e.startsWith(PT)){let t=e.substring(PT.length);return $0(t)}if(e.startsWith("xsd:")){let t=e.substring(4);return $0(t)}if(e.includes("XMLSchema#")){let t=e.indexOf("XMLSchema#"),r=e.substring(t+10);return $0(r)}return e.startsWith(Jk)||e.startsWith("ems:")?e4(e):e.startsWith(Xk)||e.startsWith("exo:")||t4(e)?Fr.Reference:Fr.Text}o(Zk,"rangeToFieldType");function $0(n){switch(n.toLowerCase()){case"string":case"normalizedstring":case"token":case"language":case"nmtoken":case"name":case"ncname":case"anyuri":return Fr.Text;case"integer":case"int":case"long":case"short":case"byte":case"nonnegativeinteger":case"positiveinteger":case"nonpositiveinteger":case"negativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"decimal":case"float":case"double":return Fr.Number;case"date":return Fr.Date;case"datetime":case"datetimestamp":return Fr.DateTime;case"boolean":return Fr.Boolean;case"time":return Fr.Timestamp;default:return Fr.Text}}o($0,"xsdTypeToFieldType");function e4(n){let e=n.toLowerCase();return e.includes("effortstatus")?Fr.StatusSelect:e.includes("tasksize")?Fr.SizeSelect:Fr.Reference}o(e4,"emsTypeToFieldType");function t4(n){let e=n.toLowerCase();return e.includes("exocortex.my/ontology")?!0:["asset","task","project","area","effort","class","property","concept"].some(r=>e.includes(r))}o(t4,"isClassReference")});var B0=S(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.propertyNameToUri=r4;ju.uriToPropertyName=OT;ju.extractPropertyLabel=n4;function r4(n){return n.replace(/^([a-z]+)__/,"$1:")}o(r4,"propertyNameToUri");function OT(n){if(n.startsWith("http://")||n.startsWith("https://")){let e=n.match(/\/([a-z]+)#([A-Za-z0-9_]+)$/);if(e)return`${e[1]}__${e[2]}`;let t=n.lastIndexOf("#"),r=n.lastIndexOf("/"),i=Math.max(t,r);return i>=0?n.substring(i+1):n}return n.replace(/^([a-z]+):/,"$1__")}o(OT,"uriToPropertyName");function n4(n){let r=(n.includes(":")?OT(n):n).replace(/^[a-z]+__/,"").split("_");return(r.length>1?r.slice(1).join(" "):r[0]).replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,s=>s.toUpperCase())}o(n4,"extractPropertyLabel")});var _h={};Dy(_h,{__assign:()=>U0,__asyncDelegator:()=>g4,__asyncGenerator:()=>m4,__asyncValues:()=>y4,__await:()=>$u,__awaiter:()=>l4,__classPrivateFieldGet:()=>b4,__classPrivateFieldSet:()=>w4,__createBinding:()=>f4,__decorate:()=>a4,__exportStar:()=>d4,__extends:()=>i4,__generator:()=>u4,__importDefault:()=>v4,__importStar:()=>S4,__makeTemplateObject:()=>_4,__metadata:()=>c4,__param:()=>o4,__read:()=>FT,__rest:()=>s4,__spread:()=>h4,__spreadArrays:()=>p4,__values:()=>q0});function i4(n,e){V0(n,e);function t(){this.constructor=n}o(t,"__"),n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function s4(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]]);return t}function a4(n,e,t,r){var i=arguments.length,s=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var c=n.length-1;c>=0;c--)(a=n[c])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}function o4(n,e){return function(t,r){e(t,r,n)}}function c4(n,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,e)}function l4(n,e,t,r){function i(s){return s instanceof t?s:new t(function(a){a(s)})}return o(i,"adopt"),new(t||(t=Promise))(function(s,a){function c(f){try{u(r.next(f))}catch(d){a(d)}}o(c,"fulfilled");function l(f){try{u(r.throw(f))}catch(d){a(d)}}o(l,"rejected");function u(f){f.done?s(f.value):i(f.value).then(c,l)}o(u,"step"),u((r=r.apply(n,e||[])).next())})}function u4(n,e){var t={label:0,sent:o(function(){if(s[0]&1)throw s[1];return s[1]},"sent"),trys:[],ops:[]},r,i,s,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(u){return function(f){return l([u,f])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){t.label=u[1];break}if(u[0]===6&&t.label<s[1]){t.label=s[1],s=u;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(u);break}s[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(n,t)}catch(f){u=[6,f],i=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function f4(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}function d4(n,e){for(var t in n)t!=="default"&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function q0(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:o(function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}},"next")};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function FT(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,s=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(c){a={error:c}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return s}function h4(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(FT(arguments[e]));return n}function p4(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var r=Array(n),i=0,e=0;e<t;e++)for(var s=arguments[e],a=0,c=s.length;a<c;a++,i++)r[i]=s[a];return r}function $u(n){return this instanceof $u?(this.v=n,this):new $u(n)}function m4(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(n,e||[]),i,s=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(h){r[h]&&(i[h]=function(p){return new Promise(function(_,v){s.push([h,p,_,v])>1||c(h,p)})})}function c(h,p){try{l(r[h](p))}catch(_){d(s[0][3],_)}}function l(h){h.value instanceof $u?Promise.resolve(h.value.v).then(u,f):d(s[0][2],h)}function u(h){c("next",h)}function f(h){c("throw",h)}function d(h,p){h(p),s.shift(),s.length&&c(s[0][0],s[0][1])}}function g4(n){var e,t;return e={},r("next"),r("throw",function(i){throw i}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(i,s){e[i]=n[i]?function(a){return(t=!t)?{value:$u(n[i](a)),done:i==="return"}:s?s(a):a}:s}}function y4(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof q0=="function"?q0(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=n[s]&&function(a){return new Promise(function(c,l){a=n[s](a),i(c,l,a.done,a.value)})}}function i(s,a,c,l){Promise.resolve(l).then(function(u){s({value:u,done:c})},a)}}function _4(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}function S4(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)Object.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e.default=n,e}function v4(n){return n&&n.__esModule?n:{default:n}}function b4(n,e){if(!e.has(n))throw new TypeError("attempted to get private field on non-instance");return e.get(n)}function w4(n,e,t){if(!e.has(n))throw new TypeError("attempted to set private field on non-instance");return e.set(n,t),t}var V0,U0,Sh=sN(()=>{V0=o(function(n,e){return V0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])},V0(n,e)},"extendStatics");o(i4,"__extends");U0=o(function(){return U0=Object.assign||o(function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},"__assign"),U0.apply(this,arguments)},"__assign");o(s4,"__rest");o(a4,"__decorate");o(o4,"__param");o(c4,"__metadata");o(l4,"__awaiter");o(u4,"__generator");o(f4,"__createBinding");o(d4,"__exportStar");o(q0,"__values");o(FT,"__read");o(h4,"__spread");o(p4,"__spreadArrays");o($u,"__await");o(m4,"__asyncGenerator");o(g4,"__asyncDelegator");o(y4,"__asyncValues");o(_4,"__makeTemplateObject");o(S4,"__importStar");o(v4,"__importDefault");o(b4,"__classPrivateFieldGet");o(w4,"__classPrivateFieldSet")});var z0=S(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0});var W0;(function(n){n[n.Transient=0]="Transient",n[n.Singleton=1]="Singleton",n[n.ResolutionScoped=2]="ResolutionScoped",n[n.ContainerScoped=3]="ContainerScoped"})(W0||(W0={}));G0.default=W0});var DT=S(H0=>{"use strict";Object.defineProperty(H0,"__esModule",{value:!0});var E4=z0();Object.defineProperty(H0,"Lifecycle",{enumerable:!0,get:o(function(){return E4.default},"get")})});var vo=S(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.defineInjectionTokenMetadata=ui.getParamInfo=ui.INJECTION_TOKEN_METADATA_KEY=void 0;ui.INJECTION_TOKEN_METADATA_KEY="injectionTokens";function T4(n){let e=Reflect.getMetadata("design:paramtypes",n)||[],t=Reflect.getOwnMetadata(ui.INJECTION_TOKEN_METADATA_KEY,n)||{};return Object.keys(t).forEach(r=>{e[+r]=t[r]}),e}o(T4,"getParamInfo");ui.getParamInfo=T4;function A4(n,e){return function(t,r,i){let s=Reflect.getOwnMetadata(ui.INJECTION_TOKEN_METADATA_KEY,t)||{};s[i]=e?{token:n,transform:e.transformToken,transformArgs:e.args||[]}:n,Reflect.defineMetadata(ui.INJECTION_TOKEN_METADATA_KEY,s,t)}}o(A4,"defineInjectionTokenMetadata");ui.defineInjectionTokenMetadata=A4});var Q0=S(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.isClassProvider=void 0;function x4(n){return!!n.useClass}o(x4,"isClassProvider");vh.isClassProvider=x4});var Y0=S(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.isFactoryProvider=void 0;function C4(n){return!!n.useFactory}o(C4,"isFactoryProvider");bh.isFactoryProvider=C4});var Eh=S(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.delay=Tc.DelayedConstructor=void 0;var wh=class{static{o(this,"DelayedConstructor")}constructor(e){this.wrap=e,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}createProxy(e){let t={},r=!1,i,s=o(()=>(r||(i=e(this.wrap()),r=!0),i),"delayedObject");return new Proxy(t,this.createHandler(s))}createHandler(e){let t={},r=o(i=>{t[i]=(...s)=>{s[0]=e();let a=Reflect[i];return a(...s)}},"install");return this.reflectMethods.forEach(r),t}};Tc.DelayedConstructor=wh;function I4(n){if(typeof n>"u")throw new Error("Attempt to `delay` undefined. Constructor must be wrapped in a callback");return new wh(n)}o(I4,"delay");Tc.delay=I4});var Th=S(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.isConstructorToken=ss.isTransformDescriptor=ss.isTokenDescriptor=ss.isNormalToken=void 0;var R4=Eh();function P4(n){return typeof n=="string"||typeof n=="symbol"}o(P4,"isNormalToken");ss.isNormalToken=P4;function O4(n){return typeof n=="object"&&"token"in n&&"multiple"in n}o(O4,"isTokenDescriptor");ss.isTokenDescriptor=O4;function F4(n){return typeof n=="object"&&"token"in n&&"transform"in n}o(F4,"isTransformDescriptor");ss.isTransformDescriptor=F4;function D4(n){return typeof n=="function"||n instanceof R4.DelayedConstructor}o(D4,"isConstructorToken");ss.isConstructorToken=D4});var K0=S(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});Ah.isTokenProvider=void 0;function N4(n){return!!n.useToken}o(N4,"isTokenProvider");Ah.isTokenProvider=N4});var X0=S(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.isValueProvider=void 0;function L4(n){return n.useValue!=null}o(L4,"isValueProvider");xh.isValueProvider=L4});var J0=S(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});var k4=Q0();Object.defineProperty(bo,"isClassProvider",{enumerable:!0,get:o(function(){return k4.isClassProvider},"get")});var M4=Y0();Object.defineProperty(bo,"isFactoryProvider",{enumerable:!0,get:o(function(){return M4.isFactoryProvider},"get")});var j4=Th();Object.defineProperty(bo,"isNormalToken",{enumerable:!0,get:o(function(){return j4.isNormalToken},"get")});var $4=K0();Object.defineProperty(bo,"isTokenProvider",{enumerable:!0,get:o(function(){return $4.isTokenProvider},"get")});var B4=X0();Object.defineProperty(bo,"isValueProvider",{enumerable:!0,get:o(function(){return B4.isValueProvider},"get")})});var NT=S(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.isProvider=void 0;var V4=Q0(),U4=X0(),q4=K0(),W4=Y0();function G4(n){return V4.isClassProvider(n)||U4.isValueProvider(n)||q4.isTokenProvider(n)||W4.isFactoryProvider(n)}o(G4,"isProvider");Ch.isProvider=G4});var t_=S(e_=>{"use strict";Object.defineProperty(e_,"__esModule",{value:!0});var Z0=class{static{o(this,"RegistryBase")}constructor(){this._registryMap=new Map}entries(){return this._registryMap.entries()}getAll(e){return this.ensure(e),this._registryMap.get(e)}get(e){this.ensure(e);let t=this._registryMap.get(e);return t[t.length-1]||null}set(e,t){this.ensure(e),this._registryMap.get(e).push(t)}setAll(e,t){this._registryMap.set(e,t)}has(e){return this.ensure(e),this._registryMap.get(e).length>0}clear(){this._registryMap.clear()}ensure(e){this._registryMap.has(e)||this._registryMap.set(e,[])}};e_.default=Z0});var LT=S(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0});var z4=t_(),r_=class extends z4.default{static{o(this,"Registry")}};n_.default=r_});var kT=S(s_=>{"use strict";Object.defineProperty(s_,"__esModule",{value:!0});var i_=class{static{o(this,"ResolutionContext")}constructor(){this.scopedResolutions=new Map}};s_.default=i_});var a_=S(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.formatErrorCtor=void 0;function H4(n,e){return n===null?`at position #${e}`:`"${n.split(",")[e].trim()}" at position #${e}`}o(H4,"formatDependency");function Q4(n,e,t=" "){return[n,...e.message.split(`
|
|
32
32
|
`).map(r=>t+r)].join(`
|
|
33
|
-
`)}o(Q4,"composeErrorMessage");function Y4(n,e,t){let[,r=null]=n.toString().match(/constructor\(([\w, ]+)\)/)||[],i=H4(r,e);return Q4(`Cannot inject the dependency ${i} of "${n.name}" constructor. Reason:`,t)}o(Y4,"formatErrorCtor");Ih.formatErrorCtor=Y4});var MT=S(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});Rh.isDisposable=void 0;function K4(n){return!(typeof n.dispose!="function"||n.dispose.length>0)}o(K4,"isDisposable");Rh.isDisposable=K4});var $T=S(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.PostResolutionInterceptors=wo.PreResolutionInterceptors=void 0;var jT=t_(),Ph=class extends jT.default{static{o(this,"PreResolutionInterceptors")}};wo.PreResolutionInterceptors=Ph;var Oh=class extends jT.default{static{o(this,"PostResolutionInterceptors")}};wo.PostResolutionInterceptors=Oh;var o_=class{static{o(this,"Interceptors")}constructor(){this.preResolution=new Ph,this.postResolution=new Oh}};wo.default=o_});var wa=S(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.instance=Vs.typeInfo=void 0;var X4=(Sh(),Bd(_h)),cn=J0(),J4=NT(),Fh=Th(),Z4=LT(),Tn=z0(),Dh=kT(),eM=a_(),tM=Eh(),rM=MT(),nM=$T();Vs.typeInfo=new Map;var c_=class n{static{o(this,"InternalDependencyContainer")}constructor(e){this.parent=e,this._registry=new Z4.default,this.interceptors=new nM.default,this.disposed=!1,this.disposables=new Set}register(e,t,r={lifecycle:Tn.default.Transient}){this.ensureNotDisposed();let i;if(J4.isProvider(t)?i=t:i={useClass:t},cn.isTokenProvider(i)){let s=[e],a=i;for(;a!=null;){let c=a.useToken;if(s.includes(c))throw new Error(`Token registration cycle detected! ${[...s,c].join(" -> ")}`);s.push(c);let l=this._registry.get(c);l&&cn.isTokenProvider(l.provider)?a=l.provider:a=null}}if((r.lifecycle===Tn.default.Singleton||r.lifecycle==Tn.default.ContainerScoped||r.lifecycle==Tn.default.ResolutionScoped)&&(cn.isValueProvider(i)||cn.isFactoryProvider(i)))throw new Error(`Cannot use lifecycle "${Tn.default[r.lifecycle]}" with ValueProviders or FactoryProviders`);return this._registry.set(e,{provider:i,options:r}),this}registerType(e,t){return this.ensureNotDisposed(),cn.isNormalToken(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})}registerInstance(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})}registerSingleton(e,t){if(this.ensureNotDisposed(),cn.isNormalToken(e)){if(cn.isNormalToken(t))return this.register(e,{useToken:t},{lifecycle:Tn.default.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:Tn.default.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}let r=e;return t&&!cn.isNormalToken(t)&&(r=t),this.register(e,{useClass:r},{lifecycle:Tn.default.Singleton})}resolve(e,t=new Dh.default,r=!1){this.ensureNotDisposed();let i=this.getRegistration(e);if(!i&&cn.isNormalToken(e)){if(r)return;throw new Error(`Attempted to resolve unregistered dependency token: "${e.toString()}"`)}if(this.executePreResolutionInterceptor(e,"Single"),i){let s=this.resolveRegistration(i,t);return this.executePostResolutionInterceptor(e,s,"Single"),s}if(Fh.isConstructorToken(e)){let s=this.construct(e,t);return this.executePostResolutionInterceptor(e,s,"Single"),s}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")}executePreResolutionInterceptor(e,t){if(this.interceptors.preResolution.has(e)){let r=[];for(let i of this.interceptors.preResolution.getAll(e))i.options.frequency!="Once"&&r.push(i),i.callback(e,t);this.interceptors.preResolution.setAll(e,r)}}executePostResolutionInterceptor(e,t,r){if(this.interceptors.postResolution.has(e)){let i=[];for(let s of this.interceptors.postResolution.getAll(e))s.options.frequency!="Once"&&i.push(s),s.callback(e,t,r);this.interceptors.postResolution.setAll(e,i)}}resolveRegistration(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===Tn.default.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);let r=e.options.lifecycle===Tn.default.Singleton,i=e.options.lifecycle===Tn.default.ContainerScoped,s=r||i,a;return cn.isValueProvider(e.provider)?a=e.provider.useValue:cn.isTokenProvider(e.provider)?a=s?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):cn.isClassProvider(e.provider)?a=s?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):cn.isFactoryProvider(e.provider)?a=e.provider.useFactory(this):a=this.construct(e.provider,t),e.options.lifecycle===Tn.default.ResolutionScoped&&t.scopedResolutions.set(e,a),a}resolveAll(e,t=new Dh.default,r=!1){this.ensureNotDisposed();let i=this.getAllRegistrations(e);if(!i&&cn.isNormalToken(e)){if(r)return[];throw new Error(`Attempted to resolve unregistered dependency token: "${e.toString()}"`)}if(this.executePreResolutionInterceptor(e,"All"),i){let a=i.map(c=>this.resolveRegistration(c,t));return this.executePostResolutionInterceptor(e,a,"All"),a}let s=[this.construct(e,t)];return this.executePostResolutionInterceptor(e,s,"All"),s}isRegistered(e,t=!1){return this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)}reset(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()}clearInstances(){this.ensureNotDisposed();for(let[e,t]of this._registry.entries())this._registry.setAll(e,t.filter(r=>!cn.isValueProvider(r.provider)).map(r=>(r.instance=void 0,r)))}createChildContainer(){this.ensureNotDisposed();let e=new n(this);for(let[t,r]of this._registry.entries())r.some(({options:i})=>i.lifecycle===Tn.default.ContainerScoped)&&e._registry.setAll(t,r.map(i=>i.options.lifecycle===Tn.default.ContainerScoped?{provider:i.provider,options:i.options}:i));return e}beforeResolution(e,t,r={frequency:"Always"}){this.interceptors.preResolution.set(e,{callback:t,options:r})}afterResolution(e,t,r={frequency:"Always"}){this.interceptors.postResolution.set(e,{callback:t,options:r})}dispose(){return X4.__awaiter(this,void 0,void 0,function*(){this.disposed=!0;let e=[];this.disposables.forEach(t=>{let r=t.dispose();r&&e.push(r)}),yield Promise.all(e)})}getRegistration(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null}getAllRegistrations(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null}construct(e,t){if(e instanceof tM.DelayedConstructor)return e.createProxy(i=>this.resolve(i,t));let r=(()=>{let i=Vs.typeInfo.get(e);if(!i||i.length===0){if(e.length===0)return new e;throw new Error(`TypeInfo not known for "${e.name}"`)}let s=i.map(this.resolveParams(t,e));return new e(...s)})();return rM.isDisposable(r)&&this.disposables.add(r),r}resolveParams(e,t){return(r,i)=>{try{return Fh.isTokenDescriptor(r)?Fh.isTransformDescriptor(r)?r.multiple?this.resolve(r.transform).transform(this.resolveAll(r.token,new Dh.default,r.isOptional),...r.transformArgs):this.resolve(r.transform).transform(this.resolve(r.token,e,r.isOptional),...r.transformArgs):r.multiple?this.resolveAll(r.token,new Dh.default,r.isOptional):this.resolve(r.token,e,r.isOptional):Fh.isTransformDescriptor(r)?this.resolve(r.transform,e).transform(this.resolve(r.token,e),...r.transformArgs):this.resolve(r,e)}catch(s){throw new Error(eM.formatErrorCtor(t,i,s))}}}ensureNotDisposed(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")}};Vs.instance=new c_;Vs.default=Vs.instance});var BT=S(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});var iM=vo(),Us=wa(),l_=Th(),sM=a_();function aM(){return function(n){let e=iM.getParamInfo(n);return class extends n{constructor(...t){super(...t.concat(e.slice(t.length).map((r,i)=>{try{return l_.isTokenDescriptor(r)?l_.isTransformDescriptor(r)?r.multiple?Us.instance.resolve(r.transform).transform(Us.instance.resolveAll(r.token),...r.transformArgs):Us.instance.resolve(r.transform).transform(Us.instance.resolve(r.token),...r.transformArgs):r.multiple?Us.instance.resolveAll(r.token):Us.instance.resolve(r.token):l_.isTransformDescriptor(r)?Us.instance.resolve(r.transform).transform(Us.instance.resolve(r.token),...r.transformArgs):Us.instance.resolve(r)}catch(s){let a=i+t.length;throw new Error(sM.formatErrorCtor(n,a,s))}})))}}}}o(aM,"autoInjectable");u_.default=aM});var VT=S(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0});var oM=vo();function cM(n,e){let t={token:n,multiple:!1,isOptional:e&&e.isOptional};return oM.defineInjectionTokenMetadata(t)}o(cM,"inject");f_.default=cM});var Nh=S(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0});var lM=vo(),uM=wa(),UT=wa();function fM(n){return function(e){uM.typeInfo.set(e,lM.getParamInfo(e)),n&&n.token&&(Array.isArray(n.token)?n.token.forEach(t=>{UT.instance.register(t,e)}):UT.instance.register(n.token,e))}}o(fM,"injectable");d_.default=fM});var qT=S(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});var dM=(Sh(),Bd(_h)),hM=wa();function pM(n=[]){return function(e){return n.forEach(t=>{var{token:r,options:i}=t,s=dM.__rest(t,["token","options"]);return hM.instance.register(r,s,i)}),e}}o(pM,"registry");h_.default=pM});var WT=S(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0});var mM=Nh(),gM=wa();function yM(){return function(n){mM.default()(n),gM.instance.registerSingleton(n)}}o(yM,"singleton");p_.default=yM});var GT=S(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});var _M=vo();function SM(n,e){let t={token:n,multiple:!0,isOptional:e&&e.isOptional};return _M.defineInjectionTokenMetadata(t)}o(SM,"injectAll");m_.default=SM});var zT=S(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});var vM=vo();function bM(n,e,...t){let r={token:n,multiple:!0,transform:e,transformArgs:t};return vM.defineInjectionTokenMetadata(r)}o(bM,"injectAllWithTransform");g_.default=bM});var HT=S(y_=>{"use strict";Object.defineProperty(y_,"__esModule",{value:!0});var wM=vo();function EM(n,e,...t){return wM.defineInjectionTokenMetadata(n,{transformToken:e,args:t})}o(EM,"injectWithTransform");y_.default=EM});var QT=S(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0});var TM=Nh(),AM=wa();function xM(n,e){return function(t){TM.default()(t),AM.instance.register(e||t,t,{lifecycle:n})}}o(xM,"scoped");__.default=xM});var YT=S(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});var CM=BT();Object.defineProperty(fi,"autoInjectable",{enumerable:!0,get:o(function(){return CM.default},"get")});var IM=VT();Object.defineProperty(fi,"inject",{enumerable:!0,get:o(function(){return IM.default},"get")});var RM=Nh();Object.defineProperty(fi,"injectable",{enumerable:!0,get:o(function(){return RM.default},"get")});var PM=qT();Object.defineProperty(fi,"registry",{enumerable:!0,get:o(function(){return PM.default},"get")});var OM=WT();Object.defineProperty(fi,"singleton",{enumerable:!0,get:o(function(){return OM.default},"get")});var FM=GT();Object.defineProperty(fi,"injectAll",{enumerable:!0,get:o(function(){return FM.default},"get")});var DM=zT();Object.defineProperty(fi,"injectAllWithTransform",{enumerable:!0,get:o(function(){return DM.default},"get")});var NM=HT();Object.defineProperty(fi,"injectWithTransform",{enumerable:!0,get:o(function(){return NM.default},"get")});var LM=QT();Object.defineProperty(fi,"scoped",{enumerable:!0,get:o(function(){return LM.default},"get")})});var KT=S(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0});function kM(n){let e;return t=>(e==null&&(e=n(t)),e)}o(kM,"instanceCachingFactory");S_.default=kM});var XT=S(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0});function MM(n){let e=new WeakMap;return t=>{let r=e.get(t);return r==null&&(r=n(t),e.set(t,r)),r}}o(MM,"instancePerContainerCachingFactory");v_.default=MM});var JT=S(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0});function jM(n,e,t,r=!0){let i,s;return a=>{let c=n(a);return(!r||s!==c)&&((s=c)?i=a.resolve(e):i=a.resolve(t)),i}}o(jM,"predicateAwareClassFactory");b_.default=jM});var ZT=S(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var $M=KT();Object.defineProperty(Bu,"instanceCachingFactory",{enumerable:!0,get:o(function(){return $M.default},"get")});var BM=XT();Object.defineProperty(Bu,"instancePerContainerCachingFactory",{enumerable:!0,get:o(function(){return BM.default},"get")});var VM=JT();Object.defineProperty(Bu,"predicateAwareClassFactory",{enumerable:!0,get:o(function(){return VM.default},"get")})});var le=S(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var w_=(Sh(),Bd(_h));if(typeof Reflect>"u"||!Reflect.getMetadata)throw new Error(`tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.`);var UM=DT();Object.defineProperty(Ea,"Lifecycle",{enumerable:!0,get:o(function(){return UM.Lifecycle},"get")});w_.__exportStar(YT(),Ea);w_.__exportStar(ZT(),Ea);w_.__exportStar(J0(),Ea);var qM=Eh();Object.defineProperty(Ea,"delay",{enumerable:!0,get:o(function(){return qM.delay},"get")});var WM=wa();Object.defineProperty(Ea,"container",{enumerable:!0,get:o(function(){return WM.instance},"get")})});var Ac=S(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});Lh.NullLogger=void 0;Lh.NullLogger={debug(){},info(){},warn(){},error(){}}});var E_=S((hee,eA)=>{var xc=class{static{o(this,"Wildcard")}constructor(){return GM||this}equals(e){return e&&this.termType===e.termType}};Object.defineProperty(xc.prototype,"value",{enumerable:!0,value:"*"});Object.defineProperty(xc.prototype,"termType",{enumerable:!0,value:"Wildcard"});var GM=new xc;eA.exports.Wildcard=xc});var rA=S((mee,tA)=>{var zM=(function(){var n=o(function(I,C,P,N){for(P=P||{},N=I.length;N--;P[I[N]]=C);return P},"o"),e=[6,12,13,15,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],t=[2,247],r=[100,110,113,115,116,123,126,131,329,330,331,332,333],i=[2,409],s=[1,18],a=[1,27],c=[13,16,45,197,224,229,308],l=[28,29,53],u=[28,53],f=[1,42],d=[1,45],h=[1,41],p=[1,44],_=[123,126],v=[1,67],E=[39,45,87],b=[13,16,45,197,224,308],A=[1,87],R=[2,281],B=[1,86],W=[13,16,45,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],we=[6,28,29,53,63,70,73,81,83,85],z=[6,13,16,28,29,53,63,70,73,81,83,85,87,308],G=[6,13,16,28,29,45,53,63,70,73,81,82,83,85,87,89,197,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314],F=[6,13,16,28,29,31,39,45,47,48,53,63,70,73,81,82,83,85,87,89,109,112,121,123,126,128,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,337,338,340,341,342,343,344,345,346],j=[13,16,308],te=[112,132,327,334],Ye=[13,16,112,132,308],st=[1,111],Pt=[1,117],at=[112,132,327,328,334],ct=[13,16,112,132,308,328],Ke=[28,29,45,53,87],ie=[1,138],V=[1,151],lt=[1,128],pt=[1,127],H=[1,129],Re=[1,140],Ue=[1,141],re=[1,142],qe=[1,143],We=[1,144],$e=[1,145],Ge=[1,147],Ae=[1,148],Be=[2,457],Pe=[1,158],Ve=[1,159],ze=[1,160],ue=[1,152],pe=[1,153],me=[1,156],fe=[1,171],de=[1,172],he=[1,173],ce=[1,174],ge=[1,175],ye=[1,176],_e=[1,167],Se=[1,168],ae=[1,169],ve=[1,170],Ze=[1,157],He=[1,166],Me=[1,161],w=[1,162],T=[1,163],x=[1,164],O=[1,165],Z=[6,13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],_t=[1,195],xt=[6,31,73,81,83,85],De=[2,285],U=[1,199],q=[1,201],Q=[6,31,70,73,81,83,85],K=[2,283],Ie=[1,207],tt=[1,218],rt=[1,223],Cr=[1,219],Sn=[1,225],Nn=[1,226],tn=[1,224],IE=[6,63,70,73,81,83,85],RE=[1,236],PE=[2,334],OE=[1,243],FE=[1,241],Ir=[6,193],_d=[2,349],DE=[2,339],ma=[28,128],NE=[47,48,193,272],Sd=[47,48,193,242,272],oc=[47,48,193,242,246,272],cc=[47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,341,342,343,344,345,346],mr=[39,47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,338,341,342,343,344,345,346],LE=[1,271],kE=[1,270],Xt=[6,13,16,29,31,39,45,47,48,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],ME=[1,281],jE=[1,280],rn=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],du=[45,89],vd=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],bd=[13,16,31,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],wd=[31,89],Ed=[48,87],ro=[6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338],Xi=[6,13,16,39,45,48,82,87,89,231,263,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338,340],$E=[1,313],lc=[6,85],dy=[6,31,81,83,85],BE=[2,361],Is=[2,353],no=[1,343],hu=[31,112,335],Rs=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],hy=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335],VE=[6,109,193],io=[31,112],Jt=[13,16,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],py=[1,390],my=[1,391],ga=[13,16,87,197,308,314],UE=[13,16,39,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],Td=[1,417],Ad=[1,418],qE=[13,16,48,197,229,308],ya=[6,31,85],WE=[6,13,16,31,45,73,81,83,85,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],gy=[6,13,16,29,31,45,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,231,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,346,347,348,349,350,351],so=[29,31,85,112,159,160,161,163,164],xd=[1,443],Cd=[1,444],GE=[1,449],ao=[31,112,193,232,318,335],Id=[13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],zE=[13,16,31,45,48,82,87,89,112,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],yy=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],pu=[13,16,31,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],mu=[31,45],HE=[1,507],QE=[1,508],YE=[6,13,16,29,31,39,45,47,48,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,336,338,341,342,343,344,345,346,347,348,349,350,351],Rd=[29,31,85,112,159,160,161,163,164,335],oo=[6,13,16,31,45,70,73,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],KE=[13,16,31,45,48,82,87,89,112,193,197,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],XE=[2,352],_y=[13,16,197,308,314],JE=[1,565],uc=[6,13,16,31,45,76,78,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],ZE=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],Ps=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],e2=[13,16,87,308],Os=[2,364],fc=[29,31,85,112,159,160,161,163,164,193,232,318,335],Pd=[31,112,193,232,272,318,335],Fs=[2,359],t2=[13,16,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Od=[29,31,85,112,159,160,161,163,164,193,232,272,318,335],r2=[13,16,31,45,82,87,89,112,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],n2=[2,347],Sy={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,QueryOrUpdate:3,Prologue:4,QueryOrUpdate_group0:5,EOF:6,Query:7,Qry:8,Query_option0:9,Prologue_repetition0:10,BaseDecl:11,BASE:12,IRIREF:13,PrefixDecl:14,PREFIX:15,PNAME_NS:16,SelectClauseWildcard:17,Qry_repetition0:18,WhereClause:19,SolutionModifierNoGroup:20,SelectClauseVars:21,Qry_repetition1:22,SolutionModifier:23,CONSTRUCT:24,ConstructTemplate:25,Qry_repetition2:26,Qry_repetition3:27,WHERE:28,"{":29,Qry_option0:30,"}":31,DESCRIBE:32,Qry_group0:33,Qry_repetition4:34,Qry_option1:35,ASK:36,Qry_repetition5:37,SelectClauseBase:38,"*":39,SelectClauseVars_repetition_plus0:40,SELECT:41,SelectClauseBase_option0:42,SelectClauseItem:43,Var:44,"(":45,Expression:46,AS:47,")":48,SubSelect:49,SubSelect_option0:50,SubSelect_option1:51,DatasetClause:52,FROM:53,DatasetClause_option0:54,iri:55,WhereClause_option0:56,GroupGraphPattern:57,SolutionModifier_option0:58,SolutionModifierNoGroup_option0:59,SolutionModifierNoGroup_option1:60,SolutionModifierNoGroup_option2:61,GroupClause:62,GROUP:63,BY:64,GroupClause_repetition_plus0:65,GroupCondition:66,BuiltInCall:67,FunctionCall:68,HavingClause:69,HAVING:70,HavingClause_repetition_plus0:71,OrderClause:72,ORDER:73,OrderClause_repetition_plus0:74,OrderCondition:75,ASC:76,BrackettedExpression:77,DESC:78,Constraint:79,LimitOffsetClauses:80,LIMIT:81,INTEGER:82,OFFSET:83,ValuesClause:84,VALUES:85,InlineData:86,VAR:87,InlineData_repetition0:88,NIL:89,InlineData_repetition1:90,InlineData_repetition_plus2:91,InlineData_repetition3:92,DataBlock:93,DataBlockValueList:94,DataBlockValueList_repetition_plus0:95,Update:96,Update_repetition0:97,Update1:98,Update_option0:99,LOAD:100,Update1_option0:101,Update1_option1:102,Update1_group0:103,Update1_option2:104,GraphRefAll:105,Update1_group1:106,Update1_option3:107,GraphOrDefault:108,TO:109,CREATE:110,Update1_option4:111,GRAPH:112,INSERTDATA:113,QuadPattern:114,DELETEDATA:115,DELETEWHERE:116,Update1_option5:117,InsertDeleteClause:118,Update1_repetition0:119,IntoGraphClause:120,INTO:121,GraphRef:122,DELETE:123,InsertDeleteClause_option0:124,InsertClause:125,INSERT:126,UsingClause:127,USING:128,UsingClause_option0:129,WithClause:130,WITH:131,DEFAULT:132,GraphOrDefault_option0:133,GraphRefAll_group0:134,Quads:135,Quads_option0:136,Quads_repetition0:137,QuadsNotTriples:138,VarOrIri:139,QuadsNotTriples_option0:140,QuadsNotTriples_option1:141,QuadsNotTriples_option2:142,TriplesTemplate:143,TriplesTemplate_repetition0:144,TriplesSameSubject:145,TriplesTemplate_option0:146,GroupGraphPatternSub:147,GroupGraphPatternSub_option0:148,GroupGraphPatternSub_repetition0:149,GroupGraphPatternSubTail:150,GraphPatternNotTriples:151,GroupGraphPatternSubTail_option0:152,GroupGraphPatternSubTail_option1:153,TriplesBlock:154,TriplesBlock_repetition0:155,TriplesSameSubjectPath:156,TriplesBlock_option0:157,GroupOrUnionGraphPattern:158,OPTIONAL:159,MINUS:160,SERVICE:161,GraphPatternNotTriples_option0:162,FILTER:163,BIND:164,InlineDataOneVar:165,InlineDataFull:166,InlineDataOneVar_repetition0:167,InlineDataFull_repetition0:168,InlineDataFull_repetition_plus1:169,InlineDataFull_repetition2:170,DataBlockValue:171,Literal:172,QuotedTriple:173,UNDEF:174,GroupOrUnionGraphPattern_repetition0:175,ArgList:176,ArgList_option0:177,ArgList_repetition0:178,ExpressionList:179,ExpressionList_repetition0:180,ConstructTemplate_option0:181,ConstructTriples:182,ConstructTriples_repetition0:183,ConstructTriples_option0:184,VarOrTermOrQuotedTP:185,PropertyListNotEmpty:186,TriplesNode:187,PropertyList:188,PropertyList_option0:189,VerbObjectList:190,PropertyListNotEmpty_repetition0:191,SemiOptionalVerbObjectList:192,";":193,SemiOptionalVerbObjectList_option0:194,Verb:195,ObjectList:196,a:197,ObjectList_repetition0:198,Object:199,GraphNode:200,Object_option0:201,PropertyListPathNotEmpty:202,TriplesNodePath:203,TriplesSameSubjectPath_option0:204,O:205,PropertyListPathNotEmpty_repetition0:206,PropertyListPathNotEmptyTail:207,O_group0:208,ObjectListPath:209,ObjectListPath_repetition0:210,ObjectPath:211,GraphNodePath:212,ObjectPath_option0:213,Path:214,Path_repetition0:215,PathSequence:216,PathSequence_repetition0:217,PathEltOrInverse:218,PathElt:219,PathPrimary:220,PathElt_option0:221,PathEltOrInverse_option0:222,IriOrA:223,"!":224,PathNegatedPropertySet:225,PathOneInPropertySet:226,PathNegatedPropertySet_repetition0:227,PathNegatedPropertySet_option0:228,"^":229,TriplesNode_repetition_plus0:230,"[":231,"]":232,TriplesNodePath_repetition_plus0:233,VarOrTermOrQuotedTPExpr:234,VarOrTerm:235,GraphTerm:236,BlankNode:237,ConditionalOrExpression:238,ConditionalAndExpression:239,ConditionalOrExpression_repetition0:240,ConditionalOrExpressionTail:241,"||":242,RelationalExpression:243,ConditionalAndExpression_repetition0:244,ConditionalAndExpressionTail:245,"&&":246,NumericExpression:247,RelationalExpression_group0:248,RelationalExpression_option0:249,IN:250,MultiplicativeExpression:251,NumericExpression_repetition0:252,AdditiveExpressionTail:253,AdditiveExpressionTail_group0:254,NumericLiteralPositive:255,AdditiveExpressionTail_repetition0:256,NumericLiteralNegative:257,AdditiveExpressionTail_repetition1:258,UnaryExpression:259,MultiplicativeExpression_repetition0:260,MultiplicativeExpressionTail:261,MultiplicativeExpressionTail_group0:262,"+":263,PrimaryExpression:264,"-":265,ExprQuotedTP:266,Aggregate:267,FUNC_ARITY0:268,FUNC_ARITY1:269,FUNC_ARITY1_SPARQL_STAR:270,FUNC_ARITY2:271,",":272,FUNC_ARITY3:273,FUNC_ARITY3_SPARQL_STAR:274,BuiltInCall_group0:275,BOUND:276,BNODE:277,BuiltInCall_option0:278,EXISTS:279,COUNT:280,Aggregate_option0:281,Aggregate_group0:282,FUNC_AGGREGATE:283,Aggregate_option1:284,GROUP_CONCAT:285,Aggregate_option2:286,Aggregate_option3:287,GroupConcatSeparator:288,SEPARATOR:289,"=":290,String:291,LANGTAG:292,"^^":293,DECIMAL:294,DOUBLE:295,BOOLEAN:296,INTEGER_POSITIVE:297,DECIMAL_POSITIVE:298,DOUBLE_POSITIVE:299,INTEGER_NEGATIVE:300,DECIMAL_NEGATIVE:301,DOUBLE_NEGATIVE:302,STRING_LITERAL1:303,STRING_LITERAL2:304,STRING_LITERAL_LONG1:305,STRING_LITERAL_LONG2:306,PrefixedName:307,PNAME_LN:308,BLANK_NODE_LABEL:309,ANON:310,QuotedTP:311,"<<":312,qtSubjectOrObject:313,">>":314,DataValueTerm:315,AnnotationPattern:316,"{|":317,"|}":318,AnnotationPatternPath:319,ExprVarOrTerm:320,QueryOrUpdate_group0_option0:321,Prologue_repetition0_group0:322,Qry_group0_repetition_plus0:323,SelectClauseBase_option0_group0:324,DISTINCT:325,REDUCED:326,NAMED:327,SILENT:328,CLEAR:329,DROP:330,ADD:331,MOVE:332,COPY:333,ALL:334,".":335,UNION:336,"|":337,"/":338,PathElt_option0_group0:339,"?":340,"!=":341,"<":342,">":343,"<=":344,">=":345,NOT:346,CONCAT:347,COALESCE:348,SUBSTR:349,REGEX:350,REPLACE:351,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",12:"BASE",13:"IRIREF",15:"PREFIX",16:"PNAME_NS",24:"CONSTRUCT",28:"WHERE",29:"{",31:"}",32:"DESCRIBE",36:"ASK",39:"*",41:"SELECT",45:"(",47:"AS",48:")",53:"FROM",63:"GROUP",64:"BY",70:"HAVING",73:"ORDER",76:"ASC",78:"DESC",81:"LIMIT",82:"INTEGER",83:"OFFSET",85:"VALUES",87:"VAR",89:"NIL",100:"LOAD",109:"TO",110:"CREATE",112:"GRAPH",113:"INSERTDATA",115:"DELETEDATA",116:"DELETEWHERE",121:"INTO",123:"DELETE",126:"INSERT",128:"USING",131:"WITH",132:"DEFAULT",159:"OPTIONAL",160:"MINUS",161:"SERVICE",163:"FILTER",164:"BIND",174:"UNDEF",193:";",197:"a",224:"!",229:"^",231:"[",232:"]",242:"||",246:"&&",250:"IN",263:"+",265:"-",268:"FUNC_ARITY0",269:"FUNC_ARITY1",270:"FUNC_ARITY1_SPARQL_STAR",271:"FUNC_ARITY2",272:",",273:"FUNC_ARITY3",274:"FUNC_ARITY3_SPARQL_STAR",276:"BOUND",277:"BNODE",279:"EXISTS",280:"COUNT",283:"FUNC_AGGREGATE",285:"GROUP_CONCAT",289:"SEPARATOR",290:"=",292:"LANGTAG",293:"^^",294:"DECIMAL",295:"DOUBLE",296:"BOOLEAN",297:"INTEGER_POSITIVE",298:"DECIMAL_POSITIVE",299:"DOUBLE_POSITIVE",300:"INTEGER_NEGATIVE",301:"DECIMAL_NEGATIVE",302:"DOUBLE_NEGATIVE",303:"STRING_LITERAL1",304:"STRING_LITERAL2",305:"STRING_LITERAL_LONG1",306:"STRING_LITERAL_LONG2",308:"PNAME_LN",309:"BLANK_NODE_LABEL",310:"ANON",312:"<<",314:">>",317:"{|",318:"|}",325:"DISTINCT",326:"REDUCED",327:"NAMED",328:"SILENT",329:"CLEAR",330:"DROP",331:"ADD",332:"MOVE",333:"COPY",334:"ALL",335:".",336:"UNION",337:"|",338:"/",340:"?",341:"!=",342:"<",343:">",344:"<=",345:">=",346:"NOT",347:"CONCAT",348:"COALESCE",349:"SUBSTR",350:"REGEX",351:"REPLACE"},productions_:[0,[3,3],[7,2],[4,1],[11,2],[14,3],[8,4],[8,4],[8,5],[8,7],[8,5],[8,4],[17,2],[21,2],[38,2],[43,1],[43,5],[49,4],[49,4],[52,3],[19,2],[23,2],[20,3],[62,3],[66,1],[66,1],[66,3],[66,5],[66,1],[69,2],[72,3],[75,2],[75,2],[75,1],[75,1],[80,2],[80,2],[80,4],[80,4],[84,2],[86,4],[86,4],[86,6],[86,2],[94,3],[96,3],[98,4],[98,3],[98,5],[98,4],[98,2],[98,2],[98,2],[98,5],[120,2],[118,3],[118,1],[125,2],[127,3],[130,2],[108,1],[108,2],[122,2],[105,1],[105,1],[114,3],[135,2],[138,7],[143,3],[57,3],[57,3],[147,2],[150,3],[154,3],[151,1],[151,2],[151,2],[151,3],[151,4],[151,2],[151,6],[151,1],[93,1],[93,1],[165,4],[166,4],[166,6],[171,1],[171,1],[171,1],[171,1],[158,2],[79,1],[79,1],[79,1],[68,2],[176,1],[176,5],[179,1],[179,4],[25,3],[182,3],[145,2],[145,2],[188,1],[186,2],[192,2],[190,2],[195,1],[195,1],[196,2],[199,2],[156,2],[156,2],[202,2],[207,1],[207,2],[205,2],[209,2],[211,2],[214,2],[216,2],[219,2],[218,2],[220,1],[220,2],[220,3],[225,1],[225,1],[225,4],[226,1],[226,2],[187,3],[187,3],[203,3],[203,3],[200,1],[200,1],[212,1],[212,1],[234,1],[235,1],[235,1],[139,1],[139,1],[44,1],[236,1],[236,1],[236,1],[236,1],[46,1],[238,2],[241,2],[239,2],[245,2],[243,1],[243,3],[243,4],[247,2],[253,2],[253,2],[253,2],[251,2],[261,2],[259,2],[259,2],[259,2],[259,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[77,3],[67,1],[67,2],[67,4],[67,4],[67,6],[67,8],[67,8],[67,2],[67,4],[67,2],[67,4],[67,3],[267,5],[267,5],[267,6],[288,4],[172,1],[172,2],[172,3],[172,1],[172,1],[172,1],[172,1],[172,1],[172,1],[255,1],[255,1],[255,1],[257,1],[257,1],[257,1],[291,1],[291,1],[291,1],[291,1],[55,1],[55,1],[307,1],[307,1],[237,1],[237,1],[311,5],[173,5],[313,1],[313,1],[313,1],[313,1],[313,1],[315,1],[315,1],[315,1],[185,1],[185,1],[185,1],[316,3],[319,3],[266,5],[320,1],[320,1],[320,1],[223,1],[223,1],[321,0],[321,1],[5,1],[5,1],[5,1],[9,0],[9,1],[322,1],[322,1],[10,0],[10,2],[18,0],[18,2],[22,0],[22,2],[26,0],[26,2],[27,0],[27,2],[30,0],[30,1],[323,1],[323,2],[33,1],[33,1],[34,0],[34,2],[35,0],[35,1],[37,0],[37,2],[40,1],[40,2],[324,1],[324,1],[42,0],[42,1],[50,0],[50,1],[51,0],[51,1],[54,0],[54,1],[56,0],[56,1],[58,0],[58,1],[59,0],[59,1],[60,0],[60,1],[61,0],[61,1],[65,1],[65,2],[71,1],[71,2],[74,1],[74,2],[88,0],[88,2],[90,0],[90,2],[91,1],[91,2],[92,0],[92,2],[95,1],[95,2],[97,0],[97,4],[99,0],[99,2],[101,0],[101,1],[102,0],[102,1],[103,1],[103,1],[104,0],[104,1],[106,1],[106,1],[106,1],[107,0],[107,1],[111,0],[111,1],[117,0],[117,1],[119,0],[119,2],[124,0],[124,1],[129,0],[129,1],[133,0],[133,1],[134,1],[134,1],[134,1],[136,0],[136,1],[137,0],[137,2],[140,0],[140,1],[141,0],[141,1],[142,0],[142,1],[144,0],[144,3],[146,0],[146,1],[148,0],[148,1],[149,0],[149,2],[152,0],[152,1],[153,0],[153,1],[155,0],[155,3],[157,0],[157,1],[162,0],[162,1],[167,0],[167,2],[168,0],[168,2],[169,1],[169,2],[170,0],[170,2],[175,0],[175,3],[177,0],[177,1],[178,0],[178,3],[180,0],[180,3],[181,0],[181,1],[183,0],[183,3],[184,0],[184,1],[189,0],[189,1],[191,0],[191,2],[194,0],[194,1],[198,0],[198,3],[201,0],[201,1],[204,0],[204,1],[206,0],[206,2],[208,1],[208,1],[210,0],[210,3],[213,0],[213,1],[215,0],[215,3],[217,0],[217,3],[339,1],[339,1],[339,1],[221,0],[221,1],[222,0],[222,1],[227,0],[227,3],[228,0],[228,1],[230,1],[230,2],[233,1],[233,2],[240,0],[240,2],[244,0],[244,2],[248,1],[248,1],[248,1],[248,1],[248,1],[248,1],[249,0],[249,1],[252,0],[252,2],[254,1],[254,1],[256,0],[256,2],[258,0],[258,2],[260,0],[260,2],[262,1],[262,1],[275,1],[275,1],[275,1],[275,1],[275,1],[278,0],[278,1],[281,0],[281,1],[282,1],[282,1],[284,0],[284,1],[286,0],[286,1],[287,0],[287,1]],performAction:o(function(C,P,N,ne,Oe,g,sn){var y=g.length-1;switch(Oe){case 1:if(g[y-1]=g[y-1]||{},Le.base&&(g[y-1].base=Le.base),Le.base="",g[y-1].prefixes=Le.prefixes,Le.prefixes=null,Le.pathOnly){if(g[y-1].type==="path"||"termType"in g[y-1])return g[y-1];throw new Error("Received full SPARQL query in path only mode")}else if(g[y-1].type==="path"||"termType"in g[y-1])throw new Error("Received only path in full SPARQL mode");if(g[y-1].type==="update"){let St={};for(let Lt of g[y-1].updates)if(Lt.updateType==="insert"){let nt={};for(let ut of Lt.insert)if(ut.type==="bgp"||ut.type==="graph")for(let vn of ut.triples)vn.subject.termType==="BlankNode"&&(nt[vn.subject.value]=!0),vn.predicate.termType==="BlankNode"&&(nt[vn.predicate.value]=!0),vn.object.termType==="BlankNode"&&(nt[vn.object.value]=!0);for(let ut of Object.keys(nt)){if(St[ut])throw new Error("Detected reuse blank node across different INSERT DATA clauses");St[ut]=!0}}}return g[y-1];case 2:this.$={...g[y-1],...g[y],type:"query"};break;case 4:Le.base=gu(g[y]);break;case 5:Le.prefixes||(Le.prefixes={}),g[y-1]=g[y-1].substr(0,g[y-1].length-1),g[y]=gu(g[y]),Le.prefixes[g[y-1]]=g[y];break;case 6:this.$={...g[y-3],...uo(g[y-2]),...g[y-1],...g[y]};break;case 7:if(!Le.skipValidation&&(Cy(g[y-3].variables.map(Lt=>xy(Lt.expression))).some(Lt=>Lt.aggregation==="count"&&!(Lt.expression instanceof Fd))||g[y].group)){for(let Lt of g[y-3].variables)if(Lt.termType==="Variable"){if(!g[y].group||!g[y].group.map(nt=>mc(nt)).includes(mc(Lt)))throw Error("Projection of ungrouped variable (?"+mc(Lt)+")")}else if(xy(Lt.expression).length===0){let nt=XD(Lt.expression);for(let ut of nt)if(!g[y].group||!g[y].group.map||!g[y].group.map(vn=>mc(vn)).includes(mc(ut)))throw Error("Use of ungrouped variable in projection of operation (?"+mc(ut)+")")}}let ts=g[y-1].where.filter(St=>St.type==="query");if(ts.length>0){let St=g[y-3].variables.filter(nt=>nt.variable&&nt.variable.value).map(nt=>nt.variable.value),Lt=Cy(ts.map(nt=>nt.variables)).map(nt=>nt.value||nt.variable.value);for(let nt of St)if(Lt.indexOf(nt)>=0)throw Error("Target id of 'AS' (?"+nt+") already used in subquery")}this.$=Gt(g[y-3],uo(g[y-2]),g[y-1],g[y]);break;case 8:this.$=Gt({queryType:"CONSTRUCT",template:g[y-3]},uo(g[y-2]),g[y-1],g[y]);break;case 9:this.$=Gt({queryType:"CONSTRUCT",template:g[y-2]=g[y-2]?g[y-2].triples:[]},uo(g[y-5]),{where:[{type:"bgp",triples:lo([],g[y-2])}]},g[y]);break;case 10:this.$=Gt({queryType:"DESCRIBE",variables:g[y-3]==="*"?[new Fd]:g[y-3]},uo(g[y-2]),g[y-1],g[y]);break;case 11:this.$=Gt({queryType:"ASK"},uo(g[y-2]),g[y-1],g[y]);break;case 12:this.$=Gt(g[y-1],{variables:[new Fd]});break;case 13:let bu=g[y].map(St=>St.value||St.variable.value),gc=JD(bu);if(gc.length>0)throw Error("Two or more of the resulting columns have the same name (?"+gc[0]+")");this.$=Gt(g[y-1],{variables:g[y]});break;case 14:this.$=Gt({queryType:"SELECT"},g[y]&&(g[y-1]=nn(g[y]),g[y]={},g[y][g[y-1]]=!0,g[y]));break;case 16:case 27:this.$=dc(g[y-3],{variable:g[y-1]});break;case 17:case 18:this.$=Gt(g[y-3],g[y-2],g[y-1],g[y],{type:"query"});break;case 19:case 58:this.$={iri:g[y],named:!!g[y-1]};break;case 20:this.$={where:g[y].patterns};break;case 21:this.$=Gt(g[y-1],g[y]);break;case 22:this.$=Gt(g[y-2],g[y-1],g[y]);break;case 23:this.$={group:g[y]};break;case 24:case 25:case 28:case 31:case 33:case 34:this.$=dc(g[y]);break;case 26:this.$=dc(g[y-1]);break;case 29:this.$={having:g[y]};break;case 30:this.$={order:g[y]};break;case 32:this.$=dc(g[y],{descending:!0});break;case 35:this.$={limit:pc(g[y])};break;case 36:this.$={offset:pc(g[y])};break;case 37:this.$={limit:pc(g[y-2]),offset:pc(g[y])};break;case 38:this.$={limit:pc(g[y]),offset:pc(g[y-2])};break;case 39:case 43:this.$={type:"values",values:g[y]};break;case 40:case 84:this.$=g[y-1].map(St=>({[g[y-3]]:St}));break;case 41:case 85:this.$=g[y-1].map(()=>({}));break;case 42:case 86:var es=g[y-4].length;g[y-4]=g[y-4].map(vy),this.$=g[y-1].map(function(St){if(St.length!==es)throw Error("Inconsistent VALUES length");for(var Lt={},nt=0;nt<es;nt++)Lt["?"+g[y-4][nt].value]=St[nt];return Lt});break;case 44:case 65:case 100:case 126:case 175:this.$=g[y-1];break;case 45:this.$={type:"update",updates:Ds(g[y-2],g[y-1])};break;case 46:this.$=Gt({type:"load",silent:!!g[y-2],source:g[y-1]},g[y]&&{destination:g[y]});break;case 47:this.$={type:nn(g[y-2]),silent:!!g[y-1],graph:g[y]};break;case 48:this.$={type:nn(g[y-4]),silent:!!g[y-3],source:g[y-2],destination:g[y]};break;case 49:this.$={type:"create",silent:!!g[y-2],graph:{type:"graph",name:g[y]}};break;case 50:this.$={updateType:"insert",insert:p2(g[y])};break;case 51:this.$={updateType:"delete",delete:Py(p2(g[y]))};break;case 52:this.$={updateType:"deletewhere",delete:Py(g[y])};break;case 53:this.$={updateType:"insertdelete",...g[y-4],...g[y-3],...uo(g[y-2],"using"),where:g[y].patterns};break;case 54:case 57:case 62:case 167:case 191:case 236:this.$=g[y];break;case 55:this.$={delete:Py(g[y-1]),insert:g[y]||[]};break;case 56:this.$={delete:[],insert:g[y]};break;case 59:this.$={graph:g[y]};break;case 60:this.$={type:"graph",default:!0};break;case 61:case 63:this.$={type:"graph",name:g[y]};break;case 64:this.$={[nn(g[y])]:!0};break;case 66:this.$=g[y-1]?Ji(g[y],[g[y-1]]):Ji(g[y]);break;case 67:var Su=Gt(g[y-3]||{triples:[]},{type:"graph",name:g[y-5]});this.$=g[y]?[Su,g[y]]:[Su];break;case 68:case 73:this.$={type:"bgp",triples:Ji(g[y-2],[g[y-1]])};break;case 69:this.$={type:"group",patterns:[g[y-1]]};break;case 70:for(let St of g[y-1].filter(Lt=>Lt.type==="bind")){let Lt=g[y-1].indexOf(St),nt=new Set;for(let ut of g[y-1].slice(0,Lt))(ut.type==="group"||ut.type==="bgp")&&d2(ut).forEach(vn=>nt.add(vn));if(nt.has(St.variable.value))throw Error("Variable used to bind is already bound (?"+St.variable.value+")")}this.$={type:"group",patterns:g[y-1]};break;case 71:this.$=g[y-1]?Ji([g[y-1]],g[y]):Ji(g[y]);break;case 72:this.$=g[y]?[g[y-2],g[y]]:g[y-2];break;case 75:this.$=Gt(g[y],{type:"optional"});break;case 76:this.$=Gt(g[y],{type:"minus"});break;case 77:this.$=Gt(g[y],{type:"graph",name:g[y-1]});break;case 78:this.$=Gt(g[y],{type:"service",name:g[y-1],silent:!!g[y-2]});break;case 79:this.$={type:"filter",expression:g[y]};break;case 80:this.$={type:"bind",variable:g[y-1],expression:g[y-3]};break;case 89:this.$=_u(g[y]);break;case 90:this.$=void 0;break;case 91:this.$=g[y-1].length?{type:"union",patterns:Ji(g[y-1].map(wy),[wy(g[y])])}:g[y];break;case 95:this.$={...g[y],function:g[y-1]};break;case 96:this.$={type:"functionCall",args:[]};break;case 97:this.$={type:"functionCall",args:Ds(g[y-2],g[y-1]),distinct:!!g[y-3]};break;case 98:case 115:case 128:case 247:case 249:case 251:case 253:case 255:case 263:case 267:case 297:case 299:case 303:case 307:case 328:case 341:case 349:case 355:case 361:case 367:case 369:case 373:case 375:case 379:case 381:case 385:case 391:case 395:case 401:case 405:case 409:case 411:case 420:case 428:case 430:case 440:case 444:case 446:case 448:this.$=[];break;case 99:this.$=Ds(g[y-2],g[y-1]);break;case 101:this.$=Ji(g[y-2],[g[y-1]]);break;case 102:case 112:this.$=Ry(g[y].map(St=>Gt(Ns(g[y-1]),St)));break;case 103:this.$=Ry(lo(g[y].map(St=>Gt(Ns(g[y-1].entity),St)),g[y-1].triples));break;case 105:this.$=Ji([g[y-1]],g[y]);break;case 106:this.$=Ji(g[y]);break;case 107:this.$=Ay(g[y-1],g[y]);break;case 109:case 237:this.$=Le.factory.namedNode(VD);break;case 110:case 118:this.$=Ds(g[y-1],g[y]);break;case 111:this.$=g[y]?{annotation:g[y],object:g[y-1]}:g[y-1];break;case 113:this.$=g[y]?Ry(lo(g[y].map(St=>Gt(Ns(g[y-1].entity),St)),g[y-1].triples)):g[y-1].triples;break;case 114:this.$=Ay(...g[y-1],g[y]);break;case 116:this.$=Ay(...g[y]);break;case 117:case 159:case 163:this.$=[g[y-1],g[y]];break;case 119:this.$=g[y]?{object:g[y-1],annotation:g[y]}:g[y-1];break;case 120:this.$=g[y-1].length?hc("|",Ds(g[y-1],g[y])):g[y];break;case 121:this.$=g[y-1].length?hc("/",Ds(g[y-1],g[y])):g[y];break;case 122:this.$=g[y]?hc(g[y],[g[y-1]]):g[y-1];break;case 123:this.$=g[y-1]?hc(g[y-1],[g[y]]):g[y];break;case 125:case 131:this.$=hc(g[y-1],[g[y]]);break;case 129:this.$=hc("|",Ds(g[y-2],g[y-1]));break;case 132:case 134:this.$=YD(g[y-1]);break;case 133:case 135:this.$=KD(g[y-1]);break;case 140:this.$={entity:g[y],triples:[]};break;case 145:this.$=vy(g[y]);break;case 149:this.$=Le.factory.namedNode(i2);break;case 151:case 153:case 158:case 162:this.$=by(g[y-1],g[y]);break;case 152:this.$=["||",g[y]];break;case 154:this.$=["&&",g[y]];break;case 156:this.$=Rr(g[y-1],[g[y-2],g[y]]);break;case 157:this.$=Rr(g[y-2]?"notin":"in",[g[y-3],g[y]]);break;case 160:this.$=["+",by(g[y-1],g[y])];break;case 161:var Ld=Zi(g[y-1].value.replace("-",""),g[y-1].datatype);this.$=["-",by(Ld,g[y])];break;case 164:this.$=Rr("UPLUS",[g[y]]);break;case 165:this.$=Rr(g[y-1],[g[y]]);break;case 166:this.$=Rr("UMINUS",[g[y]]);break;case 177:this.$=Rr(nn(g[y-1]));break;case 178:this.$=Rr(nn(g[y-3]),[g[y-1]]);break;case 179:this.$=_u(Rr(nn(g[y-3]),[g[y-1]]));break;case 180:this.$=Rr(nn(g[y-5]),[g[y-3],g[y-1]]);break;case 181:this.$=Rr(nn(g[y-7]),[g[y-5],g[y-3],g[y-1]]);break;case 182:this.$=_u(Rr(nn(g[y-7]),[g[y-5],g[y-3],g[y-1]]));break;case 183:this.$=Rr(nn(g[y-1]),g[y]);break;case 184:this.$=Rr("bound",[vy(g[y-1])]);break;case 185:this.$=Rr(g[y-1],[]);break;case 186:this.$=Rr(g[y-3],[g[y-1]]);break;case 187:this.$=Rr(g[y-2]?"notexists":"exists",[wy(g[y])]);break;case 188:case 189:this.$=dc(g[y-1],{type:"aggregate",aggregation:nn(g[y-4]),distinct:!!g[y-2]});break;case 190:this.$=dc(g[y-2],{type:"aggregate",aggregation:nn(g[y-5]),distinct:!!g[y-3],separator:typeof g[y-1]=="string"?g[y-1]:" "});break;case 192:this.$=Zi(g[y]);break;case 193:this.$=GD(g[y-1],nn(g[y].substr(1)));break;case 194:this.$=Zi(g[y-2],g[y]);break;case 195:case 204:this.$=Zi(g[y],s2);break;case 196:case 205:this.$=Zi(g[y],a2);break;case 197:case 206:this.$=Zi(nn(g[y]),o2);break;case 200:this.$=Zi(g[y].toLowerCase(),WD);break;case 201:this.$=Zi(g[y].substr(1),s2);break;case 202:this.$=Zi(g[y].substr(1),a2);break;case 203:this.$=Zi(g[y].substr(1).toLowerCase(),o2);break;case 207:case 208:this.$=f2(g[y],1);break;case 209:case 210:this.$=f2(g[y],3);break;case 211:this.$=Le.factory.namedNode(gu(g[y]));break;case 213:var kd=g[y].indexOf(":"),vu=g[y].substr(0,kd),Md=Le.prefixes[vu];if(!Md)throw new Error("Unknown prefix: "+vu);var Bt=gu(Md+g[y].substr(kd+1));this.$=Le.factory.namedNode(Bt);break;case 214:if(g[y]=g[y].substr(0,g[y].length-1),!(g[y]in Le.prefixes))throw new Error("Unknown prefix: "+g[y]);var Bt=gu(Le.prefixes[g[y]]);this.$=Le.factory.namedNode(Bt);break;case 215:this.$=yu(g[y].replace(/^(_:)/,""));break;case 216:this.$=yu();break;case 217:case 218:case 232:this.$=_u(Ey(g[y-3],g[y-2],g[y-1]));break;case 230:case 231:this.$=_u(g[y-1]);break;case 248:case 250:case 252:case 254:case 256:case 260:case 264:case 268:case 270:case 292:case 294:case 296:case 298:case 300:case 302:case 304:case 306:case 329:case 342:case 356:case 368:case 370:case 372:case 374:case 392:case 402:case 425:case 427:case 429:case 431:case 441:case 445:case 447:case 449:g[y-1].push(g[y]);break;case 259:case 269:case 291:case 293:case 295:case 301:case 305:case 371:case 424:case 426:this.$=[g[y]];break;case 308:g[y-3].push(g[y-2]);break;case 350:case 362:case 376:case 380:case 382:case 386:case 396:case 406:case 410:case 412:case 421:g[y-2].push(g[y-1]);break}},"anonymous"),table:[n(e,t,{3:1,4:2,10:3}),{1:[3]},n(r,[2,307],{5:4,7:5,321:6,214:7,8:8,96:9,215:10,17:11,21:12,97:16,38:17,6:[2,238],13:i,16:i,45:i,197:i,224:i,229:i,308:i,24:[1,13],32:[1,14],36:[1,15],41:s}),n([6,13,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],[2,3],{322:19,11:20,14:21,12:[1,22],15:[1,23]}),{6:[1,24]},{6:[2,240]},{6:[2,241]},{6:[2,242]},{6:[2,243],9:25,84:26,85:a},{6:[2,239]},n(c,[2,411],{216:28,217:29}),n(l,[2,249],{18:30}),n(l,[2,251],{22:31}),n(u,[2,255],{25:32,27:33,29:[1,34]}),{13:f,16:d,33:35,39:[1,37],44:39,55:40,87:h,139:38,307:43,308:p,323:36},n(l,[2,267],{37:46}),n(_,[2,326],{98:47,103:49,106:50,117:55,130:61,100:[1,48],110:[1,51],113:[1,52],115:[1,53],116:[1,54],131:[1,62],329:[1,56],330:[1,57],331:[1,58],332:[1,59],333:[1,60]}),{39:[1,63],40:64,43:65,44:66,45:v,87:h},n(E,[2,273],{42:68,324:69,325:[1,70],326:[1,71]}),n(e,[2,248]),n(e,[2,245]),n(e,[2,246]),{13:[1,72]},{16:[1,73]},{1:[2,1]},{6:[2,2]},{6:[2,244]},{45:[1,77],85:[1,78],86:74,87:[1,75],89:[1,76]},n([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],[2,120],{337:[1,79]}),n(b,[2,418],{218:80,222:81,229:[1,82]}),{19:83,28:A,29:R,52:84,53:B,56:85},{19:88,28:A,29:R,52:89,53:B,56:85},n(l,[2,253],{26:90}),{28:[1,91],52:92,53:B},n(W,[2,385],{181:93,182:94,183:95,31:[2,383]}),n(we,[2,263],{34:96}),n(we,[2,261],{44:39,55:40,307:43,139:97,13:f,16:d,87:h,308:p}),n(we,[2,262]),n(z,[2,259]),n(G,[2,143]),n(G,[2,144]),n([6,13,16,28,29,31,39,45,47,48,53,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,145]),n(F,[2,211]),n(F,[2,212]),n(F,[2,213]),n(F,[2,214]),{19:98,28:A,29:R,52:99,53:B,56:85},{6:[2,309],99:100,193:[1,101]},n(j,[2,311],{101:102,328:[1,103]}),n(te,[2,317],{104:104,328:[1,105]}),n(Ye,[2,322],{107:106,328:[1,107]}),{111:108,112:[2,324],328:[1,109]},{29:st,114:110},{29:st,114:112},{29:st,114:113},{118:114,123:[1,115],125:116,126:Pt},n(at,[2,315]),n(at,[2,316]),n(ct,[2,319]),n(ct,[2,320]),n(ct,[2,321]),n(_,[2,327]),{13:f,16:d,55:118,307:43,308:p},n(l,[2,12]),n(l,[2,13],{44:66,43:119,45:v,87:h}),n(Ke,[2,269]),n(Ke,[2,15]),{13:f,16:d,44:136,45:ie,46:120,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(E,[2,14]),n(E,[2,274]),n(E,[2,271]),n(E,[2,272]),n(e,[2,4]),{13:[1,177]},n(Z,[2,39]),{29:[1,178]},{29:[1,179]},{87:[1,181],91:180},{45:[1,187],87:[1,185],89:[1,186],93:182,165:183,166:184},n(c,[2,410]),n([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337],[2,121],{338:[1,188]}),{13:f,16:d,45:[1,193],55:194,197:_t,219:189,220:190,223:191,224:[1,192],307:43,308:p},n(b,[2,419]),n(xt,De,{20:196,59:197,69:198,70:U}),n(l,[2,250]),{29:q,57:200},n(j,[2,279],{54:202,327:[1,203]}),{29:[2,282]},n(Q,K,{23:204,58:205,62:206,63:Ie}),n(l,[2,252]),{19:208,28:A,29:R,52:209,53:B,56:85},{29:[1,210]},n(u,[2,256]),{31:[1,211]},{31:[2,384]},{13:f,16:d,44:215,45:tt,55:220,82:V,87:h,89:rt,145:212,172:221,185:213,187:214,231:Cr,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},n(IE,[2,265],{56:85,35:227,52:228,19:229,28:A,29:R,53:B}),n(z,[2,260]),n(Q,K,{58:205,62:206,23:230,63:Ie}),n(l,[2,268]),{6:[2,45]},n(e,t,{10:3,4:231}),{13:f,16:d,55:232,307:43,308:p},n(j,[2,312]),{105:233,112:RE,122:234,132:[1,237],134:235,327:[1,238],334:[1,239]},n(te,[2,318]),n(j,PE,{108:240,133:242,112:OE,132:FE}),n(Ye,[2,323]),{112:[1,244]},{112:[2,325]},n(Ir,[2,50]),n(W,_d,{135:245,136:246,143:247,144:248,31:DE,112:DE}),n(Ir,[2,51]),n(Ir,[2,52]),n(ma,[2,328],{119:249}),{29:st,114:250},n(ma,[2,56]),{29:st,114:251},n(_,[2,59]),n(Ke,[2,270]),{47:[1,252]},n(NE,[2,150]),n(Sd,[2,428],{240:253}),n(oc,[2,430],{244:254}),n(oc,[2,155],{248:255,249:256,250:[2,438],290:[1,257],341:[1,258],342:[1,259],343:[1,260],344:[1,261],345:[1,262],346:[1,263]}),n(cc,[2,440],{252:264}),n(mr,[2,448],{260:265}),{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,255:154,257:155,264:266,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,255:154,257:155,264:267,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,255:154,257:155,264:268,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(mr,[2,167]),n(mr,[2,168]),n(mr,[2,169]),n(mr,[2,170],{176:269,45:LE,89:kE}),n(mr,[2,171]),n(mr,[2,172]),n(mr,[2,173]),n(mr,[2,174]),{13:f,16:d,44:136,45:ie,46:272,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Xt,[2,176]),{89:[1,273]},{45:[1,274]},{45:[1,275]},{45:[1,276]},{45:[1,277]},{45:[1,278]},{45:ME,89:jE,179:279},{45:[1,282]},{45:[1,284],89:[1,283]},{279:[1,285]},n(rn,[2,192],{292:[1,286],293:[1,287]}),n(rn,[2,195]),n(rn,[2,196]),n(rn,[2,197]),n(rn,[2,198]),n(rn,[2,199]),n(rn,[2,200]),{13:f,16:d,44:39,55:40,82:V,87:h,139:289,172:291,255:154,257:155,266:290,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,320:288},{45:[1,292]},{45:[1,293]},{45:[1,294]},n(du,[2,452]),n(du,[2,453]),n(du,[2,454]),n(du,[2,455]),n(du,[2,456]),{279:[2,458]},n(vd,[2,207]),n(vd,[2,208]),n(vd,[2,209]),n(vd,[2,210]),n(rn,[2,201]),n(rn,[2,202]),n(rn,[2,203]),n(rn,[2,204]),n(rn,[2,205]),n(rn,[2,206]),n(e,[2,5]),n(bd,[2,297],{88:295}),n(wd,[2,299],{90:296}),{48:[1,297],87:[1,298]},n(Ed,[2,301]),n(Z,[2,43]),n(Z,[2,82]),n(Z,[2,83]),{29:[1,299]},{29:[1,300]},{87:[1,302],169:301},n(c,[2,412]),n(ro,[2,123]),n(ro,[2,416],{221:303,339:304,39:[1,306],263:[1,307],340:[1,305]}),n(Xi,[2,124]),{13:f,16:d,45:[1,311],55:194,89:[1,310],197:_t,223:312,225:308,226:309,229:$E,307:43,308:p},n(c,i,{215:10,214:314}),n(Xi,[2,236]),n(Xi,[2,237]),n(lc,[2,6]),n(dy,[2,287],{60:315,72:316,73:[1,317]}),n(xt,[2,286]),{13:f,16:d,45:ie,55:323,67:321,68:322,71:318,77:320,79:319,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,307:43,308:p,346:He,347:Me,348:w,349:T,350:x,351:O},n([6,31,63,70,73,81,83,85],[2,20]),n(W,BE,{38:17,49:324,147:325,17:326,21:327,148:328,154:329,155:330,29:Is,31:Is,85:Is,112:Is,159:Is,160:Is,161:Is,163:Is,164:Is,41:s}),{13:f,16:d,55:331,307:43,308:p},n(j,[2,280]),n(lc,[2,7]),n(xt,De,{59:197,69:198,20:332,70:U}),n(Q,[2,284]),{64:[1,333]},n(Q,K,{58:205,62:206,23:334,63:Ie}),n(l,[2,254]),n(W,_d,{144:248,30:335,143:336,31:[2,257]}),n(l,[2,100]),{31:[2,387],184:337,335:[1,338]},{13:f,16:d,44:39,55:40,87:h,139:342,186:339,190:340,195:341,197:no,307:43,308:p},n(hu,[2,389],{44:39,55:40,307:43,190:340,195:341,139:342,188:344,189:345,186:346,13:f,16:d,87:h,197:no,308:p}),n(Rs,[2,227]),n(Rs,[2,228]),n(Rs,[2,229]),{13:f,16:d,44:215,45:tt,55:220,82:V,87:h,89:rt,172:221,185:351,187:350,200:348,230:347,231:Cr,234:349,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},{13:f,16:d,44:39,55:40,87:h,139:342,186:352,190:340,195:341,197:no,307:43,308:p},n(Rs,[2,146]),n(Rs,[2,147]),n(Rs,[2,148]),n(Rs,[2,149]),{13:f,16:d,44:354,55:355,82:V,87:h,172:357,237:356,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:358,312:tn,313:353},n(hy,[2,215]),n(hy,[2,216]),n(Q,K,{58:205,62:206,23:359,63:Ie}),n(we,[2,264]),n(IE,[2,266]),n(lc,[2,11]),n(r,[2,308],{6:[2,310]}),n(Ir,[2,313],{102:360,120:361,121:[1,362]}),n(Ir,[2,47]),n(Ir,[2,63]),n(Ir,[2,64]),{13:f,16:d,55:363,307:43,308:p},n(Ir,[2,336]),n(Ir,[2,337]),n(Ir,[2,338]),{109:[1,364]},n(VE,[2,60]),{13:f,16:d,55:365,307:43,308:p},n(j,[2,335]),{13:f,16:d,55:366,307:43,308:p},{31:[1,367]},n(io,[2,341],{137:368}),n(io,[2,340]),{13:f,16:d,44:215,45:tt,55:220,82:V,87:h,89:rt,145:369,172:221,185:213,187:214,231:Cr,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},{28:[1,370],127:371,128:[1,372]},n(ma,[2,330],{124:373,125:374,126:Pt}),n(ma,[2,57]),{44:375,87:h},n(NE,[2,151],{241:376,242:[1,377]}),n(Sd,[2,153],{245:378,246:[1,379]}),{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,247:380,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{250:[1,381]},n(Jt,[2,432]),n(Jt,[2,433]),n(Jt,[2,434]),n(Jt,[2,435]),n(Jt,[2,436]),n(Jt,[2,437]),{250:[2,439]},n([47,48,193,242,246,250,272,290,341,342,343,344,345,346],[2,158],{253:382,254:383,255:384,257:385,263:[1,386],265:[1,387],297:fe,298:de,299:he,300:ce,301:ge,302:ye}),n(cc,[2,162],{261:388,262:389,39:py,338:my}),n(mr,[2,164]),n(mr,[2,165]),n(mr,[2,166]),n(Xt,[2,95]),n(Xt,[2,96]),n(Jt,[2,377],{177:392,325:[1,393]}),{48:[1,394]},n(Xt,[2,177]),{13:f,16:d,44:136,45:ie,46:395,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,46:396,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,46:397,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,46:398,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,46:399,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Xt,[2,183]),n(Xt,[2,98]),n(Jt,[2,381],{180:400}),{87:[1,401]},n(Xt,[2,185]),{13:f,16:d,44:136,45:ie,46:402,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{29:q,57:403},n(rn,[2,193]),{13:f,16:d,55:404,307:43,308:p},{13:f,16:d,44:39,55:40,87:h,139:342,195:405,197:no,307:43,308:p},n(ga,[2,233]),n(ga,[2,234]),n(ga,[2,235]),n(UE,[2,459],{281:406,325:[1,407]}),n(Jt,[2,463],{284:408,325:[1,409]}),n(Jt,[2,465],{286:410,325:[1,411]}),{13:f,16:d,31:[1,412],55:414,82:V,171:413,172:415,173:416,174:Td,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ad},{31:[1,419],89:[1,420]},{29:[1,421]},n(Ed,[2,302]),n(bd,[2,367],{167:422}),n(wd,[2,369],{168:423}),{48:[1,424],87:[1,425]},n(Ed,[2,371]),n(ro,[2,122]),n(ro,[2,417]),n(ro,[2,413]),n(ro,[2,414]),n(ro,[2,415]),n(Xi,[2,125]),n(Xi,[2,127]),n(Xi,[2,128]),n(qE,[2,420],{227:426}),n(Xi,[2,130]),{13:f,16:d,55:194,197:_t,223:427,307:43,308:p},{48:[1,428]},n(ya,[2,289],{61:429,80:430,81:[1,431],83:[1,432]}),n(dy,[2,288]),{64:[1,433]},n(xt,[2,29],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:434,13:f,16:d,45:ie,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,276:Ge,277:Ae,279:Be,280:Pe,283:Ve,285:ze,308:p,346:He,347:Me,348:w,349:T,350:x,351:O}),n(WE,[2,293]),n(gy,[2,92]),n(gy,[2,93]),n(gy,[2,94]),{45:LE,89:kE,176:269},{31:[1,435]},{31:[1,436]},{19:437,28:A,29:R,56:85},{19:438,28:A,29:R,56:85},n(so,[2,355],{149:439}),n(so,[2,354]),{13:f,16:d,44:215,45:xd,55:220,82:V,87:h,89:rt,156:440,172:221,185:441,203:442,231:Cd,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},n(we,[2,19]),n(ya,[2,21]),{13:f,16:d,44:450,45:GE,55:323,65:445,66:446,67:447,68:448,87:h,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,307:43,308:p,346:He,347:Me,348:w,349:T,350:x,351:O},n(lc,[2,8]),{31:[1,451]},{31:[2,258]},{31:[2,101]},n(W,[2,386],{31:[2,388]}),n(hu,[2,102]),n(ao,[2,391],{191:452}),n(W,[2,395],{196:453,198:454}),n(W,[2,108]),n(W,[2,109]),n(hu,[2,103]),n(hu,[2,104]),n(hu,[2,390]),{13:f,16:d,44:215,45:tt,48:[1,455],55:220,82:V,87:h,89:rt,172:221,185:351,187:350,200:456,231:Cr,234:349,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},n(Id,[2,424]),n(zE,[2,136]),n(zE,[2,137]),n(yy,[2,140]),{232:[1,457]},{13:f,16:d,44:39,55:40,87:h,139:342,195:458,197:no,307:43,308:p},n(ga,[2,219]),n(ga,[2,220]),n(ga,[2,221]),n(ga,[2,222]),n(ga,[2,223]),n(lc,[2,10]),n(Ir,[2,46]),n(Ir,[2,314]),{112:RE,122:459},n(Ir,[2,62]),n(j,PE,{133:242,108:460,112:OE,132:FE}),n(VE,[2,61]),n(Ir,[2,49]),n([6,28,126,128,193],[2,65]),{31:[2,66],112:[1,462],138:461},n(io,[2,351],{146:463,335:[1,464]}),{29:q,57:465},n(ma,[2,329]),n(j,[2,332],{129:466,327:[1,467]}),n(ma,[2,55]),n(ma,[2,331]),{48:[1,468]},n(Sd,[2,429]),{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,239:469,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(oc,[2,431]),{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,243:470,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(oc,[2,156]),{45:ME,89:jE,179:471},n(cc,[2,441]),{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,251:472,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(mr,[2,444],{256:473}),n(mr,[2,446],{258:474}),n(Jt,[2,442]),n(Jt,[2,443]),n(mr,[2,449]),{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,255:154,257:155,259:475,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Jt,[2,450]),n(Jt,[2,451]),n(Jt,[2,379],{178:476}),n(Jt,[2,378]),n([6,13,16,29,31,39,45,47,48,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,175]),{48:[1,477]},{48:[1,478]},{272:[1,479]},{272:[1,480]},{272:[1,481]},{13:f,16:d,44:136,45:ie,46:482,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{48:[1,483]},{48:[1,484]},n(Xt,[2,187]),n(rn,[2,194]),{13:f,16:d,44:39,55:40,82:V,87:h,139:289,172:291,255:154,257:155,266:290,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,320:485},{13:f,16:d,39:[1,487],44:136,45:ie,46:488,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,282:486,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(UE,[2,460]),{13:f,16:d,44:136,45:ie,46:489,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Jt,[2,464]),{13:f,16:d,44:136,45:ie,46:490,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Jt,[2,466]),n(Z,[2,40]),n(bd,[2,298]),n(pu,[2,87]),n(pu,[2,88]),n(pu,[2,89]),n(pu,[2,90]),{13:f,16:d,55:492,82:V,172:493,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,311:494,312:tn,315:491},n(Z,[2,41]),n(wd,[2,300]),n(mu,[2,303],{92:495}),{13:f,16:d,31:[1,496],55:414,82:V,171:497,172:415,173:416,174:Td,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ad},{31:[1,498],89:[1,499]},{29:[1,500]},n(Ed,[2,372]),{13:f,16:d,48:[2,422],55:194,197:_t,223:312,226:502,228:501,229:$E,307:43,308:p},n(Xi,[2,131]),n(Xi,[2,126]),n(ya,[2,22]),n(ya,[2,290]),{82:[1,503]},{82:[1,504]},{13:f,16:d,44:510,45:ie,55:323,67:321,68:322,74:505,75:506,76:HE,77:320,78:QE,79:509,87:h,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,307:43,308:p,346:He,347:Me,348:w,349:T,350:x,351:O},n(WE,[2,294]),n(YE,[2,69]),n(YE,[2,70]),n(xt,De,{59:197,69:198,20:511,70:U}),n(Q,K,{58:205,62:206,23:512,63:Ie}),{29:[2,375],31:[2,71],84:522,85:a,112:[1,518],150:513,151:514,158:515,159:[1,516],160:[1,517],161:[1,519],163:[1,520],164:[1,521],175:523},n(so,[2,363],{157:524,335:[1,525]}),n(c,i,{215:10,202:526,205:527,208:528,214:529,44:530,87:h}),n(Rd,[2,399],{215:10,205:527,208:528,214:529,44:530,204:531,202:532,13:i,16:i,45:i,197:i,224:i,229:i,308:i,87:h}),{13:f,16:d,44:215,45:xd,55:220,82:V,87:h,89:rt,172:221,185:351,203:536,212:534,231:Cd,233:533,234:535,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},n(c,i,{215:10,205:527,208:528,214:529,44:530,202:537,87:h}),n(Q,[2,23],{307:43,267:139,275:146,278:149,55:323,67:447,68:448,44:450,66:538,13:f,16:d,45:GE,87:h,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,276:Ge,277:Ae,279:Be,280:Pe,283:Ve,285:ze,308:p,346:He,347:Me,348:w,349:T,350:x,351:O}),n(oo,[2,291]),n(oo,[2,24]),n(oo,[2,25]),{13:f,16:d,44:136,45:ie,46:539,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(oo,[2,28]),n(Q,K,{58:205,62:206,23:540,63:Ie}),n([31,112,232,318,335],[2,105],{192:541,193:[1,542]}),n(ao,[2,107]),{13:f,16:d,44:215,45:tt,55:220,82:V,87:h,89:rt,172:221,185:351,187:350,199:543,200:544,231:Cr,234:349,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},n(KE,[2,132]),n(Id,[2,425]),n(KE,[2,133]),{13:f,16:d,44:354,55:355,82:V,87:h,172:357,237:356,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:358,312:tn,313:545},n(Ir,[2,54]),n(Ir,[2,48]),n(io,[2,342]),{13:f,16:d,44:39,55:40,87:h,139:546,307:43,308:p},n(io,[2,68]),n(W,[2,350],{31:XE,112:XE}),n(Ir,[2,53]),{13:f,16:d,55:547,307:43,308:p},n(j,[2,333]),n(Ke,[2,16]),n(Sd,[2,152]),n(oc,[2,154]),n(oc,[2,157]),n(cc,[2,159]),n(cc,[2,160],{262:389,261:548,39:py,338:my}),n(cc,[2,161],{262:389,261:549,39:py,338:my}),n(mr,[2,163]),{13:f,16:d,44:136,45:ie,46:550,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Xt,[2,178]),n(Xt,[2,179]),{13:f,16:d,44:136,45:ie,46:551,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,46:552,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,46:553,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{48:[1,554],272:[1,555]},n(Xt,[2,184]),n(Xt,[2,186]),{314:[1,556]},{48:[1,557]},{48:[2,461]},{48:[2,462]},{48:[1,558]},{48:[2,467],193:[1,561],287:559,288:560},{13:f,16:d,55:194,197:_t,223:562,307:43,308:p},n(_y,[2,224]),n(_y,[2,225]),n(_y,[2,226]),{31:[1,563],45:JE,94:564},n(Z,[2,84]),n(bd,[2,368]),n(Z,[2,85]),n(wd,[2,370]),n(mu,[2,373],{170:566}),{48:[1,567]},{48:[2,423],337:[1,568]},n(ya,[2,35],{83:[1,569]}),n(ya,[2,36],{81:[1,570]}),n(dy,[2,30],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:509,44:510,75:571,13:f,16:d,45:ie,76:HE,78:QE,87:h,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,276:Ge,277:Ae,279:Be,280:Pe,283:Ve,285:ze,308:p,346:He,347:Me,348:w,349:T,350:x,351:O}),n(uc,[2,295]),{45:ie,77:572},{45:ie,77:573},n(uc,[2,33]),n(uc,[2,34]),{31:[2,275],50:574,84:575,85:a},{31:[2,277],51:576,84:577,85:a},n(so,[2,356]),n(ZE,[2,357],{152:578,335:[1,579]}),n(Ps,[2,74]),{29:q,57:580},{29:q,57:581},{13:f,16:d,44:39,55:40,87:h,139:582,307:43,308:p},n(e2,[2,365],{162:583,328:[1,584]}),{13:f,16:d,45:ie,55:323,67:321,68:322,77:320,79:585,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,307:43,308:p,346:He,347:Me,348:w,349:T,350:x,351:O},{45:[1,586]},n(Ps,[2,81]),{29:q,57:587},n(so,[2,73]),n(W,[2,362],{29:Os,31:Os,85:Os,112:Os,159:Os,160:Os,161:Os,163:Os,164:Os}),n(Rd,[2,112]),n(fc,[2,401],{206:588}),n(W,[2,405],{209:589,210:590}),n(W,[2,403]),n(W,[2,404]),n(Rd,[2,113]),n(Rd,[2,400]),{13:f,16:d,44:215,45:xd,48:[1,591],55:220,82:V,87:h,89:rt,172:221,185:351,203:536,212:592,231:Cd,234:535,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},n(Id,[2,426]),n(yy,[2,138]),n(yy,[2,139]),{232:[1,593]},n(oo,[2,292]),{47:[1,595],48:[1,594]},n(lc,[2,9]),n(ao,[2,392]),n(ao,[2,393],{44:39,55:40,307:43,195:341,139:342,194:596,190:597,13:f,16:d,87:h,197:no,308:p}),n(ao,[2,110],{272:[1,598]}),n(Pd,[2,397],{201:599,316:600,317:[1,601]}),{314:[1,602]},{29:[1,603]},n(ma,[2,58]),n(mr,[2,445]),n(mr,[2,447]),{48:[1,604],272:[1,605]},{48:[1,606]},{272:[1,607]},{272:[1,608]},n(Xt,[2,99]),n(Jt,[2,382]),n([13,16,39,47,48,87,193,197,242,246,250,263,265,272,290,297,298,299,300,301,302,308,314,338,341,342,343,344,345,346],[2,232]),n(Xt,[2,188]),n(Xt,[2,189]),{48:[1,609]},{48:[2,468]},{289:[1,610]},{13:f,16:d,55:492,82:V,172:493,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,311:494,312:tn,315:611},n(Z,[2,42]),n(mu,[2,304]),{13:f,16:d,55:414,82:V,95:612,171:613,172:415,173:416,174:Td,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ad},{31:[1,614],45:JE,94:615},n(Xi,[2,129]),n(qE,[2,421]),{82:[1,616]},{82:[1,617]},n(uc,[2,296]),n(uc,[2,31]),n(uc,[2,32]),{31:[2,17]},{31:[2,276]},{31:[2,18]},{31:[2,278]},n(W,BE,{155:330,153:618,154:619,29:Fs,31:Fs,85:Fs,112:Fs,159:Fs,160:Fs,161:Fs,163:Fs,164:Fs}),n(ZE,[2,358]),n(Ps,[2,75]),n(Ps,[2,76]),{29:q,57:620},{13:f,16:d,44:39,55:40,87:h,139:621,307:43,308:p},n(e2,[2,366]),n(Ps,[2,79]),{13:f,16:d,44:136,45:ie,46:622,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Ps,[2,91],{336:[1,623]}),n([29,31,85,112,159,160,161,163,164,232,318,335],[2,114],{207:624,193:[1,625]}),n(fc,[2,117]),{13:f,16:d,44:215,45:xd,55:220,82:V,87:h,89:rt,172:221,185:351,203:536,211:626,212:627,231:Cd,234:535,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},n(Rs,[2,134]),n(Id,[2,427]),n(Rs,[2,135]),n(oo,[2,26]),{44:628,87:h},n(ao,[2,106]),n(ao,[2,394]),n(W,[2,396]),n(Pd,[2,111]),n(Pd,[2,398]),{13:f,16:d,44:39,55:40,87:h,139:342,186:629,190:340,195:341,197:no,307:43,308:p},n(hy,[2,217]),n(W,_d,{144:248,140:630,143:631,31:[2,343]}),n(Xt,[2,97]),n(Jt,[2,380]),n(Xt,[2,180]),{13:f,16:d,44:136,45:ie,46:632,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,46:633,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Xt,[2,190]),{290:[1,634]},{314:[1,635]},{13:f,16:d,48:[1,636],55:414,82:V,171:637,172:415,173:416,174:Td,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ad},n(t2,[2,305]),n(Z,[2,86]),n(mu,[2,374]),n(ya,[2,37]),n(ya,[2,38]),n(so,[2,72]),n(so,[2,360]),n(Ps,[2,77]),{29:q,57:638},{47:[1,639]},{29:[2,376]},n(fc,[2,402]),n(fc,[2,115],{215:10,208:528,214:529,44:530,205:640,13:i,16:i,45:i,197:i,224:i,229:i,308:i,87:h}),n(fc,[2,118],{272:[1,641]}),n(Od,[2,407],{213:642,319:643,317:[1,644]}),{48:[1,645]},{318:[1,646]},{31:[1,647]},{31:[2,344]},{48:[1,648]},{48:[1,649]},{291:650,303:_e,304:Se,305:ae,306:ve},n(pu,[2,218]),n(mu,[2,44]),n(t2,[2,306]),n(Ps,[2,78]),{44:651,87:h},n(fc,[2,116]),n(W,[2,406]),n(Od,[2,119]),n(Od,[2,408]),n(c,i,{215:10,205:527,208:528,214:529,44:530,202:652,87:h}),n(oo,[2,27]),n(Pd,[2,230]),n(r2,[2,345],{141:653,335:[1,654]}),n(Xt,[2,181]),n(Xt,[2,182]),{48:[2,191]},{48:[1,655]},{318:[1,656]},n(W,_d,{144:248,142:657,143:658,31:n2,112:n2}),n(r2,[2,346]),n(Ps,[2,80]),n(Od,[2,231]),n(io,[2,67]),n(io,[2,348])],defaultActions:{5:[2,240],6:[2,241],7:[2,242],9:[2,239],24:[2,1],25:[2,2],26:[2,244],87:[2,282],94:[2,384],100:[2,45],109:[2,325],166:[2,458],263:[2,439],336:[2,258],337:[2,101],487:[2,461],488:[2,462],560:[2,468],574:[2,17],575:[2,276],576:[2,18],577:[2,278],623:[2,376],631:[2,344],650:[2,191]},parseError:o(function(C,P){if(P.recoverable)this.trace(C);else{var N=new Error(C);throw N.hash=P,N}},"parseError"),parse:o(function(C){var P=this,N=[0],ne=[],Oe=[null],g=[],sn=this.table,y="",es=0,Su=0,Ld=0,kd=2,vu=1,Md=g.slice.call(arguments,1),Bt=Object.create(this.lexer),ts={yy:{}};for(var bu in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bu)&&(ts.yy[bu]=this.yy[bu]);Bt.setInput(C,ts.yy),ts.yy.lexer=Bt,ts.yy.parser=this,typeof Bt.yylloc>"u"&&(Bt.yylloc={});var gc=Bt.yylloc;g.push(gc);var St=Bt.options&&Bt.options.ranges;typeof ts.yy.parseError=="function"?this.parseError=ts.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Lt(rs){N.length=N.length-2*rs,Oe.length=Oe.length-rs,g.length=g.length-rs}o(Lt,"popStack");for(var nt=o(function(){var rs;return rs=Bt.lex()||vu,typeof rs!="number"&&(rs=P.symbols_[rs]||rs),rs},"lex"),ut,vn,fo,qn,PK,Oy,yc={},jd,Ls,m2,$d;;){if(fo=N[N.length-1],this.defaultActions[fo]?qn=this.defaultActions[fo]:((ut===null||typeof ut>"u")&&(ut=nt()),qn=sn[fo]&&sn[fo][ut]),typeof qn>"u"||!qn.length||!qn[0]){var Fy="";$d=[];for(jd in sn[fo])this.terminals_[jd]&&jd>kd&&$d.push("'"+this.terminals_[jd]+"'");Bt.showPosition?Fy="Parse error on line "+(es+1)+`:
|
|
33
|
+
`)}o(Q4,"composeErrorMessage");function Y4(n,e,t){let[,r=null]=n.toString().match(/constructor\(([\w, ]+)\)/)||[],i=H4(r,e);return Q4(`Cannot inject the dependency ${i} of "${n.name}" constructor. Reason:`,t)}o(Y4,"formatErrorCtor");Ih.formatErrorCtor=Y4});var MT=S(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});Rh.isDisposable=void 0;function K4(n){return!(typeof n.dispose!="function"||n.dispose.length>0)}o(K4,"isDisposable");Rh.isDisposable=K4});var $T=S(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.PostResolutionInterceptors=wo.PreResolutionInterceptors=void 0;var jT=t_(),Ph=class extends jT.default{static{o(this,"PreResolutionInterceptors")}};wo.PreResolutionInterceptors=Ph;var Oh=class extends jT.default{static{o(this,"PostResolutionInterceptors")}};wo.PostResolutionInterceptors=Oh;var o_=class{static{o(this,"Interceptors")}constructor(){this.preResolution=new Ph,this.postResolution=new Oh}};wo.default=o_});var wa=S(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.instance=Vs.typeInfo=void 0;var X4=(Sh(),Bd(_h)),cn=J0(),J4=NT(),Fh=Th(),Z4=LT(),Tn=z0(),Dh=kT(),eM=a_(),tM=Eh(),rM=MT(),nM=$T();Vs.typeInfo=new Map;var c_=class n{static{o(this,"InternalDependencyContainer")}constructor(e){this.parent=e,this._registry=new Z4.default,this.interceptors=new nM.default,this.disposed=!1,this.disposables=new Set}register(e,t,r={lifecycle:Tn.default.Transient}){this.ensureNotDisposed();let i;if(J4.isProvider(t)?i=t:i={useClass:t},cn.isTokenProvider(i)){let s=[e],a=i;for(;a!=null;){let c=a.useToken;if(s.includes(c))throw new Error(`Token registration cycle detected! ${[...s,c].join(" -> ")}`);s.push(c);let l=this._registry.get(c);l&&cn.isTokenProvider(l.provider)?a=l.provider:a=null}}if((r.lifecycle===Tn.default.Singleton||r.lifecycle==Tn.default.ContainerScoped||r.lifecycle==Tn.default.ResolutionScoped)&&(cn.isValueProvider(i)||cn.isFactoryProvider(i)))throw new Error(`Cannot use lifecycle "${Tn.default[r.lifecycle]}" with ValueProviders or FactoryProviders`);return this._registry.set(e,{provider:i,options:r}),this}registerType(e,t){return this.ensureNotDisposed(),cn.isNormalToken(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})}registerInstance(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})}registerSingleton(e,t){if(this.ensureNotDisposed(),cn.isNormalToken(e)){if(cn.isNormalToken(t))return this.register(e,{useToken:t},{lifecycle:Tn.default.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:Tn.default.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}let r=e;return t&&!cn.isNormalToken(t)&&(r=t),this.register(e,{useClass:r},{lifecycle:Tn.default.Singleton})}resolve(e,t=new Dh.default,r=!1){this.ensureNotDisposed();let i=this.getRegistration(e);if(!i&&cn.isNormalToken(e)){if(r)return;throw new Error(`Attempted to resolve unregistered dependency token: "${e.toString()}"`)}if(this.executePreResolutionInterceptor(e,"Single"),i){let s=this.resolveRegistration(i,t);return this.executePostResolutionInterceptor(e,s,"Single"),s}if(Fh.isConstructorToken(e)){let s=this.construct(e,t);return this.executePostResolutionInterceptor(e,s,"Single"),s}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")}executePreResolutionInterceptor(e,t){if(this.interceptors.preResolution.has(e)){let r=[];for(let i of this.interceptors.preResolution.getAll(e))i.options.frequency!="Once"&&r.push(i),i.callback(e,t);this.interceptors.preResolution.setAll(e,r)}}executePostResolutionInterceptor(e,t,r){if(this.interceptors.postResolution.has(e)){let i=[];for(let s of this.interceptors.postResolution.getAll(e))s.options.frequency!="Once"&&i.push(s),s.callback(e,t,r);this.interceptors.postResolution.setAll(e,i)}}resolveRegistration(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===Tn.default.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);let r=e.options.lifecycle===Tn.default.Singleton,i=e.options.lifecycle===Tn.default.ContainerScoped,s=r||i,a;return cn.isValueProvider(e.provider)?a=e.provider.useValue:cn.isTokenProvider(e.provider)?a=s?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):cn.isClassProvider(e.provider)?a=s?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):cn.isFactoryProvider(e.provider)?a=e.provider.useFactory(this):a=this.construct(e.provider,t),e.options.lifecycle===Tn.default.ResolutionScoped&&t.scopedResolutions.set(e,a),a}resolveAll(e,t=new Dh.default,r=!1){this.ensureNotDisposed();let i=this.getAllRegistrations(e);if(!i&&cn.isNormalToken(e)){if(r)return[];throw new Error(`Attempted to resolve unregistered dependency token: "${e.toString()}"`)}if(this.executePreResolutionInterceptor(e,"All"),i){let a=i.map(c=>this.resolveRegistration(c,t));return this.executePostResolutionInterceptor(e,a,"All"),a}let s=[this.construct(e,t)];return this.executePostResolutionInterceptor(e,s,"All"),s}isRegistered(e,t=!1){return this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)}reset(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()}clearInstances(){this.ensureNotDisposed();for(let[e,t]of this._registry.entries())this._registry.setAll(e,t.filter(r=>!cn.isValueProvider(r.provider)).map(r=>(r.instance=void 0,r)))}createChildContainer(){this.ensureNotDisposed();let e=new n(this);for(let[t,r]of this._registry.entries())r.some(({options:i})=>i.lifecycle===Tn.default.ContainerScoped)&&e._registry.setAll(t,r.map(i=>i.options.lifecycle===Tn.default.ContainerScoped?{provider:i.provider,options:i.options}:i));return e}beforeResolution(e,t,r={frequency:"Always"}){this.interceptors.preResolution.set(e,{callback:t,options:r})}afterResolution(e,t,r={frequency:"Always"}){this.interceptors.postResolution.set(e,{callback:t,options:r})}dispose(){return X4.__awaiter(this,void 0,void 0,function*(){this.disposed=!0;let e=[];this.disposables.forEach(t=>{let r=t.dispose();r&&e.push(r)}),yield Promise.all(e)})}getRegistration(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null}getAllRegistrations(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null}construct(e,t){if(e instanceof tM.DelayedConstructor)return e.createProxy(i=>this.resolve(i,t));let r=(()=>{let i=Vs.typeInfo.get(e);if(!i||i.length===0){if(e.length===0)return new e;throw new Error(`TypeInfo not known for "${e.name}"`)}let s=i.map(this.resolveParams(t,e));return new e(...s)})();return rM.isDisposable(r)&&this.disposables.add(r),r}resolveParams(e,t){return(r,i)=>{try{return Fh.isTokenDescriptor(r)?Fh.isTransformDescriptor(r)?r.multiple?this.resolve(r.transform).transform(this.resolveAll(r.token,new Dh.default,r.isOptional),...r.transformArgs):this.resolve(r.transform).transform(this.resolve(r.token,e,r.isOptional),...r.transformArgs):r.multiple?this.resolveAll(r.token,new Dh.default,r.isOptional):this.resolve(r.token,e,r.isOptional):Fh.isTransformDescriptor(r)?this.resolve(r.transform,e).transform(this.resolve(r.token,e),...r.transformArgs):this.resolve(r,e)}catch(s){throw new Error(eM.formatErrorCtor(t,i,s))}}}ensureNotDisposed(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")}};Vs.instance=new c_;Vs.default=Vs.instance});var BT=S(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});var iM=vo(),Us=wa(),l_=Th(),sM=a_();function aM(){return function(n){let e=iM.getParamInfo(n);return class extends n{constructor(...t){super(...t.concat(e.slice(t.length).map((r,i)=>{try{return l_.isTokenDescriptor(r)?l_.isTransformDescriptor(r)?r.multiple?Us.instance.resolve(r.transform).transform(Us.instance.resolveAll(r.token),...r.transformArgs):Us.instance.resolve(r.transform).transform(Us.instance.resolve(r.token),...r.transformArgs):r.multiple?Us.instance.resolveAll(r.token):Us.instance.resolve(r.token):l_.isTransformDescriptor(r)?Us.instance.resolve(r.transform).transform(Us.instance.resolve(r.token),...r.transformArgs):Us.instance.resolve(r)}catch(s){let a=i+t.length;throw new Error(sM.formatErrorCtor(n,a,s))}})))}}}}o(aM,"autoInjectable");u_.default=aM});var VT=S(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0});var oM=vo();function cM(n,e){let t={token:n,multiple:!1,isOptional:e&&e.isOptional};return oM.defineInjectionTokenMetadata(t)}o(cM,"inject");f_.default=cM});var Nh=S(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0});var lM=vo(),uM=wa(),UT=wa();function fM(n){return function(e){uM.typeInfo.set(e,lM.getParamInfo(e)),n&&n.token&&(Array.isArray(n.token)?n.token.forEach(t=>{UT.instance.register(t,e)}):UT.instance.register(n.token,e))}}o(fM,"injectable");d_.default=fM});var qT=S(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});var dM=(Sh(),Bd(_h)),hM=wa();function pM(n=[]){return function(e){return n.forEach(t=>{var{token:r,options:i}=t,s=dM.__rest(t,["token","options"]);return hM.instance.register(r,s,i)}),e}}o(pM,"registry");h_.default=pM});var WT=S(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0});var mM=Nh(),gM=wa();function yM(){return function(n){mM.default()(n),gM.instance.registerSingleton(n)}}o(yM,"singleton");p_.default=yM});var GT=S(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});var _M=vo();function SM(n,e){let t={token:n,multiple:!0,isOptional:e&&e.isOptional};return _M.defineInjectionTokenMetadata(t)}o(SM,"injectAll");m_.default=SM});var zT=S(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});var vM=vo();function bM(n,e,...t){let r={token:n,multiple:!0,transform:e,transformArgs:t};return vM.defineInjectionTokenMetadata(r)}o(bM,"injectAllWithTransform");g_.default=bM});var HT=S(y_=>{"use strict";Object.defineProperty(y_,"__esModule",{value:!0});var wM=vo();function EM(n,e,...t){return wM.defineInjectionTokenMetadata(n,{transformToken:e,args:t})}o(EM,"injectWithTransform");y_.default=EM});var QT=S(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0});var TM=Nh(),AM=wa();function xM(n,e){return function(t){TM.default()(t),AM.instance.register(e||t,t,{lifecycle:n})}}o(xM,"scoped");__.default=xM});var YT=S(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});var CM=BT();Object.defineProperty(fi,"autoInjectable",{enumerable:!0,get:o(function(){return CM.default},"get")});var IM=VT();Object.defineProperty(fi,"inject",{enumerable:!0,get:o(function(){return IM.default},"get")});var RM=Nh();Object.defineProperty(fi,"injectable",{enumerable:!0,get:o(function(){return RM.default},"get")});var PM=qT();Object.defineProperty(fi,"registry",{enumerable:!0,get:o(function(){return PM.default},"get")});var OM=WT();Object.defineProperty(fi,"singleton",{enumerable:!0,get:o(function(){return OM.default},"get")});var FM=GT();Object.defineProperty(fi,"injectAll",{enumerable:!0,get:o(function(){return FM.default},"get")});var DM=zT();Object.defineProperty(fi,"injectAllWithTransform",{enumerable:!0,get:o(function(){return DM.default},"get")});var NM=HT();Object.defineProperty(fi,"injectWithTransform",{enumerable:!0,get:o(function(){return NM.default},"get")});var LM=QT();Object.defineProperty(fi,"scoped",{enumerable:!0,get:o(function(){return LM.default},"get")})});var KT=S(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0});function kM(n){let e;return t=>(e==null&&(e=n(t)),e)}o(kM,"instanceCachingFactory");S_.default=kM});var XT=S(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0});function MM(n){let e=new WeakMap;return t=>{let r=e.get(t);return r==null&&(r=n(t),e.set(t,r)),r}}o(MM,"instancePerContainerCachingFactory");v_.default=MM});var JT=S(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0});function jM(n,e,t,r=!0){let i,s;return a=>{let c=n(a);return(!r||s!==c)&&((s=c)?i=a.resolve(e):i=a.resolve(t)),i}}o(jM,"predicateAwareClassFactory");b_.default=jM});var ZT=S(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var $M=KT();Object.defineProperty(Bu,"instanceCachingFactory",{enumerable:!0,get:o(function(){return $M.default},"get")});var BM=XT();Object.defineProperty(Bu,"instancePerContainerCachingFactory",{enumerable:!0,get:o(function(){return BM.default},"get")});var VM=JT();Object.defineProperty(Bu,"predicateAwareClassFactory",{enumerable:!0,get:o(function(){return VM.default},"get")})});var le=S(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var w_=(Sh(),Bd(_h));if(typeof Reflect>"u"||!Reflect.getMetadata)throw new Error(`tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.`);var UM=DT();Object.defineProperty(Ea,"Lifecycle",{enumerable:!0,get:o(function(){return UM.Lifecycle},"get")});w_.__exportStar(YT(),Ea);w_.__exportStar(ZT(),Ea);w_.__exportStar(J0(),Ea);var qM=Eh();Object.defineProperty(Ea,"delay",{enumerable:!0,get:o(function(){return qM.delay},"get")});var WM=wa();Object.defineProperty(Ea,"container",{enumerable:!0,get:o(function(){return WM.instance},"get")})});var Ac=S(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});Lh.NullLogger=void 0;Lh.NullLogger={debug(){},info(){},warn(){},error(){}}});var E_=S((mee,eA)=>{var xc=class{static{o(this,"Wildcard")}constructor(){return GM||this}equals(e){return e&&this.termType===e.termType}};Object.defineProperty(xc.prototype,"value",{enumerable:!0,value:"*"});Object.defineProperty(xc.prototype,"termType",{enumerable:!0,value:"Wildcard"});var GM=new xc;eA.exports.Wildcard=xc});var rA=S((yee,tA)=>{var zM=(function(){var n=o(function(I,C,P,N){for(P=P||{},N=I.length;N--;P[I[N]]=C);return P},"o"),e=[6,12,13,15,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],t=[2,247],r=[100,110,113,115,116,123,126,131,329,330,331,332,333],i=[2,409],s=[1,18],a=[1,27],c=[13,16,45,197,224,229,308],l=[28,29,53],u=[28,53],f=[1,42],d=[1,45],h=[1,41],p=[1,44],_=[123,126],v=[1,67],E=[39,45,87],b=[13,16,45,197,224,308],A=[1,87],R=[2,281],B=[1,86],W=[13,16,45,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],we=[6,28,29,53,63,70,73,81,83,85],z=[6,13,16,28,29,53,63,70,73,81,83,85,87,308],G=[6,13,16,28,29,45,53,63,70,73,81,82,83,85,87,89,197,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314],F=[6,13,16,28,29,31,39,45,47,48,53,63,70,73,81,82,83,85,87,89,109,112,121,123,126,128,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,337,338,340,341,342,343,344,345,346],j=[13,16,308],te=[112,132,327,334],Ye=[13,16,112,132,308],st=[1,111],Pt=[1,117],at=[112,132,327,328,334],ct=[13,16,112,132,308,328],Ke=[28,29,45,53,87],ie=[1,138],V=[1,151],lt=[1,128],pt=[1,127],H=[1,129],Re=[1,140],Ue=[1,141],re=[1,142],qe=[1,143],We=[1,144],$e=[1,145],Ge=[1,147],Ae=[1,148],Be=[2,457],Pe=[1,158],Ve=[1,159],ze=[1,160],ue=[1,152],pe=[1,153],me=[1,156],fe=[1,171],de=[1,172],he=[1,173],ce=[1,174],ge=[1,175],ye=[1,176],_e=[1,167],Se=[1,168],ae=[1,169],ve=[1,170],Ze=[1,157],He=[1,166],Me=[1,161],w=[1,162],T=[1,163],x=[1,164],O=[1,165],Z=[6,13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],_t=[1,195],xt=[6,31,73,81,83,85],De=[2,285],U=[1,199],q=[1,201],Q=[6,31,70,73,81,83,85],K=[2,283],Ie=[1,207],tt=[1,218],rt=[1,223],Cr=[1,219],Sn=[1,225],Nn=[1,226],tn=[1,224],IE=[6,63,70,73,81,83,85],RE=[1,236],PE=[2,334],OE=[1,243],FE=[1,241],Ir=[6,193],_d=[2,349],DE=[2,339],ma=[28,128],NE=[47,48,193,272],Sd=[47,48,193,242,272],oc=[47,48,193,242,246,272],cc=[47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,341,342,343,344,345,346],mr=[39,47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,338,341,342,343,344,345,346],LE=[1,271],kE=[1,270],Xt=[6,13,16,29,31,39,45,47,48,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],ME=[1,281],jE=[1,280],rn=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],du=[45,89],vd=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],bd=[13,16,31,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],wd=[31,89],Ed=[48,87],ro=[6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338],Xi=[6,13,16,39,45,48,82,87,89,231,263,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338,340],$E=[1,313],lc=[6,85],dy=[6,31,81,83,85],BE=[2,361],Is=[2,353],no=[1,343],hu=[31,112,335],Rs=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],hy=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335],VE=[6,109,193],io=[31,112],Jt=[13,16,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],py=[1,390],my=[1,391],ga=[13,16,87,197,308,314],UE=[13,16,39,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],Td=[1,417],Ad=[1,418],qE=[13,16,48,197,229,308],ya=[6,31,85],WE=[6,13,16,31,45,73,81,83,85,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],gy=[6,13,16,29,31,45,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,231,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,346,347,348,349,350,351],so=[29,31,85,112,159,160,161,163,164],xd=[1,443],Cd=[1,444],GE=[1,449],ao=[31,112,193,232,318,335],Id=[13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],zE=[13,16,31,45,48,82,87,89,112,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],yy=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],pu=[13,16,31,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],mu=[31,45],HE=[1,507],QE=[1,508],YE=[6,13,16,29,31,39,45,47,48,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,336,338,341,342,343,344,345,346,347,348,349,350,351],Rd=[29,31,85,112,159,160,161,163,164,335],oo=[6,13,16,31,45,70,73,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],KE=[13,16,31,45,48,82,87,89,112,193,197,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],XE=[2,352],_y=[13,16,197,308,314],JE=[1,565],uc=[6,13,16,31,45,76,78,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],ZE=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],Ps=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],e2=[13,16,87,308],Os=[2,364],fc=[29,31,85,112,159,160,161,163,164,193,232,318,335],Pd=[31,112,193,232,272,318,335],Fs=[2,359],t2=[13,16,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Od=[29,31,85,112,159,160,161,163,164,193,232,272,318,335],r2=[13,16,31,45,82,87,89,112,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],n2=[2,347],Sy={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,QueryOrUpdate:3,Prologue:4,QueryOrUpdate_group0:5,EOF:6,Query:7,Qry:8,Query_option0:9,Prologue_repetition0:10,BaseDecl:11,BASE:12,IRIREF:13,PrefixDecl:14,PREFIX:15,PNAME_NS:16,SelectClauseWildcard:17,Qry_repetition0:18,WhereClause:19,SolutionModifierNoGroup:20,SelectClauseVars:21,Qry_repetition1:22,SolutionModifier:23,CONSTRUCT:24,ConstructTemplate:25,Qry_repetition2:26,Qry_repetition3:27,WHERE:28,"{":29,Qry_option0:30,"}":31,DESCRIBE:32,Qry_group0:33,Qry_repetition4:34,Qry_option1:35,ASK:36,Qry_repetition5:37,SelectClauseBase:38,"*":39,SelectClauseVars_repetition_plus0:40,SELECT:41,SelectClauseBase_option0:42,SelectClauseItem:43,Var:44,"(":45,Expression:46,AS:47,")":48,SubSelect:49,SubSelect_option0:50,SubSelect_option1:51,DatasetClause:52,FROM:53,DatasetClause_option0:54,iri:55,WhereClause_option0:56,GroupGraphPattern:57,SolutionModifier_option0:58,SolutionModifierNoGroup_option0:59,SolutionModifierNoGroup_option1:60,SolutionModifierNoGroup_option2:61,GroupClause:62,GROUP:63,BY:64,GroupClause_repetition_plus0:65,GroupCondition:66,BuiltInCall:67,FunctionCall:68,HavingClause:69,HAVING:70,HavingClause_repetition_plus0:71,OrderClause:72,ORDER:73,OrderClause_repetition_plus0:74,OrderCondition:75,ASC:76,BrackettedExpression:77,DESC:78,Constraint:79,LimitOffsetClauses:80,LIMIT:81,INTEGER:82,OFFSET:83,ValuesClause:84,VALUES:85,InlineData:86,VAR:87,InlineData_repetition0:88,NIL:89,InlineData_repetition1:90,InlineData_repetition_plus2:91,InlineData_repetition3:92,DataBlock:93,DataBlockValueList:94,DataBlockValueList_repetition_plus0:95,Update:96,Update_repetition0:97,Update1:98,Update_option0:99,LOAD:100,Update1_option0:101,Update1_option1:102,Update1_group0:103,Update1_option2:104,GraphRefAll:105,Update1_group1:106,Update1_option3:107,GraphOrDefault:108,TO:109,CREATE:110,Update1_option4:111,GRAPH:112,INSERTDATA:113,QuadPattern:114,DELETEDATA:115,DELETEWHERE:116,Update1_option5:117,InsertDeleteClause:118,Update1_repetition0:119,IntoGraphClause:120,INTO:121,GraphRef:122,DELETE:123,InsertDeleteClause_option0:124,InsertClause:125,INSERT:126,UsingClause:127,USING:128,UsingClause_option0:129,WithClause:130,WITH:131,DEFAULT:132,GraphOrDefault_option0:133,GraphRefAll_group0:134,Quads:135,Quads_option0:136,Quads_repetition0:137,QuadsNotTriples:138,VarOrIri:139,QuadsNotTriples_option0:140,QuadsNotTriples_option1:141,QuadsNotTriples_option2:142,TriplesTemplate:143,TriplesTemplate_repetition0:144,TriplesSameSubject:145,TriplesTemplate_option0:146,GroupGraphPatternSub:147,GroupGraphPatternSub_option0:148,GroupGraphPatternSub_repetition0:149,GroupGraphPatternSubTail:150,GraphPatternNotTriples:151,GroupGraphPatternSubTail_option0:152,GroupGraphPatternSubTail_option1:153,TriplesBlock:154,TriplesBlock_repetition0:155,TriplesSameSubjectPath:156,TriplesBlock_option0:157,GroupOrUnionGraphPattern:158,OPTIONAL:159,MINUS:160,SERVICE:161,GraphPatternNotTriples_option0:162,FILTER:163,BIND:164,InlineDataOneVar:165,InlineDataFull:166,InlineDataOneVar_repetition0:167,InlineDataFull_repetition0:168,InlineDataFull_repetition_plus1:169,InlineDataFull_repetition2:170,DataBlockValue:171,Literal:172,QuotedTriple:173,UNDEF:174,GroupOrUnionGraphPattern_repetition0:175,ArgList:176,ArgList_option0:177,ArgList_repetition0:178,ExpressionList:179,ExpressionList_repetition0:180,ConstructTemplate_option0:181,ConstructTriples:182,ConstructTriples_repetition0:183,ConstructTriples_option0:184,VarOrTermOrQuotedTP:185,PropertyListNotEmpty:186,TriplesNode:187,PropertyList:188,PropertyList_option0:189,VerbObjectList:190,PropertyListNotEmpty_repetition0:191,SemiOptionalVerbObjectList:192,";":193,SemiOptionalVerbObjectList_option0:194,Verb:195,ObjectList:196,a:197,ObjectList_repetition0:198,Object:199,GraphNode:200,Object_option0:201,PropertyListPathNotEmpty:202,TriplesNodePath:203,TriplesSameSubjectPath_option0:204,O:205,PropertyListPathNotEmpty_repetition0:206,PropertyListPathNotEmptyTail:207,O_group0:208,ObjectListPath:209,ObjectListPath_repetition0:210,ObjectPath:211,GraphNodePath:212,ObjectPath_option0:213,Path:214,Path_repetition0:215,PathSequence:216,PathSequence_repetition0:217,PathEltOrInverse:218,PathElt:219,PathPrimary:220,PathElt_option0:221,PathEltOrInverse_option0:222,IriOrA:223,"!":224,PathNegatedPropertySet:225,PathOneInPropertySet:226,PathNegatedPropertySet_repetition0:227,PathNegatedPropertySet_option0:228,"^":229,TriplesNode_repetition_plus0:230,"[":231,"]":232,TriplesNodePath_repetition_plus0:233,VarOrTermOrQuotedTPExpr:234,VarOrTerm:235,GraphTerm:236,BlankNode:237,ConditionalOrExpression:238,ConditionalAndExpression:239,ConditionalOrExpression_repetition0:240,ConditionalOrExpressionTail:241,"||":242,RelationalExpression:243,ConditionalAndExpression_repetition0:244,ConditionalAndExpressionTail:245,"&&":246,NumericExpression:247,RelationalExpression_group0:248,RelationalExpression_option0:249,IN:250,MultiplicativeExpression:251,NumericExpression_repetition0:252,AdditiveExpressionTail:253,AdditiveExpressionTail_group0:254,NumericLiteralPositive:255,AdditiveExpressionTail_repetition0:256,NumericLiteralNegative:257,AdditiveExpressionTail_repetition1:258,UnaryExpression:259,MultiplicativeExpression_repetition0:260,MultiplicativeExpressionTail:261,MultiplicativeExpressionTail_group0:262,"+":263,PrimaryExpression:264,"-":265,ExprQuotedTP:266,Aggregate:267,FUNC_ARITY0:268,FUNC_ARITY1:269,FUNC_ARITY1_SPARQL_STAR:270,FUNC_ARITY2:271,",":272,FUNC_ARITY3:273,FUNC_ARITY3_SPARQL_STAR:274,BuiltInCall_group0:275,BOUND:276,BNODE:277,BuiltInCall_option0:278,EXISTS:279,COUNT:280,Aggregate_option0:281,Aggregate_group0:282,FUNC_AGGREGATE:283,Aggregate_option1:284,GROUP_CONCAT:285,Aggregate_option2:286,Aggregate_option3:287,GroupConcatSeparator:288,SEPARATOR:289,"=":290,String:291,LANGTAG:292,"^^":293,DECIMAL:294,DOUBLE:295,BOOLEAN:296,INTEGER_POSITIVE:297,DECIMAL_POSITIVE:298,DOUBLE_POSITIVE:299,INTEGER_NEGATIVE:300,DECIMAL_NEGATIVE:301,DOUBLE_NEGATIVE:302,STRING_LITERAL1:303,STRING_LITERAL2:304,STRING_LITERAL_LONG1:305,STRING_LITERAL_LONG2:306,PrefixedName:307,PNAME_LN:308,BLANK_NODE_LABEL:309,ANON:310,QuotedTP:311,"<<":312,qtSubjectOrObject:313,">>":314,DataValueTerm:315,AnnotationPattern:316,"{|":317,"|}":318,AnnotationPatternPath:319,ExprVarOrTerm:320,QueryOrUpdate_group0_option0:321,Prologue_repetition0_group0:322,Qry_group0_repetition_plus0:323,SelectClauseBase_option0_group0:324,DISTINCT:325,REDUCED:326,NAMED:327,SILENT:328,CLEAR:329,DROP:330,ADD:331,MOVE:332,COPY:333,ALL:334,".":335,UNION:336,"|":337,"/":338,PathElt_option0_group0:339,"?":340,"!=":341,"<":342,">":343,"<=":344,">=":345,NOT:346,CONCAT:347,COALESCE:348,SUBSTR:349,REGEX:350,REPLACE:351,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",12:"BASE",13:"IRIREF",15:"PREFIX",16:"PNAME_NS",24:"CONSTRUCT",28:"WHERE",29:"{",31:"}",32:"DESCRIBE",36:"ASK",39:"*",41:"SELECT",45:"(",47:"AS",48:")",53:"FROM",63:"GROUP",64:"BY",70:"HAVING",73:"ORDER",76:"ASC",78:"DESC",81:"LIMIT",82:"INTEGER",83:"OFFSET",85:"VALUES",87:"VAR",89:"NIL",100:"LOAD",109:"TO",110:"CREATE",112:"GRAPH",113:"INSERTDATA",115:"DELETEDATA",116:"DELETEWHERE",121:"INTO",123:"DELETE",126:"INSERT",128:"USING",131:"WITH",132:"DEFAULT",159:"OPTIONAL",160:"MINUS",161:"SERVICE",163:"FILTER",164:"BIND",174:"UNDEF",193:";",197:"a",224:"!",229:"^",231:"[",232:"]",242:"||",246:"&&",250:"IN",263:"+",265:"-",268:"FUNC_ARITY0",269:"FUNC_ARITY1",270:"FUNC_ARITY1_SPARQL_STAR",271:"FUNC_ARITY2",272:",",273:"FUNC_ARITY3",274:"FUNC_ARITY3_SPARQL_STAR",276:"BOUND",277:"BNODE",279:"EXISTS",280:"COUNT",283:"FUNC_AGGREGATE",285:"GROUP_CONCAT",289:"SEPARATOR",290:"=",292:"LANGTAG",293:"^^",294:"DECIMAL",295:"DOUBLE",296:"BOOLEAN",297:"INTEGER_POSITIVE",298:"DECIMAL_POSITIVE",299:"DOUBLE_POSITIVE",300:"INTEGER_NEGATIVE",301:"DECIMAL_NEGATIVE",302:"DOUBLE_NEGATIVE",303:"STRING_LITERAL1",304:"STRING_LITERAL2",305:"STRING_LITERAL_LONG1",306:"STRING_LITERAL_LONG2",308:"PNAME_LN",309:"BLANK_NODE_LABEL",310:"ANON",312:"<<",314:">>",317:"{|",318:"|}",325:"DISTINCT",326:"REDUCED",327:"NAMED",328:"SILENT",329:"CLEAR",330:"DROP",331:"ADD",332:"MOVE",333:"COPY",334:"ALL",335:".",336:"UNION",337:"|",338:"/",340:"?",341:"!=",342:"<",343:">",344:"<=",345:">=",346:"NOT",347:"CONCAT",348:"COALESCE",349:"SUBSTR",350:"REGEX",351:"REPLACE"},productions_:[0,[3,3],[7,2],[4,1],[11,2],[14,3],[8,4],[8,4],[8,5],[8,7],[8,5],[8,4],[17,2],[21,2],[38,2],[43,1],[43,5],[49,4],[49,4],[52,3],[19,2],[23,2],[20,3],[62,3],[66,1],[66,1],[66,3],[66,5],[66,1],[69,2],[72,3],[75,2],[75,2],[75,1],[75,1],[80,2],[80,2],[80,4],[80,4],[84,2],[86,4],[86,4],[86,6],[86,2],[94,3],[96,3],[98,4],[98,3],[98,5],[98,4],[98,2],[98,2],[98,2],[98,5],[120,2],[118,3],[118,1],[125,2],[127,3],[130,2],[108,1],[108,2],[122,2],[105,1],[105,1],[114,3],[135,2],[138,7],[143,3],[57,3],[57,3],[147,2],[150,3],[154,3],[151,1],[151,2],[151,2],[151,3],[151,4],[151,2],[151,6],[151,1],[93,1],[93,1],[165,4],[166,4],[166,6],[171,1],[171,1],[171,1],[171,1],[158,2],[79,1],[79,1],[79,1],[68,2],[176,1],[176,5],[179,1],[179,4],[25,3],[182,3],[145,2],[145,2],[188,1],[186,2],[192,2],[190,2],[195,1],[195,1],[196,2],[199,2],[156,2],[156,2],[202,2],[207,1],[207,2],[205,2],[209,2],[211,2],[214,2],[216,2],[219,2],[218,2],[220,1],[220,2],[220,3],[225,1],[225,1],[225,4],[226,1],[226,2],[187,3],[187,3],[203,3],[203,3],[200,1],[200,1],[212,1],[212,1],[234,1],[235,1],[235,1],[139,1],[139,1],[44,1],[236,1],[236,1],[236,1],[236,1],[46,1],[238,2],[241,2],[239,2],[245,2],[243,1],[243,3],[243,4],[247,2],[253,2],[253,2],[253,2],[251,2],[261,2],[259,2],[259,2],[259,2],[259,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[77,3],[67,1],[67,2],[67,4],[67,4],[67,6],[67,8],[67,8],[67,2],[67,4],[67,2],[67,4],[67,3],[267,5],[267,5],[267,6],[288,4],[172,1],[172,2],[172,3],[172,1],[172,1],[172,1],[172,1],[172,1],[172,1],[255,1],[255,1],[255,1],[257,1],[257,1],[257,1],[291,1],[291,1],[291,1],[291,1],[55,1],[55,1],[307,1],[307,1],[237,1],[237,1],[311,5],[173,5],[313,1],[313,1],[313,1],[313,1],[313,1],[315,1],[315,1],[315,1],[185,1],[185,1],[185,1],[316,3],[319,3],[266,5],[320,1],[320,1],[320,1],[223,1],[223,1],[321,0],[321,1],[5,1],[5,1],[5,1],[9,0],[9,1],[322,1],[322,1],[10,0],[10,2],[18,0],[18,2],[22,0],[22,2],[26,0],[26,2],[27,0],[27,2],[30,0],[30,1],[323,1],[323,2],[33,1],[33,1],[34,0],[34,2],[35,0],[35,1],[37,0],[37,2],[40,1],[40,2],[324,1],[324,1],[42,0],[42,1],[50,0],[50,1],[51,0],[51,1],[54,0],[54,1],[56,0],[56,1],[58,0],[58,1],[59,0],[59,1],[60,0],[60,1],[61,0],[61,1],[65,1],[65,2],[71,1],[71,2],[74,1],[74,2],[88,0],[88,2],[90,0],[90,2],[91,1],[91,2],[92,0],[92,2],[95,1],[95,2],[97,0],[97,4],[99,0],[99,2],[101,0],[101,1],[102,0],[102,1],[103,1],[103,1],[104,0],[104,1],[106,1],[106,1],[106,1],[107,0],[107,1],[111,0],[111,1],[117,0],[117,1],[119,0],[119,2],[124,0],[124,1],[129,0],[129,1],[133,0],[133,1],[134,1],[134,1],[134,1],[136,0],[136,1],[137,0],[137,2],[140,0],[140,1],[141,0],[141,1],[142,0],[142,1],[144,0],[144,3],[146,0],[146,1],[148,0],[148,1],[149,0],[149,2],[152,0],[152,1],[153,0],[153,1],[155,0],[155,3],[157,0],[157,1],[162,0],[162,1],[167,0],[167,2],[168,0],[168,2],[169,1],[169,2],[170,0],[170,2],[175,0],[175,3],[177,0],[177,1],[178,0],[178,3],[180,0],[180,3],[181,0],[181,1],[183,0],[183,3],[184,0],[184,1],[189,0],[189,1],[191,0],[191,2],[194,0],[194,1],[198,0],[198,3],[201,0],[201,1],[204,0],[204,1],[206,0],[206,2],[208,1],[208,1],[210,0],[210,3],[213,0],[213,1],[215,0],[215,3],[217,0],[217,3],[339,1],[339,1],[339,1],[221,0],[221,1],[222,0],[222,1],[227,0],[227,3],[228,0],[228,1],[230,1],[230,2],[233,1],[233,2],[240,0],[240,2],[244,0],[244,2],[248,1],[248,1],[248,1],[248,1],[248,1],[248,1],[249,0],[249,1],[252,0],[252,2],[254,1],[254,1],[256,0],[256,2],[258,0],[258,2],[260,0],[260,2],[262,1],[262,1],[275,1],[275,1],[275,1],[275,1],[275,1],[278,0],[278,1],[281,0],[281,1],[282,1],[282,1],[284,0],[284,1],[286,0],[286,1],[287,0],[287,1]],performAction:o(function(C,P,N,ne,Oe,g,sn){var y=g.length-1;switch(Oe){case 1:if(g[y-1]=g[y-1]||{},Le.base&&(g[y-1].base=Le.base),Le.base="",g[y-1].prefixes=Le.prefixes,Le.prefixes=null,Le.pathOnly){if(g[y-1].type==="path"||"termType"in g[y-1])return g[y-1];throw new Error("Received full SPARQL query in path only mode")}else if(g[y-1].type==="path"||"termType"in g[y-1])throw new Error("Received only path in full SPARQL mode");if(g[y-1].type==="update"){let St={};for(let Lt of g[y-1].updates)if(Lt.updateType==="insert"){let nt={};for(let ut of Lt.insert)if(ut.type==="bgp"||ut.type==="graph")for(let vn of ut.triples)vn.subject.termType==="BlankNode"&&(nt[vn.subject.value]=!0),vn.predicate.termType==="BlankNode"&&(nt[vn.predicate.value]=!0),vn.object.termType==="BlankNode"&&(nt[vn.object.value]=!0);for(let ut of Object.keys(nt)){if(St[ut])throw new Error("Detected reuse blank node across different INSERT DATA clauses");St[ut]=!0}}}return g[y-1];case 2:this.$={...g[y-1],...g[y],type:"query"};break;case 4:Le.base=gu(g[y]);break;case 5:Le.prefixes||(Le.prefixes={}),g[y-1]=g[y-1].substr(0,g[y-1].length-1),g[y]=gu(g[y]),Le.prefixes[g[y-1]]=g[y];break;case 6:this.$={...g[y-3],...uo(g[y-2]),...g[y-1],...g[y]};break;case 7:if(!Le.skipValidation&&(Cy(g[y-3].variables.map(Lt=>xy(Lt.expression))).some(Lt=>Lt.aggregation==="count"&&!(Lt.expression instanceof Fd))||g[y].group)){for(let Lt of g[y-3].variables)if(Lt.termType==="Variable"){if(!g[y].group||!g[y].group.map(nt=>mc(nt)).includes(mc(Lt)))throw Error("Projection of ungrouped variable (?"+mc(Lt)+")")}else if(xy(Lt.expression).length===0){let nt=XD(Lt.expression);for(let ut of nt)if(!g[y].group||!g[y].group.map||!g[y].group.map(vn=>mc(vn)).includes(mc(ut)))throw Error("Use of ungrouped variable in projection of operation (?"+mc(ut)+")")}}let ts=g[y-1].where.filter(St=>St.type==="query");if(ts.length>0){let St=g[y-3].variables.filter(nt=>nt.variable&&nt.variable.value).map(nt=>nt.variable.value),Lt=Cy(ts.map(nt=>nt.variables)).map(nt=>nt.value||nt.variable.value);for(let nt of St)if(Lt.indexOf(nt)>=0)throw Error("Target id of 'AS' (?"+nt+") already used in subquery")}this.$=Gt(g[y-3],uo(g[y-2]),g[y-1],g[y]);break;case 8:this.$=Gt({queryType:"CONSTRUCT",template:g[y-3]},uo(g[y-2]),g[y-1],g[y]);break;case 9:this.$=Gt({queryType:"CONSTRUCT",template:g[y-2]=g[y-2]?g[y-2].triples:[]},uo(g[y-5]),{where:[{type:"bgp",triples:lo([],g[y-2])}]},g[y]);break;case 10:this.$=Gt({queryType:"DESCRIBE",variables:g[y-3]==="*"?[new Fd]:g[y-3]},uo(g[y-2]),g[y-1],g[y]);break;case 11:this.$=Gt({queryType:"ASK"},uo(g[y-2]),g[y-1],g[y]);break;case 12:this.$=Gt(g[y-1],{variables:[new Fd]});break;case 13:let bu=g[y].map(St=>St.value||St.variable.value),gc=JD(bu);if(gc.length>0)throw Error("Two or more of the resulting columns have the same name (?"+gc[0]+")");this.$=Gt(g[y-1],{variables:g[y]});break;case 14:this.$=Gt({queryType:"SELECT"},g[y]&&(g[y-1]=nn(g[y]),g[y]={},g[y][g[y-1]]=!0,g[y]));break;case 16:case 27:this.$=dc(g[y-3],{variable:g[y-1]});break;case 17:case 18:this.$=Gt(g[y-3],g[y-2],g[y-1],g[y],{type:"query"});break;case 19:case 58:this.$={iri:g[y],named:!!g[y-1]};break;case 20:this.$={where:g[y].patterns};break;case 21:this.$=Gt(g[y-1],g[y]);break;case 22:this.$=Gt(g[y-2],g[y-1],g[y]);break;case 23:this.$={group:g[y]};break;case 24:case 25:case 28:case 31:case 33:case 34:this.$=dc(g[y]);break;case 26:this.$=dc(g[y-1]);break;case 29:this.$={having:g[y]};break;case 30:this.$={order:g[y]};break;case 32:this.$=dc(g[y],{descending:!0});break;case 35:this.$={limit:pc(g[y])};break;case 36:this.$={offset:pc(g[y])};break;case 37:this.$={limit:pc(g[y-2]),offset:pc(g[y])};break;case 38:this.$={limit:pc(g[y]),offset:pc(g[y-2])};break;case 39:case 43:this.$={type:"values",values:g[y]};break;case 40:case 84:this.$=g[y-1].map(St=>({[g[y-3]]:St}));break;case 41:case 85:this.$=g[y-1].map(()=>({}));break;case 42:case 86:var es=g[y-4].length;g[y-4]=g[y-4].map(vy),this.$=g[y-1].map(function(St){if(St.length!==es)throw Error("Inconsistent VALUES length");for(var Lt={},nt=0;nt<es;nt++)Lt["?"+g[y-4][nt].value]=St[nt];return Lt});break;case 44:case 65:case 100:case 126:case 175:this.$=g[y-1];break;case 45:this.$={type:"update",updates:Ds(g[y-2],g[y-1])};break;case 46:this.$=Gt({type:"load",silent:!!g[y-2],source:g[y-1]},g[y]&&{destination:g[y]});break;case 47:this.$={type:nn(g[y-2]),silent:!!g[y-1],graph:g[y]};break;case 48:this.$={type:nn(g[y-4]),silent:!!g[y-3],source:g[y-2],destination:g[y]};break;case 49:this.$={type:"create",silent:!!g[y-2],graph:{type:"graph",name:g[y]}};break;case 50:this.$={updateType:"insert",insert:p2(g[y])};break;case 51:this.$={updateType:"delete",delete:Py(p2(g[y]))};break;case 52:this.$={updateType:"deletewhere",delete:Py(g[y])};break;case 53:this.$={updateType:"insertdelete",...g[y-4],...g[y-3],...uo(g[y-2],"using"),where:g[y].patterns};break;case 54:case 57:case 62:case 167:case 191:case 236:this.$=g[y];break;case 55:this.$={delete:Py(g[y-1]),insert:g[y]||[]};break;case 56:this.$={delete:[],insert:g[y]};break;case 59:this.$={graph:g[y]};break;case 60:this.$={type:"graph",default:!0};break;case 61:case 63:this.$={type:"graph",name:g[y]};break;case 64:this.$={[nn(g[y])]:!0};break;case 66:this.$=g[y-1]?Ji(g[y],[g[y-1]]):Ji(g[y]);break;case 67:var Su=Gt(g[y-3]||{triples:[]},{type:"graph",name:g[y-5]});this.$=g[y]?[Su,g[y]]:[Su];break;case 68:case 73:this.$={type:"bgp",triples:Ji(g[y-2],[g[y-1]])};break;case 69:this.$={type:"group",patterns:[g[y-1]]};break;case 70:for(let St of g[y-1].filter(Lt=>Lt.type==="bind")){let Lt=g[y-1].indexOf(St),nt=new Set;for(let ut of g[y-1].slice(0,Lt))(ut.type==="group"||ut.type==="bgp")&&d2(ut).forEach(vn=>nt.add(vn));if(nt.has(St.variable.value))throw Error("Variable used to bind is already bound (?"+St.variable.value+")")}this.$={type:"group",patterns:g[y-1]};break;case 71:this.$=g[y-1]?Ji([g[y-1]],g[y]):Ji(g[y]);break;case 72:this.$=g[y]?[g[y-2],g[y]]:g[y-2];break;case 75:this.$=Gt(g[y],{type:"optional"});break;case 76:this.$=Gt(g[y],{type:"minus"});break;case 77:this.$=Gt(g[y],{type:"graph",name:g[y-1]});break;case 78:this.$=Gt(g[y],{type:"service",name:g[y-1],silent:!!g[y-2]});break;case 79:this.$={type:"filter",expression:g[y]};break;case 80:this.$={type:"bind",variable:g[y-1],expression:g[y-3]};break;case 89:this.$=_u(g[y]);break;case 90:this.$=void 0;break;case 91:this.$=g[y-1].length?{type:"union",patterns:Ji(g[y-1].map(wy),[wy(g[y])])}:g[y];break;case 95:this.$={...g[y],function:g[y-1]};break;case 96:this.$={type:"functionCall",args:[]};break;case 97:this.$={type:"functionCall",args:Ds(g[y-2],g[y-1]),distinct:!!g[y-3]};break;case 98:case 115:case 128:case 247:case 249:case 251:case 253:case 255:case 263:case 267:case 297:case 299:case 303:case 307:case 328:case 341:case 349:case 355:case 361:case 367:case 369:case 373:case 375:case 379:case 381:case 385:case 391:case 395:case 401:case 405:case 409:case 411:case 420:case 428:case 430:case 440:case 444:case 446:case 448:this.$=[];break;case 99:this.$=Ds(g[y-2],g[y-1]);break;case 101:this.$=Ji(g[y-2],[g[y-1]]);break;case 102:case 112:this.$=Ry(g[y].map(St=>Gt(Ns(g[y-1]),St)));break;case 103:this.$=Ry(lo(g[y].map(St=>Gt(Ns(g[y-1].entity),St)),g[y-1].triples));break;case 105:this.$=Ji([g[y-1]],g[y]);break;case 106:this.$=Ji(g[y]);break;case 107:this.$=Ay(g[y-1],g[y]);break;case 109:case 237:this.$=Le.factory.namedNode(VD);break;case 110:case 118:this.$=Ds(g[y-1],g[y]);break;case 111:this.$=g[y]?{annotation:g[y],object:g[y-1]}:g[y-1];break;case 113:this.$=g[y]?Ry(lo(g[y].map(St=>Gt(Ns(g[y-1].entity),St)),g[y-1].triples)):g[y-1].triples;break;case 114:this.$=Ay(...g[y-1],g[y]);break;case 116:this.$=Ay(...g[y]);break;case 117:case 159:case 163:this.$=[g[y-1],g[y]];break;case 119:this.$=g[y]?{object:g[y-1],annotation:g[y]}:g[y-1];break;case 120:this.$=g[y-1].length?hc("|",Ds(g[y-1],g[y])):g[y];break;case 121:this.$=g[y-1].length?hc("/",Ds(g[y-1],g[y])):g[y];break;case 122:this.$=g[y]?hc(g[y],[g[y-1]]):g[y-1];break;case 123:this.$=g[y-1]?hc(g[y-1],[g[y]]):g[y];break;case 125:case 131:this.$=hc(g[y-1],[g[y]]);break;case 129:this.$=hc("|",Ds(g[y-2],g[y-1]));break;case 132:case 134:this.$=YD(g[y-1]);break;case 133:case 135:this.$=KD(g[y-1]);break;case 140:this.$={entity:g[y],triples:[]};break;case 145:this.$=vy(g[y]);break;case 149:this.$=Le.factory.namedNode(i2);break;case 151:case 153:case 158:case 162:this.$=by(g[y-1],g[y]);break;case 152:this.$=["||",g[y]];break;case 154:this.$=["&&",g[y]];break;case 156:this.$=Rr(g[y-1],[g[y-2],g[y]]);break;case 157:this.$=Rr(g[y-2]?"notin":"in",[g[y-3],g[y]]);break;case 160:this.$=["+",by(g[y-1],g[y])];break;case 161:var Ld=Zi(g[y-1].value.replace("-",""),g[y-1].datatype);this.$=["-",by(Ld,g[y])];break;case 164:this.$=Rr("UPLUS",[g[y]]);break;case 165:this.$=Rr(g[y-1],[g[y]]);break;case 166:this.$=Rr("UMINUS",[g[y]]);break;case 177:this.$=Rr(nn(g[y-1]));break;case 178:this.$=Rr(nn(g[y-3]),[g[y-1]]);break;case 179:this.$=_u(Rr(nn(g[y-3]),[g[y-1]]));break;case 180:this.$=Rr(nn(g[y-5]),[g[y-3],g[y-1]]);break;case 181:this.$=Rr(nn(g[y-7]),[g[y-5],g[y-3],g[y-1]]);break;case 182:this.$=_u(Rr(nn(g[y-7]),[g[y-5],g[y-3],g[y-1]]));break;case 183:this.$=Rr(nn(g[y-1]),g[y]);break;case 184:this.$=Rr("bound",[vy(g[y-1])]);break;case 185:this.$=Rr(g[y-1],[]);break;case 186:this.$=Rr(g[y-3],[g[y-1]]);break;case 187:this.$=Rr(g[y-2]?"notexists":"exists",[wy(g[y])]);break;case 188:case 189:this.$=dc(g[y-1],{type:"aggregate",aggregation:nn(g[y-4]),distinct:!!g[y-2]});break;case 190:this.$=dc(g[y-2],{type:"aggregate",aggregation:nn(g[y-5]),distinct:!!g[y-3],separator:typeof g[y-1]=="string"?g[y-1]:" "});break;case 192:this.$=Zi(g[y]);break;case 193:this.$=GD(g[y-1],nn(g[y].substr(1)));break;case 194:this.$=Zi(g[y-2],g[y]);break;case 195:case 204:this.$=Zi(g[y],s2);break;case 196:case 205:this.$=Zi(g[y],a2);break;case 197:case 206:this.$=Zi(nn(g[y]),o2);break;case 200:this.$=Zi(g[y].toLowerCase(),WD);break;case 201:this.$=Zi(g[y].substr(1),s2);break;case 202:this.$=Zi(g[y].substr(1),a2);break;case 203:this.$=Zi(g[y].substr(1).toLowerCase(),o2);break;case 207:case 208:this.$=f2(g[y],1);break;case 209:case 210:this.$=f2(g[y],3);break;case 211:this.$=Le.factory.namedNode(gu(g[y]));break;case 213:var kd=g[y].indexOf(":"),vu=g[y].substr(0,kd),Md=Le.prefixes[vu];if(!Md)throw new Error("Unknown prefix: "+vu);var Bt=gu(Md+g[y].substr(kd+1));this.$=Le.factory.namedNode(Bt);break;case 214:if(g[y]=g[y].substr(0,g[y].length-1),!(g[y]in Le.prefixes))throw new Error("Unknown prefix: "+g[y]);var Bt=gu(Le.prefixes[g[y]]);this.$=Le.factory.namedNode(Bt);break;case 215:this.$=yu(g[y].replace(/^(_:)/,""));break;case 216:this.$=yu();break;case 217:case 218:case 232:this.$=_u(Ey(g[y-3],g[y-2],g[y-1]));break;case 230:case 231:this.$=_u(g[y-1]);break;case 248:case 250:case 252:case 254:case 256:case 260:case 264:case 268:case 270:case 292:case 294:case 296:case 298:case 300:case 302:case 304:case 306:case 329:case 342:case 356:case 368:case 370:case 372:case 374:case 392:case 402:case 425:case 427:case 429:case 431:case 441:case 445:case 447:case 449:g[y-1].push(g[y]);break;case 259:case 269:case 291:case 293:case 295:case 301:case 305:case 371:case 424:case 426:this.$=[g[y]];break;case 308:g[y-3].push(g[y-2]);break;case 350:case 362:case 376:case 380:case 382:case 386:case 396:case 406:case 410:case 412:case 421:g[y-2].push(g[y-1]);break}},"anonymous"),table:[n(e,t,{3:1,4:2,10:3}),{1:[3]},n(r,[2,307],{5:4,7:5,321:6,214:7,8:8,96:9,215:10,17:11,21:12,97:16,38:17,6:[2,238],13:i,16:i,45:i,197:i,224:i,229:i,308:i,24:[1,13],32:[1,14],36:[1,15],41:s}),n([6,13,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],[2,3],{322:19,11:20,14:21,12:[1,22],15:[1,23]}),{6:[1,24]},{6:[2,240]},{6:[2,241]},{6:[2,242]},{6:[2,243],9:25,84:26,85:a},{6:[2,239]},n(c,[2,411],{216:28,217:29}),n(l,[2,249],{18:30}),n(l,[2,251],{22:31}),n(u,[2,255],{25:32,27:33,29:[1,34]}),{13:f,16:d,33:35,39:[1,37],44:39,55:40,87:h,139:38,307:43,308:p,323:36},n(l,[2,267],{37:46}),n(_,[2,326],{98:47,103:49,106:50,117:55,130:61,100:[1,48],110:[1,51],113:[1,52],115:[1,53],116:[1,54],131:[1,62],329:[1,56],330:[1,57],331:[1,58],332:[1,59],333:[1,60]}),{39:[1,63],40:64,43:65,44:66,45:v,87:h},n(E,[2,273],{42:68,324:69,325:[1,70],326:[1,71]}),n(e,[2,248]),n(e,[2,245]),n(e,[2,246]),{13:[1,72]},{16:[1,73]},{1:[2,1]},{6:[2,2]},{6:[2,244]},{45:[1,77],85:[1,78],86:74,87:[1,75],89:[1,76]},n([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],[2,120],{337:[1,79]}),n(b,[2,418],{218:80,222:81,229:[1,82]}),{19:83,28:A,29:R,52:84,53:B,56:85},{19:88,28:A,29:R,52:89,53:B,56:85},n(l,[2,253],{26:90}),{28:[1,91],52:92,53:B},n(W,[2,385],{181:93,182:94,183:95,31:[2,383]}),n(we,[2,263],{34:96}),n(we,[2,261],{44:39,55:40,307:43,139:97,13:f,16:d,87:h,308:p}),n(we,[2,262]),n(z,[2,259]),n(G,[2,143]),n(G,[2,144]),n([6,13,16,28,29,31,39,45,47,48,53,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,145]),n(F,[2,211]),n(F,[2,212]),n(F,[2,213]),n(F,[2,214]),{19:98,28:A,29:R,52:99,53:B,56:85},{6:[2,309],99:100,193:[1,101]},n(j,[2,311],{101:102,328:[1,103]}),n(te,[2,317],{104:104,328:[1,105]}),n(Ye,[2,322],{107:106,328:[1,107]}),{111:108,112:[2,324],328:[1,109]},{29:st,114:110},{29:st,114:112},{29:st,114:113},{118:114,123:[1,115],125:116,126:Pt},n(at,[2,315]),n(at,[2,316]),n(ct,[2,319]),n(ct,[2,320]),n(ct,[2,321]),n(_,[2,327]),{13:f,16:d,55:118,307:43,308:p},n(l,[2,12]),n(l,[2,13],{44:66,43:119,45:v,87:h}),n(Ke,[2,269]),n(Ke,[2,15]),{13:f,16:d,44:136,45:ie,46:120,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(E,[2,14]),n(E,[2,274]),n(E,[2,271]),n(E,[2,272]),n(e,[2,4]),{13:[1,177]},n(Z,[2,39]),{29:[1,178]},{29:[1,179]},{87:[1,181],91:180},{45:[1,187],87:[1,185],89:[1,186],93:182,165:183,166:184},n(c,[2,410]),n([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337],[2,121],{338:[1,188]}),{13:f,16:d,45:[1,193],55:194,197:_t,219:189,220:190,223:191,224:[1,192],307:43,308:p},n(b,[2,419]),n(xt,De,{20:196,59:197,69:198,70:U}),n(l,[2,250]),{29:q,57:200},n(j,[2,279],{54:202,327:[1,203]}),{29:[2,282]},n(Q,K,{23:204,58:205,62:206,63:Ie}),n(l,[2,252]),{19:208,28:A,29:R,52:209,53:B,56:85},{29:[1,210]},n(u,[2,256]),{31:[1,211]},{31:[2,384]},{13:f,16:d,44:215,45:tt,55:220,82:V,87:h,89:rt,145:212,172:221,185:213,187:214,231:Cr,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},n(IE,[2,265],{56:85,35:227,52:228,19:229,28:A,29:R,53:B}),n(z,[2,260]),n(Q,K,{58:205,62:206,23:230,63:Ie}),n(l,[2,268]),{6:[2,45]},n(e,t,{10:3,4:231}),{13:f,16:d,55:232,307:43,308:p},n(j,[2,312]),{105:233,112:RE,122:234,132:[1,237],134:235,327:[1,238],334:[1,239]},n(te,[2,318]),n(j,PE,{108:240,133:242,112:OE,132:FE}),n(Ye,[2,323]),{112:[1,244]},{112:[2,325]},n(Ir,[2,50]),n(W,_d,{135:245,136:246,143:247,144:248,31:DE,112:DE}),n(Ir,[2,51]),n(Ir,[2,52]),n(ma,[2,328],{119:249}),{29:st,114:250},n(ma,[2,56]),{29:st,114:251},n(_,[2,59]),n(Ke,[2,270]),{47:[1,252]},n(NE,[2,150]),n(Sd,[2,428],{240:253}),n(oc,[2,430],{244:254}),n(oc,[2,155],{248:255,249:256,250:[2,438],290:[1,257],341:[1,258],342:[1,259],343:[1,260],344:[1,261],345:[1,262],346:[1,263]}),n(cc,[2,440],{252:264}),n(mr,[2,448],{260:265}),{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,255:154,257:155,264:266,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,255:154,257:155,264:267,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,255:154,257:155,264:268,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(mr,[2,167]),n(mr,[2,168]),n(mr,[2,169]),n(mr,[2,170],{176:269,45:LE,89:kE}),n(mr,[2,171]),n(mr,[2,172]),n(mr,[2,173]),n(mr,[2,174]),{13:f,16:d,44:136,45:ie,46:272,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Xt,[2,176]),{89:[1,273]},{45:[1,274]},{45:[1,275]},{45:[1,276]},{45:[1,277]},{45:[1,278]},{45:ME,89:jE,179:279},{45:[1,282]},{45:[1,284],89:[1,283]},{279:[1,285]},n(rn,[2,192],{292:[1,286],293:[1,287]}),n(rn,[2,195]),n(rn,[2,196]),n(rn,[2,197]),n(rn,[2,198]),n(rn,[2,199]),n(rn,[2,200]),{13:f,16:d,44:39,55:40,82:V,87:h,139:289,172:291,255:154,257:155,266:290,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,320:288},{45:[1,292]},{45:[1,293]},{45:[1,294]},n(du,[2,452]),n(du,[2,453]),n(du,[2,454]),n(du,[2,455]),n(du,[2,456]),{279:[2,458]},n(vd,[2,207]),n(vd,[2,208]),n(vd,[2,209]),n(vd,[2,210]),n(rn,[2,201]),n(rn,[2,202]),n(rn,[2,203]),n(rn,[2,204]),n(rn,[2,205]),n(rn,[2,206]),n(e,[2,5]),n(bd,[2,297],{88:295}),n(wd,[2,299],{90:296}),{48:[1,297],87:[1,298]},n(Ed,[2,301]),n(Z,[2,43]),n(Z,[2,82]),n(Z,[2,83]),{29:[1,299]},{29:[1,300]},{87:[1,302],169:301},n(c,[2,412]),n(ro,[2,123]),n(ro,[2,416],{221:303,339:304,39:[1,306],263:[1,307],340:[1,305]}),n(Xi,[2,124]),{13:f,16:d,45:[1,311],55:194,89:[1,310],197:_t,223:312,225:308,226:309,229:$E,307:43,308:p},n(c,i,{215:10,214:314}),n(Xi,[2,236]),n(Xi,[2,237]),n(lc,[2,6]),n(dy,[2,287],{60:315,72:316,73:[1,317]}),n(xt,[2,286]),{13:f,16:d,45:ie,55:323,67:321,68:322,71:318,77:320,79:319,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,307:43,308:p,346:He,347:Me,348:w,349:T,350:x,351:O},n([6,31,63,70,73,81,83,85],[2,20]),n(W,BE,{38:17,49:324,147:325,17:326,21:327,148:328,154:329,155:330,29:Is,31:Is,85:Is,112:Is,159:Is,160:Is,161:Is,163:Is,164:Is,41:s}),{13:f,16:d,55:331,307:43,308:p},n(j,[2,280]),n(lc,[2,7]),n(xt,De,{59:197,69:198,20:332,70:U}),n(Q,[2,284]),{64:[1,333]},n(Q,K,{58:205,62:206,23:334,63:Ie}),n(l,[2,254]),n(W,_d,{144:248,30:335,143:336,31:[2,257]}),n(l,[2,100]),{31:[2,387],184:337,335:[1,338]},{13:f,16:d,44:39,55:40,87:h,139:342,186:339,190:340,195:341,197:no,307:43,308:p},n(hu,[2,389],{44:39,55:40,307:43,190:340,195:341,139:342,188:344,189:345,186:346,13:f,16:d,87:h,197:no,308:p}),n(Rs,[2,227]),n(Rs,[2,228]),n(Rs,[2,229]),{13:f,16:d,44:215,45:tt,55:220,82:V,87:h,89:rt,172:221,185:351,187:350,200:348,230:347,231:Cr,234:349,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},{13:f,16:d,44:39,55:40,87:h,139:342,186:352,190:340,195:341,197:no,307:43,308:p},n(Rs,[2,146]),n(Rs,[2,147]),n(Rs,[2,148]),n(Rs,[2,149]),{13:f,16:d,44:354,55:355,82:V,87:h,172:357,237:356,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:358,312:tn,313:353},n(hy,[2,215]),n(hy,[2,216]),n(Q,K,{58:205,62:206,23:359,63:Ie}),n(we,[2,264]),n(IE,[2,266]),n(lc,[2,11]),n(r,[2,308],{6:[2,310]}),n(Ir,[2,313],{102:360,120:361,121:[1,362]}),n(Ir,[2,47]),n(Ir,[2,63]),n(Ir,[2,64]),{13:f,16:d,55:363,307:43,308:p},n(Ir,[2,336]),n(Ir,[2,337]),n(Ir,[2,338]),{109:[1,364]},n(VE,[2,60]),{13:f,16:d,55:365,307:43,308:p},n(j,[2,335]),{13:f,16:d,55:366,307:43,308:p},{31:[1,367]},n(io,[2,341],{137:368}),n(io,[2,340]),{13:f,16:d,44:215,45:tt,55:220,82:V,87:h,89:rt,145:369,172:221,185:213,187:214,231:Cr,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},{28:[1,370],127:371,128:[1,372]},n(ma,[2,330],{124:373,125:374,126:Pt}),n(ma,[2,57]),{44:375,87:h},n(NE,[2,151],{241:376,242:[1,377]}),n(Sd,[2,153],{245:378,246:[1,379]}),{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,247:380,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{250:[1,381]},n(Jt,[2,432]),n(Jt,[2,433]),n(Jt,[2,434]),n(Jt,[2,435]),n(Jt,[2,436]),n(Jt,[2,437]),{250:[2,439]},n([47,48,193,242,246,250,272,290,341,342,343,344,345,346],[2,158],{253:382,254:383,255:384,257:385,263:[1,386],265:[1,387],297:fe,298:de,299:he,300:ce,301:ge,302:ye}),n(cc,[2,162],{261:388,262:389,39:py,338:my}),n(mr,[2,164]),n(mr,[2,165]),n(mr,[2,166]),n(Xt,[2,95]),n(Xt,[2,96]),n(Jt,[2,377],{177:392,325:[1,393]}),{48:[1,394]},n(Xt,[2,177]),{13:f,16:d,44:136,45:ie,46:395,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,46:396,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,46:397,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,46:398,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,46:399,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Xt,[2,183]),n(Xt,[2,98]),n(Jt,[2,381],{180:400}),{87:[1,401]},n(Xt,[2,185]),{13:f,16:d,44:136,45:ie,46:402,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{29:q,57:403},n(rn,[2,193]),{13:f,16:d,55:404,307:43,308:p},{13:f,16:d,44:39,55:40,87:h,139:342,195:405,197:no,307:43,308:p},n(ga,[2,233]),n(ga,[2,234]),n(ga,[2,235]),n(UE,[2,459],{281:406,325:[1,407]}),n(Jt,[2,463],{284:408,325:[1,409]}),n(Jt,[2,465],{286:410,325:[1,411]}),{13:f,16:d,31:[1,412],55:414,82:V,171:413,172:415,173:416,174:Td,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ad},{31:[1,419],89:[1,420]},{29:[1,421]},n(Ed,[2,302]),n(bd,[2,367],{167:422}),n(wd,[2,369],{168:423}),{48:[1,424],87:[1,425]},n(Ed,[2,371]),n(ro,[2,122]),n(ro,[2,417]),n(ro,[2,413]),n(ro,[2,414]),n(ro,[2,415]),n(Xi,[2,125]),n(Xi,[2,127]),n(Xi,[2,128]),n(qE,[2,420],{227:426}),n(Xi,[2,130]),{13:f,16:d,55:194,197:_t,223:427,307:43,308:p},{48:[1,428]},n(ya,[2,289],{61:429,80:430,81:[1,431],83:[1,432]}),n(dy,[2,288]),{64:[1,433]},n(xt,[2,29],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:434,13:f,16:d,45:ie,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,276:Ge,277:Ae,279:Be,280:Pe,283:Ve,285:ze,308:p,346:He,347:Me,348:w,349:T,350:x,351:O}),n(WE,[2,293]),n(gy,[2,92]),n(gy,[2,93]),n(gy,[2,94]),{45:LE,89:kE,176:269},{31:[1,435]},{31:[1,436]},{19:437,28:A,29:R,56:85},{19:438,28:A,29:R,56:85},n(so,[2,355],{149:439}),n(so,[2,354]),{13:f,16:d,44:215,45:xd,55:220,82:V,87:h,89:rt,156:440,172:221,185:441,203:442,231:Cd,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},n(we,[2,19]),n(ya,[2,21]),{13:f,16:d,44:450,45:GE,55:323,65:445,66:446,67:447,68:448,87:h,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,307:43,308:p,346:He,347:Me,348:w,349:T,350:x,351:O},n(lc,[2,8]),{31:[1,451]},{31:[2,258]},{31:[2,101]},n(W,[2,386],{31:[2,388]}),n(hu,[2,102]),n(ao,[2,391],{191:452}),n(W,[2,395],{196:453,198:454}),n(W,[2,108]),n(W,[2,109]),n(hu,[2,103]),n(hu,[2,104]),n(hu,[2,390]),{13:f,16:d,44:215,45:tt,48:[1,455],55:220,82:V,87:h,89:rt,172:221,185:351,187:350,200:456,231:Cr,234:349,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},n(Id,[2,424]),n(zE,[2,136]),n(zE,[2,137]),n(yy,[2,140]),{232:[1,457]},{13:f,16:d,44:39,55:40,87:h,139:342,195:458,197:no,307:43,308:p},n(ga,[2,219]),n(ga,[2,220]),n(ga,[2,221]),n(ga,[2,222]),n(ga,[2,223]),n(lc,[2,10]),n(Ir,[2,46]),n(Ir,[2,314]),{112:RE,122:459},n(Ir,[2,62]),n(j,PE,{133:242,108:460,112:OE,132:FE}),n(VE,[2,61]),n(Ir,[2,49]),n([6,28,126,128,193],[2,65]),{31:[2,66],112:[1,462],138:461},n(io,[2,351],{146:463,335:[1,464]}),{29:q,57:465},n(ma,[2,329]),n(j,[2,332],{129:466,327:[1,467]}),n(ma,[2,55]),n(ma,[2,331]),{48:[1,468]},n(Sd,[2,429]),{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,239:469,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(oc,[2,431]),{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,243:470,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(oc,[2,156]),{45:ME,89:jE,179:471},n(cc,[2,441]),{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,251:472,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(mr,[2,444],{256:473}),n(mr,[2,446],{258:474}),n(Jt,[2,442]),n(Jt,[2,443]),n(mr,[2,449]),{13:f,16:d,44:136,45:ie,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,255:154,257:155,259:475,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Jt,[2,450]),n(Jt,[2,451]),n(Jt,[2,379],{178:476}),n(Jt,[2,378]),n([6,13,16,29,31,39,45,47,48,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,175]),{48:[1,477]},{48:[1,478]},{272:[1,479]},{272:[1,480]},{272:[1,481]},{13:f,16:d,44:136,45:ie,46:482,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{48:[1,483]},{48:[1,484]},n(Xt,[2,187]),n(rn,[2,194]),{13:f,16:d,44:39,55:40,82:V,87:h,139:289,172:291,255:154,257:155,266:290,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,320:485},{13:f,16:d,39:[1,487],44:136,45:ie,46:488,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,282:486,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(UE,[2,460]),{13:f,16:d,44:136,45:ie,46:489,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Jt,[2,464]),{13:f,16:d,44:136,45:ie,46:490,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Jt,[2,466]),n(Z,[2,40]),n(bd,[2,298]),n(pu,[2,87]),n(pu,[2,88]),n(pu,[2,89]),n(pu,[2,90]),{13:f,16:d,55:492,82:V,172:493,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,311:494,312:tn,315:491},n(Z,[2,41]),n(wd,[2,300]),n(mu,[2,303],{92:495}),{13:f,16:d,31:[1,496],55:414,82:V,171:497,172:415,173:416,174:Td,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ad},{31:[1,498],89:[1,499]},{29:[1,500]},n(Ed,[2,372]),{13:f,16:d,48:[2,422],55:194,197:_t,223:312,226:502,228:501,229:$E,307:43,308:p},n(Xi,[2,131]),n(Xi,[2,126]),n(ya,[2,22]),n(ya,[2,290]),{82:[1,503]},{82:[1,504]},{13:f,16:d,44:510,45:ie,55:323,67:321,68:322,74:505,75:506,76:HE,77:320,78:QE,79:509,87:h,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,307:43,308:p,346:He,347:Me,348:w,349:T,350:x,351:O},n(WE,[2,294]),n(YE,[2,69]),n(YE,[2,70]),n(xt,De,{59:197,69:198,20:511,70:U}),n(Q,K,{58:205,62:206,23:512,63:Ie}),{29:[2,375],31:[2,71],84:522,85:a,112:[1,518],150:513,151:514,158:515,159:[1,516],160:[1,517],161:[1,519],163:[1,520],164:[1,521],175:523},n(so,[2,363],{157:524,335:[1,525]}),n(c,i,{215:10,202:526,205:527,208:528,214:529,44:530,87:h}),n(Rd,[2,399],{215:10,205:527,208:528,214:529,44:530,204:531,202:532,13:i,16:i,45:i,197:i,224:i,229:i,308:i,87:h}),{13:f,16:d,44:215,45:xd,55:220,82:V,87:h,89:rt,172:221,185:351,203:536,212:534,231:Cd,233:533,234:535,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},n(c,i,{215:10,205:527,208:528,214:529,44:530,202:537,87:h}),n(Q,[2,23],{307:43,267:139,275:146,278:149,55:323,67:447,68:448,44:450,66:538,13:f,16:d,45:GE,87:h,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,276:Ge,277:Ae,279:Be,280:Pe,283:Ve,285:ze,308:p,346:He,347:Me,348:w,349:T,350:x,351:O}),n(oo,[2,291]),n(oo,[2,24]),n(oo,[2,25]),{13:f,16:d,44:136,45:ie,46:539,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(oo,[2,28]),n(Q,K,{58:205,62:206,23:540,63:Ie}),n([31,112,232,318,335],[2,105],{192:541,193:[1,542]}),n(ao,[2,107]),{13:f,16:d,44:215,45:tt,55:220,82:V,87:h,89:rt,172:221,185:351,187:350,199:543,200:544,231:Cr,234:349,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},n(KE,[2,132]),n(Id,[2,425]),n(KE,[2,133]),{13:f,16:d,44:354,55:355,82:V,87:h,172:357,237:356,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:358,312:tn,313:545},n(Ir,[2,54]),n(Ir,[2,48]),n(io,[2,342]),{13:f,16:d,44:39,55:40,87:h,139:546,307:43,308:p},n(io,[2,68]),n(W,[2,350],{31:XE,112:XE}),n(Ir,[2,53]),{13:f,16:d,55:547,307:43,308:p},n(j,[2,333]),n(Ke,[2,16]),n(Sd,[2,152]),n(oc,[2,154]),n(oc,[2,157]),n(cc,[2,159]),n(cc,[2,160],{262:389,261:548,39:py,338:my}),n(cc,[2,161],{262:389,261:549,39:py,338:my}),n(mr,[2,163]),{13:f,16:d,44:136,45:ie,46:550,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Xt,[2,178]),n(Xt,[2,179]),{13:f,16:d,44:136,45:ie,46:551,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,46:552,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,46:553,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{48:[1,554],272:[1,555]},n(Xt,[2,184]),n(Xt,[2,186]),{314:[1,556]},{48:[1,557]},{48:[2,461]},{48:[2,462]},{48:[1,558]},{48:[2,467],193:[1,561],287:559,288:560},{13:f,16:d,55:194,197:_t,223:562,307:43,308:p},n(_y,[2,224]),n(_y,[2,225]),n(_y,[2,226]),{31:[1,563],45:JE,94:564},n(Z,[2,84]),n(bd,[2,368]),n(Z,[2,85]),n(wd,[2,370]),n(mu,[2,373],{170:566}),{48:[1,567]},{48:[2,423],337:[1,568]},n(ya,[2,35],{83:[1,569]}),n(ya,[2,36],{81:[1,570]}),n(dy,[2,30],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:509,44:510,75:571,13:f,16:d,45:ie,76:HE,78:QE,87:h,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,276:Ge,277:Ae,279:Be,280:Pe,283:Ve,285:ze,308:p,346:He,347:Me,348:w,349:T,350:x,351:O}),n(uc,[2,295]),{45:ie,77:572},{45:ie,77:573},n(uc,[2,33]),n(uc,[2,34]),{31:[2,275],50:574,84:575,85:a},{31:[2,277],51:576,84:577,85:a},n(so,[2,356]),n(ZE,[2,357],{152:578,335:[1,579]}),n(Ps,[2,74]),{29:q,57:580},{29:q,57:581},{13:f,16:d,44:39,55:40,87:h,139:582,307:43,308:p},n(e2,[2,365],{162:583,328:[1,584]}),{13:f,16:d,45:ie,55:323,67:321,68:322,77:320,79:585,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,307:43,308:p,346:He,347:Me,348:w,349:T,350:x,351:O},{45:[1,586]},n(Ps,[2,81]),{29:q,57:587},n(so,[2,73]),n(W,[2,362],{29:Os,31:Os,85:Os,112:Os,159:Os,160:Os,161:Os,163:Os,164:Os}),n(Rd,[2,112]),n(fc,[2,401],{206:588}),n(W,[2,405],{209:589,210:590}),n(W,[2,403]),n(W,[2,404]),n(Rd,[2,113]),n(Rd,[2,400]),{13:f,16:d,44:215,45:xd,48:[1,591],55:220,82:V,87:h,89:rt,172:221,185:351,203:536,212:592,231:Cd,234:535,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},n(Id,[2,426]),n(yy,[2,138]),n(yy,[2,139]),{232:[1,593]},n(oo,[2,292]),{47:[1,595],48:[1,594]},n(lc,[2,9]),n(ao,[2,392]),n(ao,[2,393],{44:39,55:40,307:43,195:341,139:342,194:596,190:597,13:f,16:d,87:h,197:no,308:p}),n(ao,[2,110],{272:[1,598]}),n(Pd,[2,397],{201:599,316:600,317:[1,601]}),{314:[1,602]},{29:[1,603]},n(ma,[2,58]),n(mr,[2,445]),n(mr,[2,447]),{48:[1,604],272:[1,605]},{48:[1,606]},{272:[1,607]},{272:[1,608]},n(Xt,[2,99]),n(Jt,[2,382]),n([13,16,39,47,48,87,193,197,242,246,250,263,265,272,290,297,298,299,300,301,302,308,314,338,341,342,343,344,345,346],[2,232]),n(Xt,[2,188]),n(Xt,[2,189]),{48:[1,609]},{48:[2,468]},{289:[1,610]},{13:f,16:d,55:492,82:V,172:493,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,311:494,312:tn,315:611},n(Z,[2,42]),n(mu,[2,304]),{13:f,16:d,55:414,82:V,95:612,171:613,172:415,173:416,174:Td,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ad},{31:[1,614],45:JE,94:615},n(Xi,[2,129]),n(qE,[2,421]),{82:[1,616]},{82:[1,617]},n(uc,[2,296]),n(uc,[2,31]),n(uc,[2,32]),{31:[2,17]},{31:[2,276]},{31:[2,18]},{31:[2,278]},n(W,BE,{155:330,153:618,154:619,29:Fs,31:Fs,85:Fs,112:Fs,159:Fs,160:Fs,161:Fs,163:Fs,164:Fs}),n(ZE,[2,358]),n(Ps,[2,75]),n(Ps,[2,76]),{29:q,57:620},{13:f,16:d,44:39,55:40,87:h,139:621,307:43,308:p},n(e2,[2,366]),n(Ps,[2,79]),{13:f,16:d,44:136,45:ie,46:622,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Ps,[2,91],{336:[1,623]}),n([29,31,85,112,159,160,161,163,164,232,318,335],[2,114],{207:624,193:[1,625]}),n(fc,[2,117]),{13:f,16:d,44:215,45:xd,55:220,82:V,87:h,89:rt,172:221,185:351,203:536,211:626,212:627,231:Cd,234:535,236:216,237:222,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,309:Sn,310:Nn,311:217,312:tn},n(Rs,[2,134]),n(Id,[2,427]),n(Rs,[2,135]),n(oo,[2,26]),{44:628,87:h},n(ao,[2,106]),n(ao,[2,394]),n(W,[2,396]),n(Pd,[2,111]),n(Pd,[2,398]),{13:f,16:d,44:39,55:40,87:h,139:342,186:629,190:340,195:341,197:no,307:43,308:p},n(hy,[2,217]),n(W,_d,{144:248,140:630,143:631,31:[2,343]}),n(Xt,[2,97]),n(Jt,[2,380]),n(Xt,[2,180]),{13:f,16:d,44:136,45:ie,46:632,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},{13:f,16:d,44:136,45:ie,46:633,55:133,67:132,68:134,77:131,82:V,87:h,172:135,224:lt,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:pt,264:130,265:H,266:137,267:139,268:Re,269:Ue,270:re,271:qe,273:We,274:$e,275:146,276:Ge,277:Ae,278:149,279:Be,280:Pe,283:Ve,285:ze,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ze,346:He,347:Me,348:w,349:T,350:x,351:O},n(Xt,[2,190]),{290:[1,634]},{314:[1,635]},{13:f,16:d,48:[1,636],55:414,82:V,171:637,172:415,173:416,174:Td,255:154,257:155,291:150,294:ue,295:pe,296:me,297:fe,298:de,299:he,300:ce,301:ge,302:ye,303:_e,304:Se,305:ae,306:ve,307:43,308:p,312:Ad},n(t2,[2,305]),n(Z,[2,86]),n(mu,[2,374]),n(ya,[2,37]),n(ya,[2,38]),n(so,[2,72]),n(so,[2,360]),n(Ps,[2,77]),{29:q,57:638},{47:[1,639]},{29:[2,376]},n(fc,[2,402]),n(fc,[2,115],{215:10,208:528,214:529,44:530,205:640,13:i,16:i,45:i,197:i,224:i,229:i,308:i,87:h}),n(fc,[2,118],{272:[1,641]}),n(Od,[2,407],{213:642,319:643,317:[1,644]}),{48:[1,645]},{318:[1,646]},{31:[1,647]},{31:[2,344]},{48:[1,648]},{48:[1,649]},{291:650,303:_e,304:Se,305:ae,306:ve},n(pu,[2,218]),n(mu,[2,44]),n(t2,[2,306]),n(Ps,[2,78]),{44:651,87:h},n(fc,[2,116]),n(W,[2,406]),n(Od,[2,119]),n(Od,[2,408]),n(c,i,{215:10,205:527,208:528,214:529,44:530,202:652,87:h}),n(oo,[2,27]),n(Pd,[2,230]),n(r2,[2,345],{141:653,335:[1,654]}),n(Xt,[2,181]),n(Xt,[2,182]),{48:[2,191]},{48:[1,655]},{318:[1,656]},n(W,_d,{144:248,142:657,143:658,31:n2,112:n2}),n(r2,[2,346]),n(Ps,[2,80]),n(Od,[2,231]),n(io,[2,67]),n(io,[2,348])],defaultActions:{5:[2,240],6:[2,241],7:[2,242],9:[2,239],24:[2,1],25:[2,2],26:[2,244],87:[2,282],94:[2,384],100:[2,45],109:[2,325],166:[2,458],263:[2,439],336:[2,258],337:[2,101],487:[2,461],488:[2,462],560:[2,468],574:[2,17],575:[2,276],576:[2,18],577:[2,278],623:[2,376],631:[2,344],650:[2,191]},parseError:o(function(C,P){if(P.recoverable)this.trace(C);else{var N=new Error(C);throw N.hash=P,N}},"parseError"),parse:o(function(C){var P=this,N=[0],ne=[],Oe=[null],g=[],sn=this.table,y="",es=0,Su=0,Ld=0,kd=2,vu=1,Md=g.slice.call(arguments,1),Bt=Object.create(this.lexer),ts={yy:{}};for(var bu in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bu)&&(ts.yy[bu]=this.yy[bu]);Bt.setInput(C,ts.yy),ts.yy.lexer=Bt,ts.yy.parser=this,typeof Bt.yylloc>"u"&&(Bt.yylloc={});var gc=Bt.yylloc;g.push(gc);var St=Bt.options&&Bt.options.ranges;typeof ts.yy.parseError=="function"?this.parseError=ts.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Lt(rs){N.length=N.length-2*rs,Oe.length=Oe.length-rs,g.length=g.length-rs}o(Lt,"popStack");for(var nt=o(function(){var rs;return rs=Bt.lex()||vu,typeof rs!="number"&&(rs=P.symbols_[rs]||rs),rs},"lex"),ut,vn,fo,qn,FK,Oy,yc={},jd,Ls,m2,$d;;){if(fo=N[N.length-1],this.defaultActions[fo]?qn=this.defaultActions[fo]:((ut===null||typeof ut>"u")&&(ut=nt()),qn=sn[fo]&&sn[fo][ut]),typeof qn>"u"||!qn.length||!qn[0]){var Fy="";$d=[];for(jd in sn[fo])this.terminals_[jd]&&jd>kd&&$d.push("'"+this.terminals_[jd]+"'");Bt.showPosition?Fy="Parse error on line "+(es+1)+`:
|
|
34
34
|
`+Bt.showPosition()+`
|
|
35
35
|
Expecting `+$d.join(", ")+", got '"+(this.terminals_[ut]||ut)+"'":Fy="Parse error on line "+(es+1)+": Unexpected "+(ut==vu?"end of input":"'"+(this.terminals_[ut]||ut)+"'"),this.parseError(Fy,{text:Bt.match,token:this.terminals_[ut]||ut,line:Bt.yylineno,loc:gc,expected:$d})}if(qn[0]instanceof Array&&qn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+fo+", token: "+ut);switch(qn[0]){case 1:N.push(ut),Oe.push(Bt.yytext),g.push(Bt.yylloc),N.push(qn[1]),ut=null,vn?(ut=vn,vn=null):(Su=Bt.yyleng,y=Bt.yytext,es=Bt.yylineno,gc=Bt.yylloc,Ld>0&&Ld--);break;case 2:if(Ls=this.productions_[qn[1]][1],yc.$=Oe[Oe.length-Ls],yc._$={first_line:g[g.length-(Ls||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(Ls||1)].first_column,last_column:g[g.length-1].last_column},St&&(yc._$.range=[g[g.length-(Ls||1)].range[0],g[g.length-1].range[1]]),Oy=this.performAction.apply(yc,[y,Su,es,ts.yy,qn[1],Oe,g].concat(Md)),typeof Oy<"u")return Oy;Ls&&(N=N.slice(0,-1*Ls*2),Oe=Oe.slice(0,-1*Ls),g=g.slice(0,-1*Ls)),N.push(this.productions_[qn[1]][0]),Oe.push(yc.$),g.push(yc._$),m2=sn[N[N.length-2]][N[N.length-1]],N.push(m2);break;case 3:return!0}}return!0},"parse")},Fd=E_().Wildcard,Dd="http://www.w3.org/1999/02/22-rdf-syntax-ns#",VD=Dd+"type",UD=Dd+"first",qD=Dd+"rest",i2=Dd+"nil",Nd="http://www.w3.org/2001/XMLSchema#",s2=Nd+"integer",a2=Nd+"decimal",o2=Nd+"double",WD=Nd+"boolean",co="",c2="",l2="";function nn(I){return I.toLowerCase()}o(nn,"lowercase");function Ds(I,C){return I.push(C),I}o(Ds,"appendTo");function lo(I,C){return I.push.apply(I,C),I}o(lo,"appendAllTo");function Gt(I){I||(I={});for(var C=1,P=arguments.length,N;C<P&&(N=arguments[C]||{});C++)for(var ne in N)I[ne]=N[ne];return I}o(Gt,"extend");function Ji(){for(var I=[],C=0,P=arguments.length;C<P;C++)I=I.concat.apply(I,arguments[C]);return I}o(Ji,"unionAll");function gu(I){if(I[0]==="<"&&(I=I.substring(1,I.length-1)),/^[a-z][a-z0-9.+-]*:/i.test(I))return I;if(!Le.base)throw new Error("Cannot resolve relative IRI "+I+" because no base IRI was set.");switch(co!==Le.base&&(co=Le.base,c2=co.replace(/[^\/:]*$/,""),l2=co.match(/^(?:[a-z]+:\/*)?[^\/]*/)[0]),I[0]){case void 0:return co;case"#":return co+I;case"?":return co.replace(/(?:\?.*)?$/,I);case"/":return l2+I;default:return c2+I}}o(gu,"resolveIRI");function vy(I){if(I){var C=I[0];if(C==="?"||C==="$")return Le.factory.variable(I.substr(1))}return I}o(vy,"toVar");function Rr(I,C){return{type:"operation",operator:I,args:C||[]}}o(Rr,"operation");function dc(I,C){var P={expression:I==="*"?new Fd:I};if(C)for(var N in C)P[N]=C[N];return P}o(dc,"expression");function hc(I,C){return{type:"path",pathType:I,items:C}}o(hc,"path");function by(I,C){for(var P=0,N=C.length,ne;P<N&&(ne=C[P]);P++)I=Rr(ne[0],[I,ne[1]]);return I}o(by,"createOperationTree");function uo(I,C){var P=[],N=[],ne=I.length,Oe,g={};if(!ne)return null;for(var sn=0;sn<ne&&(Oe=I[sn]);sn++)(Oe.named?N:P).push(Oe.iri);return g[C||"from"]={default:P,named:N},g}o(uo,"groupDatasets");function pc(I){return parseInt(I,10)}o(pc,"toInt");function wy(I){return I.type==="group"&&I.patterns.length===1?I.patterns[0]:I}o(wy,"degroupSingle");function Zi(I,C){return C&&C.termType!=="NamedNode"&&(C=Le.factory.namedNode(C)),Le.factory.literal(I,C)}o(Zi,"createTypedLiteral");function GD(I,C){return Le.factory.literal(I,C)}o(GD,"createLangLiteral");function Ey(I,C,P){if(!("termType"in C))throw new Error("Nested triples cannot contain paths");return Le.factory.quad(I,C,P)}o(Ey,"nestedTriple");function Ns(I,C,P,N){var ne={};return I!=null&&(ne.subject=I),C!=null&&(ne.predicate=C),P!=null&&(ne.object=P),N!=null&&(ne.annotations=N),ne}o(Ns,"triple");function yu(I){return typeof I=="string"?I.startsWith("e_")?Le.factory.blankNode(I):Le.factory.blankNode("e_"+I):Le.factory.blankNode("g_"+u2++)}o(yu,"blank");var u2=0;Le._resetBlanks=function(){u2=0};var zD=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\(.)/g,HD={"\\":"\\","'":"'",'"':'"',t:" ",b:"\b",n:`
|
|
36
|
-
`,r:"\r",f:"\f"},QD=/[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/,Ty=String.fromCharCode;function f2(I,C){I=I.substring(C,I.length-C);try{I=I.replace(zD,function(P,N,ne,Oe){var g;if(N){if(g=parseInt(N,16),isNaN(g))throw new Error;return Ty(g)}else if(ne){if(g=parseInt(ne,16),isNaN(g))throw new Error;return g<65535?Ty(g):Ty(55296+((g-=65536)>>10),56320+(g&1023))}else{var sn=HD[Oe];if(!sn)throw new Error;return sn}})}catch{return""}if(QD.exec(I))throw new Error("Invalid unicode codepoint of surrogate pair without corresponding codepoint in "+I);return I}o(f2,"unescapeString");function YD(I){var C=yu(),P=C,N=[],ne,Oe=[];I.forEach(function(es){N.push(es.entity),lo(Oe,es.triples)});for(var g=0,sn=0,y=N.length,ne=Array(y*2);g<y;)ne[sn++]=Ns(P,Le.factory.namedNode(UD),N[g]),ne[sn++]=Ns(P,Le.factory.namedNode(qD),P=++g<y?yu():Le.factory.namedNode(i2));return{entity:C,triples:lo(ne,Oe)}}o(YD,"createList");function KD(I){var C=yu();return{entity:C,triples:I.map(function(P){return Gt(Ns(C),P)})}}o(KD,"createAnonymousObject");function Ay(I,C,P){var N=[],ne=[];return C.forEach(function(Oe){let g=null;Oe.annotation&&(g=Oe.annotation,Oe=Oe.object),N.push(Ns(null,I,Oe.entity,g)),lo(ne,Oe.triples)}),Ji(N,P||[],ne)}o(Ay,"objectListToTriples");function
|
|
36
|
+
`,r:"\r",f:"\f"},QD=/[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/,Ty=String.fromCharCode;function f2(I,C){I=I.substring(C,I.length-C);try{I=I.replace(zD,function(P,N,ne,Oe){var g;if(N){if(g=parseInt(N,16),isNaN(g))throw new Error;return Ty(g)}else if(ne){if(g=parseInt(ne,16),isNaN(g))throw new Error;return g<65535?Ty(g):Ty(55296+((g-=65536)>>10),56320+(g&1023))}else{var sn=HD[Oe];if(!sn)throw new Error;return sn}})}catch{return""}if(QD.exec(I))throw new Error("Invalid unicode codepoint of surrogate pair without corresponding codepoint in "+I);return I}o(f2,"unescapeString");function YD(I){var C=yu(),P=C,N=[],ne,Oe=[];I.forEach(function(es){N.push(es.entity),lo(Oe,es.triples)});for(var g=0,sn=0,y=N.length,ne=Array(y*2);g<y;)ne[sn++]=Ns(P,Le.factory.namedNode(UD),N[g]),ne[sn++]=Ns(P,Le.factory.namedNode(qD),P=++g<y?yu():Le.factory.namedNode(i2));return{entity:C,triples:lo(ne,Oe)}}o(YD,"createList");function KD(I){var C=yu();return{entity:C,triples:I.map(function(P){return Gt(Ns(C),P)})}}o(KD,"createAnonymousObject");function Ay(I,C,P){var N=[],ne=[];return C.forEach(function(Oe){let g=null;Oe.annotation&&(g=Oe.annotation,Oe=Oe.object),N.push(Ns(null,I,Oe.entity,g)),lo(ne,Oe.triples)}),Ji(N,P||[],ne)}o(Ay,"objectListToTriples");function PK(I){for(var C=[],P,N=0,ne;ne=I[N];N++)switch(ne.type){case"bgp":ne.triples.length&&(P?lo(P.triples,ne.triples):Ds(C,P=ne));break;default:(!ne.patterns||ne.patterns.length>0)&&(Ds(C,ne),P=null)}return C}o(PK,"mergeAdjacentBGPs");function mc(I){return I.variable?I.variable.value:I.value||I.expression.value}o(mc,"getExpressionId");function xy(I){if(!I)return[];if(I.type==="aggregate")return[I];if(I.type==="operation"){let C=[];for(let P of I.args)C.push(...xy(P));return C}return[]}o(xy,"getAggregatesOfExpression");function XD(I){let C=new Set,P=o(function(N){N&&(N.termType==="Variable"?C.add(N):N.type==="operation"&&N.args.forEach(P))},"visitExpression");return P(I),C}o(XD,"getVariablesFromExpression");function Cy(I,C=1,P=[]){for(let N of I)C>0&&N instanceof Array?Cy(N,C-1,P):P.push(N);return P}o(Cy,"flatten");function Iy(I){return I.termType==="Variable"}o(Iy,"isVariable");function d2(I){if(I.triples){let C=[];for(let P of I.triples)Iy(P.subject)&&C.push(P.subject.value),Iy(P.predicate)&&C.push(P.predicate.value),Iy(P.object)&&C.push(P.object.value);return C}else if(I.patterns){let C=[];for(let P of I.patterns)C.push(...d2(P));return C}return[]}o(d2,"getBoundVarsFromGroupGraphPattern");function JD(I){let C=I.slice().sort(),P=[];for(let N=0;N<C.length-1;N++)C[N+1]==C[N]&&P.push(C[N]);return P}o(JD,"getDuplicatesInArray");function _u(I){if(!Le.sparqlStar)throw new Error("SPARQL-star support is not enabled");return I}o(_u,"ensureSparqlStar");function h2(I,C,P){for(let N of C){let ne=Ns("subject"in N?N.subject:I,N.predicate,N.object);P.push(ne),N.annotations&&h2(Ey(I,N.predicate,N.object),N.annotations,P)}}o(h2,"_applyAnnotations");function Ry(I){if(Le.sparqlStar){let C=[];return I.forEach(P=>{let N=Ns(P.subject,P.predicate,P.object);C.push(N),P.annotations&&h2(Ey(P.subject,P.predicate,P.object),P.annotations,C)}),C}return I}o(Ry,"applyAnnotations");function OK(I){if(!Le.sparqlStarNestedQuads)throw new Error("Lenient SPARQL-star support with nested quads is not enabled");return I}o(OK,"ensureSparqlStarNestedQuads");function p2(I){for(let C of I){if(C.type==="graph"&&C.name.termType==="Variable")throw new Error("Detected illegal variable in GRAPH");if(C.type==="bgp"||C.type==="graph"){for(let P of C.triples)if(P.subject.termType==="Variable"||P.predicate.termType==="Variable"||P.object.termType==="Variable")throw new Error("Detected illegal variable in BGP")}}return I}o(p2,"ensureNoVariables");function Py(I){for(let C of I)if(C.type==="bgp"){for(let P of C.triples)if(P.subject.termType==="BlankNode"||P.predicate.termType==="BlankNode"||P.object.termType==="BlankNode")throw new Error("Detected illegal blank node in BGP")}return I}o(Py,"ensureNoBnodes");var ZD=(function(){var I={EOF:1,parseError:o(function(P,N){if(this.yy.parser)this.yy.parser.parseError(P,N);else throw new Error(P)},"parseError"),setInput:o(function(C,P){return this.yy=P||this.yy||{},this._input=C,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var C=this._input[0];this.yytext+=C,this.yyleng++,this.offset++,this.match+=C,this.matched+=C;var P=C.match(/(?:\r\n?|\n).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),C},"input"),unput:o(function(C){var P=C.length,N=C.split(/(?:\r\n?|\n)/g);this._input=C+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var ne=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),N.length-1&&(this.yylineno-=N.length-1);var Oe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:N?(N.length===ne.length?this.yylloc.first_column:0)+ne[ne.length-N.length].length-N[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[Oe[0],Oe[0]+this.yyleng-P]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
37
37
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(C){this.unput(this.match.slice(C))},"less"),pastInput:o(function(){var C=this.matched.substr(0,this.matched.length-this.match.length);return(C.length>20?"...":"")+C.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var C=this.match;return C.length<20&&(C+=this._input.substr(0,20-C.length)),(C.substr(0,20)+(C.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var C=this.pastInput(),P=new Array(C.length+1).join("-");return C+this.upcomingInput()+`
|
|
38
38
|
`+P+"^"},"showPosition"),test_match:o(function(C,P){var N,ne,Oe;if(this.options.backtrack_lexer&&(Oe={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Oe.yylloc.range=this.yylloc.range.slice(0))),ne=C[0].match(/(?:\r\n?|\n).*/g),ne&&(this.yylineno+=ne.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ne?ne[ne.length-1].length-ne[ne.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+C[0].length},this.yytext+=C[0],this.match+=C[0],this.matches=C,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(C[0].length),this.matched+=C[0],N=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),N)return N;if(this._backtrack){for(var g in Oe)this[g]=Oe[g];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var C,P,N,ne;this._more||(this.yytext="",this.match="");for(var Oe=this._currentRules(),g=0;g<Oe.length;g++)if(N=this._input.match(this.rules[Oe[g]]),N&&(!P||N[0].length>P[0].length)){if(P=N,ne=g,this.options.backtrack_lexer){if(C=this.test_match(N,Oe[g]),C!==!1)return C;if(this._backtrack){P=!1;continue}else return!1}else if(!this.options.flex)break}return P?(C=this.test_match(P,Oe[ne]),C!==!1?C:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
39
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var P=this.next();return P||this.lex()},"lex"),begin:o(function(P){this.conditionStack.push(P)},"begin"),popState:o(function(){var P=this.conditionStack.length-1;return P>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(P){return P=this.conditionStack.length-1-Math.abs(P||0),P>=0?this.conditionStack[P]:"INITIAL"},"topState"),pushState:o(function(P){this.begin(P)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{flex:!0,"case-insensitive":!0},performAction:o(function(P,N,ne,Oe){var g=Oe;switch(ne){case 0:break;case 1:return 12;case 2:return 15;case 3:return 41;case 4:return 325;case 5:return 326;case 6:return 45;case 7:return 47;case 8:return 48;case 9:return 39;case 10:return 24;case 11:return 28;case 12:return 29;case 13:return 31;case 14:return 32;case 15:return 36;case 16:return 53;case 17:return 327;case 18:return 63;case 19:return 64;case 20:return 70;case 21:return 73;case 22:return 76;case 23:return 78;case 24:return 81;case 25:return 83;case 26:return 85;case 27:return 193;case 28:return 100;case 29:return 328;case 30:return 121;case 31:return 329;case 32:return 330;case 33:return 110;case 34:return 331;case 35:return 109;case 36:return 332;case 37:return 333;case 38:return 113;case 39:return 115;case 40:return 116;case 41:return 131;case 42:return 123;case 43:return 126;case 44:return 128;case 45:return 132;case 46:return 112;case 47:return 334;case 48:return 335;case 49:return 159;case 50:return 161;case 51:return 164;case 52:return 174;case 53:return 160;case 54:return 336;case 55:return 163;case 56:return 312;case 57:return 314;case 58:return 317;case 59:return 318;case 60:return 272;case 61:return 197;case 62:return 337;case 63:return 338;case 64:return 229;case 65:return 340;case 66:return 263;case 67:return 224;case 68:return 231;case 69:return 232;case 70:return 242;case 71:return 246;case 72:return 290;case 73:return 341;case 74:return 342;case 75:return 343;case 76:return 344;case 77:return 345;case 78:return 250;case 79:return 346;case 80:return 265;case 81:return 276;case 82:return 277;case 83:return 268;case 84:return 269;case 85:return 270;case 86:return 271;case 87:return 347;case 88:return 348;case 89:return 273;case 90:return 274;case 91:return 350;case 92:return 349;case 93:return 351;case 94:return 279;case 95:return 280;case 96:return 283;case 97:return 285;case 98:return 289;case 99:return 293;case 100:return 296;case 101:return 13;case 102:return 16;case 103:return 308;case 104:return 309;case 105:return 87;case 106:return 292;case 107:return 82;case 108:return 294;case 109:return 295;case 110:return 297;case 111:return 298;case 112:return 299;case 113:return 300;case 114:return 301;case 115:return 302;case 116:return"EXPONENT";case 117:return 303;case 118:return 304;case 119:return 305;case 120:return 306;case 121:return 89;case 122:return 310;case 123:return 6;case 124:return"INVALID";case 125:console.log(N.yytext);break}},"anonymous"),rules:[/^(?:\s+|(#[^\n\r]*))/i,/^(?:BASE)/i,/^(?:PREFIX)/i,/^(?:SELECT)/i,/^(?:DISTINCT)/i,/^(?:REDUCED)/i,/^(?:\()/i,/^(?:AS)/i,/^(?:\))/i,/^(?:\*)/i,/^(?:CONSTRUCT)/i,/^(?:WHERE)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:DESCRIBE)/i,/^(?:ASK)/i,/^(?:FROM)/i,/^(?:NAMED)/i,/^(?:GROUP)/i,/^(?:BY)/i,/^(?:HAVING)/i,/^(?:ORDER)/i,/^(?:ASC)/i,/^(?:DESC)/i,/^(?:LIMIT)/i,/^(?:OFFSET)/i,/^(?:VALUES)/i,/^(?:;)/i,/^(?:LOAD)/i,/^(?:SILENT)/i,/^(?:INTO)/i,/^(?:CLEAR)/i,/^(?:DROP)/i,/^(?:CREATE)/i,/^(?:ADD)/i,/^(?:TO)/i,/^(?:MOVE)/i,/^(?:COPY)/i,/^(?:INSERT((\s+|(#[^\n\r]*)\n\r?)+)DATA)/i,/^(?:DELETE((\s+|(#[^\n\r]*)\n\r?)+)DATA)/i,/^(?:DELETE((\s+|(#[^\n\r]*)\n\r?)+)WHERE)/i,/^(?:WITH)/i,/^(?:DELETE)/i,/^(?:INSERT)/i,/^(?:USING)/i,/^(?:DEFAULT)/i,/^(?:GRAPH)/i,/^(?:ALL)/i,/^(?:\.)/i,/^(?:OPTIONAL)/i,/^(?:SERVICE)/i,/^(?:BIND)/i,/^(?:UNDEF)/i,/^(?:MINUS)/i,/^(?:UNION)/i,/^(?:FILTER)/i,/^(?:<<)/i,/^(?:>>)/i,/^(?:\{\|)/i,/^(?:\|\})/i,/^(?:,)/i,/^(?:a)/i,/^(?:\|)/i,/^(?:\/)/i,/^(?:\^)/i,/^(?:\?)/i,/^(?:\+)/i,/^(?:!)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\|\|)/i,/^(?:&&)/i,/^(?:=)/i,/^(?:!=)/i,/^(?:<)/i,/^(?:>)/i,/^(?:<=)/i,/^(?:>=)/i,/^(?:IN)/i,/^(?:NOT)/i,/^(?:-)/i,/^(?:BOUND)/i,/^(?:BNODE)/i,/^(?:(RAND|NOW|UUID|STRUUID))/i,/^(?:(LANG|DATATYPE|IRI|URI|ABS|CEIL|FLOOR|ROUND|STRLEN|STR|UCASE|LCASE|ENCODE_FOR_URI|YEAR|MONTH|DAY|HOURS|MINUTES|SECONDS|TIMEZONE|TZ|MD5|SHA1|SHA256|SHA384|SHA512|isIRI|isURI|isBLANK|isLITERAL|isNUMERIC))/i,/^(?:(SUBJECT|PREDICATE|OBJECT|isTRIPLE))/i,/^(?:(LANGMATCHES|CONTAINS|STRSTARTS|STRENDS|STRBEFORE|STRAFTER|STRLANG|STRDT|sameTerm))/i,/^(?:CONCAT)/i,/^(?:COALESCE)/i,/^(?:IF)/i,/^(?:TRIPLE)/i,/^(?:REGEX)/i,/^(?:SUBSTR)/i,/^(?:REPLACE)/i,/^(?:EXISTS)/i,/^(?:COUNT)/i,/^(?:SUM|MIN|MAX|AVG|SAMPLE)/i,/^(?:GROUP_CONCAT)/i,/^(?:SEPARATOR)/i,/^(?:\^\^)/i,/^(?:true|false)/i,/^(?:(<(?:[^<>\"\{\}\|\^`\\\u0000-\u0020])*>))/i,/^(?:((([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?)?:))/i,/^(?:(((([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?)?:)((?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|:|[0-9]|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.|:|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))*(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|:|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%)))))?)))/i,/^(?:(_:(?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?))/i,/^(?:([\?\$]((?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9])(?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])*)))/i,/^(?:(@[a-zA-Z]+(?:-[a-zA-Z0-9]+)*))/i,/^(?:([0-9]+))/i,/^(?:([0-9]*\.[0-9]+))/i,/^(?:([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+)))/i,/^(?:(\+([0-9]+)))/i,/^(?:(\+([0-9]*\.[0-9]+)))/i,/^(?:(\+([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+))))/i,/^(?:(-([0-9]+)))/i,/^(?:(-([0-9]*\.[0-9]+)))/i,/^(?:(-([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+))))/i,/^(?:([eE][+-]?[0-9]+))/i,/^(?:('(?:(?:[^\u0027\u005C\u000A\u000D])|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])))*'))/i,/^(?:("(?:(?:[^\u0022\u005C\u000A\u000D])|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])))*"))/i,/^(?:('''(?:(?:'|'')?(?:[^'\\]|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f]))))*'''))/i,/^(?:("""(?:(?:"|"")?(?:[^\"\\]|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f]))))*"""))/i,/^(?:(\((\u0020|\u0009|\u000D|\u000A)*\)))/i,/^(?:(\[(\u0020|\u0009|\u000D|\u000A)*\]))/i,/^(?:$)/i,/^(?:.)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125],inclusive:!0}}};return I})();Sy.lexer=ZD;function Le(){this.yy={}}return o(Le,"Parser"),Le.prototype=Sy,Sy.Parser=Le,new Le})();tA.exports=zM});var aA=S((yee,sA)=>{var HM="http://www.w3.org/2001/XMLSchema#integer",QM="http://www.w3.org/2001/XMLSchema#string";function Ct(n){this._options=n=n||{};var e=n.prefixes||{};this._prefixByIri={};var t=[];for(var r in e){var i=e[r];Vu(i)&&(this._prefixByIri[i]=r,t.push(i))}var s=t.join("|").replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&");this._prefixRegex=new RegExp("^("+s+")([a-zA-Z][\\-_a-zA-Z0-9]*)$"),this._usedPrefixes={},this._sparqlStar=n.sparqlStar,this._indent=Vu(n.indent)?n.indent:" ",this._newline=Vu(n.newline)?n.newline:`
|
|
40
|
-
`,this._explicitDatatype=!!n.explicitDatatype}o(Ct,"Generator");Ct.prototype.toQuery=function(n){var e="";return n.queryType&&(e+=n.queryType.toUpperCase()+" "),n.reduced&&(e+="REDUCED "),n.distinct&&(e+="DISTINCT "),n.variables?e+=Mn(n.variables,void 0,function(t){return/^[?$]/.test(t)?t:Ta(t)?this.toEntity(t):"("+this.toExpression(t.expression)+" AS "+kh(t.variable)+")"},this)+" ":n.template&&(e+=this.group(n.template,!0)+this._newline),n.from&&(e+=this.graphs("FROM ",n.from.default)+this.graphs("FROM NAMED ",n.from.named)),n.where&&(e+="WHERE "+this.group(n.where,!0)+this._newline),n.updates&&(e+=Mn(n.updates,";"+this._newline,this.toUpdate,this)),n.group&&(e+="GROUP BY "+Mn(n.group,void 0,function(t){var r=Ta(t.expression)?this.toEntity(t.expression):"("+this.toExpression(t.expression)+")";return t.variable?"("+r+" AS "+kh(t.variable)+")":r},this)+this._newline),n.having&&(e+="HAVING ("+Mn(n.having,void 0,this.toExpression,this)+")"+this._newline),n.order&&(e+="ORDER BY "+Mn(n.order,void 0,function(t){var r="("+this.toExpression(t.expression)+")";return t.descending?"DESC "+r:r},this)+this._newline),n.offset&&(e+="OFFSET "+n.offset+this._newline),n.limit&&(e+="LIMIT "+n.limit+this._newline),n.values&&(e+=this.values(n)),e=this.baseAndPrefixes(n)+e,e.trim()};Ct.prototype.baseAndPrefixes=function(n){var e=n.base?"BASE <"+n.base+">"+this._newline:"",t="";for(var r in n.prefixes)(this._options.allPrefixes||this._usedPrefixes[r])&&(t+="PREFIX "+r+": <"+n.prefixes[r]+">"+this._newline);return e+t};Ct.prototype.toPattern=function(n){var e=n.type||n instanceof Array&&"array"||(n.subject&&n.predicate&&n.object?"triple":"");if(!(e in this))throw new Error("Unknown entry type: "+e);return this[e](n)};Ct.prototype.triple=function(n){return this.toEntity(n.subject)+" "+this.toEntity(n.predicate)+" "+this.toEntity(n.object)+"."};Ct.prototype.array=function(n){return Mn(n,this._newline,this.toPattern,this)};Ct.prototype.bgp=function(n){return this.encodeTriples(n.triples)};Ct.prototype.encodeTriples=function(n){if(!n.length)return"";for(var e=[],t=void 0,r=void 0,i=0;i<n.length;i++){var s=n[i];Eo(s.subject,t)?Eo(s.predicate,r)?e.push(","):(r=s.predicate,e.push(";"+this._newline,this._indent,this.toEntity(r))):(t&&e.push("."+this._newline),t=s.subject,r=s.predicate,e.push(this.toEntity(t)," ",this.toEntity(r))),e.push(" ",this.toEntity(s.object))}return e.push("."),e.join("")};Ct.prototype.graph=function(n){return"GRAPH "+this.toEntity(n.name)+" "+this.group(n)};Ct.prototype.graphs=function(n,e){return!e||e.length===0?"":Mn(e,"",function(t){return n+this.toEntity(t)+this._newline},this)};Ct.prototype.group=function(n,e){return n=e!==!0?this.array(n.patterns||n.triples):this.toPattern(n.type!=="group"?n:n.patterns),n.indexOf(this._newline)===-1?"{ "+n+" }":"{"+this._newline+this.indent(n)+this._newline+"}"};Ct.prototype.query=function(n){return this.toQuery(n)};Ct.prototype.filter=function(n){return"FILTER("+this.toExpression(n.expression)+")"};Ct.prototype.bind=function(n){return"BIND("+this.toExpression(n.expression)+" AS "+kh(n.variable)+")"};Ct.prototype.optional=function(n){return"OPTIONAL "+this.group(n)};Ct.prototype.union=function(n){return Mn(n.patterns,this._newline+"UNION"+this._newline,function(e){return this.group(e,!0)},this)};Ct.prototype.minus=function(n){return"MINUS "+this.group(n)};Ct.prototype.values=function(n){var e=Object.keys(n.values.reduce(function(i,s){for(var a in s)i[a]=!0;return i},{})),t,r;return e.length===1?t=r="":(t="(",r=")"),"VALUES "+t+e.join(" ")+r+" {"+this._newline+Mn(n.values,this._newline,function(i){return" "+t+Mn(e,void 0,function(s){return i[s]?this.toEntity(i[s]):"UNDEF"},this)+r},this)+this._newline+"}"};Ct.prototype.service=function(n){return"SERVICE "+(n.silent?"SILENT ":"")+this.toEntity(n.name)+" "+this.group(n)};Ct.prototype.toExpression=function(n){if(Ta(n))return this.toEntity(n);switch(n.type.toLowerCase()){case"aggregate":return n.aggregation.toUpperCase()+"("+(n.distinct?"DISTINCT ":"")+this.toExpression(n.expression)+(typeof n.separator=="string"?'; SEPARATOR = "'+n.separator.replace(nA,iA)+'"':"")+")";case"functioncall":return this.toEntity(n.function)+"("+Mn(n.args,", ",this.toExpression,this)+")";case"operation":var e=n.operator.toUpperCase(),t=n.args||[];switch(n.operator.toLowerCase()){case"<":case">":case">=":case"<=":case"&&":case"||":case"=":case"!=":case"+":case"-":case"*":case"/":return(Ta(t[0])?this.toEntity(t[0]):"("+this.toExpression(t[0])+")")+" "+e+" "+(Ta(t[1])?this.toEntity(t[1]):"("+this.toExpression(t[1])+")");case"!":return"!("+this.toExpression(t[0])+")";case"uplus":return"+("+this.toExpression(t[0])+")";case"uminus":return"-("+this.toExpression(t[0])+")";case"notin":e="NOT IN";case"in":return this.toExpression(t[0])+" "+e+"("+(Vu(t[1])?t[1]:Mn(t[1],", ",this.toExpression,this))+")";case"notexists":e="NOT EXISTS";case"exists":return e+" "+this.group(t[0],!0);default:return e+"("+Mn(t,", ",this.toExpression,this)+")"}default:throw new Error("Unknown expression type: "+n.type)}};Ct.prototype.toEntity=function(n){if(Ta(n))switch(n.termType){case"Wildcard":return"*";case"Variable":return kh(n);case"BlankNode":return"_:"+n.value;case"Literal":var e=n.value||"",t=n.language||"",r=n.datatype;if(n='"'+e.replace(nA,iA)+'"',t)n+="@"+t;else if(r){if(!this._explicitDatatype)switch(r.value){case QM:return n;case HM:if(/^\d+$/.test(e))return e+" "}n+="^^"+this.encodeIRI(r.value)}return n;case"Quad":if(!this._sparqlStar)throw new Error("SPARQL* support is not enabled");return n.graph&&n.graph.termType!=="DefaultGraph"?"<< GRAPH "+this.toEntity(n.graph)+" { "+this.toEntity(n.subject)+" "+this.toEntity(n.predicate)+" "+this.toEntity(n.object)+" } >>":"<< "+this.toEntity(n.subject)+" "+this.toEntity(n.predicate)+" "+this.toEntity(n.object)+" >>";default:return this.encodeIRI(n.value)}else{var i=n.items.map(this.toEntity,this),s=n.pathType;switch(s){case"^":case"!":return s+i[0];case"*":case"+":case"?":return"("+i[0]+s+")";default:return"("+i.join(s)+")"}}};var nA=/["\\\t\n\r\b\f]/g,iA=o(function(n){return YM[n]},"escapeReplacer"),YM={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};Ct.prototype.encodeIRI=function(n){var e=this._prefixRegex.exec(n);if(e){var t=this._prefixByIri[e[1]];return this._usedPrefixes[t]=!0,t+":"+e[2]}return"<"+n+">"};Ct.prototype.toUpdate=function(n){switch(n.type||n.updateType){case"load":return"LOAD"+(n.source?" "+this.toEntity(n.source):"")+(n.destination?" INTO GRAPH "+this.toEntity(n.destination):"");case"insert":return"INSERT DATA "+this.group(n.insert,!0);case"delete":return"DELETE DATA "+this.group(n.delete,!0);case"deletewhere":return"DELETE WHERE "+this.group(n.delete,!0);case"insertdelete":return(n.graph?"WITH "+this.toEntity(n.graph)+this._newline:"")+(n.delete.length?"DELETE "+this.group(n.delete,!0)+this._newline:"")+(n.insert.length?"INSERT "+this.group(n.insert,!0)+this._newline:"")+(n.using?this.graphs("USING ",n.using.default):"")+(n.using?this.graphs("USING NAMED ",n.using.named):"")+"WHERE "+this.group(n.where,!0);case"add":case"copy":case"move":return n.type.toUpperCase()+" "+(n.silent?"SILENT ":"")+(n.source.default?"DEFAULT":this.toEntity(n.source.name))+" TO "+this.toEntity(n.destination.name);case"create":case"clear":case"drop":return n.type.toUpperCase()+(n.silent?" SILENT ":" ")+(n.graph.default?"DEFAULT":n.graph.named?"NAMED":n.graph.all?"ALL":"GRAPH "+this.toEntity(n.graph.name));default:throw new Error("Unknown update query type: "+n.type)}};Ct.prototype.indent=function(n){return n.replace(/^/gm,this._indent)};function kh(n){return"?"+n.value}o(kh,"variableToString");function Vu(n){return typeof n=="string"}o(Vu,"isString");function Ta(n){return typeof n.termType=="string"}o(Ta,"isTerm");function Eo(n,e){if(!n||!Ta(n)||!e||!Ta(e)||n.termType!==e.termType)return!1;switch(n.termType){case"Literal":return n.value===e.value&&n.language===e.language&&Eo(n.datatype,e.datatype);case"Quad":return Eo(n.subject,e.subject)&&Eo(n.predicate,e.predicate)&&Eo(n.object,e.object)&&Eo(n.graph,e.graph);default:return n.value===e.value}}o(Eo,"equalTerms");function Mn(n,e,t,r){return n.map(t,r).join(Vu(e)?e:" ")}o(Mn,"mapJoin");function KM(n={}){return{stringify:o(function(e){var t=Object.create(n);return t.prefixes=e.prefixes,new Ct(t).toQuery(e)},"stringify"),createGenerator:o(function(){return new Ct(n)},"createGenerator")}}o(KM,"_Generator");sA.exports={Generator:KM}});var A_=S(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.BlankNode=void 0;var T_=class{static{o(this,"BlankNode")}constructor(e){this.termType="BlankNode",this.value=e}equals(e){return!!e&&e.termType==="BlankNode"&&e.value===this.value}};Mh.BlankNode=T_});var x_=S(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.DefaultGraph=void 0;var Uu=class{static{o(this,"DefaultGraph")}constructor(){this.termType="DefaultGraph",this.value=""}equals(e){return!!e&&e.termType==="DefaultGraph"}};jh.DefaultGraph=Uu;Uu.INSTANCE=new Uu});var Bh=S($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});$h.NamedNode=void 0;var C_=class{static{o(this,"NamedNode")}constructor(e){this.termType="NamedNode",this.value=e}equals(e){return!!e&&e.termType==="NamedNode"&&e.value===this.value}};$h.NamedNode=C_});var I_=S(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});Vh.Literal=void 0;var oA=Bh(),qu=class n{static{o(this,"Literal")}constructor(e,t){this.termType="Literal",this.value=e,typeof t=="string"?(this.language=t,this.datatype=n.RDF_LANGUAGE_STRING):t?(this.language="",this.datatype=t):(this.language="",this.datatype=n.XSD_STRING)}equals(e){return!!e&&e.termType==="Literal"&&e.value===this.value&&e.language===this.language&&this.datatype.equals(e.datatype)}};Vh.Literal=qu;qu.RDF_LANGUAGE_STRING=new oA.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");qu.XSD_STRING=new oA.NamedNode("http://www.w3.org/2001/XMLSchema#string")});var P_=S(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.Quad=void 0;var R_=class{static{o(this,"Quad")}constructor(e,t,r,i){this.termType="Quad",this.value="",this.subject=e,this.predicate=t,this.object=r,this.graph=i}equals(e){return!!e&&(e.termType==="Quad"||!e.termType)&&this.subject.equals(e.subject)&&this.predicate.equals(e.predicate)&&this.object.equals(e.object)&&this.graph.equals(e.graph)}};Uh.Quad=R_});var F_=S(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});qh.Variable=void 0;var O_=class{static{o(this,"Variable")}constructor(e){this.termType="Variable",this.value=e}equals(e){return!!e&&e.termType==="Variable"&&e.value===this.value}};qh.Variable=O_});var lA=S(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});Wh.DataFactory=void 0;var XM=A_(),JM=x_(),cA=I_(),ZM=Bh(),ej=P_(),tj=F_(),rj=0,D_=class{static{o(this,"DataFactory")}constructor(e){this.blankNodeCounter=0,e=e||{},this.blankNodePrefix=e.blankNodePrefix||`df_${rj++}_`}namedNode(e){return new ZM.NamedNode(e)}blankNode(e){return new XM.BlankNode(e||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(e,t){return new cA.Literal(e,t)}variable(e){return new tj.Variable(e)}defaultGraph(){return JM.DefaultGraph.INSTANCE}quad(e,t,r,i){return new ej.Quad(e,t,r,i||this.defaultGraph())}fromTerm(e){switch(e.termType){case"NamedNode":return this.namedNode(e.value);case"BlankNode":return this.blankNode(e.value);case"Literal":return e.language?this.literal(e.value,e.language):e.datatype.equals(cA.Literal.XSD_STRING)?this.literal(e.value):this.literal(e.value,this.fromTerm(e.datatype));case"Variable":return this.variable(e.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(e.subject),this.fromTerm(e.predicate),this.fromTerm(e.object),this.fromTerm(e.graph))}}fromQuad(e){return this.fromTerm(e)}resetBlankNodeCounter(){this.blankNodeCounter=0}};Wh.DataFactory=D_});var uA=S(jn=>{"use strict";var nj=jn&&jn.__createBinding||(Object.create?(function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[t]},"get")}),Object.defineProperty(n,r,i)}):(function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]})),To=jn&&jn.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&nj(e,n,t)};Object.defineProperty(jn,"__esModule",{value:!0});To(A_(),jn);To(lA(),jn);To(x_(),jn);To(I_(),jn);To(Bh(),jn);To(P_(),jn);To(F_(),jn)});var dA=S((Lee,fA)=>{var{Parser:qs}=rA(),{Generator:ij}=aA(),{Wildcard:sj}=E_(),{DataFactory:aj}=uA();function oj({prefixes:n,baseIRI:e,factory:t,pathOnly:r,sparqlStar:i,skipValidation:s,skipUngroupedVariableCheck:a}={}){let c={};for(let u in n??{})c[u]=n[u];let l=new qs;return l.parse=function(){return qs.base=e||"",qs.prefixes=Object.create(c),qs.factory=t||new aj,qs.sparqlStar=!!i,qs.pathOnly=!!r,qs.skipValidation=!!s||!!a,qs.prototype.parse.apply(l,arguments)},l._resetBlanks=qs._resetBlanks,l}o(oj,"_Parser");fA.exports={Parser:oj,Generator:ij,Wildcard:sj}});var L_=S(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.CaseWhenTransformerError=Cc.CaseWhenTransformer=void 0;var N_=class{static{o(this,"CaseWhenTransformer")}transform(e){let t=this.stripLineComments(e),r,i=0,s=100;do if(r=t,t=this.transformSinglePass(t),i++,i>s)throw new Ws("Too many nested CASE expressions (max 100 iterations)");while(t!==r);return t}stripLineComments(e){let t="",r=0;for(;r<e.length;){let i=e[r];if(i==="'"||i==='"'){let s=i;for(t+=i,r++;r<e.length&&e[r]!==s;){if(e[r]==="\\"&&r+1<e.length){t+=e[r]+e[r+1],r+=2;continue}t+=e[r],r++}r<e.length&&(t+=e[r],r++);continue}if(i==="<"){let s=e.indexOf(">",r),a=e.indexOf(`
|
|
39
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var P=this.next();return P||this.lex()},"lex"),begin:o(function(P){this.conditionStack.push(P)},"begin"),popState:o(function(){var P=this.conditionStack.length-1;return P>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(P){return P=this.conditionStack.length-1-Math.abs(P||0),P>=0?this.conditionStack[P]:"INITIAL"},"topState"),pushState:o(function(P){this.begin(P)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{flex:!0,"case-insensitive":!0},performAction:o(function(P,N,ne,Oe){var g=Oe;switch(ne){case 0:break;case 1:return 12;case 2:return 15;case 3:return 41;case 4:return 325;case 5:return 326;case 6:return 45;case 7:return 47;case 8:return 48;case 9:return 39;case 10:return 24;case 11:return 28;case 12:return 29;case 13:return 31;case 14:return 32;case 15:return 36;case 16:return 53;case 17:return 327;case 18:return 63;case 19:return 64;case 20:return 70;case 21:return 73;case 22:return 76;case 23:return 78;case 24:return 81;case 25:return 83;case 26:return 85;case 27:return 193;case 28:return 100;case 29:return 328;case 30:return 121;case 31:return 329;case 32:return 330;case 33:return 110;case 34:return 331;case 35:return 109;case 36:return 332;case 37:return 333;case 38:return 113;case 39:return 115;case 40:return 116;case 41:return 131;case 42:return 123;case 43:return 126;case 44:return 128;case 45:return 132;case 46:return 112;case 47:return 334;case 48:return 335;case 49:return 159;case 50:return 161;case 51:return 164;case 52:return 174;case 53:return 160;case 54:return 336;case 55:return 163;case 56:return 312;case 57:return 314;case 58:return 317;case 59:return 318;case 60:return 272;case 61:return 197;case 62:return 337;case 63:return 338;case 64:return 229;case 65:return 340;case 66:return 263;case 67:return 224;case 68:return 231;case 69:return 232;case 70:return 242;case 71:return 246;case 72:return 290;case 73:return 341;case 74:return 342;case 75:return 343;case 76:return 344;case 77:return 345;case 78:return 250;case 79:return 346;case 80:return 265;case 81:return 276;case 82:return 277;case 83:return 268;case 84:return 269;case 85:return 270;case 86:return 271;case 87:return 347;case 88:return 348;case 89:return 273;case 90:return 274;case 91:return 350;case 92:return 349;case 93:return 351;case 94:return 279;case 95:return 280;case 96:return 283;case 97:return 285;case 98:return 289;case 99:return 293;case 100:return 296;case 101:return 13;case 102:return 16;case 103:return 308;case 104:return 309;case 105:return 87;case 106:return 292;case 107:return 82;case 108:return 294;case 109:return 295;case 110:return 297;case 111:return 298;case 112:return 299;case 113:return 300;case 114:return 301;case 115:return 302;case 116:return"EXPONENT";case 117:return 303;case 118:return 304;case 119:return 305;case 120:return 306;case 121:return 89;case 122:return 310;case 123:return 6;case 124:return"INVALID";case 125:console.log(N.yytext);break}},"anonymous"),rules:[/^(?:\s+|(#[^\n\r]*))/i,/^(?:BASE)/i,/^(?:PREFIX)/i,/^(?:SELECT)/i,/^(?:DISTINCT)/i,/^(?:REDUCED)/i,/^(?:\()/i,/^(?:AS)/i,/^(?:\))/i,/^(?:\*)/i,/^(?:CONSTRUCT)/i,/^(?:WHERE)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:DESCRIBE)/i,/^(?:ASK)/i,/^(?:FROM)/i,/^(?:NAMED)/i,/^(?:GROUP)/i,/^(?:BY)/i,/^(?:HAVING)/i,/^(?:ORDER)/i,/^(?:ASC)/i,/^(?:DESC)/i,/^(?:LIMIT)/i,/^(?:OFFSET)/i,/^(?:VALUES)/i,/^(?:;)/i,/^(?:LOAD)/i,/^(?:SILENT)/i,/^(?:INTO)/i,/^(?:CLEAR)/i,/^(?:DROP)/i,/^(?:CREATE)/i,/^(?:ADD)/i,/^(?:TO)/i,/^(?:MOVE)/i,/^(?:COPY)/i,/^(?:INSERT((\s+|(#[^\n\r]*)\n\r?)+)DATA)/i,/^(?:DELETE((\s+|(#[^\n\r]*)\n\r?)+)DATA)/i,/^(?:DELETE((\s+|(#[^\n\r]*)\n\r?)+)WHERE)/i,/^(?:WITH)/i,/^(?:DELETE)/i,/^(?:INSERT)/i,/^(?:USING)/i,/^(?:DEFAULT)/i,/^(?:GRAPH)/i,/^(?:ALL)/i,/^(?:\.)/i,/^(?:OPTIONAL)/i,/^(?:SERVICE)/i,/^(?:BIND)/i,/^(?:UNDEF)/i,/^(?:MINUS)/i,/^(?:UNION)/i,/^(?:FILTER)/i,/^(?:<<)/i,/^(?:>>)/i,/^(?:\{\|)/i,/^(?:\|\})/i,/^(?:,)/i,/^(?:a)/i,/^(?:\|)/i,/^(?:\/)/i,/^(?:\^)/i,/^(?:\?)/i,/^(?:\+)/i,/^(?:!)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\|\|)/i,/^(?:&&)/i,/^(?:=)/i,/^(?:!=)/i,/^(?:<)/i,/^(?:>)/i,/^(?:<=)/i,/^(?:>=)/i,/^(?:IN)/i,/^(?:NOT)/i,/^(?:-)/i,/^(?:BOUND)/i,/^(?:BNODE)/i,/^(?:(RAND|NOW|UUID|STRUUID))/i,/^(?:(LANG|DATATYPE|IRI|URI|ABS|CEIL|FLOOR|ROUND|STRLEN|STR|UCASE|LCASE|ENCODE_FOR_URI|YEAR|MONTH|DAY|HOURS|MINUTES|SECONDS|TIMEZONE|TZ|MD5|SHA1|SHA256|SHA384|SHA512|isIRI|isURI|isBLANK|isLITERAL|isNUMERIC))/i,/^(?:(SUBJECT|PREDICATE|OBJECT|isTRIPLE))/i,/^(?:(LANGMATCHES|CONTAINS|STRSTARTS|STRENDS|STRBEFORE|STRAFTER|STRLANG|STRDT|sameTerm))/i,/^(?:CONCAT)/i,/^(?:COALESCE)/i,/^(?:IF)/i,/^(?:TRIPLE)/i,/^(?:REGEX)/i,/^(?:SUBSTR)/i,/^(?:REPLACE)/i,/^(?:EXISTS)/i,/^(?:COUNT)/i,/^(?:SUM|MIN|MAX|AVG|SAMPLE)/i,/^(?:GROUP_CONCAT)/i,/^(?:SEPARATOR)/i,/^(?:\^\^)/i,/^(?:true|false)/i,/^(?:(<(?:[^<>\"\{\}\|\^`\\\u0000-\u0020])*>))/i,/^(?:((([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?)?:))/i,/^(?:(((([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?)?:)((?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|:|[0-9]|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.|:|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))*(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|:|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%)))))?)))/i,/^(?:(_:(?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?))/i,/^(?:([\?\$]((?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9])(?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])*)))/i,/^(?:(@[a-zA-Z]+(?:-[a-zA-Z0-9]+)*))/i,/^(?:([0-9]+))/i,/^(?:([0-9]*\.[0-9]+))/i,/^(?:([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+)))/i,/^(?:(\+([0-9]+)))/i,/^(?:(\+([0-9]*\.[0-9]+)))/i,/^(?:(\+([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+))))/i,/^(?:(-([0-9]+)))/i,/^(?:(-([0-9]*\.[0-9]+)))/i,/^(?:(-([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+))))/i,/^(?:([eE][+-]?[0-9]+))/i,/^(?:('(?:(?:[^\u0027\u005C\u000A\u000D])|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])))*'))/i,/^(?:("(?:(?:[^\u0022\u005C\u000A\u000D])|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])))*"))/i,/^(?:('''(?:(?:'|'')?(?:[^'\\]|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f]))))*'''))/i,/^(?:("""(?:(?:"|"")?(?:[^\"\\]|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f]))))*"""))/i,/^(?:(\((\u0020|\u0009|\u000D|\u000A)*\)))/i,/^(?:(\[(\u0020|\u0009|\u000D|\u000A)*\]))/i,/^(?:$)/i,/^(?:.)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125],inclusive:!0}}};return I})();Sy.lexer=ZD;function Le(){this.yy={}}return o(Le,"Parser"),Le.prototype=Sy,Sy.Parser=Le,new Le})();tA.exports=zM});var aA=S((See,sA)=>{var HM="http://www.w3.org/2001/XMLSchema#integer",QM="http://www.w3.org/2001/XMLSchema#string";function Ct(n){this._options=n=n||{};var e=n.prefixes||{};this._prefixByIri={};var t=[];for(var r in e){var i=e[r];Vu(i)&&(this._prefixByIri[i]=r,t.push(i))}var s=t.join("|").replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&");this._prefixRegex=new RegExp("^("+s+")([a-zA-Z][\\-_a-zA-Z0-9]*)$"),this._usedPrefixes={},this._sparqlStar=n.sparqlStar,this._indent=Vu(n.indent)?n.indent:" ",this._newline=Vu(n.newline)?n.newline:`
|
|
40
|
+
`,this._explicitDatatype=!!n.explicitDatatype}o(Ct,"Generator");Ct.prototype.toQuery=function(n){var e="";return n.queryType&&(e+=n.queryType.toUpperCase()+" "),n.reduced&&(e+="REDUCED "),n.distinct&&(e+="DISTINCT "),n.variables?e+=Mn(n.variables,void 0,function(t){return/^[?$]/.test(t)?t:Ta(t)?this.toEntity(t):"("+this.toExpression(t.expression)+" AS "+kh(t.variable)+")"},this)+" ":n.template&&(e+=this.group(n.template,!0)+this._newline),n.from&&(e+=this.graphs("FROM ",n.from.default)+this.graphs("FROM NAMED ",n.from.named)),n.where&&(e+="WHERE "+this.group(n.where,!0)+this._newline),n.updates&&(e+=Mn(n.updates,";"+this._newline,this.toUpdate,this)),n.group&&(e+="GROUP BY "+Mn(n.group,void 0,function(t){var r=Ta(t.expression)?this.toEntity(t.expression):"("+this.toExpression(t.expression)+")";return t.variable?"("+r+" AS "+kh(t.variable)+")":r},this)+this._newline),n.having&&(e+="HAVING ("+Mn(n.having,void 0,this.toExpression,this)+")"+this._newline),n.order&&(e+="ORDER BY "+Mn(n.order,void 0,function(t){var r="("+this.toExpression(t.expression)+")";return t.descending?"DESC "+r:r},this)+this._newline),n.offset&&(e+="OFFSET "+n.offset+this._newline),n.limit&&(e+="LIMIT "+n.limit+this._newline),n.values&&(e+=this.values(n)),e=this.baseAndPrefixes(n)+e,e.trim()};Ct.prototype.baseAndPrefixes=function(n){var e=n.base?"BASE <"+n.base+">"+this._newline:"",t="";for(var r in n.prefixes)(this._options.allPrefixes||this._usedPrefixes[r])&&(t+="PREFIX "+r+": <"+n.prefixes[r]+">"+this._newline);return e+t};Ct.prototype.toPattern=function(n){var e=n.type||n instanceof Array&&"array"||(n.subject&&n.predicate&&n.object?"triple":"");if(!(e in this))throw new Error("Unknown entry type: "+e);return this[e](n)};Ct.prototype.triple=function(n){return this.toEntity(n.subject)+" "+this.toEntity(n.predicate)+" "+this.toEntity(n.object)+"."};Ct.prototype.array=function(n){return Mn(n,this._newline,this.toPattern,this)};Ct.prototype.bgp=function(n){return this.encodeTriples(n.triples)};Ct.prototype.encodeTriples=function(n){if(!n.length)return"";for(var e=[],t=void 0,r=void 0,i=0;i<n.length;i++){var s=n[i];Eo(s.subject,t)?Eo(s.predicate,r)?e.push(","):(r=s.predicate,e.push(";"+this._newline,this._indent,this.toEntity(r))):(t&&e.push("."+this._newline),t=s.subject,r=s.predicate,e.push(this.toEntity(t)," ",this.toEntity(r))),e.push(" ",this.toEntity(s.object))}return e.push("."),e.join("")};Ct.prototype.graph=function(n){return"GRAPH "+this.toEntity(n.name)+" "+this.group(n)};Ct.prototype.graphs=function(n,e){return!e||e.length===0?"":Mn(e,"",function(t){return n+this.toEntity(t)+this._newline},this)};Ct.prototype.group=function(n,e){return n=e!==!0?this.array(n.patterns||n.triples):this.toPattern(n.type!=="group"?n:n.patterns),n.indexOf(this._newline)===-1?"{ "+n+" }":"{"+this._newline+this.indent(n)+this._newline+"}"};Ct.prototype.query=function(n){return this.toQuery(n)};Ct.prototype.filter=function(n){return"FILTER("+this.toExpression(n.expression)+")"};Ct.prototype.bind=function(n){return"BIND("+this.toExpression(n.expression)+" AS "+kh(n.variable)+")"};Ct.prototype.optional=function(n){return"OPTIONAL "+this.group(n)};Ct.prototype.union=function(n){return Mn(n.patterns,this._newline+"UNION"+this._newline,function(e){return this.group(e,!0)},this)};Ct.prototype.minus=function(n){return"MINUS "+this.group(n)};Ct.prototype.values=function(n){var e=Object.keys(n.values.reduce(function(i,s){for(var a in s)i[a]=!0;return i},{})),t,r;return e.length===1?t=r="":(t="(",r=")"),"VALUES "+t+e.join(" ")+r+" {"+this._newline+Mn(n.values,this._newline,function(i){return" "+t+Mn(e,void 0,function(s){return i[s]?this.toEntity(i[s]):"UNDEF"},this)+r},this)+this._newline+"}"};Ct.prototype.service=function(n){return"SERVICE "+(n.silent?"SILENT ":"")+this.toEntity(n.name)+" "+this.group(n)};Ct.prototype.toExpression=function(n){if(Ta(n))return this.toEntity(n);switch(n.type.toLowerCase()){case"aggregate":return n.aggregation.toUpperCase()+"("+(n.distinct?"DISTINCT ":"")+this.toExpression(n.expression)+(typeof n.separator=="string"?'; SEPARATOR = "'+n.separator.replace(nA,iA)+'"':"")+")";case"functioncall":return this.toEntity(n.function)+"("+Mn(n.args,", ",this.toExpression,this)+")";case"operation":var e=n.operator.toUpperCase(),t=n.args||[];switch(n.operator.toLowerCase()){case"<":case">":case">=":case"<=":case"&&":case"||":case"=":case"!=":case"+":case"-":case"*":case"/":return(Ta(t[0])?this.toEntity(t[0]):"("+this.toExpression(t[0])+")")+" "+e+" "+(Ta(t[1])?this.toEntity(t[1]):"("+this.toExpression(t[1])+")");case"!":return"!("+this.toExpression(t[0])+")";case"uplus":return"+("+this.toExpression(t[0])+")";case"uminus":return"-("+this.toExpression(t[0])+")";case"notin":e="NOT IN";case"in":return this.toExpression(t[0])+" "+e+"("+(Vu(t[1])?t[1]:Mn(t[1],", ",this.toExpression,this))+")";case"notexists":e="NOT EXISTS";case"exists":return e+" "+this.group(t[0],!0);default:return e+"("+Mn(t,", ",this.toExpression,this)+")"}default:throw new Error("Unknown expression type: "+n.type)}};Ct.prototype.toEntity=function(n){if(Ta(n))switch(n.termType){case"Wildcard":return"*";case"Variable":return kh(n);case"BlankNode":return"_:"+n.value;case"Literal":var e=n.value||"",t=n.language||"",r=n.datatype;if(n='"'+e.replace(nA,iA)+'"',t)n+="@"+t;else if(r){if(!this._explicitDatatype)switch(r.value){case QM:return n;case HM:if(/^\d+$/.test(e))return e+" "}n+="^^"+this.encodeIRI(r.value)}return n;case"Quad":if(!this._sparqlStar)throw new Error("SPARQL* support is not enabled");return n.graph&&n.graph.termType!=="DefaultGraph"?"<< GRAPH "+this.toEntity(n.graph)+" { "+this.toEntity(n.subject)+" "+this.toEntity(n.predicate)+" "+this.toEntity(n.object)+" } >>":"<< "+this.toEntity(n.subject)+" "+this.toEntity(n.predicate)+" "+this.toEntity(n.object)+" >>";default:return this.encodeIRI(n.value)}else{var i=n.items.map(this.toEntity,this),s=n.pathType;switch(s){case"^":case"!":return s+i[0];case"*":case"+":case"?":return"("+i[0]+s+")";default:return"("+i.join(s)+")"}}};var nA=/["\\\t\n\r\b\f]/g,iA=o(function(n){return YM[n]},"escapeReplacer"),YM={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};Ct.prototype.encodeIRI=function(n){var e=this._prefixRegex.exec(n);if(e){var t=this._prefixByIri[e[1]];return this._usedPrefixes[t]=!0,t+":"+e[2]}return"<"+n+">"};Ct.prototype.toUpdate=function(n){switch(n.type||n.updateType){case"load":return"LOAD"+(n.source?" "+this.toEntity(n.source):"")+(n.destination?" INTO GRAPH "+this.toEntity(n.destination):"");case"insert":return"INSERT DATA "+this.group(n.insert,!0);case"delete":return"DELETE DATA "+this.group(n.delete,!0);case"deletewhere":return"DELETE WHERE "+this.group(n.delete,!0);case"insertdelete":return(n.graph?"WITH "+this.toEntity(n.graph)+this._newline:"")+(n.delete.length?"DELETE "+this.group(n.delete,!0)+this._newline:"")+(n.insert.length?"INSERT "+this.group(n.insert,!0)+this._newline:"")+(n.using?this.graphs("USING ",n.using.default):"")+(n.using?this.graphs("USING NAMED ",n.using.named):"")+"WHERE "+this.group(n.where,!0);case"add":case"copy":case"move":return n.type.toUpperCase()+" "+(n.silent?"SILENT ":"")+(n.source.default?"DEFAULT":this.toEntity(n.source.name))+" TO "+this.toEntity(n.destination.name);case"create":case"clear":case"drop":return n.type.toUpperCase()+(n.silent?" SILENT ":" ")+(n.graph.default?"DEFAULT":n.graph.named?"NAMED":n.graph.all?"ALL":"GRAPH "+this.toEntity(n.graph.name));default:throw new Error("Unknown update query type: "+n.type)}};Ct.prototype.indent=function(n){return n.replace(/^/gm,this._indent)};function kh(n){return"?"+n.value}o(kh,"variableToString");function Vu(n){return typeof n=="string"}o(Vu,"isString");function Ta(n){return typeof n.termType=="string"}o(Ta,"isTerm");function Eo(n,e){if(!n||!Ta(n)||!e||!Ta(e)||n.termType!==e.termType)return!1;switch(n.termType){case"Literal":return n.value===e.value&&n.language===e.language&&Eo(n.datatype,e.datatype);case"Quad":return Eo(n.subject,e.subject)&&Eo(n.predicate,e.predicate)&&Eo(n.object,e.object)&&Eo(n.graph,e.graph);default:return n.value===e.value}}o(Eo,"equalTerms");function Mn(n,e,t,r){return n.map(t,r).join(Vu(e)?e:" ")}o(Mn,"mapJoin");function KM(n={}){return{stringify:o(function(e){var t=Object.create(n);return t.prefixes=e.prefixes,new Ct(t).toQuery(e)},"stringify"),createGenerator:o(function(){return new Ct(n)},"createGenerator")}}o(KM,"_Generator");sA.exports={Generator:KM}});var A_=S(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.BlankNode=void 0;var T_=class{static{o(this,"BlankNode")}constructor(e){this.termType="BlankNode",this.value=e}equals(e){return!!e&&e.termType==="BlankNode"&&e.value===this.value}};Mh.BlankNode=T_});var x_=S(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.DefaultGraph=void 0;var Uu=class{static{o(this,"DefaultGraph")}constructor(){this.termType="DefaultGraph",this.value=""}equals(e){return!!e&&e.termType==="DefaultGraph"}};jh.DefaultGraph=Uu;Uu.INSTANCE=new Uu});var Bh=S($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});$h.NamedNode=void 0;var C_=class{static{o(this,"NamedNode")}constructor(e){this.termType="NamedNode",this.value=e}equals(e){return!!e&&e.termType==="NamedNode"&&e.value===this.value}};$h.NamedNode=C_});var I_=S(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});Vh.Literal=void 0;var oA=Bh(),qu=class n{static{o(this,"Literal")}constructor(e,t){this.termType="Literal",this.value=e,typeof t=="string"?(this.language=t,this.datatype=n.RDF_LANGUAGE_STRING):t?(this.language="",this.datatype=t):(this.language="",this.datatype=n.XSD_STRING)}equals(e){return!!e&&e.termType==="Literal"&&e.value===this.value&&e.language===this.language&&this.datatype.equals(e.datatype)}};Vh.Literal=qu;qu.RDF_LANGUAGE_STRING=new oA.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");qu.XSD_STRING=new oA.NamedNode("http://www.w3.org/2001/XMLSchema#string")});var P_=S(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.Quad=void 0;var R_=class{static{o(this,"Quad")}constructor(e,t,r,i){this.termType="Quad",this.value="",this.subject=e,this.predicate=t,this.object=r,this.graph=i}equals(e){return!!e&&(e.termType==="Quad"||!e.termType)&&this.subject.equals(e.subject)&&this.predicate.equals(e.predicate)&&this.object.equals(e.object)&&this.graph.equals(e.graph)}};Uh.Quad=R_});var F_=S(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});qh.Variable=void 0;var O_=class{static{o(this,"Variable")}constructor(e){this.termType="Variable",this.value=e}equals(e){return!!e&&e.termType==="Variable"&&e.value===this.value}};qh.Variable=O_});var lA=S(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});Wh.DataFactory=void 0;var XM=A_(),JM=x_(),cA=I_(),ZM=Bh(),ej=P_(),tj=F_(),rj=0,D_=class{static{o(this,"DataFactory")}constructor(e){this.blankNodeCounter=0,e=e||{},this.blankNodePrefix=e.blankNodePrefix||`df_${rj++}_`}namedNode(e){return new ZM.NamedNode(e)}blankNode(e){return new XM.BlankNode(e||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(e,t){return new cA.Literal(e,t)}variable(e){return new tj.Variable(e)}defaultGraph(){return JM.DefaultGraph.INSTANCE}quad(e,t,r,i){return new ej.Quad(e,t,r,i||this.defaultGraph())}fromTerm(e){switch(e.termType){case"NamedNode":return this.namedNode(e.value);case"BlankNode":return this.blankNode(e.value);case"Literal":return e.language?this.literal(e.value,e.language):e.datatype.equals(cA.Literal.XSD_STRING)?this.literal(e.value):this.literal(e.value,this.fromTerm(e.datatype));case"Variable":return this.variable(e.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(e.subject),this.fromTerm(e.predicate),this.fromTerm(e.object),this.fromTerm(e.graph))}}fromQuad(e){return this.fromTerm(e)}resetBlankNodeCounter(){this.blankNodeCounter=0}};Wh.DataFactory=D_});var uA=S(jn=>{"use strict";var nj=jn&&jn.__createBinding||(Object.create?(function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[t]},"get")}),Object.defineProperty(n,r,i)}):(function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]})),To=jn&&jn.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&nj(e,n,t)};Object.defineProperty(jn,"__esModule",{value:!0});To(A_(),jn);To(lA(),jn);To(x_(),jn);To(I_(),jn);To(Bh(),jn);To(P_(),jn);To(F_(),jn)});var dA=S((Mee,fA)=>{var{Parser:qs}=rA(),{Generator:ij}=aA(),{Wildcard:sj}=E_(),{DataFactory:aj}=uA();function oj({prefixes:n,baseIRI:e,factory:t,pathOnly:r,sparqlStar:i,skipValidation:s,skipUngroupedVariableCheck:a}={}){let c={};for(let u in n??{})c[u]=n[u];let l=new qs;return l.parse=function(){return qs.base=e||"",qs.prefixes=Object.create(c),qs.factory=t||new aj,qs.sparqlStar=!!i,qs.pathOnly=!!r,qs.skipValidation=!!s||!!a,qs.prototype.parse.apply(l,arguments)},l._resetBlanks=qs._resetBlanks,l}o(oj,"_Parser");fA.exports={Parser:oj,Generator:ij,Wildcard:sj}});var L_=S(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.CaseWhenTransformerError=Cc.CaseWhenTransformer=void 0;var N_=class{static{o(this,"CaseWhenTransformer")}transform(e){let t=this.stripLineComments(e),r,i=0,s=100;do if(r=t,t=this.transformSinglePass(t),i++,i>s)throw new Ws("Too many nested CASE expressions (max 100 iterations)");while(t!==r);return t}stripLineComments(e){let t="",r=0;for(;r<e.length;){let i=e[r];if(i==="'"||i==='"'){let s=i;for(t+=i,r++;r<e.length&&e[r]!==s;){if(e[r]==="\\"&&r+1<e.length){t+=e[r]+e[r+1],r+=2;continue}t+=e[r],r++}r<e.length&&(t+=e[r],r++);continue}if(i==="<"){let s=e.indexOf(">",r),a=e.indexOf(`
|
|
41
41
|
`,r);if(s!==-1&&(a===-1||s<a)){t+=e.substring(r,s+1),r=s+1;continue}}if(i==="#"){let s=e.indexOf(`
|
|
42
42
|
`,r),a=s===-1?e.length:s;t+=" ".repeat(a-r),r=a;continue}t+=i,r++}return t}transformSinglePass(e){let t=this.findCasePositions(e);if(t.length===0)return e;let r=e;for(let i=t.length-1;i>=0;i--){let s=t[i],a=this.extractCaseExpression(r,s);if(a){let c=this.convertCaseToIf(a.content);r=r.substring(0,s)+c+r.substring(s+a.length)}}return r}findCasePositions(e){let t=[],r=e.toUpperCase(),i=0;for(;i<e.length;){if(e[i]==="'"||e[i]==='"'){let s=e[i];for(i++;i<e.length&&e[i]!==s;)e[i]==="\\"&&i++,i++;i++;continue}if(r.substring(i,i+4)==="CASE"&&this.isWordBoundary(e,i,4)){t.push(i),i+=4;continue}i++}return t}extractCaseExpression(e,t){let r=1,i=t+4,s=e.toUpperCase();for(;i<e.length&&r>0;){if(e[i]==="'"||e[i]==='"'){let a=e[i];for(i++;i<e.length&&e[i]!==a;)e[i]==="\\"&&i++,i++;i++;continue}if(s.substring(i,i+4)==="CASE"&&this.isWordBoundary(e,i,4)){r++,i+=4;continue}if(s.substring(i,i+3)==="END"&&this.isWordBoundary(e,i,3)){if(r--,r===0){let a=e.substring(t,i+3);return{content:a,length:a.length}}i+=3;continue}i++}if(r>0)throw new Ws(`Unclosed CASE expression at position ${t}`);return null}isWordBoundary(e,t,r){let i=t>0?e[t-1]:"",s=t===0||!/[a-zA-Z0-9_?$]/.test(i),a=t+r<e.length?e[t+r]:"",c=t+r>=e.length||!/[a-zA-Z0-9_]/.test(a);return s&&c}convertCaseToIf(e){let t=this.extractWhenClauses(e),r=this.extractElseClause(e);if(t.length===0)throw new Ws("CASE expression must have at least one WHEN clause");let i=r!==null?r:'""';for(let s=t.length-1;s>=0;s--){let{condition:a,result:c}=t[s];i=`IF(${a}, ${c}, ${i})`}return i}extractWhenClauses(e){let t=[],r=e.replace(/^\s*CASE\s+/i,"").replace(/\s*END\s*$/i,""),i=this.findKeywordPositions(r,"WHEN"),s=this.findKeywordPositions(r,"ELSE"),a=s.length>0?s[0]:r.length;for(let c=0;c<i.length;c++){let l=i[c]+4,u=c+1<i.length?i[c+1]:a,f=r.substring(l,u).trim(),d=this.parseWhenClause(f);d&&t.push(d)}return t}findKeywordPositions(e,t){let r=[],i=e.toUpperCase(),s=0,a=0;for(;s<e.length;){let c=e[s];if(c==="'"||c==='"'){let l=c;for(s++;s<e.length&&e[s]!==l;)e[s]==="\\"&&s++,s++;s++;continue}if(c==="("){a++,s++;continue}if(c===")"){a--,s++;continue}if(a===0&&i.substring(s,s+t.length)===t&&this.isWordBoundary(e,s,t.length)){r.push(s),s+=t.length;continue}s++}return r}parseWhenClause(e){let t=this.findKeywordPositions(e,"THEN");if(t.length===0)throw new Ws(`WHEN clause missing THEN keyword: ${e.substring(0,50)}...`);let r=t[0],i=e.substring(0,r).trim(),s=e.substring(r+4).trim();if(!i)throw new Ws("WHEN clause has empty condition");if(!s)throw new Ws("WHEN clause has empty result");return{condition:i,result:s}}extractElseClause(e){let t=e.replace(/^\s*CASE\s+/i,"").replace(/\s*END\s*$/i,""),r=this.findKeywordPositions(t,"ELSE");if(r.length>0){let i=r[0];return t.substring(i+4).trim()}return null}};Cc.CaseWhenTransformer=N_;var Ws=class extends Error{static{o(this,"CaseWhenTransformerError")}constructor(e){super(`CASE WHEN transformation error: ${e}`),this.name="CaseWhenTransformerError"}};Cc.CaseWhenTransformerError=Ws});var k_=S(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.LateralTransformerError=Ic.LateralTransformer=void 0;var Gh=class n{static{o(this,"LateralTransformer")}transform(e){let t=e,r,i=0,s=100;do if(r=t,t=this.transformSinglePass(t),i++,i>s)throw new Aa("Too many nested LATERAL joins (max 100 iterations)");while(t!==r);return t}hasLateral(e){return this.findLateralPositions(e).length>0}static isLateralJoin(e){if(e.type==="group"&&e.patterns){for(let t of e.patterns)if(t.type==="query"&&t.queryType==="SELECT"&&t.variables&&Array.isArray(t.variables)){for(let r of t.variables)if(r.termType==="Variable"&&r.value===n.LATERAL_MARKER)return!0}}if(e.type==="query"&&e.queryType==="SELECT"&&e.variables&&Array.isArray(e.variables)){for(let t of e.variables)if(t.termType==="Variable"&&t.value===n.LATERAL_MARKER)return!0}return!1}transformSinglePass(e){let t=this.findLateralPositions(e);if(t.length===0)return e;let r=e;for(let i=t.length-1;i>=0;i--){let s=t[i],a=this.extractLateralExpression(r,s);if(a){let c=this.transformLateral(a.content);r=r.substring(0,s)+c+r.substring(s+a.length)}}return r}findLateralPositions(e){let t=[],r=e.toUpperCase(),i=0;for(;i<e.length;){if(e[i]==="'"||e[i]==='"'){let s=e[i];for(i++;i<e.length&&e[i]!==s;)e[i]==="\\"&&i++,i++;i++;continue}if(e[i]==="#"){for(;i<e.length&&e[i]!==`
|
|
43
43
|
`;)i++;continue}if(r.substring(i,i+7)==="LATERAL"&&this.isWordBoundary(e,i,7)){t.push(i),i+=7;continue}i++}return t}extractLateralExpression(e,t){let r=t+7;for(;r<e.length&&/\s/.test(e[r]);)r++;if(e[r]!=="{")throw new Aa(`Expected '{' after LATERAL keyword at position ${t}`);let i=1;for(r++;r<e.length&&i>0;){if(e[r]==="'"||e[r]==='"'){let s=e[r];for(r++;r<e.length&&e[r]!==s;)e[r]==="\\"&&r++,r++;r++;continue}if(e[r]==="#"){for(;r<e.length&&e[r]!==`
|
|
@@ -452,13 +452,13 @@ To resolve:
|
|
|
452
452
|
\u2022 Verify all required dependencies are available
|
|
453
453
|
\u2022 Review service logs for detailed error information
|
|
454
454
|
\u2022 Contact support if the issue persists`}};qm.ServiceError=Ib});var gC=S(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.ServiceError=nr.ResourceExhaustedError=nr.NotFoundError=nr.PermissionError=nr.StateTransitionError=nr.NetworkError=nr.ValidationError=nr.ApplicationError=nr.ErrorCode=void 0;var UB=gs();Object.defineProperty(nr,"ErrorCode",{enumerable:!0,get:o(function(){return UB.ErrorCode},"get")});var qB=ys();Object.defineProperty(nr,"ApplicationError",{enumerable:!0,get:o(function(){return qB.ApplicationError},"get")});var WB=lC();Object.defineProperty(nr,"ValidationError",{enumerable:!0,get:o(function(){return WB.ValidationError},"get")});var GB=uC();Object.defineProperty(nr,"NetworkError",{enumerable:!0,get:o(function(){return GB.NetworkError},"get")});var zB=fC();Object.defineProperty(nr,"StateTransitionError",{enumerable:!0,get:o(function(){return zB.StateTransitionError},"get")});var HB=dC();Object.defineProperty(nr,"PermissionError",{enumerable:!0,get:o(function(){return HB.PermissionError},"get")});var QB=hC();Object.defineProperty(nr,"NotFoundError",{enumerable:!0,get:o(function(){return QB.NotFoundError},"get")});var YB=pC();Object.defineProperty(nr,"ResourceExhaustedError",{enumerable:!0,get:o(function(){return YB.ResourceExhaustedError},"get")});var KB=mC();Object.defineProperty(nr,"ServiceError",{enumerable:!0,get:o(function(){return KB.ServiceError},"get")})});var yC=S(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.ApplicationErrorHandler=void 0;var Rb=ys(),XB=gs(),JB=Fa(),Pb=class{static{o(this,"ApplicationErrorHandler")}constructor(e={},t,r){this.logger=t,this.notifier=r,this.telemetryHooks=new Set,this.retryConfig={maxRetries:e.maxRetries??3,initialDelayMs:e.initialDelayMs??1e3,backoffMultiplier:e.backoffMultiplier??2,maxDelayMs:e.maxDelayMs??1e4}}handle(e,t){let r=this.ensureApplicationError(e,t);return this.notifier&&this.notifier.error(r.message),this.callTelemetryHooks("onError",r,t),this.formatError(r)}async executeWithRetry(e,t){let r,i=0;for(;i<=this.retryConfig.maxRetries;)try{return await e()}catch(s){if(r=this.ensureApplicationError(s,t),!r.retriable||i>=this.retryConfig.maxRetries)throw this.callTelemetryHooks("onError",r,t),i>=this.retryConfig.maxRetries&&r.retriable&&this.callTelemetryHooks("onRetryExhausted",r,i+1),r;let a=this.calculateDelay(i);this.callTelemetryHooks("onRetry",r,i+1,a),this.logger?.debug(`Retrying after ${a}ms (attempt ${i+1}/${this.retryConfig.maxRetries})`),await this.sleep(a),i++}throw r}registerTelemetryHook(e){this.telemetryHooks.add(e)}unregisterTelemetryHook(e){this.telemetryHooks.delete(e)}ensureApplicationError(e,t){if(e instanceof Rb.ApplicationError){if(t){let i=e,s={...e.context,...t};return new class extends Rb.ApplicationError{constructor(){super(...arguments),this.code=i.code,this.retriable=i.retriable,this.guidance=i.guidance}}(e.message,s)}return e}return new class extends Rb.ApplicationError{static{o(this,"UnknownError")}constructor(s,a){super(s,{originalError:a.name,...t}),this.code=XB.ErrorCode.UNKNOWN_ERROR,this.retriable=!1,this.guidance="An unexpected error occurred"}}(e.message,e)}formatError(e){let t=[];return t.push(`\u274C ${e.name}: ${e.message}`),e.guidance&&t.push(`\u{1F4A1} ${e.guidance}`),e.context&&Object.keys(e.context).length>0&&t.push(`Context: ${JSON.stringify(e.context,null,2)}`),t.join(`
|
|
455
|
-
`)}calculateDelay(e){let t=this.retryConfig.initialDelayMs*Math.pow(this.retryConfig.backoffMultiplier,e);return Math.min(t,this.retryConfig.maxDelayMs)}sleep(e){return new Promise(t=>setTimeout(t,e))}callTelemetryHooks(e,...t){for(let r of this.telemetryHooks)try{let i=r[e];i&&i.apply(r,t)}catch(i){JB.LoggingService.error("Error in telemetry hook",i instanceof Error?i:new Error(String(i)))}}};Wm.ApplicationErrorHandler=Pb});var _C=S(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.ApplicationErrorHandler=void 0;var ZB=yC();Object.defineProperty(Gm,"ApplicationErrorHandler",{enumerable:!0,get:o(function(){return ZB.ApplicationErrorHandler},"get")})});var Mt=S(m=>{"use strict";var eV=m&&m.__createBinding||(Object.create?(function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[t]},"get")}),Object.defineProperty(n,r,i)}):(function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]})),Zn=m&&m.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&eV(e,n,t)};Object.defineProperty(m,"__esModule",{value:!0});m.RenameToUidService=m.PropertyCleanupService=m.LoggingService=m.LabelToAliasService=m.FolderRepairService=m.EffortVotingService=m.WorkflowCommandAdapter=m.VisibilityGenerator=m.InstantiationRuleResolver=m.WorkflowResolver=m.WorkflowEngine=m.EffortStatusWorkflow=m.ConceptCreationService=m.ClassCreationService=m.AreaHierarchyBuilder=m.AreaCreationService=m.TaskStatusService=m.ServiceRegistry=m.GroundingExecutor=m.PreconditionEvaluator=m.CommandResolver=m.extractPropertyLabel=m.uriToPropertyName=m.propertyNameToUri=m.rangeToFieldType=m.PropertyFieldType=m.isCommandBindingFrontmatter=m.isGroundingFrontmatter=m.isPreconditionFrontmatter=m.isCommandFrontmatter=m.isStyleSource=m.isLabelClass=m.isCommandVariant=m.STYLE_SOURCE_VALUES=m.LABEL_CLASS_VALUES=m.COMMAND_VARIANT_VALUES=m.CommandBindingStyleProperty=m.CommandBindingProperty=m.GroundingProperty=m.PreconditionProperty=m.CommandProperty=m.GroundingType=m.getEffortStatusLabel=m.isTrashedStatus=m.isDoneStatus=m.normalizeEffortStatus=m.EFFORT_STATUS_OPTIONS=m.STATUS_NAME_TO_WIKILINK=m.STATUS_NAME_TO_ENUM=m.EFFORT_STATUS_CONFIG=void 0;m.InMemoryTripleStore=m.OBSIDIAN_VAULT_SCHEME=m.vaultPathToIRI=m.NullLogger=m.RDFSerializer=m.FilenameValidator=m.EffortSortingHelpers=m.MetadataExtractor=m.MetadataHelpers=m.WikiLinkHelpers=m.DateFormatter=m.FrontmatterService=m.CriticalityZoneUUIDs=m.CriticalityZoneService=m.DailyReviewService=m.DEFAULT_AUTOCOMPLETE_CONFIG=m.AutocompleteService=m.TrendDetectionService=m.AnalyticsService=m.getTemplateByName=m.validateParameters=m.fillTemplate=m.findMatchingTemplates=m.findClassByTerm=m.KNOWN_CLASSES=m.KNOWN_PROTOTYPES=m.EFFORT_STATUSES=m.ASSET_CLASSES=m.PREDICATES=m.SPARQL_PREFIXES=m.SPARQL_TEMPLATES=m.DEFAULT_NL_TO_SPARQL_CONFIG=m.NLToSPARQLService=m.TypeRegistry=m.GraphQueryService=m.FixMissingLabelService=m.ArchiveAssetService=m.GenericAssetCreationService=m.URIConstructionService=m.SessionEventService=m.AssetConversionService=m.EnumValueResolver=m.ClassHierarchyResolver=m.PropertySchemaResolver=m.PlanningService=m.AlgorithmExtractor=m.DynamicFrontmatterGenerator=m.FleetingNoteCreationService=m.SupervisionCreationService=m.StatusTimestampService=void 0;m.CaseWhenTransformer=m.ResultSerializer=m.createIncrementalIndexer=m.IncrementalIndexer=m.createSPARQLResultCache=m.SPARQLResultCache=m.QueryPlanCache=m.createDoubleLiteral=m.createDecimalLiteral=m.getNumericValue=m.createPercentileAggregate=m.modeAggregate=m.stddevAggregate=m.varianceAggregate=m.medianAggregate=m.EXO_AGGREGATE_NS=m.BUILT_IN_AGGREGATES=m.CustomAggregateError=m.CustomAggregateRegistry=m.AggregateFunctions=m.BuiltInFunctions=m.SolutionMapping=m.UpdateExecutorError=m.UpdateExecutor=m.QueryExecutor=m.ExoQLQueryExecutor=m.DescribeExecutor=m.ConstructExecutor=m.UnionExecutor=m.OptionalExecutor=m.FilterExecutor=m.BGPExecutor=m.AlgebraSerializer=m.AlgebraOptimizer=m.AlgebraTranslator=m.ExoQLAlgebraTranslator=m.DescribeOptionsTransformerError=m.DescribeOptionsTransformer=m.SPARQLParseError=m.SPARQLParser=m.ExoQLParser=m.NoteToRDFConverter=m.SOURCE_VARIABLE=m.SourceAnnotator=m.INFERRED_GRAPH=m.PrototypeChainMaterializer=m.PropertyCardinalityRegistry=m.NonInheritablePropertyRegistry=m.RDFSInferenceEngine=m.RDFVocabularyMapper=void 0;m.LayoutSelector=m.isPropertiesBlock=m.isLayoutBlockFrontmatter=m.isBacklinksTableBlock=m.createLayoutBlockFromFrontmatter=m.PROPERTIES_BLOCK_CLASS_UID=m.PROPERTIES_BLOCK_CLASS_IRI=m.BACKLINKS_TABLE_BLOCK_CLASS_UID=m.BACKLINKS_TABLE_BLOCK_CLASS_IRI=m.isLayoutFrontmatter=m.isLayout=m.createLayoutFromFrontmatter=m.LAYOUT_CLASS_UID=m.LAYOUT_CLASS_IRI=m.RelationColumnSetResolver=m.normalizeRelationColumnSetRef=m.isRelationColumnSetFrontmatter=m.isRelationColumnSet=m.createRelationColumnSetFromFrontmatter=m.RELATION_COLUMN_SET_CLASS_UID=m.RELATION_COLUMN_SET_CLASS_IRI=m.ExoQLError=m.ExoQL=m.createStreamingSource=m.StreamingLoader=m.resetGlobalPool=m.getGlobalPool=m.MemoryPool=m.CompactGraphStore=m.StringTable=m.DEFAULT_COLORS=m.NODE_FLAGS=m.container=m.resetContainer=m.getContainer=m.createChildContainer=m.registerCoreServices=m.DI_TOKENS=m.DEFAULT_FLEETING_NOTE_CLASS_UID=m.DEFAULT_INBOX_FOLDER=m.DEFAULT_OWNER_IDENTITY=m.VaultSettings=m.TransactionError=m.TripleNotFoundError=m.TripleAlreadyExistsError=m.FileAlreadyExistsError=m.FileNotFoundError=m.FilterContainsOptimizer=m.VaultPrefixTransformer=m.CaseWhenTransformerError=void 0;m.selectByPriority=void 0;Zn(Tu(),m);Zn(_c(),m);var $a=Xy();Object.defineProperty(m,"EFFORT_STATUS_CONFIG",{enumerable:!0,get:o(function(){return $a.EFFORT_STATUS_CONFIG},"get")});Object.defineProperty(m,"STATUS_NAME_TO_ENUM",{enumerable:!0,get:o(function(){return $a.STATUS_NAME_TO_ENUM},"get")});Object.defineProperty(m,"STATUS_NAME_TO_WIKILINK",{enumerable:!0,get:o(function(){return $a.STATUS_NAME_TO_WIKILINK},"get")});Object.defineProperty(m,"EFFORT_STATUS_OPTIONS",{enumerable:!0,get:o(function(){return $a.EFFORT_STATUS_OPTIONS},"get")});Object.defineProperty(m,"normalizeEffortStatus",{enumerable:!0,get:o(function(){return $a.normalizeEffortStatus},"get")});Object.defineProperty(m,"isDoneStatus",{enumerable:!0,get:o(function(){return $a.isDoneStatus},"get")});Object.defineProperty(m,"isTrashedStatus",{enumerable:!0,get:o(function(){return $a.isTrashedStatus},"get")});Object.defineProperty(m,"getEffortStatusLabel",{enumerable:!0,get:o(function(){return $a.getEffortStatusLabel},"get")});var tV=Sc();Object.defineProperty(m,"GroundingType",{enumerable:!0,get:o(function(){return tV.GroundingType},"get")});var gf=Jy();Object.defineProperty(m,"CommandProperty",{enumerable:!0,get:o(function(){return gf.CommandProperty},"get")});Object.defineProperty(m,"PreconditionProperty",{enumerable:!0,get:o(function(){return gf.PreconditionProperty},"get")});Object.defineProperty(m,"GroundingProperty",{enumerable:!0,get:o(function(){return gf.GroundingProperty},"get")});Object.defineProperty(m,"CommandBindingProperty",{enumerable:!0,get:o(function(){return gf.CommandBindingProperty},"get")});Object.defineProperty(m,"CommandBindingStyleProperty",{enumerable:!0,get:o(function(){return gf.CommandBindingStyleProperty},"get")});var Tl=Zy();Object.defineProperty(m,"COMMAND_VARIANT_VALUES",{enumerable:!0,get:o(function(){return Tl.COMMAND_VARIANT_VALUES},"get")});Object.defineProperty(m,"LABEL_CLASS_VALUES",{enumerable:!0,get:o(function(){return Tl.LABEL_CLASS_VALUES},"get")});Object.defineProperty(m,"STYLE_SOURCE_VALUES",{enumerable:!0,get:o(function(){return Tl.STYLE_SOURCE_VALUES},"get")});Object.defineProperty(m,"isCommandVariant",{enumerable:!0,get:o(function(){return Tl.isCommandVariant},"get")});Object.defineProperty(m,"isLabelClass",{enumerable:!0,get:o(function(){return Tl.isLabelClass},"get")});Object.defineProperty(m,"isStyleSource",{enumerable:!0,get:o(function(){return Tl.isStyleSource},"get")});var zm=N2();Object.defineProperty(m,"isCommandFrontmatter",{enumerable:!0,get:o(function(){return zm.isCommandFrontmatter},"get")});Object.defineProperty(m,"isPreconditionFrontmatter",{enumerable:!0,get:o(function(){return zm.isPreconditionFrontmatter},"get")});Object.defineProperty(m,"isGroundingFrontmatter",{enumerable:!0,get:o(function(){return zm.isGroundingFrontmatter},"get")});Object.defineProperty(m,"isCommandBindingFrontmatter",{enumerable:!0,get:o(function(){return zm.isCommandBindingFrontmatter},"get")});Zn(L2(),m);Zn(k2(),m);Zn(e0(),m);Zn(t0(),m);Zn(j2(),m);Zn(V2(),m);Zn(k0(),m);Zn(RT(),m);var SC=yh();Object.defineProperty(m,"PropertyFieldType",{enumerable:!0,get:o(function(){return SC.PropertyFieldType},"get")});Object.defineProperty(m,"rangeToFieldType",{enumerable:!0,get:o(function(){return SC.rangeToFieldType},"get")});var Ob=B0();Object.defineProperty(m,"propertyNameToUri",{enumerable:!0,get:o(function(){return Ob.propertyNameToUri},"get")});Object.defineProperty(m,"uriToPropertyName",{enumerable:!0,get:o(function(){return Ob.uriToPropertyName},"get")});Object.defineProperty(m,"extractPropertyLabel",{enumerable:!0,get:o(function(){return Ob.extractPropertyLabel},"get")});var rV=i3();Object.defineProperty(m,"CommandResolver",{enumerable:!0,get:o(function(){return rV.CommandResolver},"get")});var nV=a3();Object.defineProperty(m,"PreconditionEvaluator",{enumerable:!0,get:o(function(){return nV.PreconditionEvaluator},"get")});var vC=c3();Object.defineProperty(m,"GroundingExecutor",{enumerable:!0,get:o(function(){return vC.GroundingExecutor},"get")});Object.defineProperty(m,"ServiceRegistry",{enumerable:!0,get:o(function(){return vC.ServiceRegistry},"get")});var iV=cS();Object.defineProperty(m,"TaskStatusService",{enumerable:!0,get:o(function(){return iV.TaskStatusService},"get")});var sV=dS();Object.defineProperty(m,"AreaCreationService",{enumerable:!0,get:o(function(){return sV.AreaCreationService},"get")});var aV=pS();Object.defineProperty(m,"AreaHierarchyBuilder",{enumerable:!0,get:o(function(){return aV.AreaHierarchyBuilder},"get")});var oV=gS();Object.defineProperty(m,"ClassCreationService",{enumerable:!0,get:o(function(){return oV.ClassCreationService},"get")});var cV=_S();Object.defineProperty(m,"ConceptCreationService",{enumerable:!0,get:o(function(){return cV.ConceptCreationService},"get")});var lV=Yp();Object.defineProperty(m,"EffortStatusWorkflow",{enumerable:!0,get:o(function(){return lV.EffortStatusWorkflow},"get")});var uV=ef();Object.defineProperty(m,"WorkflowEngine",{enumerable:!0,get:o(function(){return uV.WorkflowEngine},"get")});var fV=K1();Object.defineProperty(m,"WorkflowResolver",{enumerable:!0,get:o(function(){return fV.WorkflowResolver},"get")});var dV=w3();Object.defineProperty(m,"InstantiationRuleResolver",{enumerable:!0,get:o(function(){return dV.InstantiationRuleResolver},"get")});var hV=E3();Object.defineProperty(m,"VisibilityGenerator",{enumerable:!0,get:o(function(){return hV.VisibilityGenerator},"get")});var pV=T3();Object.defineProperty(m,"WorkflowCommandAdapter",{enumerable:!0,get:o(function(){return pV.WorkflowCommandAdapter},"get")});var mV=AS();Object.defineProperty(m,"EffortVotingService",{enumerable:!0,get:o(function(){return mV.EffortVotingService},"get")});var gV=CS();Object.defineProperty(m,"FolderRepairService",{enumerable:!0,get:o(function(){return gV.FolderRepairService},"get")});var yV=RS();Object.defineProperty(m,"LabelToAliasService",{enumerable:!0,get:o(function(){return yV.LabelToAliasService},"get")});var _V=Fa();Object.defineProperty(m,"LoggingService",{enumerable:!0,get:o(function(){return _V.LoggingService},"get")});var SV=FS();Object.defineProperty(m,"PropertyCleanupService",{enumerable:!0,get:o(function(){return SV.PropertyCleanupService},"get")});var vV=NS();Object.defineProperty(m,"RenameToUidService",{enumerable:!0,get:o(function(){return vV.RenameToUidService},"get")});var bV=Xp();Object.defineProperty(m,"StatusTimestampService",{enumerable:!0,get:o(function(){return bV.StatusTimestampService},"get")});var wV=MS();Object.defineProperty(m,"SupervisionCreationService",{enumerable:!0,get:o(function(){return wV.SupervisionCreationService},"get")});var EV=BS();Object.defineProperty(m,"FleetingNoteCreationService",{enumerable:!0,get:o(function(){return EV.FleetingNoteCreationService},"get")});var TV=US();Object.defineProperty(m,"DynamicFrontmatterGenerator",{enumerable:!0,get:o(function(){return TV.DynamicFrontmatterGenerator},"get")});var AV=WS();Object.defineProperty(m,"AlgorithmExtractor",{enumerable:!0,get:o(function(){return AV.AlgorithmExtractor},"get")});var xV=zS();Object.defineProperty(m,"PlanningService",{enumerable:!0,get:o(function(){return xV.PlanningService},"get")});var CV=M3();Object.defineProperty(m,"PropertySchemaResolver",{enumerable:!0,get:o(function(){return CV.PropertySchemaResolver},"get")});var IV=j3();Object.defineProperty(m,"ClassHierarchyResolver",{enumerable:!0,get:o(function(){return IV.ClassHierarchyResolver},"get")});var RV=$3();Object.defineProperty(m,"EnumValueResolver",{enumerable:!0,get:o(function(){return RV.EnumValueResolver},"get")});var PV=XS();Object.defineProperty(m,"AssetConversionService",{enumerable:!0,get:o(function(){return PV.AssetConversionService},"get")});var OV=ev();Object.defineProperty(m,"SessionEventService",{enumerable:!0,get:o(function(){return OV.SessionEventService},"get")});var FV=nv();Object.defineProperty(m,"URIConstructionService",{enumerable:!0,get:o(function(){return FV.URIConstructionService},"get")});var DV=sv();Object.defineProperty(m,"GenericAssetCreationService",{enumerable:!0,get:o(function(){return DV.GenericAssetCreationService},"get")});var NV=Y3();Object.defineProperty(m,"ArchiveAssetService",{enumerable:!0,get:o(function(){return NV.ArchiveAssetService},"get")});var LV=X3();Object.defineProperty(m,"FixMissingLabelService",{enumerable:!0,get:o(function(){return LV.FixMissingLabelService},"get")});var kV=J3();Object.defineProperty(m,"GraphQueryService",{enumerable:!0,get:o(function(){return kV.GraphQueryService},"get")});var MV=ex();Object.defineProperty(m,"TypeRegistry",{enumerable:!0,get:o(function(){return MV.TypeRegistry},"get")});var bC=tx();Object.defineProperty(m,"NLToSPARQLService",{enumerable:!0,get:o(function(){return bC.NLToSPARQLService},"get")});Object.defineProperty(m,"DEFAULT_NL_TO_SPARQL_CONFIG",{enumerable:!0,get:o(function(){return bC.DEFAULT_NL_TO_SPARQL_CONFIG},"get")});var ei=uv();Object.defineProperty(m,"SPARQL_TEMPLATES",{enumerable:!0,get:o(function(){return ei.SPARQL_TEMPLATES},"get")});Object.defineProperty(m,"SPARQL_PREFIXES",{enumerable:!0,get:o(function(){return ei.SPARQL_PREFIXES},"get")});Object.defineProperty(m,"PREDICATES",{enumerable:!0,get:o(function(){return ei.PREDICATES},"get")});Object.defineProperty(m,"ASSET_CLASSES",{enumerable:!0,get:o(function(){return ei.ASSET_CLASSES},"get")});Object.defineProperty(m,"EFFORT_STATUSES",{enumerable:!0,get:o(function(){return ei.EFFORT_STATUSES},"get")});Object.defineProperty(m,"KNOWN_PROTOTYPES",{enumerable:!0,get:o(function(){return ei.KNOWN_PROTOTYPES},"get")});Object.defineProperty(m,"KNOWN_CLASSES",{enumerable:!0,get:o(function(){return ei.KNOWN_CLASSES},"get")});Object.defineProperty(m,"findClassByTerm",{enumerable:!0,get:o(function(){return ei.findClassByTerm},"get")});Object.defineProperty(m,"findMatchingTemplates",{enumerable:!0,get:o(function(){return ei.findMatchingTemplates},"get")});Object.defineProperty(m,"fillTemplate",{enumerable:!0,get:o(function(){return ei.fillTemplate},"get")});Object.defineProperty(m,"validateParameters",{enumerable:!0,get:o(function(){return ei.validateParameters},"get")});Object.defineProperty(m,"getTemplateByName",{enumerable:!0,get:o(function(){return ei.getTemplateByName},"get")});var jV=nx();Object.defineProperty(m,"AnalyticsService",{enumerable:!0,get:o(function(){return jV.AnalyticsService},"get")});var $V=ix();Object.defineProperty(m,"TrendDetectionService",{enumerable:!0,get:o(function(){return $V.TrendDetectionService},"get")});var wC=ax();Object.defineProperty(m,"AutocompleteService",{enumerable:!0,get:o(function(){return wC.AutocompleteService},"get")});Object.defineProperty(m,"DEFAULT_AUTOCOMPLETE_CONFIG",{enumerable:!0,get:o(function(){return wC.DEFAULT_AUTOCOMPLETE_CONFIG},"get")});var BV=cx();Object.defineProperty(m,"DailyReviewService",{enumerable:!0,get:o(function(){return BV.DailyReviewService},"get")});var EC=yv();Object.defineProperty(m,"CriticalityZoneService",{enumerable:!0,get:o(function(){return EC.CriticalityZoneService},"get")});Object.defineProperty(m,"CriticalityZoneUUIDs",{enumerable:!0,get:o(function(){return EC.CriticalityZoneUUIDs},"get")});var VV=Yn();Object.defineProperty(m,"FrontmatterService",{enumerable:!0,get:o(function(){return VV.FrontmatterService},"get")});var UV=zr();Object.defineProperty(m,"DateFormatter",{enumerable:!0,get:o(function(){return UV.DateFormatter},"get")});var qV=$s();Object.defineProperty(m,"WikiLinkHelpers",{enumerable:!0,get:o(function(){return qV.WikiLinkHelpers},"get")});var WV=fs();Object.defineProperty(m,"MetadataHelpers",{enumerable:!0,get:o(function(){return WV.MetadataHelpers},"get")});var GV=uS();Object.defineProperty(m,"MetadataExtractor",{enumerable:!0,get:o(function(){return GV.MetadataExtractor},"get")});var zV=ux();Object.defineProperty(m,"EffortSortingHelpers",{enumerable:!0,get:o(function(){return zV.EffortSortingHelpers},"get")});var HV=fx();Object.defineProperty(m,"FilenameValidator",{enumerable:!0,get:o(function(){return HV.FilenameValidator},"get")});var QV=_x();Object.defineProperty(m,"RDFSerializer",{enumerable:!0,get:o(function(){return QV.RDFSerializer},"get")});var YV=Ac();Object.defineProperty(m,"NullLogger",{enumerable:!0,get:o(function(){return YV.NullLogger},"get")});var TC=Rv();Object.defineProperty(m,"vaultPathToIRI",{enumerable:!0,get:o(function(){return TC.vaultPathToIRI},"get")});Object.defineProperty(m,"OBSIDIAN_VAULT_SCHEME",{enumerable:!0,get:o(function(){return TC.OBSIDIAN_VAULT_SCHEME},"get")});var KV=iS();Object.defineProperty(m,"InMemoryTripleStore",{enumerable:!0,get:o(function(){return KV.InMemoryTripleStore},"get")});var XV=Ov();Object.defineProperty(m,"RDFVocabularyMapper",{enumerable:!0,get:o(function(){return XV.RDFVocabularyMapper},"get")});var JV=vx();Object.defineProperty(m,"RDFSInferenceEngine",{enumerable:!0,get:o(function(){return JV.RDFSInferenceEngine},"get")});var ZV=Lv();Object.defineProperty(m,"NonInheritablePropertyRegistry",{enumerable:!0,get:o(function(){return ZV.NonInheritablePropertyRegistry},"get")});var eU=jv();Object.defineProperty(m,"PropertyCardinalityRegistry",{enumerable:!0,get:o(function(){return eU.PropertyCardinalityRegistry},"get")});var AC=Vv();Object.defineProperty(m,"PrototypeChainMaterializer",{enumerable:!0,get:o(function(){return AC.PrototypeChainMaterializer},"get")});Object.defineProperty(m,"INFERRED_GRAPH",{enumerable:!0,get:o(function(){return AC.INFERRED_GRAPH},"get")});var xC=qv();Object.defineProperty(m,"SourceAnnotator",{enumerable:!0,get:o(function(){return xC.SourceAnnotator},"get")});Object.defineProperty(m,"SOURCE_VARIABLE",{enumerable:!0,get:o(function(){return xC.SOURCE_VARIABLE},"get")});var tU=Gv();Object.defineProperty(m,"NoteToRDFConverter",{enumerable:!0,get:o(function(){return tU.NoteToRDFConverter},"get")});var Fb=Lc();Object.defineProperty(m,"ExoQLParser",{enumerable:!0,get:o(function(){return Fb.ExoQLParser},"get")});Object.defineProperty(m,"SPARQLParser",{enumerable:!0,get:o(function(){return Fb.SPARQLParser},"get")});Object.defineProperty(m,"SPARQLParseError",{enumerable:!0,get:o(function(){return Fb.SPARQLParseError},"get")});var CC=j_();Object.defineProperty(m,"DescribeOptionsTransformer",{enumerable:!0,get:o(function(){return CC.DescribeOptionsTransformer},"get")});Object.defineProperty(m,"DescribeOptionsTransformerError",{enumerable:!0,get:o(function(){return CC.DescribeOptionsTransformerError},"get")});var IC=Mc();Object.defineProperty(m,"ExoQLAlgebraTranslator",{enumerable:!0,get:o(function(){return IC.ExoQLAlgebraTranslator},"get")});Object.defineProperty(m,"AlgebraTranslator",{enumerable:!0,get:o(function(){return IC.AlgebraTranslator},"get")});var rU=Px();Object.defineProperty(m,"AlgebraOptimizer",{enumerable:!0,get:o(function(){return rU.AlgebraOptimizer},"get")});var nU=Ox();Object.defineProperty(m,"AlgebraSerializer",{enumerable:!0,get:o(function(){return nU.AlgebraSerializer},"get")});var iU=r1();Object.defineProperty(m,"BGPExecutor",{enumerable:!0,get:o(function(){return iU.BGPExecutor},"get")});var sU=Ap();Object.defineProperty(m,"FilterExecutor",{enumerable:!0,get:o(function(){return sU.FilterExecutor},"get")});var aU=v1();Object.defineProperty(m,"OptionalExecutor",{enumerable:!0,get:o(function(){return aU.OptionalExecutor},"get")});var oU=w1();Object.defineProperty(m,"UnionExecutor",{enumerable:!0,get:o(function(){return oU.UnionExecutor},"get")});var cU=F1();Object.defineProperty(m,"ConstructExecutor",{enumerable:!0,get:o(function(){return cU.ConstructExecutor},"get")});var lU=Dx();Object.defineProperty(m,"DescribeExecutor",{enumerable:!0,get:o(function(){return lU.DescribeExecutor},"get")});var RC=nl();Object.defineProperty(m,"ExoQLQueryExecutor",{enumerable:!0,get:o(function(){return RC.ExoQLQueryExecutor},"get")});Object.defineProperty(m,"QueryExecutor",{enumerable:!0,get:o(function(){return RC.QueryExecutor},"get")});var PC=Lx();Object.defineProperty(m,"UpdateExecutor",{enumerable:!0,get:o(function(){return PC.UpdateExecutor},"get")});Object.defineProperty(m,"UpdateExecutorError",{enumerable:!0,get:o(function(){return PC.UpdateExecutorError},"get")});var uU=os();Object.defineProperty(m,"SolutionMapping",{enumerable:!0,get:o(function(){return uU.SolutionMapping},"get")});var fU=Tp();Object.defineProperty(m,"BuiltInFunctions",{enumerable:!0,get:o(function(){return fU.BuiltInFunctions},"get")});var dU=Mx();Object.defineProperty(m,"AggregateFunctions",{enumerable:!0,get:o(function(){return dU.AggregateFunctions},"get")});var OC=A1();Object.defineProperty(m,"CustomAggregateRegistry",{enumerable:!0,get:o(function(){return OC.CustomAggregateRegistry},"get")});Object.defineProperty(m,"CustomAggregateError",{enumerable:!0,get:o(function(){return OC.CustomAggregateError},"get")});var _s=x1();Object.defineProperty(m,"BUILT_IN_AGGREGATES",{enumerable:!0,get:o(function(){return _s.BUILT_IN_AGGREGATES},"get")});Object.defineProperty(m,"EXO_AGGREGATE_NS",{enumerable:!0,get:o(function(){return _s.EXO_AGGREGATE_NS},"get")});Object.defineProperty(m,"medianAggregate",{enumerable:!0,get:o(function(){return _s.medianAggregate},"get")});Object.defineProperty(m,"varianceAggregate",{enumerable:!0,get:o(function(){return _s.varianceAggregate},"get")});Object.defineProperty(m,"stddevAggregate",{enumerable:!0,get:o(function(){return _s.stddevAggregate},"get")});Object.defineProperty(m,"modeAggregate",{enumerable:!0,get:o(function(){return _s.modeAggregate},"get")});Object.defineProperty(m,"createPercentileAggregate",{enumerable:!0,get:o(function(){return _s.createPercentileAggregate},"get")});Object.defineProperty(m,"getNumericValue",{enumerable:!0,get:o(function(){return _s.getNumericValue},"get")});Object.defineProperty(m,"createDecimalLiteral",{enumerable:!0,get:o(function(){return _s.createDecimalLiteral},"get")});Object.defineProperty(m,"createDoubleLiteral",{enumerable:!0,get:o(function(){return _s.createDoubleLiteral},"get")});var hU=jx();Object.defineProperty(m,"QueryPlanCache",{enumerable:!0,get:o(function(){return hU.QueryPlanCache},"get")});var FC=$x();Object.defineProperty(m,"SPARQLResultCache",{enumerable:!0,get:o(function(){return FC.SPARQLResultCache},"get")});Object.defineProperty(m,"createSPARQLResultCache",{enumerable:!0,get:o(function(){return FC.createSPARQLResultCache},"get")});var DC=Bx();Object.defineProperty(m,"IncrementalIndexer",{enumerable:!0,get:o(function(){return DC.IncrementalIndexer},"get")});Object.defineProperty(m,"createIncrementalIndexer",{enumerable:!0,get:o(function(){return DC.createIncrementalIndexer},"get")});var pU=Vx();Object.defineProperty(m,"ResultSerializer",{enumerable:!0,get:o(function(){return pU.ResultSerializer},"get")});var NC=L_();Object.defineProperty(m,"CaseWhenTransformer",{enumerable:!0,get:o(function(){return NC.CaseWhenTransformer},"get")});Object.defineProperty(m,"CaseWhenTransformerError",{enumerable:!0,get:o(function(){return NC.CaseWhenTransformerError},"get")});var mU=U_();Object.defineProperty(m,"VaultPrefixTransformer",{enumerable:!0,get:o(function(){return mU.VaultPrefixTransformer},"get")});var gU=Hv();Object.defineProperty(m,"FilterContainsOptimizer",{enumerable:!0,get:o(function(){return gU.FilterContainsOptimizer},"get")});var LC=Ux();Object.defineProperty(m,"FileNotFoundError",{enumerable:!0,get:o(function(){return LC.FileNotFoundError},"get")});Object.defineProperty(m,"FileAlreadyExistsError",{enumerable:!0,get:o(function(){return LC.FileAlreadyExistsError},"get")});var Db=eS();Object.defineProperty(m,"TripleAlreadyExistsError",{enumerable:!0,get:o(function(){return Db.TripleAlreadyExistsError},"get")});Object.defineProperty(m,"TripleNotFoundError",{enumerable:!0,get:o(function(){return Db.TripleNotFoundError},"get")});Object.defineProperty(m,"TransactionError",{enumerable:!0,get:o(function(){return Db.TransactionError},"get")});var Hm=ab();Object.defineProperty(m,"VaultSettings",{enumerable:!0,get:o(function(){return Hm.VaultSettings},"get")});Object.defineProperty(m,"DEFAULT_OWNER_IDENTITY",{enumerable:!0,get:o(function(){return Hm.DEFAULT_OWNER_IDENTITY},"get")});Object.defineProperty(m,"DEFAULT_INBOX_FOLDER",{enumerable:!0,get:o(function(){return Hm.DEFAULT_INBOX_FOLDER},"get")});Object.defineProperty(m,"DEFAULT_FLEETING_NOTE_CLASS_UID",{enumerable:!0,get:o(function(){return Hm.DEFAULT_FLEETING_NOTE_CLASS_UID},"get")});var yU=wt();Object.defineProperty(m,"DI_TOKENS",{enumerable:!0,get:o(function(){return yU.DI_TOKENS},"get")});var yf=qx();Object.defineProperty(m,"registerCoreServices",{enumerable:!0,get:o(function(){return yf.registerCoreServices},"get")});Object.defineProperty(m,"createChildContainer",{enumerable:!0,get:o(function(){return yf.createChildContainer},"get")});Object.defineProperty(m,"getContainer",{enumerable:!0,get:o(function(){return yf.getContainer},"get")});Object.defineProperty(m,"resetContainer",{enumerable:!0,get:o(function(){return yf.resetContainer},"get")});Object.defineProperty(m,"container",{enumerable:!0,get:o(function(){return yf.container},"get")});var sa=Yx();Object.defineProperty(m,"NODE_FLAGS",{enumerable:!0,get:o(function(){return sa.NODE_FLAGS},"get")});Object.defineProperty(m,"DEFAULT_COLORS",{enumerable:!0,get:o(function(){return sa.DEFAULT_COLORS},"get")});Object.defineProperty(m,"StringTable",{enumerable:!0,get:o(function(){return sa.StringTable},"get")});Object.defineProperty(m,"CompactGraphStore",{enumerable:!0,get:o(function(){return sa.CompactGraphStore},"get")});Object.defineProperty(m,"MemoryPool",{enumerable:!0,get:o(function(){return sa.MemoryPool},"get")});Object.defineProperty(m,"getGlobalPool",{enumerable:!0,get:o(function(){return sa.getGlobalPool},"get")});Object.defineProperty(m,"resetGlobalPool",{enumerable:!0,get:o(function(){return sa.resetGlobalPool},"get")});Object.defineProperty(m,"StreamingLoader",{enumerable:!0,get:o(function(){return sa.StreamingLoader},"get")});Object.defineProperty(m,"createStreamingSource",{enumerable:!0,get:o(function(){return sa.createStreamingSource},"get")});var kC=Kx();Object.defineProperty(m,"ExoQL",{enumerable:!0,get:o(function(){return kC.ExoQL},"get")});Object.defineProperty(m,"ExoQLError",{enumerable:!0,get:o(function(){return kC.ExoQLError},"get")});var Al=Fm();Object.defineProperty(m,"RELATION_COLUMN_SET_CLASS_IRI",{enumerable:!0,get:o(function(){return Al.RELATION_COLUMN_SET_CLASS_IRI},"get")});Object.defineProperty(m,"RELATION_COLUMN_SET_CLASS_UID",{enumerable:!0,get:o(function(){return Al.RELATION_COLUMN_SET_CLASS_UID},"get")});Object.defineProperty(m,"createRelationColumnSetFromFrontmatter",{enumerable:!0,get:o(function(){return Al.createRelationColumnSetFromFrontmatter},"get")});Object.defineProperty(m,"isRelationColumnSet",{enumerable:!0,get:o(function(){return Al.isRelationColumnSet},"get")});Object.defineProperty(m,"isRelationColumnSetFrontmatter",{enumerable:!0,get:o(function(){return Al.isRelationColumnSetFrontmatter},"get")});Object.defineProperty(m,"normalizeRelationColumnSetRef",{enumerable:!0,get:o(function(){return Al.normalizeRef},"get")});var _U=sC();Object.defineProperty(m,"RelationColumnSetResolver",{enumerable:!0,get:o(function(){return _U.RelationColumnSetResolver},"get")});var _f=Fm();Object.defineProperty(m,"LAYOUT_CLASS_IRI",{enumerable:!0,get:o(function(){return _f.LAYOUT_CLASS_IRI},"get")});Object.defineProperty(m,"LAYOUT_CLASS_UID",{enumerable:!0,get:o(function(){return _f.LAYOUT_CLASS_UID},"get")});Object.defineProperty(m,"createLayoutFromFrontmatter",{enumerable:!0,get:o(function(){return _f.createLayoutFromFrontmatter},"get")});Object.defineProperty(m,"isLayout",{enumerable:!0,get:o(function(){return _f.isLayout},"get")});Object.defineProperty(m,"isLayoutFrontmatter",{enumerable:!0,get:o(function(){return _f.isLayoutFrontmatter},"get")});var Ba=Fm();Object.defineProperty(m,"BACKLINKS_TABLE_BLOCK_CLASS_IRI",{enumerable:!0,get:o(function(){return Ba.BACKLINKS_TABLE_BLOCK_CLASS_IRI},"get")});Object.defineProperty(m,"BACKLINKS_TABLE_BLOCK_CLASS_UID",{enumerable:!0,get:o(function(){return Ba.BACKLINKS_TABLE_BLOCK_CLASS_UID},"get")});Object.defineProperty(m,"PROPERTIES_BLOCK_CLASS_IRI",{enumerable:!0,get:o(function(){return Ba.PROPERTIES_BLOCK_CLASS_IRI},"get")});Object.defineProperty(m,"PROPERTIES_BLOCK_CLASS_UID",{enumerable:!0,get:o(function(){return Ba.PROPERTIES_BLOCK_CLASS_UID},"get")});Object.defineProperty(m,"createLayoutBlockFromFrontmatter",{enumerable:!0,get:o(function(){return Ba.createLayoutBlockFromFrontmatter},"get")});Object.defineProperty(m,"isBacklinksTableBlock",{enumerable:!0,get:o(function(){return Ba.isBacklinksTableBlock},"get")});Object.defineProperty(m,"isLayoutBlockFrontmatter",{enumerable:!0,get:o(function(){return Ba.isLayoutBlockFrontmatter},"get")});Object.defineProperty(m,"isPropertiesBlock",{enumerable:!0,get:o(function(){return Ba.isPropertiesBlock},"get")});var MC=oC();Object.defineProperty(m,"LayoutSelector",{enumerable:!0,get:o(function(){return MC.LayoutSelector},"get")});Object.defineProperty(m,"selectByPriority",{enumerable:!0,get:o(function(){return MC.selectByPriority},"get")});Zn(gC(),m);Zn(_C(),m)});var Sr=S(Nb=>{"use strict";Nb.fromCallback=function(n){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")n.apply(this,e);else return new Promise((t,r)=>{e.push((i,s)=>i!=null?r(i):t(s)),n.apply(this,e)})},"name",{value:n.name})};Nb.fromPromise=function(n){return Object.defineProperty(function(...e){let t=e[e.length-1];if(typeof t!="function")return n.apply(this,e);e.pop(),n.apply(this,e).then(r=>t(null,r),t)},"name",{value:n.name})}});var $C=S((voe,jC)=>{var Va=require("constants"),SU=process.cwd,Qm=null,vU=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Qm||(Qm=SU.call(process)),Qm};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Lb=process.chdir,process.chdir=function(n){Qm=null,Lb.call(process,n)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Lb));var Lb;jC.exports=bU;function bU(n){Va.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(n),n.lutimes||t(n),n.chown=s(n.chown),n.fchown=s(n.fchown),n.lchown=s(n.lchown),n.chmod=r(n.chmod),n.fchmod=r(n.fchmod),n.lchmod=r(n.lchmod),n.chownSync=a(n.chownSync),n.fchownSync=a(n.fchownSync),n.lchownSync=a(n.lchownSync),n.chmodSync=i(n.chmodSync),n.fchmodSync=i(n.fchmodSync),n.lchmodSync=i(n.lchmodSync),n.stat=c(n.stat),n.fstat=c(n.fstat),n.lstat=c(n.lstat),n.statSync=l(n.statSync),n.fstatSync=l(n.fstatSync),n.lstatSync=l(n.lstatSync),n.chmod&&!n.lchmod&&(n.lchmod=function(f,d,h){h&&process.nextTick(h)},n.lchmodSync=function(){}),n.chown&&!n.lchown&&(n.lchown=function(f,d,h,p){p&&process.nextTick(p)},n.lchownSync=function(){}),vU==="win32"&&(n.rename=typeof n.rename!="function"?n.rename:(function(f){function d(h,p,_){var v=Date.now(),E=0;f(h,p,o(function b(A){if(A&&(A.code==="EACCES"||A.code==="EPERM"||A.code==="EBUSY")&&Date.now()-v<6e4){setTimeout(function(){n.stat(p,function(R,B){R&&R.code==="ENOENT"?f(h,p,b):_(A)})},E),E<100&&(E+=10);return}_&&_(A)},"CB"))}return o(d,"rename"),Object.setPrototypeOf&&Object.setPrototypeOf(d,f),d})(n.rename)),n.read=typeof n.read!="function"?n.read:(function(f){function d(h,p,_,v,E,b){var A;if(b&&typeof b=="function"){var R=0;A=o(function(B,W,we){if(B&&B.code==="EAGAIN"&&R<10)return R++,f.call(n,h,p,_,v,E,A);b.apply(this,arguments)},"callback")}return f.call(n,h,p,_,v,E,A)}return o(d,"read"),Object.setPrototypeOf&&Object.setPrototypeOf(d,f),d})(n.read),n.readSync=typeof n.readSync!="function"?n.readSync:(function(f){return function(d,h,p,_,v){for(var E=0;;)try{return f.call(n,d,h,p,_,v)}catch(b){if(b.code==="EAGAIN"&&E<10){E++;continue}throw b}}})(n.readSync);function e(f){f.lchmod=function(d,h,p){f.open(d,Va.O_WRONLY|Va.O_SYMLINK,h,function(_,v){if(_){p&&p(_);return}f.fchmod(v,h,function(E){f.close(v,function(b){p&&p(E||b)})})})},f.lchmodSync=function(d,h){var p=f.openSync(d,Va.O_WRONLY|Va.O_SYMLINK,h),_=!0,v;try{v=f.fchmodSync(p,h),_=!1}finally{if(_)try{f.closeSync(p)}catch{}else f.closeSync(p)}return v}}o(e,"patchLchmod");function t(f){Va.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(d,h,p,_){f.open(d,Va.O_SYMLINK,function(v,E){if(v){_&&_(v);return}f.futimes(E,h,p,function(b){f.close(E,function(A){_&&_(b||A)})})})},f.lutimesSync=function(d,h,p){var _=f.openSync(d,Va.O_SYMLINK),v,E=!0;try{v=f.futimesSync(_,h,p),E=!1}finally{if(E)try{f.closeSync(_)}catch{}else f.closeSync(_)}return v}):f.futimes&&(f.lutimes=function(d,h,p,_){_&&process.nextTick(_)},f.lutimesSync=function(){})}o(t,"patchLutimes");function r(f){return f&&function(d,h,p){return f.call(n,d,h,function(_){u(_)&&(_=null),p&&p.apply(this,arguments)})}}o(r,"chmodFix");function i(f){return f&&function(d,h){try{return f.call(n,d,h)}catch(p){if(!u(p))throw p}}}o(i,"chmodFixSync");function s(f){return f&&function(d,h,p,_){return f.call(n,d,h,p,function(v){u(v)&&(v=null),_&&_.apply(this,arguments)})}}o(s,"chownFix");function a(f){return f&&function(d,h,p){try{return f.call(n,d,h,p)}catch(_){if(!u(_))throw _}}}o(a,"chownFixSync");function c(f){return f&&function(d,h,p){typeof h=="function"&&(p=h,h=null);function _(v,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),p&&p.apply(this,arguments)}return o(_,"callback"),h?f.call(n,d,h,_):f.call(n,d,_)}}o(c,"statFix");function l(f){return f&&function(d,h){var p=h?f.call(n,d,h):f.call(n,d);return p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),p}}o(l,"statFixSync");function u(f){if(!f||f.code==="ENOSYS")return!0;var d=!process.getuid||process.getuid()!==0;return!!(d&&(f.code==="EINVAL"||f.code==="EPERM"))}o(u,"chownErOk")}o(bU,"patch")});var UC=S((woe,VC)=>{var BC=require("stream").Stream;VC.exports=wU;function wU(n){return{ReadStream:e,WriteStream:t};function e(r,i){if(!(this instanceof e))return new e(r,i);BC.call(this);var s=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),c=0,l=a.length;c<l;c++){var u=a[c];this[u]=i[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}n.open(this.path,this.flags,this.mode,function(f,d){if(f){s.emit("error",f),s.readable=!1;return}s.fd=d,s.emit("open",d),s._read()})}function t(r,i){if(!(this instanceof t))return new t(r,i);BC.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),a=0,c=s.length;a<c;a++){var l=s[a];this[l]=i[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=n.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}o(wU,"legacy")});var WC=S((Toe,qC)=>{"use strict";qC.exports=TU;var EU=Object.getPrototypeOf||function(n){return n.__proto__};function TU(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var e={__proto__:EU(n)};else var e=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}o(TU,"clone")});var Cl=S((xoe,jb)=>{var jt=require("fs"),AU=$C(),xU=UC(),CU=WC(),Ym=require("util"),kr,Xm;typeof Symbol=="function"&&typeof Symbol.for=="function"?(kr=Symbol.for("graceful-fs.queue"),Xm=Symbol.for("graceful-fs.previous")):(kr="___graceful-fs.queue",Xm="___graceful-fs.previous");function IU(){}o(IU,"noop");function HC(n,e){Object.defineProperty(n,kr,{get:o(function(){return e},"get")})}o(HC,"publishQueue");var Go=IU;Ym.debuglog?Go=Ym.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Go=o(function(){var n=Ym.format.apply(Ym,arguments);n="GFS4: "+n.split(/\n/).join(`
|
|
456
|
-
GFS4: `),console.error(n)},"debug"));jt[kr]||(GC=global[kr]||[],HC(jt,GC),jt.close=(function(n){function e(t,r){return n.call(jt,t,function(i){i||zC(),typeof r=="function"&&r.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,Xm,{value:n}),e})(jt.close),jt.closeSync=(function(n){function e(t){n.apply(jt,arguments),zC()}return o(e,"closeSync"),Object.defineProperty(e,Xm,{value:n}),e})(jt.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Go(jt[kr]),require("assert").equal(jt[kr].length,0)}));var GC;global[kr]||HC(global,jt[kr]);jb.exports=kb(CU(jt));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!jt.__patched&&(jb.exports=kb(jt),jt.__patched=!0);function kb(n){AU(n),n.gracefulify=kb,n.createReadStream=W,n.createWriteStream=we;var e=n.readFile;n.readFile=t;function t(F,j,te){return typeof j=="function"&&(te=j,j=null),Ye(F,j,te);function Ye(st,Pt,at,ct){return e(st,Pt,function(Ke){Ke&&(Ke.code==="EMFILE"||Ke.code==="ENFILE")?xl([Ye,[st,Pt,at],Ke,ct||Date.now(),Date.now()]):typeof at=="function"&&at.apply(this,arguments)})}o(Ye,"go$readFile")}o(t,"readFile");var r=n.writeFile;n.writeFile=i;function i(F,j,te,Ye){return typeof te=="function"&&(Ye=te,te=null),st(F,j,te,Ye);function st(Pt,at,ct,Ke,ie){return r(Pt,at,ct,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xl([st,[Pt,at,ct,Ke],V,ie||Date.now(),Date.now()]):typeof Ke=="function"&&Ke.apply(this,arguments)})}o(st,"go$writeFile")}o(i,"writeFile");var s=n.appendFile;s&&(n.appendFile=a);function a(F,j,te,Ye){return typeof te=="function"&&(Ye=te,te=null),st(F,j,te,Ye);function st(Pt,at,ct,Ke,ie){return s(Pt,at,ct,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xl([st,[Pt,at,ct,Ke],V,ie||Date.now(),Date.now()]):typeof Ke=="function"&&Ke.apply(this,arguments)})}o(st,"go$appendFile")}o(a,"appendFile");var c=n.copyFile;c&&(n.copyFile=l);function l(F,j,te,Ye){return typeof te=="function"&&(Ye=te,te=0),st(F,j,te,Ye);function st(Pt,at,ct,Ke,ie){return c(Pt,at,ct,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xl([st,[Pt,at,ct,Ke],V,ie||Date.now(),Date.now()]):typeof Ke=="function"&&Ke.apply(this,arguments)})}o(st,"go$copyFile")}o(l,"copyFile");var u=n.readdir;n.readdir=d;var f=/^v[0-5]\./;function d(F,j,te){typeof j=="function"&&(te=j,j=null);var Ye=f.test(process.version)?o(function(at,ct,Ke,ie){return u(at,st(at,ct,Ke,ie))},"go$readdir"):o(function(at,ct,Ke,ie){return u(at,ct,st(at,ct,Ke,ie))},"go$readdir");return Ye(F,j,te);function st(Pt,at,ct,Ke){return function(ie,V){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?xl([Ye,[Pt,at,ct],ie,Ke||Date.now(),Date.now()]):(V&&V.sort&&V.sort(),typeof ct=="function"&&ct.call(this,ie,V))}}}if(o(d,"readdir"),process.version.substr(0,4)==="v0.8"){var h=xU(n);b=h.ReadStream,R=h.WriteStream}var p=n.ReadStream;p&&(b.prototype=Object.create(p.prototype),b.prototype.open=A);var _=n.WriteStream;_&&(R.prototype=Object.create(_.prototype),R.prototype.open=B),Object.defineProperty(n,"ReadStream",{get:o(function(){return b},"get"),set:o(function(F){b=F},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(n,"WriteStream",{get:o(function(){return R},"get"),set:o(function(F){R=F},"set"),enumerable:!0,configurable:!0});var v=b;Object.defineProperty(n,"FileReadStream",{get:o(function(){return v},"get"),set:o(function(F){v=F},"set"),enumerable:!0,configurable:!0});var E=R;Object.defineProperty(n,"FileWriteStream",{get:o(function(){return E},"get"),set:o(function(F){E=F},"set"),enumerable:!0,configurable:!0});function b(F,j){return this instanceof b?(p.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}o(b,"ReadStream");function A(){var F=this;G(F.path,F.flags,F.mode,function(j,te){j?(F.autoClose&&F.destroy(),F.emit("error",j)):(F.fd=te,F.emit("open",te),F.read())})}o(A,"ReadStream$open");function R(F,j){return this instanceof R?(_.apply(this,arguments),this):R.apply(Object.create(R.prototype),arguments)}o(R,"WriteStream");function B(){var F=this;G(F.path,F.flags,F.mode,function(j,te){j?(F.destroy(),F.emit("error",j)):(F.fd=te,F.emit("open",te))})}o(B,"WriteStream$open");function W(F,j){return new n.ReadStream(F,j)}o(W,"createReadStream");function we(F,j){return new n.WriteStream(F,j)}o(we,"createWriteStream");var z=n.open;n.open=G;function G(F,j,te,Ye){return typeof te=="function"&&(Ye=te,te=null),st(F,j,te,Ye);function st(Pt,at,ct,Ke,ie){return z(Pt,at,ct,function(V,lt){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xl([st,[Pt,at,ct,Ke],V,ie||Date.now(),Date.now()]):typeof Ke=="function"&&Ke.apply(this,arguments)})}o(st,"go$open")}return o(G,"open"),n}o(kb,"patch");function xl(n){Go("ENQUEUE",n[0].name,n[1]),jt[kr].push(n),Mb()}o(xl,"enqueue");var Km;function zC(){for(var n=Date.now(),e=0;e<jt[kr].length;++e)jt[kr][e].length>2&&(jt[kr][e][3]=n,jt[kr][e][4]=n);Mb()}o(zC,"resetQueue");function Mb(){if(clearTimeout(Km),Km=void 0,jt[kr].length!==0){var n=jt[kr].shift(),e=n[0],t=n[1],r=n[2],i=n[3],s=n[4];if(i===void 0)Go("RETRY",e.name,t),e.apply(null,t);else if(Date.now()-i>=6e4){Go("TIMEOUT",e.name,t);var a=t.pop();typeof a=="function"&&a.call(null,r)}else{var c=Date.now()-s,l=Math.max(s-i,1),u=Math.min(l*1.2,100);c>=u?(Go("RETRY",e.name,t),e.apply(null,t.concat([i]))):jt[kr].push(n)}Km===void 0&&(Km=setTimeout(Mb,0))}}o(Mb,"retry")});var pn=S(aa=>{"use strict";var QC=Sr().fromCallback,hn=Cl(),RU=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof hn[n]=="function");Object.assign(aa,hn);RU.forEach(n=>{aa[n]=QC(hn[n])});aa.exists=function(n,e){return typeof e=="function"?hn.exists(n,e):new Promise(t=>hn.exists(n,t))};aa.read=function(n,e,t,r,i,s){return typeof s=="function"?hn.read(n,e,t,r,i,s):new Promise((a,c)=>{hn.read(n,e,t,r,i,(l,u,f)=>{if(l)return c(l);a({bytesRead:u,buffer:f})})})};aa.write=function(n,e,...t){return typeof t[t.length-1]=="function"?hn.write(n,e,...t):new Promise((r,i)=>{hn.write(n,e,...t,(s,a,c)=>{if(s)return i(s);r({bytesWritten:a,buffer:c})})})};aa.readv=function(n,e,...t){return typeof t[t.length-1]=="function"?hn.readv(n,e,...t):new Promise((r,i)=>{hn.readv(n,e,...t,(s,a,c)=>{if(s)return i(s);r({bytesRead:a,buffers:c})})})};aa.writev=function(n,e,...t){return typeof t[t.length-1]=="function"?hn.writev(n,e,...t):new Promise((r,i)=>{hn.writev(n,e,...t,(s,a,c)=>{if(s)return i(s);r({bytesWritten:a,buffers:c})})})};typeof hn.realpath.native=="function"?aa.realpath.native=QC(hn.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var KC=S((Roe,YC)=>{"use strict";var PU=require("path");YC.exports.checkPath=o(function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(PU.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},"checkPath")});var eI=S((Ooe,$b)=>{"use strict";var XC=pn(),{checkPath:JC}=KC(),ZC=o(n=>{let e={mode:511};return typeof n=="number"?n:{...e,...n}.mode},"getMode");$b.exports.makeDir=async(n,e)=>(JC(n),XC.mkdir(n,{mode:ZC(e),recursive:!0}));$b.exports.makeDirSync=(n,e)=>(JC(n),XC.mkdirSync(n,{mode:ZC(e),recursive:!0}))});var Bi=S((Doe,tI)=>{"use strict";var OU=Sr().fromPromise,{makeDir:FU,makeDirSync:Bb}=eI(),Vb=OU(FU);tI.exports={mkdirs:Vb,mkdirsSync:Bb,mkdirp:Vb,mkdirpSync:Bb,ensureDir:Vb,ensureDirSync:Bb}});var Ua=S((Noe,nI)=>{"use strict";var DU=Sr().fromPromise,rI=pn();function NU(n){return rI.access(n).then(()=>!0).catch(()=>!1)}o(NU,"pathExists");nI.exports={pathExists:DU(NU),pathExistsSync:rI.existsSync}});var Ub=S((koe,iI)=>{"use strict";var Il=pn(),LU=Sr().fromPromise;async function kU(n,e,t){let r=await Il.open(n,"r+"),i=null;try{await Il.futimes(r,e,t)}finally{try{await Il.close(r)}catch(s){i=s}}if(i)throw i}o(kU,"utimesMillis");function MU(n,e,t){let r=Il.openSync(n,"r+");return Il.futimesSync(r,e,t),Il.closeSync(r)}o(MU,"utimesMillisSync");iI.exports={utimesMillis:LU(kU),utimesMillisSync:MU}});var zo=S((joe,cI)=>{"use strict";var Rl=pn(),vr=require("path"),sI=Sr().fromPromise;function jU(n,e,t){let r=t.dereference?i=>Rl.stat(i,{bigint:!0}):i=>Rl.lstat(i,{bigint:!0});return Promise.all([r(n),r(e).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,s])=>({srcStat:i,destStat:s}))}o(jU,"getStats");function $U(n,e,t){let r,i=t.dereference?a=>Rl.statSync(a,{bigint:!0}):a=>Rl.lstatSync(a,{bigint:!0}),s=i(n);try{r=i(e)}catch(a){if(a.code==="ENOENT")return{srcStat:s,destStat:null};throw a}return{srcStat:s,destStat:r}}o($U,"getStatsSync");async function BU(n,e,t,r){let{srcStat:i,destStat:s}=await jU(n,e,r);if(s){if(Sf(i,s)){let a=vr.basename(n),c=vr.basename(e);if(t==="move"&&a!==c&&a.toLowerCase()===c.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${n}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${n}'.`)}if(i.isDirectory()&&qb(n,e))throw new Error(Jm(n,e,t));return{srcStat:i,destStat:s}}o(BU,"checkPaths");function VU(n,e,t,r){let{srcStat:i,destStat:s}=$U(n,e,r);if(s){if(Sf(i,s)){let a=vr.basename(n),c=vr.basename(e);if(t==="move"&&a!==c&&a.toLowerCase()===c.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${n}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${n}'.`)}if(i.isDirectory()&&qb(n,e))throw new Error(Jm(n,e,t));return{srcStat:i,destStat:s}}o(VU,"checkPathsSync");async function aI(n,e,t,r){let i=vr.resolve(vr.dirname(n)),s=vr.resolve(vr.dirname(t));if(s===i||s===vr.parse(s).root)return;let a;try{a=await Rl.stat(s,{bigint:!0})}catch(c){if(c.code==="ENOENT")return;throw c}if(Sf(e,a))throw new Error(Jm(n,t,r));return aI(n,e,s,r)}o(aI,"checkParentPaths");function oI(n,e,t,r){let i=vr.resolve(vr.dirname(n)),s=vr.resolve(vr.dirname(t));if(s===i||s===vr.parse(s).root)return;let a;try{a=Rl.statSync(s,{bigint:!0})}catch(c){if(c.code==="ENOENT")return;throw c}if(Sf(e,a))throw new Error(Jm(n,t,r));return oI(n,e,s,r)}o(oI,"checkParentPathsSync");function Sf(n,e){return e.ino!==void 0&&e.dev!==void 0&&e.ino===n.ino&&e.dev===n.dev}o(Sf,"areIdentical");function qb(n,e){let t=vr.resolve(n).split(vr.sep).filter(i=>i),r=vr.resolve(e).split(vr.sep).filter(i=>i);return t.every((i,s)=>r[s]===i)}o(qb,"isSrcSubdir");function Jm(n,e,t){return`Cannot ${t} '${n}' to a subdirectory of itself, '${e}'.`}o(Jm,"errMsg");cI.exports={checkPaths:sI(BU),checkPathsSync:VU,checkParentPaths:sI(aI),checkParentPathsSync:oI,isSrcSubdir:qb,areIdentical:Sf}});var uI=S((Boe,lI)=>{"use strict";async function UU(n,e){let t=[];for await(let r of n)t.push(e(r).then(()=>null,i=>i??new Error("unknown error")));await Promise.all(t.map(r=>r.then(i=>{if(i!==null)throw i})))}o(UU,"asyncIteratorConcurrentProcess");lI.exports={asyncIteratorConcurrentProcess:UU}});var mI=S((Uoe,pI)=>{"use strict";var Kr=pn(),vf=require("path"),{mkdirs:qU}=Bi(),{pathExists:WU}=Ua(),{utimesMillis:GU}=Ub(),bf=zo(),{asyncIteratorConcurrentProcess:zU}=uI();async function HU(n,e,t={}){typeof t=="function"&&(t={filter:t}),t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
455
|
+
`)}calculateDelay(e){let t=this.retryConfig.initialDelayMs*Math.pow(this.retryConfig.backoffMultiplier,e);return Math.min(t,this.retryConfig.maxDelayMs)}sleep(e){return new Promise(t=>setTimeout(t,e))}callTelemetryHooks(e,...t){for(let r of this.telemetryHooks)try{let i=r[e];i&&i.apply(r,t)}catch(i){JB.LoggingService.error("Error in telemetry hook",i instanceof Error?i:new Error(String(i)))}}};Wm.ApplicationErrorHandler=Pb});var _C=S(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.ApplicationErrorHandler=void 0;var ZB=yC();Object.defineProperty(Gm,"ApplicationErrorHandler",{enumerable:!0,get:o(function(){return ZB.ApplicationErrorHandler},"get")})});var Mt=S(m=>{"use strict";var eV=m&&m.__createBinding||(Object.create?(function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[t]},"get")}),Object.defineProperty(n,r,i)}):(function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]})),Zn=m&&m.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&eV(e,n,t)};Object.defineProperty(m,"__esModule",{value:!0});m.RenameToUidService=m.PropertyCleanupService=m.LoggingService=m.LabelToAliasService=m.FolderRepairService=m.EffortVotingService=m.WorkflowCommandAdapter=m.VisibilityGenerator=m.InstantiationRuleResolver=m.WorkflowResolver=m.WorkflowEngine=m.EffortStatusWorkflow=m.ConceptCreationService=m.ClassCreationService=m.AreaHierarchyBuilder=m.AreaCreationService=m.TaskStatusService=m.ServiceRegistry=m.GroundingExecutor=m.PreconditionEvaluator=m.CommandResolver=m.extractPropertyLabel=m.uriToPropertyName=m.propertyNameToUri=m.rangeToFieldType=m.PropertyFieldType=m.isCommandBindingFrontmatter=m.isGroundingFrontmatter=m.isPreconditionFrontmatter=m.isCommandFrontmatter=m.isStyleSource=m.isLabelClass=m.isCommandVariant=m.STYLE_SOURCE_VALUES=m.LABEL_CLASS_VALUES=m.COMMAND_VARIANT_VALUES=m.CommandBindingStyleProperty=m.CommandBindingProperty=m.GroundingProperty=m.PreconditionProperty=m.CommandProperty=m.GroundingType=m.getEffortStatusLabel=m.isTrashedStatus=m.isDoneStatus=m.normalizeEffortStatus=m.EFFORT_STATUS_OPTIONS=m.STATUS_NAME_TO_WIKILINK=m.STATUS_NAME_TO_ENUM=m.EFFORT_STATUS_CONFIG=void 0;m.InMemoryTripleStore=m.OBSIDIAN_VAULT_SCHEME=m.vaultPathToIRI=m.NullLogger=m.RDFSerializer=m.FilenameValidator=m.EffortSortingHelpers=m.MetadataExtractor=m.MetadataHelpers=m.WikiLinkHelpers=m.DateFormatter=m.FrontmatterService=m.CriticalityZoneUUIDs=m.CriticalityZoneService=m.DailyReviewService=m.DEFAULT_AUTOCOMPLETE_CONFIG=m.AutocompleteService=m.TrendDetectionService=m.AnalyticsService=m.getTemplateByName=m.validateParameters=m.fillTemplate=m.findMatchingTemplates=m.findClassByTerm=m.KNOWN_CLASSES=m.KNOWN_PROTOTYPES=m.EFFORT_STATUSES=m.ASSET_CLASSES=m.PREDICATES=m.SPARQL_PREFIXES=m.SPARQL_TEMPLATES=m.DEFAULT_NL_TO_SPARQL_CONFIG=m.NLToSPARQLService=m.TypeRegistry=m.GraphQueryService=m.FixMissingLabelService=m.ArchiveAssetService=m.GenericAssetCreationService=m.URIConstructionService=m.SessionEventService=m.AssetConversionService=m.EnumValueResolver=m.ClassHierarchyResolver=m.PropertySchemaResolver=m.PlanningService=m.AlgorithmExtractor=m.DynamicFrontmatterGenerator=m.FleetingNoteCreationService=m.SupervisionCreationService=m.StatusTimestampService=void 0;m.CaseWhenTransformer=m.ResultSerializer=m.createIncrementalIndexer=m.IncrementalIndexer=m.createSPARQLResultCache=m.SPARQLResultCache=m.QueryPlanCache=m.createDoubleLiteral=m.createDecimalLiteral=m.getNumericValue=m.createPercentileAggregate=m.modeAggregate=m.stddevAggregate=m.varianceAggregate=m.medianAggregate=m.EXO_AGGREGATE_NS=m.BUILT_IN_AGGREGATES=m.CustomAggregateError=m.CustomAggregateRegistry=m.AggregateFunctions=m.BuiltInFunctions=m.SolutionMapping=m.UpdateExecutorError=m.UpdateExecutor=m.QueryExecutor=m.ExoQLQueryExecutor=m.DescribeExecutor=m.ConstructExecutor=m.UnionExecutor=m.OptionalExecutor=m.FilterExecutor=m.BGPExecutor=m.AlgebraSerializer=m.AlgebraOptimizer=m.AlgebraTranslator=m.ExoQLAlgebraTranslator=m.DescribeOptionsTransformerError=m.DescribeOptionsTransformer=m.SPARQLParseError=m.SPARQLParser=m.ExoQLParser=m.NoteToRDFConverter=m.SOURCE_VARIABLE=m.SourceAnnotator=m.INFERRED_GRAPH=m.PrototypeChainMaterializer=m.PropertyCardinalityRegistry=m.NonInheritablePropertyRegistry=m.RDFSInferenceEngine=m.RDFVocabularyMapper=void 0;m.LayoutSelector=m.isPropertiesBlock=m.isLayoutBlockFrontmatter=m.isBacklinksTableBlock=m.createLayoutBlockFromFrontmatter=m.PROPERTIES_BLOCK_CLASS_UID=m.PROPERTIES_BLOCK_CLASS_IRI=m.BACKLINKS_TABLE_BLOCK_CLASS_UID=m.BACKLINKS_TABLE_BLOCK_CLASS_IRI=m.isLayoutFrontmatter=m.isLayout=m.createLayoutFromFrontmatter=m.LAYOUT_CLASS_UID=m.LAYOUT_CLASS_IRI=m.RelationColumnSetResolver=m.normalizeRelationColumnSetRef=m.isRelationColumnSetFrontmatter=m.isRelationColumnSet=m.createRelationColumnSetFromFrontmatter=m.RELATION_COLUMN_SET_CLASS_UID=m.RELATION_COLUMN_SET_CLASS_IRI=m.ExoQLError=m.ExoQL=m.createStreamingSource=m.StreamingLoader=m.resetGlobalPool=m.getGlobalPool=m.MemoryPool=m.CompactGraphStore=m.StringTable=m.DEFAULT_COLORS=m.NODE_FLAGS=m.container=m.resetContainer=m.getContainer=m.createChildContainer=m.registerCoreServices=m.DI_TOKENS=m.DEFAULT_FLEETING_NOTE_CLASS_UID=m.DEFAULT_INBOX_FOLDER=m.DEFAULT_OWNER_IDENTITY=m.VaultSettings=m.TransactionError=m.TripleNotFoundError=m.TripleAlreadyExistsError=m.FileAlreadyExistsError=m.FileNotFoundError=m.FilterContainsOptimizer=m.VaultPrefixTransformer=m.CaseWhenTransformerError=void 0;m.selectByPriority=void 0;Zn(Tu(),m);Zn(_c(),m);var $a=Xy();Object.defineProperty(m,"EFFORT_STATUS_CONFIG",{enumerable:!0,get:o(function(){return $a.EFFORT_STATUS_CONFIG},"get")});Object.defineProperty(m,"STATUS_NAME_TO_ENUM",{enumerable:!0,get:o(function(){return $a.STATUS_NAME_TO_ENUM},"get")});Object.defineProperty(m,"STATUS_NAME_TO_WIKILINK",{enumerable:!0,get:o(function(){return $a.STATUS_NAME_TO_WIKILINK},"get")});Object.defineProperty(m,"EFFORT_STATUS_OPTIONS",{enumerable:!0,get:o(function(){return $a.EFFORT_STATUS_OPTIONS},"get")});Object.defineProperty(m,"normalizeEffortStatus",{enumerable:!0,get:o(function(){return $a.normalizeEffortStatus},"get")});Object.defineProperty(m,"isDoneStatus",{enumerable:!0,get:o(function(){return $a.isDoneStatus},"get")});Object.defineProperty(m,"isTrashedStatus",{enumerable:!0,get:o(function(){return $a.isTrashedStatus},"get")});Object.defineProperty(m,"getEffortStatusLabel",{enumerable:!0,get:o(function(){return $a.getEffortStatusLabel},"get")});var tV=Sc();Object.defineProperty(m,"GroundingType",{enumerable:!0,get:o(function(){return tV.GroundingType},"get")});var gf=Jy();Object.defineProperty(m,"CommandProperty",{enumerable:!0,get:o(function(){return gf.CommandProperty},"get")});Object.defineProperty(m,"PreconditionProperty",{enumerable:!0,get:o(function(){return gf.PreconditionProperty},"get")});Object.defineProperty(m,"GroundingProperty",{enumerable:!0,get:o(function(){return gf.GroundingProperty},"get")});Object.defineProperty(m,"CommandBindingProperty",{enumerable:!0,get:o(function(){return gf.CommandBindingProperty},"get")});Object.defineProperty(m,"CommandBindingStyleProperty",{enumerable:!0,get:o(function(){return gf.CommandBindingStyleProperty},"get")});var Tl=Zy();Object.defineProperty(m,"COMMAND_VARIANT_VALUES",{enumerable:!0,get:o(function(){return Tl.COMMAND_VARIANT_VALUES},"get")});Object.defineProperty(m,"LABEL_CLASS_VALUES",{enumerable:!0,get:o(function(){return Tl.LABEL_CLASS_VALUES},"get")});Object.defineProperty(m,"STYLE_SOURCE_VALUES",{enumerable:!0,get:o(function(){return Tl.STYLE_SOURCE_VALUES},"get")});Object.defineProperty(m,"isCommandVariant",{enumerable:!0,get:o(function(){return Tl.isCommandVariant},"get")});Object.defineProperty(m,"isLabelClass",{enumerable:!0,get:o(function(){return Tl.isLabelClass},"get")});Object.defineProperty(m,"isStyleSource",{enumerable:!0,get:o(function(){return Tl.isStyleSource},"get")});var zm=N2();Object.defineProperty(m,"isCommandFrontmatter",{enumerable:!0,get:o(function(){return zm.isCommandFrontmatter},"get")});Object.defineProperty(m,"isPreconditionFrontmatter",{enumerable:!0,get:o(function(){return zm.isPreconditionFrontmatter},"get")});Object.defineProperty(m,"isGroundingFrontmatter",{enumerable:!0,get:o(function(){return zm.isGroundingFrontmatter},"get")});Object.defineProperty(m,"isCommandBindingFrontmatter",{enumerable:!0,get:o(function(){return zm.isCommandBindingFrontmatter},"get")});Zn(L2(),m);Zn(k2(),m);Zn(e0(),m);Zn(t0(),m);Zn(j2(),m);Zn(V2(),m);Zn(k0(),m);Zn(RT(),m);var SC=yh();Object.defineProperty(m,"PropertyFieldType",{enumerable:!0,get:o(function(){return SC.PropertyFieldType},"get")});Object.defineProperty(m,"rangeToFieldType",{enumerable:!0,get:o(function(){return SC.rangeToFieldType},"get")});var Ob=B0();Object.defineProperty(m,"propertyNameToUri",{enumerable:!0,get:o(function(){return Ob.propertyNameToUri},"get")});Object.defineProperty(m,"uriToPropertyName",{enumerable:!0,get:o(function(){return Ob.uriToPropertyName},"get")});Object.defineProperty(m,"extractPropertyLabel",{enumerable:!0,get:o(function(){return Ob.extractPropertyLabel},"get")});var rV=i3();Object.defineProperty(m,"CommandResolver",{enumerable:!0,get:o(function(){return rV.CommandResolver},"get")});var nV=a3();Object.defineProperty(m,"PreconditionEvaluator",{enumerable:!0,get:o(function(){return nV.PreconditionEvaluator},"get")});var vC=c3();Object.defineProperty(m,"GroundingExecutor",{enumerable:!0,get:o(function(){return vC.GroundingExecutor},"get")});Object.defineProperty(m,"ServiceRegistry",{enumerable:!0,get:o(function(){return vC.ServiceRegistry},"get")});var iV=cS();Object.defineProperty(m,"TaskStatusService",{enumerable:!0,get:o(function(){return iV.TaskStatusService},"get")});var sV=dS();Object.defineProperty(m,"AreaCreationService",{enumerable:!0,get:o(function(){return sV.AreaCreationService},"get")});var aV=pS();Object.defineProperty(m,"AreaHierarchyBuilder",{enumerable:!0,get:o(function(){return aV.AreaHierarchyBuilder},"get")});var oV=gS();Object.defineProperty(m,"ClassCreationService",{enumerable:!0,get:o(function(){return oV.ClassCreationService},"get")});var cV=_S();Object.defineProperty(m,"ConceptCreationService",{enumerable:!0,get:o(function(){return cV.ConceptCreationService},"get")});var lV=Yp();Object.defineProperty(m,"EffortStatusWorkflow",{enumerable:!0,get:o(function(){return lV.EffortStatusWorkflow},"get")});var uV=ef();Object.defineProperty(m,"WorkflowEngine",{enumerable:!0,get:o(function(){return uV.WorkflowEngine},"get")});var fV=K1();Object.defineProperty(m,"WorkflowResolver",{enumerable:!0,get:o(function(){return fV.WorkflowResolver},"get")});var dV=w3();Object.defineProperty(m,"InstantiationRuleResolver",{enumerable:!0,get:o(function(){return dV.InstantiationRuleResolver},"get")});var hV=E3();Object.defineProperty(m,"VisibilityGenerator",{enumerable:!0,get:o(function(){return hV.VisibilityGenerator},"get")});var pV=T3();Object.defineProperty(m,"WorkflowCommandAdapter",{enumerable:!0,get:o(function(){return pV.WorkflowCommandAdapter},"get")});var mV=AS();Object.defineProperty(m,"EffortVotingService",{enumerable:!0,get:o(function(){return mV.EffortVotingService},"get")});var gV=CS();Object.defineProperty(m,"FolderRepairService",{enumerable:!0,get:o(function(){return gV.FolderRepairService},"get")});var yV=RS();Object.defineProperty(m,"LabelToAliasService",{enumerable:!0,get:o(function(){return yV.LabelToAliasService},"get")});var _V=Fa();Object.defineProperty(m,"LoggingService",{enumerable:!0,get:o(function(){return _V.LoggingService},"get")});var SV=FS();Object.defineProperty(m,"PropertyCleanupService",{enumerable:!0,get:o(function(){return SV.PropertyCleanupService},"get")});var vV=NS();Object.defineProperty(m,"RenameToUidService",{enumerable:!0,get:o(function(){return vV.RenameToUidService},"get")});var bV=Xp();Object.defineProperty(m,"StatusTimestampService",{enumerable:!0,get:o(function(){return bV.StatusTimestampService},"get")});var wV=MS();Object.defineProperty(m,"SupervisionCreationService",{enumerable:!0,get:o(function(){return wV.SupervisionCreationService},"get")});var EV=BS();Object.defineProperty(m,"FleetingNoteCreationService",{enumerable:!0,get:o(function(){return EV.FleetingNoteCreationService},"get")});var TV=US();Object.defineProperty(m,"DynamicFrontmatterGenerator",{enumerable:!0,get:o(function(){return TV.DynamicFrontmatterGenerator},"get")});var AV=WS();Object.defineProperty(m,"AlgorithmExtractor",{enumerable:!0,get:o(function(){return AV.AlgorithmExtractor},"get")});var xV=zS();Object.defineProperty(m,"PlanningService",{enumerable:!0,get:o(function(){return xV.PlanningService},"get")});var CV=M3();Object.defineProperty(m,"PropertySchemaResolver",{enumerable:!0,get:o(function(){return CV.PropertySchemaResolver},"get")});var IV=j3();Object.defineProperty(m,"ClassHierarchyResolver",{enumerable:!0,get:o(function(){return IV.ClassHierarchyResolver},"get")});var RV=$3();Object.defineProperty(m,"EnumValueResolver",{enumerable:!0,get:o(function(){return RV.EnumValueResolver},"get")});var PV=XS();Object.defineProperty(m,"AssetConversionService",{enumerable:!0,get:o(function(){return PV.AssetConversionService},"get")});var OV=ev();Object.defineProperty(m,"SessionEventService",{enumerable:!0,get:o(function(){return OV.SessionEventService},"get")});var FV=nv();Object.defineProperty(m,"URIConstructionService",{enumerable:!0,get:o(function(){return FV.URIConstructionService},"get")});var DV=sv();Object.defineProperty(m,"GenericAssetCreationService",{enumerable:!0,get:o(function(){return DV.GenericAssetCreationService},"get")});var NV=Y3();Object.defineProperty(m,"ArchiveAssetService",{enumerable:!0,get:o(function(){return NV.ArchiveAssetService},"get")});var LV=X3();Object.defineProperty(m,"FixMissingLabelService",{enumerable:!0,get:o(function(){return LV.FixMissingLabelService},"get")});var kV=J3();Object.defineProperty(m,"GraphQueryService",{enumerable:!0,get:o(function(){return kV.GraphQueryService},"get")});var MV=ex();Object.defineProperty(m,"TypeRegistry",{enumerable:!0,get:o(function(){return MV.TypeRegistry},"get")});var bC=tx();Object.defineProperty(m,"NLToSPARQLService",{enumerable:!0,get:o(function(){return bC.NLToSPARQLService},"get")});Object.defineProperty(m,"DEFAULT_NL_TO_SPARQL_CONFIG",{enumerable:!0,get:o(function(){return bC.DEFAULT_NL_TO_SPARQL_CONFIG},"get")});var ei=uv();Object.defineProperty(m,"SPARQL_TEMPLATES",{enumerable:!0,get:o(function(){return ei.SPARQL_TEMPLATES},"get")});Object.defineProperty(m,"SPARQL_PREFIXES",{enumerable:!0,get:o(function(){return ei.SPARQL_PREFIXES},"get")});Object.defineProperty(m,"PREDICATES",{enumerable:!0,get:o(function(){return ei.PREDICATES},"get")});Object.defineProperty(m,"ASSET_CLASSES",{enumerable:!0,get:o(function(){return ei.ASSET_CLASSES},"get")});Object.defineProperty(m,"EFFORT_STATUSES",{enumerable:!0,get:o(function(){return ei.EFFORT_STATUSES},"get")});Object.defineProperty(m,"KNOWN_PROTOTYPES",{enumerable:!0,get:o(function(){return ei.KNOWN_PROTOTYPES},"get")});Object.defineProperty(m,"KNOWN_CLASSES",{enumerable:!0,get:o(function(){return ei.KNOWN_CLASSES},"get")});Object.defineProperty(m,"findClassByTerm",{enumerable:!0,get:o(function(){return ei.findClassByTerm},"get")});Object.defineProperty(m,"findMatchingTemplates",{enumerable:!0,get:o(function(){return ei.findMatchingTemplates},"get")});Object.defineProperty(m,"fillTemplate",{enumerable:!0,get:o(function(){return ei.fillTemplate},"get")});Object.defineProperty(m,"validateParameters",{enumerable:!0,get:o(function(){return ei.validateParameters},"get")});Object.defineProperty(m,"getTemplateByName",{enumerable:!0,get:o(function(){return ei.getTemplateByName},"get")});var jV=nx();Object.defineProperty(m,"AnalyticsService",{enumerable:!0,get:o(function(){return jV.AnalyticsService},"get")});var $V=ix();Object.defineProperty(m,"TrendDetectionService",{enumerable:!0,get:o(function(){return $V.TrendDetectionService},"get")});var wC=ax();Object.defineProperty(m,"AutocompleteService",{enumerable:!0,get:o(function(){return wC.AutocompleteService},"get")});Object.defineProperty(m,"DEFAULT_AUTOCOMPLETE_CONFIG",{enumerable:!0,get:o(function(){return wC.DEFAULT_AUTOCOMPLETE_CONFIG},"get")});var BV=cx();Object.defineProperty(m,"DailyReviewService",{enumerable:!0,get:o(function(){return BV.DailyReviewService},"get")});var EC=yv();Object.defineProperty(m,"CriticalityZoneService",{enumerable:!0,get:o(function(){return EC.CriticalityZoneService},"get")});Object.defineProperty(m,"CriticalityZoneUUIDs",{enumerable:!0,get:o(function(){return EC.CriticalityZoneUUIDs},"get")});var VV=Yn();Object.defineProperty(m,"FrontmatterService",{enumerable:!0,get:o(function(){return VV.FrontmatterService},"get")});var UV=zr();Object.defineProperty(m,"DateFormatter",{enumerable:!0,get:o(function(){return UV.DateFormatter},"get")});var qV=$s();Object.defineProperty(m,"WikiLinkHelpers",{enumerable:!0,get:o(function(){return qV.WikiLinkHelpers},"get")});var WV=fs();Object.defineProperty(m,"MetadataHelpers",{enumerable:!0,get:o(function(){return WV.MetadataHelpers},"get")});var GV=uS();Object.defineProperty(m,"MetadataExtractor",{enumerable:!0,get:o(function(){return GV.MetadataExtractor},"get")});var zV=ux();Object.defineProperty(m,"EffortSortingHelpers",{enumerable:!0,get:o(function(){return zV.EffortSortingHelpers},"get")});var HV=fx();Object.defineProperty(m,"FilenameValidator",{enumerable:!0,get:o(function(){return HV.FilenameValidator},"get")});var QV=_x();Object.defineProperty(m,"RDFSerializer",{enumerable:!0,get:o(function(){return QV.RDFSerializer},"get")});var YV=Ac();Object.defineProperty(m,"NullLogger",{enumerable:!0,get:o(function(){return YV.NullLogger},"get")});var TC=Rv();Object.defineProperty(m,"vaultPathToIRI",{enumerable:!0,get:o(function(){return TC.vaultPathToIRI},"get")});Object.defineProperty(m,"OBSIDIAN_VAULT_SCHEME",{enumerable:!0,get:o(function(){return TC.OBSIDIAN_VAULT_SCHEME},"get")});var KV=iS();Object.defineProperty(m,"InMemoryTripleStore",{enumerable:!0,get:o(function(){return KV.InMemoryTripleStore},"get")});var XV=Ov();Object.defineProperty(m,"RDFVocabularyMapper",{enumerable:!0,get:o(function(){return XV.RDFVocabularyMapper},"get")});var JV=vx();Object.defineProperty(m,"RDFSInferenceEngine",{enumerable:!0,get:o(function(){return JV.RDFSInferenceEngine},"get")});var ZV=Lv();Object.defineProperty(m,"NonInheritablePropertyRegistry",{enumerable:!0,get:o(function(){return ZV.NonInheritablePropertyRegistry},"get")});var eU=jv();Object.defineProperty(m,"PropertyCardinalityRegistry",{enumerable:!0,get:o(function(){return eU.PropertyCardinalityRegistry},"get")});var AC=Vv();Object.defineProperty(m,"PrototypeChainMaterializer",{enumerable:!0,get:o(function(){return AC.PrototypeChainMaterializer},"get")});Object.defineProperty(m,"INFERRED_GRAPH",{enumerable:!0,get:o(function(){return AC.INFERRED_GRAPH},"get")});var xC=qv();Object.defineProperty(m,"SourceAnnotator",{enumerable:!0,get:o(function(){return xC.SourceAnnotator},"get")});Object.defineProperty(m,"SOURCE_VARIABLE",{enumerable:!0,get:o(function(){return xC.SOURCE_VARIABLE},"get")});var tU=Gv();Object.defineProperty(m,"NoteToRDFConverter",{enumerable:!0,get:o(function(){return tU.NoteToRDFConverter},"get")});var Fb=Lc();Object.defineProperty(m,"ExoQLParser",{enumerable:!0,get:o(function(){return Fb.ExoQLParser},"get")});Object.defineProperty(m,"SPARQLParser",{enumerable:!0,get:o(function(){return Fb.SPARQLParser},"get")});Object.defineProperty(m,"SPARQLParseError",{enumerable:!0,get:o(function(){return Fb.SPARQLParseError},"get")});var CC=j_();Object.defineProperty(m,"DescribeOptionsTransformer",{enumerable:!0,get:o(function(){return CC.DescribeOptionsTransformer},"get")});Object.defineProperty(m,"DescribeOptionsTransformerError",{enumerable:!0,get:o(function(){return CC.DescribeOptionsTransformerError},"get")});var IC=Mc();Object.defineProperty(m,"ExoQLAlgebraTranslator",{enumerable:!0,get:o(function(){return IC.ExoQLAlgebraTranslator},"get")});Object.defineProperty(m,"AlgebraTranslator",{enumerable:!0,get:o(function(){return IC.AlgebraTranslator},"get")});var rU=Px();Object.defineProperty(m,"AlgebraOptimizer",{enumerable:!0,get:o(function(){return rU.AlgebraOptimizer},"get")});var nU=Ox();Object.defineProperty(m,"AlgebraSerializer",{enumerable:!0,get:o(function(){return nU.AlgebraSerializer},"get")});var iU=r1();Object.defineProperty(m,"BGPExecutor",{enumerable:!0,get:o(function(){return iU.BGPExecutor},"get")});var sU=Ap();Object.defineProperty(m,"FilterExecutor",{enumerable:!0,get:o(function(){return sU.FilterExecutor},"get")});var aU=v1();Object.defineProperty(m,"OptionalExecutor",{enumerable:!0,get:o(function(){return aU.OptionalExecutor},"get")});var oU=w1();Object.defineProperty(m,"UnionExecutor",{enumerable:!0,get:o(function(){return oU.UnionExecutor},"get")});var cU=F1();Object.defineProperty(m,"ConstructExecutor",{enumerable:!0,get:o(function(){return cU.ConstructExecutor},"get")});var lU=Dx();Object.defineProperty(m,"DescribeExecutor",{enumerable:!0,get:o(function(){return lU.DescribeExecutor},"get")});var RC=nl();Object.defineProperty(m,"ExoQLQueryExecutor",{enumerable:!0,get:o(function(){return RC.ExoQLQueryExecutor},"get")});Object.defineProperty(m,"QueryExecutor",{enumerable:!0,get:o(function(){return RC.QueryExecutor},"get")});var PC=Lx();Object.defineProperty(m,"UpdateExecutor",{enumerable:!0,get:o(function(){return PC.UpdateExecutor},"get")});Object.defineProperty(m,"UpdateExecutorError",{enumerable:!0,get:o(function(){return PC.UpdateExecutorError},"get")});var uU=os();Object.defineProperty(m,"SolutionMapping",{enumerable:!0,get:o(function(){return uU.SolutionMapping},"get")});var fU=Tp();Object.defineProperty(m,"BuiltInFunctions",{enumerable:!0,get:o(function(){return fU.BuiltInFunctions},"get")});var dU=Mx();Object.defineProperty(m,"AggregateFunctions",{enumerable:!0,get:o(function(){return dU.AggregateFunctions},"get")});var OC=A1();Object.defineProperty(m,"CustomAggregateRegistry",{enumerable:!0,get:o(function(){return OC.CustomAggregateRegistry},"get")});Object.defineProperty(m,"CustomAggregateError",{enumerable:!0,get:o(function(){return OC.CustomAggregateError},"get")});var _s=x1();Object.defineProperty(m,"BUILT_IN_AGGREGATES",{enumerable:!0,get:o(function(){return _s.BUILT_IN_AGGREGATES},"get")});Object.defineProperty(m,"EXO_AGGREGATE_NS",{enumerable:!0,get:o(function(){return _s.EXO_AGGREGATE_NS},"get")});Object.defineProperty(m,"medianAggregate",{enumerable:!0,get:o(function(){return _s.medianAggregate},"get")});Object.defineProperty(m,"varianceAggregate",{enumerable:!0,get:o(function(){return _s.varianceAggregate},"get")});Object.defineProperty(m,"stddevAggregate",{enumerable:!0,get:o(function(){return _s.stddevAggregate},"get")});Object.defineProperty(m,"modeAggregate",{enumerable:!0,get:o(function(){return _s.modeAggregate},"get")});Object.defineProperty(m,"createPercentileAggregate",{enumerable:!0,get:o(function(){return _s.createPercentileAggregate},"get")});Object.defineProperty(m,"getNumericValue",{enumerable:!0,get:o(function(){return _s.getNumericValue},"get")});Object.defineProperty(m,"createDecimalLiteral",{enumerable:!0,get:o(function(){return _s.createDecimalLiteral},"get")});Object.defineProperty(m,"createDoubleLiteral",{enumerable:!0,get:o(function(){return _s.createDoubleLiteral},"get")});var hU=jx();Object.defineProperty(m,"QueryPlanCache",{enumerable:!0,get:o(function(){return hU.QueryPlanCache},"get")});var FC=$x();Object.defineProperty(m,"SPARQLResultCache",{enumerable:!0,get:o(function(){return FC.SPARQLResultCache},"get")});Object.defineProperty(m,"createSPARQLResultCache",{enumerable:!0,get:o(function(){return FC.createSPARQLResultCache},"get")});var DC=Bx();Object.defineProperty(m,"IncrementalIndexer",{enumerable:!0,get:o(function(){return DC.IncrementalIndexer},"get")});Object.defineProperty(m,"createIncrementalIndexer",{enumerable:!0,get:o(function(){return DC.createIncrementalIndexer},"get")});var pU=Vx();Object.defineProperty(m,"ResultSerializer",{enumerable:!0,get:o(function(){return pU.ResultSerializer},"get")});var NC=L_();Object.defineProperty(m,"CaseWhenTransformer",{enumerable:!0,get:o(function(){return NC.CaseWhenTransformer},"get")});Object.defineProperty(m,"CaseWhenTransformerError",{enumerable:!0,get:o(function(){return NC.CaseWhenTransformerError},"get")});var mU=U_();Object.defineProperty(m,"VaultPrefixTransformer",{enumerable:!0,get:o(function(){return mU.VaultPrefixTransformer},"get")});var gU=Hv();Object.defineProperty(m,"FilterContainsOptimizer",{enumerable:!0,get:o(function(){return gU.FilterContainsOptimizer},"get")});var LC=Ux();Object.defineProperty(m,"FileNotFoundError",{enumerable:!0,get:o(function(){return LC.FileNotFoundError},"get")});Object.defineProperty(m,"FileAlreadyExistsError",{enumerable:!0,get:o(function(){return LC.FileAlreadyExistsError},"get")});var Db=eS();Object.defineProperty(m,"TripleAlreadyExistsError",{enumerable:!0,get:o(function(){return Db.TripleAlreadyExistsError},"get")});Object.defineProperty(m,"TripleNotFoundError",{enumerable:!0,get:o(function(){return Db.TripleNotFoundError},"get")});Object.defineProperty(m,"TransactionError",{enumerable:!0,get:o(function(){return Db.TransactionError},"get")});var Hm=ab();Object.defineProperty(m,"VaultSettings",{enumerable:!0,get:o(function(){return Hm.VaultSettings},"get")});Object.defineProperty(m,"DEFAULT_OWNER_IDENTITY",{enumerable:!0,get:o(function(){return Hm.DEFAULT_OWNER_IDENTITY},"get")});Object.defineProperty(m,"DEFAULT_INBOX_FOLDER",{enumerable:!0,get:o(function(){return Hm.DEFAULT_INBOX_FOLDER},"get")});Object.defineProperty(m,"DEFAULT_FLEETING_NOTE_CLASS_UID",{enumerable:!0,get:o(function(){return Hm.DEFAULT_FLEETING_NOTE_CLASS_UID},"get")});var yU=wt();Object.defineProperty(m,"DI_TOKENS",{enumerable:!0,get:o(function(){return yU.DI_TOKENS},"get")});var yf=qx();Object.defineProperty(m,"registerCoreServices",{enumerable:!0,get:o(function(){return yf.registerCoreServices},"get")});Object.defineProperty(m,"createChildContainer",{enumerable:!0,get:o(function(){return yf.createChildContainer},"get")});Object.defineProperty(m,"getContainer",{enumerable:!0,get:o(function(){return yf.getContainer},"get")});Object.defineProperty(m,"resetContainer",{enumerable:!0,get:o(function(){return yf.resetContainer},"get")});Object.defineProperty(m,"container",{enumerable:!0,get:o(function(){return yf.container},"get")});var sa=Yx();Object.defineProperty(m,"NODE_FLAGS",{enumerable:!0,get:o(function(){return sa.NODE_FLAGS},"get")});Object.defineProperty(m,"DEFAULT_COLORS",{enumerable:!0,get:o(function(){return sa.DEFAULT_COLORS},"get")});Object.defineProperty(m,"StringTable",{enumerable:!0,get:o(function(){return sa.StringTable},"get")});Object.defineProperty(m,"CompactGraphStore",{enumerable:!0,get:o(function(){return sa.CompactGraphStore},"get")});Object.defineProperty(m,"MemoryPool",{enumerable:!0,get:o(function(){return sa.MemoryPool},"get")});Object.defineProperty(m,"getGlobalPool",{enumerable:!0,get:o(function(){return sa.getGlobalPool},"get")});Object.defineProperty(m,"resetGlobalPool",{enumerable:!0,get:o(function(){return sa.resetGlobalPool},"get")});Object.defineProperty(m,"StreamingLoader",{enumerable:!0,get:o(function(){return sa.StreamingLoader},"get")});Object.defineProperty(m,"createStreamingSource",{enumerable:!0,get:o(function(){return sa.createStreamingSource},"get")});var kC=Kx();Object.defineProperty(m,"ExoQL",{enumerable:!0,get:o(function(){return kC.ExoQL},"get")});Object.defineProperty(m,"ExoQLError",{enumerable:!0,get:o(function(){return kC.ExoQLError},"get")});var Al=Fm();Object.defineProperty(m,"RELATION_COLUMN_SET_CLASS_IRI",{enumerable:!0,get:o(function(){return Al.RELATION_COLUMN_SET_CLASS_IRI},"get")});Object.defineProperty(m,"RELATION_COLUMN_SET_CLASS_UID",{enumerable:!0,get:o(function(){return Al.RELATION_COLUMN_SET_CLASS_UID},"get")});Object.defineProperty(m,"createRelationColumnSetFromFrontmatter",{enumerable:!0,get:o(function(){return Al.createRelationColumnSetFromFrontmatter},"get")});Object.defineProperty(m,"isRelationColumnSet",{enumerable:!0,get:o(function(){return Al.isRelationColumnSet},"get")});Object.defineProperty(m,"isRelationColumnSetFrontmatter",{enumerable:!0,get:o(function(){return Al.isRelationColumnSetFrontmatter},"get")});Object.defineProperty(m,"normalizeRelationColumnSetRef",{enumerable:!0,get:o(function(){return Al.normalizeRef},"get")});var _U=sC();Object.defineProperty(m,"RelationColumnSetResolver",{enumerable:!0,get:o(function(){return _U.RelationColumnSetResolver},"get")});var _f=Fm();Object.defineProperty(m,"LAYOUT_CLASS_IRI",{enumerable:!0,get:o(function(){return _f.LAYOUT_CLASS_IRI},"get")});Object.defineProperty(m,"LAYOUT_CLASS_UID",{enumerable:!0,get:o(function(){return _f.LAYOUT_CLASS_UID},"get")});Object.defineProperty(m,"createLayoutFromFrontmatter",{enumerable:!0,get:o(function(){return _f.createLayoutFromFrontmatter},"get")});Object.defineProperty(m,"isLayout",{enumerable:!0,get:o(function(){return _f.isLayout},"get")});Object.defineProperty(m,"isLayoutFrontmatter",{enumerable:!0,get:o(function(){return _f.isLayoutFrontmatter},"get")});var Ba=Fm();Object.defineProperty(m,"BACKLINKS_TABLE_BLOCK_CLASS_IRI",{enumerable:!0,get:o(function(){return Ba.BACKLINKS_TABLE_BLOCK_CLASS_IRI},"get")});Object.defineProperty(m,"BACKLINKS_TABLE_BLOCK_CLASS_UID",{enumerable:!0,get:o(function(){return Ba.BACKLINKS_TABLE_BLOCK_CLASS_UID},"get")});Object.defineProperty(m,"PROPERTIES_BLOCK_CLASS_IRI",{enumerable:!0,get:o(function(){return Ba.PROPERTIES_BLOCK_CLASS_IRI},"get")});Object.defineProperty(m,"PROPERTIES_BLOCK_CLASS_UID",{enumerable:!0,get:o(function(){return Ba.PROPERTIES_BLOCK_CLASS_UID},"get")});Object.defineProperty(m,"createLayoutBlockFromFrontmatter",{enumerable:!0,get:o(function(){return Ba.createLayoutBlockFromFrontmatter},"get")});Object.defineProperty(m,"isBacklinksTableBlock",{enumerable:!0,get:o(function(){return Ba.isBacklinksTableBlock},"get")});Object.defineProperty(m,"isLayoutBlockFrontmatter",{enumerable:!0,get:o(function(){return Ba.isLayoutBlockFrontmatter},"get")});Object.defineProperty(m,"isPropertiesBlock",{enumerable:!0,get:o(function(){return Ba.isPropertiesBlock},"get")});var MC=oC();Object.defineProperty(m,"LayoutSelector",{enumerable:!0,get:o(function(){return MC.LayoutSelector},"get")});Object.defineProperty(m,"selectByPriority",{enumerable:!0,get:o(function(){return MC.selectByPriority},"get")});Zn(gC(),m);Zn(_C(),m)});var Sr=S(Nb=>{"use strict";Nb.fromCallback=function(n){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")n.apply(this,e);else return new Promise((t,r)=>{e.push((i,s)=>i!=null?r(i):t(s)),n.apply(this,e)})},"name",{value:n.name})};Nb.fromPromise=function(n){return Object.defineProperty(function(...e){let t=e[e.length-1];if(typeof t!="function")return n.apply(this,e);e.pop(),n.apply(this,e).then(r=>t(null,r),t)},"name",{value:n.name})}});var $C=S((woe,jC)=>{var Va=require("constants"),SU=process.cwd,Qm=null,vU=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Qm||(Qm=SU.call(process)),Qm};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Lb=process.chdir,process.chdir=function(n){Qm=null,Lb.call(process,n)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Lb));var Lb;jC.exports=bU;function bU(n){Va.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(n),n.lutimes||t(n),n.chown=s(n.chown),n.fchown=s(n.fchown),n.lchown=s(n.lchown),n.chmod=r(n.chmod),n.fchmod=r(n.fchmod),n.lchmod=r(n.lchmod),n.chownSync=a(n.chownSync),n.fchownSync=a(n.fchownSync),n.lchownSync=a(n.lchownSync),n.chmodSync=i(n.chmodSync),n.fchmodSync=i(n.fchmodSync),n.lchmodSync=i(n.lchmodSync),n.stat=c(n.stat),n.fstat=c(n.fstat),n.lstat=c(n.lstat),n.statSync=l(n.statSync),n.fstatSync=l(n.fstatSync),n.lstatSync=l(n.lstatSync),n.chmod&&!n.lchmod&&(n.lchmod=function(f,d,h){h&&process.nextTick(h)},n.lchmodSync=function(){}),n.chown&&!n.lchown&&(n.lchown=function(f,d,h,p){p&&process.nextTick(p)},n.lchownSync=function(){}),vU==="win32"&&(n.rename=typeof n.rename!="function"?n.rename:(function(f){function d(h,p,_){var v=Date.now(),E=0;f(h,p,o(function b(A){if(A&&(A.code==="EACCES"||A.code==="EPERM"||A.code==="EBUSY")&&Date.now()-v<6e4){setTimeout(function(){n.stat(p,function(R,B){R&&R.code==="ENOENT"?f(h,p,b):_(A)})},E),E<100&&(E+=10);return}_&&_(A)},"CB"))}return o(d,"rename"),Object.setPrototypeOf&&Object.setPrototypeOf(d,f),d})(n.rename)),n.read=typeof n.read!="function"?n.read:(function(f){function d(h,p,_,v,E,b){var A;if(b&&typeof b=="function"){var R=0;A=o(function(B,W,we){if(B&&B.code==="EAGAIN"&&R<10)return R++,f.call(n,h,p,_,v,E,A);b.apply(this,arguments)},"callback")}return f.call(n,h,p,_,v,E,A)}return o(d,"read"),Object.setPrototypeOf&&Object.setPrototypeOf(d,f),d})(n.read),n.readSync=typeof n.readSync!="function"?n.readSync:(function(f){return function(d,h,p,_,v){for(var E=0;;)try{return f.call(n,d,h,p,_,v)}catch(b){if(b.code==="EAGAIN"&&E<10){E++;continue}throw b}}})(n.readSync);function e(f){f.lchmod=function(d,h,p){f.open(d,Va.O_WRONLY|Va.O_SYMLINK,h,function(_,v){if(_){p&&p(_);return}f.fchmod(v,h,function(E){f.close(v,function(b){p&&p(E||b)})})})},f.lchmodSync=function(d,h){var p=f.openSync(d,Va.O_WRONLY|Va.O_SYMLINK,h),_=!0,v;try{v=f.fchmodSync(p,h),_=!1}finally{if(_)try{f.closeSync(p)}catch{}else f.closeSync(p)}return v}}o(e,"patchLchmod");function t(f){Va.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(d,h,p,_){f.open(d,Va.O_SYMLINK,function(v,E){if(v){_&&_(v);return}f.futimes(E,h,p,function(b){f.close(E,function(A){_&&_(b||A)})})})},f.lutimesSync=function(d,h,p){var _=f.openSync(d,Va.O_SYMLINK),v,E=!0;try{v=f.futimesSync(_,h,p),E=!1}finally{if(E)try{f.closeSync(_)}catch{}else f.closeSync(_)}return v}):f.futimes&&(f.lutimes=function(d,h,p,_){_&&process.nextTick(_)},f.lutimesSync=function(){})}o(t,"patchLutimes");function r(f){return f&&function(d,h,p){return f.call(n,d,h,function(_){u(_)&&(_=null),p&&p.apply(this,arguments)})}}o(r,"chmodFix");function i(f){return f&&function(d,h){try{return f.call(n,d,h)}catch(p){if(!u(p))throw p}}}o(i,"chmodFixSync");function s(f){return f&&function(d,h,p,_){return f.call(n,d,h,p,function(v){u(v)&&(v=null),_&&_.apply(this,arguments)})}}o(s,"chownFix");function a(f){return f&&function(d,h,p){try{return f.call(n,d,h,p)}catch(_){if(!u(_))throw _}}}o(a,"chownFixSync");function c(f){return f&&function(d,h,p){typeof h=="function"&&(p=h,h=null);function _(v,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),p&&p.apply(this,arguments)}return o(_,"callback"),h?f.call(n,d,h,_):f.call(n,d,_)}}o(c,"statFix");function l(f){return f&&function(d,h){var p=h?f.call(n,d,h):f.call(n,d);return p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),p}}o(l,"statFixSync");function u(f){if(!f||f.code==="ENOSYS")return!0;var d=!process.getuid||process.getuid()!==0;return!!(d&&(f.code==="EINVAL"||f.code==="EPERM"))}o(u,"chownErOk")}o(bU,"patch")});var UC=S((Toe,VC)=>{var BC=require("stream").Stream;VC.exports=wU;function wU(n){return{ReadStream:e,WriteStream:t};function e(r,i){if(!(this instanceof e))return new e(r,i);BC.call(this);var s=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),c=0,l=a.length;c<l;c++){var u=a[c];this[u]=i[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}n.open(this.path,this.flags,this.mode,function(f,d){if(f){s.emit("error",f),s.readable=!1;return}s.fd=d,s.emit("open",d),s._read()})}function t(r,i){if(!(this instanceof t))return new t(r,i);BC.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),a=0,c=s.length;a<c;a++){var l=s[a];this[l]=i[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=n.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}o(wU,"legacy")});var WC=S((xoe,qC)=>{"use strict";qC.exports=TU;var EU=Object.getPrototypeOf||function(n){return n.__proto__};function TU(n){if(n===null||typeof n!="object")return n;if(n instanceof Object)var e={__proto__:EU(n)};else var e=Object.create(null);return Object.getOwnPropertyNames(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}o(TU,"clone")});var Cl=S((Ioe,jb)=>{var jt=require("fs"),AU=$C(),xU=UC(),CU=WC(),Ym=require("util"),kr,Xm;typeof Symbol=="function"&&typeof Symbol.for=="function"?(kr=Symbol.for("graceful-fs.queue"),Xm=Symbol.for("graceful-fs.previous")):(kr="___graceful-fs.queue",Xm="___graceful-fs.previous");function IU(){}o(IU,"noop");function HC(n,e){Object.defineProperty(n,kr,{get:o(function(){return e},"get")})}o(HC,"publishQueue");var Go=IU;Ym.debuglog?Go=Ym.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Go=o(function(){var n=Ym.format.apply(Ym,arguments);n="GFS4: "+n.split(/\n/).join(`
|
|
456
|
+
GFS4: `),console.error(n)},"debug"));jt[kr]||(GC=global[kr]||[],HC(jt,GC),jt.close=(function(n){function e(t,r){return n.call(jt,t,function(i){i||zC(),typeof r=="function"&&r.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,Xm,{value:n}),e})(jt.close),jt.closeSync=(function(n){function e(t){n.apply(jt,arguments),zC()}return o(e,"closeSync"),Object.defineProperty(e,Xm,{value:n}),e})(jt.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Go(jt[kr]),require("assert").equal(jt[kr].length,0)}));var GC;global[kr]||HC(global,jt[kr]);jb.exports=kb(CU(jt));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!jt.__patched&&(jb.exports=kb(jt),jt.__patched=!0);function kb(n){AU(n),n.gracefulify=kb,n.createReadStream=W,n.createWriteStream=we;var e=n.readFile;n.readFile=t;function t(F,j,te){return typeof j=="function"&&(te=j,j=null),Ye(F,j,te);function Ye(st,Pt,at,ct){return e(st,Pt,function(Ke){Ke&&(Ke.code==="EMFILE"||Ke.code==="ENFILE")?xl([Ye,[st,Pt,at],Ke,ct||Date.now(),Date.now()]):typeof at=="function"&&at.apply(this,arguments)})}o(Ye,"go$readFile")}o(t,"readFile");var r=n.writeFile;n.writeFile=i;function i(F,j,te,Ye){return typeof te=="function"&&(Ye=te,te=null),st(F,j,te,Ye);function st(Pt,at,ct,Ke,ie){return r(Pt,at,ct,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xl([st,[Pt,at,ct,Ke],V,ie||Date.now(),Date.now()]):typeof Ke=="function"&&Ke.apply(this,arguments)})}o(st,"go$writeFile")}o(i,"writeFile");var s=n.appendFile;s&&(n.appendFile=a);function a(F,j,te,Ye){return typeof te=="function"&&(Ye=te,te=null),st(F,j,te,Ye);function st(Pt,at,ct,Ke,ie){return s(Pt,at,ct,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xl([st,[Pt,at,ct,Ke],V,ie||Date.now(),Date.now()]):typeof Ke=="function"&&Ke.apply(this,arguments)})}o(st,"go$appendFile")}o(a,"appendFile");var c=n.copyFile;c&&(n.copyFile=l);function l(F,j,te,Ye){return typeof te=="function"&&(Ye=te,te=0),st(F,j,te,Ye);function st(Pt,at,ct,Ke,ie){return c(Pt,at,ct,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xl([st,[Pt,at,ct,Ke],V,ie||Date.now(),Date.now()]):typeof Ke=="function"&&Ke.apply(this,arguments)})}o(st,"go$copyFile")}o(l,"copyFile");var u=n.readdir;n.readdir=d;var f=/^v[0-5]\./;function d(F,j,te){typeof j=="function"&&(te=j,j=null);var Ye=f.test(process.version)?o(function(at,ct,Ke,ie){return u(at,st(at,ct,Ke,ie))},"go$readdir"):o(function(at,ct,Ke,ie){return u(at,ct,st(at,ct,Ke,ie))},"go$readdir");return Ye(F,j,te);function st(Pt,at,ct,Ke){return function(ie,V){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?xl([Ye,[Pt,at,ct],ie,Ke||Date.now(),Date.now()]):(V&&V.sort&&V.sort(),typeof ct=="function"&&ct.call(this,ie,V))}}}if(o(d,"readdir"),process.version.substr(0,4)==="v0.8"){var h=xU(n);b=h.ReadStream,R=h.WriteStream}var p=n.ReadStream;p&&(b.prototype=Object.create(p.prototype),b.prototype.open=A);var _=n.WriteStream;_&&(R.prototype=Object.create(_.prototype),R.prototype.open=B),Object.defineProperty(n,"ReadStream",{get:o(function(){return b},"get"),set:o(function(F){b=F},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(n,"WriteStream",{get:o(function(){return R},"get"),set:o(function(F){R=F},"set"),enumerable:!0,configurable:!0});var v=b;Object.defineProperty(n,"FileReadStream",{get:o(function(){return v},"get"),set:o(function(F){v=F},"set"),enumerable:!0,configurable:!0});var E=R;Object.defineProperty(n,"FileWriteStream",{get:o(function(){return E},"get"),set:o(function(F){E=F},"set"),enumerable:!0,configurable:!0});function b(F,j){return this instanceof b?(p.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}o(b,"ReadStream");function A(){var F=this;G(F.path,F.flags,F.mode,function(j,te){j?(F.autoClose&&F.destroy(),F.emit("error",j)):(F.fd=te,F.emit("open",te),F.read())})}o(A,"ReadStream$open");function R(F,j){return this instanceof R?(_.apply(this,arguments),this):R.apply(Object.create(R.prototype),arguments)}o(R,"WriteStream");function B(){var F=this;G(F.path,F.flags,F.mode,function(j,te){j?(F.destroy(),F.emit("error",j)):(F.fd=te,F.emit("open",te))})}o(B,"WriteStream$open");function W(F,j){return new n.ReadStream(F,j)}o(W,"createReadStream");function we(F,j){return new n.WriteStream(F,j)}o(we,"createWriteStream");var z=n.open;n.open=G;function G(F,j,te,Ye){return typeof te=="function"&&(Ye=te,te=null),st(F,j,te,Ye);function st(Pt,at,ct,Ke,ie){return z(Pt,at,ct,function(V,lt){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xl([st,[Pt,at,ct,Ke],V,ie||Date.now(),Date.now()]):typeof Ke=="function"&&Ke.apply(this,arguments)})}o(st,"go$open")}return o(G,"open"),n}o(kb,"patch");function xl(n){Go("ENQUEUE",n[0].name,n[1]),jt[kr].push(n),Mb()}o(xl,"enqueue");var Km;function zC(){for(var n=Date.now(),e=0;e<jt[kr].length;++e)jt[kr][e].length>2&&(jt[kr][e][3]=n,jt[kr][e][4]=n);Mb()}o(zC,"resetQueue");function Mb(){if(clearTimeout(Km),Km=void 0,jt[kr].length!==0){var n=jt[kr].shift(),e=n[0],t=n[1],r=n[2],i=n[3],s=n[4];if(i===void 0)Go("RETRY",e.name,t),e.apply(null,t);else if(Date.now()-i>=6e4){Go("TIMEOUT",e.name,t);var a=t.pop();typeof a=="function"&&a.call(null,r)}else{var c=Date.now()-s,l=Math.max(s-i,1),u=Math.min(l*1.2,100);c>=u?(Go("RETRY",e.name,t),e.apply(null,t.concat([i]))):jt[kr].push(n)}Km===void 0&&(Km=setTimeout(Mb,0))}}o(Mb,"retry")});var pn=S(aa=>{"use strict";var QC=Sr().fromCallback,hn=Cl(),RU=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter(n=>typeof hn[n]=="function");Object.assign(aa,hn);RU.forEach(n=>{aa[n]=QC(hn[n])});aa.exists=function(n,e){return typeof e=="function"?hn.exists(n,e):new Promise(t=>hn.exists(n,t))};aa.read=function(n,e,t,r,i,s){return typeof s=="function"?hn.read(n,e,t,r,i,s):new Promise((a,c)=>{hn.read(n,e,t,r,i,(l,u,f)=>{if(l)return c(l);a({bytesRead:u,buffer:f})})})};aa.write=function(n,e,...t){return typeof t[t.length-1]=="function"?hn.write(n,e,...t):new Promise((r,i)=>{hn.write(n,e,...t,(s,a,c)=>{if(s)return i(s);r({bytesWritten:a,buffer:c})})})};aa.readv=function(n,e,...t){return typeof t[t.length-1]=="function"?hn.readv(n,e,...t):new Promise((r,i)=>{hn.readv(n,e,...t,(s,a,c)=>{if(s)return i(s);r({bytesRead:a,buffers:c})})})};aa.writev=function(n,e,...t){return typeof t[t.length-1]=="function"?hn.writev(n,e,...t):new Promise((r,i)=>{hn.writev(n,e,...t,(s,a,c)=>{if(s)return i(s);r({bytesWritten:a,buffers:c})})})};typeof hn.realpath.native=="function"?aa.realpath.native=QC(hn.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var KC=S((Ooe,YC)=>{"use strict";var PU=require("path");YC.exports.checkPath=o(function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(PU.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},"checkPath")});var eI=S((Doe,$b)=>{"use strict";var XC=pn(),{checkPath:JC}=KC(),ZC=o(n=>{let e={mode:511};return typeof n=="number"?n:{...e,...n}.mode},"getMode");$b.exports.makeDir=async(n,e)=>(JC(n),XC.mkdir(n,{mode:ZC(e),recursive:!0}));$b.exports.makeDirSync=(n,e)=>(JC(n),XC.mkdirSync(n,{mode:ZC(e),recursive:!0}))});var Bi=S((Loe,tI)=>{"use strict";var OU=Sr().fromPromise,{makeDir:FU,makeDirSync:Bb}=eI(),Vb=OU(FU);tI.exports={mkdirs:Vb,mkdirsSync:Bb,mkdirp:Vb,mkdirpSync:Bb,ensureDir:Vb,ensureDirSync:Bb}});var Ua=S((koe,nI)=>{"use strict";var DU=Sr().fromPromise,rI=pn();function NU(n){return rI.access(n).then(()=>!0).catch(()=>!1)}o(NU,"pathExists");nI.exports={pathExists:DU(NU),pathExistsSync:rI.existsSync}});var Ub=S((joe,iI)=>{"use strict";var Il=pn(),LU=Sr().fromPromise;async function kU(n,e,t){let r=await Il.open(n,"r+"),i=null;try{await Il.futimes(r,e,t)}finally{try{await Il.close(r)}catch(s){i=s}}if(i)throw i}o(kU,"utimesMillis");function MU(n,e,t){let r=Il.openSync(n,"r+");return Il.futimesSync(r,e,t),Il.closeSync(r)}o(MU,"utimesMillisSync");iI.exports={utimesMillis:LU(kU),utimesMillisSync:MU}});var zo=S((Boe,cI)=>{"use strict";var Rl=pn(),vr=require("path"),sI=Sr().fromPromise;function jU(n,e,t){let r=t.dereference?i=>Rl.stat(i,{bigint:!0}):i=>Rl.lstat(i,{bigint:!0});return Promise.all([r(n),r(e).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,s])=>({srcStat:i,destStat:s}))}o(jU,"getStats");function $U(n,e,t){let r,i=t.dereference?a=>Rl.statSync(a,{bigint:!0}):a=>Rl.lstatSync(a,{bigint:!0}),s=i(n);try{r=i(e)}catch(a){if(a.code==="ENOENT")return{srcStat:s,destStat:null};throw a}return{srcStat:s,destStat:r}}o($U,"getStatsSync");async function BU(n,e,t,r){let{srcStat:i,destStat:s}=await jU(n,e,r);if(s){if(Sf(i,s)){let a=vr.basename(n),c=vr.basename(e);if(t==="move"&&a!==c&&a.toLowerCase()===c.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${n}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${n}'.`)}if(i.isDirectory()&&qb(n,e))throw new Error(Jm(n,e,t));return{srcStat:i,destStat:s}}o(BU,"checkPaths");function VU(n,e,t,r){let{srcStat:i,destStat:s}=$U(n,e,r);if(s){if(Sf(i,s)){let a=vr.basename(n),c=vr.basename(e);if(t==="move"&&a!==c&&a.toLowerCase()===c.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${n}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${n}'.`)}if(i.isDirectory()&&qb(n,e))throw new Error(Jm(n,e,t));return{srcStat:i,destStat:s}}o(VU,"checkPathsSync");async function aI(n,e,t,r){let i=vr.resolve(vr.dirname(n)),s=vr.resolve(vr.dirname(t));if(s===i||s===vr.parse(s).root)return;let a;try{a=await Rl.stat(s,{bigint:!0})}catch(c){if(c.code==="ENOENT")return;throw c}if(Sf(e,a))throw new Error(Jm(n,t,r));return aI(n,e,s,r)}o(aI,"checkParentPaths");function oI(n,e,t,r){let i=vr.resolve(vr.dirname(n)),s=vr.resolve(vr.dirname(t));if(s===i||s===vr.parse(s).root)return;let a;try{a=Rl.statSync(s,{bigint:!0})}catch(c){if(c.code==="ENOENT")return;throw c}if(Sf(e,a))throw new Error(Jm(n,t,r));return oI(n,e,s,r)}o(oI,"checkParentPathsSync");function Sf(n,e){return e.ino!==void 0&&e.dev!==void 0&&e.ino===n.ino&&e.dev===n.dev}o(Sf,"areIdentical");function qb(n,e){let t=vr.resolve(n).split(vr.sep).filter(i=>i),r=vr.resolve(e).split(vr.sep).filter(i=>i);return t.every((i,s)=>r[s]===i)}o(qb,"isSrcSubdir");function Jm(n,e,t){return`Cannot ${t} '${n}' to a subdirectory of itself, '${e}'.`}o(Jm,"errMsg");cI.exports={checkPaths:sI(BU),checkPathsSync:VU,checkParentPaths:sI(aI),checkParentPathsSync:oI,isSrcSubdir:qb,areIdentical:Sf}});var uI=S((Uoe,lI)=>{"use strict";async function UU(n,e){let t=[];for await(let r of n)t.push(e(r).then(()=>null,i=>i??new Error("unknown error")));await Promise.all(t.map(r=>r.then(i=>{if(i!==null)throw i})))}o(UU,"asyncIteratorConcurrentProcess");lI.exports={asyncIteratorConcurrentProcess:UU}});var mI=S((Woe,pI)=>{"use strict";var Kr=pn(),vf=require("path"),{mkdirs:qU}=Bi(),{pathExists:WU}=Ua(),{utimesMillis:GU}=Ub(),bf=zo(),{asyncIteratorConcurrentProcess:zU}=uI();async function HU(n,e,t={}){typeof t=="function"&&(t={filter:t}),t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
457
457
|
|
|
458
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:r,destStat:i}=await bf.checkPaths(n,e,"copy",t);if(await bf.checkParentPaths(n,r,e,"copy"),!await dI(n,e,t))return;let a=vf.dirname(e);await WU(a)||await qU(a),await hI(i,n,e,t)}o(HU,"copy");async function dI(n,e,t){return t.filter?t.filter(n,e):!0}o(dI,"runFilter");async function hI(n,e,t,r){let s=await(r.dereference?Kr.stat:Kr.lstat)(e);if(s.isDirectory())return XU(s,n,e,t,r);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return QU(s,n,e,t,r);if(s.isSymbolicLink())return JU(n,e,t,r);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}o(hI,"getStatsAndPerformCopy");async function QU(n,e,t,r,i){if(!e)return fI(n,t,r,i);if(i.overwrite)return await Kr.unlink(r),fI(n,t,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}o(QU,"onFile");async function fI(n,e,t,r){if(await Kr.copyFile(e,t),r.preserveTimestamps){YU(n.mode)&&await KU(t,n.mode);let i=await Kr.stat(e);await GU(t,i.atime,i.mtime)}return Kr.chmod(t,n.mode)}o(fI,"copyFile");function YU(n){return(n&128)===0}o(YU,"fileIsNotWritable");function KU(n,e){return Kr.chmod(n,e|128)}o(KU,"makeFileWritable");async function XU(n,e,t,r,i){e||await Kr.mkdir(r),await zU(await Kr.opendir(t),async s=>{let a=vf.join(t,s.name),c=vf.join(r,s.name);if(await dI(a,c,i)){let{destStat:u}=await bf.checkPaths(a,c,"copy",i);await hI(u,a,c,i)}}),e||await Kr.chmod(r,n.mode)}o(XU,"onDir");async function JU(n,e,t,r){let i=await Kr.readlink(e);if(r.dereference&&(i=vf.resolve(process.cwd(),i)),!n)return Kr.symlink(i,t);let s=null;try{s=await Kr.readlink(t)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return Kr.symlink(i,t);throw a}if(r.dereference&&(s=vf.resolve(process.cwd(),s)),bf.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(bf.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return await Kr.unlink(t),Kr.symlink(i,t)}o(JU,"onLink");pI.exports=HU});var vI=S((
|
|
458
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:r,destStat:i}=await bf.checkPaths(n,e,"copy",t);if(await bf.checkParentPaths(n,r,e,"copy"),!await dI(n,e,t))return;let a=vf.dirname(e);await WU(a)||await qU(a),await hI(i,n,e,t)}o(HU,"copy");async function dI(n,e,t){return t.filter?t.filter(n,e):!0}o(dI,"runFilter");async function hI(n,e,t,r){let s=await(r.dereference?Kr.stat:Kr.lstat)(e);if(s.isDirectory())return XU(s,n,e,t,r);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return QU(s,n,e,t,r);if(s.isSymbolicLink())return JU(n,e,t,r);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}o(hI,"getStatsAndPerformCopy");async function QU(n,e,t,r,i){if(!e)return fI(n,t,r,i);if(i.overwrite)return await Kr.unlink(r),fI(n,t,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}o(QU,"onFile");async function fI(n,e,t,r){if(await Kr.copyFile(e,t),r.preserveTimestamps){YU(n.mode)&&await KU(t,n.mode);let i=await Kr.stat(e);await GU(t,i.atime,i.mtime)}return Kr.chmod(t,n.mode)}o(fI,"copyFile");function YU(n){return(n&128)===0}o(YU,"fileIsNotWritable");function KU(n,e){return Kr.chmod(n,e|128)}o(KU,"makeFileWritable");async function XU(n,e,t,r,i){e||await Kr.mkdir(r),await zU(await Kr.opendir(t),async s=>{let a=vf.join(t,s.name),c=vf.join(r,s.name);if(await dI(a,c,i)){let{destStat:u}=await bf.checkPaths(a,c,"copy",i);await hI(u,a,c,i)}}),e||await Kr.chmod(r,n.mode)}o(XU,"onDir");async function JU(n,e,t,r){let i=await Kr.readlink(e);if(r.dereference&&(i=vf.resolve(process.cwd(),i)),!n)return Kr.symlink(i,t);let s=null;try{s=await Kr.readlink(t)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return Kr.symlink(i,t);throw a}if(r.dereference&&(s=vf.resolve(process.cwd(),s)),bf.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(bf.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return await Kr.unlink(t),Kr.symlink(i,t)}o(JU,"onLink");pI.exports=HU});var vI=S((zoe,SI)=>{"use strict";var mn=Cl(),wf=require("path"),ZU=Bi().mkdirsSync,eq=Ub().utimesMillisSync,Ef=zo();function tq(n,e,t){typeof t=="function"&&(t={filter:t}),t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
459
459
|
|
|
460
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:r,destStat:i}=Ef.checkPathsSync(n,e,"copy",t);if(Ef.checkParentPathsSync(n,r,e,"copy"),t.filter&&!t.filter(n,e))return;let s=wf.dirname(e);return mn.existsSync(s)||ZU(s),gI(i,n,e,t)}o(tq,"copySync");function gI(n,e,t,r){let s=(r.dereference?mn.statSync:mn.lstatSync)(e);if(s.isDirectory())return cq(s,n,e,t,r);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return rq(s,n,e,t,r);if(s.isSymbolicLink())return fq(n,e,t,r);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}o(gI,"getStats");function rq(n,e,t,r,i){return e?nq(n,t,r,i):yI(n,t,r,i)}o(rq,"onFile");function nq(n,e,t,r){if(r.overwrite)return mn.unlinkSync(t),yI(n,e,t,r);if(r.errorOnExist)throw new Error(`'${t}' already exists`)}o(nq,"mayCopyFile");function yI(n,e,t,r){return mn.copyFileSync(e,t),r.preserveTimestamps&&iq(n.mode,e,t),Wb(t,n.mode)}o(yI,"copyFile");function iq(n,e,t){return sq(n)&&aq(t,n),oq(e,t)}o(iq,"handleTimestamps");function sq(n){return(n&128)===0}o(sq,"fileIsNotWritable");function aq(n,e){return Wb(n,e|128)}o(aq,"makeFileWritable");function Wb(n,e){return mn.chmodSync(n,e)}o(Wb,"setDestMode");function oq(n,e){let t=mn.statSync(n);return eq(e,t.atime,t.mtime)}o(oq,"setDestTimestamps");function cq(n,e,t,r,i){return e?_I(t,r,i):lq(n.mode,t,r,i)}o(cq,"onDir");function lq(n,e,t,r){return mn.mkdirSync(t),_I(e,t,r),Wb(t,n)}o(lq,"mkDirAndCopy");function _I(n,e,t){let r=mn.opendirSync(n);try{let i;for(;(i=r.readSync())!==null;)uq(i.name,n,e,t)}finally{r.closeSync()}}o(_I,"copyDir");function uq(n,e,t,r){let i=wf.join(e,n),s=wf.join(t,n);if(r.filter&&!r.filter(i,s))return;let{destStat:a}=Ef.checkPathsSync(i,s,"copy",r);return gI(a,i,s,r)}o(uq,"copyDirItem");function fq(n,e,t,r){let i=mn.readlinkSync(e);if(r.dereference&&(i=wf.resolve(process.cwd(),i)),n){let s;try{s=mn.readlinkSync(t)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return mn.symlinkSync(i,t);throw a}if(r.dereference&&(s=wf.resolve(process.cwd(),s)),Ef.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(Ef.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return dq(i,t)}else return mn.symlinkSync(i,t)}o(fq,"onLink");function dq(n,e){return mn.unlinkSync(e),mn.symlinkSync(n,e)}o(dq,"copyLink");SI.exports=tq});var Zm=S((
|
|
461
|
-
`,finalEOL:t=!0,replacer:r=null,spaces:i}={}){let s=t?e:"";return JSON.stringify(n,r,i).replace(/\n/g,e)+s}o(Uq,"stringify");function qq(n){return Buffer.isBuffer(n)&&(n=n.toString("utf8")),n.replace(/^\uFEFF/,"")}o(qq,"stripBom");iR.exports={stringify:Uq,stripBom:qq}});var cR=S((uce,oR)=>{var Pl;try{Pl=Cl()}catch{Pl=require("fs")}var tg=Sr(),{stringify:sR,stripBom:aR}=eg();async function Wq(n,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||Pl,r="throws"in e?e.throws:!0,i=await tg.fromCallback(t.readFile)(n,e);i=aR(i);let s;try{s=JSON.parse(i,e?e.reviver:null)}catch(a){if(r)throw a.message=`${n}: ${a.message}`,a;return null}return s}o(Wq,"_readFile");var Gq=tg.fromPromise(Wq);function zq(n,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||Pl,r="throws"in e?e.throws:!0;try{let i=t.readFileSync(n,e);return i=aR(i),JSON.parse(i,e.reviver)}catch(i){if(r)throw i.message=`${n}: ${i.message}`,i;return null}}o(zq,"readFileSync");async function Hq(n,e,t={}){let r=t.fs||Pl,i=sR(e,t);await tg.fromCallback(r.writeFile)(n,i,t)}o(Hq,"_writeFile");var Qq=tg.fromPromise(Hq);function Yq(n,e,t={}){let r=t.fs||Pl,i=sR(e,t);return r.writeFileSync(n,i,t)}o(Yq,"writeFileSync");oR.exports={readFile:Gq,readFileSync:zq,writeFile:Qq,writeFileSync:Yq}});var uR=S((dce,lR)=>{"use strict";var rg=cR();lR.exports={readJson:rg.readFile,readJsonSync:rg.readFileSync,writeJson:rg.writeFile,writeJsonSync:rg.writeFileSync}});var ng=S((hce,hR)=>{"use strict";var Kq=Sr().fromPromise,Gb=pn(),fR=require("path"),dR=Bi(),Xq=Ua().pathExists;async function Jq(n,e,t="utf-8"){let r=fR.dirname(n);return await Xq(r)||await dR.mkdirs(r),Gb.writeFile(n,e,t)}o(Jq,"outputFile");function Zq(n,...e){let t=fR.dirname(n);Gb.existsSync(t)||dR.mkdirsSync(t),Gb.writeFileSync(n,...e)}o(Zq,"outputFileSync");hR.exports={outputFile:Kq(Jq),outputFileSync:Zq}});var mR=S((mce,pR)=>{"use strict";var{stringify:eW}=eg(),{outputFile:tW}=ng();async function rW(n,e,t={}){let r=eW(e,t);await tW(n,r,t)}o(rW,"outputJson");pR.exports=rW});var yR=S((yce,gR)=>{"use strict";var{stringify:nW}=eg(),{outputFileSync:iW}=ng();function sW(n,e,t){let r=nW(e,t);iW(n,r,t)}o(sW,"outputJsonSync");gR.exports=sW});var SR=S((Sce,_R)=>{"use strict";var aW=Sr().fromPromise,gn=uR();gn.outputJson=aW(mR());gn.outputJsonSync=yR();gn.outputJSON=gn.outputJson;gn.outputJSONSync=gn.outputJsonSync;gn.writeJSON=gn.writeJson;gn.writeJSONSync=gn.writeJsonSync;gn.readJSON=gn.readJson;gn.readJSONSync=gn.readJsonSync;_R.exports=gn});var TR=S((vce,ER)=>{"use strict";var oW=pn(),vR=require("path"),{copy:cW}=Zm(),{remove:wR}=Tf(),{mkdirp:lW}=Bi(),{pathExists:uW}=Ua(),bR=zo();async function fW(n,e,t={}){let r=t.overwrite||t.clobber||!1,{srcStat:i,isChangingCase:s=!1}=await bR.checkPaths(n,e,"move",t);await bR.checkParentPaths(n,i,e,"move");let a=vR.dirname(e);return vR.parse(a).root!==a&&await lW(a),dW(n,e,r,s)}o(fW,"move");async function dW(n,e,t,r){if(!r){if(t)await wR(e);else if(await uW(e))throw new Error("dest already exists.")}try{await oW.rename(n,e)}catch(i){if(i.code!=="EXDEV")throw i;await hW(n,e,t)}}o(dW,"doRename");async function hW(n,e,t){return await cW(n,e,{overwrite:t,errorOnExist:!0,preserveTimestamps:!0}),wR(n)}o(hW,"moveAcrossDevice");ER.exports=fW});var RR=S((wce,IR)=>{"use strict";var xR=Cl(),Hb=require("path"),pW=Zm().copySync,CR=Tf().removeSync,mW=Bi().mkdirpSync,AR=zo();function gW(n,e,t){t=t||{};let r=t.overwrite||t.clobber||!1,{srcStat:i,isChangingCase:s=!1}=AR.checkPathsSync(n,e,"move",t);return AR.checkParentPathsSync(n,i,e,"move"),yW(e)||mW(Hb.dirname(e)),_W(n,e,r,s)}o(gW,"moveSync");function yW(n){let e=Hb.dirname(n);return Hb.parse(e).root===e}o(yW,"isParentRoot");function _W(n,e,t,r){if(r)return zb(n,e,t);if(t)return CR(e),zb(n,e,t);if(xR.existsSync(e))throw new Error("dest already exists.");return zb(n,e,t)}o(_W,"doRename");function zb(n,e,t){try{xR.renameSync(n,e)}catch(r){if(r.code!=="EXDEV")throw r;return SW(n,e,t)}}o(zb,"rename");function SW(n,e,t){return pW(n,e,{overwrite:t,errorOnExist:!0,preserveTimestamps:!0}),CR(n)}o(SW,"moveAcrossDevice");IR.exports=gW});var OR=S((Tce,PR)=>{"use strict";var vW=Sr().fromPromise;PR.exports={move:vW(TR()),moveSync:RR()}});var Ga=S((Ace,FR)=>{"use strict";FR.exports={...pn(),...Zm(),...OI(),...nR(),...SR(),...Bi(),...OR(),...ng(),...Ua(),...Tf()}});var TO=S((nhe,EO)=>{"use strict";EO.exports=bO;function bO(n,e,t){n instanceof RegExp&&(n=vO(n,t)),e instanceof RegExp&&(e=vO(e,t));var r=wO(n,e,t);return r&&{start:r[0],end:r[1],pre:t.slice(0,r[0]),body:t.slice(r[0]+n.length,r[1]),post:t.slice(r[1]+e.length)}}o(bO,"balanced");function vO(n,e){var t=e.match(n);return t?t[0]:null}o(vO,"maybeMatch");bO.range=wO;function wO(n,e,t){var r,i,s,a,c,l=t.indexOf(n),u=t.indexOf(e,l+1),f=l;if(l>=0&&u>0){if(n===e)return[l,u];for(r=[],s=t.length;f>=0&&!c;)f==l?(r.push(f),l=t.indexOf(n,f+1)):r.length==1?c=[r.pop(),u]:(i=r.pop(),i<s&&(s=i,a=u),u=t.indexOf(e,f+1)),f=l<u&&l>=0?l:u;r.length&&(c=[s,a])}return c}o(wO,"range")});var FO=S((she,OO)=>{var AO=TO();OO.exports=tQ;var xO="\0SLASH"+Math.random()+"\0",CO="\0OPEN"+Math.random()+"\0",$w="\0CLOSE"+Math.random()+"\0",IO="\0COMMA"+Math.random()+"\0",RO="\0PERIOD"+Math.random()+"\0";function jw(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}o(jw,"numeric");function ZH(n){return n.split("\\\\").join(xO).split("\\{").join(CO).split("\\}").join($w).split("\\,").join(IO).split("\\.").join(RO)}o(ZH,"escapeBraces");function eQ(n){return n.split(xO).join("\\").split(CO).join("{").split($w).join("}").split(IO).join(",").split(RO).join(".")}o(eQ,"unescapeBraces");function PO(n){if(!n)return[""];var e=[],t=AO("{","}",n);if(!t)return n.split(",");var r=t.pre,i=t.body,s=t.post,a=r.split(",");a[a.length-1]+="{"+i+"}";var c=PO(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}o(PO,"parseCommaParts");function tQ(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),zf(ZH(n),!0).map(eQ)):[]}o(tQ,"expandTop");function rQ(n){return"{"+n+"}"}o(rQ,"embrace");function nQ(n){return/^-?0\d/.test(n)}o(nQ,"isPadded");function iQ(n,e){return n<=e}o(iQ,"lte");function sQ(n,e){return n>=e}o(sQ,"gte");function zf(n,e){var t=[],r=AO("{","}",n);if(!r)return[n];var i=r.pre,s=r.post.length?zf(r.post,!1):[""];if(/\$$/.test(r.pre))for(var a=0;a<s.length;a++){var c=i+"{"+r.body+"}"+s[a];t.push(c)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),f=l||u,d=r.body.indexOf(",")>=0;if(!f&&!d)return r.post.match(/,(?!,).*\}/)?(n=r.pre+"{"+r.body+$w+r.post,zf(n)):[n];var h;if(f)h=r.body.split(/\.\./);else if(h=PO(r.body),h.length===1&&(h=zf(h[0],!1).map(rQ),h.length===1))return s.map(function(j){return r.pre+h[0]+j});var p;if(f){var _=jw(h[0]),v=jw(h[1]),E=Math.max(h[0].length,h[1].length),b=h.length==3?Math.max(Math.abs(jw(h[2])),1):1,A=iQ,R=v<_;R&&(b*=-1,A=sQ);var B=h.some(nQ);p=[];for(var W=_;A(W,v);W+=b){var we;if(u)we=String.fromCharCode(W),we==="\\"&&(we="");else if(we=String(W),B){var z=E-we.length;if(z>0){var G=new Array(z+1).join("0");W<0?we="-"+G+we.slice(1):we=G+we}}p.push(we)}}else{p=[];for(var F=0;F<h.length;F++)p.push.apply(p,zf(h[F],!1))}for(var F=0;F<p.length;F++)for(var a=0;a<s.length;a++){var c=i+p[F]+s[a];(!e||f||c)&&t.push(c)}}return t}o(zf,"expand")});var bD=S(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.createPathBasedTargetResolver=pa;Dn.createCreateRelatedTaskService=JY;Dn.createCreateRelatedProjectService=ZY;Dn.createArchiveAssetService=eK;Dn.createCleanPropertiesService=tK;Dn.createFixMissingLabelService=rK;Dn.createRenameToUidService=nK;Dn.createRepairFolderService=iK;Dn.createPlanForEveningService=sK;Dn.createUpdatePropertyService=aK;Dn.createRemovePropertyService=oK;Dn.createSetStatusService=cK;function pa(n){return{resolveFile(e){let t=n.getAbstractFileByPath(`${e}.md`);if(!t||!("basename"in t))throw new Error(`Cannot resolve target file for IRI: ${e}`);return t}}}o(pa,"createPathBasedTargetResolver");function JY(n,e,t=pa(n)){return{async execute(r,i){let s=i?.label;if(!s)throw new Error("createRelatedTask requires userInput.label");let a=t.resolveFile(r),c=n.getFrontmatter(a)??{},l=a.parent?.path||"",u={ems__Effort_status:'"[[ems__EffortStatusDraft]]"'},f=i?.parentProperty;f&&a.basename&&(u[f]=`"[[${a.basename}]]"`),await e.createAsset({className:"ems__Task",label:s,folderPath:l,propertyValues:u,parentFile:a,parentMetadata:c})}}}o(JY,"createCreateRelatedTaskService");function ZY(n,e,t=pa(n)){return{async execute(r,i){let s=i?.label;if(!s)throw new Error("createRelatedProject requires userInput.label");let a=t.resolveFile(r),c=n.getFrontmatter(a)??{},l=a.parent?.path||"",u={ems__Effort_status:'"[[ems__EffortStatusDraft]]"'},f=i?.parentProperty;f&&a.basename&&(u[f]=`"[[${a.basename}]]"`),await e.createAsset({className:"ems__Project",label:s,folderPath:l,propertyValues:u,parentFile:a,parentMetadata:c})}}}o(ZY,"createCreateRelatedProjectService");function eK(n,e,t=pa(n)){return{async execute(r){let i=t.resolveFile(r);await e.archiveAsset(i)}}}o(eK,"createArchiveAssetService");function tK(n,e,t=pa(n)){return{async execute(r){let i=t.resolveFile(r);await e.cleanEmptyProperties(i)}}}o(tK,"createCleanPropertiesService");function rK(n,e,t=pa(n)){return{async execute(r){let i=t.resolveFile(r);await e.fixMissingLabel(i)}}}o(rK,"createFixMissingLabelService");function nK(n,e,t=pa(n)){return{async execute(r){let i=t.resolveFile(r),s=n.getFrontmatter(i)??{};await e.renameToUid(i,s)}}}o(nK,"createRenameToUidService");function iK(n,e,t=pa(n)){return{async execute(r){let i=t.resolveFile(r),s=n.getFrontmatter(i)??{},a=await e.getExpectedFolder(i,s);if(a===null)throw new Error("repairFolder: cannot determine expected folder (missing exo__Asset_isDefinedBy or referenced asset not found)");(i.parent?.path??"")!==a&&await e.repairFolder(i,a)}}}o(iK,"createRepairFolderService");function sK(n,e,t=pa(n)){return{async execute(r){let i=t.resolveFile(r);await e.planForEvening(i)}}}o(sK,"createPlanForEveningService");function aK(n,e,t){return{async execute(r,i){let s=i?.property,a=i?.value;if(!s)throw new Error("updateProperty requires userInput.property");if(a===void 0)throw new Error("updateProperty requires userInput.value");let c=await t.resolveTargetPath(r),l=await n.readFile(c),u=e.updateProperty(l,s,a);await n.updateFile(c,u)}}}o(aK,"createUpdatePropertyService");function oK(n,e,t){return{async execute(r,i){let s=i?.property;if(!s)throw new Error("removeProperty requires userInput.property");let a=await t.resolveTargetPath(r),c=await n.readFile(a),l=e.removeProperty(c,s);await n.updateFile(a,l)}}}o(oK,"createRemovePropertyService");function cK(n,e,t){return{async execute(r,i){let s=i?.statusUID;if(!s)throw new Error("setStatus requires userInput.statusUID");let a=await t.resolveTargetPath(r),c=await n.readFile(a),l=e.updateProperty(c,"ems__Effort_status",`"[[${s}]]"`);await n.updateFile(a,l)}}}o(cK,"createSetStatusService")});var wD=S(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.createPathBasedTargetResolver=At.createSetStatusService=At.createRemovePropertyService=At.createUpdatePropertyService=At.createPlanForEveningService=At.createRepairFolderService=At.createRenameToUidService=At.createFixMissingLabelService=At.createCleanPropertiesService=At.createArchiveAssetService=At.createCreateRelatedProjectService=At.createCreateRelatedTaskService=void 0;var ci=bD();Object.defineProperty(At,"createCreateRelatedTaskService",{enumerable:!0,get:o(function(){return ci.createCreateRelatedTaskService},"get")});Object.defineProperty(At,"createCreateRelatedProjectService",{enumerable:!0,get:o(function(){return ci.createCreateRelatedProjectService},"get")});Object.defineProperty(At,"createArchiveAssetService",{enumerable:!0,get:o(function(){return ci.createArchiveAssetService},"get")});Object.defineProperty(At,"createCleanPropertiesService",{enumerable:!0,get:o(function(){return ci.createCleanPropertiesService},"get")});Object.defineProperty(At,"createFixMissingLabelService",{enumerable:!0,get:o(function(){return ci.createFixMissingLabelService},"get")});Object.defineProperty(At,"createRenameToUidService",{enumerable:!0,get:o(function(){return ci.createRenameToUidService},"get")});Object.defineProperty(At,"createRepairFolderService",{enumerable:!0,get:o(function(){return ci.createRepairFolderService},"get")});Object.defineProperty(At,"createPlanForEveningService",{enumerable:!0,get:o(function(){return ci.createPlanForEveningService},"get")});Object.defineProperty(At,"createUpdatePropertyService",{enumerable:!0,get:o(function(){return ci.createUpdatePropertyService},"get")});Object.defineProperty(At,"createRemovePropertyService",{enumerable:!0,get:o(function(){return ci.createRemovePropertyService},"get")});Object.defineProperty(At,"createSetStatusService",{enumerable:!0,get:o(function(){return ci.createSetStatusService},"get")});Object.defineProperty(At,"createPathBasedTargetResolver",{enumerable:!0,get:o(function(){return ci.createPathBasedTargetResolver},"get")})});var CK={};Dy(CK,{createProgram:()=>BD});module.exports=Bd(CK);var I_e=Y(Vd());var P2=Y(R2(),1),{program:QK,createCommand:YK,createArgument:KK,createOption:XK,CommanderError:JK,InvalidArgumentError:ZK,InvalidOptionArgumentError:eX,Command:xe,Argument:tX,Option:rX,Help:nX}=P2.default;var Wl=require("fs"),Gf=require("path"),qt=Y(Mt());var sr=Y(Ga()),ar=Y(require("path"));function QR(n){return typeof n>"u"||n===null}o(QR,"isNothing");function bW(n){return typeof n=="object"&&n!==null}o(bW,"isObject");function wW(n){return Array.isArray(n)?n:QR(n)?[]:[n]}o(wW,"toArray");function EW(n,e){var t,r,i,s;if(e)for(s=Object.keys(e),t=0,r=s.length;t<r;t+=1)i=s[t],n[i]=e[i];return n}o(EW,"extend");function TW(n,e){var t="",r;for(r=0;r<e;r+=1)t+=n;return t}o(TW,"repeat");function AW(n){return n===0&&Number.NEGATIVE_INFINITY===1/n}o(AW,"isNegativeZero");var xW=QR,CW=bW,IW=wW,RW=TW,PW=AW,OW=EW,dr={isNothing:xW,isObject:CW,toArray:IW,repeat:RW,isNegativeZero:PW,extend:OW};function YR(n,e){var t="",r=n.reason||"(unknown reason)";return n.mark?(n.mark.name&&(t+='in "'+n.mark.name+'" '),t+="("+(n.mark.line+1)+":"+(n.mark.column+1)+")",!e&&n.mark.snippet&&(t+=`
|
|
460
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:r,destStat:i}=Ef.checkPathsSync(n,e,"copy",t);if(Ef.checkParentPathsSync(n,r,e,"copy"),t.filter&&!t.filter(n,e))return;let s=wf.dirname(e);return mn.existsSync(s)||ZU(s),gI(i,n,e,t)}o(tq,"copySync");function gI(n,e,t,r){let s=(r.dereference?mn.statSync:mn.lstatSync)(e);if(s.isDirectory())return cq(s,n,e,t,r);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return rq(s,n,e,t,r);if(s.isSymbolicLink())return fq(n,e,t,r);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}o(gI,"getStats");function rq(n,e,t,r,i){return e?nq(n,t,r,i):yI(n,t,r,i)}o(rq,"onFile");function nq(n,e,t,r){if(r.overwrite)return mn.unlinkSync(t),yI(n,e,t,r);if(r.errorOnExist)throw new Error(`'${t}' already exists`)}o(nq,"mayCopyFile");function yI(n,e,t,r){return mn.copyFileSync(e,t),r.preserveTimestamps&&iq(n.mode,e,t),Wb(t,n.mode)}o(yI,"copyFile");function iq(n,e,t){return sq(n)&&aq(t,n),oq(e,t)}o(iq,"handleTimestamps");function sq(n){return(n&128)===0}o(sq,"fileIsNotWritable");function aq(n,e){return Wb(n,e|128)}o(aq,"makeFileWritable");function Wb(n,e){return mn.chmodSync(n,e)}o(Wb,"setDestMode");function oq(n,e){let t=mn.statSync(n);return eq(e,t.atime,t.mtime)}o(oq,"setDestTimestamps");function cq(n,e,t,r,i){return e?_I(t,r,i):lq(n.mode,t,r,i)}o(cq,"onDir");function lq(n,e,t,r){return mn.mkdirSync(t),_I(e,t,r),Wb(t,n)}o(lq,"mkDirAndCopy");function _I(n,e,t){let r=mn.opendirSync(n);try{let i;for(;(i=r.readSync())!==null;)uq(i.name,n,e,t)}finally{r.closeSync()}}o(_I,"copyDir");function uq(n,e,t,r){let i=wf.join(e,n),s=wf.join(t,n);if(r.filter&&!r.filter(i,s))return;let{destStat:a}=Ef.checkPathsSync(i,s,"copy",r);return gI(a,i,s,r)}o(uq,"copyDirItem");function fq(n,e,t,r){let i=mn.readlinkSync(e);if(r.dereference&&(i=wf.resolve(process.cwd(),i)),n){let s;try{s=mn.readlinkSync(t)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return mn.symlinkSync(i,t);throw a}if(r.dereference&&(s=wf.resolve(process.cwd(),s)),Ef.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(Ef.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return dq(i,t)}else return mn.symlinkSync(i,t)}o(fq,"onLink");function dq(n,e){return mn.unlinkSync(e),mn.symlinkSync(n,e)}o(dq,"copyLink");SI.exports=tq});var Zm=S((Qoe,bI)=>{"use strict";var hq=Sr().fromPromise;bI.exports={copy:hq(mI()),copySync:vI()}});var Tf=S((Yoe,EI)=>{"use strict";var wI=Cl(),pq=Sr().fromCallback;function mq(n,e){wI.rm(n,{recursive:!0,force:!0},e)}o(mq,"remove");function gq(n){wI.rmSync(n,{recursive:!0,force:!0})}o(gq,"removeSync");EI.exports={remove:pq(mq),removeSync:gq}});var OI=S((Xoe,PI)=>{"use strict";var yq=Sr().fromPromise,xI=pn(),CI=require("path"),II=Bi(),RI=Tf(),TI=yq(o(async function(e){let t;try{t=await xI.readdir(e)}catch{return II.mkdirs(e)}return Promise.all(t.map(r=>RI.remove(CI.join(e,r))))},"emptyDir"));function AI(n){let e;try{e=xI.readdirSync(n)}catch{return II.mkdirsSync(n)}e.forEach(t=>{t=CI.join(n,t),RI.removeSync(t)})}o(AI,"emptyDirSync");PI.exports={emptyDirSync:AI,emptydirSync:AI,emptyDir:TI,emptydir:TI}});var LI=S((Zoe,NI)=>{"use strict";var _q=Sr().fromPromise,FI=require("path"),oa=pn(),DI=Bi();async function Sq(n){let e;try{e=await oa.stat(n)}catch{}if(e&&e.isFile())return;let t=FI.dirname(n),r=null;try{r=await oa.stat(t)}catch(i){if(i.code==="ENOENT"){await DI.mkdirs(t),await oa.writeFile(n,"");return}else throw i}r.isDirectory()?await oa.writeFile(n,""):await oa.readdir(t)}o(Sq,"createFile");function vq(n){let e;try{e=oa.statSync(n)}catch{}if(e&&e.isFile())return;let t=FI.dirname(n);try{oa.statSync(t).isDirectory()||oa.readdirSync(t)}catch(r){if(r&&r.code==="ENOENT")DI.mkdirsSync(t);else throw r}oa.writeFileSync(n,"")}o(vq,"createFileSync");NI.exports={createFile:_q(Sq),createFileSync:vq}});var BI=S((tce,$I)=>{"use strict";var bq=Sr().fromPromise,kI=require("path"),qa=pn(),MI=Bi(),{pathExists:wq}=Ua(),{areIdentical:jI}=zo();async function Eq(n,e){let t;try{t=await qa.lstat(e)}catch{}let r;try{r=await qa.lstat(n)}catch(a){throw a.message=a.message.replace("lstat","ensureLink"),a}if(t&&jI(r,t))return;let i=kI.dirname(e);await wq(i)||await MI.mkdirs(i),await qa.link(n,e)}o(Eq,"createLink");function Tq(n,e){let t;try{t=qa.lstatSync(e)}catch{}try{let s=qa.lstatSync(n);if(t&&jI(s,t))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let r=kI.dirname(e);return qa.existsSync(r)||MI.mkdirsSync(r),qa.linkSync(n,e)}o(Tq,"createLinkSync");$I.exports={createLink:bq(Eq),createLinkSync:Tq}});var UI=S((nce,VI)=>{"use strict";var Wa=require("path"),Af=pn(),{pathExists:Aq}=Ua(),xq=Sr().fromPromise;async function Cq(n,e){if(Wa.isAbsolute(n)){try{await Af.lstat(n)}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return{toCwd:n,toDst:n}}let t=Wa.dirname(e),r=Wa.join(t,n);if(await Aq(r))return{toCwd:r,toDst:n};try{await Af.lstat(n)}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return{toCwd:n,toDst:Wa.relative(t,n)}}o(Cq,"symlinkPaths");function Iq(n,e){if(Wa.isAbsolute(n)){if(!Af.existsSync(n))throw new Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}let t=Wa.dirname(e),r=Wa.join(t,n);if(Af.existsSync(r))return{toCwd:r,toDst:n};if(!Af.existsSync(n))throw new Error("relative srcpath does not exist");return{toCwd:n,toDst:Wa.relative(t,n)}}o(Iq,"symlinkPathsSync");VI.exports={symlinkPaths:xq(Cq),symlinkPathsSync:Iq}});var GI=S((sce,WI)=>{"use strict";var qI=pn(),Rq=Sr().fromPromise;async function Pq(n,e){if(e)return e;let t;try{t=await qI.lstat(n)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}o(Pq,"symlinkType");function Oq(n,e){if(e)return e;let t;try{t=qI.lstatSync(n)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}o(Oq,"symlinkTypeSync");WI.exports={symlinkType:Rq(Pq),symlinkTypeSync:Oq}});var YI=S((oce,QI)=>{"use strict";var Fq=Sr().fromPromise,zI=require("path"),Ss=pn(),{mkdirs:Dq,mkdirsSync:Nq}=Bi(),{symlinkPaths:Lq,symlinkPathsSync:kq}=UI(),{symlinkType:Mq,symlinkTypeSync:jq}=GI(),{pathExists:$q}=Ua(),{areIdentical:HI}=zo();async function Bq(n,e,t){let r;try{r=await Ss.lstat(e)}catch{}if(r&&r.isSymbolicLink()){let[c,l]=await Promise.all([Ss.stat(n),Ss.stat(e)]);if(HI(c,l))return}let i=await Lq(n,e);n=i.toDst;let s=await Mq(i.toCwd,t),a=zI.dirname(e);return await $q(a)||await Dq(a),Ss.symlink(n,e,s)}o(Bq,"createSymlink");function Vq(n,e,t){let r;try{r=Ss.lstatSync(e)}catch{}if(r&&r.isSymbolicLink()){let c=Ss.statSync(n),l=Ss.statSync(e);if(HI(c,l))return}let i=kq(n,e);n=i.toDst,t=jq(i.toCwd,t);let s=zI.dirname(e);return Ss.existsSync(s)||Nq(s),Ss.symlinkSync(n,e,t)}o(Vq,"createSymlinkSync");QI.exports={createSymlink:Fq(Bq),createSymlinkSync:Vq}});var nR=S((lce,rR)=>{"use strict";var{createFile:KI,createFileSync:XI}=LI(),{createLink:JI,createLinkSync:ZI}=BI(),{createSymlink:eR,createSymlinkSync:tR}=YI();rR.exports={createFile:KI,createFileSync:XI,ensureFile:KI,ensureFileSync:XI,createLink:JI,createLinkSync:ZI,ensureLink:JI,ensureLinkSync:ZI,createSymlink:eR,createSymlinkSync:tR,ensureSymlink:eR,ensureSymlinkSync:tR}});var eg=S((uce,iR)=>{function Uq(n,{EOL:e=`
|
|
461
|
+
`,finalEOL:t=!0,replacer:r=null,spaces:i}={}){let s=t?e:"";return JSON.stringify(n,r,i).replace(/\n/g,e)+s}o(Uq,"stringify");function qq(n){return Buffer.isBuffer(n)&&(n=n.toString("utf8")),n.replace(/^\uFEFF/,"")}o(qq,"stripBom");iR.exports={stringify:Uq,stripBom:qq}});var cR=S((dce,oR)=>{var Pl;try{Pl=Cl()}catch{Pl=require("fs")}var tg=Sr(),{stringify:sR,stripBom:aR}=eg();async function Wq(n,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||Pl,r="throws"in e?e.throws:!0,i=await tg.fromCallback(t.readFile)(n,e);i=aR(i);let s;try{s=JSON.parse(i,e?e.reviver:null)}catch(a){if(r)throw a.message=`${n}: ${a.message}`,a;return null}return s}o(Wq,"_readFile");var Gq=tg.fromPromise(Wq);function zq(n,e={}){typeof e=="string"&&(e={encoding:e});let t=e.fs||Pl,r="throws"in e?e.throws:!0;try{let i=t.readFileSync(n,e);return i=aR(i),JSON.parse(i,e.reviver)}catch(i){if(r)throw i.message=`${n}: ${i.message}`,i;return null}}o(zq,"readFileSync");async function Hq(n,e,t={}){let r=t.fs||Pl,i=sR(e,t);await tg.fromCallback(r.writeFile)(n,i,t)}o(Hq,"_writeFile");var Qq=tg.fromPromise(Hq);function Yq(n,e,t={}){let r=t.fs||Pl,i=sR(e,t);return r.writeFileSync(n,i,t)}o(Yq,"writeFileSync");oR.exports={readFile:Gq,readFileSync:zq,writeFile:Qq,writeFileSync:Yq}});var uR=S((pce,lR)=>{"use strict";var rg=cR();lR.exports={readJson:rg.readFile,readJsonSync:rg.readFileSync,writeJson:rg.writeFile,writeJsonSync:rg.writeFileSync}});var ng=S((mce,hR)=>{"use strict";var Kq=Sr().fromPromise,Gb=pn(),fR=require("path"),dR=Bi(),Xq=Ua().pathExists;async function Jq(n,e,t="utf-8"){let r=fR.dirname(n);return await Xq(r)||await dR.mkdirs(r),Gb.writeFile(n,e,t)}o(Jq,"outputFile");function Zq(n,...e){let t=fR.dirname(n);Gb.existsSync(t)||dR.mkdirsSync(t),Gb.writeFileSync(n,...e)}o(Zq,"outputFileSync");hR.exports={outputFile:Kq(Jq),outputFileSync:Zq}});var mR=S((yce,pR)=>{"use strict";var{stringify:eW}=eg(),{outputFile:tW}=ng();async function rW(n,e,t={}){let r=eW(e,t);await tW(n,r,t)}o(rW,"outputJson");pR.exports=rW});var yR=S((Sce,gR)=>{"use strict";var{stringify:nW}=eg(),{outputFileSync:iW}=ng();function sW(n,e,t){let r=nW(e,t);iW(n,r,t)}o(sW,"outputJsonSync");gR.exports=sW});var SR=S((bce,_R)=>{"use strict";var aW=Sr().fromPromise,gn=uR();gn.outputJson=aW(mR());gn.outputJsonSync=yR();gn.outputJSON=gn.outputJson;gn.outputJSONSync=gn.outputJsonSync;gn.writeJSON=gn.writeJson;gn.writeJSONSync=gn.writeJsonSync;gn.readJSON=gn.readJson;gn.readJSONSync=gn.readJsonSync;_R.exports=gn});var TR=S((wce,ER)=>{"use strict";var oW=pn(),vR=require("path"),{copy:cW}=Zm(),{remove:wR}=Tf(),{mkdirp:lW}=Bi(),{pathExists:uW}=Ua(),bR=zo();async function fW(n,e,t={}){let r=t.overwrite||t.clobber||!1,{srcStat:i,isChangingCase:s=!1}=await bR.checkPaths(n,e,"move",t);await bR.checkParentPaths(n,i,e,"move");let a=vR.dirname(e);return vR.parse(a).root!==a&&await lW(a),dW(n,e,r,s)}o(fW,"move");async function dW(n,e,t,r){if(!r){if(t)await wR(e);else if(await uW(e))throw new Error("dest already exists.")}try{await oW.rename(n,e)}catch(i){if(i.code!=="EXDEV")throw i;await hW(n,e,t)}}o(dW,"doRename");async function hW(n,e,t){return await cW(n,e,{overwrite:t,errorOnExist:!0,preserveTimestamps:!0}),wR(n)}o(hW,"moveAcrossDevice");ER.exports=fW});var RR=S((Tce,IR)=>{"use strict";var xR=Cl(),Hb=require("path"),pW=Zm().copySync,CR=Tf().removeSync,mW=Bi().mkdirpSync,AR=zo();function gW(n,e,t){t=t||{};let r=t.overwrite||t.clobber||!1,{srcStat:i,isChangingCase:s=!1}=AR.checkPathsSync(n,e,"move",t);return AR.checkParentPathsSync(n,i,e,"move"),yW(e)||mW(Hb.dirname(e)),_W(n,e,r,s)}o(gW,"moveSync");function yW(n){let e=Hb.dirname(n);return Hb.parse(e).root===e}o(yW,"isParentRoot");function _W(n,e,t,r){if(r)return zb(n,e,t);if(t)return CR(e),zb(n,e,t);if(xR.existsSync(e))throw new Error("dest already exists.");return zb(n,e,t)}o(_W,"doRename");function zb(n,e,t){try{xR.renameSync(n,e)}catch(r){if(r.code!=="EXDEV")throw r;return SW(n,e,t)}}o(zb,"rename");function SW(n,e,t){return pW(n,e,{overwrite:t,errorOnExist:!0,preserveTimestamps:!0}),CR(n)}o(SW,"moveAcrossDevice");IR.exports=gW});var OR=S((xce,PR)=>{"use strict";var vW=Sr().fromPromise;PR.exports={move:vW(TR()),moveSync:RR()}});var Ga=S((Cce,FR)=>{"use strict";FR.exports={...pn(),...Zm(),...OI(),...nR(),...SR(),...Bi(),...OR(),...ng(),...Ua(),...Tf()}});var TO=S((she,EO)=>{"use strict";EO.exports=bO;function bO(n,e,t){n instanceof RegExp&&(n=vO(n,t)),e instanceof RegExp&&(e=vO(e,t));var r=wO(n,e,t);return r&&{start:r[0],end:r[1],pre:t.slice(0,r[0]),body:t.slice(r[0]+n.length,r[1]),post:t.slice(r[1]+e.length)}}o(bO,"balanced");function vO(n,e){var t=e.match(n);return t?t[0]:null}o(vO,"maybeMatch");bO.range=wO;function wO(n,e,t){var r,i,s,a,c,l=t.indexOf(n),u=t.indexOf(e,l+1),f=l;if(l>=0&&u>0){if(n===e)return[l,u];for(r=[],s=t.length;f>=0&&!c;)f==l?(r.push(f),l=t.indexOf(n,f+1)):r.length==1?c=[r.pop(),u]:(i=r.pop(),i<s&&(s=i,a=u),u=t.indexOf(e,f+1)),f=l<u&&l>=0?l:u;r.length&&(c=[s,a])}return c}o(wO,"range")});var FO=S((ohe,OO)=>{var AO=TO();OO.exports=tQ;var xO="\0SLASH"+Math.random()+"\0",CO="\0OPEN"+Math.random()+"\0",$w="\0CLOSE"+Math.random()+"\0",IO="\0COMMA"+Math.random()+"\0",RO="\0PERIOD"+Math.random()+"\0";function jw(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}o(jw,"numeric");function ZH(n){return n.split("\\\\").join(xO).split("\\{").join(CO).split("\\}").join($w).split("\\,").join(IO).split("\\.").join(RO)}o(ZH,"escapeBraces");function eQ(n){return n.split(xO).join("\\").split(CO).join("{").split($w).join("}").split(IO).join(",").split(RO).join(".")}o(eQ,"unescapeBraces");function PO(n){if(!n)return[""];var e=[],t=AO("{","}",n);if(!t)return n.split(",");var r=t.pre,i=t.body,s=t.post,a=r.split(",");a[a.length-1]+="{"+i+"}";var c=PO(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}o(PO,"parseCommaParts");function tQ(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),zf(ZH(n),!0).map(eQ)):[]}o(tQ,"expandTop");function rQ(n){return"{"+n+"}"}o(rQ,"embrace");function nQ(n){return/^-?0\d/.test(n)}o(nQ,"isPadded");function iQ(n,e){return n<=e}o(iQ,"lte");function sQ(n,e){return n>=e}o(sQ,"gte");function zf(n,e){var t=[],r=AO("{","}",n);if(!r)return[n];var i=r.pre,s=r.post.length?zf(r.post,!1):[""];if(/\$$/.test(r.pre))for(var a=0;a<s.length;a++){var c=i+"{"+r.body+"}"+s[a];t.push(c)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),f=l||u,d=r.body.indexOf(",")>=0;if(!f&&!d)return r.post.match(/,(?!,).*\}/)?(n=r.pre+"{"+r.body+$w+r.post,zf(n)):[n];var h;if(f)h=r.body.split(/\.\./);else if(h=PO(r.body),h.length===1&&(h=zf(h[0],!1).map(rQ),h.length===1))return s.map(function(j){return r.pre+h[0]+j});var p;if(f){var _=jw(h[0]),v=jw(h[1]),E=Math.max(h[0].length,h[1].length),b=h.length==3?Math.max(Math.abs(jw(h[2])),1):1,A=iQ,R=v<_;R&&(b*=-1,A=sQ);var B=h.some(nQ);p=[];for(var W=_;A(W,v);W+=b){var we;if(u)we=String.fromCharCode(W),we==="\\"&&(we="");else if(we=String(W),B){var z=E-we.length;if(z>0){var G=new Array(z+1).join("0");W<0?we="-"+G+we.slice(1):we=G+we}}p.push(we)}}else{p=[];for(var F=0;F<h.length;F++)p.push.apply(p,zf(h[F],!1))}for(var F=0;F<p.length;F++)for(var a=0;a<s.length;a++){var c=i+p[F]+s[a];(!e||f||c)&&t.push(c)}}return t}o(zf,"expand")});var bD=S(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.createPathBasedTargetResolver=pa;Dn.createCreateRelatedTaskService=JY;Dn.createCreateRelatedProjectService=ZY;Dn.createArchiveAssetService=eK;Dn.createCleanPropertiesService=tK;Dn.createFixMissingLabelService=rK;Dn.createRenameToUidService=nK;Dn.createRepairFolderService=iK;Dn.createPlanForEveningService=sK;Dn.createUpdatePropertyService=aK;Dn.createRemovePropertyService=oK;Dn.createSetStatusService=cK;function pa(n){return{resolveFile(e){let t=n.getAbstractFileByPath(`${e}.md`);if(!t||!("basename"in t))throw new Error(`Cannot resolve target file for IRI: ${e}`);return t}}}o(pa,"createPathBasedTargetResolver");function JY(n,e,t=pa(n)){return{async execute(r,i){let s=i?.label;if(!s)throw new Error("createRelatedTask requires userInput.label");let a=t.resolveFile(r),c=n.getFrontmatter(a)??{},l=a.parent?.path||"",u={ems__Effort_status:'"[[ems__EffortStatusDraft]]"'},f=i?.parentProperty;f&&a.basename&&(u[f]=`"[[${a.basename}]]"`),await e.createAsset({className:"ems__Task",label:s,folderPath:l,propertyValues:u,parentFile:a,parentMetadata:c})}}}o(JY,"createCreateRelatedTaskService");function ZY(n,e,t=pa(n)){return{async execute(r,i){let s=i?.label;if(!s)throw new Error("createRelatedProject requires userInput.label");let a=t.resolveFile(r),c=n.getFrontmatter(a)??{},l=a.parent?.path||"",u={ems__Effort_status:'"[[ems__EffortStatusDraft]]"'},f=i?.parentProperty;f&&a.basename&&(u[f]=`"[[${a.basename}]]"`),await e.createAsset({className:"ems__Project",label:s,folderPath:l,propertyValues:u,parentFile:a,parentMetadata:c})}}}o(ZY,"createCreateRelatedProjectService");function eK(n,e,t=pa(n)){return{async execute(r){let i=t.resolveFile(r);await e.archiveAsset(i)}}}o(eK,"createArchiveAssetService");function tK(n,e,t=pa(n)){return{async execute(r){let i=t.resolveFile(r);await e.cleanEmptyProperties(i)}}}o(tK,"createCleanPropertiesService");function rK(n,e,t=pa(n)){return{async execute(r){let i=t.resolveFile(r);await e.fixMissingLabel(i)}}}o(rK,"createFixMissingLabelService");function nK(n,e,t=pa(n)){return{async execute(r){let i=t.resolveFile(r),s=n.getFrontmatter(i)??{};await e.renameToUid(i,s)}}}o(nK,"createRenameToUidService");function iK(n,e,t=pa(n)){return{async execute(r){let i=t.resolveFile(r),s=n.getFrontmatter(i)??{},a=await e.getExpectedFolder(i,s);if(a===null)throw new Error("repairFolder: cannot determine expected folder (missing exo__Asset_isDefinedBy or referenced asset not found)");(i.parent?.path??"")!==a&&await e.repairFolder(i,a)}}}o(iK,"createRepairFolderService");function sK(n,e,t=pa(n)){return{async execute(r){let i=t.resolveFile(r);await e.planForEvening(i)}}}o(sK,"createPlanForEveningService");function aK(n,e,t){return{async execute(r,i){let s=i?.property,a=i?.value;if(!s)throw new Error("updateProperty requires userInput.property");if(a===void 0)throw new Error("updateProperty requires userInput.value");let c=await t.resolveTargetPath(r),l=await n.readFile(c),u=e.updateProperty(l,s,a);await n.updateFile(c,u)}}}o(aK,"createUpdatePropertyService");function oK(n,e,t){return{async execute(r,i){let s=i?.property;if(!s)throw new Error("removeProperty requires userInput.property");let a=await t.resolveTargetPath(r),c=await n.readFile(a),l=e.removeProperty(c,s);await n.updateFile(a,l)}}}o(oK,"createRemovePropertyService");function cK(n,e,t){return{async execute(r,i){let s=i?.statusUID;if(!s)throw new Error("setStatus requires userInput.statusUID");let a=await t.resolveTargetPath(r),c=await n.readFile(a),l=e.updateProperty(c,"ems__Effort_status",`"[[${s}]]"`);await n.updateFile(a,l)}}}o(cK,"createSetStatusService")});var wD=S(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.createPathBasedTargetResolver=At.createSetStatusService=At.createRemovePropertyService=At.createUpdatePropertyService=At.createPlanForEveningService=At.createRepairFolderService=At.createRenameToUidService=At.createFixMissingLabelService=At.createCleanPropertiesService=At.createArchiveAssetService=At.createCreateRelatedProjectService=At.createCreateRelatedTaskService=void 0;var ci=bD();Object.defineProperty(At,"createCreateRelatedTaskService",{enumerable:!0,get:o(function(){return ci.createCreateRelatedTaskService},"get")});Object.defineProperty(At,"createCreateRelatedProjectService",{enumerable:!0,get:o(function(){return ci.createCreateRelatedProjectService},"get")});Object.defineProperty(At,"createArchiveAssetService",{enumerable:!0,get:o(function(){return ci.createArchiveAssetService},"get")});Object.defineProperty(At,"createCleanPropertiesService",{enumerable:!0,get:o(function(){return ci.createCleanPropertiesService},"get")});Object.defineProperty(At,"createFixMissingLabelService",{enumerable:!0,get:o(function(){return ci.createFixMissingLabelService},"get")});Object.defineProperty(At,"createRenameToUidService",{enumerable:!0,get:o(function(){return ci.createRenameToUidService},"get")});Object.defineProperty(At,"createRepairFolderService",{enumerable:!0,get:o(function(){return ci.createRepairFolderService},"get")});Object.defineProperty(At,"createPlanForEveningService",{enumerable:!0,get:o(function(){return ci.createPlanForEveningService},"get")});Object.defineProperty(At,"createUpdatePropertyService",{enumerable:!0,get:o(function(){return ci.createUpdatePropertyService},"get")});Object.defineProperty(At,"createRemovePropertyService",{enumerable:!0,get:o(function(){return ci.createRemovePropertyService},"get")});Object.defineProperty(At,"createSetStatusService",{enumerable:!0,get:o(function(){return ci.createSetStatusService},"get")});Object.defineProperty(At,"createPathBasedTargetResolver",{enumerable:!0,get:o(function(){return ci.createPathBasedTargetResolver},"get")})});var RK={};Dy(RK,{createProgram:()=>BD});module.exports=Bd(RK);var P_e=Y(Vd());var P2=Y(R2(),1),{program:KK,createCommand:XK,createArgument:JK,createOption:ZK,CommanderError:eX,InvalidArgumentError:tX,InvalidOptionArgumentError:rX,Command:xe,Argument:nX,Option:iX,Help:sX}=P2.default;var Wl=require("fs"),Gf=require("path"),qt=Y(Mt());var sr=Y(Ga()),ar=Y(require("path"));function QR(n){return typeof n>"u"||n===null}o(QR,"isNothing");function bW(n){return typeof n=="object"&&n!==null}o(bW,"isObject");function wW(n){return Array.isArray(n)?n:QR(n)?[]:[n]}o(wW,"toArray");function EW(n,e){var t,r,i,s;if(e)for(s=Object.keys(e),t=0,r=s.length;t<r;t+=1)i=s[t],n[i]=e[i];return n}o(EW,"extend");function TW(n,e){var t="",r;for(r=0;r<e;r+=1)t+=n;return t}o(TW,"repeat");function AW(n){return n===0&&Number.NEGATIVE_INFINITY===1/n}o(AW,"isNegativeZero");var xW=QR,CW=bW,IW=wW,RW=TW,PW=AW,OW=EW,dr={isNothing:xW,isObject:CW,toArray:IW,repeat:RW,isNegativeZero:PW,extend:OW};function YR(n,e){var t="",r=n.reason||"(unknown reason)";return n.mark?(n.mark.name&&(t+='in "'+n.mark.name+'" '),t+="("+(n.mark.line+1)+":"+(n.mark.column+1)+")",!e&&n.mark.snippet&&(t+=`
|
|
462
462
|
|
|
463
463
|
`+n.mark.snippet),r+" "+t):r}o(YR,"formatError");function Cf(n,e){Error.call(this),this.name="YAMLException",this.reason=n,this.mark=e,this.message=YR(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}o(Cf,"YAMLException$1");Cf.prototype=Object.create(Error.prototype);Cf.prototype.constructor=Cf;Cf.prototype.toString=o(function(e){return this.name+": "+YR(this,e)},"toString");var yn=Cf;function Qb(n,e,t,r,i){var s="",a="",c=Math.floor(i/2)-1;return r-e>c&&(s=" ... ",e=r-c+s.length),t-r>c&&(a=" ...",t=r+c-a.length),{str:s+n.slice(e,t).replace(/\t/g,"\u2192")+a,pos:r-e+s.length}}o(Qb,"getLine");function Yb(n,e){return dr.repeat(" ",e-n.length)+n}o(Yb,"padStart");function FW(n,e){if(e=Object.create(e||null),!n.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var t=/\r?\n|\r|\0/g,r=[0],i=[],s,a=-1;s=t.exec(n.buffer);)i.push(s.index),r.push(s.index+s[0].length),n.position<=s.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var c="",l,u,f=Math.min(n.line+e.linesAfter,i.length).toString().length,d=e.maxLength-(e.indent+f+3);for(l=1;l<=e.linesBefore&&!(a-l<0);l++)u=Qb(n.buffer,r[a-l],i[a-l],n.position-(r[a]-r[a-l]),d),c=dr.repeat(" ",e.indent)+Yb((n.line-l+1).toString(),f)+" | "+u.str+`
|
|
464
464
|
`+c;for(u=Qb(n.buffer,r[a],i[a],n.position,d),c+=dr.repeat(" ",e.indent)+Yb((n.line+1).toString(),f)+" | "+u.str+`
|
|
@@ -524,12 +524,12 @@ To fix this:
|
|
|
524
524
|
3. Simplify query: reduce WHERE clauses or add LIMIT
|
|
525
525
|
4. Use cache: --use-cache for faster vault loading${i!==void 0?`
|
|
526
526
|
|
|
527
|
-
Partial results: ${i} result(s) were collected before timeout.`:""}`}static{o(this,"QueryTimeoutError")}};var Nf=Y(require("path")),Jr=Y(Ga()),wr=Y(Mt());var ri=class{constructor(e){this.cliVersion="1.0.0";this.vaultPath=Nf.default.resolve(e),this.cachePath=Nf.default.join(this.vaultPath,".exocortex","cache","triples.json")}static{o(this,"CacheManager")}getCachePath(){return this.cachePath}async isCacheValid(){try{if(!await Jr.default.pathExists(this.cachePath))return!1;let e=await Jr.default.readJson(this.cachePath);return!(!e.metadata||typeof e.metadata.vaultMtime!="number"||typeof e.metadata.tripleCount!="number"||(await Jr.default.stat(this.vaultPath)).mtimeMs!==e.metadata.vaultMtime)}catch{return!1}}async loadOrBuild(){let e=Date.now();if(await this.isCacheValid())return{triples:await this.loadFromCache(),cacheHit:!0,durationMs:Date.now()-e};let{tripleCount:t}=await this.buildCache();return{triples:await this.loadFromCache(),cacheHit:!1,durationMs:Date.now()-e}}async loadFromCache(){return(await Jr.default.readJson(this.cachePath)).triples.map(this.deserializeTriple)}async buildCache(){let e=await this.buildCacheWithValidation({strict:!1});return{tripleCount:e.tripleCount,durationMs:e.durationMs}}async buildCacheWithValidation(e={}){let t=Date.now(),r=new $t(this.vaultPath),s=await new wr.NoteToRDFConverter(r).convertVaultWithValidation({strict:e.strict??!1}),a=await Jr.default.stat(this.vaultPath),c=s.triples.map(this.serializeTriple),l={metadata:{version:this.cliVersion,timestamp:Date.now(),vaultPath:this.vaultPath,tripleCount:s.triples.length,vaultMtime:a.mtimeMs},triples:c};return await Jr.default.ensureDir(Nf.default.dirname(this.cachePath)),await Jr.default.writeJson(this.cachePath,l,{spaces:0}),{tripleCount:s.triples.length,durationMs:Date.now()-t,skippedFiles:s.skippedFiles,summary:s.summary}}async validateVault(){let e=new $t(this.vaultPath);return new wr.NoteToRDFConverter(e).validateVault()}async invalidate(){await Jr.default.pathExists(this.cachePath)&&await Jr.default.remove(this.cachePath)}async getCacheStats(){try{if(!await Jr.default.pathExists(this.cachePath))return null;let e=await Jr.default.readJson(this.cachePath),t=await Jr.default.stat(this.cachePath),r=await this.isCacheValid();return{tripleCount:e.metadata.tripleCount,createdAt:new Date(e.metadata.timestamp),isValid:r,sizeBytes:t.size}}catch{return null}}async saveTriples(e){let t=await Jr.default.stat(this.vaultPath),r=e.map(this.serializeTriple),i={metadata:{version:this.cliVersion,timestamp:Date.now(),vaultPath:this.vaultPath,tripleCount:e.length,vaultMtime:t.mtimeMs},triples:r};await Jr.default.ensureDir(Nf.default.dirname(this.cachePath)),await Jr.default.writeJson(this.cachePath,i,{spaces:0})}serializeTriple(e){return{subject:cw(e.subject),predicate:cw(e.predicate),object:cw(e.object)}}deserializeTriple(e){return new wr.Triple(lw(e.subject),lw(e.predicate),lw(e.object))}};function cw(n){if(n instanceof wr.IRI)return{type:"IRI",value:n.value};if(n instanceof wr.Literal){let e={type:"Literal",value:n.value};return n.datatype&&(e.datatype=n.datatype.value),n.language&&(e.language=n.language),e}return n instanceof wr.BlankNode?{type:"BlankNode",value:n.value}:{type:"IRI",value:String(n)}}o(cw,"serializeNode");function lw(n){switch(n.type){case"IRI":return new wr.IRI(n.value);case"Literal":return n.datatype?new wr.Literal(n.value,new wr.IRI(n.datatype)):n.language?new wr.Literal(n.value,void 0,n.language):new wr.Literal(n.value);case"BlankNode":return new wr.BlankNode(n.value);default:return new wr.IRI(n.value)}}o(lw,"deserializeNode");var MP=Y(require("crypto")),Lf=Y(require("path")),jP=Y(require("os")),Bn=Y(Ga());var jl=class{static{o(this,"QueryResultCache")}constructor(e={}){this.cacheDir=e.cacheDir??Lf.default.join(jP.default.homedir(),".exocortex","cache","query-results")}getCacheDir(){return this.cacheDir}getCacheKey(e){let t=e.trim().replace(/\s+/g," ");return MP.default.createHash("sha256").update(t).digest("hex")}async get(e,t){let r=this.getCacheKey(e),i=this.getCachePath(r);try{if(!await Bn.default.pathExists(i))return null;let s=await Bn.default.readJson(i),a=Date.now()-s.timestamp,c=t*1e3;return a>c?(await Bn.default.remove(i),null):s.result}catch{return null}}async set(e,t,r){let i=this.getCacheKey(e),s=this.getCachePath(i);await Bn.default.ensureDir(this.cacheDir);let a={timestamp:Date.now(),result:t};await Bn.default.writeJson(s,a,{spaces:0})}async isCached(e,t){return await this.get(e,t)!==null}async invalidate(e){let t=this.getCacheKey(e),r=this.getCachePath(t);try{await Bn.default.remove(r)}catch{}}async clear(){try{if(await Bn.default.pathExists(this.cacheDir)){let e=await Bn.default.readdir(this.cacheDir);await Promise.all(e.filter(t=>t.endsWith(".json")).map(t=>Bn.default.remove(Lf.default.join(this.cacheDir,t))))}}catch{}}async getCacheStats(){try{if(!await Bn.default.pathExists(this.cacheDir))return{entryCount:0,totalSizeBytes:0};let t=(await Bn.default.readdir(this.cacheDir)).filter(i=>i.endsWith(".json")),r=0;for(let i of t){let s=await Bn.default.stat(Lf.default.join(this.cacheDir,i));r+=s.size}return{entryCount:t.length,totalSizeBytes:r}}catch{return{entryCount:0,totalSizeBytes:0}}}getCachePath(e){return Lf.default.join(this.cacheDir,`${e}.json`)}};var Uf=Y(require("node:process"),1);var $P=o((n=0)=>e=>`\x1B[${e+n}m`,"wrapAnsi16"),BP=o((n=0)=>e=>`\x1B[${38+n};5;${e}m`,"wrapAnsi256"),VP=o((n=0)=>(e,t,r)=>`\x1B[${38+n};2;${e};${t};${r}m`,"wrapAnsi16m"),Ft={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},iue=Object.keys(Ft.modifier),Vz=Object.keys(Ft.color),Uz=Object.keys(Ft.bgColor),sue=[...Vz,...Uz];function qz(){let n=new Map;for(let[e,t]of Object.entries(Ft)){for(let[r,i]of Object.entries(t))Ft[r]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},t[r]=Ft[r],n.set(i[0],i[1]);Object.defineProperty(Ft,e,{value:t,enumerable:!1})}return Object.defineProperty(Ft,"codes",{value:n,enumerable:!1}),Ft.color.close="\x1B[39m",Ft.bgColor.close="\x1B[49m",Ft.color.ansi=$P(),Ft.color.ansi256=BP(),Ft.color.ansi16m=VP(),Ft.bgColor.ansi=$P(10),Ft.bgColor.ansi256=BP(10),Ft.bgColor.ansi16m=VP(10),Object.defineProperties(Ft,{rgbToAnsi256:{value(e,t,r){return e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t;r.length===3&&(r=[...r].map(s=>s+s).join(""));let i=Number.parseInt(r,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:o(e=>Ft.rgbToAnsi256(...Ft.hexToRgb(e)),"value"),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,r,i;if(e>=232)t=((e-232)*10+8)/255,r=t,i=t;else{e-=16;let c=e%36;t=Math.floor(e/36)/5,r=Math.floor(c/6)/5,i=c%6/5}let s=Math.max(t,r,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(r)<<1|Math.round(t));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:o((e,t,r)=>Ft.ansi256ToAnsi(Ft.rgbToAnsi256(e,t,r)),"value"),enumerable:!1},hexToAnsi:{value:o(e=>Ft.ansi256ToAnsi(Ft.hexToAnsi256(e)),"value"),enumerable:!1}}),Ft}o(qz,"assembleStyles");var Wz=qz(),Vi=Wz;var dg=Y(require("node:process"),1),qP=Y(require("node:os"),1),uw=Y(require("node:tty"),1);function ni(n,e=globalThis.Deno?globalThis.Deno.args:dg.default.argv){let t=n.startsWith("-")?"":n.length===1?"-":"--",r=e.indexOf(t+n),i=e.indexOf("--");return r!==-1&&(i===-1||r<i)}o(ni,"hasFlag");var{env:Dt}=dg.default,fg;ni("no-color")||ni("no-colors")||ni("color=false")||ni("color=never")?fg=0:(ni("color")||ni("colors")||ni("color=true")||ni("color=always"))&&(fg=1);function Gz(){if("FORCE_COLOR"in Dt)return Dt.FORCE_COLOR==="true"?1:Dt.FORCE_COLOR==="false"?0:Dt.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Dt.FORCE_COLOR,10),3)}o(Gz,"envForceColor");function zz(n){return n===0?!1:{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3}}o(zz,"translateLevel");function Hz(n,{streamIsTTY:e,sniffFlags:t=!0}={}){let r=Gz();r!==void 0&&(fg=r);let i=t?fg:r;if(i===0)return 0;if(t){if(ni("color=16m")||ni("color=full")||ni("color=truecolor"))return 3;if(ni("color=256"))return 2}if("TF_BUILD"in Dt&&"AGENT_NAME"in Dt)return 1;if(n&&!e&&i===void 0)return 0;let s=i||0;if(Dt.TERM==="dumb")return s;if(dg.default.platform==="win32"){let a=qP.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Dt)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(a=>a in Dt)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Dt)||Dt.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Dt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Dt.TEAMCITY_VERSION)?1:0;if(Dt.COLORTERM==="truecolor"||Dt.TERM==="xterm-kitty"||Dt.TERM==="xterm-ghostty"||Dt.TERM==="wezterm")return 3;if("TERM_PROGRAM"in Dt){let a=Number.parseInt((Dt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Dt.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Dt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Dt.TERM)||"COLORTERM"in Dt?1:s}o(Hz,"_supportsColor");function UP(n,e={}){let t=Hz(n,{streamIsTTY:n&&n.isTTY,...e});return zz(t)}o(UP,"createSupportsColor");var Qz={stdout:UP({isTTY:uw.default.isatty(1)}),stderr:UP({isTTY:uw.default.isatty(2)})},WP=Qz;function GP(n,e,t){let r=n.indexOf(e);if(r===-1)return n;let i=e.length,s=0,a="";do a+=n.slice(s,r)+e+t,s=r+i,r=n.indexOf(e,s);while(r!==-1);return a+=n.slice(s),a}o(GP,"stringReplaceAll");function zP(n,e,t,r){let i=0,s="";do{let a=n[r-1]==="\r";s+=n.slice(i,a?r-1:r)+e+(a?`\r
|
|
527
|
+
Partial results: ${i} result(s) were collected before timeout.`:""}`}static{o(this,"QueryTimeoutError")}};var Nf=Y(require("path")),Jr=Y(Ga()),wr=Y(Mt());var ri=class{constructor(e){this.cliVersion="1.0.0";this.vaultPath=Nf.default.resolve(e),this.cachePath=Nf.default.join(this.vaultPath,".exocortex","cache","triples.json")}static{o(this,"CacheManager")}getCachePath(){return this.cachePath}async isCacheValid(){try{if(!await Jr.default.pathExists(this.cachePath))return!1;let e=await Jr.default.readJson(this.cachePath);return!(!e.metadata||typeof e.metadata.vaultMtime!="number"||typeof e.metadata.tripleCount!="number"||(await Jr.default.stat(this.vaultPath)).mtimeMs!==e.metadata.vaultMtime)}catch{return!1}}async loadOrBuild(){let e=Date.now();if(await this.isCacheValid())return{triples:await this.loadFromCache(),cacheHit:!0,durationMs:Date.now()-e};let{tripleCount:t}=await this.buildCache();return{triples:await this.loadFromCache(),cacheHit:!1,durationMs:Date.now()-e}}async loadFromCache(){return(await Jr.default.readJson(this.cachePath)).triples.map(this.deserializeTriple)}async buildCache(){let e=await this.buildCacheWithValidation({strict:!1});return{tripleCount:e.tripleCount,durationMs:e.durationMs}}async buildCacheWithValidation(e={}){let t=Date.now(),r=new $t(this.vaultPath),s=await new wr.NoteToRDFConverter(r).convertVaultWithValidation({strict:e.strict??!1}),a=await Jr.default.stat(this.vaultPath),c=s.triples.map(this.serializeTriple),l={metadata:{version:this.cliVersion,timestamp:Date.now(),vaultPath:this.vaultPath,tripleCount:s.triples.length,vaultMtime:a.mtimeMs},triples:c};return await Jr.default.ensureDir(Nf.default.dirname(this.cachePath)),await Jr.default.writeJson(this.cachePath,l,{spaces:0}),{tripleCount:s.triples.length,durationMs:Date.now()-t,skippedFiles:s.skippedFiles,summary:s.summary}}async validateVault(){let e=new $t(this.vaultPath);return new wr.NoteToRDFConverter(e).validateVault()}async invalidate(){await Jr.default.pathExists(this.cachePath)&&await Jr.default.remove(this.cachePath)}async getCacheStats(){try{if(!await Jr.default.pathExists(this.cachePath))return null;let e=await Jr.default.readJson(this.cachePath),t=await Jr.default.stat(this.cachePath),r=await this.isCacheValid();return{tripleCount:e.metadata.tripleCount,createdAt:new Date(e.metadata.timestamp),isValid:r,sizeBytes:t.size}}catch{return null}}async saveTriples(e){let t=await Jr.default.stat(this.vaultPath),r=e.map(this.serializeTriple),i={metadata:{version:this.cliVersion,timestamp:Date.now(),vaultPath:this.vaultPath,tripleCount:e.length,vaultMtime:t.mtimeMs},triples:r};await Jr.default.ensureDir(Nf.default.dirname(this.cachePath)),await Jr.default.writeJson(this.cachePath,i,{spaces:0})}serializeTriple(e){return{subject:cw(e.subject),predicate:cw(e.predicate),object:cw(e.object)}}deserializeTriple(e){return new wr.Triple(lw(e.subject),lw(e.predicate),lw(e.object))}};function cw(n){if(n instanceof wr.IRI)return{type:"IRI",value:n.value};if(n instanceof wr.Literal){let e={type:"Literal",value:n.value};return n.datatype&&(e.datatype=n.datatype.value),n.language&&(e.language=n.language),e}return n instanceof wr.BlankNode?{type:"BlankNode",value:n.value}:{type:"IRI",value:String(n)}}o(cw,"serializeNode");function lw(n){switch(n.type){case"IRI":return new wr.IRI(n.value);case"Literal":return n.datatype?new wr.Literal(n.value,new wr.IRI(n.datatype)):n.language?new wr.Literal(n.value,void 0,n.language):new wr.Literal(n.value);case"BlankNode":return new wr.BlankNode(n.value);default:return new wr.IRI(n.value)}}o(lw,"deserializeNode");var MP=Y(require("crypto")),Lf=Y(require("path")),jP=Y(require("os")),Bn=Y(Ga());var jl=class{static{o(this,"QueryResultCache")}constructor(e={}){this.cacheDir=e.cacheDir??Lf.default.join(jP.default.homedir(),".exocortex","cache","query-results")}getCacheDir(){return this.cacheDir}getCacheKey(e){let t=e.trim().replace(/\s+/g," ");return MP.default.createHash("sha256").update(t).digest("hex")}async get(e,t){let r=this.getCacheKey(e),i=this.getCachePath(r);try{if(!await Bn.default.pathExists(i))return null;let s=await Bn.default.readJson(i),a=Date.now()-s.timestamp,c=t*1e3;return a>c?(await Bn.default.remove(i),null):s.result}catch{return null}}async set(e,t,r){let i=this.getCacheKey(e),s=this.getCachePath(i);await Bn.default.ensureDir(this.cacheDir);let a={timestamp:Date.now(),result:t};await Bn.default.writeJson(s,a,{spaces:0})}async isCached(e,t){return await this.get(e,t)!==null}async invalidate(e){let t=this.getCacheKey(e),r=this.getCachePath(t);try{await Bn.default.remove(r)}catch{}}async clear(){try{if(await Bn.default.pathExists(this.cacheDir)){let e=await Bn.default.readdir(this.cacheDir);await Promise.all(e.filter(t=>t.endsWith(".json")).map(t=>Bn.default.remove(Lf.default.join(this.cacheDir,t))))}}catch{}}async getCacheStats(){try{if(!await Bn.default.pathExists(this.cacheDir))return{entryCount:0,totalSizeBytes:0};let t=(await Bn.default.readdir(this.cacheDir)).filter(i=>i.endsWith(".json")),r=0;for(let i of t){let s=await Bn.default.stat(Lf.default.join(this.cacheDir,i));r+=s.size}return{entryCount:t.length,totalSizeBytes:r}}catch{return{entryCount:0,totalSizeBytes:0}}}getCachePath(e){return Lf.default.join(this.cacheDir,`${e}.json`)}};var Uf=Y(require("node:process"),1);var $P=o((n=0)=>e=>`\x1B[${e+n}m`,"wrapAnsi16"),BP=o((n=0)=>e=>`\x1B[${38+n};5;${e}m`,"wrapAnsi256"),VP=o((n=0)=>(e,t,r)=>`\x1B[${38+n};2;${e};${t};${r}m`,"wrapAnsi16m"),Ft={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},aue=Object.keys(Ft.modifier),Vz=Object.keys(Ft.color),Uz=Object.keys(Ft.bgColor),oue=[...Vz,...Uz];function qz(){let n=new Map;for(let[e,t]of Object.entries(Ft)){for(let[r,i]of Object.entries(t))Ft[r]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},t[r]=Ft[r],n.set(i[0],i[1]);Object.defineProperty(Ft,e,{value:t,enumerable:!1})}return Object.defineProperty(Ft,"codes",{value:n,enumerable:!1}),Ft.color.close="\x1B[39m",Ft.bgColor.close="\x1B[49m",Ft.color.ansi=$P(),Ft.color.ansi256=BP(),Ft.color.ansi16m=VP(),Ft.bgColor.ansi=$P(10),Ft.bgColor.ansi256=BP(10),Ft.bgColor.ansi16m=VP(10),Object.defineProperties(Ft,{rgbToAnsi256:{value(e,t,r){return e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t;r.length===3&&(r=[...r].map(s=>s+s).join(""));let i=Number.parseInt(r,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:o(e=>Ft.rgbToAnsi256(...Ft.hexToRgb(e)),"value"),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,r,i;if(e>=232)t=((e-232)*10+8)/255,r=t,i=t;else{e-=16;let c=e%36;t=Math.floor(e/36)/5,r=Math.floor(c/6)/5,i=c%6/5}let s=Math.max(t,r,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(r)<<1|Math.round(t));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:o((e,t,r)=>Ft.ansi256ToAnsi(Ft.rgbToAnsi256(e,t,r)),"value"),enumerable:!1},hexToAnsi:{value:o(e=>Ft.ansi256ToAnsi(Ft.hexToAnsi256(e)),"value"),enumerable:!1}}),Ft}o(qz,"assembleStyles");var Wz=qz(),Vi=Wz;var dg=Y(require("node:process"),1),qP=Y(require("node:os"),1),uw=Y(require("node:tty"),1);function ni(n,e=globalThis.Deno?globalThis.Deno.args:dg.default.argv){let t=n.startsWith("-")?"":n.length===1?"-":"--",r=e.indexOf(t+n),i=e.indexOf("--");return r!==-1&&(i===-1||r<i)}o(ni,"hasFlag");var{env:Dt}=dg.default,fg;ni("no-color")||ni("no-colors")||ni("color=false")||ni("color=never")?fg=0:(ni("color")||ni("colors")||ni("color=true")||ni("color=always"))&&(fg=1);function Gz(){if("FORCE_COLOR"in Dt)return Dt.FORCE_COLOR==="true"?1:Dt.FORCE_COLOR==="false"?0:Dt.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Dt.FORCE_COLOR,10),3)}o(Gz,"envForceColor");function zz(n){return n===0?!1:{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3}}o(zz,"translateLevel");function Hz(n,{streamIsTTY:e,sniffFlags:t=!0}={}){let r=Gz();r!==void 0&&(fg=r);let i=t?fg:r;if(i===0)return 0;if(t){if(ni("color=16m")||ni("color=full")||ni("color=truecolor"))return 3;if(ni("color=256"))return 2}if("TF_BUILD"in Dt&&"AGENT_NAME"in Dt)return 1;if(n&&!e&&i===void 0)return 0;let s=i||0;if(Dt.TERM==="dumb")return s;if(dg.default.platform==="win32"){let a=qP.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Dt)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(a=>a in Dt)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Dt)||Dt.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Dt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Dt.TEAMCITY_VERSION)?1:0;if(Dt.COLORTERM==="truecolor"||Dt.TERM==="xterm-kitty"||Dt.TERM==="xterm-ghostty"||Dt.TERM==="wezterm")return 3;if("TERM_PROGRAM"in Dt){let a=Number.parseInt((Dt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Dt.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Dt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Dt.TERM)||"COLORTERM"in Dt?1:s}o(Hz,"_supportsColor");function UP(n,e={}){let t=Hz(n,{streamIsTTY:n&&n.isTTY,...e});return zz(t)}o(UP,"createSupportsColor");var Qz={stdout:UP({isTTY:uw.default.isatty(1)}),stderr:UP({isTTY:uw.default.isatty(2)})},WP=Qz;function GP(n,e,t){let r=n.indexOf(e);if(r===-1)return n;let i=e.length,s=0,a="";do a+=n.slice(s,r)+e+t,s=r+i,r=n.indexOf(e,s);while(r!==-1);return a+=n.slice(s),a}o(GP,"stringReplaceAll");function zP(n,e,t,r){let i=0,s="";do{let a=n[r-1]==="\r";s+=n.slice(i,a?r-1:r)+e+(a?`\r
|
|
528
528
|
`:`
|
|
529
529
|
`)+t,i=r+1,r=n.indexOf(`
|
|
530
530
|
`,i)}while(r!==-1);return s+=n.slice(i),s}o(zP,"stringEncaseCRLFWithFirstIndex");var{stdout:HP,stderr:QP}=WP,fw=Symbol("GENERATOR"),$l=Symbol("STYLER"),kf=Symbol("IS_EMPTY"),YP=["ansi","ansi","ansi256","ansi16m"],Bl=Object.create(null),Yz=o((n,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let t=HP?HP.level:0;n.level=e.level===void 0?t:e.level},"applyOptions");var Kz=o(n=>{let e=o((...t)=>t.join(" "),"chalk");return Yz(e,n),Object.setPrototypeOf(e,Mf.prototype),e},"chalkFactory");function Mf(n){return Kz(n)}o(Mf,"createChalk");Object.setPrototypeOf(Mf.prototype,Function.prototype);for(let[n,e]of Object.entries(Vi))Bl[n]={get(){let t=hg(this,hw(e.open,e.close,this[$l]),this[kf]);return Object.defineProperty(this,n,{value:t}),t}};Bl.visible={get(){let n=hg(this,this[$l],!0);return Object.defineProperty(this,"visible",{value:n}),n}};var dw=o((n,e,t,...r)=>n==="rgb"?e==="ansi16m"?Vi[t].ansi16m(...r):e==="ansi256"?Vi[t].ansi256(Vi.rgbToAnsi256(...r)):Vi[t].ansi(Vi.rgbToAnsi(...r)):n==="hex"?dw("rgb",e,t,...Vi.hexToRgb(...r)):Vi[t][n](...r),"getModelAnsi"),Xz=["rgb","hex","ansi256"];for(let n of Xz){Bl[n]={get(){let{level:t}=this;return function(...r){let i=hw(dw(n,YP[t],"color",...r),Vi.color.close,this[$l]);return hg(this,i,this[kf])}}};let e="bg"+n[0].toUpperCase()+n.slice(1);Bl[e]={get(){let{level:t}=this;return function(...r){let i=hw(dw(n,YP[t],"bgColor",...r),Vi.bgColor.close,this[$l]);return hg(this,i,this[kf])}}}}var Jz=Object.defineProperties(()=>{},{...Bl,level:{enumerable:!0,get(){return this[fw].level},set(n){this[fw].level=n}}}),hw=o((n,e,t)=>{let r,i;return t===void 0?(r=n,i=e):(r=t.openAll+n,i=e+t.closeAll),{open:n,close:e,openAll:r,closeAll:i,parent:t}},"createStyler"),hg=o((n,e,t)=>{let r=o((...i)=>Zz(r,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(r,Jz),r[fw]=n,r[$l]=e,r[kf]=t,r},"createBuilder"),Zz=o((n,e)=>{if(n.level<=0||!e)return n[kf]?"":e;let t=n[$l];if(t===void 0)return e;let{openAll:r,closeAll:i}=t;if(e.includes("\x1B"))for(;t!==void 0;)e=GP(e,t.close,t.open),t=t.parent;let s=e.indexOf(`
|
|
531
|
-
`);return s!==-1&&(e=zP(e,i,r,s)),r+e+i},"applyStyle");Object.defineProperties(Mf.prototype,Bl);var eH=Mf(),
|
|
532
|
-
${e}`,"wrappedToString"),sH=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),aH=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),oH=o((n,e,t)=>{let r=t===""?"":`with ${t.trim()}() `,i=iH.bind(null,r,e.toString());Object.defineProperty(i,"name",aH);let{writable:s,enumerable:a,configurable:c}=sH;Object.defineProperty(n,"toString",{value:i,writable:s,enumerable:a,configurable:c})},"changeToString");function pw(n,e,{ignoreNonConfigurable:t=!1}={}){let{name:r}=n;for(let i of Reflect.ownKeys(e))tH(n,e,i,t);return nH(n,e),oH(n,e,r),n}o(pw,"mimicFunction");var pg=new WeakMap,XP=o((n,e={})=>{if(typeof n!="function")throw new TypeError("Expected a function");let t,r=0,i=n.displayName||n.name||"<anonymous>",s=o(function(...a){if(pg.set(s,++r),r===1)t=n.apply(this,a),n=void 0;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return t},"onetime");return pw(s,n),pg.set(s,r),s},"onetime");XP.callCount=n=>{if(!pg.has(n))throw new Error(`The given function \`${n.name}\` is not wrapped by the \`onetime\` package`);return pg.get(n)};var JP=XP;var Yo=[];Yo.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Yo.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Yo.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var mg=o(n=>!!n&&typeof n=="object"&&typeof n.removeListener=="function"&&typeof n.emit=="function"&&typeof n.reallyExit=="function"&&typeof n.listeners=="function"&&typeof n.kill=="function"&&typeof n.pid=="number"&&typeof n.on=="function","processOk"),mw=Symbol.for("signal-exit emitter"),gw=globalThis,cH=Object.defineProperty.bind(Object),yw=class{static{o(this,"Emitter")}emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(gw[mw])return gw[mw];cH(gw,mw,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let r=this.listeners[e],i=r.indexOf(t);i!==-1&&(i===0&&r.length===1?r.length=0:r.splice(i,1))}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let i=!1;for(let s of this.listeners[e])i=s(t,r)===!0||i;return e==="exit"&&(i=this.emit("afterExit",t,r)||i),i}},gg=class{static{o(this,"SignalExitBase")}},lH=o(n=>({onExit(e,t){return n.onExit(e,t)},load(){return n.load()},unload(){return n.unload()}}),"signalExitWrap"),_w=class extends gg{static{o(this,"SignalExitFallback")}onExit(){return()=>{}}load(){}unload(){}},Sw=class extends gg{static{o(this,"SignalExit")}#e=vw.platform==="win32"?"SIGINT":"SIGHUP";#n=new yw;#r;#t;#c;#_={};#i=!1;constructor(e){super(),this.#r=e,this.#_={};for(let t of Yo)this.#_[t]=()=>{let r=this.#r.listeners(t),{count:i}=this.#n,s=e;if(typeof s.__signal_exit_emitter__=="object"&&typeof s.__signal_exit_emitter__.count=="number"&&(i+=s.__signal_exit_emitter__.count),r.length===i){this.unload();let a=this.#n.emit("exit",null,t),c=t==="SIGHUP"?this.#e:t;a||e.kill(e.pid,c)}};this.#c=e.reallyExit,this.#t=e.emit}onExit(e,t){if(!mg(this.#r))return()=>{};this.#i===!1&&this.load();let r=t?.alwaysLast?"afterExit":"exit";return this.#n.on(r,e),()=>{this.#n.removeListener(r,e),this.#n.listeners.exit.length===0&&this.#n.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#i){this.#i=!0,this.#n.count+=1;for(let e of Yo)try{let t=this.#_[e];t&&this.#r.on(e,t)}catch{}this.#r.emit=(e,...t)=>this.#s(e,...t),this.#r.reallyExit=e=>this.#u(e)}}unload(){this.#i&&(this.#i=!1,Yo.forEach(e=>{let t=this.#_[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#r.removeListener(e,t)}catch{}}),this.#r.emit=this.#t,this.#r.reallyExit=this.#c,this.#n.count-=1)}#u(e){return mg(this.#r)?(this.#r.exitCode=e||0,this.#n.emit("exit",this.#r.exitCode,null),this.#c.call(this.#r,this.#r.exitCode)):0}#s(e,...t){let r=this.#t;if(e==="exit"&&mg(this.#r)){typeof t[0]=="number"&&(this.#r.exitCode=t[0]);let i=r.call(this.#r,e,...t);return this.#n.emit("exit",this.#r.exitCode,null),i}else return r.call(this.#r,e,...t)}},vw=globalThis.process,{onExit:ZP,load:Aue,unload:xue}=lH(mg(vw)?new Sw(vw):new _w);var eO=jf.default.stderr.isTTY?jf.default.stderr:jf.default.stdout.isTTY?jf.default.stdout:void 0,uH=eO?JP(()=>{ZP(()=>{eO.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},tO=uH;var yg=!1,Vl={};Vl.show=(n=bw.default.stderr)=>{n.isTTY&&(yg=!1,n.write("\x1B[?25h"))};Vl.hide=(n=bw.default.stderr)=>{n.isTTY&&(tO(),yg=!0,n.write("\x1B[?25l"))};Vl.toggle=(n,e)=>{n!==void 0&&(yg=n),yg?Vl.show(e):Vl.hide(e)};var ww=Vl;var Ew={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots14:{interval:80,frames:["\u2809\u2809","\u2808\u2819","\u2800\u2839","\u2800\u28B8","\u2800\u28F0","\u2880\u28E0","\u28C0\u28C0","\u28C4\u2840","\u28C6\u2800","\u2847\u2800","\u280F\u2800","\u280B\u2801"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},dotsCircle:{interval:80,frames:["\u288E ","\u280E\u2801","\u280A\u2811","\u2808\u2831"," \u2871","\u2880\u2870","\u2884\u2860","\u2886\u2840"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},rollingLine:{interval:80,frames:["/ "," - "," \\ "," |"," |"," \\ "," - ","/ "]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u{1F497} "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}};var $f=Ew,kue=Object.keys(Ew);var Ko={};Dy(Ko,{error:()=>gH,info:()=>hH,success:()=>pH,warning:()=>mH});var rO=Y(require("node:tty"),1);var dH=rO.default?.WriteStream?.prototype?.hasColors?.()??!1,Ne=o((n,e)=>{if(!dH)return i=>i;let t=`\x1B[${n}m`,r=`\x1B[${e}m`;return i=>{let s=i+"",a=s.indexOf(r);if(a===-1)return t+s+r;let c=t,l=0,f=(e===22?r:"")+t;for(;a!==-1;)c+=s.slice(l,a)+f,l=a+r.length,a=s.indexOf(r,l);return c+=s.slice(l)+r,c}},"format"),$ue=Ne(0,0),Bue=Ne(1,22),Vue=Ne(2,22),Uue=Ne(3,23),que=Ne(4,24),Wue=Ne(53,55),Gue=Ne(7,27),zue=Ne(8,28),Hue=Ne(9,29),Que=Ne(30,39),nO=Ne(31,39),iO=Ne(32,39),sO=Ne(33,39),aO=Ne(34,39),Yue=Ne(35,39),Kue=Ne(36,39),Xue=Ne(37,39),Jue=Ne(90,39),Zue=Ne(40,49),efe=Ne(41,49),tfe=Ne(42,49),rfe=Ne(43,49),nfe=Ne(44,49),ife=Ne(45,49),sfe=Ne(46,49),afe=Ne(47,49),ofe=Ne(100,49),cfe=Ne(91,39),lfe=Ne(92,39),ufe=Ne(93,39),ffe=Ne(94,39),dfe=Ne(95,39),hfe=Ne(96,39),pfe=Ne(97,39),mfe=Ne(101,49),gfe=Ne(102,49),yfe=Ne(103,49),_fe=Ne(104,49),Sfe=Ne(105,49),vfe=Ne(106,49),bfe=Ne(107,49);var Tw=Y(require("node:process"),1);function Bf(){let{env:n}=Tw.default,{TERM:e,TERM_PROGRAM:t}=n;return Tw.default.platform!=="win32"?e!=="linux":!!n.WT_SESSION||!!n.TERMINUS_SUBLIME||n.ConEmuTask==="{cmd::Cmder}"||t==="Terminus-Sublime"||t==="vscode"||e==="xterm-256color"||e==="alacritty"||e==="rxvt-unicode"||e==="rxvt-unicode-256color"||n.TERMINAL_EMULATOR==="JetBrains-JediTerm"}o(Bf,"isUnicodeSupported");var _g=Bf(),hH=aO(_g?"\u2139":"i"),pH=iO(_g?"\u2714":"\u221A"),mH=sO(_g?"\u26A0":"\u203C"),gH=nO(_g?"\u2716":"\xD7");function Aw({onlyFirst:n=!1}={}){let i="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(i,n?void 0:"g")}o(Aw,"ansiRegex");var yH=Aw();function Vf(n){if(typeof n!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof n}\``);return n.replace(yH,"")}o(Vf,"stripAnsi");function oO(n){return n===161||n===164||n===167||n===168||n===170||n===173||n===174||n>=176&&n<=180||n>=182&&n<=186||n>=188&&n<=191||n===198||n===208||n===215||n===216||n>=222&&n<=225||n===230||n>=232&&n<=234||n===236||n===237||n===240||n===242||n===243||n>=247&&n<=250||n===252||n===254||n===257||n===273||n===275||n===283||n===294||n===295||n===299||n>=305&&n<=307||n===312||n>=319&&n<=322||n===324||n>=328&&n<=331||n===333||n===338||n===339||n===358||n===359||n===363||n===462||n===464||n===466||n===468||n===470||n===472||n===474||n===476||n===593||n===609||n===708||n===711||n>=713&&n<=715||n===717||n===720||n>=728&&n<=731||n===733||n===735||n>=768&&n<=879||n>=913&&n<=929||n>=931&&n<=937||n>=945&&n<=961||n>=963&&n<=969||n===1025||n>=1040&&n<=1103||n===1105||n===8208||n>=8211&&n<=8214||n===8216||n===8217||n===8220||n===8221||n>=8224&&n<=8226||n>=8228&&n<=8231||n===8240||n===8242||n===8243||n===8245||n===8251||n===8254||n===8308||n===8319||n>=8321&&n<=8324||n===8364||n===8451||n===8453||n===8457||n===8467||n===8470||n===8481||n===8482||n===8486||n===8491||n===8531||n===8532||n>=8539&&n<=8542||n>=8544&&n<=8555||n>=8560&&n<=8569||n===8585||n>=8592&&n<=8601||n===8632||n===8633||n===8658||n===8660||n===8679||n===8704||n===8706||n===8707||n===8711||n===8712||n===8715||n===8719||n===8721||n===8725||n===8730||n>=8733&&n<=8736||n===8739||n===8741||n>=8743&&n<=8748||n===8750||n>=8756&&n<=8759||n===8764||n===8765||n===8776||n===8780||n===8786||n===8800||n===8801||n>=8804&&n<=8807||n===8810||n===8811||n===8814||n===8815||n===8834||n===8835||n===8838||n===8839||n===8853||n===8857||n===8869||n===8895||n===8978||n>=9312&&n<=9449||n>=9451&&n<=9547||n>=9552&&n<=9587||n>=9600&&n<=9615||n>=9618&&n<=9621||n===9632||n===9633||n>=9635&&n<=9641||n===9650||n===9651||n===9654||n===9655||n===9660||n===9661||n===9664||n===9665||n>=9670&&n<=9672||n===9675||n>=9678&&n<=9681||n>=9698&&n<=9701||n===9711||n===9733||n===9734||n===9737||n===9742||n===9743||n===9756||n===9758||n===9792||n===9794||n===9824||n===9825||n>=9827&&n<=9829||n>=9831&&n<=9834||n===9836||n===9837||n===9839||n===9886||n===9887||n===9919||n>=9926&&n<=9933||n>=9935&&n<=9939||n>=9941&&n<=9953||n===9955||n===9960||n===9961||n>=9963&&n<=9969||n===9972||n>=9974&&n<=9977||n===9979||n===9980||n===9982||n===9983||n===10045||n>=10102&&n<=10111||n>=11094&&n<=11097||n>=12872&&n<=12879||n>=57344&&n<=63743||n>=65024&&n<=65039||n===65533||n>=127232&&n<=127242||n>=127248&&n<=127277||n>=127280&&n<=127337||n>=127344&&n<=127373||n===127375||n===127376||n>=127387&&n<=127404||n>=917760&&n<=917999||n>=983040&&n<=1048573||n>=1048576&&n<=1114109}o(oO,"isAmbiguous");function cO(n){return n===12288||n>=65281&&n<=65376||n>=65504&&n<=65510}o(cO,"isFullWidth");function lO(n){return n>=4352&&n<=4447||n===8986||n===8987||n===9001||n===9002||n>=9193&&n<=9196||n===9200||n===9203||n===9725||n===9726||n===9748||n===9749||n>=9776&&n<=9783||n>=9800&&n<=9811||n===9855||n>=9866&&n<=9871||n===9875||n===9889||n===9898||n===9899||n===9917||n===9918||n===9924||n===9925||n===9934||n===9940||n===9962||n===9970||n===9971||n===9973||n===9978||n===9981||n===9989||n===9994||n===9995||n===10024||n===10060||n===10062||n>=10067&&n<=10069||n===10071||n>=10133&&n<=10135||n===10160||n===10175||n===11035||n===11036||n===11088||n===11093||n>=11904&&n<=11929||n>=11931&&n<=12019||n>=12032&&n<=12245||n>=12272&&n<=12287||n>=12289&&n<=12350||n>=12353&&n<=12438||n>=12441&&n<=12543||n>=12549&&n<=12591||n>=12593&&n<=12686||n>=12688&&n<=12773||n>=12783&&n<=12830||n>=12832&&n<=12871||n>=12880&&n<=42124||n>=42128&&n<=42182||n>=43360&&n<=43388||n>=44032&&n<=55203||n>=63744&&n<=64255||n>=65040&&n<=65049||n>=65072&&n<=65106||n>=65108&&n<=65126||n>=65128&&n<=65131||n>=94176&&n<=94180||n>=94192&&n<=94198||n>=94208&&n<=101589||n>=101631&&n<=101662||n>=101760&&n<=101874||n>=110576&&n<=110579||n>=110581&&n<=110587||n===110589||n===110590||n>=110592&&n<=110882||n===110898||n>=110928&&n<=110930||n===110933||n>=110948&&n<=110951||n>=110960&&n<=111355||n>=119552&&n<=119638||n>=119648&&n<=119670||n===126980||n===127183||n===127374||n>=127377&&n<=127386||n>=127488&&n<=127490||n>=127504&&n<=127547||n>=127552&&n<=127560||n===127568||n===127569||n>=127584&&n<=127589||n>=127744&&n<=127776||n>=127789&&n<=127797||n>=127799&&n<=127868||n>=127870&&n<=127891||n>=127904&&n<=127946||n>=127951&&n<=127955||n>=127968&&n<=127984||n===127988||n>=127992&&n<=128062||n===128064||n>=128066&&n<=128252||n>=128255&&n<=128317||n>=128331&&n<=128334||n>=128336&&n<=128359||n===128378||n===128405||n===128406||n===128420||n>=128507&&n<=128591||n>=128640&&n<=128709||n===128716||n>=128720&&n<=128722||n>=128725&&n<=128728||n>=128732&&n<=128735||n===128747||n===128748||n>=128756&&n<=128764||n>=128992&&n<=129003||n===129008||n>=129292&&n<=129338||n>=129340&&n<=129349||n>=129351&&n<=129535||n>=129648&&n<=129660||n>=129664&&n<=129674||n>=129678&&n<=129734||n===129736||n>=129741&&n<=129756||n>=129759&&n<=129770||n>=129775&&n<=129784||n>=131072&&n<=196605||n>=196608&&n<=262141}o(lO,"isWide");function _H(n){if(!Number.isSafeInteger(n))throw new TypeError(`Expected a code point, got \`${typeof n}\`.`)}o(_H,"validate");function xw(n,{ambiguousAsWide:e=!1}={}){return _H(n),cO(n)||lO(n)||e&&oO(n)?2:1}o(xw,"eastAsianWidth");var SH=new Intl.Segmenter,vH=new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Mark}|\\p{Surrogate})+$","v"),bH=new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+","v"),wH=new RegExp("^\\p{RGI_Emoji}$","v");function EH(n){return n.replace(bH,"")}o(EH,"baseVisible");function TH(n){return vH.test(n)}o(TH,"isZeroWidthCluster");function AH(n,e){let t=0;if(n.length>1)for(let r of n.slice(1))r>="\uFF00"&&r<="\uFFEF"&&(t+=xw(r.codePointAt(0),e));return t}o(AH,"trailingHalfwidthWidth");function Cw(n,e={}){if(typeof n!="string"||n.length===0)return 0;let{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:r=!1}=e,i=n;if(r||(i=Vf(i)),i.length===0)return 0;let s=0,a={ambiguousAsWide:!t};for(let{segment:c}of SH.segment(i)){if(TH(c))continue;if(wH.test(c)){s+=2;continue}let l=EH(c).codePointAt(0);s+=xw(l,a),s+=AH(c,a)}return s}o(Cw,"stringWidth");function Iw({stream:n=process.stdout}={}){return!!(n&&n.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}o(Iw,"isInteractive");var Ui=Y(require("node:process"),1);var xH=3,Rw=class{static{o(this,"StdinDiscarder")}#e=0;start(){this.#e++,this.#e===1&&this.#n()}stop(){if(this.#e<=0)throw new Error("`stop` called more times than `start`");this.#e--,this.#e===0&&this.#r()}#n(){Ui.default.platform==="win32"||!Ui.default.stdin.isTTY||(Ui.default.stdin.setRawMode(!0),Ui.default.stdin.on("data",this.#t),Ui.default.stdin.resume())}#r(){Ui.default.stdin.isTTY&&(Ui.default.stdin.off("data",this.#t),Ui.default.stdin.pause(),Ui.default.stdin.setRawMode(!1))}#t(e){e[0]===xH&&Ui.default.emit("SIGINT")}},CH=new Rw,Pw=CH;var Ow=class{static{o(this,"Ora")}#e=0;#n=!1;#r=0;#t=-1;#c=0;#_=0;#i;#u;#s;#l;#a;#p;#g;#d;#m;#y;#f;color;constructor(e){typeof e=="string"&&(e={text:e}),this.#i={color:"cyan",stream:Uf.default.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#i.color,this.spinner=this.#i.spinner,this.#a=this.#i.interval,this.#s=this.#i.stream,this.#p=typeof this.#i.isEnabled=="boolean"?this.#i.isEnabled:Iw({stream:this.#s}),this.#g=typeof this.#i.isSilent=="boolean"?this.#i.isSilent:!1,this.text=this.#i.text,this.prefixText=this.#i.prefixText,this.suffixText=this.#i.suffixText,this.indent=this.#i.indent,Uf.default.env.NODE_ENV==="test"&&(this._stream=this.#s,this._isEnabled=this.#p,Object.defineProperty(this,"_linesToClear",{get(){return this.#e},set(t){this.#e=t}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#t}}),Object.defineProperty(this,"_lineCount",{get(){return this.#r}}))}get indent(){return this.#d}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#d=e,this.#v()}get interval(){return this.#a??this.#u.interval??100}get spinner(){return this.#u}set spinner(e){if(this.#t=-1,this.#a=void 0,typeof e=="object"){if(!Array.isArray(e.frames)||e.frames.length===0||e.frames.some(t=>typeof t!="string"))throw new Error("The given spinner must have a non-empty `frames` array of strings");if(e.interval!==void 0&&!(Number.isInteger(e.interval)&&e.interval>0))throw new Error("`spinner.interval` must be a positive integer if provided");this.#u=e}else if(!Bf())this.#u=$f.line;else if(e===void 0)this.#u=$f.dots;else if(e!=="default"&&$f[e])this.#u=$f[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#m}set text(e=""){this.#m=e,this.#v()}get prefixText(){return this.#y}set prefixText(e=""){this.#y=e,this.#v()}get suffixText(){return this.#f}set suffixText(e=""){this.#f=e,this.#v()}get isSpinning(){return this.#l!==void 0}#E(e,t,r=!1){let i=typeof e=="function"?e():e;return typeof i=="string"&&i!==""?r?t+i:i+t:""}#T(e=this.#y,t=" "){return this.#E(e,t,!1)}#S(e=this.#f,t=" "){return this.#E(e,t,!0)}#w(e,t){let r=0;for(let i of Vf(e).split(`
|
|
531
|
+
`);return s!==-1&&(e=zP(e,i,r,s)),r+e+i},"applyStyle");Object.defineProperties(Mf.prototype,Bl);var eH=Mf(),yue=Mf({level:QP?QP.level:0});var KP=eH;var bw=Y(require("node:process"),1);var jf=Y(require("node:process"),1);var tH=o((n,e,t,r)=>{if(t==="length"||t==="prototype"||t==="arguments"||t==="caller")return;let i=Object.getOwnPropertyDescriptor(n,t),s=Object.getOwnPropertyDescriptor(e,t);!rH(i,s)&&r||Object.defineProperty(n,t,s)},"copyProperty"),rH=o(function(n,e){return n===void 0||n.configurable||n.writable===e.writable&&n.enumerable===e.enumerable&&n.configurable===e.configurable&&(n.writable||n.value===e.value)},"canCopyProperty"),nH=o((n,e)=>{let t=Object.getPrototypeOf(e);t!==Object.getPrototypeOf(n)&&Object.setPrototypeOf(n,t)},"changePrototype"),iH=o((n,e)=>`/* Wrapped ${n}*/
|
|
532
|
+
${e}`,"wrappedToString"),sH=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),aH=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),oH=o((n,e,t)=>{let r=t===""?"":`with ${t.trim()}() `,i=iH.bind(null,r,e.toString());Object.defineProperty(i,"name",aH);let{writable:s,enumerable:a,configurable:c}=sH;Object.defineProperty(n,"toString",{value:i,writable:s,enumerable:a,configurable:c})},"changeToString");function pw(n,e,{ignoreNonConfigurable:t=!1}={}){let{name:r}=n;for(let i of Reflect.ownKeys(e))tH(n,e,i,t);return nH(n,e),oH(n,e,r),n}o(pw,"mimicFunction");var pg=new WeakMap,XP=o((n,e={})=>{if(typeof n!="function")throw new TypeError("Expected a function");let t,r=0,i=n.displayName||n.name||"<anonymous>",s=o(function(...a){if(pg.set(s,++r),r===1)t=n.apply(this,a),n=void 0;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return t},"onetime");return pw(s,n),pg.set(s,r),s},"onetime");XP.callCount=n=>{if(!pg.has(n))throw new Error(`The given function \`${n.name}\` is not wrapped by the \`onetime\` package`);return pg.get(n)};var JP=XP;var Yo=[];Yo.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Yo.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Yo.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var mg=o(n=>!!n&&typeof n=="object"&&typeof n.removeListener=="function"&&typeof n.emit=="function"&&typeof n.reallyExit=="function"&&typeof n.listeners=="function"&&typeof n.kill=="function"&&typeof n.pid=="number"&&typeof n.on=="function","processOk"),mw=Symbol.for("signal-exit emitter"),gw=globalThis,cH=Object.defineProperty.bind(Object),yw=class{static{o(this,"Emitter")}emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(gw[mw])return gw[mw];cH(gw,mw,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let r=this.listeners[e],i=r.indexOf(t);i!==-1&&(i===0&&r.length===1?r.length=0:r.splice(i,1))}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let i=!1;for(let s of this.listeners[e])i=s(t,r)===!0||i;return e==="exit"&&(i=this.emit("afterExit",t,r)||i),i}},gg=class{static{o(this,"SignalExitBase")}},lH=o(n=>({onExit(e,t){return n.onExit(e,t)},load(){return n.load()},unload(){return n.unload()}}),"signalExitWrap"),_w=class extends gg{static{o(this,"SignalExitFallback")}onExit(){return()=>{}}load(){}unload(){}},Sw=class extends gg{static{o(this,"SignalExit")}#e=vw.platform==="win32"?"SIGINT":"SIGHUP";#n=new yw;#r;#t;#c;#_={};#i=!1;constructor(e){super(),this.#r=e,this.#_={};for(let t of Yo)this.#_[t]=()=>{let r=this.#r.listeners(t),{count:i}=this.#n,s=e;if(typeof s.__signal_exit_emitter__=="object"&&typeof s.__signal_exit_emitter__.count=="number"&&(i+=s.__signal_exit_emitter__.count),r.length===i){this.unload();let a=this.#n.emit("exit",null,t),c=t==="SIGHUP"?this.#e:t;a||e.kill(e.pid,c)}};this.#c=e.reallyExit,this.#t=e.emit}onExit(e,t){if(!mg(this.#r))return()=>{};this.#i===!1&&this.load();let r=t?.alwaysLast?"afterExit":"exit";return this.#n.on(r,e),()=>{this.#n.removeListener(r,e),this.#n.listeners.exit.length===0&&this.#n.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#i){this.#i=!0,this.#n.count+=1;for(let e of Yo)try{let t=this.#_[e];t&&this.#r.on(e,t)}catch{}this.#r.emit=(e,...t)=>this.#s(e,...t),this.#r.reallyExit=e=>this.#u(e)}}unload(){this.#i&&(this.#i=!1,Yo.forEach(e=>{let t=this.#_[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#r.removeListener(e,t)}catch{}}),this.#r.emit=this.#t,this.#r.reallyExit=this.#c,this.#n.count-=1)}#u(e){return mg(this.#r)?(this.#r.exitCode=e||0,this.#n.emit("exit",this.#r.exitCode,null),this.#c.call(this.#r,this.#r.exitCode)):0}#s(e,...t){let r=this.#t;if(e==="exit"&&mg(this.#r)){typeof t[0]=="number"&&(this.#r.exitCode=t[0]);let i=r.call(this.#r,e,...t);return this.#n.emit("exit",this.#r.exitCode,null),i}else return r.call(this.#r,e,...t)}},vw=globalThis.process,{onExit:ZP,load:Cue,unload:Iue}=lH(mg(vw)?new Sw(vw):new _w);var eO=jf.default.stderr.isTTY?jf.default.stderr:jf.default.stdout.isTTY?jf.default.stdout:void 0,uH=eO?JP(()=>{ZP(()=>{eO.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},tO=uH;var yg=!1,Vl={};Vl.show=(n=bw.default.stderr)=>{n.isTTY&&(yg=!1,n.write("\x1B[?25h"))};Vl.hide=(n=bw.default.stderr)=>{n.isTTY&&(tO(),yg=!0,n.write("\x1B[?25l"))};Vl.toggle=(n,e)=>{n!==void 0&&(yg=n),yg?Vl.show(e):Vl.hide(e)};var ww=Vl;var Ew={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots14:{interval:80,frames:["\u2809\u2809","\u2808\u2819","\u2800\u2839","\u2800\u28B8","\u2800\u28F0","\u2880\u28E0","\u28C0\u28C0","\u28C4\u2840","\u28C6\u2800","\u2847\u2800","\u280F\u2800","\u280B\u2801"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},dotsCircle:{interval:80,frames:["\u288E ","\u280E\u2801","\u280A\u2811","\u2808\u2831"," \u2871","\u2880\u2870","\u2884\u2860","\u2886\u2840"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},rollingLine:{interval:80,frames:["/ "," - "," \\ "," |"," |"," \\ "," - ","/ "]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u{1F497} "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}};var $f=Ew,jue=Object.keys(Ew);var Ko={};Dy(Ko,{error:()=>gH,info:()=>hH,success:()=>pH,warning:()=>mH});var rO=Y(require("node:tty"),1);var dH=rO.default?.WriteStream?.prototype?.hasColors?.()??!1,Ne=o((n,e)=>{if(!dH)return i=>i;let t=`\x1B[${n}m`,r=`\x1B[${e}m`;return i=>{let s=i+"",a=s.indexOf(r);if(a===-1)return t+s+r;let c=t,l=0,f=(e===22?r:"")+t;for(;a!==-1;)c+=s.slice(l,a)+f,l=a+r.length,a=s.indexOf(r,l);return c+=s.slice(l)+r,c}},"format"),Vue=Ne(0,0),Uue=Ne(1,22),que=Ne(2,22),Wue=Ne(3,23),Gue=Ne(4,24),zue=Ne(53,55),Hue=Ne(7,27),Que=Ne(8,28),Yue=Ne(9,29),Kue=Ne(30,39),nO=Ne(31,39),iO=Ne(32,39),sO=Ne(33,39),aO=Ne(34,39),Xue=Ne(35,39),Jue=Ne(36,39),Zue=Ne(37,39),efe=Ne(90,39),tfe=Ne(40,49),rfe=Ne(41,49),nfe=Ne(42,49),ife=Ne(43,49),sfe=Ne(44,49),afe=Ne(45,49),ofe=Ne(46,49),cfe=Ne(47,49),lfe=Ne(100,49),ufe=Ne(91,39),ffe=Ne(92,39),dfe=Ne(93,39),hfe=Ne(94,39),pfe=Ne(95,39),mfe=Ne(96,39),gfe=Ne(97,39),yfe=Ne(101,49),_fe=Ne(102,49),Sfe=Ne(103,49),vfe=Ne(104,49),bfe=Ne(105,49),wfe=Ne(106,49),Efe=Ne(107,49);var Tw=Y(require("node:process"),1);function Bf(){let{env:n}=Tw.default,{TERM:e,TERM_PROGRAM:t}=n;return Tw.default.platform!=="win32"?e!=="linux":!!n.WT_SESSION||!!n.TERMINUS_SUBLIME||n.ConEmuTask==="{cmd::Cmder}"||t==="Terminus-Sublime"||t==="vscode"||e==="xterm-256color"||e==="alacritty"||e==="rxvt-unicode"||e==="rxvt-unicode-256color"||n.TERMINAL_EMULATOR==="JetBrains-JediTerm"}o(Bf,"isUnicodeSupported");var _g=Bf(),hH=aO(_g?"\u2139":"i"),pH=iO(_g?"\u2714":"\u221A"),mH=sO(_g?"\u26A0":"\u203C"),gH=nO(_g?"\u2716":"\xD7");function Aw({onlyFirst:n=!1}={}){let i="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(i,n?void 0:"g")}o(Aw,"ansiRegex");var yH=Aw();function Vf(n){if(typeof n!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof n}\``);return n.replace(yH,"")}o(Vf,"stripAnsi");function oO(n){return n===161||n===164||n===167||n===168||n===170||n===173||n===174||n>=176&&n<=180||n>=182&&n<=186||n>=188&&n<=191||n===198||n===208||n===215||n===216||n>=222&&n<=225||n===230||n>=232&&n<=234||n===236||n===237||n===240||n===242||n===243||n>=247&&n<=250||n===252||n===254||n===257||n===273||n===275||n===283||n===294||n===295||n===299||n>=305&&n<=307||n===312||n>=319&&n<=322||n===324||n>=328&&n<=331||n===333||n===338||n===339||n===358||n===359||n===363||n===462||n===464||n===466||n===468||n===470||n===472||n===474||n===476||n===593||n===609||n===708||n===711||n>=713&&n<=715||n===717||n===720||n>=728&&n<=731||n===733||n===735||n>=768&&n<=879||n>=913&&n<=929||n>=931&&n<=937||n>=945&&n<=961||n>=963&&n<=969||n===1025||n>=1040&&n<=1103||n===1105||n===8208||n>=8211&&n<=8214||n===8216||n===8217||n===8220||n===8221||n>=8224&&n<=8226||n>=8228&&n<=8231||n===8240||n===8242||n===8243||n===8245||n===8251||n===8254||n===8308||n===8319||n>=8321&&n<=8324||n===8364||n===8451||n===8453||n===8457||n===8467||n===8470||n===8481||n===8482||n===8486||n===8491||n===8531||n===8532||n>=8539&&n<=8542||n>=8544&&n<=8555||n>=8560&&n<=8569||n===8585||n>=8592&&n<=8601||n===8632||n===8633||n===8658||n===8660||n===8679||n===8704||n===8706||n===8707||n===8711||n===8712||n===8715||n===8719||n===8721||n===8725||n===8730||n>=8733&&n<=8736||n===8739||n===8741||n>=8743&&n<=8748||n===8750||n>=8756&&n<=8759||n===8764||n===8765||n===8776||n===8780||n===8786||n===8800||n===8801||n>=8804&&n<=8807||n===8810||n===8811||n===8814||n===8815||n===8834||n===8835||n===8838||n===8839||n===8853||n===8857||n===8869||n===8895||n===8978||n>=9312&&n<=9449||n>=9451&&n<=9547||n>=9552&&n<=9587||n>=9600&&n<=9615||n>=9618&&n<=9621||n===9632||n===9633||n>=9635&&n<=9641||n===9650||n===9651||n===9654||n===9655||n===9660||n===9661||n===9664||n===9665||n>=9670&&n<=9672||n===9675||n>=9678&&n<=9681||n>=9698&&n<=9701||n===9711||n===9733||n===9734||n===9737||n===9742||n===9743||n===9756||n===9758||n===9792||n===9794||n===9824||n===9825||n>=9827&&n<=9829||n>=9831&&n<=9834||n===9836||n===9837||n===9839||n===9886||n===9887||n===9919||n>=9926&&n<=9933||n>=9935&&n<=9939||n>=9941&&n<=9953||n===9955||n===9960||n===9961||n>=9963&&n<=9969||n===9972||n>=9974&&n<=9977||n===9979||n===9980||n===9982||n===9983||n===10045||n>=10102&&n<=10111||n>=11094&&n<=11097||n>=12872&&n<=12879||n>=57344&&n<=63743||n>=65024&&n<=65039||n===65533||n>=127232&&n<=127242||n>=127248&&n<=127277||n>=127280&&n<=127337||n>=127344&&n<=127373||n===127375||n===127376||n>=127387&&n<=127404||n>=917760&&n<=917999||n>=983040&&n<=1048573||n>=1048576&&n<=1114109}o(oO,"isAmbiguous");function cO(n){return n===12288||n>=65281&&n<=65376||n>=65504&&n<=65510}o(cO,"isFullWidth");function lO(n){return n>=4352&&n<=4447||n===8986||n===8987||n===9001||n===9002||n>=9193&&n<=9196||n===9200||n===9203||n===9725||n===9726||n===9748||n===9749||n>=9776&&n<=9783||n>=9800&&n<=9811||n===9855||n>=9866&&n<=9871||n===9875||n===9889||n===9898||n===9899||n===9917||n===9918||n===9924||n===9925||n===9934||n===9940||n===9962||n===9970||n===9971||n===9973||n===9978||n===9981||n===9989||n===9994||n===9995||n===10024||n===10060||n===10062||n>=10067&&n<=10069||n===10071||n>=10133&&n<=10135||n===10160||n===10175||n===11035||n===11036||n===11088||n===11093||n>=11904&&n<=11929||n>=11931&&n<=12019||n>=12032&&n<=12245||n>=12272&&n<=12287||n>=12289&&n<=12350||n>=12353&&n<=12438||n>=12441&&n<=12543||n>=12549&&n<=12591||n>=12593&&n<=12686||n>=12688&&n<=12773||n>=12783&&n<=12830||n>=12832&&n<=12871||n>=12880&&n<=42124||n>=42128&&n<=42182||n>=43360&&n<=43388||n>=44032&&n<=55203||n>=63744&&n<=64255||n>=65040&&n<=65049||n>=65072&&n<=65106||n>=65108&&n<=65126||n>=65128&&n<=65131||n>=94176&&n<=94180||n>=94192&&n<=94198||n>=94208&&n<=101589||n>=101631&&n<=101662||n>=101760&&n<=101874||n>=110576&&n<=110579||n>=110581&&n<=110587||n===110589||n===110590||n>=110592&&n<=110882||n===110898||n>=110928&&n<=110930||n===110933||n>=110948&&n<=110951||n>=110960&&n<=111355||n>=119552&&n<=119638||n>=119648&&n<=119670||n===126980||n===127183||n===127374||n>=127377&&n<=127386||n>=127488&&n<=127490||n>=127504&&n<=127547||n>=127552&&n<=127560||n===127568||n===127569||n>=127584&&n<=127589||n>=127744&&n<=127776||n>=127789&&n<=127797||n>=127799&&n<=127868||n>=127870&&n<=127891||n>=127904&&n<=127946||n>=127951&&n<=127955||n>=127968&&n<=127984||n===127988||n>=127992&&n<=128062||n===128064||n>=128066&&n<=128252||n>=128255&&n<=128317||n>=128331&&n<=128334||n>=128336&&n<=128359||n===128378||n===128405||n===128406||n===128420||n>=128507&&n<=128591||n>=128640&&n<=128709||n===128716||n>=128720&&n<=128722||n>=128725&&n<=128728||n>=128732&&n<=128735||n===128747||n===128748||n>=128756&&n<=128764||n>=128992&&n<=129003||n===129008||n>=129292&&n<=129338||n>=129340&&n<=129349||n>=129351&&n<=129535||n>=129648&&n<=129660||n>=129664&&n<=129674||n>=129678&&n<=129734||n===129736||n>=129741&&n<=129756||n>=129759&&n<=129770||n>=129775&&n<=129784||n>=131072&&n<=196605||n>=196608&&n<=262141}o(lO,"isWide");function _H(n){if(!Number.isSafeInteger(n))throw new TypeError(`Expected a code point, got \`${typeof n}\`.`)}o(_H,"validate");function xw(n,{ambiguousAsWide:e=!1}={}){return _H(n),cO(n)||lO(n)||e&&oO(n)?2:1}o(xw,"eastAsianWidth");var SH=new Intl.Segmenter,vH=new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Mark}|\\p{Surrogate})+$","v"),bH=new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+","v"),wH=new RegExp("^\\p{RGI_Emoji}$","v");function EH(n){return n.replace(bH,"")}o(EH,"baseVisible");function TH(n){return vH.test(n)}o(TH,"isZeroWidthCluster");function AH(n,e){let t=0;if(n.length>1)for(let r of n.slice(1))r>="\uFF00"&&r<="\uFFEF"&&(t+=xw(r.codePointAt(0),e));return t}o(AH,"trailingHalfwidthWidth");function Cw(n,e={}){if(typeof n!="string"||n.length===0)return 0;let{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:r=!1}=e,i=n;if(r||(i=Vf(i)),i.length===0)return 0;let s=0,a={ambiguousAsWide:!t};for(let{segment:c}of SH.segment(i)){if(TH(c))continue;if(wH.test(c)){s+=2;continue}let l=EH(c).codePointAt(0);s+=xw(l,a),s+=AH(c,a)}return s}o(Cw,"stringWidth");function Iw({stream:n=process.stdout}={}){return!!(n&&n.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}o(Iw,"isInteractive");var Ui=Y(require("node:process"),1);var xH=3,Rw=class{static{o(this,"StdinDiscarder")}#e=0;start(){this.#e++,this.#e===1&&this.#n()}stop(){if(this.#e<=0)throw new Error("`stop` called more times than `start`");this.#e--,this.#e===0&&this.#r()}#n(){Ui.default.platform==="win32"||!Ui.default.stdin.isTTY||(Ui.default.stdin.setRawMode(!0),Ui.default.stdin.on("data",this.#t),Ui.default.stdin.resume())}#r(){Ui.default.stdin.isTTY&&(Ui.default.stdin.off("data",this.#t),Ui.default.stdin.pause(),Ui.default.stdin.setRawMode(!1))}#t(e){e[0]===xH&&Ui.default.emit("SIGINT")}},CH=new Rw,Pw=CH;var Ow=class{static{o(this,"Ora")}#e=0;#n=!1;#r=0;#t=-1;#c=0;#_=0;#i;#u;#s;#l;#a;#p;#g;#d;#m;#y;#f;color;constructor(e){typeof e=="string"&&(e={text:e}),this.#i={color:"cyan",stream:Uf.default.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#i.color,this.spinner=this.#i.spinner,this.#a=this.#i.interval,this.#s=this.#i.stream,this.#p=typeof this.#i.isEnabled=="boolean"?this.#i.isEnabled:Iw({stream:this.#s}),this.#g=typeof this.#i.isSilent=="boolean"?this.#i.isSilent:!1,this.text=this.#i.text,this.prefixText=this.#i.prefixText,this.suffixText=this.#i.suffixText,this.indent=this.#i.indent,Uf.default.env.NODE_ENV==="test"&&(this._stream=this.#s,this._isEnabled=this.#p,Object.defineProperty(this,"_linesToClear",{get(){return this.#e},set(t){this.#e=t}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#t}}),Object.defineProperty(this,"_lineCount",{get(){return this.#r}}))}get indent(){return this.#d}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#d=e,this.#v()}get interval(){return this.#a??this.#u.interval??100}get spinner(){return this.#u}set spinner(e){if(this.#t=-1,this.#a=void 0,typeof e=="object"){if(!Array.isArray(e.frames)||e.frames.length===0||e.frames.some(t=>typeof t!="string"))throw new Error("The given spinner must have a non-empty `frames` array of strings");if(e.interval!==void 0&&!(Number.isInteger(e.interval)&&e.interval>0))throw new Error("`spinner.interval` must be a positive integer if provided");this.#u=e}else if(!Bf())this.#u=$f.line;else if(e===void 0)this.#u=$f.dots;else if(e!=="default"&&$f[e])this.#u=$f[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#m}set text(e=""){this.#m=e,this.#v()}get prefixText(){return this.#y}set prefixText(e=""){this.#y=e,this.#v()}get suffixText(){return this.#f}set suffixText(e=""){this.#f=e,this.#v()}get isSpinning(){return this.#l!==void 0}#E(e,t,r=!1){let i=typeof e=="function"?e():e;return typeof i=="string"&&i!==""?r?t+i:i+t:""}#T(e=this.#y,t=" "){return this.#E(e,t,!1)}#S(e=this.#f,t=" "){return this.#E(e,t,!0)}#w(e,t){let r=0;for(let i of Vf(e).split(`
|
|
533
533
|
`))r+=Math.max(1,Math.ceil(Cw(i)/t));return r}#v(){let e=this.#s.columns??80,t=typeof this.#y=="function"?"":this.#y,r=typeof this.#f=="function"?"":this.#f,i=typeof t=="string"&&t!==""?t+" ":"",s=typeof r=="string"&&r!==""?" "+r:"",c=" ".repeat(this.#d)+i+"-"+(typeof this.#m=="string"?" "+this.#m:"")+s;this.#r=this.#w(c,e)}get isEnabled(){return this.#p&&!this.#g}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#p=e}get isSilent(){return this.#g}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#g=e}frame(){let e=Date.now();(this.#t===-1||e-this.#c>=this.interval)&&(this.#t=++this.#t%this.#u.frames.length,this.#c=e);let{frames:t}=this.#u,r=t[this.#t];this.color&&(r=KP[this.color](r));let i=this.#T(this.#y," "),s=typeof this.text=="string"?" "+this.text:"",a=this.#S(this.#f," ");return i+r+s+a}clear(){if(!this.#p||!this.#s.isTTY)return this;this.#s.cursorTo(0);for(let e=0;e<this.#e;e++)e>0&&this.#s.moveCursor(0,-1),this.#s.clearLine(1);return(this.#d||this.#_!==this.#d)&&this.#s.cursorTo(this.#d),this.#_=this.#d,this.#e=0,this}render(){if(!this.#p||this.#g)return this;this.clear();let e=this.frame(),t=this.#s.columns??80,r=this.#w(e,t),i=this.#s.rows;if(i&&i>1&&r>i){let s=e.split(`
|
|
534
534
|
`),a=i-1;e=[...s.slice(0,a),"... (content truncated to fit terminal)"].join(`
|
|
535
535
|
`)}return this.#s.write(e),this.#e=this.#w(e,t),this}start(e){if(e&&(this.text=e),this.#g)return this;if(!this.#p){let t=" ".repeat(this.#d)+this.#T(this.#y," ")+(this.text?`- ${this.text}`:"")+this.#S(this.#f," ");return t.trim()!==""&&this.#s.write(t+`
|
|
@@ -612,7 +612,7 @@ Available prefixes: ${u}`,this.wellKnownPrefixes[r]&&c.push(`Add: PREFIX ${r}: <
|
|
|
612
612
|
\u{1F4CA} Execution Statistics:`),console.log(` Vault loading: ${_}ms${d?" (from cache)":""}`),console.log(` Query execution: ${G}ms`),console.log(` Total time: ${F}ms`),console.log(` Triples scanned: ${f.length}`),console.log(` Results returned: ${z.length}`),e.useCache&&console.log(` Triple cache: ${d?"HIT":"MISS (rebuilt)"}`),c&&console.log(" Query result cache: MISS (cached for next run)"))}}catch(i){mO(i,r,t)}})}o(pO,"sparqlQueryCommand");function mO(n,e,t){let r=new wg;if(r.classifyError(n)!=="unknown"){let s=r.enhanceError(n,e);if(t==="json"){let a=J.error("VALIDATION_INVALID_FORMAT",s.message,2,{context:{errorType:s.type,suggestions:s.suggestions,line:s.line,column:s.column,queryContext:s.context?{startLine:s.context.startLine,endLine:s.context.endLine,errorLine:s.context.errorLine}:void 0},recovery:{message:s.suggestions?.[0]||"Check query syntax"}});console.log(JSON.stringify(a,null,2)),process.exit(2)}else console.error(r.formatForText(s)),process.exit(2)}D.handle(n)}o(mO,"handleSparqlError");function WH(n){if(n.includes("SELECT")||n.includes("CONSTRUCT")||n.includes("INSERT")||n.includes("DELETE"))return n;let e=(0,Gf.resolve)(n);return(0,Wl.existsSync)(e)?(0,Wl.readFileSync)(e,"utf-8"):n}o(WH,"loadQuery");async function GH(n,e,t){if(e.explain){let i=new vg,s=await i.analyze(n,{includeAlgebraPlan:!0,optimize:!e.noOptimize});if(t==="json"){let a=J.success(s);console.log(JSON.stringify(a,null,2))}else s.valid?(console.log(`\u2705 Query syntax is valid
|
|
613
613
|
`),console.log(i.formatAnalysis(s,"text"))):(console.log(i.formatAnalysis(s,"text")),process.exit(2));return}let r=new qt.ExoQLParser;try{let i=r.parse(n);if(i.type!=="update"){let a=new qt.ExoQLAlgebraTranslator().translate(i);if(!e.noOptimize&&a.type!=="construct")a=new qt.AlgebraOptimizer().optimize(a);else if(!e.noOptimize&&a.type==="construct"){let c=new qt.AlgebraOptimizer,l=a;a={...l,where:c.optimize(l.where)}}}if(t==="json"){let s=J.success({valid:!0,queryType:hO(i),message:"Query syntax is valid"});console.log(JSON.stringify(s,null,2))}else console.log("\u2705 Query syntax is valid"),console.log(` Query type: ${hO(i)}`)}catch(i){mO(i,n,t)}}o(GH,"executeDryRun");function hO(n){return n.type==="update"?"UPDATE":"queryType"in n?n.queryType:"UNKNOWN"}o(hO,"getQueryType");function zH(n,e){switch(e){case"json":let t=new kl;console.log(t.format(n));break;case"csv":let r=new ug;console.log(r.format(n));break;case"table":default:let i=new Ll;console.log(i.format(n));break}}o(zH,"formatSelectResults");function HH(n,e){let t=new Ml;switch(e){case"json":console.log(t.formatJson(n));break;case"ntriples":console.log(t.formatNTriples(n));break;case"table":default:console.log(t.formatTable(n));break}}o(HH,"formatConstructResults");function QH(n,e){switch(e){case"json":console.log(JSON.stringify(n,null,2));break;case"csv":if(n.length===0){console.log("");return}let t=Object.keys(n[0]);console.log(t.join(","));for(let i of n){let s=t.map(a=>{let c=i[a];return c==null?"":String(c).includes(",")?`"${c}"`:String(c)});console.log(s.join(","))}break;case"table":default:if(n.length===0){console.log("No results.");return}let r=Object.keys(n[0]);console.log(r.join(" ")),console.log(r.map(()=>"---").join(" "));for(let i of n){let s=r.map(a=>String(i[a]??""));console.log(s.join(" "))}break}}o(QH,"formatCachedSelectResults");function YH(n,e){switch(e){case"json":console.log(JSON.stringify(n,null,2));break;case"ntriples":for(let t of n)console.log(`<${t.subject}> <${t.predicate}> ${KH(t.object)} .`);break;case"table":default:console.log("Subject Predicate Object"),console.log("--- --- ---");for(let t of n)console.log(`${t.subject} ${t.predicate} ${t.object}`);break}}o(YH,"formatCachedConstructResults");function KH(n){return Eg.formatObject(n)}o(KH,"formatNTriplesObject");function XH(n,e){for(let t of n){let r=[`${t.type.toUpperCase()}`];switch(t.inserted!==void 0&&r.push(`inserted: ${t.inserted}`),t.deleted!==void 0&&r.push(`deleted: ${t.deleted}`),r.push(t.success?"OK":"FAILED"),e){case"json":console.log(JSON.stringify(t,null,2));break;case"csv":n.indexOf(t)===0&&console.log("type,inserted,deleted,success"),console.log(`${t.type},${t.inserted??""},${t.deleted??""},${t.success}`);break;case"table":default:console.log(`\u2705 ${r.join(" | ")}`);break}}}o(XH,"formatUpdateResults");var gO=require("fs"),yO=require("path"),ws=Y(Mt());function _O(){return new xe("index").description("Build or refresh the triple cache for faster SPARQL queries").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--output <type>","Response format: text|json (for MCP tools)","text").option("--stats","Show cache statistics after building").option("--force","Force rebuild even if cache is valid").option("--strict","Fail on first invalid IRI instead of skipping").option("--no-inference","Disable RDFS subClassOf inference materialization").action(async n=>{let e=n.output||"text";D.setFormat(e);try{let t=(0,yO.resolve)(n.vault);if(!(0,gO.existsSync)(t))throw new Ee(t);let r=new ri(t),i=r.getCachePath();n.force&&(e==="text"&&console.log("\u{1F5D1}\uFE0F Invalidating existing cache..."),await r.invalidate()),e==="text"&&console.log(`\u{1F4E6} Building triple cache for: ${t}...`);let s=Date.now(),a=await r.buildCacheWithValidation({strict:n.strict??!1}),c=0;if(n.inference!==!1){let{triples:u}=await r.loadOrBuild(),f=new ws.InMemoryTripleStore;await f.addAll(u),c=await new ws.RDFSInferenceEngine().materialize(f);let h=new ws.NonInheritablePropertyRegistry;await h.initialize(f);let p=new ws.PropertyCardinalityRegistry;await p.initialize(f);let v=await new ws.PrototypeChainMaterializer(h,p).materialize(f);if(c+=v,c>0){let E=await f.match();await r.saveTriples(E),a.tripleCount+=c}e==="text"&&c>0&&console.log(`\u{1F9E0} Materialized ${c} inferred triples (RDFS + prototype chain)`)}let l=Date.now()-s;if(e==="json"){let u={action:"build",cachePath:i,tripleCount:a.tripleCount,durationMs:a.durationMs},f={summary:a.summary,skippedFiles:a.skippedFiles};if(n.stats){let d=await r.getCacheStats();if(d){let h={tripleCount:d.tripleCount,createdAt:d.createdAt.toISOString(),isValid:d.isValid,sizeBytes:d.sizeBytes,cachePath:i},p=J.success({cache:u,stats:h,validation:f},{durationMs:l});console.log(JSON.stringify(p,null,2))}}else{let d=J.success({cache:u,validation:f},{durationMs:l});console.log(JSON.stringify(d,null,2))}}else{if(a.skippedFiles.length>0){console.log(`
|
|
614
614
|
\u26A0\uFE0F Files skipped due to IRI issues:`);for(let u of a.skippedFiles)console.log(` - ${u.path}`),console.log(` ${u.reason}`);console.log("")}if(console.log(`\u2705 Indexed ${a.summary.indexed} files, skipped ${a.summary.skipped} (total: ${a.summary.total})`),console.log(`\u{1F4CA} Created cache with ${a.tripleCount.toLocaleString()} triples at ${i}`),console.log(`\u23F1\uFE0F Build time: ${a.durationMs}ms`),n.stats){let u=await r.getCacheStats();u&&(console.log(`
|
|
615
|
-
\u{1F4CA} Cache Statistics:`),console.log(` Triples: ${u.tripleCount.toLocaleString()}`),console.log(` Created: ${u.createdAt.toISOString()}`),console.log(` Valid: ${u.isValid?"\u2705 Yes":"\u274C No"}`),console.log(` Size: ${JH(u.sizeBytes)}`))}}}catch(t){D.handle(t)}})}o(_O,"sparqlIndexCommand");function JH(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}o(JH,"formatBytes");function SO(){return new xe("templates").description("List available SPARQL query templates").option("--output <type>","Response format: text|json (for MCP tools)","text").action(async n=>{let e=n.output||"text";D.setFormat(e);try{let t=new Ul,r=t.listTemplates();if(e==="json"){let i=J.success({templates:r,count:r.length});console.log(JSON.stringify(i,null,2))}else console.log(t.formatList("text"))}catch(t){D.handle(t)}})}o(SO,"sparqlTemplatesCommand");var xF=require("path");var pr=Y(Ga()),Ja=Y(require("path"));var VO=Y(FO(),1);var Hf=o(n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>65536)throw new TypeError("pattern is too long")},"assertValidPattern");var aQ={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Qf=o(n=>n.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),oQ=o(n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),DO=o(n=>n.join(""),"rangesToString"),NO=o((n,e)=>{let t=e;if(n.charAt(t)!=="[")throw new Error("not in a brace expression");let r=[],i=[],s=t+1,a=!1,c=!1,l=!1,u=!1,f=t,d="";e:for(;s<n.length;){let v=n.charAt(s);if((v==="!"||v==="^")&&s===t+1){u=!0,s++;continue}if(v==="]"&&a&&!l){f=s+1;break}if(a=!0,v==="\\"&&!l){l=!0,s++;continue}if(v==="["&&!l){for(let[E,[b,A,R]]of Object.entries(aQ))if(n.startsWith(E,s)){if(d)return["$.",!1,n.length-t,!0];s+=E.length,R?i.push(b):r.push(b),c=c||A;continue e}}if(l=!1,d){v>d?r.push(Qf(d)+"-"+Qf(v)):v===d&&r.push(Qf(v)),d="",s++;continue}if(n.startsWith("-]",s+1)){r.push(Qf(v+"-")),s+=2;continue}if(n.startsWith("-",s+1)){d=v,s+=2;continue}r.push(Qf(v)),s++}if(f<s)return["",!1,0,!1];if(!r.length&&!i.length)return["$.",!1,n.length-t,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!u){let v=r[0].length===2?r[0].slice(-1):r[0];return[oQ(v),!1,f-t,!1]}let h="["+(u?"^":"")+DO(r)+"]",p="["+(u?"":"^")+DO(i)+"]";return[r.length&&i.length?"("+h+"|"+p+")":r.length?h:p,c,f-t,!0]},"parseClass");var qi=o((n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/\[([^\/\\])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),"unescape");var On,cQ=new Set(["!","?","+","*","@"]),Bw=o(n=>cQ.has(n),"isExtglobType"),LO=o(n=>Bw(n.type),"isExtglobAST"),lQ=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),uQ=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),fQ=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),kO=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),dQ="(?!(?:^|/)\\.\\.?(?:$|/))",Ag="(?!\\.)",hQ=new Set(["[","."]),pQ=new Set(["..","."]),mQ=new Set("().*{}+?[]^$\\!"),gQ=o(n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Vw="[^/]",MO=Vw+"*?",jO=Vw+"+?",Jo=class{static{o(this,"AST")}type;#e;#n;#r=!1;#t=[];#c;#_;#i;#u=!1;#s;#l;#a=!1;constructor(e,t,r={}){this.type=e,e&&(this.#n=!0),this.#c=t,this.#e=this.#c?this.#c.#e:this,this.#s=this.#e===this?r:this.#e.#s,this.#i=this.#e===this?[]:this.#e.#i,e==="!"&&!this.#e.#u&&this.#i.push(this),this.#_=this.#c?this.#c.#t.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#l!==void 0?this.#l:this.type?this.#l=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#l=this.#t.map(e=>String(e)).join("")}#p(){if(this!==this.#e)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let e;for(;e=this.#i.pop();){if(e.type!=="!")continue;let t=e,r=t.#c;for(;r;){for(let i=t.#_+1;!r.type&&i<r.#t.length;i++)for(let s of e.#t){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(r.#t[i])}t=r,r=t.#c}}return this}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof On&&t.#c===this))throw new Error("invalid part: "+t);this.#t.push(t)}}toJSON(){let e=this.type===null?this.#t.slice().map(t=>typeof t=="string"?t:t.toJSON()):[this.type,...this.#t.map(t=>t.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#u&&this.#c?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#c?.isStart())return!1;if(this.#_===0)return!0;let e=this.#c;for(let t=0;t<this.#_;t++){let r=e.#t[t];if(!(r instanceof On&&r.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#c?.type==="!")return!0;if(!this.#c?.isEnd())return!1;if(!this.type)return this.#c?.isEnd();let e=this.#c?this.#c.#t.length:0;return this.#_===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new On(this.type,e);for(let r of this.#t)t.copyIn(r);return t}static#g(e,t,r,i,s){let a=i.maxExtglobRecursion??2,c=!1,l=!1,u=-1,f=!1;if(t.type===null){let v=r,E="";for(;v<e.length;){let b=e.charAt(v++);if(c||b==="\\"){c=!c,E+=b;continue}if(l){v===u+1?(b==="^"||b==="!")&&(f=!0):b==="]"&&!(v===u+2&&f)&&(l=!1),E+=b;continue}else if(b==="["){l=!0,u=v,f=!1,E+=b;continue}if(!i.noext&&Bw(b)&&e.charAt(v)==="("&&s<=a){t.push(E),E="";let R=new On(b,t);v=On.#g(e,R,v,i,s+1),t.push(R);continue}E+=b}return t.push(E),v}let d=r+1,h=new On(null,t),p=[],_="";for(;d<e.length;){let v=e.charAt(d++);if(c||v==="\\"){c=!c,_+=v;continue}if(l){d===u+1?(v==="^"||v==="!")&&(f=!0):v==="]"&&!(d===u+2&&f)&&(l=!1),_+=v;continue}else if(v==="["){l=!0,u=d,f=!1,_+=v;continue}if(Bw(v)&&e.charAt(d)==="("&&(s<=a||t&&t.#y(v))){let b=t&&t.#y(v)?0:1;h.push(_),_="";let A=new On(v,h);h.push(A),d=On.#g(e,A,d,i,s+b);continue}if(v==="|"){h.push(_),_="",p.push(h),h=new On(null,t);continue}if(v===")")return _===""&&t.#t.length===0&&(t.#a=!0),h.push(_),_="",t.push(...p,h),d;_+=v}return t.type=null,t.#n=void 0,t.#t=[e.substring(r-1)],d}#d(e){return this.#m(e,uQ)}#m(e,t=lQ){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;let r=e.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#y(r.type,t)}#y(e,t=fQ){return!!t.get(this.type)?.includes(e)}#f(e,t){let r=e.#t[0],i=new On(null,r,this.options);i.#t.push(""),r.push(i),this.#E(e,t)}#E(e,t){let r=e.#t[0];this.#t.splice(t,1,...r.#t);for(let i of r.#t)typeof i=="object"&&(i.#c=this);this.#l=void 0}#T(e){return!!kO.get(this.type)?.has(e)}#S(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let t=e.#t[0];return!t||typeof t!="object"||t.type===null?!1:this.#T(t.type)}#w(e){let t=kO.get(this.type),r=e.#t[0],i=t?.get(r.type);if(!i)return!1;this.#t=r.#t;for(let s of this.#t)typeof s=="object"&&(s.#c=this);this.type=i,this.#l=void 0,this.#a=!1}#v(){if(LO(this)){let e=0,t=!1;do{t=!0;for(let r=0;r<this.#t.length;r++){let i=this.#t[r];typeof i=="object"&&(i.#v(),this.#m(i)?(t=!1,this.#E(i,r)):this.#d(i)?(t=!1,this.#f(i,r)):this.#S(i)&&(t=!1,this.#w(i)))}}while(!t&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#v();this.#l=void 0}static fromGlob(e,t={}){let r=new On(null,void 0,t);return On.#g(e,r,0,t,0),r}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,r,i,s]=this.toRegExpSource();if(!(i||this.#n||this.#s.nocase&&!this.#s.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;let c=(this.#s.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${t}$`,c),{_src:t,_glob:e})}get options(){return this.#s}toRegExpSource(e){let t=e??!!this.#s.dot;if(this.#e===this&&(this.#v(),this.#p()),!LO(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(p=>{let[_,v,E,b]=typeof p=="string"?On.#x(p,this.#n,l):p.toRegExpSource(e);return this.#n=this.#n||E,this.#r=this.#r||b,_}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&pQ.has(this.#t[0]))){let _=hQ,v=t&&_.has(u.charAt(0))||u.startsWith("\\.")&&_.has(u.charAt(2))||u.startsWith("\\.\\.")&&_.has(u.charAt(4)),E=!t&&!e&&_.has(u.charAt(0));f=v?dQ:E?Ag:""}let d="";return this.isEnd()&&this.#e.#u&&this.#c?.type==="!"&&(d="(?:$|\\/)"),[f+u+d,qi(u),this.#n=!!this.#n,this.#r]}let r=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#b(t);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#n=void 0,[l,qi(this.toString()),!1,!1]}let a=!r||e||t||!Ag?"":this.#b(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let c="";if(this.type==="!"&&this.#a)c=(this.isStart()&&!t?Ag:"")+jO;else{let l=this.type==="!"?"))"+(this.isStart()&&!t&&!e?Ag:"")+MO+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=i+s+l}return[c,qi(s),this.#n=!!this.#n,this.#r]}#b(e){return this.#t.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[r,i,s,a]=t.toRegExpSource(e);return this.#r=this.#r||a,r}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#x(e,t,r=!1){let i=!1,s="",a=!1,c=!1;for(let l=0;l<e.length;l++){let u=e.charAt(l);if(i){i=!1,s+=(mQ.has(u)?"\\":"")+u,c=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":i=!0;continue}if(u==="["){let[f,d,h,p]=NO(e,l);if(h){s+=f,a=a||d,l+=h-1,t=t||p,c=!1;continue}}if(u==="*"){if(c)continue;c=!0,s+=r&&/^[*]+$/.test(e)?jO:MO,t=!0;continue}else c=!1;if(u==="?"){s+=Vw,t=!0;continue}s+=gQ(u)}return[s,qi(e),!!t,a]}};On=Jo;var Gl=o((n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/[?*()[\]]/g,"[$&]"):n.replace(/[?*()[\]\\]/g,"\\$&"),"escape");var $r=o((n,e,t={})=>(Hf(e),!t.nocomment&&e.charAt(0)==="#"?!1:new Vn(e,t).match(n)),"minimatch"),yQ=/^\*+([^+@!?\*\[\(]*)$/,_Q=o(n=>e=>!e.startsWith(".")&&e.endsWith(n),"starDotExtTest"),SQ=o(n=>e=>e.endsWith(n),"starDotExtTestDot"),vQ=o(n=>(n=n.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(n)),"starDotExtTestNocase"),bQ=o(n=>(n=n.toLowerCase(),e=>e.toLowerCase().endsWith(n)),"starDotExtTestNocaseDot"),wQ=/^\*+\.\*+$/,EQ=o(n=>!n.startsWith(".")&&n.includes("."),"starDotStarTest"),TQ=o(n=>n!=="."&&n!==".."&&n.includes("."),"starDotStarTestDot"),AQ=/^\.\*+$/,xQ=o(n=>n!=="."&&n!==".."&&n.startsWith("."),"dotStarTest"),CQ=/^\*+$/,IQ=o(n=>n.length!==0&&!n.startsWith("."),"starTest"),RQ=o(n=>n.length!==0&&n!=="."&&n!=="..","starTestDot"),PQ=/^\?+([^+@!?\*\[\(]*)?$/,OQ=o(([n,e=""])=>{let t=UO([n]);return e?(e=e.toLowerCase(),r=>t(r)&&r.toLowerCase().endsWith(e)):t},"qmarksTestNocase"),FQ=o(([n,e=""])=>{let t=qO([n]);return e?(e=e.toLowerCase(),r=>t(r)&&r.toLowerCase().endsWith(e)):t},"qmarksTestNocaseDot"),DQ=o(([n,e=""])=>{let t=qO([n]);return e?r=>t(r)&&r.endsWith(e):t},"qmarksTestDot"),NQ=o(([n,e=""])=>{let t=UO([n]);return e?r=>t(r)&&r.endsWith(e):t},"qmarksTest"),UO=o(([n])=>{let e=n.length;return t=>t.length===e&&!t.startsWith(".")},"qmarksTestNoExt"),qO=o(([n])=>{let e=n.length;return t=>t.length===e&&t!=="."&&t!==".."},"qmarksTestNoExtDot"),WO=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",$O={win32:{sep:"\\"},posix:{sep:"/"}},LQ=WO==="win32"?$O.win32.sep:$O.posix.sep;$r.sep=LQ;var Yt=Symbol("globstar **");$r.GLOBSTAR=Yt;var kQ="[^/]",MQ=kQ+"*?",jQ="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",$Q="(?:(?!(?:\\/|^)\\.).)*?",BQ=o((n,e={})=>t=>$r(t,n,e),"filter");$r.filter=BQ;var ii=o((n,e={})=>Object.assign({},n,e),"ext"),VQ=o(n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return $r;let e=$r;return Object.assign(o((r,i,s={})=>e(r,i,ii(n,s)),"m"),{Minimatch:class extends e.Minimatch{static{o(this,"Minimatch")}constructor(i,s={}){super(i,ii(n,s))}static defaults(i){return e.defaults(ii(n,i)).Minimatch}},AST:class extends e.AST{static{o(this,"AST")}constructor(i,s,a={}){super(i,s,ii(n,a))}static fromGlob(i,s={}){return e.AST.fromGlob(i,ii(n,s))}},unescape:o((r,i={})=>e.unescape(r,ii(n,i)),"unescape"),escape:o((r,i={})=>e.escape(r,ii(n,i)),"escape"),filter:o((r,i={})=>e.filter(r,ii(n,i)),"filter"),defaults:o(r=>e.defaults(ii(n,r)),"defaults"),makeRe:o((r,i={})=>e.makeRe(r,ii(n,i)),"makeRe"),braceExpand:o((r,i={})=>e.braceExpand(r,ii(n,i)),"braceExpand"),match:o((r,i,s={})=>e.match(r,i,ii(n,s)),"match"),sep:e.sep,GLOBSTAR:Yt})},"defaults");$r.defaults=VQ;var GO=o((n,e={})=>(Hf(n),e.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:(0,VO.default)(n)),"braceExpand");$r.braceExpand=GO;var UQ=o((n,e={})=>new Vn(n,e).makeRe(),"makeRe");$r.makeRe=UQ;var qQ=o((n,e,t={})=>{let r=new Vn(e,t);return n=n.filter(i=>r.match(i)),r.options.nonull&&!n.length&&n.push(e),n},"match");$r.match=qQ;var BO=/[?*]|[+@!]\(.*?\)|\[|\]/,WQ=o(n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Vn=class{static{o(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){Hf(e),t=t||{},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||WO,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,a,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!BO.test(s[2]))&&!BO.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(u)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let a=this.set[s];a[0]===""&&a[1]===""&&this.globParts[s][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let i=0;i<e[r].length;i++)e[r][i]==="**"&&(e[r][i]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let r=-1;for(;(r=t.indexOf("**",r+1))!==-1;){let i=r;for(;t[i+1]==="**";)i++;i!==r&&t.splice(r,i-r)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((r,i)=>{let s=r[r.length-1];return i==="**"&&s==="**"?r:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(r.pop(),r):(r.push(i),r)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let s=e[i];i===1&&s===""&&e[0]===""||(s==="."||s==="")&&(t=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){let i=e[r-1];i&&i!=="."&&i!==".."&&i!=="**"&&(t=!0,e.splice(r-1,2),r-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let r of e){let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let a=i;for(;r[a+1]==="**";)a++;a>i&&r.splice(i+1,a-i);let c=r[i+1],l=r[i+2],u=r[i+3];if(c!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;t=!0,r.splice(i,1);let f=r.slice(0);f[i]="**",e.push(f),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<r.length-1;a++){let c=r[a];a===1&&c===""&&r[0]===""||(c==="."||c==="")&&(t=!0,r.splice(a,1),a--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(t=!0,r.pop())}let s=0;for(;(s=r.indexOf("..",s+1))!==-1;){let a=r[s-1];if(a&&a!=="."&&a!==".."&&a!=="**"){t=!0;let l=s===1&&r[s+1]==="**"?["."]:[];r.splice(s-1,2,...l),r.length===0&&r.push(""),s-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let r=t+1;r<e.length;r++){let i=this.partsMatch(e[t],e[r],!this.preserveMultipleSlashes);if(i){e[t]=[],e[r]=i;break}}return e.filter(t=>t.length)}partsMatch(e,t,r=!1){let i=0,s=0,a=[],c="";for(;i<e.length&&s<t.length;)if(e[i]===t[s])a.push(c==="b"?t[s]:e[i]),i++,s++;else if(r&&e[i]==="**"&&t[s]===e[i+1])a.push(e[i]),i++;else if(r&&t[s]==="**"&&e[i]===t[s+1])a.push(t[s]),s++;else if(e[i]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(c==="b")return!1;c="a",a.push(e[i]),i++,s++}else if(t[s]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(c==="a")return!1;c="b",a.push(t[s]),i++,s++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,t,r=!1){let i=0,s=0;if(this.isWindows){let c=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!c&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),f=!u&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),d=l?3:c?0:void 0,h=f?3:u?0:void 0;if(typeof d=="number"&&typeof h=="number"){let[p,_]=[e[d],t[h]];p.toLowerCase()===_.toLowerCase()&&(t[h]=p,s=h,i=d)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(Yt)?this.#e(e,t,r,i,s):this.#r(e,t,r,i,s)}#e(e,t,r,i,s){let a=t.indexOf(Yt,s),c=t.lastIndexOf(Yt),[l,u,f]=r?[t.slice(s,a),t.slice(a+1),[]]:[t.slice(s,a),t.slice(a+1,c),t.slice(c+1)];if(l.length){let A=e.slice(i,i+l.length);if(!this.#r(A,l,r,0,0))return!1;i+=l.length}let d=0;if(f.length){if(f.length+i>e.length)return!1;let A=e.length-f.length;if(this.#r(e,f,r,A,0))d=f.length;else{if(e[e.length-1]!==""||i+f.length===e.length||(A--,!this.#r(e,f,r,A,0)))return!1;d=f.length+1}}if(!u.length){let A=!!d;for(let R=i;R<e.length-d;R++){let B=String(e[R]);if(A=!0,B==="."||B===".."||!this.options.dot&&B.startsWith("."))return!1}return r||A}let h=[[[],0]],p=h[0],_=0,v=[0];for(let A of u)A===Yt?(v.push(_),p=[[],0],h.push(p)):(p[0].push(A),_++);let E=h.length-1,b=e.length-d;for(let A of h)A[1]=b-(v[E--]+A[0].length);return!!this.#n(e,h,i,0,r,0,!!d)}#n(e,t,r,i,s,a,c){let l=t[i];if(!l){for(let d=r;d<e.length;d++){c=!0;let h=e[d];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return c}let[u,f]=l;for(;r<=f;){if(this.#r(e.slice(0,r+u.length),u,s,r,0)&&a<this.maxGlobstarRecursion){let p=this.#n(e,t,r+u.length,i+1,s,a+1,c);if(p!==!1)return p}let h=e[r];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;r++}return s||null}#r(e,t,r,i,s){let a,c,l,u;for(a=i,c=s,u=e.length,l=t.length;a<u&&c<l;a++,c++){this.debug("matchOne loop");let f=t[c],d=e[a];if(this.debug(t,f,d),f===!1||f===Yt)return!1;let h;if(typeof f=="string"?(h=d===f,this.debug("string match",f,d,h)):(h=f.test(d),this.debug("pattern match",f,d,h)),!h)return!1}if(a===u&&c===l)return!0;if(a===u)return r;if(c===l)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return GO(this.pattern,this.options)}parse(e){Hf(e);let t=this.options;if(e==="**")return Yt;if(e==="")return"";let r,i=null;(r=e.match(CQ))?i=t.dot?RQ:IQ:(r=e.match(yQ))?i=(t.nocase?t.dot?bQ:vQ:t.dot?SQ:_Q)(r[1]):(r=e.match(PQ))?i=(t.nocase?t.dot?FQ:OQ:t.dot?DQ:NQ)(r):(r=e.match(wQ))?i=t.dot?TQ:EQ:(r=e.match(AQ))&&(i=xQ);let s=Jo.fromGlob(e,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,r=t.noglobstar?MQ:t.dot?jQ:$Q,i=new Set(t.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let d of f.flags.split(""))i.add(d);return typeof f=="string"?WQ(f):f===Yt?Yt:f._src});return u.forEach((f,d)=>{let h=u[d+1],p=u[d-1];f!==Yt||p===Yt||(p===void 0?h!==void 0&&h!==Yt?u[d+1]="(?:\\/|"+r+"\\/)?"+h:u[d]=r:h===void 0?u[d-1]=p+"(?:\\/|"+r+")?":h!==Yt&&(u[d-1]=p+"(?:\\/|\\/"+r+"\\/)"+h,u[d+1]=Yt))}),u.filter(f=>f!==Yt).join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let a=i[i.length-1];if(!a)for(let c=i.length-2;!a&&c>=0;c--)a=i[c];for(let c=0;c<s.length;c++){let l=s[c],u=i;if(r.matchBase&&l.length===1&&(u=[a]),this.matchOne(u,l,t))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return $r.defaults(e).Minimatch}};$r.AST=Jo;$r.Minimatch=Vn;$r.escape=Gl;$r.unescape=qi;var mF=require("node:url");var zl=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,HO=new Set,Uw=typeof process=="object"&&process?process:{},QO=o((n,e,t,r)=>{typeof Uw.emitWarning=="function"?Uw.emitWarning(n,e,t,r):console.error(`[${t}] ${e}: ${n}`)},"emitWarning"),xg=globalThis.AbortController,zO=globalThis.AbortSignal;if(typeof xg>"u"){zO=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(r,i){this._onabort.push(i)}},xg=class{static{o(this,"AbortController")}constructor(){e()}signal=new zO;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let i of this.signal._onabort)i(r);this.signal.onabort?.(r)}}};let n=Uw.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{n&&(n=!1,QO("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var GQ=o(n=>!HO.has(n),"shouldWarn");var Qa=o(n=>n&&n===Math.floor(n)&&n>0&&isFinite(n),"isPosInt"),YO=o(n=>Qa(n)?n<=Math.pow(2,8)?Uint8Array:n<=Math.pow(2,16)?Uint16Array:n<=Math.pow(2,32)?Uint32Array:n<=Number.MAX_SAFE_INTEGER?Hl:null:null,"getUintArray"),Hl=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},qw=class n{static{o(this,"Stack")}heap;length;static#e=!1;static create(e){let t=YO(e);if(!t)return[];n.#e=!0;let r=new n(e,t);return n.#e=!1,r}constructor(e,t){if(!n.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Yf=class n{static{o(this,"LRUCache")}#e;#n;#r;#t;#c;#_;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#i;#u;#s;#l;#a;#p;#g;#d;#m;#y;#f;#E;#T;#S;#w;#v;#b;static unsafeExposeInternals(e){return{starts:e.#T,ttls:e.#S,sizes:e.#E,keyMap:e.#s,keyList:e.#l,valList:e.#a,next:e.#p,prev:e.#g,get head(){return e.#d},get tail(){return e.#m},free:e.#y,isBackgroundFetch:o(t=>e.#h(t),"isBackgroundFetch"),backgroundFetch:o((t,r,i,s)=>e.#j(t,r,i,s),"backgroundFetch"),moveToTail:o(t=>e.#B(t),"moveToTail"),indexes:o(t=>e.#I(t),"indexes"),rindexes:o(t=>e.#R(t),"rindexes"),isStale:o(t=>e.#A(t),"isStale")}}get max(){return this.#e}get maxSize(){return this.#n}get calculatedSize(){return this.#u}get size(){return this.#i}get fetchMethod(){return this.#c}get memoMethod(){return this.#_}get dispose(){return this.#r}get disposeAfter(){return this.#t}constructor(e){let{max:t=0,ttl:r,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:a,updateAgeOnHas:c,allowStale:l,dispose:u,disposeAfter:f,noDisposeOnSet:d,noUpdateTTL:h,maxSize:p=0,maxEntrySize:_=0,sizeCalculation:v,fetchMethod:E,memoMethod:b,noDeleteOnFetchRejection:A,noDeleteOnStaleGet:R,allowStaleOnFetchRejection:B,allowStaleOnFetchAbort:W,ignoreFetchAbort:we}=e;if(t!==0&&!Qa(t))throw new TypeError("max option must be a nonnegative integer");let z=t?YO(t):Array;if(!z)throw new Error("invalid max value: "+t);if(this.#e=t,this.#n=p,this.maxEntrySize=_||this.#n,this.sizeCalculation=v,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(b!==void 0&&typeof b!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#_=b,E!==void 0&&typeof E!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#c=E,this.#v=!!E,this.#s=new Map,this.#l=new Array(t).fill(void 0),this.#a=new Array(t).fill(void 0),this.#p=new z(t),this.#g=new z(t),this.#d=0,this.#m=0,this.#y=qw.create(t),this.#i=0,this.#u=0,typeof u=="function"&&(this.#r=u),typeof f=="function"?(this.#t=f,this.#f=[]):(this.#t=void 0,this.#f=void 0),this.#w=!!this.#r,this.#b=!!this.#t,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!A,this.allowStaleOnFetchRejection=!!B,this.allowStaleOnFetchAbort=!!W,this.ignoreFetchAbort=!!we,this.maxEntrySize!==0){if(this.#n!==0&&!Qa(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!Qa(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#P()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!R,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!c,this.ttlResolution=Qa(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=r||0,this.ttl){if(!Qa(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#x()}if(this.#e===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#n){let G="LRU_CACHE_UNBOUNDED";GQ(G)&&(HO.add(G),QO("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",G,n))}}getRemainingTTL(e){return this.#s.has(e)?1/0:0}#x(){let e=new Hl(this.#e),t=new Hl(this.#e);this.#S=e,this.#T=t,this.#F=(s,a,c=zl.now())=>{if(t[s]=a!==0?c:0,e[s]=a,a!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#A(s)&&this.#O(this.#l[s],"expire")},a+1);l.unref&&l.unref()}},this.#C=s=>{t[s]=e[s]!==0?zl.now():0},this.#o=(s,a)=>{if(e[a]){let c=e[a],l=t[a];if(!c||!l)return;s.ttl=c,s.start=l,s.now=r||i();let u=s.now-l;s.remainingTTL=c-u}};let r=0,i=o(()=>{let s=zl.now();if(this.ttlResolution>0){r=s;let a=setTimeout(()=>r=0,this.ttlResolution);a.unref&&a.unref()}return s},"getNow");this.getRemainingTTL=s=>{let a=this.#s.get(s);if(a===void 0)return 0;let c=e[a],l=t[a];if(!c||!l)return 1/0;let u=(r||i())-l;return c-u},this.#A=s=>{let a=t[s],c=e[s];return!!c&&!!a&&(r||i())-a>c}}#C=o(()=>{},"#updateItemAge");#o=o(()=>{},"#statusTTL");#F=o(()=>{},"#setItemTTL");#A=o(()=>!1,"#isStale");#P(){let e=new Hl(this.#e);this.#u=0,this.#E=e,this.#D=t=>{this.#u-=e[t],e[t]=0},this.#L=(t,r,i,s)=>{if(this.#h(r))return 0;if(!Qa(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(r,t),!Qa(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#N=(t,r,i)=>{if(e[t]=r,this.#n){let s=this.#n-e[t];for(;this.#u>s;)this.#M(!0)}this.#u+=e[t],i&&(i.entrySize=r,i.totalCalculatedSize=this.#u)}}#D=o(e=>{},"#removeItemSize");#N=o((e,t,r)=>{},"#addItemSize");#L=o((e,t,r,i)=>{if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#I({allowStale:e=this.allowStale}={}){if(this.#i)for(let t=this.#m;!(!this.#k(t)||((e||!this.#A(t))&&(yield t),t===this.#d));)t=this.#g[t]}*#R({allowStale:e=this.allowStale}={}){if(this.#i)for(let t=this.#d;!(!this.#k(t)||((e||!this.#A(t))&&(yield t),t===this.#m));)t=this.#p[t]}#k(e){return e!==void 0&&this.#s.get(this.#l[e])===e}*entries(){for(let e of this.#I())this.#a[e]!==void 0&&this.#l[e]!==void 0&&!this.#h(this.#a[e])&&(yield[this.#l[e],this.#a[e]])}*rentries(){for(let e of this.#R())this.#a[e]!==void 0&&this.#l[e]!==void 0&&!this.#h(this.#a[e])&&(yield[this.#l[e],this.#a[e]])}*keys(){for(let e of this.#I()){let t=this.#l[e];t!==void 0&&!this.#h(this.#a[e])&&(yield t)}}*rkeys(){for(let e of this.#R()){let t=this.#l[e];t!==void 0&&!this.#h(this.#a[e])&&(yield t)}}*values(){for(let e of this.#I())this.#a[e]!==void 0&&!this.#h(this.#a[e])&&(yield this.#a[e])}*rvalues(){for(let e of this.#R())this.#a[e]!==void 0&&!this.#h(this.#a[e])&&(yield this.#a[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let r of this.#I()){let i=this.#a[r],s=this.#h(i)?i.__staleWhileFetching:i;if(s!==void 0&&e(s,this.#l[r],this))return this.get(this.#l[r],t)}}forEach(e,t=this){for(let r of this.#I()){let i=this.#a[r],s=this.#h(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(t,s,this.#l[r],this)}}rforEach(e,t=this){for(let r of this.#R()){let i=this.#a[r],s=this.#h(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(t,s,this.#l[r],this)}}purgeStale(){let e=!1;for(let t of this.#R({allowStale:!0}))this.#A(t)&&(this.#O(this.#l[t],"expire"),e=!0);return e}info(e){let t=this.#s.get(e);if(t===void 0)return;let r=this.#a[t],i=this.#h(r)?r.__staleWhileFetching:r;if(i===void 0)return;let s={value:i};if(this.#S&&this.#T){let a=this.#S[t],c=this.#T[t];if(a&&c){let l=a-(zl.now()-c);s.ttl=l,s.start=Date.now()}}return this.#E&&(s.size=this.#E[t]),s}dump(){let e=[];for(let t of this.#I({allowStale:!0})){let r=this.#l[t],i=this.#a[t],s=this.#h(i)?i.__staleWhileFetching:i;if(s===void 0||r===void 0)continue;let a={value:s};if(this.#S&&this.#T){a.ttl=this.#S[t];let c=zl.now()-this.#T[t];a.start=Math.floor(Date.now()-c)}this.#E&&(a.size=this.#E[t]),e.unshift([r,a])}return e}load(e){this.clear();for(let[t,r]of e){if(r.start){let i=Date.now()-r.start;r.start=zl.now()-i}this.set(t,r.value,r)}}set(e,t,r={}){if(t===void 0)return this.delete(e),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:c=this.sizeCalculation,status:l}=r,{noUpdateTTL:u=this.noUpdateTTL}=r,f=this.#L(e,t,r.size||0,c);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#O(e,"set"),this;let d=this.#i===0?void 0:this.#s.get(e);if(d===void 0)d=this.#i===0?this.#m:this.#y.length!==0?this.#y.pop():this.#i===this.#e?this.#M(!1):this.#i,this.#l[d]=e,this.#a[d]=t,this.#s.set(e,d),this.#p[this.#m]=d,this.#g[d]=this.#m,this.#m=d,this.#i++,this.#N(d,f,l),l&&(l.set="add"),u=!1;else{this.#B(d);let h=this.#a[d];if(t!==h){if(this.#v&&this.#h(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:p}=h;p!==void 0&&!a&&(this.#w&&this.#r?.(p,e,"set"),this.#b&&this.#f?.push([p,e,"set"]))}else a||(this.#w&&this.#r?.(h,e,"set"),this.#b&&this.#f?.push([h,e,"set"]));if(this.#D(d),this.#N(d,f,l),this.#a[d]=t,l){l.set="replace";let p=h&&this.#h(h)?h.__staleWhileFetching:h;p!==void 0&&(l.oldValue=p)}}else l&&(l.set="update")}if(i!==0&&!this.#S&&this.#x(),this.#S&&(u||this.#F(d,i,s),l&&this.#o(l,d)),!a&&this.#b&&this.#f){let h=this.#f,p;for(;p=h?.shift();)this.#t?.(...p)}return this}pop(){try{for(;this.#i;){let e=this.#a[this.#d];if(this.#M(!0),this.#h(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#b&&this.#f){let e=this.#f,t;for(;t=e?.shift();)this.#t?.(...t)}}}#M(e){let t=this.#d,r=this.#l[t],i=this.#a[t];return this.#v&&this.#h(i)?i.__abortController.abort(new Error("evicted")):(this.#w||this.#b)&&(this.#w&&this.#r?.(i,r,"evict"),this.#b&&this.#f?.push([i,r,"evict"])),this.#D(t),e&&(this.#l[t]=void 0,this.#a[t]=void 0,this.#y.push(t)),this.#i===1?(this.#d=this.#m=0,this.#y.length=0):this.#d=this.#p[t],this.#s.delete(r),this.#i--,t}has(e,t={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=t,s=this.#s.get(e);if(s!==void 0){let a=this.#a[s];if(this.#h(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#A(s))i&&(i.has="stale",this.#o(i,s));else return r&&this.#C(s),i&&(i.has="hit",this.#o(i,s)),!0}else i&&(i.has="miss");return!1}peek(e,t={}){let{allowStale:r=this.allowStale}=t,i=this.#s.get(e);if(i===void 0||!r&&this.#A(i))return;let s=this.#a[i];return this.#h(s)?s.__staleWhileFetching:s}#j(e,t,r,i){let s=t===void 0?void 0:this.#a[t];if(this.#h(s))return s;let a=new xg,{signal:c}=r;c?.addEventListener("abort",()=>a.abort(c.reason),{signal:a.signal});let l={signal:a.signal,options:r,context:i},u=o((v,E=!1)=>{let{aborted:b}=a.signal,A=r.ignoreFetchAbort&&v!==void 0;if(r.status&&(b&&!E?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,A&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),b&&!A&&!E)return d(a.signal.reason);let R=p;return this.#a[t]===p&&(v===void 0?R.__staleWhileFetching?this.#a[t]=R.__staleWhileFetching:this.#O(e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,v,l.options))),v},"cb"),f=o(v=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=v),d(v)),"eb"),d=o(v=>{let{aborted:E}=a.signal,b=E&&r.allowStaleOnFetchAbort,A=b||r.allowStaleOnFetchRejection,R=A||r.noDeleteOnFetchRejection,B=p;if(this.#a[t]===p&&(!R||B.__staleWhileFetching===void 0?this.#O(e,"fetch"):b||(this.#a[t]=B.__staleWhileFetching)),A)return r.status&&B.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),B.__staleWhileFetching;if(B.__returned===B)throw v},"fetchFail"),h=o((v,E)=>{let b=this.#c?.(e,s,l);b&&b instanceof Promise&&b.then(A=>v(A===void 0?void 0:A),E),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(v(void 0),r.allowStaleOnFetchAbort&&(v=o(A=>u(A,!0),"res")))})},"pcall");r.status&&(r.status.fetchDispatched=!0);let p=new Promise(h).then(u,f),_=Object.assign(p,{__abortController:a,__staleWhileFetching:s,__returned:void 0});return t===void 0?(this.set(e,_,{...l.options,status:void 0}),t=this.#s.get(e)):this.#a[t]=_,_}#h(e){if(!this.#v)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof xg}async fetch(e,t={}){let{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:c=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:_=this.allowStaleOnFetchAbort,context:v,forceRefresh:E=!1,status:b,signal:A}=t;if(!this.#v)return b&&(b.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:b});let R={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:a,noDisposeOnSet:c,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:_,ignoreFetchAbort:p,status:b,signal:A},B=this.#s.get(e);if(B===void 0){b&&(b.fetch="miss");let W=this.#j(e,B,R,v);return W.__returned=W}else{let W=this.#a[B];if(this.#h(W)){let j=r&&W.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",j&&(b.returnedStale=!0)),j?W.__staleWhileFetching:W.__returned=W}let we=this.#A(B);if(!E&&!we)return b&&(b.fetch="hit"),this.#B(B),i&&this.#C(B),b&&this.#o(b,B),W;let z=this.#j(e,B,R,v),F=z.__staleWhileFetching!==void 0&&r;return b&&(b.fetch=we?"stale":"refresh",F&&we&&(b.returnedStale=!0)),F?z.__staleWhileFetching:z.__returned=z}}async forceFetch(e,t={}){let r=await this.fetch(e,t);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(e,t={}){let r=this.#_;if(!r)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:s,...a}=t,c=this.get(e,a);if(!s&&c!==void 0)return c;let l=r(e,c,{options:a,context:i});return this.set(e,l,a),l}get(e,t={}){let{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:a}=t,c=this.#s.get(e);if(c!==void 0){let l=this.#a[c],u=this.#h(l);return a&&this.#o(a,c),this.#A(c)?(a&&(a.get="stale"),u?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(s||this.#O(e,"expire"),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),u?l.__staleWhileFetching:(this.#B(c),i&&this.#C(c),l))}else a&&(a.get="miss")}#$(e,t){this.#g[t]=e,this.#p[e]=t}#B(e){e!==this.#m&&(e===this.#d?this.#d=this.#p[e]:this.#$(this.#g[e],this.#p[e]),this.#$(this.#m,e),this.#m=e)}delete(e){return this.#O(e,"delete")}#O(e,t){let r=!1;if(this.#i!==0){let i=this.#s.get(e);if(i!==void 0)if(r=!0,this.#i===1)this.#V(t);else{this.#D(i);let s=this.#a[i];if(this.#h(s)?s.__abortController.abort(new Error("deleted")):(this.#w||this.#b)&&(this.#w&&this.#r?.(s,e,t),this.#b&&this.#f?.push([s,e,t])),this.#s.delete(e),this.#l[i]=void 0,this.#a[i]=void 0,i===this.#m)this.#m=this.#g[i];else if(i===this.#d)this.#d=this.#p[i];else{let a=this.#g[i];this.#p[a]=this.#p[i];let c=this.#p[i];this.#g[c]=this.#g[i]}this.#i--,this.#y.push(i)}}if(this.#b&&this.#f?.length){let i=this.#f,s;for(;s=i?.shift();)this.#t?.(...s)}return r}clear(){return this.#V("delete")}#V(e){for(let t of this.#R({allowStale:!0})){let r=this.#a[t];if(this.#h(r))r.__abortController.abort(new Error("deleted"));else{let i=this.#l[t];this.#w&&this.#r?.(r,i,e),this.#b&&this.#f?.push([r,i,e])}}if(this.#s.clear(),this.#a.fill(void 0),this.#l.fill(void 0),this.#S&&this.#T&&(this.#S.fill(0),this.#T.fill(0)),this.#E&&this.#E.fill(0),this.#d=0,this.#m=0,this.#y.length=0,this.#u=0,this.#i=0,this.#b&&this.#f){let t=this.#f,r;for(;r=t?.shift();)this.#t?.(...r)}}};var Kl=require("node:path"),sF=require("node:url"),As=require("fs"),tY=Y(require("node:fs"),1),Xa=require("node:fs/promises");var Dg=require("node:events"),Kw=Y(require("node:stream"),1),eF=require("node:string_decoder");var KO=typeof process=="object"&&process?process:{stdout:null,stderr:null},zQ=o(n=>!!n&&typeof n=="object"&&(n instanceof Ka||n instanceof Kw.default||HQ(n)||QQ(n)),"isStream"),HQ=o(n=>!!n&&typeof n=="object"&&n instanceof Dg.EventEmitter&&typeof n.pipe=="function"&&n.pipe!==Kw.default.Writable.prototype.pipe,"isReadable"),QQ=o(n=>!!n&&typeof n=="object"&&n instanceof Dg.EventEmitter&&typeof n.write=="function"&&typeof n.end=="function","isWritable"),la=Symbol("EOF"),ua=Symbol("maybeEmitEnd"),Ya=Symbol("emittedEnd"),Cg=Symbol("emittingEnd"),Kf=Symbol("emittedError"),Ig=Symbol("closed"),XO=Symbol("read"),Rg=Symbol("flush"),JO=Symbol("flushChunk"),Wi=Symbol("encoding"),Ql=Symbol("decoder"),Er=Symbol("flowing"),Xf=Symbol("paused"),Yl=Symbol("resume"),Tr=Symbol("buffer"),_n=Symbol("pipes"),Ar=Symbol("bufferLength"),Ww=Symbol("bufferPush"),Pg=Symbol("bufferShift"),Zr=Symbol("objectMode"),Kt=Symbol("destroyed"),Gw=Symbol("error"),zw=Symbol("emitData"),ZO=Symbol("emitEnd"),Hw=Symbol("emitEnd2"),Es=Symbol("async"),Qw=Symbol("abort"),Og=Symbol("aborted"),Jf=Symbol("signal"),Zo=Symbol("dataListeners"),Un=Symbol("discarded"),Zf=o(n=>Promise.resolve().then(n),"defer"),YQ=o(n=>n(),"nodefer"),KQ=o(n=>n==="end"||n==="finish"||n==="prefinish","isEndish"),XQ=o(n=>n instanceof ArrayBuffer||!!n&&typeof n=="object"&&n.constructor&&n.constructor.name==="ArrayBuffer"&&n.byteLength>=0,"isArrayBufferLike"),JQ=o(n=>!Buffer.isBuffer(n)&&ArrayBuffer.isView(n),"isArrayBufferView"),Fg=class{static{o(this,"Pipe")}src;dest;opts;ondrain;constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[Yl](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Yw=class extends Fg{static{o(this,"PipeProxyErrors")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,r){super(e,t,r),this.proxyErrors=i=>t.emit("error",i),e.on("error",this.proxyErrors)}},ZQ=o(n=>!!n.objectMode,"isObjectModeOptions"),eY=o(n=>!n.objectMode&&!!n.encoding&&n.encoding!=="buffer","isEncodingOptions"),Ka=class extends Dg.EventEmitter{static{o(this,"Minipass")}[Er]=!1;[Xf]=!1;[_n]=[];[Tr]=[];[Zr];[Wi];[Es];[Ql];[la]=!1;[Ya]=!1;[Cg]=!1;[Ig]=!1;[Kf]=null;[Ar]=0;[Kt]=!1;[Jf];[Og]=!1;[Zo]=0;[Un]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&typeof t.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");ZQ(t)?(this[Zr]=!0,this[Wi]=null):eY(t)?(this[Wi]=t.encoding,this[Zr]=!1):(this[Zr]=!1,this[Wi]=null),this[Es]=!!t.async,this[Ql]=this[Wi]?new eF.StringDecoder(this[Wi]):null,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:o(()=>this[Tr],"get")}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:o(()=>this[_n],"get")});let{signal:r}=t;r&&(this[Jf]=r,r.aborted?this[Qw]():r.addEventListener("abort",()=>this[Qw]()))}get bufferLength(){return this[Ar]}get encoding(){return this[Wi]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Zr]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Es]}set async(e){this[Es]=this[Es]||!!e}[Qw](){this[Og]=!0,this.emit("abort",this[Jf]?.reason),this.destroy(this[Jf]?.reason)}get aborted(){return this[Og]}set aborted(e){}write(e,t,r){if(this[Og])return!1;if(this[la])throw new Error("write after end");if(this[Kt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let i=this[Es]?Zf:YQ;if(!this[Zr]&&!Buffer.isBuffer(e)){if(JQ(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(XQ(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Zr]?(this[Er]&&this[Ar]!==0&&this[Rg](!0),this[Er]?this.emit("data",e):this[Ww](e),this[Ar]!==0&&this.emit("readable"),r&&i(r),this[Er]):e.length?(typeof e=="string"&&!(t===this[Wi]&&!this[Ql]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Wi]&&(e=this[Ql].write(e)),this[Er]&&this[Ar]!==0&&this[Rg](!0),this[Er]?this.emit("data",e):this[Ww](e),this[Ar]!==0&&this.emit("readable"),r&&i(r),this[Er]):(this[Ar]!==0&&this.emit("readable"),r&&i(r),this[Er])}read(e){if(this[Kt])return null;if(this[Un]=!1,this[Ar]===0||e===0||e&&e>this[Ar])return this[ua](),null;this[Zr]&&(e=null),this[Tr].length>1&&!this[Zr]&&(this[Tr]=[this[Wi]?this[Tr].join(""):Buffer.concat(this[Tr],this[Ar])]);let t=this[XO](e||null,this[Tr][0]);return this[ua](),t}[XO](e,t){if(this[Zr])this[Pg]();else{let r=t;e===r.length||e===null?this[Pg]():typeof r=="string"?(this[Tr][0]=r.slice(e),t=r.slice(0,e),this[Ar]-=e):(this[Tr][0]=r.subarray(e),t=r.subarray(0,e),this[Ar]-=e)}return this.emit("data",t),!this[Tr].length&&!this[la]&&this.emit("drain"),t}end(e,t,r){return typeof e=="function"&&(r=e,e=void 0),typeof t=="function"&&(r=t,t="utf8"),e!==void 0&&this.write(e,t),r&&this.once("end",r),this[la]=!0,this.writable=!1,(this[Er]||!this[Xf])&&this[ua](),this}[Yl](){this[Kt]||(!this[Zo]&&!this[_n].length&&(this[Un]=!0),this[Xf]=!1,this[Er]=!0,this.emit("resume"),this[Tr].length?this[Rg]():this[la]?this[ua]():this.emit("drain"))}resume(){return this[Yl]()}pause(){this[Er]=!1,this[Xf]=!0,this[Un]=!1}get destroyed(){return this[Kt]}get flowing(){return this[Er]}get paused(){return this[Xf]}[Ww](e){this[Zr]?this[Ar]+=1:this[Ar]+=e.length,this[Tr].push(e)}[Pg](){return this[Zr]?this[Ar]-=1:this[Ar]-=this[Tr][0].length,this[Tr].shift()}[Rg](e=!1){do;while(this[JO](this[Pg]())&&this[Tr].length);!e&&!this[Tr].length&&!this[la]&&this.emit("drain")}[JO](e){return this.emit("data",e),this[Er]}pipe(e,t){if(this[Kt])return e;this[Un]=!1;let r=this[Ya];return t=t||{},e===KO.stdout||e===KO.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this[_n].push(t.proxyErrors?new Yw(this,e,t):new Fg(this,e,t)),this[Es]?Zf(()=>this[Yl]()):this[Yl]()),e}unpipe(e){let t=this[_n].find(r=>r.dest===e);t&&(this[_n].length===1?(this[Er]&&this[Zo]===0&&(this[Er]=!1),this[_n]=[]):this[_n].splice(this[_n].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let r=super.on(e,t);if(e==="data")this[Un]=!1,this[Zo]++,!this[_n].length&&!this[Er]&&this[Yl]();else if(e==="readable"&&this[Ar]!==0)super.emit("readable");else if(KQ(e)&&this[Ya])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[Kf]){let i=t;this[Es]?Zf(()=>i.call(this,this[Kf])):i.call(this,this[Kf])}return r}removeListener(e,t){return this.off(e,t)}off(e,t){let r=super.off(e,t);return e==="data"&&(this[Zo]=this.listeners("data").length,this[Zo]===0&&!this[Un]&&!this[_n].length&&(this[Er]=!1)),r}removeAllListeners(e){let t=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[Zo]=0,!this[Un]&&!this[_n].length&&(this[Er]=!1)),t}get emittedEnd(){return this[Ya]}[ua](){!this[Cg]&&!this[Ya]&&!this[Kt]&&this[Tr].length===0&&this[la]&&(this[Cg]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ig]&&this.emit("close"),this[Cg]=!1)}emit(e,...t){let r=t[0];if(e!=="error"&&e!=="close"&&e!==Kt&&this[Kt])return!1;if(e==="data")return!this[Zr]&&!r?!1:this[Es]?(Zf(()=>this[zw](r)),!0):this[zw](r);if(e==="end")return this[ZO]();if(e==="close"){if(this[Ig]=!0,!this[Ya]&&!this[Kt])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Kf]=r,super.emit(Gw,r);let s=!this[Jf]||this.listeners("error").length?super.emit("error",r):!1;return this[ua](),s}else if(e==="resume"){let s=super.emit("resume");return this[ua](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,...t);return this[ua](),i}[zw](e){for(let r of this[_n])r.dest.write(e)===!1&&this.pause();let t=this[Un]?!1:super.emit("data",e);return this[ua](),t}[ZO](){return this[Ya]?!1:(this[Ya]=!0,this.readable=!1,this[Es]?(Zf(()=>this[Hw]()),!0):this[Hw]())}[Hw](){if(this[Ql]){let t=this[Ql].end();if(t){for(let r of this[_n])r.dest.write(t);this[Un]||super.emit("data",t)}}for(let t of this[_n])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Zr]||(e.dataLength=0);let t=this.promise();return this.on("data",r=>{e.push(r),this[Zr]||(e.dataLength+=r.length)}),await t,e}async concat(){if(this[Zr])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Wi]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(Kt,()=>t(new Error("stream destroyed"))),this.on("error",r=>t(r)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Un]=!1;let e=!1,t=o(async()=>(this.pause(),e=!0,{value:void 0,done:!0}),"stop");return{next:o(()=>{if(e)return t();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[la])return t();let s,a,c=o(d=>{this.off("data",l),this.off("end",u),this.off(Kt,f),t(),a(d)},"onerr"),l=o(d=>{this.off("error",c),this.off("end",u),this.off(Kt,f),this.pause(),s({value:d,done:!!this[la]})},"ondata"),u=o(()=>{this.off("error",c),this.off("data",l),this.off(Kt,f),t(),s({done:!0,value:void 0})},"onend"),f=o(()=>c(new Error("stream destroyed")),"ondestroy");return new Promise((d,h)=>{a=h,s=d,this.once(Kt,f),this.once("error",c),this.once("end",u),this.once("data",l)})},"next"),throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[Un]=!1;let e=!1,t=o(()=>(this.pause(),this.off(Gw,t),this.off(Kt,t),this.off("end",t),e=!0,{done:!0,value:void 0}),"stop"),r=o(()=>{if(e)return t();let i=this.read();return i===null?t():{done:!1,value:i}},"next");return this.once("end",t),this.once(Gw,t),this.once(Kt,t),{next:r,throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[Kt])return e?this.emit("error",e):this.emit(Kt),this;this[Kt]=!0,this[Un]=!0,this[Tr].length=0,this[Ar]=0;let t=this;return typeof t.close=="function"&&!this[Ig]&&t.close(),e?this.emit("error",e):this.emit(Kt),this}static get isStream(){return zQ}};var rY=As.realpathSync.native,td={lstatSync:As.lstatSync,readdir:As.readdir,readdirSync:As.readdirSync,readlinkSync:As.readlinkSync,realpathSync:rY,promises:{lstat:Xa.lstat,readdir:Xa.readdir,readlink:Xa.readlink,realpath:Xa.realpath}},aF=o(n=>!n||n===td||n===tY?td:{...td,...n,promises:{...td.promises,...n.promises||{}}},"fsFromOption"),oF=/^\\\\\?\\([a-z]:)\\?$/i,nY=o(n=>n.replace(/\//g,"\\").replace(oF,"$1\\"),"uncToDrive"),iY=/[\\\/]/,ai=0,cF=1,lF=2,Ts=4,uF=6,fF=8,ec=10,dF=12,si=15,ed=~si,Xw=16,tF=32,rd=64,Gi=128,Ng=256,kg=512,rF=rd|Gi|kg,sY=1023,Jw=o(n=>n.isFile()?fF:n.isDirectory()?Ts:n.isSymbolicLink()?ec:n.isCharacterDevice()?lF:n.isBlockDevice()?uF:n.isSocket()?dF:n.isFIFO()?cF:ai,"entToType"),nF=new Map,nd=o(n=>{let e=nF.get(n);if(e)return e;let t=n.normalize("NFKD");return nF.set(n,t),t},"normalize"),iF=new Map,Lg=o(n=>{let e=iF.get(n);if(e)return e;let t=nd(n.toLowerCase());return iF.set(n,t),t},"normalizeNocase"),Mg=class extends Yf{static{o(this,"ResolveCache")}constructor(){super({max:256})}},Zw=class extends Yf{static{o(this,"ChildrenCache")}constructor(e=16*1024){super({maxSize:e,sizeCalculation:o(t=>t.length+1,"sizeCalculation")})}},hF=Symbol("PathScurry setAsCwd"),en=class{static{o(this,"PathBase")}name;root;roots;parent;nocase;isCWD=!1;#e;#n;get dev(){return this.#n}#r;get mode(){return this.#r}#t;get nlink(){return this.#t}#c;get uid(){return this.#c}#_;get gid(){return this.#_}#i;get rdev(){return this.#i}#u;get blksize(){return this.#u}#s;get ino(){return this.#s}#l;get size(){return this.#l}#a;get blocks(){return this.#a}#p;get atimeMs(){return this.#p}#g;get mtimeMs(){return this.#g}#d;get ctimeMs(){return this.#d}#m;get birthtimeMs(){return this.#m}#y;get atime(){return this.#y}#f;get mtime(){return this.#f}#E;get ctime(){return this.#E}#T;get birthtime(){return this.#T}#S;#w;#v;#b;#x;#C;#o;#F;#A;#P;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=ai,r,i,s,a,c){this.name=e,this.#S=s?Lg(e):nd(e),this.#o=t&sY,this.nocase=s,this.roots=i,this.root=r||this,this.#F=a,this.#v=c.fullpath,this.#x=c.relative,this.#C=c.relativePosix,this.parent=c.parent,this.parent?this.#e=this.parent.#e:this.#e=aF(c.fs)}depth(){return this.#w!==void 0?this.#w:this.parent?this.#w=this.parent.depth()+1:this.#w=0}childrenCache(){return this.#F}resolve(e){if(!e)return this;let t=this.getRootString(e),i=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#D(i):this.#D(i)}#D(e){let t=this;for(let r of e)t=t.child(r);return t}children(){let e=this.#F.get(this);if(e)return e;let t=Object.assign([],{provisional:0});return this.#F.set(this,t),this.#o&=~Xw,t}child(e,t){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let r=this.children(),i=this.nocase?Lg(e):nd(e);for(let l of r)if(l.#S===i)return l;let s=this.parent?this.sep:"",a=this.#v?this.#v+s+e:void 0,c=this.newChild(e,ai,{...t,parent:this,fullpath:a});return this.canReaddir()||(c.#o|=Gi),r.push(c),c}relative(){if(this.isCWD)return"";if(this.#x!==void 0)return this.#x;let e=this.name,t=this.parent;if(!t)return this.#x=this.name;let r=t.relative();return r+(!r||!t.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#C!==void 0)return this.#C;let e=this.name,t=this.parent;if(!t)return this.#C=this.fullpathPosix();let r=t.relativePosix();return r+(!r||!t.parent?"":"/")+e}fullpath(){if(this.#v!==void 0)return this.#v;let e=this.name,t=this.parent;if(!t)return this.#v=this.name;let i=t.fullpath()+(t.parent?this.sep:"")+e;return this.#v=i}fullpathPosix(){if(this.#b!==void 0)return this.#b;if(this.sep==="/")return this.#b=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#b=`//?/${i}`:this.#b=i}let e=this.parent,t=e.fullpathPosix(),r=t+(!t||!e.parent?"":"/")+this.name;return this.#b=r}isUnknown(){return(this.#o&si)===ai}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#o&si)===fF}isDirectory(){return(this.#o&si)===Ts}isCharacterDevice(){return(this.#o&si)===lF}isBlockDevice(){return(this.#o&si)===uF}isFIFO(){return(this.#o&si)===cF}isSocket(){return(this.#o&si)===dF}isSymbolicLink(){return(this.#o&ec)===ec}lstatCached(){return this.#o&tF?this:void 0}readlinkCached(){return this.#A}realpathCached(){return this.#P}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#A)return!0;if(!this.parent)return!1;let e=this.#o&si;return!(e!==ai&&e!==ec||this.#o&Ng||this.#o&Gi)}calledReaddir(){return!!(this.#o&Xw)}isENOENT(){return!!(this.#o&Gi)}isNamed(e){return this.nocase?this.#S===Lg(e):this.#S===nd(e)}async readlink(){let e=this.#A;if(e)return e;if(this.canReadlink()&&this.parent)try{let t=await this.#e.promises.readlink(this.fullpath()),r=(await this.parent.realpath())?.resolve(t);if(r)return this.#A=r}catch(t){this.#h(t.code);return}}readlinkSync(){let e=this.#A;if(e)return e;if(this.canReadlink()&&this.parent)try{let t=this.#e.readlinkSync(this.fullpath()),r=this.parent.realpathSync()?.resolve(t);if(r)return this.#A=r}catch(t){this.#h(t.code);return}}#N(e){this.#o|=Xw;for(let t=e.provisional;t<e.length;t++){let r=e[t];r&&r.#L()}}#L(){this.#o&Gi||(this.#o=(this.#o|Gi)&ed,this.#I())}#I(){let e=this.children();e.provisional=0;for(let t of e)t.#L()}#R(){this.#o|=kg,this.#k()}#k(){if(this.#o&rd)return;let e=this.#o;(e&si)===Ts&&(e&=ed),this.#o=e|rd,this.#I()}#M(e=""){e==="ENOTDIR"||e==="EPERM"?this.#k():e==="ENOENT"?this.#L():this.children().provisional=0}#j(e=""){e==="ENOTDIR"?this.parent.#k():e==="ENOENT"&&this.#L()}#h(e=""){let t=this.#o;t|=Ng,e==="ENOENT"&&(t|=Gi),(e==="EINVAL"||e==="UNKNOWN")&&(t&=ed),this.#o=t,e==="ENOTDIR"&&this.parent&&this.parent.#k()}#$(e,t){return this.#O(e,t)||this.#B(e,t)}#B(e,t){let r=Jw(e),i=this.newChild(e.name,r,{parent:this}),s=i.#o&si;return s!==Ts&&s!==ec&&s!==ai&&(i.#o|=rd),t.unshift(i),t.provisional++,i}#O(e,t){for(let r=t.provisional;r<t.length;r++){let i=t[r];if((this.nocase?Lg(e.name):nd(e.name))===i.#S)return this.#V(e,i,r,t)}}#V(e,t,r,i){let s=t.name;return t.#o=t.#o&ed|Jw(e),s!==e.name&&(t.name=e.name),r!==i.provisional&&(r===i.length-1?i.pop():i.splice(r,1),i.unshift(t)),i.provisional++,t}async lstat(){if((this.#o&Gi)===0)try{return this.#G(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#j(e.code)}}lstatSync(){if((this.#o&Gi)===0)try{return this.#G(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#j(e.code)}}#G(e){let{atime:t,atimeMs:r,birthtime:i,birthtimeMs:s,blksize:a,blocks:c,ctime:l,ctimeMs:u,dev:f,gid:d,ino:h,mode:p,mtime:_,mtimeMs:v,nlink:E,rdev:b,size:A,uid:R}=e;this.#y=t,this.#p=r,this.#T=i,this.#m=s,this.#u=a,this.#a=c,this.#E=l,this.#d=u,this.#n=f,this.#_=d,this.#s=h,this.#r=p,this.#f=_,this.#g=v,this.#t=E,this.#i=b,this.#l=A,this.#c=R;let B=Jw(e);this.#o=this.#o&ed|B|tF,B!==ai&&B!==Ts&&B!==ec&&(this.#o|=rd)}#q=[];#W=!1;#z(e){this.#W=!1;let t=this.#q.slice();this.#q.length=0,t.forEach(r=>r(null,e))}readdirCB(e,t=!1){if(!this.canReaddir()){t?e(null,[]):queueMicrotask(()=>e(null,[]));return}let r=this.children();if(this.calledReaddir()){let s=r.slice(0,r.provisional);t?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#q.push(e),this.#W)return;this.#W=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,a)=>{if(s)this.#M(s.code),r.provisional=0;else{for(let c of a)this.#$(c,r);this.#N(r)}this.#z(r.slice(0,r.provisional))})}#U;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();if(this.#U)await this.#U;else{let r=o(()=>{},"resolve");this.#U=new Promise(i=>r=i);try{for(let i of await this.#e.promises.readdir(t,{withFileTypes:!0}))this.#$(i,e);this.#N(e)}catch(i){this.#M(i.code),e.provisional=0}this.#U=void 0,r()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();try{for(let r of this.#e.readdirSync(t,{withFileTypes:!0}))this.#$(r,e);this.#N(e)}catch(r){this.#M(r.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#o&rF)return!1;let e=si&this.#o;return e===ai||e===Ts||e===ec}shouldWalk(e,t){return(this.#o&Ts)===Ts&&!(this.#o&rF)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#P)return this.#P;if(!((kg|Ng|Gi)&this.#o))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#P=this.resolve(e)}catch{this.#R()}}realpathSync(){if(this.#P)return this.#P;if(!((kg|Ng|Gi)&this.#o))try{let e=this.#e.realpathSync(this.fullpath());return this.#P=this.resolve(e)}catch{this.#R()}}[hF](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let t=new Set([]),r=[],i=this;for(;i&&i.parent;)t.add(i),i.#x=r.join(this.sep),i.#C=r.join("/"),i=i.parent,r.push("..");for(i=e;i&&i.parent&&!t.has(i);)i.#x=void 0,i.#C=void 0,i=i.parent}},jg=class n extends en{static{o(this,"PathWin32")}sep="\\";splitSep=iY;constructor(e,t=ai,r,i,s,a,c){super(e,t,r,i,s,a,c)}newChild(e,t=ai,r={}){return new n(e,t,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(e){return Kl.win32.parse(e).root}getRoot(e){if(e=nY(e.toUpperCase()),e===this.root.name)return this.root;for(let[t,r]of Object.entries(this.roots))if(this.sameRoot(e,t))return this.roots[e]=r;return this.roots[e]=new Xl(e,this).root}sameRoot(e,t=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(oF,"$1\\"),e===t}},$g=class n extends en{static{o(this,"PathPosix")}splitSep="/";sep="/";constructor(e,t=ai,r,i,s,a,c){super(e,t,r,i,s,a,c)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,t=ai,r={}){return new n(e,t,this.root,this.roots,this.nocase,this.childrenCache(),r)}},Bg=class{static{o(this,"PathScurryBase")}root;rootPath;roots;cwd;#e;#n;#r;nocase;#t;constructor(e=process.cwd(),t,r,{nocase:i,childrenCacheSize:s=16*1024,fs:a=td}={}){this.#t=aF(a),(e instanceof URL||e.startsWith("file://"))&&(e=(0,sF.fileURLToPath)(e));let c=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(c),this.#e=new Mg,this.#n=new Mg,this.#r=new Zw(s);let l=c.substring(this.rootPath.length).split(r);if(l.length===1&&!l[0]&&l.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let u=this.root,f=l.length-1,d=t.sep,h=this.rootPath,p=!1;for(let _ of l){let v=f--;u=u.child(_,{relative:new Array(v).fill("..").join(d),relativePosix:new Array(v).fill("..").join("/"),fullpath:h+=(p?"":d)+_}),p=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#r}resolve(...e){let t="";for(let s=e.length-1;s>=0;s--){let a=e[s];if(!(!a||a===".")&&(t=t?`${a}/${t}`:a,this.isAbsolute(a)))break}let r=this.#e.get(t);if(r!==void 0)return r;let i=this.cwd.resolve(t).fullpath();return this.#e.set(t,i),i}resolvePosix(...e){let t="";for(let s=e.length-1;s>=0;s--){let a=e[s];if(!(!a||a===".")&&(t=t?`${a}/${t}`:a,this.isAbsolute(a)))break}let r=this.#n.get(t);if(r!==void 0)return r;let i=this.cwd.resolve(t).fullpathPosix();return this.#n.set(t,i),i}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd);let{withFileTypes:r}=t;if(e.canReaddir()){let i=await e.readdir();return r?i:i.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd);let{withFileTypes:r=!0}=t;return e.canReaddir()?r?e.readdirSync():e.readdirSync().map(i=>i.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e.withFileTypes,e=this.cwd);let r=await e.readlink();return t?r:r?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e.withFileTypes,e=this.cwd);let r=e.readlinkSync();return t?r:r?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e.withFileTypes,e=this.cwd);let r=await e.realpath();return t?r:r?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e.withFileTypes,e=this.cwd);let r=e.realpathSync();return t?r:r?.fullpath()}async walk(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:a}=t,c=[];(!s||s(e))&&c.push(r?e:e.fullpath());let l=new Set,u=o((d,h)=>{l.add(d),d.readdirCB((p,_)=>{if(p)return h(p);let v=_.length;if(!v)return h();let E=o(()=>{--v===0&&h()},"next");for(let b of _)(!s||s(b))&&c.push(r?b:b.fullpath()),i&&b.isSymbolicLink()?b.realpath().then(A=>A?.isUnknown()?A.lstat():A).then(A=>A?.shouldWalk(l,a)?u(A,E):E()):b.shouldWalk(l,a)?u(b,E):E()},!0)},"walk"),f=e;return new Promise((d,h)=>{u(f,p=>{if(p)return h(p);d(c)})})}walkSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:a}=t,c=[];(!s||s(e))&&c.push(r?e:e.fullpath());let l=new Set([e]);for(let u of l){let f=u.readdirSync();for(let d of f){(!s||s(d))&&c.push(r?d:d.fullpath());let h=d;if(d.isSymbolicLink()){if(!(i&&(h=d.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,a)&&l.add(h)}}return c}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:a}=t;(!s||s(e))&&(yield r?e:e.fullpath());let c=new Set([e]);for(let l of c){let u=l.readdirSync();for(let f of u){(!s||s(f))&&(yield r?f:f.fullpath());let d=f;if(f.isSymbolicLink()){if(!(i&&(d=f.realpathSync())))continue;d.isUnknown()&&d.lstatSync()}d.shouldWalk(c,a)&&c.add(d)}}}stream(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:a}=t,c=new Ka({objectMode:!0});(!s||s(e))&&c.write(r?e:e.fullpath());let l=new Set,u=[e],f=0,d=o(()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){f===0&&c.end();return}f++,l.add(p);let _=o((E,b,A=!1)=>{if(E)return c.emit("error",E);if(i&&!A){let R=[];for(let B of b)B.isSymbolicLink()&&R.push(B.realpath().then(W=>W?.isUnknown()?W.lstat():W));if(R.length){Promise.all(R).then(()=>_(null,b,!0));return}}for(let R of b)R&&(!s||s(R))&&(c.write(r?R:R.fullpath())||(h=!0));f--;for(let R of b){let B=R.realpathCached()||R;B.shouldWalk(l,a)&&u.push(B)}h&&!c.flowing?c.once("drain",d):v||d()},"onReaddir"),v=!0;p.readdirCB(_,!0),v=!1}},"process");return d(),c}streamSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:a}=t,c=new Ka({objectMode:!0}),l=new Set;(!s||s(e))&&c.write(r?e:e.fullpath());let u=[e],f=0,d=o(()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){f===0&&c.end();return}f++,l.add(p);let _=p.readdirSync();for(let v of _)(!s||s(v))&&(c.write(r?v:v.fullpath())||(h=!0));f--;for(let v of _){let E=v;if(v.isSymbolicLink()){if(!(i&&(E=v.realpathSync())))continue;E.isUnknown()&&E.lstatSync()}E.shouldWalk(l,a)&&u.push(E)}}h&&!c.flowing&&c.once("drain",d)},"process");return d(),c}chdir(e=this.cwd){let t=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[hF](t)}},Xl=class extends Bg{static{o(this,"PathScurryWin32")}sep="\\";constructor(e=process.cwd(),t={}){let{nocase:r=!0}=t;super(e,Kl.win32,"\\",{...t,nocase:r}),this.nocase=r;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(e){return Kl.win32.parse(e).root.toUpperCase()}newRoot(e){return new jg(this.rootPath,Ts,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}},Jl=class extends Bg{static{o(this,"PathScurryPosix")}sep="/";constructor(e=process.cwd(),t={}){let{nocase:r=!1}=t;super(e,Kl.posix,"/",{...t,nocase:r}),this.nocase=r}parseRootPath(e){return"/"}newRoot(e){return new $g(this.rootPath,Ts,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}},id=class extends Jl{static{o(this,"PathScurryDarwin")}constructor(e=process.cwd(),t={}){let{nocase:r=!0}=t;super(e,{...t,nocase:r})}},jhe=process.platform==="win32"?jg:$g,pF=process.platform==="win32"?Xl:process.platform==="darwin"?id:Jl;var aY=o(n=>n.length>=1,"isPatternList"),oY=o(n=>n.length>=1,"isGlobList"),Zl=class n{static{o(this,"Pattern")}#e;#n;#r;length;#t;#c;#_;#i;#u;#s;#l=!0;constructor(e,t,r,i){if(!aY(e))throw new TypeError("empty pattern list");if(!oY(t))throw new TypeError("empty glob list");if(t.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#n=t,this.#r=r,this.#t=i,this.#r===0){if(this.isUNC()){let[s,a,c,l,...u]=this.#e,[f,d,h,p,..._]=this.#n;u[0]===""&&(u.shift(),_.shift());let v=[s,a,c,l,""].join("/"),E=[f,d,h,p,""].join("/");this.#e=[v,...u],this.#n=[E,..._],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...a]=this.#e,[c,...l]=this.#n;a[0]===""&&(a.shift(),l.shift());let u=s+"/",f=c+"/";this.#e=[u,...a],this.#n=[f,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#r]}isString(){return typeof this.#e[this.#r]=="string"}isGlobstar(){return this.#e[this.#r]===Yt}isRegExp(){return this.#e[this.#r]instanceof RegExp}globString(){return this.#_=this.#_||(this.#r===0?this.isAbsolute()?this.#n[0]+this.#n.slice(1).join("/"):this.#n.join("/"):this.#n.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){return this.#c!==void 0?this.#c:this.hasMore()?(this.#c=new n(this.#e,this.#n,this.#r+1,this.#t),this.#c.#s=this.#s,this.#c.#u=this.#u,this.#c.#i=this.#i,this.#c):this.#c=null}isUNC(){let e=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#t==="win32"&&this.#r===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#i!==void 0?this.#i:this.#i=this.#t==="win32"&&this.#r===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#s!==void 0?this.#s:this.#s=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#r===0?e:""}checkFollowGlobstar(){return!(this.#r===0||!this.isGlobstar()||!this.#l)}markFollowGlobstar(){return this.#r===0||!this.isGlobstar()||!this.#l?!1:(this.#l=!1,!0)}};var cY=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",eu=class{static{o(this,"Ignore")}relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:r,noext:i,noglobstar:s,platform:a=cY}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=a,this.mmopts={dot:!0,nobrace:t,nocase:r,noext:i,noglobstar:s,optimizationLevel:2,platform:a,nocomment:!0,nonegate:!0};for(let c of e)this.add(c)}add(e){let t=new Vn(e,this.mmopts);for(let r=0;r<t.set.length;r++){let i=t.set[r],s=t.globParts[r];if(!i||!s)throw new Error("invalid pattern object");for(;i[0]==="."&&s[0]===".";)i.shift(),s.shift();let a=new Zl(i,s,0,this.platform),c=new Vn(a.globString(),this.mmopts),l=s[s.length-1]==="**",u=a.isAbsolute();u?this.absolute.push(c):this.relative.push(c),l&&(u?this.absoluteChildren.push(c):this.relativeChildren.push(c))}}ignored(e){let t=e.fullpath(),r=`${t}/`,i=e.relative()||".",s=`${i}/`;for(let a of this.relative)if(a.match(i)||a.match(s))return!0;for(let a of this.absolute)if(a.match(t)||a.match(r))return!0;return!1}childrenIgnored(e){let t=e.fullpath()+"/",r=(e.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(r))return!0;for(let i of this.absoluteChildren)if(i.match(t))return!0;return!1}};var eE=class n{static{o(this,"HasWalkedCache")}store;constructor(e=new Map){this.store=e}copy(){return new n(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){let r=e.fullpath(),i=this.store.get(r);i?i.add(t.globString()):this.store.set(r,new Set([t.globString()]))}},tE=class{static{o(this,"MatchRecord")}store=new Map;add(e,t,r){let i=(t?2:0)|(r?1:0),s=this.store.get(e);this.store.set(e,s===void 0?i:i&s)}entries(){return[...this.store.entries()].map(([e,t])=>[e,!!(t&2),!!(t&1)])}},rE=class{static{o(this,"SubWalks")}store=new Map;add(e,t){if(!e.canReaddir())return;let r=this.store.get(e);r?r.find(i=>i.globString()===t.globString())||r.push(t):this.store.set(e,[t])}get(e){let t=this.store.get(e);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}},sd=class n{static{o(this,"Processor")}hasWalkedCache;matches=new tE;subwalks=new rE;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new eE}processPatterns(e,t){this.patterns=t;let r=t.map(i=>[e,i]);for(let[i,s]of r){this.hasWalkedCache.storeWalked(i,s);let a=s.root(),c=s.isAbsolute()&&this.opts.absolute!==!1;if(a){i=i.resolve(a==="/"&&this.opts.root!==void 0?this.opts.root:a);let d=s.rest();if(d)s=d;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let l,u,f=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)i=i.resolve(l),s=u,f=!0;if(l=s.pattern(),u=s.rest(),f){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof l=="string"){let d=l===".."||l===""||l===".";this.matches.add(i.resolve(l),c,d);continue}else if(l===Yt){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let d=u?.pattern(),h=u?.rest();if(!u||(d===""||d===".")&&!h)this.matches.add(i,c,d===""||d===".");else if(d===".."){let p=i.parent||i;h?this.hasWalkedCache.hasWalked(p,h)||this.subwalks.add(p,h):this.matches.add(p,c,!0)}}else l instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new n(this.opts,this.hasWalkedCache)}filterEntries(e,t){let r=this.subwalks.get(e),i=this.child();for(let s of t)for(let a of r){let c=a.isAbsolute(),l=a.pattern(),u=a.rest();l===Yt?i.testGlobstar(s,a,u,c):l instanceof RegExp?i.testRegExp(s,l,u,c):i.testString(s,l,u,c)}return i}testGlobstar(e,t,r,i){if((this.dot||!e.name.startsWith("."))&&(t.hasMore()||this.matches.add(e,i,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(r&&t.checkFollowGlobstar()?this.subwalks.add(e,r):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),r){let s=r.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,r.rest(),i);else if(s===".."){let a=e.parent||e;this.subwalks.add(a,r)}else s instanceof RegExp&&this.testRegExp(e,s,r.rest(),i)}}testRegExp(e,t,r,i){t.test(e.name)&&(r?this.subwalks.add(e,r):this.matches.add(e,i,!1))}testString(e,t,r,i){e.isNamed(t)&&(r?this.subwalks.add(e,r):this.matches.add(e,i,!1))}};var lY=o((n,e)=>typeof n=="string"?new eu([n],e):Array.isArray(n)?new eu(n,e):n,"makeIgnore"),Vg=class{static{o(this,"GlobUtil")}path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#n;#r;signal;maxDepth;includeChildMatches;constructor(e,t,r){if(this.patterns=e,this.path=t,this.opts=r,this.#r=!r.posix&&r.platform==="win32"?"\\":"/",this.includeChildMatches=r.includeChildMatches!==!1,(r.ignore||!this.includeChildMatches)&&(this.#n=lY(r.ignore??[],r),!this.includeChildMatches&&typeof this.#n.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#n?.ignored?.(e)}#c(e){return!!this.#n?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||await e.realpath(),!r)return;e=r}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let a=await s.realpath();a&&(a.isUnknown()||this.opts.stat)&&await a.lstat()}return this.matchCheckTest(s,t)}matchCheckTest(e,t){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||e.realpathSync(),!r)return;e=r}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let a=s.realpathSync();a&&(a?.isUnknown()||this.opts.stat)&&a.lstatSync()}return this.matchCheckTest(s,t)}matchFinish(e,t){if(this.#t(e))return;if(!this.includeChildMatches&&this.#n?.add){let s=`${e.relativePosix()}/**`;this.#n.add(s)}let r=this.opts.absolute===void 0?t:this.opts.absolute;this.seen.add(e);let i=this.opts.mark&&e.isDirectory()?this.#r:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(r){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+i)}else{let s=this.opts.posix?e.relativePosix():e.relative(),a=this.opts.dotRelative&&!s.startsWith(".."+this.#r)?"."+this.#r:"";this.matchEmit(s?a+s+i:"."+i)}}async match(e,t,r){let i=await this.matchCheck(e,r);i&&this.matchFinish(i,t)}matchSync(e,t,r){let i=this.matchCheckSync(e,r);i&&this.matchFinish(i,t)}walkCB(e,t,r){this.signal?.aborted&&r(),this.walkCB2(e,t,new sd(this.opts),r)}walkCB2(e,t,r,i){if(this.#c(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(e,t,r,i));return}r.processPatterns(e,t);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of r.matches.entries())this.#t(c)||(s++,this.match(c,l,u).then(()=>a()));for(let c of r.subwalkTargets()){if(this.maxDepth!==1/0&&c.depth()>=this.maxDepth)continue;s++;let l=c.readdirCached();c.calledReaddir()?this.walkCB3(c,l,r,a):c.readdirCB((u,f)=>this.walkCB3(c,f,r,a),!0)}a()}walkCB3(e,t,r,i){r=r.filterEntries(e,t);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of r.matches.entries())this.#t(c)||(s++,this.match(c,l,u).then(()=>a()));for(let[c,l]of r.subwalks.entries())s++,this.walkCB2(c,l,r.child(),a);a()}walkCBSync(e,t,r){this.signal?.aborted&&r(),this.walkCB2Sync(e,t,new sd(this.opts),r)}walkCB2Sync(e,t,r,i){if(this.#c(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(e,t,r,i));return}r.processPatterns(e,t);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of r.matches.entries())this.#t(c)||this.matchSync(c,l,u);for(let c of r.subwalkTargets()){if(this.maxDepth!==1/0&&c.depth()>=this.maxDepth)continue;s++;let l=c.readdirSync();this.walkCB3Sync(c,l,r,a)}a()}walkCB3Sync(e,t,r,i){r=r.filterEntries(e,t);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of r.matches.entries())this.#t(c)||this.matchSync(c,l,u);for(let[c,l]of r.subwalks.entries())s++,this.walkCB2Sync(c,l,r.child(),a);a()}},ad=class extends Vg{static{o(this,"GlobWalker")}matches=new Set;constructor(e,t,r){super(e,t,r)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,t)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},od=class extends Vg{static{o(this,"GlobStream")}results;constructor(e,t,r){super(e,t,r),this.results=new Ka({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var uY=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",zi=class{static{o(this,"Glob")}absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=(0,mF.fileURLToPath)(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=t.includeChildMatches!==!1,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(t.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=t.platform||uY,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,t.nocase!==void 0&&t.nocase!==t.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=t.platform==="win32"?Xl:t.platform==="darwin"?id:t.platform?Jl:pF;this.scurry=new l(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;let r=this.platform==="darwin"||this.platform==="win32",i={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new Vn(l,i)),[a,c]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=a.map((l,u)=>{let f=c[u];if(!f)throw new Error("invalid pattern object");return new Zl(l,f,0,this.platform)})}async walk(){return[...await new ad(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new ad(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new od(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new od(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var nE=o((n,e={})=>{Array.isArray(n)||(n=[n]);for(let t of n)if(new Vn(t,e).hasMagic())return!0;return!1},"hasMagic");function qg(n,e={}){return new zi(n,e).streamSync()}o(qg,"globStreamSync");function yF(n,e={}){return new zi(n,e).stream()}o(yF,"globStream");function _F(n,e={}){return new zi(n,e).walkSync()}o(_F,"globSync");async function gF(n,e={}){return new zi(n,e).walk()}o(gF,"glob_");function Wg(n,e={}){return new zi(n,e).iterateSync()}o(Wg,"globIterateSync");function SF(n,e={}){return new zi(n,e).iterate()}o(SF,"globIterate");var fY=qg,dY=Object.assign(yF,{sync:qg}),hY=Wg,pY=Object.assign(SF,{sync:Wg}),mY=Object.assign(_F,{stream:qg,iterate:Wg}),Ug=Object.assign(gF,{glob:gF,globSync:_F,sync:mY,globStream:yF,stream:dY,globStreamSync:qg,streamSync:fY,globIterate:SF,iterate:pY,globIterateSync:Wg,iterateSync:hY,Glob:zi,hasMagic:nE,escape:Gl,unescape:qi});Ug.glob=Ug;var tc=Y(Mt());var Rt=class{constructor(e){this.rootPath=e}static{o(this,"NodeFsAdapter")}async readFile(e){let t=this.resolvePath(e);if(!await pr.default.pathExists(t))throw new tc.FileNotFoundError(e);return pr.default.readFile(t,"utf-8")}async fileExists(e){let t=this.resolvePath(e);return pr.default.pathExists(t)}async getFileMetadata(e){let t=await this.readFile(e);return this.extractFrontmatter(t)}async createFile(e,t){let r=this.resolvePath(e);if(await pr.default.pathExists(r))throw new tc.FileAlreadyExistsError(e);return await pr.default.ensureDir(Ja.default.dirname(r)),await pr.default.writeFile(r,t,"utf-8"),e}async updateFile(e,t){let r=this.resolvePath(e);if(!await pr.default.pathExists(r))throw new tc.FileNotFoundError(e);await pr.default.writeFile(r,t,"utf-8")}async writeFile(e,t){let r=this.resolvePath(e);await pr.default.ensureDir(Ja.default.dirname(r)),await pr.default.writeFile(r,t,"utf-8")}async deleteFile(e){let t=this.resolvePath(e);if(!await pr.default.pathExists(t))throw new tc.FileNotFoundError(e);await pr.default.remove(t)}async renameFile(e,t){let r=this.resolvePath(e),i=this.resolvePath(t);if(!await pr.default.pathExists(r))throw new tc.FileNotFoundError(e);await pr.default.ensureDir(Ja.default.dirname(i)),await pr.default.move(r,i)}async createDirectory(e){let t=this.resolvePath(e);await pr.default.ensureDir(t)}async directoryExists(e){let t=this.resolvePath(e);return await pr.default.pathExists(t)?(await pr.default.stat(t)).isDirectory():!1}async getMarkdownFiles(e){let t=e?this.resolvePath(e):this.rootPath,r=Ja.default.join(t,"**/*.md");return(await Ug(r,{nodir:!0})).map(a=>Ja.default.relative(this.rootPath,a))}async findFilesByMetadata(e){let t=await this.getMarkdownFiles(),r=[];for(let i of t)try{let s=await this.getFileMetadata(i);this.matchesQuery(s,e)&&r.push(i)}catch{continue}return r}async findFileByUID(e){let t=await this.findFilesByMetadata({exo__Asset_uid:e});return t.length>0?t[0]:null}resolvePath(e){return Ja.default.isAbsolute(e)?e:Ja.default.join(this.rootPath,e)}extractFrontmatter(e){let t=/^---\n([\s\S]*?)\n---/,r=e.match(t);if(!r)return{};try{let i=jr.load(r[1]);return typeof i=="object"&&i!==null?i:{}}catch{return{}}}matchesQuery(e,t){for(let[r,i]of Object.entries(t)){let s=e[r];if(Array.isArray(s)){if(!s.some(a=>this.normalizeValue(a)===this.normalizeValue(i)))return!1}else if(this.normalizeValue(s)!==this.normalizeValue(i))return!1}return!0}normalizeValue(e){return e==null?"":String(e).replace(/["'[\]]/g,"").trim()}};var cd=Y(require("path")),iE=Y(Ga());var tu=class{constructor(e){this.vaultRoot=e}static{o(this,"PathResolver")}resolve(e){if(!cd.default.isAbsolute(e))return cd.default.resolve(this.vaultRoot,e);let t=cd.default.resolve(e),r=cd.default.resolve(this.vaultRoot);if(!t.startsWith(r))throw new Qe(`File path ${e} is outside vault root ${this.vaultRoot}`,"Provide a file path within the vault directory.",{filepath:e,vaultRoot:this.vaultRoot});return t}validate(e){if(!iE.default.existsSync(e))throw new Of(e);if(!iE.default.statSync(e).isFile())throw new Qe(`Not a file: ${e}`,"Provide a path to a file, not a directory.",{filepath:e});if(!e.endsWith(".md"))throw new Qe(`Not a Markdown file: ${e}`,"Provide a path to a .md file.",{filepath:e})}getVaultRoot(){return this.vaultRoot}};var AF=Y(Mt());var vF=Y(Mt());var Hi=class{static{o(this,"BaseCommandExecutor")}constructor(e){this.pathResolver=e.pathResolver,this.fsAdapter=e.fsAdapter,this.frontmatterService=e.frontmatterService,this.dryRun=e.dryRun}resolveAndValidate(e){let t=this.pathResolver.resolve(e);this.pathResolver.validate(t);let r=t.replace(this.pathResolver.getVaultRoot()+"/","");return{resolvedPath:t,relativePath:r}}getCurrentTimestamp(){return vF.DateFormatter.toLocalTimestamp(new Date)}isAssetArchived(e){if(e?.exo__Asset_isArchived===!0)return!0;let t=e?.archived;if(t==null)return!1;if(typeof t=="boolean")return t;if(typeof t=="number")return t!==0;if(typeof t=="string"){let r=t.toLowerCase().trim();return r==="true"||r==="yes"||r==="1"}return!1}extractAliasesFromFrontmatter(e){let t=e.match(/aliases:\s*\n((?: - .*\n?)*)/);return t?t[1].split(`
|
|
615
|
+
\u{1F4CA} Cache Statistics:`),console.log(` Triples: ${u.tripleCount.toLocaleString()}`),console.log(` Created: ${u.createdAt.toISOString()}`),console.log(` Valid: ${u.isValid?"\u2705 Yes":"\u274C No"}`),console.log(` Size: ${JH(u.sizeBytes)}`))}}}catch(t){D.handle(t)}})}o(_O,"sparqlIndexCommand");function JH(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`}o(JH,"formatBytes");function SO(){return new xe("templates").description("List available SPARQL query templates").option("--output <type>","Response format: text|json (for MCP tools)","text").action(async n=>{let e=n.output||"text";D.setFormat(e);try{let t=new Ul,r=t.listTemplates();if(e==="json"){let i=J.success({templates:r,count:r.length});console.log(JSON.stringify(i,null,2))}else console.log(t.formatList("text"))}catch(t){D.handle(t)}})}o(SO,"sparqlTemplatesCommand");var xF=require("path");var pr=Y(Ga()),Ja=Y(require("path"));var VO=Y(FO(),1);var Hf=o(n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>65536)throw new TypeError("pattern is too long")},"assertValidPattern");var aQ={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Qf=o(n=>n.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),oQ=o(n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),DO=o(n=>n.join(""),"rangesToString"),NO=o((n,e)=>{let t=e;if(n.charAt(t)!=="[")throw new Error("not in a brace expression");let r=[],i=[],s=t+1,a=!1,c=!1,l=!1,u=!1,f=t,d="";e:for(;s<n.length;){let v=n.charAt(s);if((v==="!"||v==="^")&&s===t+1){u=!0,s++;continue}if(v==="]"&&a&&!l){f=s+1;break}if(a=!0,v==="\\"&&!l){l=!0,s++;continue}if(v==="["&&!l){for(let[E,[b,A,R]]of Object.entries(aQ))if(n.startsWith(E,s)){if(d)return["$.",!1,n.length-t,!0];s+=E.length,R?i.push(b):r.push(b),c=c||A;continue e}}if(l=!1,d){v>d?r.push(Qf(d)+"-"+Qf(v)):v===d&&r.push(Qf(v)),d="",s++;continue}if(n.startsWith("-]",s+1)){r.push(Qf(v+"-")),s+=2;continue}if(n.startsWith("-",s+1)){d=v,s+=2;continue}r.push(Qf(v)),s++}if(f<s)return["",!1,0,!1];if(!r.length&&!i.length)return["$.",!1,n.length-t,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!u){let v=r[0].length===2?r[0].slice(-1):r[0];return[oQ(v),!1,f-t,!1]}let h="["+(u?"^":"")+DO(r)+"]",p="["+(u?"":"^")+DO(i)+"]";return[r.length&&i.length?"("+h+"|"+p+")":r.length?h:p,c,f-t,!0]},"parseClass");var qi=o((n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/\[([^\/\\])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),"unescape");var On,cQ=new Set(["!","?","+","*","@"]),Bw=o(n=>cQ.has(n),"isExtglobType"),LO=o(n=>Bw(n.type),"isExtglobAST"),lQ=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),uQ=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),fQ=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),kO=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),dQ="(?!(?:^|/)\\.\\.?(?:$|/))",Ag="(?!\\.)",hQ=new Set(["[","."]),pQ=new Set(["..","."]),mQ=new Set("().*{}+?[]^$\\!"),gQ=o(n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Vw="[^/]",MO=Vw+"*?",jO=Vw+"+?",Jo=class{static{o(this,"AST")}type;#e;#n;#r=!1;#t=[];#c;#_;#i;#u=!1;#s;#l;#a=!1;constructor(e,t,r={}){this.type=e,e&&(this.#n=!0),this.#c=t,this.#e=this.#c?this.#c.#e:this,this.#s=this.#e===this?r:this.#e.#s,this.#i=this.#e===this?[]:this.#e.#i,e==="!"&&!this.#e.#u&&this.#i.push(this),this.#_=this.#c?this.#c.#t.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#l!==void 0?this.#l:this.type?this.#l=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#l=this.#t.map(e=>String(e)).join("")}#p(){if(this!==this.#e)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let e;for(;e=this.#i.pop();){if(e.type!=="!")continue;let t=e,r=t.#c;for(;r;){for(let i=t.#_+1;!r.type&&i<r.#t.length;i++)for(let s of e.#t){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(r.#t[i])}t=r,r=t.#c}}return this}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof On&&t.#c===this))throw new Error("invalid part: "+t);this.#t.push(t)}}toJSON(){let e=this.type===null?this.#t.slice().map(t=>typeof t=="string"?t:t.toJSON()):[this.type,...this.#t.map(t=>t.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#u&&this.#c?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#c?.isStart())return!1;if(this.#_===0)return!0;let e=this.#c;for(let t=0;t<this.#_;t++){let r=e.#t[t];if(!(r instanceof On&&r.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#c?.type==="!")return!0;if(!this.#c?.isEnd())return!1;if(!this.type)return this.#c?.isEnd();let e=this.#c?this.#c.#t.length:0;return this.#_===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new On(this.type,e);for(let r of this.#t)t.copyIn(r);return t}static#g(e,t,r,i,s){let a=i.maxExtglobRecursion??2,c=!1,l=!1,u=-1,f=!1;if(t.type===null){let v=r,E="";for(;v<e.length;){let b=e.charAt(v++);if(c||b==="\\"){c=!c,E+=b;continue}if(l){v===u+1?(b==="^"||b==="!")&&(f=!0):b==="]"&&!(v===u+2&&f)&&(l=!1),E+=b;continue}else if(b==="["){l=!0,u=v,f=!1,E+=b;continue}if(!i.noext&&Bw(b)&&e.charAt(v)==="("&&s<=a){t.push(E),E="";let R=new On(b,t);v=On.#g(e,R,v,i,s+1),t.push(R);continue}E+=b}return t.push(E),v}let d=r+1,h=new On(null,t),p=[],_="";for(;d<e.length;){let v=e.charAt(d++);if(c||v==="\\"){c=!c,_+=v;continue}if(l){d===u+1?(v==="^"||v==="!")&&(f=!0):v==="]"&&!(d===u+2&&f)&&(l=!1),_+=v;continue}else if(v==="["){l=!0,u=d,f=!1,_+=v;continue}if(Bw(v)&&e.charAt(d)==="("&&(s<=a||t&&t.#y(v))){let b=t&&t.#y(v)?0:1;h.push(_),_="";let A=new On(v,h);h.push(A),d=On.#g(e,A,d,i,s+b);continue}if(v==="|"){h.push(_),_="",p.push(h),h=new On(null,t);continue}if(v===")")return _===""&&t.#t.length===0&&(t.#a=!0),h.push(_),_="",t.push(...p,h),d;_+=v}return t.type=null,t.#n=void 0,t.#t=[e.substring(r-1)],d}#d(e){return this.#m(e,uQ)}#m(e,t=lQ){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;let r=e.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#y(r.type,t)}#y(e,t=fQ){return!!t.get(this.type)?.includes(e)}#f(e,t){let r=e.#t[0],i=new On(null,r,this.options);i.#t.push(""),r.push(i),this.#E(e,t)}#E(e,t){let r=e.#t[0];this.#t.splice(t,1,...r.#t);for(let i of r.#t)typeof i=="object"&&(i.#c=this);this.#l=void 0}#T(e){return!!kO.get(this.type)?.has(e)}#S(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let t=e.#t[0];return!t||typeof t!="object"||t.type===null?!1:this.#T(t.type)}#w(e){let t=kO.get(this.type),r=e.#t[0],i=t?.get(r.type);if(!i)return!1;this.#t=r.#t;for(let s of this.#t)typeof s=="object"&&(s.#c=this);this.type=i,this.#l=void 0,this.#a=!1}#v(){if(LO(this)){let e=0,t=!1;do{t=!0;for(let r=0;r<this.#t.length;r++){let i=this.#t[r];typeof i=="object"&&(i.#v(),this.#m(i)?(t=!1,this.#E(i,r)):this.#d(i)?(t=!1,this.#f(i,r)):this.#S(i)&&(t=!1,this.#w(i)))}}while(!t&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#v();this.#l=void 0}static fromGlob(e,t={}){let r=new On(null,void 0,t);return On.#g(e,r,0,t,0),r}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,r,i,s]=this.toRegExpSource();if(!(i||this.#n||this.#s.nocase&&!this.#s.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;let c=(this.#s.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${t}$`,c),{_src:t,_glob:e})}get options(){return this.#s}toRegExpSource(e){let t=e??!!this.#s.dot;if(this.#e===this&&(this.#v(),this.#p()),!LO(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(p=>{let[_,v,E,b]=typeof p=="string"?On.#x(p,this.#n,l):p.toRegExpSource(e);return this.#n=this.#n||E,this.#r=this.#r||b,_}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&pQ.has(this.#t[0]))){let _=hQ,v=t&&_.has(u.charAt(0))||u.startsWith("\\.")&&_.has(u.charAt(2))||u.startsWith("\\.\\.")&&_.has(u.charAt(4)),E=!t&&!e&&_.has(u.charAt(0));f=v?dQ:E?Ag:""}let d="";return this.isEnd()&&this.#e.#u&&this.#c?.type==="!"&&(d="(?:$|\\/)"),[f+u+d,qi(u),this.#n=!!this.#n,this.#r]}let r=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#b(t);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#n=void 0,[l,qi(this.toString()),!1,!1]}let a=!r||e||t||!Ag?"":this.#b(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let c="";if(this.type==="!"&&this.#a)c=(this.isStart()&&!t?Ag:"")+jO;else{let l=this.type==="!"?"))"+(this.isStart()&&!t&&!e?Ag:"")+MO+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=i+s+l}return[c,qi(s),this.#n=!!this.#n,this.#r]}#b(e){return this.#t.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[r,i,s,a]=t.toRegExpSource(e);return this.#r=this.#r||a,r}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#x(e,t,r=!1){let i=!1,s="",a=!1,c=!1;for(let l=0;l<e.length;l++){let u=e.charAt(l);if(i){i=!1,s+=(mQ.has(u)?"\\":"")+u,c=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":i=!0;continue}if(u==="["){let[f,d,h,p]=NO(e,l);if(h){s+=f,a=a||d,l+=h-1,t=t||p,c=!1;continue}}if(u==="*"){if(c)continue;c=!0,s+=r&&/^[*]+$/.test(e)?jO:MO,t=!0;continue}else c=!1;if(u==="?"){s+=Vw,t=!0;continue}s+=gQ(u)}return[s,qi(e),!!t,a]}};On=Jo;var Gl=o((n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/[?*()[\]]/g,"[$&]"):n.replace(/[?*()[\]\\]/g,"\\$&"),"escape");var $r=o((n,e,t={})=>(Hf(e),!t.nocomment&&e.charAt(0)==="#"?!1:new Vn(e,t).match(n)),"minimatch"),yQ=/^\*+([^+@!?\*\[\(]*)$/,_Q=o(n=>e=>!e.startsWith(".")&&e.endsWith(n),"starDotExtTest"),SQ=o(n=>e=>e.endsWith(n),"starDotExtTestDot"),vQ=o(n=>(n=n.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(n)),"starDotExtTestNocase"),bQ=o(n=>(n=n.toLowerCase(),e=>e.toLowerCase().endsWith(n)),"starDotExtTestNocaseDot"),wQ=/^\*+\.\*+$/,EQ=o(n=>!n.startsWith(".")&&n.includes("."),"starDotStarTest"),TQ=o(n=>n!=="."&&n!==".."&&n.includes("."),"starDotStarTestDot"),AQ=/^\.\*+$/,xQ=o(n=>n!=="."&&n!==".."&&n.startsWith("."),"dotStarTest"),CQ=/^\*+$/,IQ=o(n=>n.length!==0&&!n.startsWith("."),"starTest"),RQ=o(n=>n.length!==0&&n!=="."&&n!=="..","starTestDot"),PQ=/^\?+([^+@!?\*\[\(]*)?$/,OQ=o(([n,e=""])=>{let t=UO([n]);return e?(e=e.toLowerCase(),r=>t(r)&&r.toLowerCase().endsWith(e)):t},"qmarksTestNocase"),FQ=o(([n,e=""])=>{let t=qO([n]);return e?(e=e.toLowerCase(),r=>t(r)&&r.toLowerCase().endsWith(e)):t},"qmarksTestNocaseDot"),DQ=o(([n,e=""])=>{let t=qO([n]);return e?r=>t(r)&&r.endsWith(e):t},"qmarksTestDot"),NQ=o(([n,e=""])=>{let t=UO([n]);return e?r=>t(r)&&r.endsWith(e):t},"qmarksTest"),UO=o(([n])=>{let e=n.length;return t=>t.length===e&&!t.startsWith(".")},"qmarksTestNoExt"),qO=o(([n])=>{let e=n.length;return t=>t.length===e&&t!=="."&&t!==".."},"qmarksTestNoExtDot"),WO=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",$O={win32:{sep:"\\"},posix:{sep:"/"}},LQ=WO==="win32"?$O.win32.sep:$O.posix.sep;$r.sep=LQ;var Yt=Symbol("globstar **");$r.GLOBSTAR=Yt;var kQ="[^/]",MQ=kQ+"*?",jQ="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",$Q="(?:(?!(?:\\/|^)\\.).)*?",BQ=o((n,e={})=>t=>$r(t,n,e),"filter");$r.filter=BQ;var ii=o((n,e={})=>Object.assign({},n,e),"ext"),VQ=o(n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return $r;let e=$r;return Object.assign(o((r,i,s={})=>e(r,i,ii(n,s)),"m"),{Minimatch:class extends e.Minimatch{static{o(this,"Minimatch")}constructor(i,s={}){super(i,ii(n,s))}static defaults(i){return e.defaults(ii(n,i)).Minimatch}},AST:class extends e.AST{static{o(this,"AST")}constructor(i,s,a={}){super(i,s,ii(n,a))}static fromGlob(i,s={}){return e.AST.fromGlob(i,ii(n,s))}},unescape:o((r,i={})=>e.unescape(r,ii(n,i)),"unescape"),escape:o((r,i={})=>e.escape(r,ii(n,i)),"escape"),filter:o((r,i={})=>e.filter(r,ii(n,i)),"filter"),defaults:o(r=>e.defaults(ii(n,r)),"defaults"),makeRe:o((r,i={})=>e.makeRe(r,ii(n,i)),"makeRe"),braceExpand:o((r,i={})=>e.braceExpand(r,ii(n,i)),"braceExpand"),match:o((r,i,s={})=>e.match(r,i,ii(n,s)),"match"),sep:e.sep,GLOBSTAR:Yt})},"defaults");$r.defaults=VQ;var GO=o((n,e={})=>(Hf(n),e.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:(0,VO.default)(n)),"braceExpand");$r.braceExpand=GO;var UQ=o((n,e={})=>new Vn(n,e).makeRe(),"makeRe");$r.makeRe=UQ;var qQ=o((n,e,t={})=>{let r=new Vn(e,t);return n=n.filter(i=>r.match(i)),r.options.nonull&&!n.length&&n.push(e),n},"match");$r.match=qQ;var BO=/[?*]|[+@!]\(.*?\)|\[|\]/,WQ=o(n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Vn=class{static{o(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){Hf(e),t=t||{},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||WO,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,a,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!BO.test(s[2]))&&!BO.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(u)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let a=this.set[s];a[0]===""&&a[1]===""&&this.globParts[s][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let i=0;i<e[r].length;i++)e[r][i]==="**"&&(e[r][i]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let r=-1;for(;(r=t.indexOf("**",r+1))!==-1;){let i=r;for(;t[i+1]==="**";)i++;i!==r&&t.splice(r,i-r)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((r,i)=>{let s=r[r.length-1];return i==="**"&&s==="**"?r:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(r.pop(),r):(r.push(i),r)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let s=e[i];i===1&&s===""&&e[0]===""||(s==="."||s==="")&&(t=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){let i=e[r-1];i&&i!=="."&&i!==".."&&i!=="**"&&(t=!0,e.splice(r-1,2),r-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let r of e){let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let a=i;for(;r[a+1]==="**";)a++;a>i&&r.splice(i+1,a-i);let c=r[i+1],l=r[i+2],u=r[i+3];if(c!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;t=!0,r.splice(i,1);let f=r.slice(0);f[i]="**",e.push(f),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<r.length-1;a++){let c=r[a];a===1&&c===""&&r[0]===""||(c==="."||c==="")&&(t=!0,r.splice(a,1),a--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(t=!0,r.pop())}let s=0;for(;(s=r.indexOf("..",s+1))!==-1;){let a=r[s-1];if(a&&a!=="."&&a!==".."&&a!=="**"){t=!0;let l=s===1&&r[s+1]==="**"?["."]:[];r.splice(s-1,2,...l),r.length===0&&r.push(""),s-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let r=t+1;r<e.length;r++){let i=this.partsMatch(e[t],e[r],!this.preserveMultipleSlashes);if(i){e[t]=[],e[r]=i;break}}return e.filter(t=>t.length)}partsMatch(e,t,r=!1){let i=0,s=0,a=[],c="";for(;i<e.length&&s<t.length;)if(e[i]===t[s])a.push(c==="b"?t[s]:e[i]),i++,s++;else if(r&&e[i]==="**"&&t[s]===e[i+1])a.push(e[i]),i++;else if(r&&t[s]==="**"&&e[i]===t[s+1])a.push(t[s]),s++;else if(e[i]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(c==="b")return!1;c="a",a.push(e[i]),i++,s++}else if(t[s]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(c==="a")return!1;c="b",a.push(t[s]),i++,s++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,t,r=!1){let i=0,s=0;if(this.isWindows){let c=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!c&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),f=!u&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),d=l?3:c?0:void 0,h=f?3:u?0:void 0;if(typeof d=="number"&&typeof h=="number"){let[p,_]=[e[d],t[h]];p.toLowerCase()===_.toLowerCase()&&(t[h]=p,s=h,i=d)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(Yt)?this.#e(e,t,r,i,s):this.#r(e,t,r,i,s)}#e(e,t,r,i,s){let a=t.indexOf(Yt,s),c=t.lastIndexOf(Yt),[l,u,f]=r?[t.slice(s,a),t.slice(a+1),[]]:[t.slice(s,a),t.slice(a+1,c),t.slice(c+1)];if(l.length){let A=e.slice(i,i+l.length);if(!this.#r(A,l,r,0,0))return!1;i+=l.length}let d=0;if(f.length){if(f.length+i>e.length)return!1;let A=e.length-f.length;if(this.#r(e,f,r,A,0))d=f.length;else{if(e[e.length-1]!==""||i+f.length===e.length||(A--,!this.#r(e,f,r,A,0)))return!1;d=f.length+1}}if(!u.length){let A=!!d;for(let R=i;R<e.length-d;R++){let B=String(e[R]);if(A=!0,B==="."||B===".."||!this.options.dot&&B.startsWith("."))return!1}return r||A}let h=[[[],0]],p=h[0],_=0,v=[0];for(let A of u)A===Yt?(v.push(_),p=[[],0],h.push(p)):(p[0].push(A),_++);let E=h.length-1,b=e.length-d;for(let A of h)A[1]=b-(v[E--]+A[0].length);return!!this.#n(e,h,i,0,r,0,!!d)}#n(e,t,r,i,s,a,c){let l=t[i];if(!l){for(let d=r;d<e.length;d++){c=!0;let h=e[d];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return c}let[u,f]=l;for(;r<=f;){if(this.#r(e.slice(0,r+u.length),u,s,r,0)&&a<this.maxGlobstarRecursion){let p=this.#n(e,t,r+u.length,i+1,s,a+1,c);if(p!==!1)return p}let h=e[r];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;r++}return s||null}#r(e,t,r,i,s){let a,c,l,u;for(a=i,c=s,u=e.length,l=t.length;a<u&&c<l;a++,c++){this.debug("matchOne loop");let f=t[c],d=e[a];if(this.debug(t,f,d),f===!1||f===Yt)return!1;let h;if(typeof f=="string"?(h=d===f,this.debug("string match",f,d,h)):(h=f.test(d),this.debug("pattern match",f,d,h)),!h)return!1}if(a===u&&c===l)return!0;if(a===u)return r;if(c===l)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return GO(this.pattern,this.options)}parse(e){Hf(e);let t=this.options;if(e==="**")return Yt;if(e==="")return"";let r,i=null;(r=e.match(CQ))?i=t.dot?RQ:IQ:(r=e.match(yQ))?i=(t.nocase?t.dot?bQ:vQ:t.dot?SQ:_Q)(r[1]):(r=e.match(PQ))?i=(t.nocase?t.dot?FQ:OQ:t.dot?DQ:NQ)(r):(r=e.match(wQ))?i=t.dot?TQ:EQ:(r=e.match(AQ))&&(i=xQ);let s=Jo.fromGlob(e,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,r=t.noglobstar?MQ:t.dot?jQ:$Q,i=new Set(t.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let d of f.flags.split(""))i.add(d);return typeof f=="string"?WQ(f):f===Yt?Yt:f._src});return u.forEach((f,d)=>{let h=u[d+1],p=u[d-1];f!==Yt||p===Yt||(p===void 0?h!==void 0&&h!==Yt?u[d+1]="(?:\\/|"+r+"\\/)?"+h:u[d]=r:h===void 0?u[d-1]=p+"(?:\\/|"+r+")?":h!==Yt&&(u[d-1]=p+"(?:\\/|\\/"+r+"\\/)"+h,u[d+1]=Yt))}),u.filter(f=>f!==Yt).join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let a=i[i.length-1];if(!a)for(let c=i.length-2;!a&&c>=0;c--)a=i[c];for(let c=0;c<s.length;c++){let l=s[c],u=i;if(r.matchBase&&l.length===1&&(u=[a]),this.matchOne(u,l,t))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return $r.defaults(e).Minimatch}};$r.AST=Jo;$r.Minimatch=Vn;$r.escape=Gl;$r.unescape=qi;var mF=require("node:url");var zl=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,HO=new Set,Uw=typeof process=="object"&&process?process:{},QO=o((n,e,t,r)=>{typeof Uw.emitWarning=="function"?Uw.emitWarning(n,e,t,r):console.error(`[${t}] ${e}: ${n}`)},"emitWarning"),xg=globalThis.AbortController,zO=globalThis.AbortSignal;if(typeof xg>"u"){zO=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(r,i){this._onabort.push(i)}},xg=class{static{o(this,"AbortController")}constructor(){e()}signal=new zO;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let i of this.signal._onabort)i(r);this.signal.onabort?.(r)}}};let n=Uw.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{n&&(n=!1,QO("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var GQ=o(n=>!HO.has(n),"shouldWarn");var Qa=o(n=>n&&n===Math.floor(n)&&n>0&&isFinite(n),"isPosInt"),YO=o(n=>Qa(n)?n<=Math.pow(2,8)?Uint8Array:n<=Math.pow(2,16)?Uint16Array:n<=Math.pow(2,32)?Uint32Array:n<=Number.MAX_SAFE_INTEGER?Hl:null:null,"getUintArray"),Hl=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},qw=class n{static{o(this,"Stack")}heap;length;static#e=!1;static create(e){let t=YO(e);if(!t)return[];n.#e=!0;let r=new n(e,t);return n.#e=!1,r}constructor(e,t){if(!n.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Yf=class n{static{o(this,"LRUCache")}#e;#n;#r;#t;#c;#_;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#i;#u;#s;#l;#a;#p;#g;#d;#m;#y;#f;#E;#T;#S;#w;#v;#b;static unsafeExposeInternals(e){return{starts:e.#T,ttls:e.#S,sizes:e.#E,keyMap:e.#s,keyList:e.#l,valList:e.#a,next:e.#p,prev:e.#g,get head(){return e.#d},get tail(){return e.#m},free:e.#y,isBackgroundFetch:o(t=>e.#h(t),"isBackgroundFetch"),backgroundFetch:o((t,r,i,s)=>e.#j(t,r,i,s),"backgroundFetch"),moveToTail:o(t=>e.#B(t),"moveToTail"),indexes:o(t=>e.#I(t),"indexes"),rindexes:o(t=>e.#R(t),"rindexes"),isStale:o(t=>e.#A(t),"isStale")}}get max(){return this.#e}get maxSize(){return this.#n}get calculatedSize(){return this.#u}get size(){return this.#i}get fetchMethod(){return this.#c}get memoMethod(){return this.#_}get dispose(){return this.#r}get disposeAfter(){return this.#t}constructor(e){let{max:t=0,ttl:r,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:a,updateAgeOnHas:c,allowStale:l,dispose:u,disposeAfter:f,noDisposeOnSet:d,noUpdateTTL:h,maxSize:p=0,maxEntrySize:_=0,sizeCalculation:v,fetchMethod:E,memoMethod:b,noDeleteOnFetchRejection:A,noDeleteOnStaleGet:R,allowStaleOnFetchRejection:B,allowStaleOnFetchAbort:W,ignoreFetchAbort:we}=e;if(t!==0&&!Qa(t))throw new TypeError("max option must be a nonnegative integer");let z=t?YO(t):Array;if(!z)throw new Error("invalid max value: "+t);if(this.#e=t,this.#n=p,this.maxEntrySize=_||this.#n,this.sizeCalculation=v,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(b!==void 0&&typeof b!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#_=b,E!==void 0&&typeof E!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#c=E,this.#v=!!E,this.#s=new Map,this.#l=new Array(t).fill(void 0),this.#a=new Array(t).fill(void 0),this.#p=new z(t),this.#g=new z(t),this.#d=0,this.#m=0,this.#y=qw.create(t),this.#i=0,this.#u=0,typeof u=="function"&&(this.#r=u),typeof f=="function"?(this.#t=f,this.#f=[]):(this.#t=void 0,this.#f=void 0),this.#w=!!this.#r,this.#b=!!this.#t,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!A,this.allowStaleOnFetchRejection=!!B,this.allowStaleOnFetchAbort=!!W,this.ignoreFetchAbort=!!we,this.maxEntrySize!==0){if(this.#n!==0&&!Qa(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!Qa(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#P()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!R,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!c,this.ttlResolution=Qa(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=r||0,this.ttl){if(!Qa(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#x()}if(this.#e===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#n){let G="LRU_CACHE_UNBOUNDED";GQ(G)&&(HO.add(G),QO("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",G,n))}}getRemainingTTL(e){return this.#s.has(e)?1/0:0}#x(){let e=new Hl(this.#e),t=new Hl(this.#e);this.#S=e,this.#T=t,this.#F=(s,a,c=zl.now())=>{if(t[s]=a!==0?c:0,e[s]=a,a!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#A(s)&&this.#O(this.#l[s],"expire")},a+1);l.unref&&l.unref()}},this.#C=s=>{t[s]=e[s]!==0?zl.now():0},this.#o=(s,a)=>{if(e[a]){let c=e[a],l=t[a];if(!c||!l)return;s.ttl=c,s.start=l,s.now=r||i();let u=s.now-l;s.remainingTTL=c-u}};let r=0,i=o(()=>{let s=zl.now();if(this.ttlResolution>0){r=s;let a=setTimeout(()=>r=0,this.ttlResolution);a.unref&&a.unref()}return s},"getNow");this.getRemainingTTL=s=>{let a=this.#s.get(s);if(a===void 0)return 0;let c=e[a],l=t[a];if(!c||!l)return 1/0;let u=(r||i())-l;return c-u},this.#A=s=>{let a=t[s],c=e[s];return!!c&&!!a&&(r||i())-a>c}}#C=o(()=>{},"#updateItemAge");#o=o(()=>{},"#statusTTL");#F=o(()=>{},"#setItemTTL");#A=o(()=>!1,"#isStale");#P(){let e=new Hl(this.#e);this.#u=0,this.#E=e,this.#D=t=>{this.#u-=e[t],e[t]=0},this.#L=(t,r,i,s)=>{if(this.#h(r))return 0;if(!Qa(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(r,t),!Qa(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#N=(t,r,i)=>{if(e[t]=r,this.#n){let s=this.#n-e[t];for(;this.#u>s;)this.#M(!0)}this.#u+=e[t],i&&(i.entrySize=r,i.totalCalculatedSize=this.#u)}}#D=o(e=>{},"#removeItemSize");#N=o((e,t,r)=>{},"#addItemSize");#L=o((e,t,r,i)=>{if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#I({allowStale:e=this.allowStale}={}){if(this.#i)for(let t=this.#m;!(!this.#k(t)||((e||!this.#A(t))&&(yield t),t===this.#d));)t=this.#g[t]}*#R({allowStale:e=this.allowStale}={}){if(this.#i)for(let t=this.#d;!(!this.#k(t)||((e||!this.#A(t))&&(yield t),t===this.#m));)t=this.#p[t]}#k(e){return e!==void 0&&this.#s.get(this.#l[e])===e}*entries(){for(let e of this.#I())this.#a[e]!==void 0&&this.#l[e]!==void 0&&!this.#h(this.#a[e])&&(yield[this.#l[e],this.#a[e]])}*rentries(){for(let e of this.#R())this.#a[e]!==void 0&&this.#l[e]!==void 0&&!this.#h(this.#a[e])&&(yield[this.#l[e],this.#a[e]])}*keys(){for(let e of this.#I()){let t=this.#l[e];t!==void 0&&!this.#h(this.#a[e])&&(yield t)}}*rkeys(){for(let e of this.#R()){let t=this.#l[e];t!==void 0&&!this.#h(this.#a[e])&&(yield t)}}*values(){for(let e of this.#I())this.#a[e]!==void 0&&!this.#h(this.#a[e])&&(yield this.#a[e])}*rvalues(){for(let e of this.#R())this.#a[e]!==void 0&&!this.#h(this.#a[e])&&(yield this.#a[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let r of this.#I()){let i=this.#a[r],s=this.#h(i)?i.__staleWhileFetching:i;if(s!==void 0&&e(s,this.#l[r],this))return this.get(this.#l[r],t)}}forEach(e,t=this){for(let r of this.#I()){let i=this.#a[r],s=this.#h(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(t,s,this.#l[r],this)}}rforEach(e,t=this){for(let r of this.#R()){let i=this.#a[r],s=this.#h(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(t,s,this.#l[r],this)}}purgeStale(){let e=!1;for(let t of this.#R({allowStale:!0}))this.#A(t)&&(this.#O(this.#l[t],"expire"),e=!0);return e}info(e){let t=this.#s.get(e);if(t===void 0)return;let r=this.#a[t],i=this.#h(r)?r.__staleWhileFetching:r;if(i===void 0)return;let s={value:i};if(this.#S&&this.#T){let a=this.#S[t],c=this.#T[t];if(a&&c){let l=a-(zl.now()-c);s.ttl=l,s.start=Date.now()}}return this.#E&&(s.size=this.#E[t]),s}dump(){let e=[];for(let t of this.#I({allowStale:!0})){let r=this.#l[t],i=this.#a[t],s=this.#h(i)?i.__staleWhileFetching:i;if(s===void 0||r===void 0)continue;let a={value:s};if(this.#S&&this.#T){a.ttl=this.#S[t];let c=zl.now()-this.#T[t];a.start=Math.floor(Date.now()-c)}this.#E&&(a.size=this.#E[t]),e.unshift([r,a])}return e}load(e){this.clear();for(let[t,r]of e){if(r.start){let i=Date.now()-r.start;r.start=zl.now()-i}this.set(t,r.value,r)}}set(e,t,r={}){if(t===void 0)return this.delete(e),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:c=this.sizeCalculation,status:l}=r,{noUpdateTTL:u=this.noUpdateTTL}=r,f=this.#L(e,t,r.size||0,c);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#O(e,"set"),this;let d=this.#i===0?void 0:this.#s.get(e);if(d===void 0)d=this.#i===0?this.#m:this.#y.length!==0?this.#y.pop():this.#i===this.#e?this.#M(!1):this.#i,this.#l[d]=e,this.#a[d]=t,this.#s.set(e,d),this.#p[this.#m]=d,this.#g[d]=this.#m,this.#m=d,this.#i++,this.#N(d,f,l),l&&(l.set="add"),u=!1;else{this.#B(d);let h=this.#a[d];if(t!==h){if(this.#v&&this.#h(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:p}=h;p!==void 0&&!a&&(this.#w&&this.#r?.(p,e,"set"),this.#b&&this.#f?.push([p,e,"set"]))}else a||(this.#w&&this.#r?.(h,e,"set"),this.#b&&this.#f?.push([h,e,"set"]));if(this.#D(d),this.#N(d,f,l),this.#a[d]=t,l){l.set="replace";let p=h&&this.#h(h)?h.__staleWhileFetching:h;p!==void 0&&(l.oldValue=p)}}else l&&(l.set="update")}if(i!==0&&!this.#S&&this.#x(),this.#S&&(u||this.#F(d,i,s),l&&this.#o(l,d)),!a&&this.#b&&this.#f){let h=this.#f,p;for(;p=h?.shift();)this.#t?.(...p)}return this}pop(){try{for(;this.#i;){let e=this.#a[this.#d];if(this.#M(!0),this.#h(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#b&&this.#f){let e=this.#f,t;for(;t=e?.shift();)this.#t?.(...t)}}}#M(e){let t=this.#d,r=this.#l[t],i=this.#a[t];return this.#v&&this.#h(i)?i.__abortController.abort(new Error("evicted")):(this.#w||this.#b)&&(this.#w&&this.#r?.(i,r,"evict"),this.#b&&this.#f?.push([i,r,"evict"])),this.#D(t),e&&(this.#l[t]=void 0,this.#a[t]=void 0,this.#y.push(t)),this.#i===1?(this.#d=this.#m=0,this.#y.length=0):this.#d=this.#p[t],this.#s.delete(r),this.#i--,t}has(e,t={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=t,s=this.#s.get(e);if(s!==void 0){let a=this.#a[s];if(this.#h(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#A(s))i&&(i.has="stale",this.#o(i,s));else return r&&this.#C(s),i&&(i.has="hit",this.#o(i,s)),!0}else i&&(i.has="miss");return!1}peek(e,t={}){let{allowStale:r=this.allowStale}=t,i=this.#s.get(e);if(i===void 0||!r&&this.#A(i))return;let s=this.#a[i];return this.#h(s)?s.__staleWhileFetching:s}#j(e,t,r,i){let s=t===void 0?void 0:this.#a[t];if(this.#h(s))return s;let a=new xg,{signal:c}=r;c?.addEventListener("abort",()=>a.abort(c.reason),{signal:a.signal});let l={signal:a.signal,options:r,context:i},u=o((v,E=!1)=>{let{aborted:b}=a.signal,A=r.ignoreFetchAbort&&v!==void 0;if(r.status&&(b&&!E?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,A&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),b&&!A&&!E)return d(a.signal.reason);let R=p;return this.#a[t]===p&&(v===void 0?R.__staleWhileFetching?this.#a[t]=R.__staleWhileFetching:this.#O(e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,v,l.options))),v},"cb"),f=o(v=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=v),d(v)),"eb"),d=o(v=>{let{aborted:E}=a.signal,b=E&&r.allowStaleOnFetchAbort,A=b||r.allowStaleOnFetchRejection,R=A||r.noDeleteOnFetchRejection,B=p;if(this.#a[t]===p&&(!R||B.__staleWhileFetching===void 0?this.#O(e,"fetch"):b||(this.#a[t]=B.__staleWhileFetching)),A)return r.status&&B.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),B.__staleWhileFetching;if(B.__returned===B)throw v},"fetchFail"),h=o((v,E)=>{let b=this.#c?.(e,s,l);b&&b instanceof Promise&&b.then(A=>v(A===void 0?void 0:A),E),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(v(void 0),r.allowStaleOnFetchAbort&&(v=o(A=>u(A,!0),"res")))})},"pcall");r.status&&(r.status.fetchDispatched=!0);let p=new Promise(h).then(u,f),_=Object.assign(p,{__abortController:a,__staleWhileFetching:s,__returned:void 0});return t===void 0?(this.set(e,_,{...l.options,status:void 0}),t=this.#s.get(e)):this.#a[t]=_,_}#h(e){if(!this.#v)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof xg}async fetch(e,t={}){let{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:c=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:_=this.allowStaleOnFetchAbort,context:v,forceRefresh:E=!1,status:b,signal:A}=t;if(!this.#v)return b&&(b.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:b});let R={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:a,noDisposeOnSet:c,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:_,ignoreFetchAbort:p,status:b,signal:A},B=this.#s.get(e);if(B===void 0){b&&(b.fetch="miss");let W=this.#j(e,B,R,v);return W.__returned=W}else{let W=this.#a[B];if(this.#h(W)){let j=r&&W.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",j&&(b.returnedStale=!0)),j?W.__staleWhileFetching:W.__returned=W}let we=this.#A(B);if(!E&&!we)return b&&(b.fetch="hit"),this.#B(B),i&&this.#C(B),b&&this.#o(b,B),W;let z=this.#j(e,B,R,v),F=z.__staleWhileFetching!==void 0&&r;return b&&(b.fetch=we?"stale":"refresh",F&&we&&(b.returnedStale=!0)),F?z.__staleWhileFetching:z.__returned=z}}async forceFetch(e,t={}){let r=await this.fetch(e,t);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(e,t={}){let r=this.#_;if(!r)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:s,...a}=t,c=this.get(e,a);if(!s&&c!==void 0)return c;let l=r(e,c,{options:a,context:i});return this.set(e,l,a),l}get(e,t={}){let{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:a}=t,c=this.#s.get(e);if(c!==void 0){let l=this.#a[c],u=this.#h(l);return a&&this.#o(a,c),this.#A(c)?(a&&(a.get="stale"),u?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(s||this.#O(e,"expire"),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),u?l.__staleWhileFetching:(this.#B(c),i&&this.#C(c),l))}else a&&(a.get="miss")}#$(e,t){this.#g[t]=e,this.#p[e]=t}#B(e){e!==this.#m&&(e===this.#d?this.#d=this.#p[e]:this.#$(this.#g[e],this.#p[e]),this.#$(this.#m,e),this.#m=e)}delete(e){return this.#O(e,"delete")}#O(e,t){let r=!1;if(this.#i!==0){let i=this.#s.get(e);if(i!==void 0)if(r=!0,this.#i===1)this.#V(t);else{this.#D(i);let s=this.#a[i];if(this.#h(s)?s.__abortController.abort(new Error("deleted")):(this.#w||this.#b)&&(this.#w&&this.#r?.(s,e,t),this.#b&&this.#f?.push([s,e,t])),this.#s.delete(e),this.#l[i]=void 0,this.#a[i]=void 0,i===this.#m)this.#m=this.#g[i];else if(i===this.#d)this.#d=this.#p[i];else{let a=this.#g[i];this.#p[a]=this.#p[i];let c=this.#p[i];this.#g[c]=this.#g[i]}this.#i--,this.#y.push(i)}}if(this.#b&&this.#f?.length){let i=this.#f,s;for(;s=i?.shift();)this.#t?.(...s)}return r}clear(){return this.#V("delete")}#V(e){for(let t of this.#R({allowStale:!0})){let r=this.#a[t];if(this.#h(r))r.__abortController.abort(new Error("deleted"));else{let i=this.#l[t];this.#w&&this.#r?.(r,i,e),this.#b&&this.#f?.push([r,i,e])}}if(this.#s.clear(),this.#a.fill(void 0),this.#l.fill(void 0),this.#S&&this.#T&&(this.#S.fill(0),this.#T.fill(0)),this.#E&&this.#E.fill(0),this.#d=0,this.#m=0,this.#y.length=0,this.#u=0,this.#i=0,this.#b&&this.#f){let t=this.#f,r;for(;r=t?.shift();)this.#t?.(...r)}}};var Kl=require("node:path"),sF=require("node:url"),As=require("fs"),tY=Y(require("node:fs"),1),Xa=require("node:fs/promises");var Dg=require("node:events"),Kw=Y(require("node:stream"),1),eF=require("node:string_decoder");var KO=typeof process=="object"&&process?process:{stdout:null,stderr:null},zQ=o(n=>!!n&&typeof n=="object"&&(n instanceof Ka||n instanceof Kw.default||HQ(n)||QQ(n)),"isStream"),HQ=o(n=>!!n&&typeof n=="object"&&n instanceof Dg.EventEmitter&&typeof n.pipe=="function"&&n.pipe!==Kw.default.Writable.prototype.pipe,"isReadable"),QQ=o(n=>!!n&&typeof n=="object"&&n instanceof Dg.EventEmitter&&typeof n.write=="function"&&typeof n.end=="function","isWritable"),la=Symbol("EOF"),ua=Symbol("maybeEmitEnd"),Ya=Symbol("emittedEnd"),Cg=Symbol("emittingEnd"),Kf=Symbol("emittedError"),Ig=Symbol("closed"),XO=Symbol("read"),Rg=Symbol("flush"),JO=Symbol("flushChunk"),Wi=Symbol("encoding"),Ql=Symbol("decoder"),Er=Symbol("flowing"),Xf=Symbol("paused"),Yl=Symbol("resume"),Tr=Symbol("buffer"),_n=Symbol("pipes"),Ar=Symbol("bufferLength"),Ww=Symbol("bufferPush"),Pg=Symbol("bufferShift"),Zr=Symbol("objectMode"),Kt=Symbol("destroyed"),Gw=Symbol("error"),zw=Symbol("emitData"),ZO=Symbol("emitEnd"),Hw=Symbol("emitEnd2"),Es=Symbol("async"),Qw=Symbol("abort"),Og=Symbol("aborted"),Jf=Symbol("signal"),Zo=Symbol("dataListeners"),Un=Symbol("discarded"),Zf=o(n=>Promise.resolve().then(n),"defer"),YQ=o(n=>n(),"nodefer"),KQ=o(n=>n==="end"||n==="finish"||n==="prefinish","isEndish"),XQ=o(n=>n instanceof ArrayBuffer||!!n&&typeof n=="object"&&n.constructor&&n.constructor.name==="ArrayBuffer"&&n.byteLength>=0,"isArrayBufferLike"),JQ=o(n=>!Buffer.isBuffer(n)&&ArrayBuffer.isView(n),"isArrayBufferView"),Fg=class{static{o(this,"Pipe")}src;dest;opts;ondrain;constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[Yl](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Yw=class extends Fg{static{o(this,"PipeProxyErrors")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,r){super(e,t,r),this.proxyErrors=i=>t.emit("error",i),e.on("error",this.proxyErrors)}},ZQ=o(n=>!!n.objectMode,"isObjectModeOptions"),eY=o(n=>!n.objectMode&&!!n.encoding&&n.encoding!=="buffer","isEncodingOptions"),Ka=class extends Dg.EventEmitter{static{o(this,"Minipass")}[Er]=!1;[Xf]=!1;[_n]=[];[Tr]=[];[Zr];[Wi];[Es];[Ql];[la]=!1;[Ya]=!1;[Cg]=!1;[Ig]=!1;[Kf]=null;[Ar]=0;[Kt]=!1;[Jf];[Og]=!1;[Zo]=0;[Un]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&typeof t.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");ZQ(t)?(this[Zr]=!0,this[Wi]=null):eY(t)?(this[Wi]=t.encoding,this[Zr]=!1):(this[Zr]=!1,this[Wi]=null),this[Es]=!!t.async,this[Ql]=this[Wi]?new eF.StringDecoder(this[Wi]):null,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:o(()=>this[Tr],"get")}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:o(()=>this[_n],"get")});let{signal:r}=t;r&&(this[Jf]=r,r.aborted?this[Qw]():r.addEventListener("abort",()=>this[Qw]()))}get bufferLength(){return this[Ar]}get encoding(){return this[Wi]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Zr]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Es]}set async(e){this[Es]=this[Es]||!!e}[Qw](){this[Og]=!0,this.emit("abort",this[Jf]?.reason),this.destroy(this[Jf]?.reason)}get aborted(){return this[Og]}set aborted(e){}write(e,t,r){if(this[Og])return!1;if(this[la])throw new Error("write after end");if(this[Kt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let i=this[Es]?Zf:YQ;if(!this[Zr]&&!Buffer.isBuffer(e)){if(JQ(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(XQ(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Zr]?(this[Er]&&this[Ar]!==0&&this[Rg](!0),this[Er]?this.emit("data",e):this[Ww](e),this[Ar]!==0&&this.emit("readable"),r&&i(r),this[Er]):e.length?(typeof e=="string"&&!(t===this[Wi]&&!this[Ql]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Wi]&&(e=this[Ql].write(e)),this[Er]&&this[Ar]!==0&&this[Rg](!0),this[Er]?this.emit("data",e):this[Ww](e),this[Ar]!==0&&this.emit("readable"),r&&i(r),this[Er]):(this[Ar]!==0&&this.emit("readable"),r&&i(r),this[Er])}read(e){if(this[Kt])return null;if(this[Un]=!1,this[Ar]===0||e===0||e&&e>this[Ar])return this[ua](),null;this[Zr]&&(e=null),this[Tr].length>1&&!this[Zr]&&(this[Tr]=[this[Wi]?this[Tr].join(""):Buffer.concat(this[Tr],this[Ar])]);let t=this[XO](e||null,this[Tr][0]);return this[ua](),t}[XO](e,t){if(this[Zr])this[Pg]();else{let r=t;e===r.length||e===null?this[Pg]():typeof r=="string"?(this[Tr][0]=r.slice(e),t=r.slice(0,e),this[Ar]-=e):(this[Tr][0]=r.subarray(e),t=r.subarray(0,e),this[Ar]-=e)}return this.emit("data",t),!this[Tr].length&&!this[la]&&this.emit("drain"),t}end(e,t,r){return typeof e=="function"&&(r=e,e=void 0),typeof t=="function"&&(r=t,t="utf8"),e!==void 0&&this.write(e,t),r&&this.once("end",r),this[la]=!0,this.writable=!1,(this[Er]||!this[Xf])&&this[ua](),this}[Yl](){this[Kt]||(!this[Zo]&&!this[_n].length&&(this[Un]=!0),this[Xf]=!1,this[Er]=!0,this.emit("resume"),this[Tr].length?this[Rg]():this[la]?this[ua]():this.emit("drain"))}resume(){return this[Yl]()}pause(){this[Er]=!1,this[Xf]=!0,this[Un]=!1}get destroyed(){return this[Kt]}get flowing(){return this[Er]}get paused(){return this[Xf]}[Ww](e){this[Zr]?this[Ar]+=1:this[Ar]+=e.length,this[Tr].push(e)}[Pg](){return this[Zr]?this[Ar]-=1:this[Ar]-=this[Tr][0].length,this[Tr].shift()}[Rg](e=!1){do;while(this[JO](this[Pg]())&&this[Tr].length);!e&&!this[Tr].length&&!this[la]&&this.emit("drain")}[JO](e){return this.emit("data",e),this[Er]}pipe(e,t){if(this[Kt])return e;this[Un]=!1;let r=this[Ya];return t=t||{},e===KO.stdout||e===KO.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this[_n].push(t.proxyErrors?new Yw(this,e,t):new Fg(this,e,t)),this[Es]?Zf(()=>this[Yl]()):this[Yl]()),e}unpipe(e){let t=this[_n].find(r=>r.dest===e);t&&(this[_n].length===1?(this[Er]&&this[Zo]===0&&(this[Er]=!1),this[_n]=[]):this[_n].splice(this[_n].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let r=super.on(e,t);if(e==="data")this[Un]=!1,this[Zo]++,!this[_n].length&&!this[Er]&&this[Yl]();else if(e==="readable"&&this[Ar]!==0)super.emit("readable");else if(KQ(e)&&this[Ya])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[Kf]){let i=t;this[Es]?Zf(()=>i.call(this,this[Kf])):i.call(this,this[Kf])}return r}removeListener(e,t){return this.off(e,t)}off(e,t){let r=super.off(e,t);return e==="data"&&(this[Zo]=this.listeners("data").length,this[Zo]===0&&!this[Un]&&!this[_n].length&&(this[Er]=!1)),r}removeAllListeners(e){let t=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[Zo]=0,!this[Un]&&!this[_n].length&&(this[Er]=!1)),t}get emittedEnd(){return this[Ya]}[ua](){!this[Cg]&&!this[Ya]&&!this[Kt]&&this[Tr].length===0&&this[la]&&(this[Cg]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ig]&&this.emit("close"),this[Cg]=!1)}emit(e,...t){let r=t[0];if(e!=="error"&&e!=="close"&&e!==Kt&&this[Kt])return!1;if(e==="data")return!this[Zr]&&!r?!1:this[Es]?(Zf(()=>this[zw](r)),!0):this[zw](r);if(e==="end")return this[ZO]();if(e==="close"){if(this[Ig]=!0,!this[Ya]&&!this[Kt])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Kf]=r,super.emit(Gw,r);let s=!this[Jf]||this.listeners("error").length?super.emit("error",r):!1;return this[ua](),s}else if(e==="resume"){let s=super.emit("resume");return this[ua](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,...t);return this[ua](),i}[zw](e){for(let r of this[_n])r.dest.write(e)===!1&&this.pause();let t=this[Un]?!1:super.emit("data",e);return this[ua](),t}[ZO](){return this[Ya]?!1:(this[Ya]=!0,this.readable=!1,this[Es]?(Zf(()=>this[Hw]()),!0):this[Hw]())}[Hw](){if(this[Ql]){let t=this[Ql].end();if(t){for(let r of this[_n])r.dest.write(t);this[Un]||super.emit("data",t)}}for(let t of this[_n])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Zr]||(e.dataLength=0);let t=this.promise();return this.on("data",r=>{e.push(r),this[Zr]||(e.dataLength+=r.length)}),await t,e}async concat(){if(this[Zr])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Wi]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(Kt,()=>t(new Error("stream destroyed"))),this.on("error",r=>t(r)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Un]=!1;let e=!1,t=o(async()=>(this.pause(),e=!0,{value:void 0,done:!0}),"stop");return{next:o(()=>{if(e)return t();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[la])return t();let s,a,c=o(d=>{this.off("data",l),this.off("end",u),this.off(Kt,f),t(),a(d)},"onerr"),l=o(d=>{this.off("error",c),this.off("end",u),this.off(Kt,f),this.pause(),s({value:d,done:!!this[la]})},"ondata"),u=o(()=>{this.off("error",c),this.off("data",l),this.off(Kt,f),t(),s({done:!0,value:void 0})},"onend"),f=o(()=>c(new Error("stream destroyed")),"ondestroy");return new Promise((d,h)=>{a=h,s=d,this.once(Kt,f),this.once("error",c),this.once("end",u),this.once("data",l)})},"next"),throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[Un]=!1;let e=!1,t=o(()=>(this.pause(),this.off(Gw,t),this.off(Kt,t),this.off("end",t),e=!0,{done:!0,value:void 0}),"stop"),r=o(()=>{if(e)return t();let i=this.read();return i===null?t():{done:!1,value:i}},"next");return this.once("end",t),this.once(Gw,t),this.once(Kt,t),{next:r,throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[Kt])return e?this.emit("error",e):this.emit(Kt),this;this[Kt]=!0,this[Un]=!0,this[Tr].length=0,this[Ar]=0;let t=this;return typeof t.close=="function"&&!this[Ig]&&t.close(),e?this.emit("error",e):this.emit(Kt),this}static get isStream(){return zQ}};var rY=As.realpathSync.native,td={lstatSync:As.lstatSync,readdir:As.readdir,readdirSync:As.readdirSync,readlinkSync:As.readlinkSync,realpathSync:rY,promises:{lstat:Xa.lstat,readdir:Xa.readdir,readlink:Xa.readlink,realpath:Xa.realpath}},aF=o(n=>!n||n===td||n===tY?td:{...td,...n,promises:{...td.promises,...n.promises||{}}},"fsFromOption"),oF=/^\\\\\?\\([a-z]:)\\?$/i,nY=o(n=>n.replace(/\//g,"\\").replace(oF,"$1\\"),"uncToDrive"),iY=/[\\\/]/,ai=0,cF=1,lF=2,Ts=4,uF=6,fF=8,ec=10,dF=12,si=15,ed=~si,Xw=16,tF=32,rd=64,Gi=128,Ng=256,kg=512,rF=rd|Gi|kg,sY=1023,Jw=o(n=>n.isFile()?fF:n.isDirectory()?Ts:n.isSymbolicLink()?ec:n.isCharacterDevice()?lF:n.isBlockDevice()?uF:n.isSocket()?dF:n.isFIFO()?cF:ai,"entToType"),nF=new Map,nd=o(n=>{let e=nF.get(n);if(e)return e;let t=n.normalize("NFKD");return nF.set(n,t),t},"normalize"),iF=new Map,Lg=o(n=>{let e=iF.get(n);if(e)return e;let t=nd(n.toLowerCase());return iF.set(n,t),t},"normalizeNocase"),Mg=class extends Yf{static{o(this,"ResolveCache")}constructor(){super({max:256})}},Zw=class extends Yf{static{o(this,"ChildrenCache")}constructor(e=16*1024){super({maxSize:e,sizeCalculation:o(t=>t.length+1,"sizeCalculation")})}},hF=Symbol("PathScurry setAsCwd"),en=class{static{o(this,"PathBase")}name;root;roots;parent;nocase;isCWD=!1;#e;#n;get dev(){return this.#n}#r;get mode(){return this.#r}#t;get nlink(){return this.#t}#c;get uid(){return this.#c}#_;get gid(){return this.#_}#i;get rdev(){return this.#i}#u;get blksize(){return this.#u}#s;get ino(){return this.#s}#l;get size(){return this.#l}#a;get blocks(){return this.#a}#p;get atimeMs(){return this.#p}#g;get mtimeMs(){return this.#g}#d;get ctimeMs(){return this.#d}#m;get birthtimeMs(){return this.#m}#y;get atime(){return this.#y}#f;get mtime(){return this.#f}#E;get ctime(){return this.#E}#T;get birthtime(){return this.#T}#S;#w;#v;#b;#x;#C;#o;#F;#A;#P;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=ai,r,i,s,a,c){this.name=e,this.#S=s?Lg(e):nd(e),this.#o=t&sY,this.nocase=s,this.roots=i,this.root=r||this,this.#F=a,this.#v=c.fullpath,this.#x=c.relative,this.#C=c.relativePosix,this.parent=c.parent,this.parent?this.#e=this.parent.#e:this.#e=aF(c.fs)}depth(){return this.#w!==void 0?this.#w:this.parent?this.#w=this.parent.depth()+1:this.#w=0}childrenCache(){return this.#F}resolve(e){if(!e)return this;let t=this.getRootString(e),i=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#D(i):this.#D(i)}#D(e){let t=this;for(let r of e)t=t.child(r);return t}children(){let e=this.#F.get(this);if(e)return e;let t=Object.assign([],{provisional:0});return this.#F.set(this,t),this.#o&=~Xw,t}child(e,t){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let r=this.children(),i=this.nocase?Lg(e):nd(e);for(let l of r)if(l.#S===i)return l;let s=this.parent?this.sep:"",a=this.#v?this.#v+s+e:void 0,c=this.newChild(e,ai,{...t,parent:this,fullpath:a});return this.canReaddir()||(c.#o|=Gi),r.push(c),c}relative(){if(this.isCWD)return"";if(this.#x!==void 0)return this.#x;let e=this.name,t=this.parent;if(!t)return this.#x=this.name;let r=t.relative();return r+(!r||!t.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#C!==void 0)return this.#C;let e=this.name,t=this.parent;if(!t)return this.#C=this.fullpathPosix();let r=t.relativePosix();return r+(!r||!t.parent?"":"/")+e}fullpath(){if(this.#v!==void 0)return this.#v;let e=this.name,t=this.parent;if(!t)return this.#v=this.name;let i=t.fullpath()+(t.parent?this.sep:"")+e;return this.#v=i}fullpathPosix(){if(this.#b!==void 0)return this.#b;if(this.sep==="/")return this.#b=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#b=`//?/${i}`:this.#b=i}let e=this.parent,t=e.fullpathPosix(),r=t+(!t||!e.parent?"":"/")+this.name;return this.#b=r}isUnknown(){return(this.#o&si)===ai}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#o&si)===fF}isDirectory(){return(this.#o&si)===Ts}isCharacterDevice(){return(this.#o&si)===lF}isBlockDevice(){return(this.#o&si)===uF}isFIFO(){return(this.#o&si)===cF}isSocket(){return(this.#o&si)===dF}isSymbolicLink(){return(this.#o&ec)===ec}lstatCached(){return this.#o&tF?this:void 0}readlinkCached(){return this.#A}realpathCached(){return this.#P}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#A)return!0;if(!this.parent)return!1;let e=this.#o&si;return!(e!==ai&&e!==ec||this.#o&Ng||this.#o&Gi)}calledReaddir(){return!!(this.#o&Xw)}isENOENT(){return!!(this.#o&Gi)}isNamed(e){return this.nocase?this.#S===Lg(e):this.#S===nd(e)}async readlink(){let e=this.#A;if(e)return e;if(this.canReadlink()&&this.parent)try{let t=await this.#e.promises.readlink(this.fullpath()),r=(await this.parent.realpath())?.resolve(t);if(r)return this.#A=r}catch(t){this.#h(t.code);return}}readlinkSync(){let e=this.#A;if(e)return e;if(this.canReadlink()&&this.parent)try{let t=this.#e.readlinkSync(this.fullpath()),r=this.parent.realpathSync()?.resolve(t);if(r)return this.#A=r}catch(t){this.#h(t.code);return}}#N(e){this.#o|=Xw;for(let t=e.provisional;t<e.length;t++){let r=e[t];r&&r.#L()}}#L(){this.#o&Gi||(this.#o=(this.#o|Gi)&ed,this.#I())}#I(){let e=this.children();e.provisional=0;for(let t of e)t.#L()}#R(){this.#o|=kg,this.#k()}#k(){if(this.#o&rd)return;let e=this.#o;(e&si)===Ts&&(e&=ed),this.#o=e|rd,this.#I()}#M(e=""){e==="ENOTDIR"||e==="EPERM"?this.#k():e==="ENOENT"?this.#L():this.children().provisional=0}#j(e=""){e==="ENOTDIR"?this.parent.#k():e==="ENOENT"&&this.#L()}#h(e=""){let t=this.#o;t|=Ng,e==="ENOENT"&&(t|=Gi),(e==="EINVAL"||e==="UNKNOWN")&&(t&=ed),this.#o=t,e==="ENOTDIR"&&this.parent&&this.parent.#k()}#$(e,t){return this.#O(e,t)||this.#B(e,t)}#B(e,t){let r=Jw(e),i=this.newChild(e.name,r,{parent:this}),s=i.#o&si;return s!==Ts&&s!==ec&&s!==ai&&(i.#o|=rd),t.unshift(i),t.provisional++,i}#O(e,t){for(let r=t.provisional;r<t.length;r++){let i=t[r];if((this.nocase?Lg(e.name):nd(e.name))===i.#S)return this.#V(e,i,r,t)}}#V(e,t,r,i){let s=t.name;return t.#o=t.#o&ed|Jw(e),s!==e.name&&(t.name=e.name),r!==i.provisional&&(r===i.length-1?i.pop():i.splice(r,1),i.unshift(t)),i.provisional++,t}async lstat(){if((this.#o&Gi)===0)try{return this.#G(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#j(e.code)}}lstatSync(){if((this.#o&Gi)===0)try{return this.#G(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#j(e.code)}}#G(e){let{atime:t,atimeMs:r,birthtime:i,birthtimeMs:s,blksize:a,blocks:c,ctime:l,ctimeMs:u,dev:f,gid:d,ino:h,mode:p,mtime:_,mtimeMs:v,nlink:E,rdev:b,size:A,uid:R}=e;this.#y=t,this.#p=r,this.#T=i,this.#m=s,this.#u=a,this.#a=c,this.#E=l,this.#d=u,this.#n=f,this.#_=d,this.#s=h,this.#r=p,this.#f=_,this.#g=v,this.#t=E,this.#i=b,this.#l=A,this.#c=R;let B=Jw(e);this.#o=this.#o&ed|B|tF,B!==ai&&B!==Ts&&B!==ec&&(this.#o|=rd)}#q=[];#W=!1;#z(e){this.#W=!1;let t=this.#q.slice();this.#q.length=0,t.forEach(r=>r(null,e))}readdirCB(e,t=!1){if(!this.canReaddir()){t?e(null,[]):queueMicrotask(()=>e(null,[]));return}let r=this.children();if(this.calledReaddir()){let s=r.slice(0,r.provisional);t?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#q.push(e),this.#W)return;this.#W=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,a)=>{if(s)this.#M(s.code),r.provisional=0;else{for(let c of a)this.#$(c,r);this.#N(r)}this.#z(r.slice(0,r.provisional))})}#U;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();if(this.#U)await this.#U;else{let r=o(()=>{},"resolve");this.#U=new Promise(i=>r=i);try{for(let i of await this.#e.promises.readdir(t,{withFileTypes:!0}))this.#$(i,e);this.#N(e)}catch(i){this.#M(i.code),e.provisional=0}this.#U=void 0,r()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();try{for(let r of this.#e.readdirSync(t,{withFileTypes:!0}))this.#$(r,e);this.#N(e)}catch(r){this.#M(r.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#o&rF)return!1;let e=si&this.#o;return e===ai||e===Ts||e===ec}shouldWalk(e,t){return(this.#o&Ts)===Ts&&!(this.#o&rF)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#P)return this.#P;if(!((kg|Ng|Gi)&this.#o))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#P=this.resolve(e)}catch{this.#R()}}realpathSync(){if(this.#P)return this.#P;if(!((kg|Ng|Gi)&this.#o))try{let e=this.#e.realpathSync(this.fullpath());return this.#P=this.resolve(e)}catch{this.#R()}}[hF](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let t=new Set([]),r=[],i=this;for(;i&&i.parent;)t.add(i),i.#x=r.join(this.sep),i.#C=r.join("/"),i=i.parent,r.push("..");for(i=e;i&&i.parent&&!t.has(i);)i.#x=void 0,i.#C=void 0,i=i.parent}},jg=class n extends en{static{o(this,"PathWin32")}sep="\\";splitSep=iY;constructor(e,t=ai,r,i,s,a,c){super(e,t,r,i,s,a,c)}newChild(e,t=ai,r={}){return new n(e,t,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(e){return Kl.win32.parse(e).root}getRoot(e){if(e=nY(e.toUpperCase()),e===this.root.name)return this.root;for(let[t,r]of Object.entries(this.roots))if(this.sameRoot(e,t))return this.roots[e]=r;return this.roots[e]=new Xl(e,this).root}sameRoot(e,t=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(oF,"$1\\"),e===t}},$g=class n extends en{static{o(this,"PathPosix")}splitSep="/";sep="/";constructor(e,t=ai,r,i,s,a,c){super(e,t,r,i,s,a,c)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,t=ai,r={}){return new n(e,t,this.root,this.roots,this.nocase,this.childrenCache(),r)}},Bg=class{static{o(this,"PathScurryBase")}root;rootPath;roots;cwd;#e;#n;#r;nocase;#t;constructor(e=process.cwd(),t,r,{nocase:i,childrenCacheSize:s=16*1024,fs:a=td}={}){this.#t=aF(a),(e instanceof URL||e.startsWith("file://"))&&(e=(0,sF.fileURLToPath)(e));let c=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(c),this.#e=new Mg,this.#n=new Mg,this.#r=new Zw(s);let l=c.substring(this.rootPath.length).split(r);if(l.length===1&&!l[0]&&l.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let u=this.root,f=l.length-1,d=t.sep,h=this.rootPath,p=!1;for(let _ of l){let v=f--;u=u.child(_,{relative:new Array(v).fill("..").join(d),relativePosix:new Array(v).fill("..").join("/"),fullpath:h+=(p?"":d)+_}),p=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#r}resolve(...e){let t="";for(let s=e.length-1;s>=0;s--){let a=e[s];if(!(!a||a===".")&&(t=t?`${a}/${t}`:a,this.isAbsolute(a)))break}let r=this.#e.get(t);if(r!==void 0)return r;let i=this.cwd.resolve(t).fullpath();return this.#e.set(t,i),i}resolvePosix(...e){let t="";for(let s=e.length-1;s>=0;s--){let a=e[s];if(!(!a||a===".")&&(t=t?`${a}/${t}`:a,this.isAbsolute(a)))break}let r=this.#n.get(t);if(r!==void 0)return r;let i=this.cwd.resolve(t).fullpathPosix();return this.#n.set(t,i),i}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd);let{withFileTypes:r}=t;if(e.canReaddir()){let i=await e.readdir();return r?i:i.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd);let{withFileTypes:r=!0}=t;return e.canReaddir()?r?e.readdirSync():e.readdirSync().map(i=>i.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e.withFileTypes,e=this.cwd);let r=await e.readlink();return t?r:r?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e.withFileTypes,e=this.cwd);let r=e.readlinkSync();return t?r:r?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e.withFileTypes,e=this.cwd);let r=await e.realpath();return t?r:r?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e.withFileTypes,e=this.cwd);let r=e.realpathSync();return t?r:r?.fullpath()}async walk(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:a}=t,c=[];(!s||s(e))&&c.push(r?e:e.fullpath());let l=new Set,u=o((d,h)=>{l.add(d),d.readdirCB((p,_)=>{if(p)return h(p);let v=_.length;if(!v)return h();let E=o(()=>{--v===0&&h()},"next");for(let b of _)(!s||s(b))&&c.push(r?b:b.fullpath()),i&&b.isSymbolicLink()?b.realpath().then(A=>A?.isUnknown()?A.lstat():A).then(A=>A?.shouldWalk(l,a)?u(A,E):E()):b.shouldWalk(l,a)?u(b,E):E()},!0)},"walk"),f=e;return new Promise((d,h)=>{u(f,p=>{if(p)return h(p);d(c)})})}walkSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:a}=t,c=[];(!s||s(e))&&c.push(r?e:e.fullpath());let l=new Set([e]);for(let u of l){let f=u.readdirSync();for(let d of f){(!s||s(d))&&c.push(r?d:d.fullpath());let h=d;if(d.isSymbolicLink()){if(!(i&&(h=d.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,a)&&l.add(h)}}return c}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:a}=t;(!s||s(e))&&(yield r?e:e.fullpath());let c=new Set([e]);for(let l of c){let u=l.readdirSync();for(let f of u){(!s||s(f))&&(yield r?f:f.fullpath());let d=f;if(f.isSymbolicLink()){if(!(i&&(d=f.realpathSync())))continue;d.isUnknown()&&d.lstatSync()}d.shouldWalk(c,a)&&c.add(d)}}}stream(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:a}=t,c=new Ka({objectMode:!0});(!s||s(e))&&c.write(r?e:e.fullpath());let l=new Set,u=[e],f=0,d=o(()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){f===0&&c.end();return}f++,l.add(p);let _=o((E,b,A=!1)=>{if(E)return c.emit("error",E);if(i&&!A){let R=[];for(let B of b)B.isSymbolicLink()&&R.push(B.realpath().then(W=>W?.isUnknown()?W.lstat():W));if(R.length){Promise.all(R).then(()=>_(null,b,!0));return}}for(let R of b)R&&(!s||s(R))&&(c.write(r?R:R.fullpath())||(h=!0));f--;for(let R of b){let B=R.realpathCached()||R;B.shouldWalk(l,a)&&u.push(B)}h&&!c.flowing?c.once("drain",d):v||d()},"onReaddir"),v=!0;p.readdirCB(_,!0),v=!1}},"process");return d(),c}streamSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof en||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:a}=t,c=new Ka({objectMode:!0}),l=new Set;(!s||s(e))&&c.write(r?e:e.fullpath());let u=[e],f=0,d=o(()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){f===0&&c.end();return}f++,l.add(p);let _=p.readdirSync();for(let v of _)(!s||s(v))&&(c.write(r?v:v.fullpath())||(h=!0));f--;for(let v of _){let E=v;if(v.isSymbolicLink()){if(!(i&&(E=v.realpathSync())))continue;E.isUnknown()&&E.lstatSync()}E.shouldWalk(l,a)&&u.push(E)}}h&&!c.flowing&&c.once("drain",d)},"process");return d(),c}chdir(e=this.cwd){let t=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[hF](t)}},Xl=class extends Bg{static{o(this,"PathScurryWin32")}sep="\\";constructor(e=process.cwd(),t={}){let{nocase:r=!0}=t;super(e,Kl.win32,"\\",{...t,nocase:r}),this.nocase=r;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(e){return Kl.win32.parse(e).root.toUpperCase()}newRoot(e){return new jg(this.rootPath,Ts,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}},Jl=class extends Bg{static{o(this,"PathScurryPosix")}sep="/";constructor(e=process.cwd(),t={}){let{nocase:r=!1}=t;super(e,Kl.posix,"/",{...t,nocase:r}),this.nocase=r}parseRootPath(e){return"/"}newRoot(e){return new $g(this.rootPath,Ts,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}},id=class extends Jl{static{o(this,"PathScurryDarwin")}constructor(e=process.cwd(),t={}){let{nocase:r=!0}=t;super(e,{...t,nocase:r})}},Bhe=process.platform==="win32"?jg:$g,pF=process.platform==="win32"?Xl:process.platform==="darwin"?id:Jl;var aY=o(n=>n.length>=1,"isPatternList"),oY=o(n=>n.length>=1,"isGlobList"),Zl=class n{static{o(this,"Pattern")}#e;#n;#r;length;#t;#c;#_;#i;#u;#s;#l=!0;constructor(e,t,r,i){if(!aY(e))throw new TypeError("empty pattern list");if(!oY(t))throw new TypeError("empty glob list");if(t.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#n=t,this.#r=r,this.#t=i,this.#r===0){if(this.isUNC()){let[s,a,c,l,...u]=this.#e,[f,d,h,p,..._]=this.#n;u[0]===""&&(u.shift(),_.shift());let v=[s,a,c,l,""].join("/"),E=[f,d,h,p,""].join("/");this.#e=[v,...u],this.#n=[E,..._],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...a]=this.#e,[c,...l]=this.#n;a[0]===""&&(a.shift(),l.shift());let u=s+"/",f=c+"/";this.#e=[u,...a],this.#n=[f,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#r]}isString(){return typeof this.#e[this.#r]=="string"}isGlobstar(){return this.#e[this.#r]===Yt}isRegExp(){return this.#e[this.#r]instanceof RegExp}globString(){return this.#_=this.#_||(this.#r===0?this.isAbsolute()?this.#n[0]+this.#n.slice(1).join("/"):this.#n.join("/"):this.#n.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){return this.#c!==void 0?this.#c:this.hasMore()?(this.#c=new n(this.#e,this.#n,this.#r+1,this.#t),this.#c.#s=this.#s,this.#c.#u=this.#u,this.#c.#i=this.#i,this.#c):this.#c=null}isUNC(){let e=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#t==="win32"&&this.#r===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#i!==void 0?this.#i:this.#i=this.#t==="win32"&&this.#r===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#s!==void 0?this.#s:this.#s=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#r===0?e:""}checkFollowGlobstar(){return!(this.#r===0||!this.isGlobstar()||!this.#l)}markFollowGlobstar(){return this.#r===0||!this.isGlobstar()||!this.#l?!1:(this.#l=!1,!0)}};var cY=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",eu=class{static{o(this,"Ignore")}relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:r,noext:i,noglobstar:s,platform:a=cY}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=a,this.mmopts={dot:!0,nobrace:t,nocase:r,noext:i,noglobstar:s,optimizationLevel:2,platform:a,nocomment:!0,nonegate:!0};for(let c of e)this.add(c)}add(e){let t=new Vn(e,this.mmopts);for(let r=0;r<t.set.length;r++){let i=t.set[r],s=t.globParts[r];if(!i||!s)throw new Error("invalid pattern object");for(;i[0]==="."&&s[0]===".";)i.shift(),s.shift();let a=new Zl(i,s,0,this.platform),c=new Vn(a.globString(),this.mmopts),l=s[s.length-1]==="**",u=a.isAbsolute();u?this.absolute.push(c):this.relative.push(c),l&&(u?this.absoluteChildren.push(c):this.relativeChildren.push(c))}}ignored(e){let t=e.fullpath(),r=`${t}/`,i=e.relative()||".",s=`${i}/`;for(let a of this.relative)if(a.match(i)||a.match(s))return!0;for(let a of this.absolute)if(a.match(t)||a.match(r))return!0;return!1}childrenIgnored(e){let t=e.fullpath()+"/",r=(e.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(r))return!0;for(let i of this.absoluteChildren)if(i.match(t))return!0;return!1}};var eE=class n{static{o(this,"HasWalkedCache")}store;constructor(e=new Map){this.store=e}copy(){return new n(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){let r=e.fullpath(),i=this.store.get(r);i?i.add(t.globString()):this.store.set(r,new Set([t.globString()]))}},tE=class{static{o(this,"MatchRecord")}store=new Map;add(e,t,r){let i=(t?2:0)|(r?1:0),s=this.store.get(e);this.store.set(e,s===void 0?i:i&s)}entries(){return[...this.store.entries()].map(([e,t])=>[e,!!(t&2),!!(t&1)])}},rE=class{static{o(this,"SubWalks")}store=new Map;add(e,t){if(!e.canReaddir())return;let r=this.store.get(e);r?r.find(i=>i.globString()===t.globString())||r.push(t):this.store.set(e,[t])}get(e){let t=this.store.get(e);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}},sd=class n{static{o(this,"Processor")}hasWalkedCache;matches=new tE;subwalks=new rE;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new eE}processPatterns(e,t){this.patterns=t;let r=t.map(i=>[e,i]);for(let[i,s]of r){this.hasWalkedCache.storeWalked(i,s);let a=s.root(),c=s.isAbsolute()&&this.opts.absolute!==!1;if(a){i=i.resolve(a==="/"&&this.opts.root!==void 0?this.opts.root:a);let d=s.rest();if(d)s=d;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let l,u,f=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)i=i.resolve(l),s=u,f=!0;if(l=s.pattern(),u=s.rest(),f){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof l=="string"){let d=l===".."||l===""||l===".";this.matches.add(i.resolve(l),c,d);continue}else if(l===Yt){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let d=u?.pattern(),h=u?.rest();if(!u||(d===""||d===".")&&!h)this.matches.add(i,c,d===""||d===".");else if(d===".."){let p=i.parent||i;h?this.hasWalkedCache.hasWalked(p,h)||this.subwalks.add(p,h):this.matches.add(p,c,!0)}}else l instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new n(this.opts,this.hasWalkedCache)}filterEntries(e,t){let r=this.subwalks.get(e),i=this.child();for(let s of t)for(let a of r){let c=a.isAbsolute(),l=a.pattern(),u=a.rest();l===Yt?i.testGlobstar(s,a,u,c):l instanceof RegExp?i.testRegExp(s,l,u,c):i.testString(s,l,u,c)}return i}testGlobstar(e,t,r,i){if((this.dot||!e.name.startsWith("."))&&(t.hasMore()||this.matches.add(e,i,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(r&&t.checkFollowGlobstar()?this.subwalks.add(e,r):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),r){let s=r.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,r.rest(),i);else if(s===".."){let a=e.parent||e;this.subwalks.add(a,r)}else s instanceof RegExp&&this.testRegExp(e,s,r.rest(),i)}}testRegExp(e,t,r,i){t.test(e.name)&&(r?this.subwalks.add(e,r):this.matches.add(e,i,!1))}testString(e,t,r,i){e.isNamed(t)&&(r?this.subwalks.add(e,r):this.matches.add(e,i,!1))}};var lY=o((n,e)=>typeof n=="string"?new eu([n],e):Array.isArray(n)?new eu(n,e):n,"makeIgnore"),Vg=class{static{o(this,"GlobUtil")}path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#n;#r;signal;maxDepth;includeChildMatches;constructor(e,t,r){if(this.patterns=e,this.path=t,this.opts=r,this.#r=!r.posix&&r.platform==="win32"?"\\":"/",this.includeChildMatches=r.includeChildMatches!==!1,(r.ignore||!this.includeChildMatches)&&(this.#n=lY(r.ignore??[],r),!this.includeChildMatches&&typeof this.#n.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#n?.ignored?.(e)}#c(e){return!!this.#n?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||await e.realpath(),!r)return;e=r}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let a=await s.realpath();a&&(a.isUnknown()||this.opts.stat)&&await a.lstat()}return this.matchCheckTest(s,t)}matchCheckTest(e,t){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||e.realpathSync(),!r)return;e=r}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let a=s.realpathSync();a&&(a?.isUnknown()||this.opts.stat)&&a.lstatSync()}return this.matchCheckTest(s,t)}matchFinish(e,t){if(this.#t(e))return;if(!this.includeChildMatches&&this.#n?.add){let s=`${e.relativePosix()}/**`;this.#n.add(s)}let r=this.opts.absolute===void 0?t:this.opts.absolute;this.seen.add(e);let i=this.opts.mark&&e.isDirectory()?this.#r:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(r){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+i)}else{let s=this.opts.posix?e.relativePosix():e.relative(),a=this.opts.dotRelative&&!s.startsWith(".."+this.#r)?"."+this.#r:"";this.matchEmit(s?a+s+i:"."+i)}}async match(e,t,r){let i=await this.matchCheck(e,r);i&&this.matchFinish(i,t)}matchSync(e,t,r){let i=this.matchCheckSync(e,r);i&&this.matchFinish(i,t)}walkCB(e,t,r){this.signal?.aborted&&r(),this.walkCB2(e,t,new sd(this.opts),r)}walkCB2(e,t,r,i){if(this.#c(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(e,t,r,i));return}r.processPatterns(e,t);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of r.matches.entries())this.#t(c)||(s++,this.match(c,l,u).then(()=>a()));for(let c of r.subwalkTargets()){if(this.maxDepth!==1/0&&c.depth()>=this.maxDepth)continue;s++;let l=c.readdirCached();c.calledReaddir()?this.walkCB3(c,l,r,a):c.readdirCB((u,f)=>this.walkCB3(c,f,r,a),!0)}a()}walkCB3(e,t,r,i){r=r.filterEntries(e,t);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of r.matches.entries())this.#t(c)||(s++,this.match(c,l,u).then(()=>a()));for(let[c,l]of r.subwalks.entries())s++,this.walkCB2(c,l,r.child(),a);a()}walkCBSync(e,t,r){this.signal?.aborted&&r(),this.walkCB2Sync(e,t,new sd(this.opts),r)}walkCB2Sync(e,t,r,i){if(this.#c(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(e,t,r,i));return}r.processPatterns(e,t);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of r.matches.entries())this.#t(c)||this.matchSync(c,l,u);for(let c of r.subwalkTargets()){if(this.maxDepth!==1/0&&c.depth()>=this.maxDepth)continue;s++;let l=c.readdirSync();this.walkCB3Sync(c,l,r,a)}a()}walkCB3Sync(e,t,r,i){r=r.filterEntries(e,t);let s=1,a=o(()=>{--s===0&&i()},"next");for(let[c,l,u]of r.matches.entries())this.#t(c)||this.matchSync(c,l,u);for(let[c,l]of r.subwalks.entries())s++,this.walkCB2Sync(c,l,r.child(),a);a()}},ad=class extends Vg{static{o(this,"GlobWalker")}matches=new Set;constructor(e,t,r){super(e,t,r)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,t)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},od=class extends Vg{static{o(this,"GlobStream")}results;constructor(e,t,r){super(e,t,r),this.results=new Ka({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var uY=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",zi=class{static{o(this,"Glob")}absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=(0,mF.fileURLToPath)(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=t.includeChildMatches!==!1,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(t.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=t.platform||uY,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,t.nocase!==void 0&&t.nocase!==t.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=t.platform==="win32"?Xl:t.platform==="darwin"?id:t.platform?Jl:pF;this.scurry=new l(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;let r=this.platform==="darwin"||this.platform==="win32",i={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new Vn(l,i)),[a,c]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=a.map((l,u)=>{let f=c[u];if(!f)throw new Error("invalid pattern object");return new Zl(l,f,0,this.platform)})}async walk(){return[...await new ad(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new ad(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new od(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new od(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var nE=o((n,e={})=>{Array.isArray(n)||(n=[n]);for(let t of n)if(new Vn(t,e).hasMagic())return!0;return!1},"hasMagic");function qg(n,e={}){return new zi(n,e).streamSync()}o(qg,"globStreamSync");function yF(n,e={}){return new zi(n,e).stream()}o(yF,"globStream");function _F(n,e={}){return new zi(n,e).walkSync()}o(_F,"globSync");async function gF(n,e={}){return new zi(n,e).walk()}o(gF,"glob_");function Wg(n,e={}){return new zi(n,e).iterateSync()}o(Wg,"globIterateSync");function SF(n,e={}){return new zi(n,e).iterate()}o(SF,"globIterate");var fY=qg,dY=Object.assign(yF,{sync:qg}),hY=Wg,pY=Object.assign(SF,{sync:Wg}),mY=Object.assign(_F,{stream:qg,iterate:Wg}),Ug=Object.assign(gF,{glob:gF,globSync:_F,sync:mY,globStream:yF,stream:dY,globStreamSync:qg,streamSync:fY,globIterate:SF,iterate:pY,globIterateSync:Wg,iterateSync:hY,Glob:zi,hasMagic:nE,escape:Gl,unescape:qi});Ug.glob=Ug;var tc=Y(Mt());var Rt=class{constructor(e){this.rootPath=e}static{o(this,"NodeFsAdapter")}async readFile(e){let t=this.resolvePath(e);if(!await pr.default.pathExists(t))throw new tc.FileNotFoundError(e);return pr.default.readFile(t,"utf-8")}async fileExists(e){let t=this.resolvePath(e);return pr.default.pathExists(t)}async getFileMetadata(e){let t=await this.readFile(e);return this.extractFrontmatter(t)}async createFile(e,t){let r=this.resolvePath(e);if(await pr.default.pathExists(r))throw new tc.FileAlreadyExistsError(e);return await pr.default.ensureDir(Ja.default.dirname(r)),await pr.default.writeFile(r,t,"utf-8"),e}async updateFile(e,t){let r=this.resolvePath(e);if(!await pr.default.pathExists(r))throw new tc.FileNotFoundError(e);await pr.default.writeFile(r,t,"utf-8")}async writeFile(e,t){let r=this.resolvePath(e);await pr.default.ensureDir(Ja.default.dirname(r)),await pr.default.writeFile(r,t,"utf-8")}async deleteFile(e){let t=this.resolvePath(e);if(!await pr.default.pathExists(t))throw new tc.FileNotFoundError(e);await pr.default.remove(t)}async renameFile(e,t){let r=this.resolvePath(e),i=this.resolvePath(t);if(!await pr.default.pathExists(r))throw new tc.FileNotFoundError(e);await pr.default.ensureDir(Ja.default.dirname(i)),await pr.default.move(r,i)}async createDirectory(e){let t=this.resolvePath(e);await pr.default.ensureDir(t)}async directoryExists(e){let t=this.resolvePath(e);return await pr.default.pathExists(t)?(await pr.default.stat(t)).isDirectory():!1}async getMarkdownFiles(e){let t=e?this.resolvePath(e):this.rootPath,r=Ja.default.join(t,"**/*.md");return(await Ug(r,{nodir:!0})).map(a=>Ja.default.relative(this.rootPath,a))}async findFilesByMetadata(e){let t=await this.getMarkdownFiles(),r=[];for(let i of t)try{let s=await this.getFileMetadata(i);this.matchesQuery(s,e)&&r.push(i)}catch{continue}return r}async findFileByUID(e){let t=await this.findFilesByMetadata({exo__Asset_uid:e});return t.length>0?t[0]:null}resolvePath(e){return Ja.default.isAbsolute(e)?e:Ja.default.join(this.rootPath,e)}extractFrontmatter(e){let t=/^---\n([\s\S]*?)\n---/,r=e.match(t);if(!r)return{};try{let i=jr.load(r[1]);return typeof i=="object"&&i!==null?i:{}}catch{return{}}}matchesQuery(e,t){for(let[r,i]of Object.entries(t)){let s=e[r];if(Array.isArray(s)){if(!s.some(a=>this.normalizeValue(a)===this.normalizeValue(i)))return!1}else if(this.normalizeValue(s)!==this.normalizeValue(i))return!1}return!0}normalizeValue(e){return e==null?"":String(e).replace(/["'[\]]/g,"").trim()}};var cd=Y(require("path")),iE=Y(Ga());var tu=class{constructor(e){this.vaultRoot=e}static{o(this,"PathResolver")}resolve(e){if(!cd.default.isAbsolute(e))return cd.default.resolve(this.vaultRoot,e);let t=cd.default.resolve(e),r=cd.default.resolve(this.vaultRoot);if(!t.startsWith(r))throw new Qe(`File path ${e} is outside vault root ${this.vaultRoot}`,"Provide a file path within the vault directory.",{filepath:e,vaultRoot:this.vaultRoot});return t}validate(e){if(!iE.default.existsSync(e))throw new Of(e);if(!iE.default.statSync(e).isFile())throw new Qe(`Not a file: ${e}`,"Provide a path to a file, not a directory.",{filepath:e});if(!e.endsWith(".md"))throw new Qe(`Not a Markdown file: ${e}`,"Provide a path to a .md file.",{filepath:e})}getVaultRoot(){return this.vaultRoot}};var AF=Y(Mt());var vF=Y(Mt());var Hi=class{static{o(this,"BaseCommandExecutor")}constructor(e){this.pathResolver=e.pathResolver,this.fsAdapter=e.fsAdapter,this.frontmatterService=e.frontmatterService,this.dryRun=e.dryRun}resolveAndValidate(e){let t=this.pathResolver.resolve(e);this.pathResolver.validate(t);let r=t.replace(this.pathResolver.getVaultRoot()+"/","");return{resolvedPath:t,relativePath:r}}getCurrentTimestamp(){return vF.DateFormatter.toLocalTimestamp(new Date)}isAssetArchived(e){if(e?.exo__Asset_isArchived===!0)return!0;let t=e?.archived;if(t==null)return!1;if(typeof t=="boolean")return t;if(typeof t=="number")return t!==0;if(typeof t=="string"){let r=t.toLowerCase().trim();return r==="true"||r==="yes"||r==="1"}return!1}extractAliasesFromFrontmatter(e){let t=e.match(/aliases:\s*\n((?: - .*\n?)*)/);return t?t[1].split(`
|
|
616
616
|
`).filter(i=>i.trim()).map(i=>i.replace(/^\s*-\s*/,"").trim()):[]}};var ld=class extends Hi{static{o(this,"StatusCommandExecutor")}constructor(e){super(e)}async executeStart(e){try{let{relativePath:t}=this.resolveAndValidate(e),r=await this.fsAdapter.readFile(t),i=this.getCurrentTimestamp(),s=this.frontmatterService.updateProperty(r,"ems__Effort_status",'"[[ems__EffortStatusDoing]]"');s=this.frontmatterService.updateProperty(s,"ems__Effort_startTimestamp",i),await this.fsAdapter.updateFile(t,s),console.log(`\u2705 Started: ${e}`),console.log(" Status: Doing"),console.log(` Start time: ${i}`),process.exit(0)}catch(t){D.handle(t)}}async executeComplete(e){try{let{relativePath:t}=this.resolveAndValidate(e),r=await this.fsAdapter.readFile(t),i=this.getCurrentTimestamp(),s=this.frontmatterService.updateProperty(r,"ems__Effort_status",'"[[ems__EffortStatusDone]]"');s=this.frontmatterService.updateProperty(s,"ems__Effort_endTimestamp",i),s=this.frontmatterService.updateProperty(s,"ems__Effort_resolutionTimestamp",i),await this.fsAdapter.updateFile(t,s),console.log(`\u2705 Completed: ${e}`),console.log(" Status: Done"),console.log(` Completion time: ${i}`),process.exit(0)}catch(t){D.handle(t)}}async executeTrash(e){try{let{relativePath:t}=this.resolveAndValidate(e),r=await this.fsAdapter.readFile(t),i=this.getCurrentTimestamp(),s=this.frontmatterService.updateProperty(r,"ems__Effort_status",'"[[ems__EffortStatusTrashed]]"');s=this.frontmatterService.updateProperty(s,"ems__Effort_resolutionTimestamp",i),await this.fsAdapter.updateFile(t,s),console.log(`\u2705 Trashed: ${e}`),console.log(" Status: Trashed"),console.log(` Resolution time: ${i}`),process.exit(0)}catch(t){D.handle(t)}}async executeArchive(e){try{let{relativePath:t}=this.resolveAndValidate(e),r=await this.fsAdapter.readFile(t),i=this.frontmatterService.updateProperty(r,"archived","true");i=this.frontmatterService.removeProperty(i,"aliases"),await this.fsAdapter.updateFile(t,i),console.log(`\u2705 Archived: ${e}`),console.log(" Archived: true"),console.log(" Aliases removed"),process.exit(0)}catch(t){D.handle(t)}}async executeMoveToBacklog(e){try{await this.updateStatus(e,"ems__EffortStatusBacklog","Backlog"),process.exit(0)}catch(t){D.handle(t)}}async executeMoveToAnalysis(e){try{await this.updateStatus(e,"ems__EffortStatusAnalysis","Analysis"),process.exit(0)}catch(t){D.handle(t)}}async executeMoveToToDo(e){try{await this.updateStatus(e,"ems__EffortStatusToDo","ToDo"),process.exit(0)}catch(t){D.handle(t)}}async updateStatus(e,t,r){let{relativePath:i}=this.resolveAndValidate(e),s=await this.fsAdapter.readFile(i),a=this.frontmatterService.updateProperty(s,"ems__Effort_status",`"[[${t}]]"`);await this.fsAdapter.updateFile(i,a),console.log(`\u2705 Moved to ${r}: ${e}`),console.log(` Status: ${r}`)}};var Br=[];for(let n=0;n<256;++n)Br.push((n+256).toString(16).slice(1));function bF(n,e=0){return(Br[n[e+0]]+Br[n[e+1]]+Br[n[e+2]]+Br[n[e+3]]+"-"+Br[n[e+4]]+Br[n[e+5]]+"-"+Br[n[e+6]]+Br[n[e+7]]+"-"+Br[n[e+8]]+Br[n[e+9]]+"-"+Br[n[e+10]]+Br[n[e+11]]+Br[n[e+12]]+Br[n[e+13]]+Br[n[e+14]]+Br[n[e+15]]).toLowerCase()}o(bF,"unsafeStringify");var wF=require("node:crypto");var zg=new Uint8Array(256),Gg=zg.length;function sE(){return Gg>zg.length-16&&((0,wF.randomFillSync)(zg),Gg=0),zg.slice(Gg,Gg+=16)}o(sE,"rng");var EF=require("node:crypto"),aE={randomUUID:EF.randomUUID};function yY(n,e,t){n=n||{};let r=n.random??n.rng?.()??sE();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){if(t=t||0,t<0||t+16>e.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let i=0;i<16;++i)e[t+i]=r[i];return e}return bF(r)}o(yY,"_v4");function _Y(n,e,t){return aE.randomUUID&&!e&&!n?aE.randomUUID():yY(n,e,t)}o(_Y,"v4");var ud=_Y;var ru=Y(Mt());var fd=class extends Hi{static{o(this,"AssetCreationExecutor")}constructor(e){super(e)}async executeCreateTask(e,t,r={}){try{await this.createAsset(e,t,"ems__Task",r),process.exit(0)}catch(i){D.handle(i)}}async executeCreateMeeting(e,t,r={}){try{await this.createAsset(e,t,"ems__Meeting",r),process.exit(0)}catch(i){D.handle(i)}}async executeCreateProject(e,t,r={}){try{await this.createAsset(e,t,"ems__Project",r),process.exit(0)}catch(i){D.handle(i)}}async executeCreateArea(e,t,r={}){try{await this.createAsset(e,t,"ems__Area",r),process.exit(0)}catch(i){D.handle(i)}}async createAsset(e,t,r,i={}){if(!t||t.trim().length===0)throw new Error("Label cannot be empty");let s=t.trim(),{relativePath:a}=this.resolveAndValidate(e);if(await this.fsAdapter.fileExists(a))throw new ru.FileAlreadyExistsError(e);let l=ud(),u=this.buildAssetFrontmatter(r,l,s,i),f=ru.MetadataHelpers.buildFileContent(u);await this.fsAdapter.createFile(a,f),console.log(`\u2705 Created ${this.getAssetTypeName(r)}: ${e}`),console.log(` UID: ${l}`),console.log(` Label: ${s}`),console.log(` Class: ${r}`)}buildAssetFrontmatter(e,t,r,i={}){let s=ru.DateFormatter.toLocalTimestamp(new Date),a={exo__Asset_isDefinedBy:'"[[Ontology/EMS]]"',exo__Asset_uid:t,exo__Asset_label:r,exo__Asset_createdAt:s,exo__Instance_class:[`"[[${e}]]"`],aliases:[r]};return(e==="ems__Task"||e==="ems__Project"||e==="ems__Meeting")&&(a.ems__Effort_status='"[[ems__EffortStatusDraft]]"'),i.prototype&&(a.exo__Asset_prototype=`"[[${i.prototype}]]"`),i.area&&(a.ems__Effort_area=`"[[${i.area}]]"`),i.parent&&(a.ems__Effort_parent=`"[[${i.parent}]]"`),a}getAssetTypeName(e){return{ems__Task:"task",ems__Meeting:"meeting",ems__Project:"project",ems__Area:"area"}[e]||"asset"}};var oE=Y(require("path"));var TF=Y(Mt());var dd=class extends Hi{static{o(this,"PropertyCommandExecutor")}constructor(e){super(e)}async executeRenameToUid(e){try{let{relativePath:t}=this.resolveAndValidate(e),r=await this.fsAdapter.getFileMetadata(t);if(!r.exo__Asset_uid)throw new Error("Asset missing exo__Asset_uid property");let i=oE.default.basename(t,".md"),s=r.exo__Asset_uid;if(i===s&&(console.log(`\u2705 Already renamed: ${e}`),console.log(` Current filename matches UID: ${s}.md`),process.exit(0)),!r.exo__Asset_label||r.exo__Asset_label.trim()===""){let l=await this.fsAdapter.readFile(t),u=this.frontmatterService.updateProperty(l,"exo__Asset_label",i),f=this.isAssetArchived(r),d=u;f||(d=this.frontmatterService.updateProperty(u,"aliases",`
|
|
617
617
|
- ${i}`)),await this.fsAdapter.updateFile(t,d),console.log(` Updated label: "${i}"`)}let a=oE.default.dirname(t),c=a!=="."?`${a}/${s}.md`:`${s}.md`;await this.fsAdapter.renameFile(t,c),console.log("\u2705 Renamed to UID format"),console.log(` Old: ${t}`),console.log(` New: ${c}`),process.exit(0)}catch(t){D.handle(t)}}async executeUpdateLabel(e,t){try{if(!t||t.trim().length===0)throw new Error("Label cannot be empty");let r=t.trim(),{relativePath:i}=this.resolveAndValidate(e),s=await this.fsAdapter.readFile(i),a=this.frontmatterService.updateProperty(s,"exo__Asset_label",r),c=this.frontmatterService.parse(a),l=this.extractAliasesFromFrontmatter(c.content);if(l.includes(r)||(l.length===0?a=this.frontmatterService.updateProperty(a,"aliases",`
|
|
618
618
|
- ${r}`):a=this.frontmatterService.updateProperty(a,"aliases",`${l.map(u=>`
|
|
@@ -634,7 +634,7 @@ Available prefixes: ${u}`,this.wellKnownPrefixes[r]&&c.push(`Add: PREFIX ${r}: <
|
|
|
634
634
|
`),we.length>0?xY(we,e.format):console.log("No results found."),F.length>0){console.log(`
|
|
635
635
|
\u{1F4A1} Suggestions:`);for(let j of F)console.log(` \u2022 ${j}`)}if(a.confidence<.6&&a.alternatives.length>0){console.log(`
|
|
636
636
|
\u{1F504} Alternative queries that might work better:`);for(let j=0;j<Math.min(2,a.alternatives.length);j++)console.log(` ${j+1}. ${a.alternatives[j].split(`
|
|
637
|
-
`).slice(-3)[0]?.trim()||"..."}`)}}}catch(r){D.handle(r)}})}o($F,"askCommand");function xY(n,e){let t=n;switch(e){case"json":let r=new kl;console.log(r.format(t));break;case"table":default:let i=new Ll;console.log(i.format(t));break}}o(xY,"formatResults");var su=require("path"),au=require("fs"),sc=Y(le()),eo=Y(Mt());var
|
|
637
|
+
`).slice(-3)[0]?.trim()||"..."}`)}}}catch(r){D.handle(r)}})}o($F,"askCommand");function xY(n,e){let t=n;switch(e){case"json":let r=new kl;console.log(r.format(t));break;case"table":default:let i=new Ll;console.log(i.format(t));break}}o(xY,"formatResults");var su=require("path"),au=require("fs"),sc=Y(le()),eo=Y(Mt());var qge=Y(Vd()),iu=Y(le()),pd=Y(Mt());var Xg=class{constructor(e="exocortex-cli"){this.appName=e}static{o(this,"NodeLogger")}debug(e,t){console.debug(`[${this.appName}]`,e,t||"")}info(e,t){console.info(`[${this.appName}]`,e,t||"")}warn(e,t){console.warn(`[${this.appName}]`,e,t||"")}error(e,t,r){console.error(`[${this.appName}]`,e,t||"",r||""),t?.stack&&console.error(t.stack)}};var Jg=class{constructor(){this.handlers=new Map}static{o(this,"NodeEventBus")}publish(e,t){let r=this.handlers.get(e);r&&r.forEach(i=>{try{i(t)}catch(s){console.error(`[EventBus] Error in handler for event "${e}":`,s)}})}subscribe(e,t){return this.handlers.has(e)||this.handlers.set(e,new Set),this.handlers.get(e).add(t),()=>this.unsubscribe(e,t)}unsubscribe(e,t){let r=this.handlers.get(e);r&&(r.delete(t),r.size===0&&this.handlers.delete(e))}};var ey=Y(require("fs/promises")),BF=Y(require("path")),VF=Y(require("os"));var Zg=class{constructor(e=".exocortexrc"){this.config={};this.configPath=BF.join(VF.homedir(),e)}static{o(this,"NodeConfiguration")}async load(){try{let e=await ey.readFile(this.configPath,"utf-8");this.config=JSON.parse(e)}catch{this.config={}}}get(e){let t=e.split("."),r=this.config;for(let i of t)if(r&&typeof r=="object"&&i in r)r=r[i];else return;return r}async set(e,t){let r=e.split("."),i=r.pop(),s=this.config;for(let a of r)(!s[a]||typeof s[a]!="object")&&(s[a]={}),s=s[a];s[i]=t,await this.save()}getAll(){return{...this.config}}async save(){await ey.writeFile(this.configPath,JSON.stringify(this.config,null,2),"utf-8")}};var UF=Y(require("readline"));var ty=class{static{o(this,"NodeNotificationService")}info(e,t){console.log(`\u2139 ${e}`)}success(e,t){console.log(`\u2713 ${e}`)}error(e,t){console.error(`\u2717 ${e}`)}warn(e,t){console.warn(`\u26A0 ${e}`)}async confirm(e,t){let r=UF.createInterface({input:process.stdin,output:process.stdout});return new Promise(i=>{r.question(`${e}
|
|
638
638
|
${t}
|
|
639
639
|
Continue? (y/n): `,s=>{r.close(),i(s.toLowerCase()==="y"||s.toLowerCase()==="yes")})})}};var ry=class{static{o(this,"CLIContainer")}static setup(){iu.container.register(pd.DI_TOKENS.ILogger,{useFactory:o(()=>new Xg("exocortex-cli"),"useFactory")}),iu.container.register(pd.DI_TOKENS.IEventBus,{useClass:Jg}),iu.container.register(pd.DI_TOKENS.IConfiguration,{useClass:Zg}),iu.container.register(pd.DI_TOKENS.INotificationService,{useClass:ty})}static reset(){iu.container.clearInstances()}};function md(n){ry.setup(),sc.container.register(eo.DI_TOKENS.IVaultAdapter,{useFactory:o(()=>new $t(n),"useFactory")})}o(md,"setupContainer");function CY(n){if(n.length===0)return"No practices found.";let e=[];for(let t of n){let r="\u2B1C";t.doneToday?r="\u2705":t.inProgressToday&&(r="\u{1F504}");let i=t.estimatedDuration?` (${t.estimatedDuration}m)`:"";e.push(`${r} ${t.label}${i}`)}return e.join(`
|
|
640
640
|
`)}o(CY,"formatPractices");function IY(n){let e=[`\u{1F4C5} Daily Review: ${n.date}`,"","\u{1F4CA} Tasks:",` Planned: ${n.plannedCount}`,` Completed: ${n.completedCount}`,` In Progress: ${n.inProgressCount}`,` Progress: ${n.completionPercentage}%`,"",`\u23F1\uFE0F Total time: ${Math.round(n.totalTimeMinutes)} minutes`];if(n.practicesDue.length>0){e.push(""),e.push(`\u{1F4CB} Practices due (${n.practicesDue.length}):`);for(let t of n.practicesDue){let r=t.estimatedDuration?` (${t.estimatedDuration}m)`:"";e.push(` \u2B1C ${t.label}${r}`)}}return e.join(`
|
|
@@ -738,7 +738,7 @@ ${jr.dump(i,{lineWidth:-1})}---
|
|
|
738
738
|
States (${s.states.length}):`);for(let a of s.states){let c=a.optional?" (optional)":"",l=a.timestampOnEnter.length>0?` [timestamps: ${a.timestampOnEnter.join(", ")}]`:"";console.log(` ${a.order}. ${a.status}${c}${l}`)}console.log(`
|
|
739
739
|
Transitions (${s.transitions.length}):`);for(let a of s.transitions){let c=a.isRollback?" (rollback)":"";console.log(` ${a.label}: ${a.from} \u2192 ${a.to}${c}`)}}}catch(i){D.handle(i)}}),n.command("validate").description("Validate a workflow definition").argument("<uid>","UID of the workflow asset").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--output <type>","Response format: text|json","text").action(async(e,t)=>{let r=t.output||"text";D.setFormat(r);try{let i=(0,lu.resolve)(t.vault);if(!(0,ha.existsSync)(i))throw new Ee(i);let s=mD(i,e);if(!s){if(r==="json"){let l=J.success({error:`Workflow with UID "${e}" not found`});console.log(JSON.stringify(l,null,2))}else console.log(`\u274C Workflow with UID "${e}" not found.`);process.exitCode=1;return}let c=new Ki.WorkflowEngine(s).validate();if(r==="json"){let l=J.success({workflow:s.name,uid:s.id,...c});console.log(JSON.stringify(l,null,2))}else if(c.valid)console.log(`\u2705 Workflow "${s.name}" is valid.`);else{console.log(`\u274C Workflow "${s.name}" has ${c.errors.length} error(s):
|
|
740
740
|
`);for(let l of c.errors)console.log(` \u2022 ${l}`);process.exitCode=1}}catch(i){D.handle(i)}}),n}o(gD,"workflowCommand");var yD=new Ki.FrontmatterService;function _D(n){let e=[],t=[];SD(n,t);for(let{filePath:r,fm:i}of t){let s=i.exo__Instance_class;if(!s||!(Array.isArray(s)?s.some(p=>p.includes("ems__Workflow")&&!p.includes("WorkflowState")&&!p.includes("WorkflowTransition")):typeof s=="string"&&s.includes("ems__Workflow")&&!s.includes("WorkflowState")&&!s.includes("WorkflowTransition")))continue;let c=i.exo__Asset_uid??"",l=i.exo__Asset_label??XY(r),u=da(i.ems__Workflow_targetClass??"ems__Task"),f=i.ems__Workflow_isDefault===!0||i.ems__Workflow_isDefault==="true",d=0,h=0;for(let{fm:p}of t){let _=p.exo__Instance_class;if(!da(p.ems__WorkflowState_workflow??p.ems__WorkflowTransition_workflow??"").includes(c))continue;let b=Array.isArray(_)?_.some(R=>R.includes("ems__WorkflowState")):typeof _=="string"&&_.includes("ems__WorkflowState"),A=Array.isArray(_)?_.some(R=>R.includes("ems__WorkflowTransition")):typeof _=="string"&&_.includes("ems__WorkflowTransition");b&&d++,A&&h++}e.push({filePath:r,uid:c,label:l,targetClass:u,isDefault:f,stateCount:d,transitionCount:h})}return e}o(_D,"scanWorkflows");function SD(n,e){let t;try{t=(0,ha.readdirSync)(n,{withFileTypes:!0})}catch{return}for(let r of t){let i=(0,lu.join)(n,r.name);if(r.isDirectory()){if(r.name.startsWith(".")||r.name==="node_modules")continue;SD(i,e)}else if(r.name.endsWith(".md"))try{let s=(0,ha.readFileSync)(i,"utf-8"),a=yD.parse(s);a.exists&&e.push({filePath:i,fm:vD(a.content)})}catch{}}}o(SD,"collectParsedFiles");function mD(n,e){let r=_D(n).find(i=>i.uid===e);if(!r)return null;try{let i=(0,ha.readFileSync)(r.filePath,"utf-8"),s=yD.parse(i);if(!s.exists)return null;let a=vD(s.content),c=da(a.ems__Workflow_targetClass??"ems__Task"),l=da(a.ems__Workflow_initialState??"ems__EffortStatusDraft"),u=cu(l)??Ki.EffortStatus.DRAFT,d=(Array.isArray(a.ems__Workflow_terminalStates)?a.ems__Workflow_terminalStates.map(b=>da(b)):[]).map(cu).filter(b=>b!==null),h=a.ems__Workflow_isDefault===!0||a.ems__Workflow_isDefault==="true",_=(Array.isArray(a.ems__Workflow_states)?a.ems__Workflow_states:[]).map((b,A)=>typeof b=="string"?{status:cu(da(b))??Ki.EffortStatus.DRAFT,order:A+1,optional:!1,timestampOnEnter:[]}:{status:cu(da(b.status??""))??Ki.EffortStatus.DRAFT,order:b.order??A+1,optional:b.optional===!0||b.optional==="true",timestampOnEnter:Array.isArray(b.timestampOnEnter)?b.timestampOnEnter:[],badgeColor:b.badgeColor}),E=(Array.isArray(a.ems__Workflow_transitions)?a.ems__Workflow_transitions:[]).map(b=>{let A=cu(da(b.from??"")),R=cu(da(b.to??""));return!A||!R?null:{from:A,to:R,label:b.label??`${A} \u2192 ${R}`,icon:b.icon,isRollback:b.isRollback===!0||b.isRollback==="true"}}).filter(b=>b!==null);return{id:e,name:r.label,targetClass:c,states:_,transitions:E,initialState:u,terminalStates:d.length>0?d:[Ki.EffortStatus.DONE,Ki.EffortStatus.TRASHED],isDefault:h}}catch{return null}}o(mD,"loadWorkflowByUid");function vD(n){let e={},t=n.split(`
|
|
741
|
-
`),r="",i=null;for(let s of t){if(s.match(/^\s+-\s+/)&&r){let c=s.replace(/^\s+-\s+/,"").trim();i||(i=[]),i.push(c),e[r]=i;continue}let a=s.match(/^([a-zA-Z0-9_]+):\s*(.*)/);if(a){r=a[1],i=null;let c=a[2].trim();if((c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'"))&&(c=c.slice(1,-1)),c==="true"?c=!0:c==="false"&&(c=!1),c===""){e[r]=[],i=e[r];continue}e[r]=c}}return e}o(vD,"parseYamlFrontmatter");function da(n){return typeof n!="string"?"":n.replace(/["'[\]]/g,"").trim()}o(da,"normalizeWikilink");function XY(n){let e=n.split("/");return e[e.length-1].replace(/\.md$/,"")}o(XY,"extractLabelFromFilename");function cu(n){return Object.values(Ki.EffortStatus).includes(n)?n:null}o(cu,"resolveEffortStatus");var xs=require("fs"),Cs=require("path"),Fe=Y(Mt());var AD=Y(Mt()),Wt=Y(wD());var ED="obsidian://vault/";function lK(n){let e=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;return{async resolveTargetPath(t){if(!t)throw new Error("Cannot resolve empty targetIRI to a vault path");let r=t;if(r.startsWith(ED))r=decodeURI(r.slice(ED.length));else if(e.test(r)){let i=await n.findFileByUID(r);if(!i)throw new Error(`No vault file found for UID: ${r}`);r=i}if(r.endsWith(".md")||(r=`${r}.md`),!await n.fileExists(r))throw new Error(`Cannot resolve target file for IRI "${t}" (tried "${r}")`);return r}}}o(lK,"createCliPathResolver");var uK=["createAsset","openFile","sparqlSelect","getActiveFileIRI","getActiveFilePath","trashFile","duplicateFile"],EE=class extends Error{constructor(t){super(`Service "${t}" is not implemented in the CLI (no-op stub). dyncommand exec on this service_call grounding cannot change vault state. See CLI parity issues #2865-#2868 for port status.`);this.serviceId=t;this.name="CliServiceNotImplementedError"}static{o(this,"CliServiceNotImplementedError")}};function TD(n){return{async execute(){throw new EE(n)}}}o(TD,"notImplementedService");function xD(n,e){for(let t of uK)n.register(t,TD(t));for(let t of["updateProperty","removeProperty","setStatus"])n.register(t,TD(t));if(e){if(e.fsAdapter){let t=new AD.FrontmatterService,r=lK(e.fsAdapter);n.register("updateProperty",(0,Wt.createUpdatePropertyService)(e.fsAdapter,t,r)),n.register("removeProperty",(0,Wt.createRemovePropertyService)(e.fsAdapter,t,r)),n.register("setStatus",(0,Wt.createSetStatusService)(e.fsAdapter,t,r))}n.register("createRelatedTask",(0,Wt.createCreateRelatedTaskService)(e.vaultAdapter,e.genericAssetCreationService)),n.register("createRelatedProject",(0,Wt.createCreateRelatedProjectService)(e.vaultAdapter,e.genericAssetCreationService)),n.register("archiveAsset",(0,Wt.createArchiveAssetService)(e.vaultAdapter,e.archiveAssetService)),n.register("planForEvening",(0,Wt.createPlanForEveningService)(e.vaultAdapter,e.taskStatusService)),n.register("cleanProperties",(0,Wt.createCleanPropertiesService)(e.vaultAdapter,e.propertyCleanupService)),n.register("renameToUid",(0,Wt.createRenameToUidService)(e.vaultAdapter,e.renameToUidService)),n.register("repairFolder",(0,Wt.createRepairFolderService)(e.vaultAdapter,e.folderRepairService)),n.register("fixMissingLabel",(0,Wt.createFixMissingLabelService)(e.vaultAdapter,e.fixMissingLabelService))}}o(xD,"populateCliServiceRegistry");var fK=new Fe.FrontmatterService;function CD(){let n=new xe("dyncommand").description("Manage vault-defined dynamic commands (RFC-009)");return n.command("list").description("List all dynamic commands defined in vault").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--output <type>","Response format: text|json","text").option("--target <iri>","Filter commands applicable to a specific asset IRI").action(async e=>{let t=e.output||"text";D.setFormat(t);try{let r=(0,Cs.resolve)(e.vault);if(!(0,xs.existsSync)(r))throw new Ee(r);let i;if(e.target?i=await
|
|
741
|
+
`),r="",i=null;for(let s of t){if(s.match(/^\s+-\s+/)&&r){let c=s.replace(/^\s+-\s+/,"").trim();i||(i=[]),i.push(c),e[r]=i;continue}let a=s.match(/^([a-zA-Z0-9_]+):\s*(.*)/);if(a){r=a[1],i=null;let c=a[2].trim();if((c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'"))&&(c=c.slice(1,-1)),c==="true"?c=!0:c==="false"&&(c=!1),c===""){e[r]=[],i=e[r];continue}e[r]=c}}return e}o(vD,"parseYamlFrontmatter");function da(n){return typeof n!="string"?"":n.replace(/["'[\]]/g,"").trim()}o(da,"normalizeWikilink");function XY(n){let e=n.split("/");return e[e.length-1].replace(/\.md$/,"")}o(XY,"extractLabelFromFilename");function cu(n){return Object.values(Ki.EffortStatus).includes(n)?n:null}o(cu,"resolveEffortStatus");var xs=require("fs"),Cs=require("path"),Fe=Y(Mt());var AD=Y(Mt()),Wt=Y(wD());var ED="obsidian://vault/";function lK(n){let e=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;return{async resolveTargetPath(t){if(!t)throw new Error("Cannot resolve empty targetIRI to a vault path");let r=t;if(r.startsWith(ED))r=decodeURI(r.slice(ED.length));else if(e.test(r)){let i=await n.findFileByUID(r);if(!i)throw new Error(`No vault file found for UID: ${r}`);r=i}if(r.endsWith(".md")||(r=`${r}.md`),!await n.fileExists(r))throw new Error(`Cannot resolve target file for IRI "${t}" (tried "${r}")`);return r}}}o(lK,"createCliPathResolver");var uK=["createAsset","openFile","sparqlSelect","getActiveFileIRI","getActiveFilePath","trashFile","duplicateFile"],EE=class extends Error{constructor(t){super(`Service "${t}" is not implemented in the CLI (no-op stub). dyncommand exec on this service_call grounding cannot change vault state. See CLI parity issues #2865-#2868 for port status.`);this.serviceId=t;this.name="CliServiceNotImplementedError"}static{o(this,"CliServiceNotImplementedError")}};function TD(n){return{async execute(){throw new EE(n)}}}o(TD,"notImplementedService");function xD(n,e){for(let t of uK)n.register(t,TD(t));for(let t of["updateProperty","removeProperty","setStatus"])n.register(t,TD(t));if(e){if(e.fsAdapter){let t=new AD.FrontmatterService,r=lK(e.fsAdapter);n.register("updateProperty",(0,Wt.createUpdatePropertyService)(e.fsAdapter,t,r)),n.register("removeProperty",(0,Wt.createRemovePropertyService)(e.fsAdapter,t,r)),n.register("setStatus",(0,Wt.createSetStatusService)(e.fsAdapter,t,r))}n.register("createRelatedTask",(0,Wt.createCreateRelatedTaskService)(e.vaultAdapter,e.genericAssetCreationService)),n.register("createRelatedProject",(0,Wt.createCreateRelatedProjectService)(e.vaultAdapter,e.genericAssetCreationService)),n.register("archiveAsset",(0,Wt.createArchiveAssetService)(e.vaultAdapter,e.archiveAssetService)),n.register("planForEvening",(0,Wt.createPlanForEveningService)(e.vaultAdapter,e.taskStatusService)),n.register("cleanProperties",(0,Wt.createCleanPropertiesService)(e.vaultAdapter,e.propertyCleanupService)),n.register("renameToUid",(0,Wt.createRenameToUidService)(e.vaultAdapter,e.renameToUidService)),n.register("repairFolder",(0,Wt.createRepairFolderService)(e.vaultAdapter,e.folderRepairService)),n.register("fixMissingLabel",(0,Wt.createFixMissingLabelService)(e.vaultAdapter,e.fixMissingLabelService))}}o(xD,"populateCliServiceRegistry");var fK=new Fe.FrontmatterService;function CD(){let n=new xe("dyncommand").description("Manage vault-defined dynamic commands (RFC-009)");return n.command("list").description("List all dynamic commands defined in vault").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--output <type>","Response format: text|json","text").option("--target <iri>","Filter commands applicable to a specific asset IRI").action(async e=>{let t=e.output||"text";D.setFormat(t);try{let r=(0,Cs.resolve)(e.vault);if(!(0,xs.existsSync)(r))throw new Ee(r);let i;if(e.target?i=await hK(r,e.target):i=dK(r),t==="json"){let s=J.success({commands:i,totalCommands:i.length,...e.target&&{target:e.target}});console.log(JSON.stringify(s,null,2))}else{if(i.length===0){console.log("No dynamic commands found in vault.");return}let s=e.target?` for target ${e.target}`:"";console.log(`
|
|
742
742
|
\u{1F4CB} Found ${i.length} dynamic command(s)${s}:
|
|
743
743
|
`);let a=Math.max(...i.map(l=>l.label.length),4),c=Math.max(...i.map(l=>(l.category??"").length),8);console.log("\u250C"+"\u2500".repeat(a+2)+"\u252C"+"\u2500".repeat(c+2)+"\u252C"+"\u2500".repeat(14)+"\u252C"+"\u2500".repeat(14)+"\u2510"),console.log("\u2502 "+"Name".padEnd(a)+" \u2502 "+"Category".padEnd(c)+" \u2502 "+"Precondition".padEnd(12)+" \u2502 "+"Grounding".padEnd(12)+" \u2502"),console.log("\u251C"+"\u2500".repeat(a+2)+"\u253C"+"\u2500".repeat(c+2)+"\u253C"+"\u2500".repeat(14)+"\u253C"+"\u2500".repeat(14)+"\u2524");for(let l of i)console.log("\u2502 "+l.label.padEnd(a)+" \u2502 "+(l.category??"").padEnd(c)+" \u2502 "+(l.hasPrecondition?" yes ":" no ")+" \u2502 "+(l.groundingType??"").padEnd(12)+" \u2502");console.log("\u2514"+"\u2500".repeat(a+2)+"\u2534"+"\u2500".repeat(c+2)+"\u2534"+"\u2500".repeat(14)+"\u2534"+"\u2500".repeat(14)+"\u2518")}}catch(r){D.handle(r)}}),n.command("show").description("Show full details of a dynamic command").argument("<uid>","UID of the command asset").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--output <type>","Response format: text|json","text").action(async(e,t)=>{let r=t.output||"text";D.setFormat(r);try{let i=(0,Cs.resolve)(t.vault);if(!(0,xs.existsSync)(i))throw new Ee(i);let{tripleStore:s}=await AE(i),a=new Fe.CommandResolver(s),c=await a.loadCommand(e);if(!c){if(r==="json"){let f=J.success({error:`Command with UID "${e}" not found`});console.log(JSON.stringify(f,null,2))}else console.log(`\u274C Command with UID "${e}" not found.`);process.exitCode=3;return}let u=(await a.findBindings()).filter(f=>f.commandRef===e);if(r==="json"){let f=J.success({command:c,bindings:u});console.log(JSON.stringify(f,null,2))}else if(console.log(`
|
|
744
744
|
\u{1F4CB} Command: ${c.name}
|
|
@@ -749,11 +749,12 @@ ${jr.dump(i,{lineWidth:-1})}---
|
|
|
749
749
|
Bindings (${u.length}):`);for(let f of u){let d=[];f.targetClass&&d.push(`class=${f.targetClass}`),f.targetPrototype&&d.push(`prototype=${f.targetPrototype}`),f.targetAsset&&d.push(`asset=${f.targetAsset}`),console.log(` \u2022 ${f.label||f.id}: ${d.join(", ")}`)}}else console.log(`
|
|
750
750
|
Bindings: none`)}catch(i){D.handle(i)}}),n.command("exec").description("Execute a dynamic command on a target asset").argument("<uid>","UID of the command to execute").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--target <filepath>","Path to target asset file (relative to vault)").option("--output <type>","Response format: text|json","text").option("--dry-run","Preview changes without modifying files").option("--input <json>",`JSON userInput for service_call groundings, e.g. '{"label":"Task name"}'`).action(async(e,t)=>{let r=t.output||"text";D.setFormat(r);try{let i=(0,Cs.resolve)(t.vault);if(!(0,xs.existsSync)(i))throw new Ee(i);if(!t.target){console.error("\u274C --target option is required for exec command"),process.exitCode=2;return}let s=(0,Cs.resolve)(i,t.target);if(!(0,xs.existsSync)(s)){console.error(`\u274C Target file not found: ${t.target}`),process.exitCode=3;return}let{tripleStore:a}=await AE(i),l=await new Fe.CommandResolver(a).loadCommand(e);if(!l){if(r==="json"){let F=J.success({error:`Command with UID "${e}" not found`});console.log(JSON.stringify(F,null,2))}else console.log(`\u274C Command with UID "${e}" not found.`);process.exitCode=3;return}let u=(0,Fe.vaultPathToIRI)(t.target);if(!await new Fe.PreconditionEvaluator(a).evaluate(l.precondition,u)){if(r==="json"){let F=J.success({command:l.name,target:t.target,preconditionPassed:!1,executed:!1,reason:"Precondition not satisfied"});console.log(JSON.stringify(F,null,2))}else console.log(`\u274C Precondition not satisfied for command "${l.name}" on target "${t.target}".`),l.precondition&&(console.log(` Precondition: ${l.precondition.label}`),console.log(` SPARQL ASK: ${l.precondition.sparqlAsk}`));process.exitCode=5;return}if(t.dryRun){if(r==="json"){let F=J.success({command:l.name,target:t.target,preconditionPassed:!0,dryRun:!0,grounding:l.grounding});console.log(JSON.stringify(F,null,2))}else console.log(`
|
|
751
751
|
\u{1F50D} Dry-run: command "${l.name}" on "${t.target}"
|
|
752
|
-
`),console.log(" Precondition: passed \u2705"),console.log(" Grounding (would execute):"),xE(l.grounding," ");return}let h=new Fe.ServiceRegistry,p=new $t(i),_=new Fe.GenericAssetCreationService(p),v=new Fe.ArchiveAssetService(p),E=new Fe.PropertyCleanupService(p),b=new Fe.FixMissingLabelService(p),A=new Fe.RenameToUidService(p),R=new Fe.FolderRepairService(p),B=new Fe.TaskStatusService(p,new Fe.EffortStatusWorkflow,new Fe.StatusTimestampService(p)),W=new Rt(i);xD(h,{vaultAdapter:p,fsAdapter:W,genericAssetCreationService:_,archiveAssetService:v,taskStatusService:B,propertyCleanupService:E,fixMissingLabelService:b,renameToUidService:A,folderRepairService:R});let we=new Fe.GroundingExecutor(W,W,h),z;if(t.input)try{let F=JSON.parse(t.input);if(typeof F!="object"||F===null||Array.isArray(F))throw new Error("must be a JSON object");z=F}catch(F){let j=F instanceof Error?F.message:String(F);console.error(`\u274C --input: invalid JSON object (${j})`),process.exitCode=2;return}let G=await we.execute(l.grounding,u,t.target,z);if(r==="json"){let F=J.success({command:l.name,target:t.target,preconditionPassed:!0,executed:!0,success:G.success,...G.error&&{error:G.error},...l.successMessage&&G.success&&{message:l.successMessage}});console.log(JSON.stringify(F,null,2))}else if(G.success){let F=l.successMessage??`Command "${l.name}" executed successfully.`;console.log(`\u2705 ${F}`)}else console.log(`\u274C Command "${l.name}" failed: ${G.error}`),process.exitCode=5}catch(i){D.handle(i)}}),n.command("validate").description("Validate all dynamic command definitions in vault").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--output <type>","Response format: text|json","text").action(async e=>{let t=e.output||"text";D.setFormat(t);try{let r=(0,Cs.resolve)(e.vault);if(!(0,xs.existsSync)(r))throw new Ee(r);let i=
|
|
753
|
-
`);for(let
|
|
754
|
-
`)
|
|
752
|
+
`),console.log(" Precondition: passed \u2705"),console.log(" Grounding (would execute):"),xE(l.grounding," ");return}let h=new Fe.ServiceRegistry,p=new $t(i),_=new Fe.GenericAssetCreationService(p),v=new Fe.ArchiveAssetService(p),E=new Fe.PropertyCleanupService(p),b=new Fe.FixMissingLabelService(p),A=new Fe.RenameToUidService(p),R=new Fe.FolderRepairService(p),B=new Fe.TaskStatusService(p,new Fe.EffortStatusWorkflow,new Fe.StatusTimestampService(p)),W=new Rt(i);xD(h,{vaultAdapter:p,fsAdapter:W,genericAssetCreationService:_,archiveAssetService:v,taskStatusService:B,propertyCleanupService:E,fixMissingLabelService:b,renameToUidService:A,folderRepairService:R});let we=new Fe.GroundingExecutor(W,W,h),z;if(t.input)try{let F=JSON.parse(t.input);if(typeof F!="object"||F===null||Array.isArray(F))throw new Error("must be a JSON object");z=F}catch(F){let j=F instanceof Error?F.message:String(F);console.error(`\u274C --input: invalid JSON object (${j})`),process.exitCode=2;return}let G=await we.execute(l.grounding,u,t.target,z);if(r==="json"){let F=J.success({command:l.name,target:t.target,preconditionPassed:!0,executed:!0,success:G.success,...G.error&&{error:G.error},...l.successMessage&&G.success&&{message:l.successMessage}});console.log(JSON.stringify(F,null,2))}else if(G.success){let F=l.successMessage??`Command "${l.name}" executed successfully.`;console.log(`\u2705 ${F}`)}else console.log(`\u274C Command "${l.name}" failed: ${G.error}`),process.exitCode=5}catch(i){D.handle(i)}}),n.command("validate").description("Validate all dynamic command definitions in vault").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--output <type>","Response format: text|json","text").action(async e=>{let t=e.output||"text";D.setFormat(t);try{let r=(0,Cs.resolve)(e.vault);if(!(0,xs.existsSync)(r))throw new Ee(r);let i=[];CE(r,i);let s=pK(i),a=yK(i);if(t==="json"){let c=J.success({totalCommands:TE(i).length,totalIssues:s.reduce((l,u)=>l+u.issues.length,0),commandsWithIssues:s.length,issues:s,duplicateUidWarnings:a});console.log(JSON.stringify(c,null,2))}else{let c=TE(i);if(s.length===0)console.log(`\u2705 All ${c.length} dynamic command(s) are valid.`);else{let l=s.reduce((u,f)=>u+f.issues.length,0);console.log(`\u274C Found ${l} issue(s) in ${s.length} command(s) out of ${c.length} total:
|
|
753
|
+
`);for(let u of s){console.log(` \u{1F4C4} ${u.label} (${u.uid}):`);for(let f of u.issues)console.log(` \u2022 ${f}`);console.log()}process.exitCode=5}if(a.length>0){console.log(`\u26A0\uFE0F Found ${a.length} duplicate exo__Asset_uid value(s) (structural defect \u2014 see docs/RCA_DYNCOMMAND_SHOW_VS_EXEC.md \xA7H1):
|
|
754
|
+
`);for(let l of a){console.log(` \u2022 ${l.uid}`);for(let u of l.filePaths)console.log(` ${u}`)}console.log("\n Hint: rename one of the duplicates to a fresh UID, or delete the stale copy. Duplicates make `dyncommand show` and `dyncommand exec` non-deterministic.")}}}catch(r){D.handle(r)}}),n}o(CD,"dynamicCommandCommand");function dK(n){let e=[];return CE(n,e),TE(e)}o(dK,"scanCommands");function TE(n){let e=[],t=ID(n);for(let{filePath:r,fm:i}of n){if(!uu(i,"exocmd__Command",t))continue;let s=i.exo__Asset_uid??"",a=i.exo__Asset_label??RD(r),c=i.exocmd__Command_category,l=i.exocmd__Command_icon,u=!!i.exocmd__Command_precondition,f=i.exocmd__Command_grounding,d;if(f){let h=uy(String(f)),p=n.find(_=>_.fm.exo__Asset_uid===h&&uu(_.fm,"exocmd__Grounding",t));p&&(d=p.fm.exocmd__Grounding_type)}e.push({filePath:r,uid:s,label:a,category:c,icon:l,hasPrecondition:u,groundingType:d})}return e}o(TE,"scanCommandsFromFiles");async function hK(n,e){let{tripleStore:t}=await AE(n),r=new Fe.CommandResolver(t),i=await r.findBindings(),s=new Set;for(let c of i)s.add(c.commandRef);let a=[];for(let c of s){let l=await r.loadCommand(c);l&&a.push({filePath:"",uid:l.id,label:l.name,category:l.category,icon:l.icon,hasPrecondition:!!l.precondition,groundingType:l.grounding.type})}return a}o(hK,"listCommandsForTarget");function pK(n){let e=[],t=ID(n),r=new Map;for(let i of n){let s=i.fm.exo__Asset_uid;s&&r.set(s,i)}for(let{filePath:i,fm:s}of n){if(!uu(s,"exocmd__Command",t))continue;let a=s.exo__Asset_uid??"",c=s.exo__Asset_label??RD(i),l=[];a||l.push("Missing exo__Asset_uid"),s.exo__Asset_label||l.push("Missing exo__Asset_label");let u=s.exocmd__Command_grounding;if(!u)l.push("Missing exocmd__Command_grounding (required)");else{let h=uy(String(u)),p=r.get(h);if(!p)l.push(`Grounding reference "${h}" not found in vault`);else if(!uu(p.fm,"exocmd__Grounding",t))l.push(`Grounding reference "${h}" is not an exocmd__Grounding asset`);else{let _=p.fm,v=_.exocmd__Grounding_type;v?(Object.values(Fe.GroundingType).includes(v)||l.push(`Grounding "${h}" has invalid type "${v}"`),(v===Fe.GroundingType.PROPERTY_SET||v===Fe.GroundingType.PROPERTY_DELETE)&&!_.exocmd__Grounding_targetProperty&&l.push(`Grounding "${h}" (${v}) missing targetProperty`),v===Fe.GroundingType.PROPERTY_SET&&!_.exocmd__Grounding_targetValue&&l.push(`Grounding "${h}" (property_set) missing targetValue`),v===Fe.GroundingType.SERVICE_CALL&&((_.exocmd__Grounding_serviceId??_.exocmd__Grounding_targetProperty)||l.push(`Grounding "${h}" (service_call) missing serviceId and targetProperty`))):l.push(`Grounding "${h}" missing exocmd__Grounding_type`)}}let f=s.exocmd__Command_precondition;if(f){let h=uy(String(f)),p=r.get(h);if(!p)l.push(`Precondition reference "${h}" not found in vault`);else if(!uu(p.fm,"exocmd__Precondition",t))l.push(`Precondition reference "${h}" is not an exocmd__Precondition asset`);else{let _=p.fm.exocmd__Precondition_sparqlAsk,v=p.fm.exocmd__Precondition_hostFunction;!_&&!v&&l.push(`Precondition "${h}" missing both sparqlAsk and hostFunction`)}}n.some(h=>uu(h.fm,"exocmd__CommandBinding",t)?uy(String(h.fm.exocmd__CommandBinding_command??""))===a:!1)||l.push("No CommandBinding references this command (command will be unused)"),l.length>0&&e.push({uid:a,label:c,filePath:i,issues:l})}return e}o(pK,"validateCommandsFromFiles");async function AE(n){let e=new $t(n),r=await new Fe.NoteToRDFConverter(e).convertVault(),i=new Fe.InMemoryTripleStore;return await i.addAll(r),{tripleStore:i}}o(AE,"buildTripleStore");function xE(n,e){if(console.log(`${e}ID: ${n.id}`),console.log(`${e}Label: ${n.label}`),console.log(`${e}Type: ${n.type}`),n.targetProperty&&console.log(`${e}Target property: ${n.targetProperty}`),n.targetValue!==void 0&&console.log(`${e}Target value: ${n.targetValue}`),n.sparqlUpdate&&console.log(`${e}SPARQL UPDATE: ${n.sparqlUpdate}`),n.steps&&n.steps.length>0){console.log(`${e}Steps (${n.steps.length}):`);for(let t=0;t<n.steps.length;t++)console.log(`${e} Step ${t+1}:`),xE(n.steps[t],e+" ")}}o(xE,"printGrounding");function CE(n,e){let t;try{t=(0,xs.readdirSync)(n,{withFileTypes:!0})}catch{return}for(let r of t){let i=(0,Cs.join)(n,r.name);if(r.isDirectory()){if(r.name.startsWith(".")||r.name==="node_modules")continue;CE(i,e)}else if(r.name.endsWith(".md"))try{let s=(0,xs.readFileSync)(i,"utf-8"),a=fK.parse(s);a.exists&&e.push({filePath:i,fm:mK(a.content)})}catch{}}}o(CE,"collectParsedFiles");function mK(n){let e={},t=n.split(`
|
|
755
|
+
`),r="",i=null;for(let s of t){if(s.match(/^\s+-\s+/)&&r){let c=s.replace(/^\s+-\s+/,"").trim();i||(i=[]),i.push(c),e[r]=i;continue}let a=s.match(/^([a-zA-Z0-9_]+):\s*(.*)/);if(a){r=a[1],i=null;let c=a[2].trim();if((c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'"))&&(c=c.slice(1,-1)),c==="true"?c=!0:c==="false"&&(c=!1),c===""){e[r]=[],i=e[r];continue}e[r]=c}}return e}o(mK,"parseYamlFrontmatter");var gK=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function ID(n){let e=new Map;for(let{fm:t}of n){let r=t.exo__Asset_uid,i=t.exo__Asset_label;typeof r=="string"&&typeof i=="string"&&e.set(r,i)}return e}o(ID,"buildClassLabelIndex");function uu(n,e,t){let r=n.exo__Instance_class;if(!r)return!1;let i=Array.isArray(r)?r:[r];for(let s of i){if(typeof s!="string")continue;let a=s.match(/\[\[([^|\]]+)/),c=a?a[1]:s;if(c===e||t&&gK.test(c)&&t.get(c)===e)return!0}return!1}o(uu,"hasClass");function uy(n){if(typeof n!="string")return"";let e=n.replace(/["'[\]]/g,"").trim(),t=e.indexOf("|");return t>=0?e.substring(0,t).trim():e}o(uy,"normalizeWikilink");function RD(n){return(0,Cs.basename)(n,".md")}o(RD,"extractLabelFromFilename");function yK(n){let e=new Map;for(let{filePath:r,fm:i}of n){let s=i.exo__Asset_uid;if(typeof s!="string"||s.length===0)continue;let a=e.get(s);a?a.push(r):e.set(s,[r])}let t=[];for(let[r,i]of e.entries())i.length>1&&t.push({uid:r,filePaths:[...i].sort()});return t.sort((r,i)=>r.uid.localeCompare(i.uid)),t}o(yK,"findDuplicateUIDs");var fu=require("fs"),gd=require("path"),Nt=Y(Mt());var _K={turtle:"turtle",ntriples:"n-triples",jsonld:"json-ld"},SK=new Nt.IRI(`${Nt.Namespace.RDF.iri.value}type`),PD=[Nt.Namespace.RDF,Nt.Namespace.RDFS,Nt.Namespace.OWL,Nt.Namespace.XSD,Nt.Namespace.EXO,Nt.Namespace.EMS,Nt.Namespace.EXOCMD,Nt.Namespace.IMS,Nt.Namespace.ZTLK,Nt.Namespace.PTMS,Nt.Namespace.LIT,Nt.Namespace.INBOX];function vK(n){let e=n.trim();if(e.startsWith("http://")||e.startsWith("https://"))return new Nt.IRI(e);let t=e.match(/^([a-zA-Z][a-zA-Z0-9]*)__(.+)$/);if(t){let[,i,s]=t,a=PD.find(c=>c.prefix===i);if(a)return a.term(s)}let r=e.match(/^([a-zA-Z][a-zA-Z0-9]*):(.+)$/);if(r){let[,i,s]=r,a=PD.find(c=>c.prefix===i);if(a)return a.term(s)}throw new Qe(`Unable to resolve class filter "${n}" to an IRI.`,'Use shorthand like "ems__Task", prefixed like "ems:Task", or a full IRI.')}o(vK,"resolveClassIri");function bK(n,e){let t=new Set;for(let r of n)r.predicate.equals(SK)&&r.object instanceof Nt.IRI&&r.object.equals(e)&&t.add(r.subject.toString());return t.size===0?[]:n.filter(r=>t.has(r.subject.toString()))}o(bK,"filterByClass");function OD(){return new xe("convert").description("Dump vault graph as RDF (Turtle/N-Triples/JSON-LD)").option("--format <type>","Serialization format: turtle|ntriples|jsonld","turtle").option("--out <path>","Write serialized output to file (default: stdout)").option("--filter <class>","Keep only instances of the given class (e.g. ems__Task, ems:Task, or full IRI)").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--output <type>","Response format for errors: text|json (for MCP tools)","text").action(async n=>{let e=n.output||"text";D.setFormat(e);try{let t=_K[n.format];if(!t)throw new Qe(`Unknown format: "${n.format}". Expected one of turtle|ntriples|jsonld.`,"exocortex convert --format turtle --out vault.ttl");let r=(0,gd.resolve)(n.vault);if(!(0,fu.existsSync)(r))throw new Ee(r);e==="text"&&!n.out||e==="text"&&console.error(`\u{1F4E6} Loading vault: ${r}...`);let i=new $t(r),a=await new Nt.NoteToRDFConverter(i).convertVault();if(n.filter){let f=vK(n.filter);a=bK(a,f)}let c=new Nt.InMemoryTripleStore;await c.addAll(a);let u=new Nt.RDFSerializer(c).serializeTriples(a,t,{pretty:t==="json-ld",indent:2});if(n.out){let f=(0,gd.resolve)(n.out);try{(0,fu.mkdirSync)((0,gd.dirname)(f),{recursive:!0}),(0,fu.writeFileSync)(f,u,"utf-8")}catch(d){throw new Ff("convert",`failed to write output to ${f}: ${d.message}`,"Check destination directory exists and is writable.",{outPath:f})}e==="text"&&console.error(`\u2705 Wrote ${a.length} triple(s) to ${f} (${n.format}).`)}else process.stdout.write(u),u.endsWith(`
|
|
755
756
|
`)||process.stdout.write(`
|
|
756
|
-
`)}catch(t){D.handle(t)}})}o(OD,"convertCommand");var kD=require("path"),MD=require("fs");var DD=require("node:crypto");function yd(n){if(typeof n!="string")return null;let e=n.trim();if(e.length===0)return null;let t=e.match(/^\[\[([^|\]]+)(?:\|[^\]]*)?\]\]$/);return t?t[1].trim():e}o(yd,"wikilinkInner");function
|
|
757
|
+
`)}catch(t){D.handle(t)}})}o(OD,"convertCommand");var kD=require("path"),MD=require("fs");var DD=require("node:crypto");function yd(n){if(typeof n!="string")return null;let e=n.trim();if(e.length===0)return null;let t=e.match(/^\[\[([^|\]]+)(?:\|[^\]]*)?\]\]$/);return t?t[1].trim():e}o(yd,"wikilinkInner");function wK(n){if(!Array.isArray(n))return[];let e=[];for(let t of n)typeof t=="string"&&t.trim().length>0&&e.push(t.trim());return e}o(wK,"normaliseColumns");function EK(n){if(Array.isArray(n))return n.map(e=>typeof e=="string"?yd(e):null).filter(e=>e!==null);if(typeof n=="string"){let e=yd(n);return e?[e]:[]}return[]}o(EK,"normaliseInstanceClass");function ND(n){let e=EK(n.exo__Instance_class);for(let t of e)if(t==="ui__RelationColumnSet"||t==="97fc9862-c886-4d86-9a60-e0cf9d778575"||t.includes("ui__RelationColumnSet"))return!0;return!1}o(ND,"isRelColSetFrontmatter");function LD(n,e){let t=e.exo__Asset_uid;if(typeof t!="string"||t.trim().length===0)return null;let r=e.exo__Asset_label,i=typeof r=="string"&&r.trim().length>0?r.trim():null,s=e.ui__RelationColumnSet_targetClass,a=Array.isArray(s)?yd(s[0]):yd(s),c=yd(e.ui__RelationColumnSet_referencingProperty),l=wK(e.ui__RelationColumnSet_columns),u=e.ui__RelationColumnSet_priority,f=typeof u=="number"?u:typeof u=="string"&&u.trim()!==""?Number.parseInt(u,10):null;return{uid:t.trim(),path:n,label:i,targetClass:a,referencingProperty:c,columns:l,priority:f!==null&&Number.isNaN(f)?null:f}}o(LD,"extractRelColSetConfig");function FD(n){if(n===null||n.trim().length===0)return"";let e=n.trim();return e.startsWith("[[")&&e.endsWith("]]")?e:`[[${e}]]`}o(FD,"wikilinkOf");function TK(n,e){let t=(0,DD.createHash)("sha256").update(`${n}:${e}:exo-layout-migration-v1`).digest("hex");return t.slice(0,8)+"-"+t.slice(8,12)+"-4"+t.slice(13,16)+"-8"+t.slice(17,20)+"-"+t.slice(20,32)}o(TK,"defaultUidFor");var fy=class{static{o(this,"RelColSetToExoLayoutMigratorService")}constructor(e={}){this.uidFor=e.uidFor??TK}migrate(e){let t=[],r=[];for(let i of e){if(i.targetClass===null&&i.referencingProperty===null){r.push({sourcePath:i.path,reason:"RelColSet lacks both targetClass and referencingProperty \u2014 nothing to migrate"});continue}t.push(this.migrateOne(i))}return{pairs:t,skipped:r}}migrateOne(e){let t=this.uidFor(e.uid,"layout"),r=this.uidFor(e.uid,"block"),i=[],s=e.label??e.uid,a=`Migrated layout (from ${s})`,c=`Migrated backlinks table (from ${s})`,l=FD(e.targetClass),u=FD(e.referencingProperty);e.targetClass===null&&i.push("RelColSet has no targetClass \u2014 using placeholder; set exo__Layout_targetClass and exo__BacklinksTableBlock_rowClass manually."),e.referencingProperty===null&&i.push("RelColSet has no referencingProperty \u2014 set exo__BacklinksTableBlock_referencingProperty manually."),i.push("RelColSet is additive (appends to Name/InstanceClass); exo__BacklinksTableBlock is replacing. The generated block renders only the configured columns."),i.push("exo__Layout.targetClass is the class of the PAGE the layout renders on. RelColSet encodes the row class, not the page class. Review and adjust before --apply.");let f=e.columns.length===0?"[]":`
|
|
757
758
|
`+e.columns.map(_=>` - "${_}"`).join(`
|
|
758
759
|
`),d=e.priority===null?"":`exo__Layout_priority: ${e.priority}
|
|
759
760
|
`,h=`---
|
|
@@ -779,8 +780,8 @@ exo__BacklinksTableBlock_referencingProperty: "${u}"
|
|
|
779
780
|
exo__BacklinksTableBlock_columns:${f==="[]"?" []":f}
|
|
780
781
|
# Migrated from ui__RelationColumnSet ${e.uid} (${e.path}).
|
|
781
782
|
---
|
|
782
|
-
`;return{sourceUid:e.uid,sourcePath:e.path,layout:{uid:t,filename:`${t}.md`,content:h},block:{uid:r,filename:`${r}.md`,content:p},warnings:i}}};function jD(){return new xe("migrate-relcolset-to-exolayout").description("Generate exo__Layout + exo__BacklinksTableBlock pairs from existing ui__RelationColumnSet configs (dry-run by default; --apply to write)").requiredOption("--vault <path>","Path to the source vault").option("--out-dir <path>","Vault-relative folder where generated Layout+Block files land on --apply","exo-layout-migrated").option("--apply","Write generated files to the vault (default: dry-run, prints to stderr)",!1).option("--json","Emit the migration report as JSON to stdout",!1).action(async n=>{try{let e=(0,kD.resolve)(n.vault);if(!(0,MD.existsSync)(e))throw new Ee(e);let t=new Rt(e),r=new fy,i=await t.getMarkdownFiles(),s=[];for(let c of i)try{let l=await t.getFileMetadata(c);if(!ND(l))continue;let u=LD(c,l);u!==null&&s.push(u)}catch{}let a=r.migrate(s);n.apply?await
|
|
783
|
-
`):process.stderr.write(
|
|
783
|
+
`;return{sourceUid:e.uid,sourcePath:e.path,layout:{uid:t,filename:`${t}.md`,content:h},block:{uid:r,filename:`${r}.md`,content:p},warnings:i}}};function jD(){return new xe("migrate-relcolset-to-exolayout").description("Generate exo__Layout + exo__BacklinksTableBlock pairs from existing ui__RelationColumnSet configs (dry-run by default; --apply to write)").requiredOption("--vault <path>","Path to the source vault").option("--out-dir <path>","Vault-relative folder where generated Layout+Block files land on --apply","exo-layout-migrated").option("--apply","Write generated files to the vault (default: dry-run, prints to stderr)",!1).option("--json","Emit the migration report as JSON to stdout",!1).action(async n=>{try{let e=(0,kD.resolve)(n.vault);if(!(0,MD.existsSync)(e))throw new Ee(e);let t=new Rt(e),r=new fy,i=await t.getMarkdownFiles(),s=[];for(let c of i)try{let l=await t.getFileMetadata(c);if(!ND(l))continue;let u=LD(c,l);u!==null&&s.push(u)}catch{}let a=r.migrate(s);n.apply?await AK(t,a,n.outDir):xK(a),n.json?process.stdout.write(JSON.stringify(IK(a,n),null,2)+`
|
|
784
|
+
`):process.stderr.write(CK(a,n)),process.exit(0)}catch(e){D.handle(e)}})}o(jD,"migrateRelColSetToExoLayoutCommand");async function AK(n,e,t){for(let r of e.pairs){let i=`${t}/${r.layout.filename}`,s=`${t}/${r.block.filename}`;await n.writeFile(i,r.layout.content),await n.writeFile(s,r.block.content)}}o(AK,"writePairs");function xK(n){process.stderr.write(`--- DRY RUN PREVIEW ---
|
|
784
785
|
`);for(let e of n.pairs)if(process.stderr.write(`
|
|
785
786
|
# from ${e.sourcePath}
|
|
786
787
|
`),process.stderr.write(`## Layout (${e.layout.filename})
|
|
@@ -791,9 +792,9 @@ exo__BacklinksTableBlock_columns:${f==="[]"?" []":f}
|
|
|
791
792
|
`);for(let t of e.warnings)process.stderr.write(`- ${t}
|
|
792
793
|
`)}process.stderr.write(`
|
|
793
794
|
--- END PREVIEW ---
|
|
794
|
-
`)}o(
|
|
795
|
+
`)}o(xK,"printDryRunReport");function CK(n,e){let r=[`--- MIGRATION ${e.apply?"APPLY":"DRY RUN"} ---`,`Migrated pairs: ${n.pairs.length}`,`Skipped configs: ${n.skipped.length}`];e.apply&&(r.push(`Files written to: ${e.outDir}/ (relative to vault root)`),r.push(`Total files written: ${n.pairs.length*2} (${n.pairs.length} Layout + ${n.pairs.length} Block)`));for(let i of n.skipped)r.push(` SKIPPED: ${i.sourcePath} \u2014 ${i.reason}`);return r.push(`--- END SUMMARY ---
|
|
795
796
|
`),r.join(`
|
|
796
|
-
`)}o(
|
|
797
|
+
`)}o(CK,"formatSummary");function IK(n,e){return{mode:e.apply?"apply":"dry-run",outDir:e.outDir,pairsCount:n.pairs.length,skippedCount:n.skipped.length,pairs:n.pairs.map(t=>({sourceUid:t.sourceUid,sourcePath:t.sourcePath,layoutUid:t.layout.uid,blockUid:t.block.uid,warnings:t.warnings})),skipped:n.skipped}}o(IK,"summariseResult");function $D(n){n.addCommand(pO()),n.addCommand(_O()),n.addCommand(SO())}o($D,"addQuerySubcommands");function BD(n){let e=new xe;e.name("exocortex").description("CLI tool for Exocortex knowledge management system").version(n??"15.148.0");let t=e.command("exoql").description("ExoQL query execution and cache management");$D(t);let r=e.command("sparql").description("(deprecated) Use 'exoql' instead");return $D(r),r.hook("preAction",()=>{console.error('\u26A0\uFE0F "sparql" is deprecated. Use "exoql" instead.')}),e.addCommand(CF()),e.addCommand(PF()),e.addCommand(OF()),e.addCommand(DF()),e.addCommand(NF()),e.addCommand($F()),e.addCommand(qF()),e.addCommand(rD()),e.addCommand(sD()),e.addCommand(uD()),e.addCommand(hD()),e.addCommand(pD()),e.addCommand(gD()),e.addCommand(CD()),e.addCommand(OD()),e.addCommand(jD()),e}o(BD,"createProgram");BD().parse();0&&(module.exports={createProgram});
|
|
797
798
|
/*! Bundled license information:
|
|
798
799
|
|
|
799
800
|
reflect-metadata/Reflect.js:
|