exocortex-cli 13.118.1 → 13.119.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // exocortex-cli v13.118.1
2
+ // exocortex-cli v13.119.1
3
3
  // CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more
4
4
  // License: MIT
5
5
 
@@ -97,7 +97,7 @@ ${i}
97
97
  `,i=this.composePrefixes(t),s=this.serializePrefixes(i,n),a=this.nTriplesSerializer.serialize(e,{newline:n}).trimEnd();return s?a?`${s}${n}${n}${a}${n}`:`${s}${n}`:a?`${a}${n}`:""}serializePrefixes(e,t){let n=Object.entries(e);return n.length===0?"":n.map(([i,s])=>`@prefix ${i}: <${s}> .`).join(t)}composePrefixes(e){return e.includeDefaultPrefixes??!0?{...Ex,...e.prefixes??{}}:{...e.prefixes??{}}}serializeTriplesOnly(e,t){return this.nTriplesSerializer.serializeChunk(e,t).trimEnd()}};iu.TurtleSerializer=Md});var gg=y(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.JSONLDSerializer=void 0;var pg=pt(),mg=Or(),Tx=jt(),Fs=_n(),Ax={rdf:Fs.Namespace.RDF.iri.value,rdfs:Fs.Namespace.RDFS.iri.value,owl:Fs.Namespace.OWL.iri.value,xsd:Fs.Namespace.XSD.iri.value,exo:Fs.Namespace.EXO.iri.value,ems:Fs.Namespace.EMS.iri.value},Ld=class{static{o(this,"JSONLDSerializer")}toDocument(e,t={}){let n={...Ax,...t.context??{}},i=new Map;for(let s of e){let a=this.subjectToId(s.subject),c=this.compactIri(s.predicate.value,n),u=this.objectToJSONLD(s.object,n),f=i.get(a)??{"@id":a},l=f[c];l===void 0?f[c]=u:Array.isArray(l)?l.push(u):f[c]=[l,u],i.set(a,f)}return{"@context":n,"@graph":Array.from(i.values())}}serialize(e,t={}){let n=this.toDocument(e,t),i=t.pretty?t.indent??2:void 0;return JSON.stringify(n,null,i)}subjectToId(e){return e instanceof pg.IRI?e.value:e instanceof mg.BlankNode?`_:${e.id}`:String(e)}compactIri(e,t){for(let[n,i]of Object.entries(t))if(e.startsWith(i)){let s=e.slice(i.length);if(s.length>0)return`${n}:${s}`}return e}objectToJSONLD(e,t){if(e instanceof pg.IRI)return{"@id":e.value};if(e instanceof mg.BlankNode)return{"@id":`_:${e.id}`};if(e instanceof Tx.Literal){let n={"@value":e.value};return e.datatype?n["@type"]=this.compactIri(e.datatype.value,t):e.language&&(n["@language"]=e.language),n}return e}};su.JSONLDSerializer=Ld});var Bd=y(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.NTriplesParser=void 0;var xx=Vi(),yg=pt(),Vd=jt(),Ox=Or(),Is=_n(),Cx={rdf:Is.Namespace.RDF.iri.value,rdfs:Is.Namespace.RDFS.iri.value,owl:Is.Namespace.OWL.iri.value,xsd:Is.Namespace.XSD.iri.value,exo:Is.Namespace.EXO.iri.value,ems:Is.Namespace.EMS.iri.value},qd=class{static{o(this,"NTriplesParser")}parse(e,t={}){let n={prefixes:{...Cx,...t.prefixes??{}},strict:t.strict??!1},i=[];return e.split(/\r?\n/).forEach((a,c)=>{let u=a.trim();!u||u.startsWith("#")||i.push(this.parseLine(u,c+1,n))}),i}parseLine(e,t,n){if(!e.endsWith("."))throw new Error(`Invalid RDF statement at line ${t}: missing '.' terminator`);let s=e.slice(0,-1).trim(),a=this.parseSubject(s,t,n);s=a.rest.trim();let c=this.parsePredicate(s,t,n);s=c.rest.trim();let u=this.parseObject(s,t,n);if(s=u.rest.trim(),s.length>0)throw new Error(`Unexpected tokens after object at line ${t}`);return new xx.Triple(a.node,c.node,u.node)}parseSubject(e,t,n){return e.startsWith("<")?this.consumeIRI(e,t,n):e.startsWith("_:")?this.consumeBlankNode(e,t):this.consumePrefixedName(e,t,n)}parsePredicate(e,t,n){return e.startsWith("<")?this.consumeIRI(e,t,n):this.consumePrefixedName(e,t,n)}parseObject(e,t,n){return e.startsWith("<")?this.consumeIRI(e,t,n):e.startsWith("_:")?this.consumeBlankNode(e,t):e.startsWith('"')?this.consumeLiteral(e,t,n):this.consumePrefixedName(e,t,n)}consumePrefixedName(e,t,n){let i=e.match(/^([a-zA-Z_][\w-]*):([^\s]+)(?:\s+(.*))?$/);if(!i)throw new Error(`Invalid token at line ${t}: ${e}`);let[,s,a,c]=i,u=n.prefixes[s];if(!u)throw new Error(`Unknown prefix "${s}" at line ${t}`);return{node:new yg.IRI(`${u}${a}`),rest:(c??"").trimStart()}}consumeIRI(e,t,n){let i=this.findClosingBracket(e,"<",">");if(i===-1)throw new Error(`Invalid IRI at line ${t}`);let s=e.slice(1,i),a=new yg.IRI(s),c=e.slice(i+1).trimStart();return{node:a,rest:c}}consumeBlankNode(e,t){let n=e.match(/^_:(\w+)(?:\s+(.*))?$/);if(!n)throw new Error(`Invalid blank node identifier at line ${t}`);let[,i,s]=n;return{node:new Ox.BlankNode(i),rest:(s??"").trimStart()}}consumeLiteral(e,t,n){let{value:i,rest:s}=this.consumeQuotedString(e,t),a=s.trimStart();if(a.startsWith("^^")){a=a.slice(2).trimStart();let c=a.startsWith("<")?this.consumeIRI(a,t,n):this.consumePrefixedName(a,t,n);return{node:new Vd.Literal(i,c.node),rest:c.rest}}if(a.startsWith("@")){let c=a.match(/^@([a-zA-Z-]+)(?:\s+(.*))?$/);if(!c)throw new Error(`Invalid language tag at line ${t}`);let[,u,f]=c;return{node:new Vd.Literal(i,void 0,u),rest:(f??"").trimStart()}}return{node:new Vd.Literal(i),rest:a}}consumeQuotedString(e,t){if(!e.startsWith('"'))throw new Error(`Expected quoted string at line ${t}`);let n="";for(let i=1;i<e.length;i++){let s=e[i];if(s==="\\"){if(i+1>=e.length)throw new Error(`Invalid escape sequence at line ${t}`);let a=e[i+1];switch(a){case"t":n+=" ",i+=1;break;case"b":n+="\b",i+=1;break;case"n":n+=`
98
98
  `,i+=1;break;case"r":n+="\r",i+=1;break;case"f":n+="\f",i+=1;break;case'"':n+='"',i+=1;break;case"\\":n+="\\",i+=1;break;case"u":{let c=e.slice(i+2,i+6);if(c.length!==4||!/^[0-9a-fA-F]{4}$/.test(c))throw new Error(`Invalid \\u escape at line ${t}`);n+=String.fromCharCode(parseInt(c,16)),i+=5;break}case"U":{let c=e.slice(i+2,i+10);if(c.length!==8||!/^[0-9a-fA-F]{8}$/.test(c))throw new Error(`Invalid \\U escape at line ${t}`);n+=String.fromCodePoint(parseInt(c,16)),i+=9;break}default:throw new Error(`Unknown escape sequence \\${a} at line ${t}`)}continue}if(s==='"'){let a=e.slice(i+1);return{value:n,rest:a}}n+=s}throw new Error(`Unterminated string literal at line ${t}`)}findClosingBracket(e,t,n){let i=0;for(let s=0;s<e.length;s++){let a=e[s];if(a===t){i++;continue}if(a===n&&(i--,i===0))return s}return-1}};au.NTriplesParser=qd});var _g=y(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.TurtleParser=void 0;var Ds=_n(),Px=Bd(),Fx={rdf:Ds.Namespace.RDF.iri.value,rdfs:Ds.Namespace.RDFS.iri.value,owl:Ds.Namespace.OWL.iri.value,xsd:Ds.Namespace.XSD.iri.value,exo:Ds.Namespace.EXO.iri.value,ems:Ds.Namespace.EMS.iri.value},Ix=/^@prefix\s+([a-zA-Z_][\w-]*):\s*<([^>]+)>\s*\.$/,Ud=class{static{o(this,"TurtleParser")}constructor(){this.nTriplesParser=new Px.NTriplesParser}parse(e,t={}){let n={...Fx,...t.prefixes??{}},i=this.collectStatements(e),s=[];return i.forEach(({statement:a,lineNumber:c})=>{if(this.isPrefixStatement(a)){let f=a.match(Ix);if(!f)throw new Error(`Invalid prefix declaration at line ${c}`);let[,l,h]=f;n[l]=h;return}if(a.includes(";")||a.includes(","))throw new Error(`Complex Turtle statements with ';' or ',' are not supported (line ${c})`);let u=this.normalizeShortcuts(a);s.push(this.nTriplesParser.parseLine(u,c,{prefixes:n,strict:!1}))}),s}collectStatements(e){let t=e.split(/\r?\n/),n=[],i="",s=0;if(t.forEach((a,c)=>{let u=a.trim();!u||u.startsWith("#")||(i||(s=c+1),i=i?`${i} ${u}`:u,u.endsWith(".")&&(n.push({statement:i,lineNumber:s}),i=""))}),i)throw new Error(`Unterminated Turtle statement near line ${s}`);return n}isPrefixStatement(e){return e.startsWith("@prefix")}normalizeShortcuts(e){return e.includes(" a ")?e.replace(/\sa\s/g," rdf:type "):e}};ou.TurtleParser=Ud});var vg=y(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.RDFSerializer=void 0;var Rs=Vi(),es=pt(),Ns=jt(),$d=Or(),Sn=_n(),Dx=dg(),Rx=jd(),Nx=gg(),kx=_g(),jx=Bd(),Mx=1024,Lx=`
99
99
  `,Vx={rdf:Sn.Namespace.RDF.iri.value,rdfs:Sn.Namespace.RDFS.iri.value,owl:Sn.Namespace.OWL.iri.value,xsd:Sn.Namespace.XSD.iri.value,exo:Sn.Namespace.EXO.iri.value,ems:Sn.Namespace.EMS.iri.value},Wd=class{static{o(this,"RDFSerializer")}constructor(e){this.store=e,this.turtleSerializer=new Dx.TurtleSerializer,this.nTriplesSerializer=new Rx.NTriplesSerializer,this.jsonldSerializer=new Nx.JSONLDSerializer,this.turtleParser=new kx.TurtleParser,this.nTriplesParser=new jx.NTriplesParser}async serialize(e,t={}){let n=await this.store.match();return this.serializeTriples(n,e,t)}serializeTriples(e,t,n={}){switch(t){case"turtle":return this.turtleSerializer.serialize(e,{prefixes:n.prefixes,includeDefaultPrefixes:n.includeDefaultPrefixes,newline:n.newline});case"n-triples":return this.nTriplesSerializer.serialize(e,{newline:n.newline});case"json-ld":return this.jsonldSerializer.serialize(e,{context:n.prefixes,pretty:n.pretty,indent:n.indent});default:throw new Error(`Unsupported serialization format: ${t}`)}}stream(e,t={}){let n=t.newline??Lx,i=t.batchSize??Mx,s=t.includeDefaultPrefixes,a=t.prefixes,c=this,u=!1,f=[],l=[],h=0,p=o(async()=>{if(!u){if(l=await c.store.match(),e==="json-ld"){let b=c.jsonldSerializer.toDocument(l,{context:a,pretty:!1});f.push(...c.buildJsonLdChunks(b))}else if(e==="turtle"){let b=c.turtleSerializer.serializePrefixes(c.composePrefixes(a,s),n);b&&f.push(`${b}${n}${n}`)}u=!0}},"ensureInitialized");return{async next(){if(await p(),f.length>0)return{value:f.shift(),done:!1};if(e==="json-ld")return{value:void 0,done:!0};if(h>=l.length)return{value:void 0,done:!0};let b=l.slice(h,h+i);h+=b.length;let v="";if(e==="turtle"){let x=c.turtleSerializer.serializeTriplesOnly(b,n);x&&(v=`${x}${n}`)}else e==="n-triples"&&(v=c.nTriplesSerializer.serializeChunk(b,n));return v?{value:v,done:!1}:this.next()},async return(){return f=[],l=[],h=0,{value:void 0,done:!0}},[Symbol.asyncIterator](){return this}}}async load(e,t,n={}){let i=this.parse(e,t,n);return n.mode!=="append"&&await this.store.clear(),await this.store.addAll(i),i.length}parse(e,t,n={}){switch(t){case"turtle":return this.turtleParser.parse(e,this.buildTurtleParseOptions(n));case"n-triples":return this.nTriplesParser.parse(e,this.buildNTriplesParseOptions(n));case"json-ld":return this.parseJsonLd(e,n);default:throw new Error(`Unsupported serialization format: ${t}`)}}buildTurtleParseOptions(e){return{prefixes:this.composePrefixes(e.prefixes,!0),strict:e.strict}}buildNTriplesParseOptions(e){return{prefixes:this.composePrefixes(e.prefixes,!0),strict:e.strict}}composePrefixes(e,t){return t??!0?{...Vx,...e??{}}:{...e??{}}}parseJsonLd(e,t){let n;try{n=JSON.parse(e)}catch(f){throw new Error(`Invalid JSON-LD document: ${f.message}`)}let i=this.composePrefixes(t.prefixes,!0),s=this.extractContext(n),a={...i,...s},c=this.extractGraph(n),u=[];return c.forEach((f,l)=>{if(!f||typeof f!="object"||Array.isArray(f))throw new Error(`Invalid JSON-LD node at index ${l}`);let h=this.parseSubjectFromNode(f,a,l),p=Object.entries(f);for(let[g,b]of p){if(g==="@id"||g==="@context")continue;if(g==="@type"){this.collectTypeTriples(h,b,u,a);continue}let v=this.expandTerm(g,a),x=new es.IRI(v);this.collectTriplesForValue(h,x,b,u,a)}}),u}extractContext(e){if(!e||typeof e!="object"||Array.isArray(e))return{};let t=e["@context"];if(!t||typeof t!="object"||Array.isArray(t))return{};let n={};return Object.entries(t).forEach(([i,s])=>{typeof s=="string"&&(n[i]=s)}),n}extractGraph(e){if(Array.isArray(e))return e;if(!e||typeof e!="object")return[];let t=e["@graph"];return Array.isArray(t)?t:[e]}parseSubjectFromNode(e,t,n){let i=e["@id"];if(typeof i=="string"){if(i.startsWith("_:"))return new $d.BlankNode(i.slice(2));if(this.isAbsoluteIri(i))return new es.IRI(i);let s=this.expandTerm(i,t);return new es.IRI(s)}return new $d.BlankNode(`jsonld_${n}`)}collectTypeTriples(e,t,n,i){let s=Sn.Namespace.RDF.term("type");(Array.isArray(t)?t:[t]).forEach(c=>{if(typeof c!="string")throw new Error("Invalid @type value in JSON-LD node");let u=this.expandTerm(c,i);n.push(new Rs.Triple(e,s,new es.IRI(u)))})}collectTriplesForValue(e,t,n,i,s){if(n!=null){if(Array.isArray(n)){n.forEach(a=>this.collectTriplesForValue(e,t,a,i,s));return}if(typeof n=="object"){let a=n;if(typeof a["@id"]=="string"){let c=this.parseIdNode(a["@id"],s);i.push(new Rs.Triple(e,t,c));return}if(a["@value"]!==void 0){let c=this.parseLiteralObject(a,s);i.push(new Rs.Triple(e,t,c));return}}if(typeof n=="string"){i.push(new Rs.Triple(e,t,new Ns.Literal(n)));return}if(typeof n=="number"){let a=Number.isInteger(n)?Sn.Namespace.XSD.term("integer"):Sn.Namespace.XSD.term("decimal");i.push(new Rs.Triple(e,t,new Ns.Literal(n.toString(),a)));return}if(typeof n=="boolean"){let a=Sn.Namespace.XSD.term("boolean");i.push(new Rs.Triple(e,t,new Ns.Literal(n.toString(),a)));return}throw new Error("Unsupported JSON-LD value encountered")}}parseIdNode(e,t){if(e.startsWith("_:"))return new $d.BlankNode(e.slice(2));if(this.isAbsoluteIri(e))return new es.IRI(e);let n=this.expandTerm(e,t);return new es.IRI(n)}parseLiteralObject(e,t){let n=e["@value"];if(typeof n!="string")throw new Error("JSON-LD literal values must be strings");if(typeof e["@language"]=="string")return new Ns.Literal(n,void 0,e["@language"]);if(typeof e["@type"]=="string"){let i=this.expandTerm(e["@type"],t);return new Ns.Literal(n,new es.IRI(i))}return new Ns.Literal(n)}expandTerm(e,t){if(this.isAbsoluteIri(e))return e;let n=e.indexOf(":");if(n>0){let s=e.slice(0,n),a=e.slice(n+1),c=t[s];if(!c)throw new Error(`Unknown prefix "${s}" in JSON-LD document`);return`${c}${a}`}let i=t["@vocab"];if(i)return`${i}${e}`;throw new Error(`Unable to expand JSON-LD term "${e}"`)}isAbsoluteIri(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)}buildJsonLdChunks(e){let t=[],n=JSON.stringify(e["@context"]);return t.push(`{"@context":${n},"@graph":[`),e["@graph"].forEach((i,s)=>{let a=JSON.stringify(i);s>0?t.push(`,${a}`):t.push(a)}),t.push(`]}
100
- `),t}};cu.RDFSerializer=Wd});var Sg=y(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.TransactionError=fi.TripleNotFoundError=fi.TripleAlreadyExistsError=void 0;var Gd=class extends Error{static{o(this,"TripleAlreadyExistsError")}constructor(e){super(`Triple already exists: ${e.toString()}`),this.name="TripleAlreadyExistsError"}};fi.TripleAlreadyExistsError=Gd;var Hd=class extends Error{static{o(this,"TripleNotFoundError")}constructor(e){super(`Triple not found: ${e.toString()}`),this.name="TripleNotFoundError"}};fi.TripleNotFoundError=Hd;var zd=class extends Error{static{o(this,"TransactionError")}constructor(e){super(e),this.name="TransactionError"}};fi.TransactionError=zd});var Yd=y(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.LRUCache=void 0;var Kd=class{static{o(this,"LRUCache")}constructor(e){this.maxSize=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){let n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}};uu.LRUCache=Kd});var bg=y(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.InMemoryTripleStore=void 0;var hi=Sg(),qx=pt(),Bx=Or(),Ux=jt(),$x=_n(),Wx=Yd(),Gx=$x.Namespace.XSD.term("string").value,Qd=class{static{o(this,"InMemoryTripleStore")}constructor(){this.triples=new Map,this.spo=new Map,this.sop=new Map,this.pso=new Map,this.pos=new Map,this.osp=new Map,this.ops=new Map,this.queryCache=new Wx.LRUCache(1e3)}async add(e){let t=this.getTripleKey(e);if(this.triples.has(t))return;this.triples.set(t,e);let n=this.getNodeKey(e.subject),i=this.getNodeKey(e.predicate),s=this.getNodeKey(e.object);this.addToIndex(this.spo,n,i,s),this.addToIndex(this.sop,n,s,i),this.addToIndex(this.pso,i,n,s),this.addToIndex(this.pos,i,s,n),this.addToIndex(this.osp,s,n,i),this.addToIndex(this.ops,s,i,n),this.queryCache.clear()}async remove(e){let t=this.getTripleKey(e);if(!this.triples.has(t))return!1;this.triples.delete(t);let n=this.getNodeKey(e.subject),i=this.getNodeKey(e.predicate),s=this.getNodeKey(e.object);return this.removeFromIndex(this.spo,n,i,s),this.removeFromIndex(this.sop,n,s,i),this.removeFromIndex(this.pso,i,n,s),this.removeFromIndex(this.pos,i,s,n),this.removeFromIndex(this.osp,s,n,i),this.removeFromIndex(this.ops,s,i,n),this.queryCache.clear(),!0}async has(e){let t=this.getTripleKey(e);return this.triples.has(t)}async match(e,t,n){let i=this.getMatchCacheKey(e,t,n),s=this.queryCache.get(i);if(s!==void 0)return s;let a;return!e&&!t&&!n?a=Array.from(this.triples.values()):e&&t&&n?a=this.matchSPO(e,t,n):e&&t?a=this.matchSP(e,t):e&&n?a=this.matchSO(e,n):t&&n?a=this.matchPO(t,n):e?a=this.matchS(e):t?a=this.matchP(t):n?a=this.matchO(n):a=[],this.queryCache.set(i,a),a}async addAll(e){for(let t of e)await this.add(t)}async removeAll(e){let t=0;for(let n of e)await this.remove(n)&&t++;return t}async clear(){this.triples.clear(),this.spo.clear(),this.sop.clear(),this.pso.clear(),this.pos.clear(),this.osp.clear(),this.ops.clear(),this.queryCache.clear()}async count(){return this.triples.size}async subjects(){let e=new Set;for(let t of this.triples.values())e.add(t.subject);return Array.from(e)}async predicates(){let e=new Set;for(let t of this.triples.values())e.add(t.predicate);return Array.from(e)}async objects(){let e=new Set;for(let t of this.triples.values())e.add(t.object);return Array.from(e)}async beginTransaction(){return new Jd(this)}matchSPO(e,t,n){let i=this.getNodeKey(e),s=this.getNodeKey(t),a=this.getNodeKey(n),c=this.spo.get(i);if(!c)return[];let u=c.get(s);if(!u)return[];if(u.has(a)){let f=this.buildTripleKey(i,s,a),l=this.triples.get(f);return l?[l]:[]}return[]}matchSP(e,t){let n=this.getNodeKey(e),i=this.getNodeKey(t),s=this.spo.get(n);if(!s)return[];let a=s.get(i);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(n,i,c))):[]}matchSO(e,t){let n=this.getNodeKey(e),i=this.getNodeKey(t),s=this.sop.get(n);if(!s)return[];let a=s.get(i);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(n,c,i))):[]}matchPO(e,t){let n=this.getNodeKey(e),i=this.getNodeKey(t),s=this.pos.get(n);if(!s)return[];let a=s.get(i);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(c,n,i))):[]}matchS(e){let t=this.getNodeKey(e),n=this.spo.get(t);if(!n)return[];let i=[];for(let[s,a]of n.entries())for(let c of a)i.push(this.buildTripleKey(t,s,c));return this.getTriplesByKeys(i)}matchP(e){let t=this.getNodeKey(e),n=this.pso.get(t);if(!n)return[];let i=[];for(let[s,a]of n.entries())for(let c of a)i.push(this.buildTripleKey(s,t,c));return this.getTriplesByKeys(i)}matchO(e){let t=this.getNodeKey(e),n=this.osp.get(t);if(!n)return[];let i=[];for(let[s,a]of n.entries())for(let c of a)i.push(this.buildTripleKey(s,c,t));return this.getTriplesByKeys(i)}getTriplesByKeys(e){let t=[];for(let n of e){let i=this.triples.get(n);i&&t.push(i)}return t}addToIndex(e,t,n,i){e.has(t)||e.set(t,new Map);let s=e.get(t);s.has(n)||s.set(n,new Set),s.get(n).add(i)}removeFromIndex(e,t,n,i){let s=e.get(t);if(!s)return;let a=s.get(n);a&&(a.delete(i),a.size===0&&s.delete(n),s.size===0&&e.delete(t))}getTripleKey(e){let t=this.getNodeKey(e.subject),n=this.getNodeKey(e.predicate),i=this.getNodeKey(e.object);return this.buildTripleKey(t,n,i)}buildTripleKey(e,t,n){return`${e}|${t}|${n}`}getNodeKey(e){if(e instanceof qx.IRI)return`i:${e.value}`;if(e instanceof Bx.BlankNode)return`b:${e.id}`;if(e instanceof Ux.Literal){let t=`l:${e.value}`;return e.datatype&&e.datatype.value!==Gx?t+=`^^${e.datatype.value}`:e.language&&(t+=`@${e.language}`),t}return""}getMatchCacheKey(e,t,n){let i=e?this.getNodeKey(e):"?",s=t?this.getNodeKey(t):"?",a=n?this.getNodeKey(n):"?";return`${i}|${s}|${a}`}};lu.InMemoryTripleStore=Qd;var Jd=class{static{o(this,"InMemoryTransaction")}constructor(e){this.store=e,this.operations=[],this.committed=!1,this.rolledBack=!1}async add(e){if(this.committed)throw new hi.TransactionError("Transaction already committed");if(this.rolledBack)throw new hi.TransactionError("Transaction already rolled back");this.operations.push({type:"add",triple:e})}async remove(e){if(this.committed)throw new hi.TransactionError("Transaction already committed");if(this.rolledBack)throw new hi.TransactionError("Transaction already rolled back");return this.operations.push({type:"remove",triple:e}),!0}async commit(){if(this.committed)throw new hi.TransactionError("Transaction already committed");if(this.rolledBack)throw new hi.TransactionError("Transaction already rolled back");for(let e of this.operations)e.type==="add"?await this.store.add(e.triple):await this.store.remove(e.triple);this.committed=!0,this.operations=[]}async rollback(){if(this.committed)throw new hi.TransactionError("Transaction already committed");if(this.rolledBack)throw new hi.TransactionError("Transaction already rolled back");this.operations=[],this.rolledBack=!0}}});var Eg=y(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.RDFVocabularyMapper=void 0;var _r=Vi(),wg=pt(),he=_n(),Xd=class{static{o(this,"RDFVocabularyMapper")}constructor(){this.propertyMappings=new Map([["exo__Instance_class",he.Namespace.RDF.term("type")],["exo__Asset_isDefinedBy",he.Namespace.RDFS.term("isDefinedBy")],["exo__Class_superClass",he.Namespace.RDFS.term("subClassOf")],["exo__Property_range",he.Namespace.RDFS.term("range")],["exo__Property_domain",he.Namespace.RDFS.term("domain")],["exo__Property_superProperty",he.Namespace.RDFS.term("subPropertyOf")]])}generateClassHierarchyTriples(){let e=[];return e.push(new _r.Triple(he.Namespace.EXO.term("Asset"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDFS.term("Resource"))),e.push(new _r.Triple(he.Namespace.EXO.term("Class"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDFS.term("Class"))),e.push(new _r.Triple(he.Namespace.EXO.term("Property"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDF.term("Property"))),e.push(new _r.Triple(he.Namespace.EMS.term("Task"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e.push(new _r.Triple(he.Namespace.EMS.term("Project"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e.push(new _r.Triple(he.Namespace.EMS.term("Area"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e}generatePropertyHierarchyTriples(){let e=[];return e.push(new _r.Triple(he.Namespace.EXO.term("Instance_class"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDF.term("type"))),e.push(new _r.Triple(he.Namespace.EXO.term("Asset_isDefinedBy"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("isDefinedBy"))),e.push(new _r.Triple(he.Namespace.EXO.term("Class_superClass"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("subClassOf"))),e.push(new _r.Triple(he.Namespace.EXO.term("Property_range"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("range"))),e.push(new _r.Triple(he.Namespace.EXO.term("Property_domain"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("domain"))),e.push(new _r.Triple(he.Namespace.EXO.term("Property_superProperty"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("subPropertyOf"))),e}generateMappedTriple(e,t,n){let i=this.propertyMappings.get(t);if(!i)return null;let s;if(n instanceof wg.IRI)s=n;else{let a=n.match(/^(ems|exo)__(.+)$/);if(a){let[,c,u]=a;s=(c==="ems"?he.Namespace.EMS:he.Namespace.EXO).term(u)}else s=new wg.IRI(n)}return new _r.Triple(e,i,s)}hasMappingFor(e){return this.propertyMappings.has(e)}};fu.RDFVocabularyMapper=Xd});var ep=y(nn=>{"use strict";var Hx=nn&&nn.__decorate||function(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(a=r[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},zx=nn&&nn.__metadata||function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Kx=nn&&nn.__param||function(r,e){return function(t,n){e(t,n,r)}};Object.defineProperty(nn,"__esModule",{value:!0});nn.NoteToRDFConverter=void 0;var Tg=Ke(),hu=Vi(),Yx=pt(),bn=jt(),Gn=_n(),Qx=rt(),Zd=class{static{o(this,"NoteToRDFConverter")}constructor(e){this.vault=e,this.OBSIDIAN_VAULT_SCHEME="obsidian://vault/"}async convertNote(e){let t=this.vault.getFrontmatter(e);if(!t)return[];let n=[],i=this.notePathToIRI(e.path),s=Gn.Namespace.EXO.term("Asset_fileName");n.push(new hu.Triple(i,s,new bn.Literal(e.basename)));for(let[a,c]of Object.entries(t)){if(!this.isExocortexProperty(a))continue;let u=this.propertyKeyToIRI(a),f=Array.isArray(c)?c:[c];for(let l of f)if(a==="exo__Instance_class"){let h=this.valueToClassURI(l);n.push(new hu.Triple(i,u,h))}else{let h=await this.valueToRDFObject(l,e);n.push(new hu.Triple(i,u,h))}if(a==="exo__Instance_class")for(let l of f){let h=this.expandClassValue(l);if(h){let p=Gn.Namespace.RDF.term("type");n.push(new hu.Triple(i,p,h))}}}return n}async convertVault(){let e=this.vault.getAllFiles(),t=[];for(let n of e)try{let i=await this.convertNote(n);t.push(...i)}catch(i){throw console.error(`\u274C Error converting note: ${n.path}`),console.error(` Error: ${i instanceof Error?i.message:String(i)}`),i}return t}notePathToIRI(e){let t=encodeURI(e);return new Yx.IRI(`${this.OBSIDIAN_VAULT_SCHEME}${t}`)}isExocortexProperty(e){return e.startsWith("exo__")||e.startsWith("ems__")}propertyKeyToIRI(e){if(e.startsWith("exo__")){let t=e.substring(5);return Gn.Namespace.EXO.term(t)}if(e.startsWith("ems__")){let t=e.substring(5);return Gn.Namespace.EMS.term(t)}throw new Error(`Invalid property key: ${e}`)}async valueToRDFObject(e,t){if(typeof e=="string"){let n=this.removeQuotes(e),i=this.extractWikilink(n);if(i){let s=this.vault.getFirstLinkpathDest(i,t.path);if(s)return this.notePathToIRI(s.path);if(this.isClassReference(i)){let a=this.expandClassValue(i);if(a)return a}return new bn.Literal(n)}if(this.isClassReference(n)){let s=this.expandClassValue(n);if(s)return s}return this.isISO8601DateTime(n)?new bn.Literal(n,Gn.Namespace.XSD.term("dateTime")):new bn.Literal(n)}return typeof e=="boolean"?new bn.Literal(e.toString()):typeof e=="number"?new bn.Literal(e.toString(),Gn.Namespace.XSD.term("decimal")):e instanceof Date?new bn.Literal(e.toISOString(),Gn.Namespace.XSD.term("dateTime")):new bn.Literal(String(e))}isISO8601DateTime(e){return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-]\d{2}:\d{2})?$/.test(e)}removeQuotes(e){let t=e.trim();return t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?t.substring(1,t.length-1):e}extractWikilink(e){let t=e.match(/^\[\[([^\]]+)\]\]$/);return t?t[1]:null}valueToClassURI(e){if(typeof e!="string")return new bn.Literal(String(e));let t=this.removeQuotes(e),i=this.extractWikilink(t)||t,s=this.expandClassValue(i);return s||new bn.Literal(t)}isClassReference(e){return(e.startsWith("ems__")||e.startsWith("exo__"))&&!/\s/.test(e)}expandClassValue(e){let t=this.removeQuotes(e);if(t.startsWith("ems__")){let n=t.substring(5);return Gn.Namespace.EMS.term(n)}if(t.startsWith("exo__")){let n=t.substring(5);return Gn.Namespace.EXO.term(n)}return null}};nn.NoteToRDFConverter=Zd;nn.NoteToRDFConverter=Zd=Hx([(0,Tg.injectable)(),Kx(0,(0,Tg.inject)(Qx.DI_TOKENS.IVaultAdapter)),zx("design:paramtypes",[Object])],Zd)});var tp=y((kk,Ag)=>{var ks=class{static{o(this,"Wildcard")}constructor(){return Jx||this}equals(e){return e&&this.termType===e.termType}};Object.defineProperty(ks.prototype,"value",{enumerable:!0,value:"*"});Object.defineProperty(ks.prototype,"termType",{enumerable:!0,value:"Wildcard"});var Jx=new ks;Ag.exports.Wildcard=ks});var Og=y((Mk,xg)=>{var Xx=(function(){var r=o(function(A,E,O,I){for(O=O||{},I=A.length;I--;O[A[I]]=E);return O},"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],n=[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],u=[28,29,53],f=[28,53],l=[1,42],h=[1,45],p=[1,41],g=[1,44],b=[123,126],v=[1,67],x=[39,45,87],P=[13,16,45,197,224,308],F=[1,87],L=[2,281],$=[1,86],Y=[13,16,45,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],Ce=[6,28,29,53,63,70,73,81,83,85],Ye=[6,13,16,28,29,53,63,70,73,81,83,85,87,308],ut=[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],B=[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],ce=[13,16,308],xe=[112,132,327,334],Ze=[13,16,112,132,308],$e=[1,111],He=[1,117],De=[112,132,327,328,334],Ne=[13,16,112,132,308,328],Pe=[28,29,45,53,87],G=[1,138],R=[1,151],ke=[1,128],qe=[1,127],j=[1,129],le=[1,140],Se=[1,141],W=[1,142],be=[1,143],we=[1,144],ge=[1,145],Ee=[1,147],ue=[1,148],ye=[2,457],fe=[1,158],_e=[1,159],Te=[1,160],J=[1,152],te=[1,153],re=[1,156],X=[1,171],Z=[1,172],ee=[1,173],Q=[1,174],ne=[1,175],ie=[1,176],ae=[1,167],U=[1,168],H=[1,169],oe=[1,170],Re=[1,157],Oe=[1,166],Ae=[1,161],_=[1,162],S=[1,163],w=[1,164],C=[1,165],q=[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],We=[1,195],Qe=[6,31,73,81,83,85],me=[2,285],N=[1,199],k=[1,201],M=[6,31,70,73,81,83,85],V=[2,283],de=[1,207],je=[1,218],Me=[1,223],Tt=[1,219],ar=[1,225],mr=[1,226],Ht=[1,224],s1=[6,63,70,73,81,83,85],a1=[1,236],o1=[2,334],c1=[1,243],u1=[1,241],At=[6,193],Mo=[2,349],l1=[2,339],ri=[28,128],f1=[47,48,193,272],Lo=[47,48,193,242,272],ps=[47,48,193,242,246,272],ms=[47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,341,342,343,344,345,346],_t=[39,47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,338,341,342,343,344,345,346],h1=[1,271],d1=[1,270],lt=[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],p1=[1,281],m1=[1,280],zt=[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],ya=[45,89],Vo=[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],qo=[13,16,31,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Bo=[31,89],Uo=[48,87],Pi=[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],fn=[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],g1=[1,313],gs=[6,85],Vl=[6,31,81,83,85],y1=[2,361],In=[2,353],Fi=[1,343],_a=[31,112,335],Dn=[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],ql=[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],_1=[6,109,193],Ii=[31,112],ft=[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],Bl=[1,390],Ul=[1,391],ni=[13,16,87,197,308,314],v1=[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],$o=[1,417],Wo=[1,418],S1=[13,16,48,197,229,308],ii=[6,31,85],b1=[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],$l=[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],Di=[29,31,85,112,159,160,161,163,164],Go=[1,443],Ho=[1,444],w1=[1,449],Ri=[31,112,193,232,318,335],zo=[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],E1=[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],Wl=[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],va=[13,16,31,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Sa=[31,45],T1=[1,507],A1=[1,508],x1=[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],Ko=[29,31,85,112,159,160,161,163,164,335],Ni=[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],O1=[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],C1=[2,352],Gl=[13,16,197,308,314],P1=[1,565],ys=[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],F1=[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],Rn=[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],I1=[13,16,87,308],Nn=[2,364],_s=[29,31,85,112,159,160,161,163,164,193,232,318,335],Yo=[31,112,193,232,272,318,335],kn=[2,359],D1=[13,16,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Qo=[29,31,85,112,159,160,161,163,164,193,232,272,318,335],R1=[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],N1=[2,347],Hl={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(E,O,I,z,pe,d,Yt){var m=d.length-1;switch(pe){case 1:if(d[m-1]=d[m-1]||{},ve.base&&(d[m-1].base=ve.base),ve.base="",d[m-1].prefixes=ve.prefixes,ve.prefixes=null,ve.pathOnly){if(d[m-1].type==="path"||"termType"in d[m-1])return d[m-1];throw new Error("Received full SPARQL query in path only mode")}else if(d[m-1].type==="path"||"termType"in d[m-1])throw new Error("Received only path in full SPARQL mode");if(d[m-1].type==="update"){let Ge={};for(let tt of d[m-1].updates)if(tt.updateType==="insert"){let Le={};for(let Ue of tt.insert)if(Ue.type==="bgp"||Ue.type==="graph")for(let or of Ue.triples)or.subject.termType==="BlankNode"&&(Le[or.subject.value]=!0),or.predicate.termType==="BlankNode"&&(Le[or.predicate.value]=!0),or.object.termType==="BlankNode"&&(Le[or.object.value]=!0);for(let Ue of Object.keys(Le)){if(Ge[Ue])throw new Error("Detected reuse blank node across different INSERT DATA clauses");Ge[Ue]=!0}}}return d[m-1];case 2:this.$={...d[m-1],...d[m],type:"query"};break;case 4:ve.base=ba(d[m]);break;case 5:ve.prefixes||(ve.prefixes={}),d[m-1]=d[m-1].substr(0,d[m-1].length-1),d[m]=ba(d[m]),ve.prefixes[d[m-1]]=d[m];break;case 6:this.$={...d[m-3],...Mi(d[m-2]),...d[m-1],...d[m]};break;case 7:if(!ve.skipValidation&&(ef(d[m-3].variables.map(tt=>Zl(tt.expression))).some(tt=>tt.aggregation==="count"&&!(tt.expression instanceof Jo))||d[m].group)){for(let tt of d[m-3].variables)if(tt.termType==="Variable"){if(!d[m].group||!d[m].group.map(Le=>ws(Le)).includes(ws(tt)))throw Error("Projection of ungrouped variable (?"+ws(tt)+")")}else if(Zl(tt.expression).length===0){let Le=GS(tt.expression);for(let Ue of Le)if(!d[m].group||!d[m].group.map||!d[m].group.map(or=>ws(or)).includes(ws(Ue)))throw Error("Use of ungrouped variable in projection of operation (?"+ws(Ue)+")")}}let mn=d[m-1].where.filter(Ge=>Ge.type==="query");if(mn.length>0){let Ge=d[m-3].variables.filter(Le=>Le.variable&&Le.variable.value).map(Le=>Le.variable.value),tt=ef(mn.map(Le=>Le.variables)).map(Le=>Le.value||Le.variable.value);for(let Le of Ge)if(tt.indexOf(Le)>=0)throw Error("Target id of 'AS' (?"+Le+") already used in subquery")}this.$=at(d[m-3],Mi(d[m-2]),d[m-1],d[m]);break;case 8:this.$=at({queryType:"CONSTRUCT",template:d[m-3]},Mi(d[m-2]),d[m-1],d[m]);break;case 9:this.$=at({queryType:"CONSTRUCT",template:d[m-2]=d[m-2]?d[m-2].triples:[]},Mi(d[m-5]),{where:[{type:"bgp",triples:ji([],d[m-2])}]},d[m]);break;case 10:this.$=at({queryType:"DESCRIBE",variables:d[m-3]==="*"?[new Jo]:d[m-3]},Mi(d[m-2]),d[m-1],d[m]);break;case 11:this.$=at({queryType:"ASK"},Mi(d[m-2]),d[m-1],d[m]);break;case 12:this.$=at(d[m-1],{variables:[new Jo]});break;case 13:let xa=d[m].map(Ge=>Ge.value||Ge.variable.value),Es=HS(xa);if(Es.length>0)throw Error("Two or more of the resulting columns have the same name (?"+Es[0]+")");this.$=at(d[m-1],{variables:d[m]});break;case 14:this.$=at({queryType:"SELECT"},d[m]&&(d[m-1]=Kt(d[m]),d[m]={},d[m][d[m-1]]=!0,d[m]));break;case 16:case 27:this.$=vs(d[m-3],{variable:d[m-1]});break;case 17:case 18:this.$=at(d[m-3],d[m-2],d[m-1],d[m],{type:"query"});break;case 19:case 58:this.$={iri:d[m],named:!!d[m-1]};break;case 20:this.$={where:d[m].patterns};break;case 21:this.$=at(d[m-1],d[m]);break;case 22:this.$=at(d[m-2],d[m-1],d[m]);break;case 23:this.$={group:d[m]};break;case 24:case 25:case 28:case 31:case 33:case 34:this.$=vs(d[m]);break;case 26:this.$=vs(d[m-1]);break;case 29:this.$={having:d[m]};break;case 30:this.$={order:d[m]};break;case 32:this.$=vs(d[m],{descending:!0});break;case 35:this.$={limit:bs(d[m])};break;case 36:this.$={offset:bs(d[m])};break;case 37:this.$={limit:bs(d[m-2]),offset:bs(d[m])};break;case 38:this.$={limit:bs(d[m]),offset:bs(d[m-2])};break;case 39:case 43:this.$={type:"values",values:d[m]};break;case 40:case 84:this.$=d[m-1].map(Ge=>({[d[m-3]]:Ge}));break;case 41:case 85:this.$=d[m-1].map(()=>({}));break;case 42:case 86:var pn=d[m-4].length;d[m-4]=d[m-4].map(zl),this.$=d[m-1].map(function(Ge){if(Ge.length!==pn)throw Error("Inconsistent VALUES length");for(var tt={},Le=0;Le<pn;Le++)tt["?"+d[m-4][Le].value]=Ge[Le];return tt});break;case 44:case 65:case 100:case 126:case 175:this.$=d[m-1];break;case 45:this.$={type:"update",updates:jn(d[m-2],d[m-1])};break;case 46:this.$=at({type:"load",silent:!!d[m-2],source:d[m-1]},d[m]&&{destination:d[m]});break;case 47:this.$={type:Kt(d[m-2]),silent:!!d[m-1],graph:d[m]};break;case 48:this.$={type:Kt(d[m-4]),silent:!!d[m-3],source:d[m-2],destination:d[m]};break;case 49:this.$={type:"create",silent:!!d[m-2],graph:{type:"graph",name:d[m]}};break;case 50:this.$={updateType:"insert",insert:G1(d[m])};break;case 51:this.$={updateType:"delete",delete:nf(G1(d[m]))};break;case 52:this.$={updateType:"deletewhere",delete:nf(d[m])};break;case 53:this.$={updateType:"insertdelete",...d[m-4],...d[m-3],...Mi(d[m-2],"using"),where:d[m].patterns};break;case 54:case 57:case 62:case 167:case 191:case 236:this.$=d[m];break;case 55:this.$={delete:nf(d[m-1]),insert:d[m]||[]};break;case 56:this.$={delete:[],insert:d[m]};break;case 59:this.$={graph:d[m]};break;case 60:this.$={type:"graph",default:!0};break;case 61:case 63:this.$={type:"graph",name:d[m]};break;case 64:this.$={[Kt(d[m])]:!0};break;case 66:this.$=d[m-1]?hn(d[m],[d[m-1]]):hn(d[m]);break;case 67:var Ta=at(d[m-3]||{triples:[]},{type:"graph",name:d[m-5]});this.$=d[m]?[Ta,d[m]]:[Ta];break;case 68:case 73:this.$={type:"bgp",triples:hn(d[m-2],[d[m-1]])};break;case 69:this.$={type:"group",patterns:[d[m-1]]};break;case 70:for(let Ge of d[m-1].filter(tt=>tt.type==="bind")){let tt=d[m-1].indexOf(Ge),Le=new Set;for(let Ue of d[m-1].slice(0,tt))(Ue.type==="group"||Ue.type==="bgp")&&$1(Ue).forEach(or=>Le.add(or));if(Le.has(Ge.variable.value))throw Error("Variable used to bind is already bound (?"+Ge.variable.value+")")}this.$={type:"group",patterns:d[m-1]};break;case 71:this.$=d[m-1]?hn([d[m-1]],d[m]):hn(d[m]);break;case 72:this.$=d[m]?[d[m-2],d[m]]:d[m-2];break;case 75:this.$=at(d[m],{type:"optional"});break;case 76:this.$=at(d[m],{type:"minus"});break;case 77:this.$=at(d[m],{type:"graph",name:d[m-1]});break;case 78:this.$=at(d[m],{type:"service",name:d[m-1],silent:!!d[m-2]});break;case 79:this.$={type:"filter",expression:d[m]};break;case 80:this.$={type:"bind",variable:d[m-1],expression:d[m-3]};break;case 89:this.$=Ea(d[m]);break;case 90:this.$=void 0;break;case 91:this.$=d[m-1].length?{type:"union",patterns:hn(d[m-1].map(Yl),[Yl(d[m])])}:d[m];break;case 95:this.$={...d[m],function:d[m-1]};break;case 96:this.$={type:"functionCall",args:[]};break;case 97:this.$={type:"functionCall",args:jn(d[m-2],d[m-1]),distinct:!!d[m-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.$=jn(d[m-2],d[m-1]);break;case 101:this.$=hn(d[m-2],[d[m-1]]);break;case 102:case 112:this.$=rf(d[m].map(Ge=>at(Mn(d[m-1]),Ge)));break;case 103:this.$=rf(ji(d[m].map(Ge=>at(Mn(d[m-1].entity),Ge)),d[m-1].triples));break;case 105:this.$=hn([d[m-1]],d[m]);break;case 106:this.$=hn(d[m]);break;case 107:this.$=Xl(d[m-1],d[m]);break;case 109:case 237:this.$=ve.factory.namedNode(kS);break;case 110:case 118:this.$=jn(d[m-1],d[m]);break;case 111:this.$=d[m]?{annotation:d[m],object:d[m-1]}:d[m-1];break;case 113:this.$=d[m]?rf(ji(d[m].map(Ge=>at(Mn(d[m-1].entity),Ge)),d[m-1].triples)):d[m-1].triples;break;case 114:this.$=Xl(...d[m-1],d[m]);break;case 116:this.$=Xl(...d[m]);break;case 117:case 159:case 163:this.$=[d[m-1],d[m]];break;case 119:this.$=d[m]?{object:d[m-1],annotation:d[m]}:d[m-1];break;case 120:this.$=d[m-1].length?Ss("|",jn(d[m-1],d[m])):d[m];break;case 121:this.$=d[m-1].length?Ss("/",jn(d[m-1],d[m])):d[m];break;case 122:this.$=d[m]?Ss(d[m],[d[m-1]]):d[m-1];break;case 123:this.$=d[m-1]?Ss(d[m-1],[d[m]]):d[m];break;case 125:case 131:this.$=Ss(d[m-1],[d[m]]);break;case 129:this.$=Ss("|",jn(d[m-2],d[m-1]));break;case 132:case 134:this.$=$S(d[m-1]);break;case 133:case 135:this.$=WS(d[m-1]);break;case 140:this.$={entity:d[m],triples:[]};break;case 145:this.$=zl(d[m]);break;case 149:this.$=ve.factory.namedNode(k1);break;case 151:case 153:case 158:case 162:this.$=Kl(d[m-1],d[m]);break;case 152:this.$=["||",d[m]];break;case 154:this.$=["&&",d[m]];break;case 156:this.$=xt(d[m-1],[d[m-2],d[m]]);break;case 157:this.$=xt(d[m-2]?"notin":"in",[d[m-3],d[m]]);break;case 160:this.$=["+",Kl(d[m-1],d[m])];break;case 161:var ec=dn(d[m-1].value.replace("-",""),d[m-1].datatype);this.$=["-",Kl(ec,d[m])];break;case 164:this.$=xt("UPLUS",[d[m]]);break;case 165:this.$=xt(d[m-1],[d[m]]);break;case 166:this.$=xt("UMINUS",[d[m]]);break;case 177:this.$=xt(Kt(d[m-1]));break;case 178:this.$=xt(Kt(d[m-3]),[d[m-1]]);break;case 179:this.$=Ea(xt(Kt(d[m-3]),[d[m-1]]));break;case 180:this.$=xt(Kt(d[m-5]),[d[m-3],d[m-1]]);break;case 181:this.$=xt(Kt(d[m-7]),[d[m-5],d[m-3],d[m-1]]);break;case 182:this.$=Ea(xt(Kt(d[m-7]),[d[m-5],d[m-3],d[m-1]]));break;case 183:this.$=xt(Kt(d[m-1]),d[m]);break;case 184:this.$=xt("bound",[zl(d[m-1])]);break;case 185:this.$=xt(d[m-1],[]);break;case 186:this.$=xt(d[m-3],[d[m-1]]);break;case 187:this.$=xt(d[m-2]?"notexists":"exists",[Yl(d[m])]);break;case 188:case 189:this.$=vs(d[m-1],{type:"aggregate",aggregation:Kt(d[m-4]),distinct:!!d[m-2]});break;case 190:this.$=vs(d[m-2],{type:"aggregate",aggregation:Kt(d[m-5]),distinct:!!d[m-3],separator:typeof d[m-1]=="string"?d[m-1]:" "});break;case 192:this.$=dn(d[m]);break;case 193:this.$=VS(d[m-1],Kt(d[m].substr(1)));break;case 194:this.$=dn(d[m-2],d[m]);break;case 195:case 204:this.$=dn(d[m],j1);break;case 196:case 205:this.$=dn(d[m],M1);break;case 197:case 206:this.$=dn(Kt(d[m]),L1);break;case 200:this.$=dn(d[m].toLowerCase(),LS);break;case 201:this.$=dn(d[m].substr(1),j1);break;case 202:this.$=dn(d[m].substr(1),M1);break;case 203:this.$=dn(d[m].substr(1).toLowerCase(),L1);break;case 207:case 208:this.$=U1(d[m],1);break;case 209:case 210:this.$=U1(d[m],3);break;case 211:this.$=ve.factory.namedNode(ba(d[m]));break;case 213:var tc=d[m].indexOf(":"),Aa=d[m].substr(0,tc),rc=ve.prefixes[Aa];if(!rc)throw new Error("Unknown prefix: "+Aa);var it=ba(rc+d[m].substr(tc+1));this.$=ve.factory.namedNode(it);break;case 214:if(d[m]=d[m].substr(0,d[m].length-1),!(d[m]in ve.prefixes))throw new Error("Unknown prefix: "+d[m]);var it=ba(ve.prefixes[d[m]]);this.$=ve.factory.namedNode(it);break;case 215:this.$=wa(d[m].replace(/^(_:)/,""));break;case 216:this.$=wa();break;case 217:case 218:case 232:this.$=Ea(Ql(d[m-3],d[m-2],d[m-1]));break;case 230:case 231:this.$=Ea(d[m-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:d[m-1].push(d[m]);break;case 259:case 269:case 291:case 293:case 295:case 301:case 305:case 371:case 424:case 426:this.$=[d[m]];break;case 308:d[m-3].push(d[m-2]);break;case 350:case 362:case 376:case 380:case 382:case 386:case 396:case 406:case 410:case 412:case 421:d[m-2].push(d[m-1]);break}},"anonymous"),table:[r(e,t,{3:1,4:2,10:3}),{1:[3]},r(n,[2,307],{5:4,7:5,321:6,214:7,8:8,96:9,215:10,17:11,21:12,97:16,38:17,6:[2,238],13:i,16:i,45:i,197:i,224:i,229:i,308:i,24:[1,13],32:[1,14],36:[1,15],41:s}),r([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]},r(c,[2,411],{216:28,217:29}),r(u,[2,249],{18:30}),r(u,[2,251],{22:31}),r(f,[2,255],{25:32,27:33,29:[1,34]}),{13:l,16:h,33:35,39:[1,37],44:39,55:40,87:p,139:38,307:43,308:g,323:36},r(u,[2,267],{37:46}),r(b,[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:p},r(x,[2,273],{42:68,324:69,325:[1,70],326:[1,71]}),r(e,[2,248]),r(e,[2,245]),r(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]},r([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]}),r(P,[2,418],{218:80,222:81,229:[1,82]}),{19:83,28:F,29:L,52:84,53:$,56:85},{19:88,28:F,29:L,52:89,53:$,56:85},r(u,[2,253],{26:90}),{28:[1,91],52:92,53:$},r(Y,[2,385],{181:93,182:94,183:95,31:[2,383]}),r(Ce,[2,263],{34:96}),r(Ce,[2,261],{44:39,55:40,307:43,139:97,13:l,16:h,87:p,308:g}),r(Ce,[2,262]),r(Ye,[2,259]),r(ut,[2,143]),r(ut,[2,144]),r([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]),r(B,[2,211]),r(B,[2,212]),r(B,[2,213]),r(B,[2,214]),{19:98,28:F,29:L,52:99,53:$,56:85},{6:[2,309],99:100,193:[1,101]},r(ce,[2,311],{101:102,328:[1,103]}),r(xe,[2,317],{104:104,328:[1,105]}),r(Ze,[2,322],{107:106,328:[1,107]}),{111:108,112:[2,324],328:[1,109]},{29:$e,114:110},{29:$e,114:112},{29:$e,114:113},{118:114,123:[1,115],125:116,126:He},r(De,[2,315]),r(De,[2,316]),r(Ne,[2,319]),r(Ne,[2,320]),r(Ne,[2,321]),r(b,[2,327]),{13:l,16:h,55:118,307:43,308:g},r(u,[2,12]),r(u,[2,13],{44:66,43:119,45:v,87:p}),r(Pe,[2,269]),r(Pe,[2,15]),{13:l,16:h,44:136,45:G,46:120,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(x,[2,14]),r(x,[2,274]),r(x,[2,271]),r(x,[2,272]),r(e,[2,4]),{13:[1,177]},r(q,[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},r(c,[2,410]),r([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:l,16:h,45:[1,193],55:194,197:We,219:189,220:190,223:191,224:[1,192],307:43,308:g},r(P,[2,419]),r(Qe,me,{20:196,59:197,69:198,70:N}),r(u,[2,250]),{29:k,57:200},r(ce,[2,279],{54:202,327:[1,203]}),{29:[2,282]},r(M,V,{23:204,58:205,62:206,63:de}),r(u,[2,252]),{19:208,28:F,29:L,52:209,53:$,56:85},{29:[1,210]},r(f,[2,256]),{31:[1,211]},{31:[2,384]},{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,145:212,172:221,185:213,187:214,231:Tt,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},r(s1,[2,265],{56:85,35:227,52:228,19:229,28:F,29:L,53:$}),r(Ye,[2,260]),r(M,V,{58:205,62:206,23:230,63:de}),r(u,[2,268]),{6:[2,45]},r(e,t,{10:3,4:231}),{13:l,16:h,55:232,307:43,308:g},r(ce,[2,312]),{105:233,112:a1,122:234,132:[1,237],134:235,327:[1,238],334:[1,239]},r(xe,[2,318]),r(ce,o1,{108:240,133:242,112:c1,132:u1}),r(Ze,[2,323]),{112:[1,244]},{112:[2,325]},r(At,[2,50]),r(Y,Mo,{135:245,136:246,143:247,144:248,31:l1,112:l1}),r(At,[2,51]),r(At,[2,52]),r(ri,[2,328],{119:249}),{29:$e,114:250},r(ri,[2,56]),{29:$e,114:251},r(b,[2,59]),r(Pe,[2,270]),{47:[1,252]},r(f1,[2,150]),r(Lo,[2,428],{240:253}),r(ps,[2,430],{244:254}),r(ps,[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]}),r(ms,[2,440],{252:264}),r(_t,[2,448],{260:265}),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,255:154,257:155,264:266,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,255:154,257:155,264:267,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,255:154,257:155,264:268,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(_t,[2,167]),r(_t,[2,168]),r(_t,[2,169]),r(_t,[2,170],{176:269,45:h1,89:d1}),r(_t,[2,171]),r(_t,[2,172]),r(_t,[2,173]),r(_t,[2,174]),{13:l,16:h,44:136,45:G,46:272,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,176]),{89:[1,273]},{45:[1,274]},{45:[1,275]},{45:[1,276]},{45:[1,277]},{45:[1,278]},{45:p1,89:m1,179:279},{45:[1,282]},{45:[1,284],89:[1,283]},{279:[1,285]},r(zt,[2,192],{292:[1,286],293:[1,287]}),r(zt,[2,195]),r(zt,[2,196]),r(zt,[2,197]),r(zt,[2,198]),r(zt,[2,199]),r(zt,[2,200]),{13:l,16:h,44:39,55:40,82:R,87:p,139:289,172:291,255:154,257:155,266:290,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,320:288},{45:[1,292]},{45:[1,293]},{45:[1,294]},r(ya,[2,452]),r(ya,[2,453]),r(ya,[2,454]),r(ya,[2,455]),r(ya,[2,456]),{279:[2,458]},r(Vo,[2,207]),r(Vo,[2,208]),r(Vo,[2,209]),r(Vo,[2,210]),r(zt,[2,201]),r(zt,[2,202]),r(zt,[2,203]),r(zt,[2,204]),r(zt,[2,205]),r(zt,[2,206]),r(e,[2,5]),r(qo,[2,297],{88:295}),r(Bo,[2,299],{90:296}),{48:[1,297],87:[1,298]},r(Uo,[2,301]),r(q,[2,43]),r(q,[2,82]),r(q,[2,83]),{29:[1,299]},{29:[1,300]},{87:[1,302],169:301},r(c,[2,412]),r(Pi,[2,123]),r(Pi,[2,416],{221:303,339:304,39:[1,306],263:[1,307],340:[1,305]}),r(fn,[2,124]),{13:l,16:h,45:[1,311],55:194,89:[1,310],197:We,223:312,225:308,226:309,229:g1,307:43,308:g},r(c,i,{215:10,214:314}),r(fn,[2,236]),r(fn,[2,237]),r(gs,[2,6]),r(Vl,[2,287],{60:315,72:316,73:[1,317]}),r(Qe,[2,286]),{13:l,16:h,45:G,55:323,67:321,68:322,71:318,77:320,79:319,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r([6,31,63,70,73,81,83,85],[2,20]),r(Y,y1,{38:17,49:324,147:325,17:326,21:327,148:328,154:329,155:330,29:In,31:In,85:In,112:In,159:In,160:In,161:In,163:In,164:In,41:s}),{13:l,16:h,55:331,307:43,308:g},r(ce,[2,280]),r(gs,[2,7]),r(Qe,me,{59:197,69:198,20:332,70:N}),r(M,[2,284]),{64:[1,333]},r(M,V,{58:205,62:206,23:334,63:de}),r(u,[2,254]),r(Y,Mo,{144:248,30:335,143:336,31:[2,257]}),r(u,[2,100]),{31:[2,387],184:337,335:[1,338]},{13:l,16:h,44:39,55:40,87:p,139:342,186:339,190:340,195:341,197:Fi,307:43,308:g},r(_a,[2,389],{44:39,55:40,307:43,190:340,195:341,139:342,188:344,189:345,186:346,13:l,16:h,87:p,197:Fi,308:g}),r(Dn,[2,227]),r(Dn,[2,228]),r(Dn,[2,229]),{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,172:221,185:351,187:350,200:348,230:347,231:Tt,234:349,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},{13:l,16:h,44:39,55:40,87:p,139:342,186:352,190:340,195:341,197:Fi,307:43,308:g},r(Dn,[2,146]),r(Dn,[2,147]),r(Dn,[2,148]),r(Dn,[2,149]),{13:l,16:h,44:354,55:355,82:R,87:p,172:357,237:356,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:358,312:Ht,313:353},r(ql,[2,215]),r(ql,[2,216]),r(M,V,{58:205,62:206,23:359,63:de}),r(Ce,[2,264]),r(s1,[2,266]),r(gs,[2,11]),r(n,[2,308],{6:[2,310]}),r(At,[2,313],{102:360,120:361,121:[1,362]}),r(At,[2,47]),r(At,[2,63]),r(At,[2,64]),{13:l,16:h,55:363,307:43,308:g},r(At,[2,336]),r(At,[2,337]),r(At,[2,338]),{109:[1,364]},r(_1,[2,60]),{13:l,16:h,55:365,307:43,308:g},r(ce,[2,335]),{13:l,16:h,55:366,307:43,308:g},{31:[1,367]},r(Ii,[2,341],{137:368}),r(Ii,[2,340]),{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,145:369,172:221,185:213,187:214,231:Tt,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},{28:[1,370],127:371,128:[1,372]},r(ri,[2,330],{124:373,125:374,126:He}),r(ri,[2,57]),{44:375,87:p},r(f1,[2,151],{241:376,242:[1,377]}),r(Lo,[2,153],{245:378,246:[1,379]}),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,247:380,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{250:[1,381]},r(ft,[2,432]),r(ft,[2,433]),r(ft,[2,434]),r(ft,[2,435]),r(ft,[2,436]),r(ft,[2,437]),{250:[2,439]},r([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:X,298:Z,299:ee,300:Q,301:ne,302:ie}),r(ms,[2,162],{261:388,262:389,39:Bl,338:Ul}),r(_t,[2,164]),r(_t,[2,165]),r(_t,[2,166]),r(lt,[2,95]),r(lt,[2,96]),r(ft,[2,377],{177:392,325:[1,393]}),{48:[1,394]},r(lt,[2,177]),{13:l,16:h,44:136,45:G,46:395,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:396,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:397,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:398,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:399,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,183]),r(lt,[2,98]),r(ft,[2,381],{180:400}),{87:[1,401]},r(lt,[2,185]),{13:l,16:h,44:136,45:G,46:402,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{29:k,57:403},r(zt,[2,193]),{13:l,16:h,55:404,307:43,308:g},{13:l,16:h,44:39,55:40,87:p,139:342,195:405,197:Fi,307:43,308:g},r(ni,[2,233]),r(ni,[2,234]),r(ni,[2,235]),r(v1,[2,459],{281:406,325:[1,407]}),r(ft,[2,463],{284:408,325:[1,409]}),r(ft,[2,465],{286:410,325:[1,411]}),{13:l,16:h,31:[1,412],55:414,82:R,171:413,172:415,173:416,174:$o,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Wo},{31:[1,419],89:[1,420]},{29:[1,421]},r(Uo,[2,302]),r(qo,[2,367],{167:422}),r(Bo,[2,369],{168:423}),{48:[1,424],87:[1,425]},r(Uo,[2,371]),r(Pi,[2,122]),r(Pi,[2,417]),r(Pi,[2,413]),r(Pi,[2,414]),r(Pi,[2,415]),r(fn,[2,125]),r(fn,[2,127]),r(fn,[2,128]),r(S1,[2,420],{227:426}),r(fn,[2,130]),{13:l,16:h,55:194,197:We,223:427,307:43,308:g},{48:[1,428]},r(ii,[2,289],{61:429,80:430,81:[1,431],83:[1,432]}),r(Vl,[2,288]),{64:[1,433]},r(Qe,[2,29],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:434,13:l,16:h,45:G,268:le,269:Se,270:W,271:be,273:we,274:ge,276:Ee,277:ue,279:ye,280:fe,283:_e,285:Te,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C}),r(b1,[2,293]),r($l,[2,92]),r($l,[2,93]),r($l,[2,94]),{45:h1,89:d1,176:269},{31:[1,435]},{31:[1,436]},{19:437,28:F,29:L,56:85},{19:438,28:F,29:L,56:85},r(Di,[2,355],{149:439}),r(Di,[2,354]),{13:l,16:h,44:215,45:Go,55:220,82:R,87:p,89:Me,156:440,172:221,185:441,203:442,231:Ho,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},r(Ce,[2,19]),r(ii,[2,21]),{13:l,16:h,44:450,45:w1,55:323,65:445,66:446,67:447,68:448,87:p,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(gs,[2,8]),{31:[1,451]},{31:[2,258]},{31:[2,101]},r(Y,[2,386],{31:[2,388]}),r(_a,[2,102]),r(Ri,[2,391],{191:452}),r(Y,[2,395],{196:453,198:454}),r(Y,[2,108]),r(Y,[2,109]),r(_a,[2,103]),r(_a,[2,104]),r(_a,[2,390]),{13:l,16:h,44:215,45:je,48:[1,455],55:220,82:R,87:p,89:Me,172:221,185:351,187:350,200:456,231:Tt,234:349,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},r(zo,[2,424]),r(E1,[2,136]),r(E1,[2,137]),r(Wl,[2,140]),{232:[1,457]},{13:l,16:h,44:39,55:40,87:p,139:342,195:458,197:Fi,307:43,308:g},r(ni,[2,219]),r(ni,[2,220]),r(ni,[2,221]),r(ni,[2,222]),r(ni,[2,223]),r(gs,[2,10]),r(At,[2,46]),r(At,[2,314]),{112:a1,122:459},r(At,[2,62]),r(ce,o1,{133:242,108:460,112:c1,132:u1}),r(_1,[2,61]),r(At,[2,49]),r([6,28,126,128,193],[2,65]),{31:[2,66],112:[1,462],138:461},r(Ii,[2,351],{146:463,335:[1,464]}),{29:k,57:465},r(ri,[2,329]),r(ce,[2,332],{129:466,327:[1,467]}),r(ri,[2,55]),r(ri,[2,331]),{48:[1,468]},r(Lo,[2,429]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,239:469,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ps,[2,431]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,243:470,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ps,[2,156]),{45:p1,89:m1,179:471},r(ms,[2,441]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,251:472,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(_t,[2,444],{256:473}),r(_t,[2,446],{258:474}),r(ft,[2,442]),r(ft,[2,443]),r(_t,[2,449]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,255:154,257:155,259:475,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ft,[2,450]),r(ft,[2,451]),r(ft,[2,379],{178:476}),r(ft,[2,378]),r([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:l,16:h,44:136,45:G,46:482,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{48:[1,483]},{48:[1,484]},r(lt,[2,187]),r(zt,[2,194]),{13:l,16:h,44:39,55:40,82:R,87:p,139:289,172:291,255:154,257:155,266:290,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,320:485},{13:l,16:h,39:[1,487],44:136,45:G,46:488,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,282:486,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(v1,[2,460]),{13:l,16:h,44:136,45:G,46:489,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ft,[2,464]),{13:l,16:h,44:136,45:G,46:490,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ft,[2,466]),r(q,[2,40]),r(qo,[2,298]),r(va,[2,87]),r(va,[2,88]),r(va,[2,89]),r(va,[2,90]),{13:l,16:h,55:492,82:R,172:493,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,311:494,312:Ht,315:491},r(q,[2,41]),r(Bo,[2,300]),r(Sa,[2,303],{92:495}),{13:l,16:h,31:[1,496],55:414,82:R,171:497,172:415,173:416,174:$o,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Wo},{31:[1,498],89:[1,499]},{29:[1,500]},r(Uo,[2,372]),{13:l,16:h,48:[2,422],55:194,197:We,223:312,226:502,228:501,229:g1,307:43,308:g},r(fn,[2,131]),r(fn,[2,126]),r(ii,[2,22]),r(ii,[2,290]),{82:[1,503]},{82:[1,504]},{13:l,16:h,44:510,45:G,55:323,67:321,68:322,74:505,75:506,76:T1,77:320,78:A1,79:509,87:p,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(b1,[2,294]),r(x1,[2,69]),r(x1,[2,70]),r(Qe,me,{59:197,69:198,20:511,70:N}),r(M,V,{58:205,62:206,23:512,63:de}),{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},r(Di,[2,363],{157:524,335:[1,525]}),r(c,i,{215:10,202:526,205:527,208:528,214:529,44:530,87:p}),r(Ko,[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:p}),{13:l,16:h,44:215,45:Go,55:220,82:R,87:p,89:Me,172:221,185:351,203:536,212:534,231:Ho,233:533,234:535,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},r(c,i,{215:10,205:527,208:528,214:529,44:530,202:537,87:p}),r(M,[2,23],{307:43,267:139,275:146,278:149,55:323,67:447,68:448,44:450,66:538,13:l,16:h,45:w1,87:p,268:le,269:Se,270:W,271:be,273:we,274:ge,276:Ee,277:ue,279:ye,280:fe,283:_e,285:Te,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C}),r(Ni,[2,291]),r(Ni,[2,24]),r(Ni,[2,25]),{13:l,16:h,44:136,45:G,46:539,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(Ni,[2,28]),r(M,V,{58:205,62:206,23:540,63:de}),r([31,112,232,318,335],[2,105],{192:541,193:[1,542]}),r(Ri,[2,107]),{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,172:221,185:351,187:350,199:543,200:544,231:Tt,234:349,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},r(O1,[2,132]),r(zo,[2,425]),r(O1,[2,133]),{13:l,16:h,44:354,55:355,82:R,87:p,172:357,237:356,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:358,312:Ht,313:545},r(At,[2,54]),r(At,[2,48]),r(Ii,[2,342]),{13:l,16:h,44:39,55:40,87:p,139:546,307:43,308:g},r(Ii,[2,68]),r(Y,[2,350],{31:C1,112:C1}),r(At,[2,53]),{13:l,16:h,55:547,307:43,308:g},r(ce,[2,333]),r(Pe,[2,16]),r(Lo,[2,152]),r(ps,[2,154]),r(ps,[2,157]),r(ms,[2,159]),r(ms,[2,160],{262:389,261:548,39:Bl,338:Ul}),r(ms,[2,161],{262:389,261:549,39:Bl,338:Ul}),r(_t,[2,163]),{13:l,16:h,44:136,45:G,46:550,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,178]),r(lt,[2,179]),{13:l,16:h,44:136,45:G,46:551,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:552,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:553,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{48:[1,554],272:[1,555]},r(lt,[2,184]),r(lt,[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:l,16:h,55:194,197:We,223:562,307:43,308:g},r(Gl,[2,224]),r(Gl,[2,225]),r(Gl,[2,226]),{31:[1,563],45:P1,94:564},r(q,[2,84]),r(qo,[2,368]),r(q,[2,85]),r(Bo,[2,370]),r(Sa,[2,373],{170:566}),{48:[1,567]},{48:[2,423],337:[1,568]},r(ii,[2,35],{83:[1,569]}),r(ii,[2,36],{81:[1,570]}),r(Vl,[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:l,16:h,45:G,76:T1,78:A1,87:p,268:le,269:Se,270:W,271:be,273:we,274:ge,276:Ee,277:ue,279:ye,280:fe,283:_e,285:Te,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C}),r(ys,[2,295]),{45:G,77:572},{45:G,77:573},r(ys,[2,33]),r(ys,[2,34]),{31:[2,275],50:574,84:575,85:a},{31:[2,277],51:576,84:577,85:a},r(Di,[2,356]),r(F1,[2,357],{152:578,335:[1,579]}),r(Rn,[2,74]),{29:k,57:580},{29:k,57:581},{13:l,16:h,44:39,55:40,87:p,139:582,307:43,308:g},r(I1,[2,365],{162:583,328:[1,584]}),{13:l,16:h,45:G,55:323,67:321,68:322,77:320,79:585,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{45:[1,586]},r(Rn,[2,81]),{29:k,57:587},r(Di,[2,73]),r(Y,[2,362],{29:Nn,31:Nn,85:Nn,112:Nn,159:Nn,160:Nn,161:Nn,163:Nn,164:Nn}),r(Ko,[2,112]),r(_s,[2,401],{206:588}),r(Y,[2,405],{209:589,210:590}),r(Y,[2,403]),r(Y,[2,404]),r(Ko,[2,113]),r(Ko,[2,400]),{13:l,16:h,44:215,45:Go,48:[1,591],55:220,82:R,87:p,89:Me,172:221,185:351,203:536,212:592,231:Ho,234:535,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},r(zo,[2,426]),r(Wl,[2,138]),r(Wl,[2,139]),{232:[1,593]},r(Ni,[2,292]),{47:[1,595],48:[1,594]},r(gs,[2,9]),r(Ri,[2,392]),r(Ri,[2,393],{44:39,55:40,307:43,195:341,139:342,194:596,190:597,13:l,16:h,87:p,197:Fi,308:g}),r(Ri,[2,110],{272:[1,598]}),r(Yo,[2,397],{201:599,316:600,317:[1,601]}),{314:[1,602]},{29:[1,603]},r(ri,[2,58]),r(_t,[2,445]),r(_t,[2,447]),{48:[1,604],272:[1,605]},{48:[1,606]},{272:[1,607]},{272:[1,608]},r(lt,[2,99]),r(ft,[2,382]),r([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]),r(lt,[2,188]),r(lt,[2,189]),{48:[1,609]},{48:[2,468]},{289:[1,610]},{13:l,16:h,55:492,82:R,172:493,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,311:494,312:Ht,315:611},r(q,[2,42]),r(Sa,[2,304]),{13:l,16:h,55:414,82:R,95:612,171:613,172:415,173:416,174:$o,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Wo},{31:[1,614],45:P1,94:615},r(fn,[2,129]),r(S1,[2,421]),{82:[1,616]},{82:[1,617]},r(ys,[2,296]),r(ys,[2,31]),r(ys,[2,32]),{31:[2,17]},{31:[2,276]},{31:[2,18]},{31:[2,278]},r(Y,y1,{155:330,153:618,154:619,29:kn,31:kn,85:kn,112:kn,159:kn,160:kn,161:kn,163:kn,164:kn}),r(F1,[2,358]),r(Rn,[2,75]),r(Rn,[2,76]),{29:k,57:620},{13:l,16:h,44:39,55:40,87:p,139:621,307:43,308:g},r(I1,[2,366]),r(Rn,[2,79]),{13:l,16:h,44:136,45:G,46:622,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(Rn,[2,91],{336:[1,623]}),r([29,31,85,112,159,160,161,163,164,232,318,335],[2,114],{207:624,193:[1,625]}),r(_s,[2,117]),{13:l,16:h,44:215,45:Go,55:220,82:R,87:p,89:Me,172:221,185:351,203:536,211:626,212:627,231:Ho,234:535,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},r(Dn,[2,134]),r(zo,[2,427]),r(Dn,[2,135]),r(Ni,[2,26]),{44:628,87:p},r(Ri,[2,106]),r(Ri,[2,394]),r(Y,[2,396]),r(Yo,[2,111]),r(Yo,[2,398]),{13:l,16:h,44:39,55:40,87:p,139:342,186:629,190:340,195:341,197:Fi,307:43,308:g},r(ql,[2,217]),r(Y,Mo,{144:248,140:630,143:631,31:[2,343]}),r(lt,[2,97]),r(ft,[2,380]),r(lt,[2,180]),{13:l,16:h,44:136,45:G,46:632,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:633,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,190]),{290:[1,634]},{314:[1,635]},{13:l,16:h,48:[1,636],55:414,82:R,171:637,172:415,173:416,174:$o,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Wo},r(D1,[2,305]),r(q,[2,86]),r(Sa,[2,374]),r(ii,[2,37]),r(ii,[2,38]),r(Di,[2,72]),r(Di,[2,360]),r(Rn,[2,77]),{29:k,57:638},{47:[1,639]},{29:[2,376]},r(_s,[2,402]),r(_s,[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:p}),r(_s,[2,118],{272:[1,641]}),r(Qo,[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:ae,304:U,305:H,306:oe},r(va,[2,218]),r(Sa,[2,44]),r(D1,[2,306]),r(Rn,[2,78]),{44:651,87:p},r(_s,[2,116]),r(Y,[2,406]),r(Qo,[2,119]),r(Qo,[2,408]),r(c,i,{215:10,205:527,208:528,214:529,44:530,202:652,87:p}),r(Ni,[2,27]),r(Yo,[2,230]),r(R1,[2,345],{141:653,335:[1,654]}),r(lt,[2,181]),r(lt,[2,182]),{48:[2,191]},{48:[1,655]},{318:[1,656]},r(Y,Mo,{144:248,142:657,143:658,31:N1,112:N1}),r(R1,[2,346]),r(Rn,[2,80]),r(Qo,[2,231]),r(Ii,[2,67]),r(Ii,[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(E,O){if(O.recoverable)this.trace(E);else{var I=new Error(E);throw I.hash=O,I}},"parseError"),parse:o(function(E){var O=this,I=[0],z=[],pe=[null],d=[],Yt=this.table,m="",pn=0,Ta=0,ec=0,tc=2,Aa=1,rc=d.slice.call(arguments,1),it=Object.create(this.lexer),mn={yy:{}};for(var xa in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xa)&&(mn.yy[xa]=this.yy[xa]);it.setInput(E,mn.yy),mn.yy.lexer=it,mn.yy.parser=this,typeof it.yylloc>"u"&&(it.yylloc={});var Es=it.yylloc;d.push(Es);var Ge=it.options&&it.options.ranges;typeof mn.yy.parseError=="function"?this.parseError=mn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(gn){I.length=I.length-2*gn,pe.length=pe.length-gn,d.length=d.length-gn}o(tt,"popStack");for(var Le=o(function(){var gn;return gn=it.lex()||Aa,typeof gn!="number"&&(gn=O.symbols_[gn]||gn),gn},"lex"),Ue,or,Li,Ar,w8,sf,Ts={},nc,Ln,H1,ic;;){if(Li=I[I.length-1],this.defaultActions[Li]?Ar=this.defaultActions[Li]:((Ue===null||typeof Ue>"u")&&(Ue=Le()),Ar=Yt[Li]&&Yt[Li][Ue]),typeof Ar>"u"||!Ar.length||!Ar[0]){var af="";ic=[];for(nc in Yt[Li])this.terminals_[nc]&&nc>tc&&ic.push("'"+this.terminals_[nc]+"'");it.showPosition?af="Parse error on line "+(pn+1)+`:
100
+ `),t}};cu.RDFSerializer=Wd});var Sg=y(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.TransactionError=fi.TripleNotFoundError=fi.TripleAlreadyExistsError=void 0;var Gd=class extends Error{static{o(this,"TripleAlreadyExistsError")}constructor(e){super(`Triple already exists: ${e.toString()}`),this.name="TripleAlreadyExistsError"}};fi.TripleAlreadyExistsError=Gd;var Hd=class extends Error{static{o(this,"TripleNotFoundError")}constructor(e){super(`Triple not found: ${e.toString()}`),this.name="TripleNotFoundError"}};fi.TripleNotFoundError=Hd;var zd=class extends Error{static{o(this,"TransactionError")}constructor(e){super(e),this.name="TransactionError"}};fi.TransactionError=zd});var Yd=y(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.LRUCache=void 0;var Kd=class{static{o(this,"LRUCache")}constructor(e){this.maxSize=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){let n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}};uu.LRUCache=Kd});var bg=y(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.InMemoryTripleStore=void 0;var hi=Sg(),qx=pt(),Bx=Or(),Ux=jt(),$x=_n(),Wx=Yd(),Gx=$x.Namespace.XSD.term("string").value,Qd=class{static{o(this,"InMemoryTripleStore")}constructor(){this.triples=new Map,this.spo=new Map,this.sop=new Map,this.pso=new Map,this.pos=new Map,this.osp=new Map,this.ops=new Map,this.queryCache=new Wx.LRUCache(1e3)}async add(e){let t=this.getTripleKey(e);if(this.triples.has(t))return;this.triples.set(t,e);let n=this.getNodeKey(e.subject),i=this.getNodeKey(e.predicate),s=this.getNodeKey(e.object);this.addToIndex(this.spo,n,i,s),this.addToIndex(this.sop,n,s,i),this.addToIndex(this.pso,i,n,s),this.addToIndex(this.pos,i,s,n),this.addToIndex(this.osp,s,n,i),this.addToIndex(this.ops,s,i,n),this.queryCache.clear()}async remove(e){let t=this.getTripleKey(e);if(!this.triples.has(t))return!1;this.triples.delete(t);let n=this.getNodeKey(e.subject),i=this.getNodeKey(e.predicate),s=this.getNodeKey(e.object);return this.removeFromIndex(this.spo,n,i,s),this.removeFromIndex(this.sop,n,s,i),this.removeFromIndex(this.pso,i,n,s),this.removeFromIndex(this.pos,i,s,n),this.removeFromIndex(this.osp,s,n,i),this.removeFromIndex(this.ops,s,i,n),this.queryCache.clear(),!0}async has(e){let t=this.getTripleKey(e);return this.triples.has(t)}async match(e,t,n){let i=this.getMatchCacheKey(e,t,n),s=this.queryCache.get(i);if(s!==void 0)return s;let a;return!e&&!t&&!n?a=Array.from(this.triples.values()):e&&t&&n?a=this.matchSPO(e,t,n):e&&t?a=this.matchSP(e,t):e&&n?a=this.matchSO(e,n):t&&n?a=this.matchPO(t,n):e?a=this.matchS(e):t?a=this.matchP(t):n?a=this.matchO(n):a=[],this.queryCache.set(i,a),a}async addAll(e){for(let t of e)await this.add(t)}async removeAll(e){let t=0;for(let n of e)await this.remove(n)&&t++;return t}async clear(){this.triples.clear(),this.spo.clear(),this.sop.clear(),this.pso.clear(),this.pos.clear(),this.osp.clear(),this.ops.clear(),this.queryCache.clear()}async count(){return this.triples.size}async subjects(){let e=new Set;for(let t of this.triples.values())e.add(t.subject);return Array.from(e)}async predicates(){let e=new Set;for(let t of this.triples.values())e.add(t.predicate);return Array.from(e)}async objects(){let e=new Set;for(let t of this.triples.values())e.add(t.object);return Array.from(e)}async beginTransaction(){return new Jd(this)}matchSPO(e,t,n){let i=this.getNodeKey(e),s=this.getNodeKey(t),a=this.getNodeKey(n),c=this.spo.get(i);if(!c)return[];let u=c.get(s);if(!u)return[];if(u.has(a)){let f=this.buildTripleKey(i,s,a),l=this.triples.get(f);return l?[l]:[]}return[]}matchSP(e,t){let n=this.getNodeKey(e),i=this.getNodeKey(t),s=this.spo.get(n);if(!s)return[];let a=s.get(i);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(n,i,c))):[]}matchSO(e,t){let n=this.getNodeKey(e),i=this.getNodeKey(t),s=this.sop.get(n);if(!s)return[];let a=s.get(i);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(n,c,i))):[]}matchPO(e,t){let n=this.getNodeKey(e),i=this.getNodeKey(t),s=this.pos.get(n);if(!s)return[];let a=s.get(i);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(c,n,i))):[]}matchS(e){let t=this.getNodeKey(e),n=this.spo.get(t);if(!n)return[];let i=[];for(let[s,a]of n.entries())for(let c of a)i.push(this.buildTripleKey(t,s,c));return this.getTriplesByKeys(i)}matchP(e){let t=this.getNodeKey(e),n=this.pso.get(t);if(!n)return[];let i=[];for(let[s,a]of n.entries())for(let c of a)i.push(this.buildTripleKey(s,t,c));return this.getTriplesByKeys(i)}matchO(e){let t=this.getNodeKey(e),n=this.osp.get(t);if(!n)return[];let i=[];for(let[s,a]of n.entries())for(let c of a)i.push(this.buildTripleKey(s,c,t));return this.getTriplesByKeys(i)}getTriplesByKeys(e){let t=[];for(let n of e){let i=this.triples.get(n);i&&t.push(i)}return t}addToIndex(e,t,n,i){e.has(t)||e.set(t,new Map);let s=e.get(t);s.has(n)||s.set(n,new Set),s.get(n).add(i)}removeFromIndex(e,t,n,i){let s=e.get(t);if(!s)return;let a=s.get(n);a&&(a.delete(i),a.size===0&&s.delete(n),s.size===0&&e.delete(t))}getTripleKey(e){let t=this.getNodeKey(e.subject),n=this.getNodeKey(e.predicate),i=this.getNodeKey(e.object);return this.buildTripleKey(t,n,i)}buildTripleKey(e,t,n){return`${e}|${t}|${n}`}getNodeKey(e){if(e instanceof qx.IRI)return`i:${e.value}`;if(e instanceof Bx.BlankNode)return`b:${e.id}`;if(e instanceof Ux.Literal){let t=`l:${e.value}`;return e.datatype&&e.datatype.value!==Gx?t+=`^^${e.datatype.value}`:e.language&&(t+=`@${e.language}`),t}return""}getMatchCacheKey(e,t,n){let i=e?this.getNodeKey(e):"?",s=t?this.getNodeKey(t):"?",a=n?this.getNodeKey(n):"?";return`${i}|${s}|${a}`}};lu.InMemoryTripleStore=Qd;var Jd=class{static{o(this,"InMemoryTransaction")}constructor(e){this.store=e,this.operations=[],this.committed=!1,this.rolledBack=!1}async add(e){if(this.committed)throw new hi.TransactionError("Transaction already committed");if(this.rolledBack)throw new hi.TransactionError("Transaction already rolled back");this.operations.push({type:"add",triple:e})}async remove(e){if(this.committed)throw new hi.TransactionError("Transaction already committed");if(this.rolledBack)throw new hi.TransactionError("Transaction already rolled back");return this.operations.push({type:"remove",triple:e}),!0}async commit(){if(this.committed)throw new hi.TransactionError("Transaction already committed");if(this.rolledBack)throw new hi.TransactionError("Transaction already rolled back");for(let e of this.operations)e.type==="add"?await this.store.add(e.triple):await this.store.remove(e.triple);this.committed=!0,this.operations=[]}async rollback(){if(this.committed)throw new hi.TransactionError("Transaction already committed");if(this.rolledBack)throw new hi.TransactionError("Transaction already rolled back");this.operations=[],this.rolledBack=!0}}});var Eg=y(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.RDFVocabularyMapper=void 0;var _r=Vi(),wg=pt(),he=_n(),Xd=class{static{o(this,"RDFVocabularyMapper")}constructor(){this.propertyMappings=new Map([["exo__Instance_class",he.Namespace.RDF.term("type")],["exo__Asset_isDefinedBy",he.Namespace.RDFS.term("isDefinedBy")],["exo__Class_superClass",he.Namespace.RDFS.term("subClassOf")],["exo__Property_range",he.Namespace.RDFS.term("range")],["exo__Property_domain",he.Namespace.RDFS.term("domain")],["exo__Property_superProperty",he.Namespace.RDFS.term("subPropertyOf")]])}generateClassHierarchyTriples(){let e=[];return e.push(new _r.Triple(he.Namespace.EXO.term("Asset"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDFS.term("Resource"))),e.push(new _r.Triple(he.Namespace.EXO.term("Class"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDFS.term("Class"))),e.push(new _r.Triple(he.Namespace.EXO.term("Property"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDF.term("Property"))),e.push(new _r.Triple(he.Namespace.EMS.term("Task"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e.push(new _r.Triple(he.Namespace.EMS.term("Project"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e.push(new _r.Triple(he.Namespace.EMS.term("Area"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e}generatePropertyHierarchyTriples(){let e=[];return e.push(new _r.Triple(he.Namespace.EXO.term("Instance_class"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDF.term("type"))),e.push(new _r.Triple(he.Namespace.EXO.term("Asset_isDefinedBy"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("isDefinedBy"))),e.push(new _r.Triple(he.Namespace.EXO.term("Class_superClass"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("subClassOf"))),e.push(new _r.Triple(he.Namespace.EXO.term("Property_range"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("range"))),e.push(new _r.Triple(he.Namespace.EXO.term("Property_domain"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("domain"))),e.push(new _r.Triple(he.Namespace.EXO.term("Property_superProperty"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("subPropertyOf"))),e}generateMappedTriple(e,t,n){let i=this.propertyMappings.get(t);if(!i)return null;let s;if(n instanceof wg.IRI)s=n;else{let a=n.match(/^(ems|exo)__(.+)$/);if(a){let[,c,u]=a;s=(c==="ems"?he.Namespace.EMS:he.Namespace.EXO).term(u)}else s=new wg.IRI(n)}return new _r.Triple(e,i,s)}hasMappingFor(e){return this.propertyMappings.has(e)}};fu.RDFVocabularyMapper=Xd});var ep=y(nn=>{"use strict";var Hx=nn&&nn.__decorate||function(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(a=r[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},zx=nn&&nn.__metadata||function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Kx=nn&&nn.__param||function(r,e){return function(t,n){e(t,n,r)}};Object.defineProperty(nn,"__esModule",{value:!0});nn.NoteToRDFConverter=void 0;var Tg=Ke(),hu=Vi(),Yx=pt(),bn=jt(),Gn=_n(),Qx=rt(),Zd=class{static{o(this,"NoteToRDFConverter")}constructor(e){this.vault=e,this.OBSIDIAN_VAULT_SCHEME="obsidian://vault/"}async convertNote(e){let t=this.vault.getFrontmatter(e);if(!t)return[];let n=[],i=this.notePathToIRI(e.path),s=Gn.Namespace.EXO.term("Asset_fileName");n.push(new hu.Triple(i,s,new bn.Literal(e.basename)));for(let[a,c]of Object.entries(t)){if(!this.isExocortexProperty(a))continue;let u=this.propertyKeyToIRI(a),f=Array.isArray(c)?c:[c];for(let l of f)if(a==="exo__Instance_class"){let h=this.valueToClassURI(l);n.push(new hu.Triple(i,u,h))}else{let h=await this.valueToRDFObject(l,e);n.push(new hu.Triple(i,u,h))}if(a==="exo__Instance_class")for(let l of f){let h=this.expandClassValue(l);if(h){let p=Gn.Namespace.RDF.term("type");n.push(new hu.Triple(i,p,h))}}}return n}async convertVault(){let e=this.vault.getAllFiles(),t=[];for(let n of e)try{let i=await this.convertNote(n);t.push(...i)}catch(i){console.warn(`\u26A0\uFE0F Skipping file with invalid IRI: ${n.path}`),console.warn(` Reason: ${i instanceof Error?i.message:String(i)}`);continue}return t}notePathToIRI(e){let t=encodeURI(e);return new Yx.IRI(`${this.OBSIDIAN_VAULT_SCHEME}${t}`)}isExocortexProperty(e){return e.startsWith("exo__")||e.startsWith("ems__")}propertyKeyToIRI(e){if(e.startsWith("exo__")){let t=e.substring(5);return Gn.Namespace.EXO.term(t)}if(e.startsWith("ems__")){let t=e.substring(5);return Gn.Namespace.EMS.term(t)}throw new Error(`Invalid property key: ${e}`)}async valueToRDFObject(e,t){if(typeof e=="string"){let n=this.removeQuotes(e),i=this.extractWikilink(n);if(i){let s=this.vault.getFirstLinkpathDest(i,t.path);if(s)return this.notePathToIRI(s.path);if(this.isClassReference(i)){let a=this.expandClassValue(i);if(a)return a}return new bn.Literal(n)}if(this.isClassReference(n)){let s=this.expandClassValue(n);if(s)return s}return this.isISO8601DateTime(n)?new bn.Literal(n,Gn.Namespace.XSD.term("dateTime")):new bn.Literal(n)}return typeof e=="boolean"?new bn.Literal(e.toString()):typeof e=="number"?new bn.Literal(e.toString(),Gn.Namespace.XSD.term("decimal")):e instanceof Date?new bn.Literal(e.toISOString(),Gn.Namespace.XSD.term("dateTime")):new bn.Literal(String(e))}isISO8601DateTime(e){return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-]\d{2}:\d{2})?$/.test(e)}removeQuotes(e){let t=e.trim();return t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?t.substring(1,t.length-1):e}extractWikilink(e){let t=e.match(/^\[\[([^\]]+)\]\]$/);return t?t[1]:null}valueToClassURI(e){if(typeof e!="string")return new bn.Literal(String(e));let t=this.removeQuotes(e),i=this.extractWikilink(t)||t,s=this.expandClassValue(i);return s||new bn.Literal(t)}isClassReference(e){return(e.startsWith("ems__")||e.startsWith("exo__"))&&!/\s/.test(e)}expandClassValue(e){let t=this.removeQuotes(e);if(t.startsWith("ems__")){let n=t.substring(5);return Gn.Namespace.EMS.term(n)}if(t.startsWith("exo__")){let n=t.substring(5);return Gn.Namespace.EXO.term(n)}return null}};nn.NoteToRDFConverter=Zd;nn.NoteToRDFConverter=Zd=Hx([(0,Tg.injectable)(),Kx(0,(0,Tg.inject)(Qx.DI_TOKENS.IVaultAdapter)),zx("design:paramtypes",[Object])],Zd)});var tp=y((kk,Ag)=>{var ks=class{static{o(this,"Wildcard")}constructor(){return Jx||this}equals(e){return e&&this.termType===e.termType}};Object.defineProperty(ks.prototype,"value",{enumerable:!0,value:"*"});Object.defineProperty(ks.prototype,"termType",{enumerable:!0,value:"Wildcard"});var Jx=new ks;Ag.exports.Wildcard=ks});var Og=y((Mk,xg)=>{var Xx=(function(){var r=o(function(A,E,O,I){for(O=O||{},I=A.length;I--;O[A[I]]=E);return O},"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],n=[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],u=[28,29,53],f=[28,53],l=[1,42],h=[1,45],p=[1,41],g=[1,44],b=[123,126],v=[1,67],x=[39,45,87],P=[13,16,45,197,224,308],F=[1,87],L=[2,281],$=[1,86],Y=[13,16,45,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],Ce=[6,28,29,53,63,70,73,81,83,85],Ye=[6,13,16,28,29,53,63,70,73,81,83,85,87,308],ut=[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],B=[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],ce=[13,16,308],xe=[112,132,327,334],Ze=[13,16,112,132,308],$e=[1,111],He=[1,117],De=[112,132,327,328,334],Ne=[13,16,112,132,308,328],Pe=[28,29,45,53,87],G=[1,138],R=[1,151],ke=[1,128],qe=[1,127],j=[1,129],le=[1,140],Se=[1,141],W=[1,142],be=[1,143],we=[1,144],ge=[1,145],Ee=[1,147],ue=[1,148],ye=[2,457],fe=[1,158],_e=[1,159],Te=[1,160],J=[1,152],te=[1,153],re=[1,156],X=[1,171],Z=[1,172],ee=[1,173],Q=[1,174],ne=[1,175],ie=[1,176],ae=[1,167],U=[1,168],H=[1,169],oe=[1,170],Re=[1,157],Oe=[1,166],Ae=[1,161],_=[1,162],S=[1,163],w=[1,164],C=[1,165],q=[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],We=[1,195],Qe=[6,31,73,81,83,85],me=[2,285],N=[1,199],k=[1,201],M=[6,31,70,73,81,83,85],V=[2,283],de=[1,207],je=[1,218],Me=[1,223],Tt=[1,219],ar=[1,225],mr=[1,226],Ht=[1,224],s1=[6,63,70,73,81,83,85],a1=[1,236],o1=[2,334],c1=[1,243],u1=[1,241],At=[6,193],Mo=[2,349],l1=[2,339],ri=[28,128],f1=[47,48,193,272],Lo=[47,48,193,242,272],ps=[47,48,193,242,246,272],ms=[47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,341,342,343,344,345,346],_t=[39,47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,338,341,342,343,344,345,346],h1=[1,271],d1=[1,270],lt=[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],p1=[1,281],m1=[1,280],zt=[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],ya=[45,89],Vo=[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],qo=[13,16,31,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Bo=[31,89],Uo=[48,87],Pi=[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],fn=[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],g1=[1,313],gs=[6,85],Vl=[6,31,81,83,85],y1=[2,361],In=[2,353],Fi=[1,343],_a=[31,112,335],Dn=[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],ql=[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],_1=[6,109,193],Ii=[31,112],ft=[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],Bl=[1,390],Ul=[1,391],ni=[13,16,87,197,308,314],v1=[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],$o=[1,417],Wo=[1,418],S1=[13,16,48,197,229,308],ii=[6,31,85],b1=[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],$l=[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],Di=[29,31,85,112,159,160,161,163,164],Go=[1,443],Ho=[1,444],w1=[1,449],Ri=[31,112,193,232,318,335],zo=[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],E1=[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],Wl=[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],va=[13,16,31,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Sa=[31,45],T1=[1,507],A1=[1,508],x1=[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],Ko=[29,31,85,112,159,160,161,163,164,335],Ni=[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],O1=[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],C1=[2,352],Gl=[13,16,197,308,314],P1=[1,565],ys=[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],F1=[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],Rn=[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],I1=[13,16,87,308],Nn=[2,364],_s=[29,31,85,112,159,160,161,163,164,193,232,318,335],Yo=[31,112,193,232,272,318,335],kn=[2,359],D1=[13,16,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Qo=[29,31,85,112,159,160,161,163,164,193,232,272,318,335],R1=[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],N1=[2,347],Hl={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(E,O,I,z,pe,d,Yt){var m=d.length-1;switch(pe){case 1:if(d[m-1]=d[m-1]||{},ve.base&&(d[m-1].base=ve.base),ve.base="",d[m-1].prefixes=ve.prefixes,ve.prefixes=null,ve.pathOnly){if(d[m-1].type==="path"||"termType"in d[m-1])return d[m-1];throw new Error("Received full SPARQL query in path only mode")}else if(d[m-1].type==="path"||"termType"in d[m-1])throw new Error("Received only path in full SPARQL mode");if(d[m-1].type==="update"){let Ge={};for(let tt of d[m-1].updates)if(tt.updateType==="insert"){let Le={};for(let Ue of tt.insert)if(Ue.type==="bgp"||Ue.type==="graph")for(let or of Ue.triples)or.subject.termType==="BlankNode"&&(Le[or.subject.value]=!0),or.predicate.termType==="BlankNode"&&(Le[or.predicate.value]=!0),or.object.termType==="BlankNode"&&(Le[or.object.value]=!0);for(let Ue of Object.keys(Le)){if(Ge[Ue])throw new Error("Detected reuse blank node across different INSERT DATA clauses");Ge[Ue]=!0}}}return d[m-1];case 2:this.$={...d[m-1],...d[m],type:"query"};break;case 4:ve.base=ba(d[m]);break;case 5:ve.prefixes||(ve.prefixes={}),d[m-1]=d[m-1].substr(0,d[m-1].length-1),d[m]=ba(d[m]),ve.prefixes[d[m-1]]=d[m];break;case 6:this.$={...d[m-3],...Mi(d[m-2]),...d[m-1],...d[m]};break;case 7:if(!ve.skipValidation&&(ef(d[m-3].variables.map(tt=>Zl(tt.expression))).some(tt=>tt.aggregation==="count"&&!(tt.expression instanceof Jo))||d[m].group)){for(let tt of d[m-3].variables)if(tt.termType==="Variable"){if(!d[m].group||!d[m].group.map(Le=>ws(Le)).includes(ws(tt)))throw Error("Projection of ungrouped variable (?"+ws(tt)+")")}else if(Zl(tt.expression).length===0){let Le=GS(tt.expression);for(let Ue of Le)if(!d[m].group||!d[m].group.map||!d[m].group.map(or=>ws(or)).includes(ws(Ue)))throw Error("Use of ungrouped variable in projection of operation (?"+ws(Ue)+")")}}let mn=d[m-1].where.filter(Ge=>Ge.type==="query");if(mn.length>0){let Ge=d[m-3].variables.filter(Le=>Le.variable&&Le.variable.value).map(Le=>Le.variable.value),tt=ef(mn.map(Le=>Le.variables)).map(Le=>Le.value||Le.variable.value);for(let Le of Ge)if(tt.indexOf(Le)>=0)throw Error("Target id of 'AS' (?"+Le+") already used in subquery")}this.$=at(d[m-3],Mi(d[m-2]),d[m-1],d[m]);break;case 8:this.$=at({queryType:"CONSTRUCT",template:d[m-3]},Mi(d[m-2]),d[m-1],d[m]);break;case 9:this.$=at({queryType:"CONSTRUCT",template:d[m-2]=d[m-2]?d[m-2].triples:[]},Mi(d[m-5]),{where:[{type:"bgp",triples:ji([],d[m-2])}]},d[m]);break;case 10:this.$=at({queryType:"DESCRIBE",variables:d[m-3]==="*"?[new Jo]:d[m-3]},Mi(d[m-2]),d[m-1],d[m]);break;case 11:this.$=at({queryType:"ASK"},Mi(d[m-2]),d[m-1],d[m]);break;case 12:this.$=at(d[m-1],{variables:[new Jo]});break;case 13:let xa=d[m].map(Ge=>Ge.value||Ge.variable.value),Es=HS(xa);if(Es.length>0)throw Error("Two or more of the resulting columns have the same name (?"+Es[0]+")");this.$=at(d[m-1],{variables:d[m]});break;case 14:this.$=at({queryType:"SELECT"},d[m]&&(d[m-1]=Kt(d[m]),d[m]={},d[m][d[m-1]]=!0,d[m]));break;case 16:case 27:this.$=vs(d[m-3],{variable:d[m-1]});break;case 17:case 18:this.$=at(d[m-3],d[m-2],d[m-1],d[m],{type:"query"});break;case 19:case 58:this.$={iri:d[m],named:!!d[m-1]};break;case 20:this.$={where:d[m].patterns};break;case 21:this.$=at(d[m-1],d[m]);break;case 22:this.$=at(d[m-2],d[m-1],d[m]);break;case 23:this.$={group:d[m]};break;case 24:case 25:case 28:case 31:case 33:case 34:this.$=vs(d[m]);break;case 26:this.$=vs(d[m-1]);break;case 29:this.$={having:d[m]};break;case 30:this.$={order:d[m]};break;case 32:this.$=vs(d[m],{descending:!0});break;case 35:this.$={limit:bs(d[m])};break;case 36:this.$={offset:bs(d[m])};break;case 37:this.$={limit:bs(d[m-2]),offset:bs(d[m])};break;case 38:this.$={limit:bs(d[m]),offset:bs(d[m-2])};break;case 39:case 43:this.$={type:"values",values:d[m]};break;case 40:case 84:this.$=d[m-1].map(Ge=>({[d[m-3]]:Ge}));break;case 41:case 85:this.$=d[m-1].map(()=>({}));break;case 42:case 86:var pn=d[m-4].length;d[m-4]=d[m-4].map(zl),this.$=d[m-1].map(function(Ge){if(Ge.length!==pn)throw Error("Inconsistent VALUES length");for(var tt={},Le=0;Le<pn;Le++)tt["?"+d[m-4][Le].value]=Ge[Le];return tt});break;case 44:case 65:case 100:case 126:case 175:this.$=d[m-1];break;case 45:this.$={type:"update",updates:jn(d[m-2],d[m-1])};break;case 46:this.$=at({type:"load",silent:!!d[m-2],source:d[m-1]},d[m]&&{destination:d[m]});break;case 47:this.$={type:Kt(d[m-2]),silent:!!d[m-1],graph:d[m]};break;case 48:this.$={type:Kt(d[m-4]),silent:!!d[m-3],source:d[m-2],destination:d[m]};break;case 49:this.$={type:"create",silent:!!d[m-2],graph:{type:"graph",name:d[m]}};break;case 50:this.$={updateType:"insert",insert:G1(d[m])};break;case 51:this.$={updateType:"delete",delete:nf(G1(d[m]))};break;case 52:this.$={updateType:"deletewhere",delete:nf(d[m])};break;case 53:this.$={updateType:"insertdelete",...d[m-4],...d[m-3],...Mi(d[m-2],"using"),where:d[m].patterns};break;case 54:case 57:case 62:case 167:case 191:case 236:this.$=d[m];break;case 55:this.$={delete:nf(d[m-1]),insert:d[m]||[]};break;case 56:this.$={delete:[],insert:d[m]};break;case 59:this.$={graph:d[m]};break;case 60:this.$={type:"graph",default:!0};break;case 61:case 63:this.$={type:"graph",name:d[m]};break;case 64:this.$={[Kt(d[m])]:!0};break;case 66:this.$=d[m-1]?hn(d[m],[d[m-1]]):hn(d[m]);break;case 67:var Ta=at(d[m-3]||{triples:[]},{type:"graph",name:d[m-5]});this.$=d[m]?[Ta,d[m]]:[Ta];break;case 68:case 73:this.$={type:"bgp",triples:hn(d[m-2],[d[m-1]])};break;case 69:this.$={type:"group",patterns:[d[m-1]]};break;case 70:for(let Ge of d[m-1].filter(tt=>tt.type==="bind")){let tt=d[m-1].indexOf(Ge),Le=new Set;for(let Ue of d[m-1].slice(0,tt))(Ue.type==="group"||Ue.type==="bgp")&&$1(Ue).forEach(or=>Le.add(or));if(Le.has(Ge.variable.value))throw Error("Variable used to bind is already bound (?"+Ge.variable.value+")")}this.$={type:"group",patterns:d[m-1]};break;case 71:this.$=d[m-1]?hn([d[m-1]],d[m]):hn(d[m]);break;case 72:this.$=d[m]?[d[m-2],d[m]]:d[m-2];break;case 75:this.$=at(d[m],{type:"optional"});break;case 76:this.$=at(d[m],{type:"minus"});break;case 77:this.$=at(d[m],{type:"graph",name:d[m-1]});break;case 78:this.$=at(d[m],{type:"service",name:d[m-1],silent:!!d[m-2]});break;case 79:this.$={type:"filter",expression:d[m]};break;case 80:this.$={type:"bind",variable:d[m-1],expression:d[m-3]};break;case 89:this.$=Ea(d[m]);break;case 90:this.$=void 0;break;case 91:this.$=d[m-1].length?{type:"union",patterns:hn(d[m-1].map(Yl),[Yl(d[m])])}:d[m];break;case 95:this.$={...d[m],function:d[m-1]};break;case 96:this.$={type:"functionCall",args:[]};break;case 97:this.$={type:"functionCall",args:jn(d[m-2],d[m-1]),distinct:!!d[m-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.$=jn(d[m-2],d[m-1]);break;case 101:this.$=hn(d[m-2],[d[m-1]]);break;case 102:case 112:this.$=rf(d[m].map(Ge=>at(Mn(d[m-1]),Ge)));break;case 103:this.$=rf(ji(d[m].map(Ge=>at(Mn(d[m-1].entity),Ge)),d[m-1].triples));break;case 105:this.$=hn([d[m-1]],d[m]);break;case 106:this.$=hn(d[m]);break;case 107:this.$=Xl(d[m-1],d[m]);break;case 109:case 237:this.$=ve.factory.namedNode(kS);break;case 110:case 118:this.$=jn(d[m-1],d[m]);break;case 111:this.$=d[m]?{annotation:d[m],object:d[m-1]}:d[m-1];break;case 113:this.$=d[m]?rf(ji(d[m].map(Ge=>at(Mn(d[m-1].entity),Ge)),d[m-1].triples)):d[m-1].triples;break;case 114:this.$=Xl(...d[m-1],d[m]);break;case 116:this.$=Xl(...d[m]);break;case 117:case 159:case 163:this.$=[d[m-1],d[m]];break;case 119:this.$=d[m]?{object:d[m-1],annotation:d[m]}:d[m-1];break;case 120:this.$=d[m-1].length?Ss("|",jn(d[m-1],d[m])):d[m];break;case 121:this.$=d[m-1].length?Ss("/",jn(d[m-1],d[m])):d[m];break;case 122:this.$=d[m]?Ss(d[m],[d[m-1]]):d[m-1];break;case 123:this.$=d[m-1]?Ss(d[m-1],[d[m]]):d[m];break;case 125:case 131:this.$=Ss(d[m-1],[d[m]]);break;case 129:this.$=Ss("|",jn(d[m-2],d[m-1]));break;case 132:case 134:this.$=$S(d[m-1]);break;case 133:case 135:this.$=WS(d[m-1]);break;case 140:this.$={entity:d[m],triples:[]};break;case 145:this.$=zl(d[m]);break;case 149:this.$=ve.factory.namedNode(k1);break;case 151:case 153:case 158:case 162:this.$=Kl(d[m-1],d[m]);break;case 152:this.$=["||",d[m]];break;case 154:this.$=["&&",d[m]];break;case 156:this.$=xt(d[m-1],[d[m-2],d[m]]);break;case 157:this.$=xt(d[m-2]?"notin":"in",[d[m-3],d[m]]);break;case 160:this.$=["+",Kl(d[m-1],d[m])];break;case 161:var ec=dn(d[m-1].value.replace("-",""),d[m-1].datatype);this.$=["-",Kl(ec,d[m])];break;case 164:this.$=xt("UPLUS",[d[m]]);break;case 165:this.$=xt(d[m-1],[d[m]]);break;case 166:this.$=xt("UMINUS",[d[m]]);break;case 177:this.$=xt(Kt(d[m-1]));break;case 178:this.$=xt(Kt(d[m-3]),[d[m-1]]);break;case 179:this.$=Ea(xt(Kt(d[m-3]),[d[m-1]]));break;case 180:this.$=xt(Kt(d[m-5]),[d[m-3],d[m-1]]);break;case 181:this.$=xt(Kt(d[m-7]),[d[m-5],d[m-3],d[m-1]]);break;case 182:this.$=Ea(xt(Kt(d[m-7]),[d[m-5],d[m-3],d[m-1]]));break;case 183:this.$=xt(Kt(d[m-1]),d[m]);break;case 184:this.$=xt("bound",[zl(d[m-1])]);break;case 185:this.$=xt(d[m-1],[]);break;case 186:this.$=xt(d[m-3],[d[m-1]]);break;case 187:this.$=xt(d[m-2]?"notexists":"exists",[Yl(d[m])]);break;case 188:case 189:this.$=vs(d[m-1],{type:"aggregate",aggregation:Kt(d[m-4]),distinct:!!d[m-2]});break;case 190:this.$=vs(d[m-2],{type:"aggregate",aggregation:Kt(d[m-5]),distinct:!!d[m-3],separator:typeof d[m-1]=="string"?d[m-1]:" "});break;case 192:this.$=dn(d[m]);break;case 193:this.$=VS(d[m-1],Kt(d[m].substr(1)));break;case 194:this.$=dn(d[m-2],d[m]);break;case 195:case 204:this.$=dn(d[m],j1);break;case 196:case 205:this.$=dn(d[m],M1);break;case 197:case 206:this.$=dn(Kt(d[m]),L1);break;case 200:this.$=dn(d[m].toLowerCase(),LS);break;case 201:this.$=dn(d[m].substr(1),j1);break;case 202:this.$=dn(d[m].substr(1),M1);break;case 203:this.$=dn(d[m].substr(1).toLowerCase(),L1);break;case 207:case 208:this.$=U1(d[m],1);break;case 209:case 210:this.$=U1(d[m],3);break;case 211:this.$=ve.factory.namedNode(ba(d[m]));break;case 213:var tc=d[m].indexOf(":"),Aa=d[m].substr(0,tc),rc=ve.prefixes[Aa];if(!rc)throw new Error("Unknown prefix: "+Aa);var it=ba(rc+d[m].substr(tc+1));this.$=ve.factory.namedNode(it);break;case 214:if(d[m]=d[m].substr(0,d[m].length-1),!(d[m]in ve.prefixes))throw new Error("Unknown prefix: "+d[m]);var it=ba(ve.prefixes[d[m]]);this.$=ve.factory.namedNode(it);break;case 215:this.$=wa(d[m].replace(/^(_:)/,""));break;case 216:this.$=wa();break;case 217:case 218:case 232:this.$=Ea(Ql(d[m-3],d[m-2],d[m-1]));break;case 230:case 231:this.$=Ea(d[m-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:d[m-1].push(d[m]);break;case 259:case 269:case 291:case 293:case 295:case 301:case 305:case 371:case 424:case 426:this.$=[d[m]];break;case 308:d[m-3].push(d[m-2]);break;case 350:case 362:case 376:case 380:case 382:case 386:case 396:case 406:case 410:case 412:case 421:d[m-2].push(d[m-1]);break}},"anonymous"),table:[r(e,t,{3:1,4:2,10:3}),{1:[3]},r(n,[2,307],{5:4,7:5,321:6,214:7,8:8,96:9,215:10,17:11,21:12,97:16,38:17,6:[2,238],13:i,16:i,45:i,197:i,224:i,229:i,308:i,24:[1,13],32:[1,14],36:[1,15],41:s}),r([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]},r(c,[2,411],{216:28,217:29}),r(u,[2,249],{18:30}),r(u,[2,251],{22:31}),r(f,[2,255],{25:32,27:33,29:[1,34]}),{13:l,16:h,33:35,39:[1,37],44:39,55:40,87:p,139:38,307:43,308:g,323:36},r(u,[2,267],{37:46}),r(b,[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:p},r(x,[2,273],{42:68,324:69,325:[1,70],326:[1,71]}),r(e,[2,248]),r(e,[2,245]),r(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]},r([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]}),r(P,[2,418],{218:80,222:81,229:[1,82]}),{19:83,28:F,29:L,52:84,53:$,56:85},{19:88,28:F,29:L,52:89,53:$,56:85},r(u,[2,253],{26:90}),{28:[1,91],52:92,53:$},r(Y,[2,385],{181:93,182:94,183:95,31:[2,383]}),r(Ce,[2,263],{34:96}),r(Ce,[2,261],{44:39,55:40,307:43,139:97,13:l,16:h,87:p,308:g}),r(Ce,[2,262]),r(Ye,[2,259]),r(ut,[2,143]),r(ut,[2,144]),r([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]),r(B,[2,211]),r(B,[2,212]),r(B,[2,213]),r(B,[2,214]),{19:98,28:F,29:L,52:99,53:$,56:85},{6:[2,309],99:100,193:[1,101]},r(ce,[2,311],{101:102,328:[1,103]}),r(xe,[2,317],{104:104,328:[1,105]}),r(Ze,[2,322],{107:106,328:[1,107]}),{111:108,112:[2,324],328:[1,109]},{29:$e,114:110},{29:$e,114:112},{29:$e,114:113},{118:114,123:[1,115],125:116,126:He},r(De,[2,315]),r(De,[2,316]),r(Ne,[2,319]),r(Ne,[2,320]),r(Ne,[2,321]),r(b,[2,327]),{13:l,16:h,55:118,307:43,308:g},r(u,[2,12]),r(u,[2,13],{44:66,43:119,45:v,87:p}),r(Pe,[2,269]),r(Pe,[2,15]),{13:l,16:h,44:136,45:G,46:120,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(x,[2,14]),r(x,[2,274]),r(x,[2,271]),r(x,[2,272]),r(e,[2,4]),{13:[1,177]},r(q,[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},r(c,[2,410]),r([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:l,16:h,45:[1,193],55:194,197:We,219:189,220:190,223:191,224:[1,192],307:43,308:g},r(P,[2,419]),r(Qe,me,{20:196,59:197,69:198,70:N}),r(u,[2,250]),{29:k,57:200},r(ce,[2,279],{54:202,327:[1,203]}),{29:[2,282]},r(M,V,{23:204,58:205,62:206,63:de}),r(u,[2,252]),{19:208,28:F,29:L,52:209,53:$,56:85},{29:[1,210]},r(f,[2,256]),{31:[1,211]},{31:[2,384]},{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,145:212,172:221,185:213,187:214,231:Tt,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},r(s1,[2,265],{56:85,35:227,52:228,19:229,28:F,29:L,53:$}),r(Ye,[2,260]),r(M,V,{58:205,62:206,23:230,63:de}),r(u,[2,268]),{6:[2,45]},r(e,t,{10:3,4:231}),{13:l,16:h,55:232,307:43,308:g},r(ce,[2,312]),{105:233,112:a1,122:234,132:[1,237],134:235,327:[1,238],334:[1,239]},r(xe,[2,318]),r(ce,o1,{108:240,133:242,112:c1,132:u1}),r(Ze,[2,323]),{112:[1,244]},{112:[2,325]},r(At,[2,50]),r(Y,Mo,{135:245,136:246,143:247,144:248,31:l1,112:l1}),r(At,[2,51]),r(At,[2,52]),r(ri,[2,328],{119:249}),{29:$e,114:250},r(ri,[2,56]),{29:$e,114:251},r(b,[2,59]),r(Pe,[2,270]),{47:[1,252]},r(f1,[2,150]),r(Lo,[2,428],{240:253}),r(ps,[2,430],{244:254}),r(ps,[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]}),r(ms,[2,440],{252:264}),r(_t,[2,448],{260:265}),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,255:154,257:155,264:266,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,255:154,257:155,264:267,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,255:154,257:155,264:268,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(_t,[2,167]),r(_t,[2,168]),r(_t,[2,169]),r(_t,[2,170],{176:269,45:h1,89:d1}),r(_t,[2,171]),r(_t,[2,172]),r(_t,[2,173]),r(_t,[2,174]),{13:l,16:h,44:136,45:G,46:272,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,176]),{89:[1,273]},{45:[1,274]},{45:[1,275]},{45:[1,276]},{45:[1,277]},{45:[1,278]},{45:p1,89:m1,179:279},{45:[1,282]},{45:[1,284],89:[1,283]},{279:[1,285]},r(zt,[2,192],{292:[1,286],293:[1,287]}),r(zt,[2,195]),r(zt,[2,196]),r(zt,[2,197]),r(zt,[2,198]),r(zt,[2,199]),r(zt,[2,200]),{13:l,16:h,44:39,55:40,82:R,87:p,139:289,172:291,255:154,257:155,266:290,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,320:288},{45:[1,292]},{45:[1,293]},{45:[1,294]},r(ya,[2,452]),r(ya,[2,453]),r(ya,[2,454]),r(ya,[2,455]),r(ya,[2,456]),{279:[2,458]},r(Vo,[2,207]),r(Vo,[2,208]),r(Vo,[2,209]),r(Vo,[2,210]),r(zt,[2,201]),r(zt,[2,202]),r(zt,[2,203]),r(zt,[2,204]),r(zt,[2,205]),r(zt,[2,206]),r(e,[2,5]),r(qo,[2,297],{88:295}),r(Bo,[2,299],{90:296}),{48:[1,297],87:[1,298]},r(Uo,[2,301]),r(q,[2,43]),r(q,[2,82]),r(q,[2,83]),{29:[1,299]},{29:[1,300]},{87:[1,302],169:301},r(c,[2,412]),r(Pi,[2,123]),r(Pi,[2,416],{221:303,339:304,39:[1,306],263:[1,307],340:[1,305]}),r(fn,[2,124]),{13:l,16:h,45:[1,311],55:194,89:[1,310],197:We,223:312,225:308,226:309,229:g1,307:43,308:g},r(c,i,{215:10,214:314}),r(fn,[2,236]),r(fn,[2,237]),r(gs,[2,6]),r(Vl,[2,287],{60:315,72:316,73:[1,317]}),r(Qe,[2,286]),{13:l,16:h,45:G,55:323,67:321,68:322,71:318,77:320,79:319,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r([6,31,63,70,73,81,83,85],[2,20]),r(Y,y1,{38:17,49:324,147:325,17:326,21:327,148:328,154:329,155:330,29:In,31:In,85:In,112:In,159:In,160:In,161:In,163:In,164:In,41:s}),{13:l,16:h,55:331,307:43,308:g},r(ce,[2,280]),r(gs,[2,7]),r(Qe,me,{59:197,69:198,20:332,70:N}),r(M,[2,284]),{64:[1,333]},r(M,V,{58:205,62:206,23:334,63:de}),r(u,[2,254]),r(Y,Mo,{144:248,30:335,143:336,31:[2,257]}),r(u,[2,100]),{31:[2,387],184:337,335:[1,338]},{13:l,16:h,44:39,55:40,87:p,139:342,186:339,190:340,195:341,197:Fi,307:43,308:g},r(_a,[2,389],{44:39,55:40,307:43,190:340,195:341,139:342,188:344,189:345,186:346,13:l,16:h,87:p,197:Fi,308:g}),r(Dn,[2,227]),r(Dn,[2,228]),r(Dn,[2,229]),{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,172:221,185:351,187:350,200:348,230:347,231:Tt,234:349,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},{13:l,16:h,44:39,55:40,87:p,139:342,186:352,190:340,195:341,197:Fi,307:43,308:g},r(Dn,[2,146]),r(Dn,[2,147]),r(Dn,[2,148]),r(Dn,[2,149]),{13:l,16:h,44:354,55:355,82:R,87:p,172:357,237:356,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:358,312:Ht,313:353},r(ql,[2,215]),r(ql,[2,216]),r(M,V,{58:205,62:206,23:359,63:de}),r(Ce,[2,264]),r(s1,[2,266]),r(gs,[2,11]),r(n,[2,308],{6:[2,310]}),r(At,[2,313],{102:360,120:361,121:[1,362]}),r(At,[2,47]),r(At,[2,63]),r(At,[2,64]),{13:l,16:h,55:363,307:43,308:g},r(At,[2,336]),r(At,[2,337]),r(At,[2,338]),{109:[1,364]},r(_1,[2,60]),{13:l,16:h,55:365,307:43,308:g},r(ce,[2,335]),{13:l,16:h,55:366,307:43,308:g},{31:[1,367]},r(Ii,[2,341],{137:368}),r(Ii,[2,340]),{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,145:369,172:221,185:213,187:214,231:Tt,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},{28:[1,370],127:371,128:[1,372]},r(ri,[2,330],{124:373,125:374,126:He}),r(ri,[2,57]),{44:375,87:p},r(f1,[2,151],{241:376,242:[1,377]}),r(Lo,[2,153],{245:378,246:[1,379]}),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,247:380,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{250:[1,381]},r(ft,[2,432]),r(ft,[2,433]),r(ft,[2,434]),r(ft,[2,435]),r(ft,[2,436]),r(ft,[2,437]),{250:[2,439]},r([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:X,298:Z,299:ee,300:Q,301:ne,302:ie}),r(ms,[2,162],{261:388,262:389,39:Bl,338:Ul}),r(_t,[2,164]),r(_t,[2,165]),r(_t,[2,166]),r(lt,[2,95]),r(lt,[2,96]),r(ft,[2,377],{177:392,325:[1,393]}),{48:[1,394]},r(lt,[2,177]),{13:l,16:h,44:136,45:G,46:395,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:396,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:397,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:398,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:399,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,183]),r(lt,[2,98]),r(ft,[2,381],{180:400}),{87:[1,401]},r(lt,[2,185]),{13:l,16:h,44:136,45:G,46:402,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{29:k,57:403},r(zt,[2,193]),{13:l,16:h,55:404,307:43,308:g},{13:l,16:h,44:39,55:40,87:p,139:342,195:405,197:Fi,307:43,308:g},r(ni,[2,233]),r(ni,[2,234]),r(ni,[2,235]),r(v1,[2,459],{281:406,325:[1,407]}),r(ft,[2,463],{284:408,325:[1,409]}),r(ft,[2,465],{286:410,325:[1,411]}),{13:l,16:h,31:[1,412],55:414,82:R,171:413,172:415,173:416,174:$o,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Wo},{31:[1,419],89:[1,420]},{29:[1,421]},r(Uo,[2,302]),r(qo,[2,367],{167:422}),r(Bo,[2,369],{168:423}),{48:[1,424],87:[1,425]},r(Uo,[2,371]),r(Pi,[2,122]),r(Pi,[2,417]),r(Pi,[2,413]),r(Pi,[2,414]),r(Pi,[2,415]),r(fn,[2,125]),r(fn,[2,127]),r(fn,[2,128]),r(S1,[2,420],{227:426}),r(fn,[2,130]),{13:l,16:h,55:194,197:We,223:427,307:43,308:g},{48:[1,428]},r(ii,[2,289],{61:429,80:430,81:[1,431],83:[1,432]}),r(Vl,[2,288]),{64:[1,433]},r(Qe,[2,29],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:434,13:l,16:h,45:G,268:le,269:Se,270:W,271:be,273:we,274:ge,276:Ee,277:ue,279:ye,280:fe,283:_e,285:Te,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C}),r(b1,[2,293]),r($l,[2,92]),r($l,[2,93]),r($l,[2,94]),{45:h1,89:d1,176:269},{31:[1,435]},{31:[1,436]},{19:437,28:F,29:L,56:85},{19:438,28:F,29:L,56:85},r(Di,[2,355],{149:439}),r(Di,[2,354]),{13:l,16:h,44:215,45:Go,55:220,82:R,87:p,89:Me,156:440,172:221,185:441,203:442,231:Ho,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},r(Ce,[2,19]),r(ii,[2,21]),{13:l,16:h,44:450,45:w1,55:323,65:445,66:446,67:447,68:448,87:p,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(gs,[2,8]),{31:[1,451]},{31:[2,258]},{31:[2,101]},r(Y,[2,386],{31:[2,388]}),r(_a,[2,102]),r(Ri,[2,391],{191:452}),r(Y,[2,395],{196:453,198:454}),r(Y,[2,108]),r(Y,[2,109]),r(_a,[2,103]),r(_a,[2,104]),r(_a,[2,390]),{13:l,16:h,44:215,45:je,48:[1,455],55:220,82:R,87:p,89:Me,172:221,185:351,187:350,200:456,231:Tt,234:349,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},r(zo,[2,424]),r(E1,[2,136]),r(E1,[2,137]),r(Wl,[2,140]),{232:[1,457]},{13:l,16:h,44:39,55:40,87:p,139:342,195:458,197:Fi,307:43,308:g},r(ni,[2,219]),r(ni,[2,220]),r(ni,[2,221]),r(ni,[2,222]),r(ni,[2,223]),r(gs,[2,10]),r(At,[2,46]),r(At,[2,314]),{112:a1,122:459},r(At,[2,62]),r(ce,o1,{133:242,108:460,112:c1,132:u1}),r(_1,[2,61]),r(At,[2,49]),r([6,28,126,128,193],[2,65]),{31:[2,66],112:[1,462],138:461},r(Ii,[2,351],{146:463,335:[1,464]}),{29:k,57:465},r(ri,[2,329]),r(ce,[2,332],{129:466,327:[1,467]}),r(ri,[2,55]),r(ri,[2,331]),{48:[1,468]},r(Lo,[2,429]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,239:469,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ps,[2,431]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,243:470,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ps,[2,156]),{45:p1,89:m1,179:471},r(ms,[2,441]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,251:472,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(_t,[2,444],{256:473}),r(_t,[2,446],{258:474}),r(ft,[2,442]),r(ft,[2,443]),r(_t,[2,449]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,255:154,257:155,259:475,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ft,[2,450]),r(ft,[2,451]),r(ft,[2,379],{178:476}),r(ft,[2,378]),r([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:l,16:h,44:136,45:G,46:482,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{48:[1,483]},{48:[1,484]},r(lt,[2,187]),r(zt,[2,194]),{13:l,16:h,44:39,55:40,82:R,87:p,139:289,172:291,255:154,257:155,266:290,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,320:485},{13:l,16:h,39:[1,487],44:136,45:G,46:488,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,282:486,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(v1,[2,460]),{13:l,16:h,44:136,45:G,46:489,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ft,[2,464]),{13:l,16:h,44:136,45:G,46:490,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ft,[2,466]),r(q,[2,40]),r(qo,[2,298]),r(va,[2,87]),r(va,[2,88]),r(va,[2,89]),r(va,[2,90]),{13:l,16:h,55:492,82:R,172:493,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,311:494,312:Ht,315:491},r(q,[2,41]),r(Bo,[2,300]),r(Sa,[2,303],{92:495}),{13:l,16:h,31:[1,496],55:414,82:R,171:497,172:415,173:416,174:$o,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Wo},{31:[1,498],89:[1,499]},{29:[1,500]},r(Uo,[2,372]),{13:l,16:h,48:[2,422],55:194,197:We,223:312,226:502,228:501,229:g1,307:43,308:g},r(fn,[2,131]),r(fn,[2,126]),r(ii,[2,22]),r(ii,[2,290]),{82:[1,503]},{82:[1,504]},{13:l,16:h,44:510,45:G,55:323,67:321,68:322,74:505,75:506,76:T1,77:320,78:A1,79:509,87:p,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(b1,[2,294]),r(x1,[2,69]),r(x1,[2,70]),r(Qe,me,{59:197,69:198,20:511,70:N}),r(M,V,{58:205,62:206,23:512,63:de}),{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},r(Di,[2,363],{157:524,335:[1,525]}),r(c,i,{215:10,202:526,205:527,208:528,214:529,44:530,87:p}),r(Ko,[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:p}),{13:l,16:h,44:215,45:Go,55:220,82:R,87:p,89:Me,172:221,185:351,203:536,212:534,231:Ho,233:533,234:535,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},r(c,i,{215:10,205:527,208:528,214:529,44:530,202:537,87:p}),r(M,[2,23],{307:43,267:139,275:146,278:149,55:323,67:447,68:448,44:450,66:538,13:l,16:h,45:w1,87:p,268:le,269:Se,270:W,271:be,273:we,274:ge,276:Ee,277:ue,279:ye,280:fe,283:_e,285:Te,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C}),r(Ni,[2,291]),r(Ni,[2,24]),r(Ni,[2,25]),{13:l,16:h,44:136,45:G,46:539,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(Ni,[2,28]),r(M,V,{58:205,62:206,23:540,63:de}),r([31,112,232,318,335],[2,105],{192:541,193:[1,542]}),r(Ri,[2,107]),{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,172:221,185:351,187:350,199:543,200:544,231:Tt,234:349,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},r(O1,[2,132]),r(zo,[2,425]),r(O1,[2,133]),{13:l,16:h,44:354,55:355,82:R,87:p,172:357,237:356,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:358,312:Ht,313:545},r(At,[2,54]),r(At,[2,48]),r(Ii,[2,342]),{13:l,16:h,44:39,55:40,87:p,139:546,307:43,308:g},r(Ii,[2,68]),r(Y,[2,350],{31:C1,112:C1}),r(At,[2,53]),{13:l,16:h,55:547,307:43,308:g},r(ce,[2,333]),r(Pe,[2,16]),r(Lo,[2,152]),r(ps,[2,154]),r(ps,[2,157]),r(ms,[2,159]),r(ms,[2,160],{262:389,261:548,39:Bl,338:Ul}),r(ms,[2,161],{262:389,261:549,39:Bl,338:Ul}),r(_t,[2,163]),{13:l,16:h,44:136,45:G,46:550,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,178]),r(lt,[2,179]),{13:l,16:h,44:136,45:G,46:551,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:552,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:553,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{48:[1,554],272:[1,555]},r(lt,[2,184]),r(lt,[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:l,16:h,55:194,197:We,223:562,307:43,308:g},r(Gl,[2,224]),r(Gl,[2,225]),r(Gl,[2,226]),{31:[1,563],45:P1,94:564},r(q,[2,84]),r(qo,[2,368]),r(q,[2,85]),r(Bo,[2,370]),r(Sa,[2,373],{170:566}),{48:[1,567]},{48:[2,423],337:[1,568]},r(ii,[2,35],{83:[1,569]}),r(ii,[2,36],{81:[1,570]}),r(Vl,[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:l,16:h,45:G,76:T1,78:A1,87:p,268:le,269:Se,270:W,271:be,273:we,274:ge,276:Ee,277:ue,279:ye,280:fe,283:_e,285:Te,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C}),r(ys,[2,295]),{45:G,77:572},{45:G,77:573},r(ys,[2,33]),r(ys,[2,34]),{31:[2,275],50:574,84:575,85:a},{31:[2,277],51:576,84:577,85:a},r(Di,[2,356]),r(F1,[2,357],{152:578,335:[1,579]}),r(Rn,[2,74]),{29:k,57:580},{29:k,57:581},{13:l,16:h,44:39,55:40,87:p,139:582,307:43,308:g},r(I1,[2,365],{162:583,328:[1,584]}),{13:l,16:h,45:G,55:323,67:321,68:322,77:320,79:585,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{45:[1,586]},r(Rn,[2,81]),{29:k,57:587},r(Di,[2,73]),r(Y,[2,362],{29:Nn,31:Nn,85:Nn,112:Nn,159:Nn,160:Nn,161:Nn,163:Nn,164:Nn}),r(Ko,[2,112]),r(_s,[2,401],{206:588}),r(Y,[2,405],{209:589,210:590}),r(Y,[2,403]),r(Y,[2,404]),r(Ko,[2,113]),r(Ko,[2,400]),{13:l,16:h,44:215,45:Go,48:[1,591],55:220,82:R,87:p,89:Me,172:221,185:351,203:536,212:592,231:Ho,234:535,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},r(zo,[2,426]),r(Wl,[2,138]),r(Wl,[2,139]),{232:[1,593]},r(Ni,[2,292]),{47:[1,595],48:[1,594]},r(gs,[2,9]),r(Ri,[2,392]),r(Ri,[2,393],{44:39,55:40,307:43,195:341,139:342,194:596,190:597,13:l,16:h,87:p,197:Fi,308:g}),r(Ri,[2,110],{272:[1,598]}),r(Yo,[2,397],{201:599,316:600,317:[1,601]}),{314:[1,602]},{29:[1,603]},r(ri,[2,58]),r(_t,[2,445]),r(_t,[2,447]),{48:[1,604],272:[1,605]},{48:[1,606]},{272:[1,607]},{272:[1,608]},r(lt,[2,99]),r(ft,[2,382]),r([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]),r(lt,[2,188]),r(lt,[2,189]),{48:[1,609]},{48:[2,468]},{289:[1,610]},{13:l,16:h,55:492,82:R,172:493,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,311:494,312:Ht,315:611},r(q,[2,42]),r(Sa,[2,304]),{13:l,16:h,55:414,82:R,95:612,171:613,172:415,173:416,174:$o,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Wo},{31:[1,614],45:P1,94:615},r(fn,[2,129]),r(S1,[2,421]),{82:[1,616]},{82:[1,617]},r(ys,[2,296]),r(ys,[2,31]),r(ys,[2,32]),{31:[2,17]},{31:[2,276]},{31:[2,18]},{31:[2,278]},r(Y,y1,{155:330,153:618,154:619,29:kn,31:kn,85:kn,112:kn,159:kn,160:kn,161:kn,163:kn,164:kn}),r(F1,[2,358]),r(Rn,[2,75]),r(Rn,[2,76]),{29:k,57:620},{13:l,16:h,44:39,55:40,87:p,139:621,307:43,308:g},r(I1,[2,366]),r(Rn,[2,79]),{13:l,16:h,44:136,45:G,46:622,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(Rn,[2,91],{336:[1,623]}),r([29,31,85,112,159,160,161,163,164,232,318,335],[2,114],{207:624,193:[1,625]}),r(_s,[2,117]),{13:l,16:h,44:215,45:Go,55:220,82:R,87:p,89:Me,172:221,185:351,203:536,211:626,212:627,231:Ho,234:535,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:ar,310:mr,311:217,312:Ht},r(Dn,[2,134]),r(zo,[2,427]),r(Dn,[2,135]),r(Ni,[2,26]),{44:628,87:p},r(Ri,[2,106]),r(Ri,[2,394]),r(Y,[2,396]),r(Yo,[2,111]),r(Yo,[2,398]),{13:l,16:h,44:39,55:40,87:p,139:342,186:629,190:340,195:341,197:Fi,307:43,308:g},r(ql,[2,217]),r(Y,Mo,{144:248,140:630,143:631,31:[2,343]}),r(lt,[2,97]),r(ft,[2,380]),r(lt,[2,180]),{13:l,16:h,44:136,45:G,46:632,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:633,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,190]),{290:[1,634]},{314:[1,635]},{13:l,16:h,48:[1,636],55:414,82:R,171:637,172:415,173:416,174:$o,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Wo},r(D1,[2,305]),r(q,[2,86]),r(Sa,[2,374]),r(ii,[2,37]),r(ii,[2,38]),r(Di,[2,72]),r(Di,[2,360]),r(Rn,[2,77]),{29:k,57:638},{47:[1,639]},{29:[2,376]},r(_s,[2,402]),r(_s,[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:p}),r(_s,[2,118],{272:[1,641]}),r(Qo,[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:ae,304:U,305:H,306:oe},r(va,[2,218]),r(Sa,[2,44]),r(D1,[2,306]),r(Rn,[2,78]),{44:651,87:p},r(_s,[2,116]),r(Y,[2,406]),r(Qo,[2,119]),r(Qo,[2,408]),r(c,i,{215:10,205:527,208:528,214:529,44:530,202:652,87:p}),r(Ni,[2,27]),r(Yo,[2,230]),r(R1,[2,345],{141:653,335:[1,654]}),r(lt,[2,181]),r(lt,[2,182]),{48:[2,191]},{48:[1,655]},{318:[1,656]},r(Y,Mo,{144:248,142:657,143:658,31:N1,112:N1}),r(R1,[2,346]),r(Rn,[2,80]),r(Qo,[2,231]),r(Ii,[2,67]),r(Ii,[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(E,O){if(O.recoverable)this.trace(E);else{var I=new Error(E);throw I.hash=O,I}},"parseError"),parse:o(function(E){var O=this,I=[0],z=[],pe=[null],d=[],Yt=this.table,m="",pn=0,Ta=0,ec=0,tc=2,Aa=1,rc=d.slice.call(arguments,1),it=Object.create(this.lexer),mn={yy:{}};for(var xa in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xa)&&(mn.yy[xa]=this.yy[xa]);it.setInput(E,mn.yy),mn.yy.lexer=it,mn.yy.parser=this,typeof it.yylloc>"u"&&(it.yylloc={});var Es=it.yylloc;d.push(Es);var Ge=it.options&&it.options.ranges;typeof mn.yy.parseError=="function"?this.parseError=mn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(gn){I.length=I.length-2*gn,pe.length=pe.length-gn,d.length=d.length-gn}o(tt,"popStack");for(var Le=o(function(){var gn;return gn=it.lex()||Aa,typeof gn!="number"&&(gn=O.symbols_[gn]||gn),gn},"lex"),Ue,or,Li,Ar,w8,sf,Ts={},nc,Ln,H1,ic;;){if(Li=I[I.length-1],this.defaultActions[Li]?Ar=this.defaultActions[Li]:((Ue===null||typeof Ue>"u")&&(Ue=Le()),Ar=Yt[Li]&&Yt[Li][Ue]),typeof Ar>"u"||!Ar.length||!Ar[0]){var af="";ic=[];for(nc in Yt[Li])this.terminals_[nc]&&nc>tc&&ic.push("'"+this.terminals_[nc]+"'");it.showPosition?af="Parse error on line "+(pn+1)+`:
101
101
  `+it.showPosition()+`
102
102
  Expecting `+ic.join(", ")+", got '"+(this.terminals_[Ue]||Ue)+"'":af="Parse error on line "+(pn+1)+": Unexpected "+(Ue==Aa?"end of input":"'"+(this.terminals_[Ue]||Ue)+"'"),this.parseError(af,{text:it.match,token:this.terminals_[Ue]||Ue,line:it.yylineno,loc:Es,expected:ic})}if(Ar[0]instanceof Array&&Ar.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Li+", token: "+Ue);switch(Ar[0]){case 1:I.push(Ue),pe.push(it.yytext),d.push(it.yylloc),I.push(Ar[1]),Ue=null,or?(Ue=or,or=null):(Ta=it.yyleng,m=it.yytext,pn=it.yylineno,Es=it.yylloc,ec>0&&ec--);break;case 2:if(Ln=this.productions_[Ar[1]][1],Ts.$=pe[pe.length-Ln],Ts._$={first_line:d[d.length-(Ln||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(Ln||1)].first_column,last_column:d[d.length-1].last_column},Ge&&(Ts._$.range=[d[d.length-(Ln||1)].range[0],d[d.length-1].range[1]]),sf=this.performAction.apply(Ts,[m,Ta,pn,mn.yy,Ar[1],pe,d].concat(rc)),typeof sf<"u")return sf;Ln&&(I=I.slice(0,-1*Ln*2),pe=pe.slice(0,-1*Ln),d=d.slice(0,-1*Ln)),I.push(this.productions_[Ar[1]][0]),pe.push(Ts.$),d.push(Ts._$),H1=Yt[I[I.length-2]][I[I.length-1]],I.push(H1);break;case 3:return!0}}return!0},"parse")},Jo=tp().Wildcard,Xo="http://www.w3.org/1999/02/22-rdf-syntax-ns#",kS=Xo+"type",jS=Xo+"first",MS=Xo+"rest",k1=Xo+"nil",Zo="http://www.w3.org/2001/XMLSchema#",j1=Zo+"integer",M1=Zo+"decimal",L1=Zo+"double",LS=Zo+"boolean",ki="",V1="",q1="";function Kt(A){return A.toLowerCase()}o(Kt,"lowercase");function jn(A,E){return A.push(E),A}o(jn,"appendTo");function ji(A,E){return A.push.apply(A,E),A}o(ji,"appendAllTo");function at(A){A||(A={});for(var E=1,O=arguments.length,I;E<O&&(I=arguments[E]||{});E++)for(var z in I)A[z]=I[z];return A}o(at,"extend");function hn(){for(var A=[],E=0,O=arguments.length;E<O;E++)A=A.concat.apply(A,arguments[E]);return A}o(hn,"unionAll");function ba(A){if(A[0]==="<"&&(A=A.substring(1,A.length-1)),/^[a-z][a-z0-9.+-]*:/i.test(A))return A;if(!ve.base)throw new Error("Cannot resolve relative IRI "+A+" because no base IRI was set.");switch(ki!==ve.base&&(ki=ve.base,V1=ki.replace(/[^\/:]*$/,""),q1=ki.match(/^(?:[a-z]+:\/*)?[^\/]*/)[0]),A[0]){case void 0:return ki;case"#":return ki+A;case"?":return ki.replace(/(?:\?.*)?$/,A);case"/":return q1+A;default:return V1+A}}o(ba,"resolveIRI");function zl(A){if(A){var E=A[0];if(E==="?"||E==="$")return ve.factory.variable(A.substr(1))}return A}o(zl,"toVar");function xt(A,E){return{type:"operation",operator:A,args:E||[]}}o(xt,"operation");function vs(A,E){var O={expression:A==="*"?new Jo:A};if(E)for(var I in E)O[I]=E[I];return O}o(vs,"expression");function Ss(A,E){return{type:"path",pathType:A,items:E}}o(Ss,"path");function Kl(A,E){for(var O=0,I=E.length,z;O<I&&(z=E[O]);O++)A=xt(z[0],[A,z[1]]);return A}o(Kl,"createOperationTree");function Mi(A,E){var O=[],I=[],z=A.length,pe,d={};if(!z)return null;for(var Yt=0;Yt<z&&(pe=A[Yt]);Yt++)(pe.named?I:O).push(pe.iri);return d[E||"from"]={default:O,named:I},d}o(Mi,"groupDatasets");function bs(A){return parseInt(A,10)}o(bs,"toInt");function Yl(A){return A.type==="group"&&A.patterns.length===1?A.patterns[0]:A}o(Yl,"degroupSingle");function dn(A,E){return E&&E.termType!=="NamedNode"&&(E=ve.factory.namedNode(E)),ve.factory.literal(A,E)}o(dn,"createTypedLiteral");function VS(A,E){return ve.factory.literal(A,E)}o(VS,"createLangLiteral");function Ql(A,E,O){if(!("termType"in E))throw new Error("Nested triples cannot contain paths");return ve.factory.quad(A,E,O)}o(Ql,"nestedTriple");function Mn(A,E,O,I){var z={};return A!=null&&(z.subject=A),E!=null&&(z.predicate=E),O!=null&&(z.object=O),I!=null&&(z.annotations=I),z}o(Mn,"triple");function wa(A){return typeof A=="string"?A.startsWith("e_")?ve.factory.blankNode(A):ve.factory.blankNode("e_"+A):ve.factory.blankNode("g_"+B1++)}o(wa,"blank");var B1=0;ve._resetBlanks=function(){B1=0};var qS=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\(.)/g,BS={"\\":"\\","'":"'",'"':'"',t:" ",b:"\b",n:`
103
103
  `,r:"\r",f:"\f"},US=/[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/,Jl=String.fromCharCode;function U1(A,E){A=A.substring(E,A.length-E);try{A=A.replace(qS,function(O,I,z,pe){var d;if(I){if(d=parseInt(I,16),isNaN(d))throw new Error;return Jl(d)}else if(z){if(d=parseInt(z,16),isNaN(d))throw new Error;return d<65535?Jl(d):Jl(55296+((d-=65536)>>10),56320+(d&1023))}else{var Yt=BS[pe];if(!Yt)throw new Error;return Yt}})}catch{return""}if(US.exec(A))throw new Error("Invalid unicode codepoint of surrogate pair without corresponding codepoint in "+A);return A}o(U1,"unescapeString");function $S(A){var E=wa(),O=E,I=[],z,pe=[];A.forEach(function(pn){I.push(pn.entity),ji(pe,pn.triples)});for(var d=0,Yt=0,m=I.length,z=Array(m*2);d<m;)z[Yt++]=Mn(O,ve.factory.namedNode(jS),I[d]),z[Yt++]=Mn(O,ve.factory.namedNode(MS),O=++d<m?wa():ve.factory.namedNode(k1));return{entity:E,triples:ji(z,pe)}}o($S,"createList");function WS(A){var E=wa();return{entity:E,triples:A.map(function(O){return at(Mn(E),O)})}}o(WS,"createAnonymousObject");function Xl(A,E,O){var I=[],z=[];return E.forEach(function(pe){let d=null;pe.annotation&&(d=pe.annotation,pe=pe.object),I.push(Mn(null,A,pe.entity,d)),ji(z,pe.triples)}),hn(I,O||[],z)}o(Xl,"objectListToTriples");function S8(A){for(var E=[],O,I=0,z;z=A[I];I++)switch(z.type){case"bgp":z.triples.length&&(O?ji(O.triples,z.triples):jn(E,O=z));break;default:(!z.patterns||z.patterns.length>0)&&(jn(E,z),O=null)}return E}o(S8,"mergeAdjacentBGPs");function ws(A){return A.variable?A.variable.value:A.value||A.expression.value}o(ws,"getExpressionId");function Zl(A){if(!A)return[];if(A.type==="aggregate")return[A];if(A.type==="operation"){let E=[];for(let O of A.args)E.push(...Zl(O));return E}return[]}o(Zl,"getAggregatesOfExpression");function GS(A){let E=new Set,O=o(function(I){I&&(I.termType==="Variable"?E.add(I):I.type==="operation"&&I.args.forEach(O))},"visitExpression");return O(A),E}o(GS,"getVariablesFromExpression");function ef(A,E=1,O=[]){for(let I of A)E>0&&I instanceof Array?ef(I,E-1,O):O.push(I);return O}o(ef,"flatten");function tf(A){return A.termType==="Variable"}o(tf,"isVariable");function $1(A){if(A.triples){let E=[];for(let O of A.triples)tf(O.subject)&&E.push(O.subject.value),tf(O.predicate)&&E.push(O.predicate.value),tf(O.object)&&E.push(O.object.value);return E}else if(A.patterns){let E=[];for(let O of A.patterns)E.push(...$1(O));return E}return[]}o($1,"getBoundVarsFromGroupGraphPattern");function HS(A){let E=A.slice().sort(),O=[];for(let I=0;I<E.length-1;I++)E[I+1]==E[I]&&O.push(E[I]);return O}o(HS,"getDuplicatesInArray");function Ea(A){if(!ve.sparqlStar)throw new Error("SPARQL-star support is not enabled");return A}o(Ea,"ensureSparqlStar");function W1(A,E,O){for(let I of E){let z=Mn("subject"in I?I.subject:A,I.predicate,I.object);O.push(z),I.annotations&&W1(Ql(A,I.predicate,I.object),I.annotations,O)}}o(W1,"_applyAnnotations");function rf(A){if(ve.sparqlStar){let E=[];return A.forEach(O=>{let I=Mn(O.subject,O.predicate,O.object);E.push(I),O.annotations&&W1(Ql(O.subject,O.predicate,O.object),O.annotations,E)}),E}return A}o(rf,"applyAnnotations");function b8(A){if(!ve.sparqlStarNestedQuads)throw new Error("Lenient SPARQL-star support with nested quads is not enabled");return A}o(b8,"ensureSparqlStarNestedQuads");function G1(A){for(let E of A){if(E.type==="graph"&&E.name.termType==="Variable")throw new Error("Detected illegal variable in GRAPH");if(E.type==="bgp"||E.type==="graph"){for(let O of E.triples)if(O.subject.termType==="Variable"||O.predicate.termType==="Variable"||O.object.termType==="Variable")throw new Error("Detected illegal variable in BGP")}}return A}o(G1,"ensureNoVariables");function nf(A){for(let E of A)if(E.type==="bgp"){for(let O of E.triples)if(O.subject.termType==="BlankNode"||O.predicate.termType==="BlankNode"||O.object.termType==="BlankNode")throw new Error("Detected illegal blank node in BGP")}return A}o(nf,"ensureNoBnodes");var zS=(function(){var A={EOF:1,parseError:o(function(O,I){if(this.yy.parser)this.yy.parser.parseError(O,I);else throw new Error(O)},"parseError"),setInput:o(function(E,O){return this.yy=O||this.yy||{},this._input=E,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 E=this._input[0];this.yytext+=E,this.yyleng++,this.offset++,this.match+=E,this.matched+=E;var O=E.match(/(?:\r\n?|\n).*/g);return O?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),E},"input"),unput:o(function(E){var O=E.length,I=E.split(/(?:\r\n?|\n)/g);this._input=E+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-O),this.offset-=O;var z=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),I.length-1&&(this.yylineno-=I.length-1);var pe=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:I?(I.length===z.length?this.yylloc.first_column:0)+z[z.length-I.length].length-I[0].length:this.yylloc.first_column-O},this.options.ranges&&(this.yylloc.range=[pe[0],pe[0]+this.yyleng-O]),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).
@@ -255,7 +255,7 @@ globstar while`,e,p,t,g,b),this.matchOne(e.slice(p),t.slice(g),n))return this.de
255
255
  \u{1F4DD} Note: Actual command execution will be implemented in follow-up issues.`),console.log(" This PR establishes the infrastructure foundation."),process.exit(0)}catch(i){Fe.handle(i)}}getVaultRoot(){return this.context.pathResolver.getVaultRoot()}async executeStart(e){return this.statusExecutor.executeStart(e)}async executeComplete(e){return this.statusExecutor.executeComplete(e)}async executeTrash(e){return this.statusExecutor.executeTrash(e)}async executeArchive(e){return this.statusExecutor.executeArchive(e)}async executeMoveToBacklog(e){return this.statusExecutor.executeMoveToBacklog(e)}async executeMoveToAnalysis(e){return this.statusExecutor.executeMoveToAnalysis(e)}async executeMoveToToDo(e){return this.statusExecutor.executeMoveToToDo(e)}async executeCreateTask(e,t,n={}){return this.creationExecutor.executeCreateTask(e,t,n)}async executeCreateMeeting(e,t,n={}){return this.creationExecutor.executeCreateMeeting(e,t,n)}async executeCreateProject(e,t,n={}){return this.creationExecutor.executeCreateProject(e,t,n)}async executeCreateArea(e,t,n={}){return this.creationExecutor.executeCreateArea(e,t,n)}async executeRenameToUid(e){return this.propertyExecutor.executeRenameToUid(e)}async executeUpdateLabel(e,t){return this.propertyExecutor.executeUpdateLabel(e,t)}async executeSchedule(e,t){return this.propertyExecutor.executeSchedule(e,t)}async executeSetDeadline(e,t){return this.propertyExecutor.executeSetDeadline(e,t)}};function Gt(r,e,t,n,i){if(r==="json"){let s={command:e,filepath:t,action:n,...i&&{changes:i}},a=Ut.success(s);console.log(JSON.stringify(a,null,2))}else console.log(`\u2705 ${n}`)}o(Gt,"outputResult");function ds(r,e,t,n){let i=new st(`--${e} option is required for ${t} command`,n,{command:t,missingOption:e});Fe.handle(i)}o(ds,"handleMissingOption");function FS(){return new yn("command").description("Execute plugin command on single asset").argument("<command-name>","Command to execute (rename-to-uid, start, complete, schedule, set-deadline, etc.)").argument("<filepath>","Path to asset file (relative to vault root or absolute)").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--label <value>","Asset label (required for update-label and creation commands)").option("--prototype <uid>","Prototype UID for inheritance (creation commands)").option("--area <uid>","Area UID for effort linkage (creation commands)").option("--parent <uid>","Parent UID for effort linkage (creation commands)").option("--date <value>","Date in YYYY-MM-DD format (required for schedule and set-deadline commands)").option("--dry-run","Preview changes without modifying files").option("--format <type>","Output format: text|json (default: text)","text").action(async(r,e,t)=>{let n=t.format||"text";Fe.setFormat(n);try{let i=(0,PS.resolve)(t.vault),s=new jl(i,t.dryRun);switch(r){case"rename-to-uid":await s.executeRenameToUid(e),Gt(n,r,e,"Renamed file to UID-based name");break;case"update-label":t.label||ds(n,"label","update-label",'exocortex command update-label <filepath> --label "<value>"'),await s.executeUpdateLabel(e,t.label),Gt(n,r,e,`Updated label to "${t.label}"`,{label:t.label});break;case"start":await s.executeStart(e),Gt(n,r,e,"Started task");break;case"complete":await s.executeComplete(e),Gt(n,r,e,"Completed task");break;case"trash":await s.executeTrash(e),Gt(n,r,e,"Moved task to trash");break;case"archive":await s.executeArchive(e),Gt(n,r,e,"Archived task");break;case"move-to-backlog":await s.executeMoveToBacklog(e),Gt(n,r,e,"Moved task to backlog");break;case"move-to-analysis":await s.executeMoveToAnalysis(e),Gt(n,r,e,"Moved task to analysis");break;case"move-to-todo":await s.executeMoveToToDo(e),Gt(n,r,e,"Moved task to todo");break;case"create-task":t.label||ds(n,"label","create-task",'exocortex command create-task <filepath> --label "<value>"'),await s.executeCreateTask(e,t.label,{prototype:t.prototype,area:t.area,parent:t.parent}),Gt(n,r,e,`Created task "${t.label}"`,{label:t.label,prototype:t.prototype,area:t.area,parent:t.parent});break;case"create-meeting":t.label||ds(n,"label","create-meeting",'exocortex command create-meeting <filepath> --label "<value>"'),await s.executeCreateMeeting(e,t.label,{prototype:t.prototype,area:t.area,parent:t.parent}),Gt(n,r,e,`Created meeting "${t.label}"`,{label:t.label,prototype:t.prototype,area:t.area,parent:t.parent});break;case"create-project":t.label||ds(n,"label","create-project",'exocortex command create-project <filepath> --label "<value>"'),await s.executeCreateProject(e,t.label,{prototype:t.prototype,area:t.area,parent:t.parent}),Gt(n,r,e,`Created project "${t.label}"`,{label:t.label,prototype:t.prototype,area:t.area,parent:t.parent});break;case"create-area":t.label||ds(n,"label","create-area",'exocortex command create-area <filepath> --label "<value>"'),await s.executeCreateArea(e,t.label,{prototype:t.prototype,area:t.area,parent:t.parent}),Gt(n,r,e,`Created area "${t.label}"`,{label:t.label,prototype:t.prototype,area:t.area,parent:t.parent});break;case"schedule":t.date||ds(n,"date","schedule",'exocortex command schedule <filepath> --date "YYYY-MM-DD"'),await s.executeSchedule(e,t.date),Gt(n,r,e,`Scheduled task for ${t.date}`,{date:t.date});break;case"set-deadline":t.date||ds(n,"date","set-deadline",'exocortex command set-deadline <filepath> --date "YYYY-MM-DD"'),await s.executeSetDeadline(e,t.date),Gt(n,r,e,`Set deadline to ${t.date}`,{date:t.date});break;default:await s.execute(r,e,t),Gt(n,r,e,`Executed ${r}`);break}}catch(i){Fe.handle(i)}})}o(FS,"commandCommand");var DS=require("path");var ti=Je(require("fs")),e1=Je(require("path")),IS=require("events");var _8={watch:ti.default.watch.bind(ti.default),existsSync:ti.default.existsSync.bind(ti.default),statSync:ti.default.statSync.bind(ti.default),readFileSync:ti.default.readFileSync.bind(ti.default)},Ml=class extends IS.EventEmitter{constructor(t,n={}){super();this.watcher=null;this.debounceTimers=new Map;this.isRunning=!1;this.vaultPath=e1.default.resolve(t),this.fsAdapter=n.fsAdapter??_8,this.options={pattern:n.pattern??"**/*.md",assetType:n.assetType??"",debounceMs:n.debounceMs??100,recursive:n.recursive??!0}}static{o(this,"FileSystemWatcher")}start(){this.isRunning||(this.watcher=this.fsAdapter.watch(this.vaultPath,{recursive:this.options.recursive},(t,n)=>{n&&this.handleFileEvent(t,n.toString())}),this.watcher.on("error",t=>{this.emit("error",t)}),this.isRunning=!0,this.emit("started"))}stop(){if(this.isRunning){for(let t of this.debounceTimers.values())clearTimeout(t);this.debounceTimers.clear(),this.watcher&&(this.watcher.close(),this.watcher=null),this.isRunning=!1,this.emit("stopped")}}isWatching(){return this.isRunning}handleFileEvent(t,n){let i=e1.default.join(this.vaultPath,n),s=n;if(!this.matchesPattern(s))return;let a=this.debounceTimers.get(i);a&&clearTimeout(a);let c=setTimeout(()=>{this.debounceTimers.delete(i),this.processFileEvent(i,s)},this.options.debounceMs);this.debounceTimers.set(i,c)}processFileEvent(t,n){let i=this.fsAdapter.existsSync(t),s;if(!i)s="delete";else{let u=this.fsAdapter.statSync(t);s=Date.now()-u.birthtimeMs<1e3?"create":"modify"}let a;if(i&&t.endsWith(".md")&&(a=this.extractAssetType(t)),this.options.assetType&&a!==this.options.assetType)return;let c={type:s,path:t,relativePath:n,timestamp:new Date().toISOString(),assetType:a};this.emit("change",c)}matchesPattern(t){return this.options.pattern?Nt(t,this.options.pattern):!0}extractAssetType(t){try{let i=this.fsAdapter.readFileSync(t,"utf-8").match(/^---\n([\s\S]*?)\n---/);if(!i)return;let a=i[1].match(/exo__Instance_class:\s*(?:\[?"?\[\[([^\]]+)\]\]"?\]?|"?\[\[([^\]]+)\]\]"?)/);return a?a[1]||a[2]:void 0}catch{return}}};var t1=Je(require("fs"));function RS(){return new yn("watch").description("Watch vault for file changes and emit NDJSON events").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--pattern <glob>","Glob pattern to filter files (e.g., '*.md', 'tasks/**')").option("--asset-type <type>","Filter by asset type (e.g., 'ems__Task', 'ems__Project')").option("--debounce <ms>","Debounce interval in milliseconds","100").action(async r=>{Fe.setFormat("json");try{let e=(0,DS.resolve)(r.vault);if(!t1.default.existsSync(e))throw new us(e);if(!t1.default.statSync(e).isDirectory())throw new st(`Vault path is not a directory: ${e}`,"Provide a path to a directory, not a file",{vaultPath:e});let t=parseInt(r.debounce?.toString()??"100",10);if(isNaN(t)||t<0)throw new st("--debounce must be a non-negative integer","Use a positive integer value for debounce",{debounce:r.debounce});let n=new Ml(e,{pattern:r.pattern,assetType:r.assetType,debounceMs:t});n.on("change",s=>{console.log(JSON.stringify(s))}),n.on("error",s=>{let a=Ut.error("INTERNAL_OPERATION_FAILED",s.message,5,{recovery:{message:"Check file permissions and vault access",suggestion:"Ensure the vault directory is accessible"}});console.log(JSON.stringify(a))});let i=o(()=>{n.stop(),process.exit(0)},"shutdown");process.on("SIGINT",i),process.on("SIGTERM",i),console.error(`Watching vault: ${e}`),r.pattern&&console.error(` Pattern filter: ${r.pattern}`),r.assetType&&console.error(` Asset type filter: ${r.assetType}`),console.error(` Debounce: ${t}ms`),console.error("Press Ctrl+C to stop"),n.start()}catch(e){Fe.handle(e)}})}o(RS,"watchCommand");var n1=require("path"),i1=Je(Qs());var ma=Je(yi());var ln=Je(Qs()),r1=Je(require("crypto"));var Ll=class{constructor(){this.backups=new Map;this.fileHashes=new Map}static{o(this,"TransactionManager")}async begin(e){if(!ln.default.existsSync(e))throw new Error(`Cannot backup non-existent file: ${e}`);let t=await ln.default.readFile(e,"utf-8"),n=r1.default.createHash("sha256").update(t).digest("hex");this.fileHashes.set(e,n);let i=`${e}.backup.${Date.now()}`;await ln.default.writeFile(i,t,"utf-8"),this.backups.set(e,i)}async verify(e){let t=this.fileHashes.get(e);if(!t)return!0;if(!ln.default.existsSync(e))return!1;let n=await ln.default.readFile(e,"utf-8");return r1.default.createHash("sha256").update(n).digest("hex")===t}async commit(){for(let e of this.backups.values())ln.default.existsSync(e)&&await ln.default.remove(e);this.backups.clear(),this.fileHashes.clear()}async rollback(){for(let[e,t]of this.backups.entries())ln.default.existsSync(t)&&(await ln.default.copy(t,e,{overwrite:!0}),await ln.default.remove(t));this.backups.clear(),this.fileHashes.clear()}getTrackedFiles(){return Array.from(this.backups.keys())}};var jo=class{static{o(this,"BatchExecutor")}constructor(e,t=!1){this.pathResolver=new da(e),this.fsAdapter=new ha(e),this.frontmatterService=new ma.FrontmatterService,this.transactionManager=new Ll,this.dryRun=t}async executeBatch(e,t=!1){let n=Date.now(),i=[],s=0,a=0,c=!1;if(e.length===0)return{success:!0,total:0,succeeded:0,failed:0,results:[],durationMs:Date.now()-n,atomic:t};if(t&&!this.dryRun)try{await this.backupAllFiles(e)}catch(f){return{success:!1,total:e.length,succeeded:0,failed:e.length,results:e.map(l=>({success:!1,command:l.command,filepath:l.filepath,error:`Backup failed: ${f.message}`})),durationMs:Date.now()-n,atomic:t}}for(let f of e){let l=await this.executeSingleOperation(f);if(i.push(l),l.success)s++;else if(a++,t&&!this.dryRun){await this.transactionManager.rollback(),c=!0;let h=i.length;for(let p=h;p<e.length;p++)i.push({success:!1,command:e[p].command,filepath:e[p].filepath,error:"Not executed due to atomic rollback"}),a++;return{success:!1,total:e.length,succeeded:0,failed:e.length,results:i,durationMs:Date.now()-n,atomic:t,rolledBack:!0}}}return t&&!this.dryRun&&!c&&await this.transactionManager.commit(),{success:a===0,total:e.length,succeeded:s,failed:a,results:i,durationMs:Date.now()-n,atomic:t,...t&&{rolledBack:c}}}static parseInput(e){try{let t=JSON.parse(e);if(!Array.isArray(t))throw new st("Batch input must be a JSON array of operations",`exo batch --input '[{"command":"start","filepath":"task.md"}]'`);for(let n of t){if(!n.command||typeof n.command!="string")throw new st('Each operation must have a "command" string property','{"command":"start","filepath":"task.md"}');if(!n.filepath||typeof n.filepath!="string")throw new st('Each operation must have a "filepath" string property','{"command":"start","filepath":"task.md"}')}return t}catch(t){throw t instanceof st?t:new st(`Failed to parse batch input: ${t.message}`,`exo batch --input '[{"command":"start","filepath":"task.md"}]'`)}}async backupAllFiles(e){let t=new Set;for(let n of e){let i=this.pathResolver.resolve(n.filepath);t.add(i)}for(let n of t)await this.transactionManager.begin(n)}async executeSingleOperation(e){try{let t=this.pathResolver.resolve(e.filepath);this.pathResolver.validate(t);let n=t.replace(this.pathResolver.getVaultRoot()+"/",""),i=await this.fsAdapter.readFile(n);if(this.dryRun)return{success:!0,command:e.command,filepath:e.filepath,action:`Would execute ${e.command} (dry-run)`};switch(e.command){case"start":return await this.executeStart(n,e);case"complete":return await this.executeComplete(n,e);case"trash":return await this.executeTrash(n,e);case"archive":return await this.executeArchive(n,e);case"move-to-backlog":return await this.executeStatusUpdate(n,e,"ems__EffortStatusBacklog","Moved to backlog");case"move-to-analysis":return await this.executeStatusUpdate(n,e,"ems__EffortStatusAnalysis","Moved to analysis");case"move-to-todo":return await this.executeStatusUpdate(n,e,"ems__EffortStatusToDo","Moved to todo");case"update-label":return await this.executeUpdateLabel(n,e);case"schedule":return await this.executeSchedule(n,e);case"set-deadline":return await this.executeSetDeadline(n,e);default:return{success:!1,command:e.command,filepath:e.filepath,error:`Unknown command: ${e.command}`}}}catch(t){return{success:!1,command:e.command,filepath:e.filepath,error:t.message}}}getCurrentTimestamp(){return ma.DateFormatter.toLocalTimestamp(new Date)}async executeStart(e,t){let n=await this.fsAdapter.readFile(e),i=this.getCurrentTimestamp(),s=this.frontmatterService.updateProperty(n,"ems__Effort_status",'"[[ems__EffortStatusDoing]]"');return s=this.frontmatterService.updateProperty(s,"ems__Effort_startTimestamp",i),await this.fsAdapter.updateFile(e,s),{success:!0,command:t.command,filepath:t.filepath,action:"Started task",changes:{status:"Doing",startTimestamp:i}}}async executeComplete(e,t){let n=await this.fsAdapter.readFile(e),i=this.getCurrentTimestamp(),s=this.frontmatterService.updateProperty(n,"ems__Effort_status",'"[[ems__EffortStatusDone]]"');return s=this.frontmatterService.updateProperty(s,"ems__Effort_endTimestamp",i),s=this.frontmatterService.updateProperty(s,"ems__Effort_resolutionTimestamp",i),await this.fsAdapter.updateFile(e,s),{success:!0,command:t.command,filepath:t.filepath,action:"Completed task",changes:{status:"Done",endTimestamp:i,resolutionTimestamp:i}}}async executeTrash(e,t){let n=await this.fsAdapter.readFile(e),i=this.getCurrentTimestamp(),s=this.frontmatterService.updateProperty(n,"ems__Effort_status",'"[[ems__EffortStatusTrashed]]"');return s=this.frontmatterService.updateProperty(s,"ems__Effort_resolutionTimestamp",i),await this.fsAdapter.updateFile(e,s),{success:!0,command:t.command,filepath:t.filepath,action:"Trashed task",changes:{status:"Trashed",resolutionTimestamp:i}}}async executeArchive(e,t){let n=await this.fsAdapter.readFile(e),i=this.frontmatterService.updateProperty(n,"archived","true");return i=this.frontmatterService.removeProperty(i,"aliases"),await this.fsAdapter.updateFile(e,i),{success:!0,command:t.command,filepath:t.filepath,action:"Archived task",changes:{archived:!0,aliasesRemoved:!0}}}async executeStatusUpdate(e,t,n,i){let s=await this.fsAdapter.readFile(e),a=this.frontmatterService.updateProperty(s,"ems__Effort_status",`"[[${n}]]"`);return await this.fsAdapter.updateFile(e,a),{success:!0,command:t.command,filepath:t.filepath,action:i,changes:{status:n.replace("ems__EffortStatus","")}}}async executeUpdateLabel(e,t){let n=t.options?.label;if(!n||n.trim()==="")return{success:!1,command:t.command,filepath:t.filepath,error:'Missing required option: "label"'};let i=n.trim(),s=await this.fsAdapter.readFile(e),a=this.frontmatterService.updateProperty(s,"exo__Asset_label",`"${i}"`);return await this.fsAdapter.updateFile(e,a),{success:!0,command:t.command,filepath:t.filepath,action:`Updated label to "${i}"`,changes:{label:i}}}async executeSchedule(e,t){let n=t.options?.date;if(!n)return{success:!1,command:t.command,filepath:t.filepath,error:'Missing required option: "date"'};if(!/^\d{4}-\d{2}-\d{2}$/.test(n))return{success:!1,command:t.command,filepath:t.filepath,error:`Invalid date format: ${n}. Expected YYYY-MM-DD`};let i=await this.fsAdapter.readFile(e),s=ma.DateFormatter.toTimestampAtStartOfDay(n),a=this.frontmatterService.updateProperty(i,"ems__Effort_scheduledTimestamp",s);return await this.fsAdapter.updateFile(e,a),{success:!0,command:t.command,filepath:t.filepath,action:`Scheduled for ${n}`,changes:{scheduledTimestamp:s}}}async executeSetDeadline(e,t){let n=t.options?.date;if(!n)return{success:!1,command:t.command,filepath:t.filepath,error:'Missing required option: "date"'};if(!/^\d{4}-\d{2}-\d{2}$/.test(n))return{success:!1,command:t.command,filepath:t.filepath,error:`Invalid date format: ${n}. Expected YYYY-MM-DD`};let i=await this.fsAdapter.readFile(e),s=ma.DateFormatter.toTimestampAtStartOfDay(n),a=this.frontmatterService.updateProperty(i,"ems__Effort_deadlineTimestamp",s);return await this.fsAdapter.updateFile(e,a),{success:!0,command:t.command,filepath:t.filepath,action:`Set deadline to ${n}`,changes:{deadlineTimestamp:s}}}};function v8(r,e){if(r==="json"){let t=Ut.success(e,{durationMs:e.durationMs,itemCount:e.total});console.log(JSON.stringify(t,null,2))}else{if(console.log(`
256
256
  \u{1F4E6} Batch Execution ${e.success?"Complete":"Failed"}`),console.log(` Total: ${e.total} operations`),console.log(` \u2705 Succeeded: ${e.succeeded}`),console.log(` \u274C Failed: ${e.failed}`),console.log(` \u23F1\uFE0F Duration: ${e.durationMs}ms`),e.atomic&&console.log(` \u{1F512} Atomic mode: ${e.rolledBack?"Rolled back":"Committed"}`),e.failed>0){console.log(`
257
257
  \u{1F4CB} Failed Operations:`);for(let t of e.results.filter(n=>!n.success))console.log(` \u274C ${t.command} ${t.filepath}: ${t.error}`)}if(e.succeeded>0&&r==="text"){console.log(`
258
- \u{1F4CB} Successful Operations:`);for(let t of e.results.filter(n=>n.success))console.log(` \u2705 ${t.command} ${t.filepath}: ${t.action}`)}}}o(v8,"outputResult");function NS(){return new yn("batch").description("Execute multiple operations in a single CLI invocation").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--input <json>","JSON array of operations to execute").option("--file <path>","Path to JSON file containing operations").option("--atomic","All-or-nothing execution (rollback on any failure)").option("--dry-run","Preview changes without modifying files").option("--format <type>","Output format: text|json (default: text)","text").action(async r=>{let e=r.format||"text";Fe.setFormat(e);try{let t=(0,n1.resolve)(r.vault),n;if(r.input)n=r.input;else if(r.file){let c=(0,n1.resolve)(r.file);if(!i1.default.existsSync(c))throw new st(`Batch file not found: ${c}`,"exocortex batch --file operations.json");n=await i1.default.readFile(c,"utf-8")}else throw new st("Either --input or --file option is required",`exocortex batch --input '[{"command":"start","filepath":"task.md"}]' or exocortex batch --file operations.json`);let i=jo.parseInput(n);if(i.length===0)throw new st("Batch input contains no operations",`exocortex batch --input '[{"command":"start","filepath":"task.md"}]'`);let a=await new jo(t,r.dryRun).executeBatch(i,r.atomic);v8(e,a),process.exit(a.success?0:5)}catch(t){Fe.handle(t)}})}o(NS,"batchCommand");var ga=new yn;ga.name("exocortex").description("CLI tool for Exocortex knowledge management system").version("13.118.1");ga.command("sparql").description("SPARQL query execution").addCommand(Ev());ga.addCommand(FS());ga.addCommand(RS());ga.addCommand(NS());ga.parse();
258
+ \u{1F4CB} Successful Operations:`);for(let t of e.results.filter(n=>n.success))console.log(` \u2705 ${t.command} ${t.filepath}: ${t.action}`)}}}o(v8,"outputResult");function NS(){return new yn("batch").description("Execute multiple operations in a single CLI invocation").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--input <json>","JSON array of operations to execute").option("--file <path>","Path to JSON file containing operations").option("--atomic","All-or-nothing execution (rollback on any failure)").option("--dry-run","Preview changes without modifying files").option("--format <type>","Output format: text|json (default: text)","text").action(async r=>{let e=r.format||"text";Fe.setFormat(e);try{let t=(0,n1.resolve)(r.vault),n;if(r.input)n=r.input;else if(r.file){let c=(0,n1.resolve)(r.file);if(!i1.default.existsSync(c))throw new st(`Batch file not found: ${c}`,"exocortex batch --file operations.json");n=await i1.default.readFile(c,"utf-8")}else throw new st("Either --input or --file option is required",`exocortex batch --input '[{"command":"start","filepath":"task.md"}]' or exocortex batch --file operations.json`);let i=jo.parseInput(n);if(i.length===0)throw new st("Batch input contains no operations",`exocortex batch --input '[{"command":"start","filepath":"task.md"}]'`);let a=await new jo(t,r.dryRun).executeBatch(i,r.atomic);v8(e,a),process.exit(a.success?0:5)}catch(t){Fe.handle(t)}})}o(NS,"batchCommand");var ga=new yn;ga.name("exocortex").description("CLI tool for Exocortex knowledge management system").version("13.119.1");ga.command("sparql").description("SPARQL query execution").addCommand(Ev());ga.addCommand(FS());ga.addCommand(RS());ga.addCommand(NS());ga.parse();
259
259
  /*! Bundled license information:
260
260
 
261
261
  reflect-metadata/Reflect.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exocortex-cli",
3
- "version": "13.118.1",
3
+ "version": "13.119.1",
4
4
  "description": "CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more",
5
5
  "main": "dist/index.js",
6
6
  "bin": {