@arcgis/coding-components 4.29.0-beta.93 → 4.29.0-beta.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +6 -1
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +9 -2
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +1 -1
- package/dist/arcgis-coding-components/index.esm.js +6 -1
- package/dist/arcgis-coding-components/{p-a1a4f5fc.js → p-06b7a85d.js} +6 -1
- package/dist/arcgis-coding-components/{p-4c959bce.js → p-22837217.js} +15 -10
- package/dist/arcgis-coding-components/{p-ccafed7f.js → p-2b1aca7c.js} +5 -0
- package/dist/arcgis-coding-components/{p-75ae922a.js → p-4c4149bc.js} +6 -1
- package/dist/arcgis-coding-components/{p-79707082.js → p-5fb23065.js} +6 -1
- package/dist/arcgis-coding-components/{p-009eaccf.js → p-8f020f20.js} +5 -0
- package/dist/arcgis-coding-components/p-a051ec0a.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-cdfe57a1.js → p-a17571b6.js} +6 -1
- package/dist/arcgis-coding-components/{p-1d062d47.js → p-a6429039.js} +6 -1
- package/dist/arcgis-coding-components/{p-590b795b.js → p-c2344fd6.js} +6 -1
- package/dist/arcgis-coding-components/{p-ca7059d4.js → p-d37fa51c.js} +6 -1
- package/dist/arcgis-coding-components/p-db60fe10.js +6 -0
- package/dist/cjs/{arcade-defaults-7faf4d5f.js → arcade-defaults-042fbece.js} +487 -362
- package/dist/cjs/{arcade-mode-26b8bc7a.js → arcade-mode-b495cb6f.js} +24 -20
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +176 -112
- package/dist/cjs/arcgis-coding-components.cjs.js +6 -1
- package/dist/cjs/{css-eb1c8e5c.js → css-19093b80.js} +5 -0
- package/dist/cjs/{cssMode-90f06d02.js → cssMode-ce70c012.js} +7 -2
- package/dist/cjs/{html-1aa8e458.js → html-04cbd899.js} +7 -2
- package/dist/cjs/{htmlMode-d3283acc.js → htmlMode-5e973c6f.js} +7 -2
- package/dist/cjs/{index-aaf14a3e.js → index-30445be8.js} +5 -0
- package/dist/cjs/index.cjs.js +7 -2
- package/dist/cjs/{javascript-7a4d9023.js → javascript-8717f18b.js} +8 -3
- package/dist/cjs/{jsonMode-73be73dc.js → jsonMode-b93b2667.js} +7 -2
- package/dist/cjs/loader.cjs.js +6 -1
- package/dist/cjs/{tsMode-95a699e0.js → tsMode-73e2fe2f.js} +7 -2
- package/dist/cjs/{typescript-588df930.js → typescript-a75c0ef4.js} +7 -2
- package/dist/components/arcade-api.js +11 -6
- package/dist/components/arcade-contribution.js +16 -6
- package/dist/components/arcade-defaults.js +243 -118
- package/dist/components/arcade-mode.js +22 -18
- package/dist/components/arcade-results.js +137 -85
- package/dist/components/arcade-suggestions.js +9 -4
- package/dist/components/arcade-variables.js +10 -5
- package/dist/components/arcgis-arcade-api.js +5 -0
- package/dist/components/arcgis-arcade-editor.js +20 -8
- package/dist/components/arcgis-arcade-results.js +5 -0
- package/dist/components/arcgis-arcade-suggestions.js +5 -0
- package/dist/components/arcgis-arcade-variables.js +5 -0
- package/dist/components/arcgis-code-editor.js +5 -0
- package/dist/components/code-editor.js +9 -4
- package/dist/components/fields.js +5 -0
- package/dist/components/functional-components.js +5 -0
- package/dist/components/index.js +5 -0
- package/dist/components/index2.js +7 -2
- package/dist/components/markdown.js +5 -0
- package/dist/components/utilities.js +7 -2
- package/dist/esm/{arcade-defaults-0bc49d1c.js → arcade-defaults-106e7abf.js} +479 -354
- package/dist/esm/{arcade-mode-01365fb8.js → arcade-mode-a890a073.js} +24 -20
- package/dist/esm/arcgis-arcade-api_6.entry.js +176 -112
- package/dist/esm/arcgis-coding-components.js +7 -2
- package/dist/esm/{css-aade9167.js → css-5029659c.js} +5 -0
- package/dist/esm/{cssMode-edce5a89.js → cssMode-c3ebc40a.js} +7 -2
- package/dist/esm/{html-00b724af.js → html-13c9342a.js} +7 -2
- package/dist/esm/{htmlMode-ad3459b7.js → htmlMode-053279f0.js} +7 -2
- package/dist/esm/{index-3732acb8.js → index-c845e955.js} +5 -0
- package/dist/esm/index.js +7 -2
- package/dist/esm/{javascript-bdd52d83.js → javascript-c580af02.js} +8 -3
- package/dist/esm/{jsonMode-7b4c07fb.js → jsonMode-cd51566e.js} +7 -2
- package/dist/esm/loader.js +7 -2
- package/dist/esm/{tsMode-0bd06180.js → tsMode-c0164816.js} +7 -2
- package/dist/esm/{typescript-dfdad07a.js → typescript-7e6d57f4.js} +7 -2
- package/dist/loader/cdn.js +5 -1
- package/dist/loader/index.cjs.js +5 -1
- package/dist/loader/index.es2017.js +5 -1
- package/dist/loader/index.js +5 -1
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +1 -1
- package/dist/types/components/arcade-results/arcade-results.d.ts +0 -5
- package/dist/types/components.d.ts +3 -3
- package/dist/types/utils/arcade-executor.d.ts +12 -4
- package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +6 -4
- package/dist/types/utils/profile/editor-profile.d.ts +10 -5
- package/dist/types/utils/profile/types.d.ts +3 -3
- package/dist/types/utils/profile/utils.d.ts +4 -0
- package/package.json +10 -10
- package/dist/arcgis-coding-components/p-86772125.js +0 -1
- package/dist/arcgis-coding-components/p-ac769046.entry.js +0 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
`).length>=15&&nl(f,m=>m.length>=2)>=2}),o=ol(e,o),o}function nl(e,t){let n=0;for(let i of e)t(i)&&n++;return n}function il(e,t,n,i){let r=[],s=e.filter(l=>l.modified.isEmpty&&l.original.length>=3).map(l=>new Nt(l.original,t,l)),o=new Set(e.filter(l=>l.original.isEmpty&&l.modified.length>=3).map(l=>new Nt(l.modified,n,l))),a=new Set;for(let l of s){let c=-1,h;for(let f of o){let d=l.computeSimilarity(f);d>c&&(c=d,h=f)}if(c>.9&&h&&(o.delete(h),r.push(new Ze(l.range,h.range)),a.add(l.source),a.add(h.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}function rl(e,t,n,i,r,s){let o=[],a=new Zn;for(let d of e)for(let m=d.original.startLineNumber;m<d.original.endLineNumberExclusive-2;m++){let x=`${t[m-1]}:${t[m+1-1]}:${t[m+2-1]}`;a.add(x,{range:new $(m,m+3)})}let l=[];e.sort(Jt(d=>d.modified.startLineNumber,Qt));for(let d of e){let m=[];for(let x=d.modified.startLineNumber;x<d.modified.endLineNumberExclusive-2;x++){let p=`${n[x-1]}:${n[x+1-1]}:${n[x+2-1]}`,A=new $(x,x+3),w=[];a.forEach(p,({range:b})=>{for(let E of m)if(E.originalLineRange.endLineNumberExclusive+1===b.endLineNumberExclusive&&E.modifiedLineRange.endLineNumberExclusive+1===A.endLineNumberExclusive){E.originalLineRange=new $(E.originalLineRange.startLineNumber,b.endLineNumberExclusive),E.modifiedLineRange=new $(E.modifiedLineRange.startLineNumber,A.endLineNumberExclusive),w.push(E);return}let C={modifiedLineRange:A,originalLineRange:b};l.push(C),w.push(C)}),m=w}if(!s.isValid())return[]}l.sort(Bs(Jt(d=>d.modifiedLineRange.length,Qt)));let c=new lt,h=new lt;for(let d of l){let m=d.modifiedLineRange.startLineNumber-d.originalLineRange.startLineNumber,x=c.subtractFrom(d.modifiedLineRange),p=h.subtractFrom(d.originalLineRange).getWithDelta(m),A=x.getIntersection(p);for(let w of A.ranges){if(w.length<3)continue;let b=w,C=w.delta(-m);o.push(new Ze(C,b)),c.addRange(b),h.addRange(C)}}o.sort(Jt(d=>d.original.startLineNumber,Qt));let f=new Ft(e);for(let d=0;d<o.length;d++){let m=o[d],x=f.findLastMonotonous(k=>k.original.startLineNumber<=m.original.startLineNumber),p=Te(e,k=>k.modified.startLineNumber<=m.modified.startLineNumber),A=Math.max(m.original.startLineNumber-x.original.startLineNumber,m.modified.startLineNumber-p.modified.startLineNumber),w=f.findLastMonotonous(k=>k.original.startLineNumber<m.original.endLineNumberExclusive),b=Te(e,k=>k.modified.startLineNumber<m.modified.endLineNumberExclusive),C=Math.max(w.original.endLineNumberExclusive-m.original.endLineNumberExclusive,b.modified.endLineNumberExclusive-m.modified.endLineNumberExclusive),E;for(E=0;E<A;E++){let k=m.original.startLineNumber-E-1,I=m.modified.startLineNumber-E-1;if(k>i.length||I>r.length||c.contains(I)||h.contains(k)||!jo(i[k-1],r[I-1],s))break}E>0&&(h.addRange(new $(m.original.startLineNumber-E,m.original.startLineNumber)),c.addRange(new $(m.modified.startLineNumber-E,m.modified.startLineNumber)));let v;for(v=0;v<C;v++){let k=m.original.endLineNumberExclusive+v,I=m.modified.endLineNumberExclusive+v;if(k>i.length||I>r.length||c.contains(I)||h.contains(k)||!jo(i[k-1],r[I-1],s))break}v>0&&(h.addRange(new $(m.original.endLineNumberExclusive,m.original.endLineNumberExclusive+v)),c.addRange(new $(m.modified.endLineNumberExclusive,m.modified.endLineNumberExclusive+v))),(E>0||v>0)&&(o[d]=new Ze(new $(m.original.startLineNumber-E,m.original.endLineNumberExclusive+v),new $(m.modified.startLineNumber-E,m.modified.endLineNumberExclusive+v)))}return o}function jo(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;let r=new kt().compute(new Ke([e],new q(0,1),!1),new Ke([t],new q(0,1),!1),n),s=0,o=ae.invert(r.diffs,e.length);for(let h of o)h.seq1Range.forEach(f=>{tn(e.charCodeAt(f))||s++});function a(h){let f=0;for(let d=0;d<e.length;d++)tn(h.charCodeAt(d))||f++;return f}let l=a(e.length>t.length?e:t);return s/l>.6&&l>10}function sl(e){if(e.length===0)return e;e.sort(Jt(n=>n.original.startLineNumber,Qt));let t=[e[0]];for(let n=1;n<e.length;n++){let i=t[t.length-1],r=e[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,o=r.modified.startLineNumber-i.modified.endLineNumberExclusive;if(s>=0&&o>=0&&s+o<=2){t[t.length-1]=i.join(r);continue}t.push(r)}return t}function ol(e,t){let n=new Ft(e);return t=t.filter(i=>{let r=n.findLastMonotonous(a=>a.original.startLineNumber<i.original.endLineNumberExclusive)||new Ze(new $(1,1),new $(1,1)),s=Te(e,a=>a.modified.startLineNumber<i.modified.endLineNumberExclusive);return r!==s}),t}function dr(e,t,n){let i=n;return i=Xo(e,t,i),i=Xo(e,t,i),i=al(e,t,i),i}function Xo(e,t,n){if(n.length===0)return n;let i=[];i.push(n[0]);for(let s=1;s<n.length;s++){let o=i[i.length-1],a=n[s];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){let l=a.seq1Range.start-o.seq1Range.endExclusive,c;for(c=1;c<=l&&!(e.getElement(a.seq1Range.start-c)!==e.getElement(a.seq1Range.endExclusive-c)||t.getElement(a.seq2Range.start-c)!==t.getElement(a.seq2Range.endExclusive-c));c++);if(c--,c===l){i[i.length-1]=new ae(new q(o.seq1Range.start,a.seq1Range.endExclusive-l),new q(o.seq2Range.start,a.seq2Range.endExclusive-l));continue}a=a.delta(-c)}i.push(a)}let r=[];for(let s=0;s<i.length-1;s++){let o=i[s+1],a=i[s];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){let l=o.seq1Range.start-a.seq1Range.endExclusive,c;for(c=0;c<l&&!(!e.isStronglyEqual(a.seq1Range.start+c,a.seq1Range.endExclusive+c)||!t.isStronglyEqual(a.seq2Range.start+c,a.seq2Range.endExclusive+c));c++);if(c===l){i[s+1]=new ae(new q(a.seq1Range.start+l,o.seq1Range.endExclusive),new q(a.seq2Range.start+l,o.seq2Range.endExclusive));continue}c>0&&(a=a.delta(c))}r.push(a)}return i.length>0&&r.push(i[i.length-1]),r}function al(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){let r=i>0?n[i-1]:void 0,s=n[i],o=i+1<n.length?n[i+1]:void 0,a=new q(r?r.seq1Range.start+1:0,o?o.seq1Range.endExclusive-1:e.length),l=new q(r?r.seq2Range.start+1:0,o?o.seq2Range.endExclusive-1:t.length);s.seq1Range.isEmpty?n[i]=Jo(s,e,t,a,l):s.seq2Range.isEmpty&&(n[i]=Jo(s.swap(),t,e,l,a).swap())}return n}function Jo(e,t,n,i,r){let o=1;for(;e.seq1Range.start-o>=i.start&&e.seq2Range.start-o>=r.start&&n.isStronglyEqual(e.seq2Range.start-o,e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let a=0;for(;e.seq1Range.start+a<i.endExclusive&&e.seq2Range.endExclusive+a<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+a,e.seq2Range.endExclusive+a)&&a<100;)a++;if(o===0&&a===0)return e;let l=0,c=-1;for(let h=-o;h<=a;h++){let f=e.seq2Range.start+h,d=e.seq2Range.endExclusive+h,m=e.seq1Range.start+h,x=t.getBoundaryScore(m)+n.getBoundaryScore(f)+n.getBoundaryScore(d);x>c&&(c=x,l=h)}return e.delta(l)}function Qo(e,t,n){let i=[];for(let r of n){let s=i[i.length-1];if(!s){i.push(r);continue}r.seq1Range.start-s.seq1Range.endExclusive<=2||r.seq2Range.start-s.seq2Range.endExclusive<=2?i[i.length-1]=new ae(s.seq1Range.join(r.seq1Range),s.seq2Range.join(r.seq2Range)):i.push(r)}return i}function Yo(e,t,n){let i=[],r;function s(){if(!r)return;let a=r.s1Range.length-r.deleted,l=r.s2Range.length-r.added;Math.max(r.deleted,r.added)+(r.count-1)>a&&i.push(new ae(r.s1Range,r.s2Range)),r=void 0}for(let a of n){let l=function(m,x){var p,A,w,b;if(!r||!r.s1Range.containsRange(m)||!r.s2Range.containsRange(x))if(r&&!(r.s1Range.endExclusive<m.start&&r.s2Range.endExclusive<x.start)){let v=q.tryCreate(r.s1Range.endExclusive,m.start),k=q.tryCreate(r.s2Range.endExclusive,x.start);r.deleted+=(p=v?.length)!==null&&p!==void 0?p:0,r.added+=(A=k?.length)!==null&&A!==void 0?A:0,r.s1Range=r.s1Range.join(m),r.s2Range=r.s2Range.join(x)}else s(),r={added:0,deleted:0,count:0,s1Range:m,s2Range:x};let C=m.intersect(a.seq1Range),E=x.intersect(a.seq2Range);r.count++,r.deleted+=(w=C?.length)!==null&&w!==void 0?w:0,r.added+=(b=E?.length)!==null&&b!==void 0?b:0},c=e.findWordContaining(a.seq1Range.start-1),h=t.findWordContaining(a.seq2Range.start-1),f=e.findWordContaining(a.seq1Range.endExclusive),d=t.findWordContaining(a.seq2Range.endExclusive);c&&f&&h&&d&&c.equals(f)&&h.equals(d)?l(c,h):(c&&h&&l(c,h),f&&d&&l(f,d))}return s(),ul(n,i)}function ul(e,t){let n=[];for(;e.length>0||t.length>0;){let i=e[0],r=t[0],s;i&&(!r||i.seq1Range.start<r.seq1Range.start)?s=e.shift():s=t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function Zo(e,t,n){let i=n;if(i.length===0)return i;let r=0,s;do{s=!1;let o=[i[0]];for(let a=1;a<i.length;a++){let h=function(d,m){let x=new q(c.seq1Range.endExclusive,l.seq1Range.start);return e.getText(x).replace(/\s/g,"").length<=4&&(d.seq1Range.length+d.seq2Range.length>5||m.seq1Range.length+m.seq2Range.length>5)},l=i[a],c=o[o.length-1];h(c,l)?(s=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}i=o}while(r++<10&&s);return i}function Ko(e,t,n){let i=n;if(i.length===0)return i;let r=0,s;do{s=!1;let a=[i[0]];for(let l=1;l<i.length;l++){let f=function(m,x){let p=new q(h.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(p)>5||p.length>500)return!1;let w=e.getText(p).trim();if(w.length>20||w.split(/\r\n|\r|\n/).length>1)return!1;let b=e.countLinesIn(m.seq1Range),C=m.seq1Range.length,E=t.countLinesIn(m.seq2Range),v=m.seq2Range.length,k=e.countLinesIn(x.seq1Range),I=x.seq1Range.length,M=t.countLinesIn(x.seq2Range),X=x.seq2Range.length,se=2*40+50;function H(U){return Math.min(U,se)}return Math.pow(Math.pow(H(b*40+C),1.5)+Math.pow(H(E*40+v),1.5),1.5)+Math.pow(Math.pow(H(k*40+I),1.5)+Math.pow(H(M*40+X),1.5),1.5)>(se**1.5)**1.5*1.3},c=i[l],h=a[a.length-1];f(h,c)?(s=!0,a[a.length-1]=a[a.length-1].join(c)):a.push(c)}i=a}while(r++<10&&s);let o=[];return ks(i,(a,l,c)=>{let h=l;function f(w){return w.length>0&&w.trim().length<=3&&l.seq1Range.length+l.seq2Range.length>100}let d=e.extendToFullLines(l.seq1Range),m=e.getText(new q(d.start,l.seq1Range.start));f(m)&&(h=h.deltaStart(-m.length));let x=e.getText(new q(l.seq1Range.endExclusive,d.endExclusive));f(x)&&(h=h.deltaEnd(x.length));let p=ae.fromOffsetPairs(a?a.getEndExclusives():be.zero,c?c.getStarts():be.max),A=h.intersect(p);o.push(A)}),o}var nn=class{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){let n=t===0?0:ea(this.lines[t-1]),i=t===this.lines.length?0:ea(this.lines[t]);return 1e3-(n+i)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(`
|
|
11
11
|
`)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}};function ea(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}var Kn=class{constructor(){this.dynamicProgrammingDiffing=new Qn,this.myersDiffingAlgorithm=new kt}computeDiff(t,n,i){if(t.length<=1&&ys(t,n,(v,k)=>v===k))return new Ye([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new Ye([new Fe(new $(1,t.length+1),new $(1,n.length+1),[new ct(new G(1,1,t.length,t[0].length+1),new G(1,1,n.length,n[0].length+1))])],[],!1);let r=i.maxComputationTimeMs===0?Ie.instance:new Jn(i.maxComputationTimeMs),s=!i.ignoreTrimWhitespace,o=new Map;function a(v){let k=o.get(v);return k===void 0&&(k=o.size,o.set(v,k)),k}let l=t.map(v=>a(v.trim())),c=n.map(v=>a(v.trim())),h=new nn(l,t),f=new nn(c,n),d=h.length+f.length<1700?this.dynamicProgrammingDiffing.compute(h,f,r,(v,k)=>t[v]===n[k]?n[k].length===0?.1:1+Math.log(1+n[k].length):.99):this.myersDiffingAlgorithm.compute(h,f),m=d.diffs,x=d.hitTimeout;m=dr(h,f,m),m=Zo(h,f,m);let p=[],A=v=>{if(s)for(let k=0;k<v;k++){let I=w+k,M=b+k;if(t[I]!==n[M]){let X=this.refineDiff(t,n,new ae(new q(I,I+1),new q(M,M+1)),r,s);for(let se of X.mappings)p.push(se);X.hitTimeout&&(x=!0)}}},w=0,b=0;for(let v of m){Lt(()=>v.seq1Range.start-w===v.seq2Range.start-b);let k=v.seq1Range.start-w;A(k),w=v.seq1Range.endExclusive,b=v.seq2Range.endExclusive;let I=this.refineDiff(t,n,v,r,s);I.hitTimeout&&(x=!0);for(let M of I.mappings)p.push(M)}A(t.length-w);let C=ta(p,t,n),E=[];return i.computeMoves&&(E=this.computeMoves(C,t,n,l,c,r,s)),Lt(()=>{function v(I,M){if(I.lineNumber<1||I.lineNumber>M.length)return!1;let X=M[I.lineNumber-1];return!(I.column<1||I.column>X.length+1)}function k(I,M){return!(I.startLineNumber<1||I.startLineNumber>M.length+1||I.endLineNumberExclusive<1||I.endLineNumberExclusive>M.length+1)}for(let I of C){if(!I.innerChanges)return!1;for(let M of I.innerChanges)if(!(v(M.modifiedRange.getStartPosition(),n)&&v(M.modifiedRange.getEndPosition(),n)&&v(M.originalRange.getStartPosition(),t)&&v(M.originalRange.getEndPosition(),t)))return!1;if(!k(I.modified,n)||!k(I.original,t))return!1}return!0}),new Ye(C,E,x)}computeMoves(t,n,i,r,s,o,a){return Go(t,n,i,r,s,o).map(h=>{let f=this.refineDiff(n,i,new ae(h.original.toOffsetRange(),h.modified.toOffsetRange()),o,a),d=ta(f.mappings,n,i,!0);return new Hn(h,d)})}refineDiff(t,n,i,r,s){let o=new Ke(t,i.seq1Range,s),a=new Ke(n,i.seq2Range,s),l=o.length+a.length<500?this.dynamicProgrammingDiffing.compute(o,a,r):this.myersDiffingAlgorithm.compute(o,a,r),c=l.diffs;return c=dr(o,a,c),c=Yo(o,a,c),c=Qo(o,a,c),c=Ko(o,a,c),{mappings:c.map(f=>new ct(o.translateRange(f.seq1Range),a.translateRange(f.seq2Range))),hitTimeout:l.hitTimeout}}};function ta(e,t,n,i=!1){let r=[];for(let s of Ss(e.map(o=>ll(o,t,n)),(o,a)=>o.original.overlapOrTouch(a.original)||o.modified.overlapOrTouch(a.modified))){let o=s[0],a=s[s.length-1];r.push(new Fe(o.original.join(a.original),o.modified.join(a.modified),s.map(l=>l.innerChanges[0])))}return Lt(()=>!i&&r.length>0&&r[0].original.startLineNumber!==r[0].modified.startLineNumber?!1:qn(r,(s,o)=>o.original.startLineNumber-s.original.endLineNumberExclusive===o.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<o.original.startLineNumber&&s.modified.endLineNumberExclusive<o.modified.startLineNumber)),r}function ll(e,t,n){let i=0,r=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1),e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);let s=new $(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),o=new $(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new Fe(s,o,[e])}var mr={getLegacy:()=>new Gn,getDefault:()=>new Kn};function et(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}var ie=class{constructor(t,n,i,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,i))|0,this.a=et(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}},Be=class e{constructor(t,n,i,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=et(Math.max(Math.min(1,n),0),3),this.l=et(Math.max(Math.min(1,i),0),3),this.a=et(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){let n=t.r/255,i=t.g/255,r=t.b/255,s=t.a,o=Math.max(n,i,r),a=Math.min(n,i,r),l=0,c=0,h=(a+o)/2,f=o-a;if(f>0){switch(c=Math.min(h<=.5?f/(2*h):f/(2-2*h),1),o){case n:l=(i-r)/f+(i<r?6:0);break;case i:l=(r-n)/f+2;break;case r:l=(n-i)/f+4;break}l*=60,l=Math.round(l)}return new e(l,c,h,s)}static _hue2rgb(t,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(n-t)*6*i:i<1/2?n:i<2/3?t+(n-t)*(2/3-i)*6:t}static toRGBA(t){let n=t.h/360,{s:i,l:r,a:s}=t,o,a,l;if(i===0)o=a=l=r;else{let c=r<.5?r*(1+i):r+i-r*i,h=2*r-c;o=e._hue2rgb(h,c,n+1/3),a=e._hue2rgb(h,c,n),l=e._hue2rgb(h,c,n-1/3)}return new ie(Math.round(o*255),Math.round(a*255),Math.round(l*255),s)}},It=class e{constructor(t,n,i,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=et(Math.max(Math.min(1,n),0),3),this.v=et(Math.max(Math.min(1,i),0),3),this.a=et(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){let n=t.r/255,i=t.g/255,r=t.b/255,s=Math.max(n,i,r),o=Math.min(n,i,r),a=s-o,l=s===0?0:a/s,c;return a===0?c=0:s===n?c=((i-r)/a%6+6)%6:s===i?c=(r-n)/a+2:c=(n-i)/a+4,new e(Math.round(c*60),l,s,t.a)}static toRGBA(t){let{h:n,s:i,v:r,a:s}=t,o=r*i,a=o*(1-Math.abs(n/60%2-1)),l=r-o,[c,h,f]=[0,0,0];return n<60?(c=o,h=a):n<120?(c=a,h=o):n<180?(h=o,f=a):n<240?(h=a,f=o):n<300?(c=a,f=o):n<=360&&(c=o,f=a),c=Math.round((c+l)*255),h=Math.round((h+l)*255),f=Math.round((f+l)*255),new ie(c,h,f,s)}},K=class e{static fromHex(t){return e.Format.CSS.parseHex(t)||e.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:Be.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:It.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof ie)this.rgba=t;else if(t instanceof Be)this._hsla=t,this.rgba=Be.toRGBA(t);else if(t instanceof It)this._hsva=t,this.rgba=It.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&ie.equals(this.rgba,t.rgba)&&Be.equals(this.hsla,t.hsla)&&It.equals(this.hsva,t.hsva)}getRelativeLuminance(){let t=e._relativeLuminanceForComponent(this.rgba.r),n=e._relativeLuminanceForComponent(this.rgba.g),i=e._relativeLuminanceForComponent(this.rgba.b),r=.2126*t+.7152*n+.0722*i;return et(r,4)}static _relativeLuminanceForComponent(t){let n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){let n=this.getRelativeLuminance(),i=t.getRelativeLuminance();return n>i}isDarkerThan(t){let n=this.getRelativeLuminance(),i=t.getRelativeLuminance();return n<i}lighten(t){return new e(new Be(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new e(new Be(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){let{r:n,g:i,b:r,a:s}=this.rgba;return new e(new ie(n,i,r,s*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new e(new ie(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;let{r:n,g:i,b:r,a:s}=this.rgba;return new e(new ie(t.rgba.r-s*(t.rgba.r-n),t.rgba.g-s*(t.rgba.g-i),t.rgba.b-s*(t.rgba.b-r),1))}toString(){return this._toString||(this._toString=e.Format.CSS.format(this)),this._toString}static getLighterColor(t,n,i){if(t.isLighterThan(n))return t;i=i||.5;let r=t.getRelativeLuminance(),s=n.getRelativeLuminance();return i=i*(s-r)/s,t.lighten(i)}static getDarkerColor(t,n,i){if(t.isDarkerThan(n))return t;i=i||.5;let r=t.getRelativeLuminance(),s=n.getRelativeLuminance();return i=i*(r-s)/r,t.darken(i)}};K.white=new K(new ie(255,255,255,1));K.black=new K(new ie(0,0,0,1));K.red=new K(new ie(255,0,0,1));K.blue=new K(new ie(0,0,255,1));K.green=new K(new ie(0,255,0,1));K.cyan=new K(new ie(0,255,255,1));K.lightgrey=new K(new ie(211,211,211,1));K.transparent=new K(new ie(0,0,0,0));(function(e){let t;(function(n){let i;(function(r){function s(p){return p.rgba.a===1?`rgb(${p.rgba.r}, ${p.rgba.g}, ${p.rgba.b})`:e.Format.CSS.formatRGBA(p)}r.formatRGB=s;function o(p){return`rgba(${p.rgba.r}, ${p.rgba.g}, ${p.rgba.b}, ${+p.rgba.a.toFixed(2)})`}r.formatRGBA=o;function a(p){return p.hsla.a===1?`hsl(${p.hsla.h}, ${(p.hsla.s*100).toFixed(2)}%, ${(p.hsla.l*100).toFixed(2)}%)`:e.Format.CSS.formatHSLA(p)}r.formatHSL=a;function l(p){return`hsla(${p.hsla.h}, ${(p.hsla.s*100).toFixed(2)}%, ${(p.hsla.l*100).toFixed(2)}%, ${p.hsla.a.toFixed(2)})`}r.formatHSLA=l;function c(p){let A=p.toString(16);return A.length!==2?"0"+A:A}function h(p){return`#${c(p.rgba.r)}${c(p.rgba.g)}${c(p.rgba.b)}`}r.formatHex=h;function f(p,A=!1){return A&&p.rgba.a===1?e.Format.CSS.formatHex(p):`#${c(p.rgba.r)}${c(p.rgba.g)}${c(p.rgba.b)}${c(Math.round(p.rgba.a*255))}`}r.formatHexA=f;function d(p){return p.isOpaque()?e.Format.CSS.formatHex(p):e.Format.CSS.formatRGBA(p)}r.format=d;function m(p){let A=p.length;if(A===0||p.charCodeAt(0)!==35)return null;if(A===7){let w=16*x(p.charCodeAt(1))+x(p.charCodeAt(2)),b=16*x(p.charCodeAt(3))+x(p.charCodeAt(4)),C=16*x(p.charCodeAt(5))+x(p.charCodeAt(6));return new e(new ie(w,b,C,1))}if(A===9){let w=16*x(p.charCodeAt(1))+x(p.charCodeAt(2)),b=16*x(p.charCodeAt(3))+x(p.charCodeAt(4)),C=16*x(p.charCodeAt(5))+x(p.charCodeAt(6)),E=16*x(p.charCodeAt(7))+x(p.charCodeAt(8));return new e(new ie(w,b,C,E/255))}if(A===4){let w=x(p.charCodeAt(1)),b=x(p.charCodeAt(2)),C=x(p.charCodeAt(3));return new e(new ie(16*w+w,16*b+b,16*C+C))}if(A===5){let w=x(p.charCodeAt(1)),b=x(p.charCodeAt(2)),C=x(p.charCodeAt(3)),E=x(p.charCodeAt(4));return new e(new ie(16*w+w,16*b+b,16*C+C,(16*E+E)/255))}return null}r.parseHex=m;function x(p){switch(p){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(i=n.CSS||(n.CSS={}))})(t=e.Format||(e.Format={}))})(K||(K={}));function ra(e){let t=[];for(let n of e){let i=Number(n);(i||i===0&&n.replace(/\s/g,"")!=="")&&t.push(i)}return t}function gr(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function rn(e,t){let n=t.index,i=t[0].length;if(!n)return;let r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function cl(e,t){if(!e)return;let n=K.Format.CSS.parseHex(t);if(n)return{range:e,color:gr(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function na(e,t,n){if(!e||t.length!==1)return;let r=t[0].values(),s=ra(r);return{range:e,color:gr(s[0],s[1],s[2],n?s[3]:1)}}function ia(e,t,n){if(!e||t.length!==1)return;let r=t[0].values(),s=ra(r),o=new K(new Be(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:e,color:gr(o.rgba.r,o.rgba.g,o.rgba.b,o.rgba.a)}}function sn(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function hl(e){let t=[],i=sn(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(let r of i){let s=r.filter(c=>c!==void 0),o=s[1],a=s[2];if(!a)continue;let l;if(o==="rgb"){let c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;l=na(rn(e,r),sn(a,c),!1)}else if(o==="rgba"){let c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=na(rn(e,r),sn(a,c),!0)}else if(o==="hsl"){let c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;l=ia(rn(e,r),sn(a,c),!1)}else if(o==="hsla"){let c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=ia(rn(e,r),sn(a,c),!0)}else o==="#"&&(l=cl(rn(e,r),o+a));l&&t.push(l)}return t}function sa(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:hl(e)}var pr=class extends Nn{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){let n=[];for(let i=0;i<this._lines.length;i++){let r=this._lines[i],s=this.offsetAt(new oe(i+1,1)),o=r.matchAll(t);for(let a of o)(a.index||a.index===0)&&(a.index=a.index+s),n.push(a)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,n){let i=Yt(t.column,Xi(n),this._lines[t.lineNumber-1],0);return i?new G(t.lineNumber,i.startColumn,t.lineNumber,i.endColumn):null}words(t){let n=this._lines,i=this._wordenize.bind(this),r=0,s="",o=0,a=[];return{*[Symbol.iterator](){for(;;)if(o<a.length){let l=s.substring(a[o].start,a[o].end);o+=1,yield l}else if(r<n.length)s=n[r],a=i(s,t),o=0,r+=1;else break}}}getLineWords(t,n){let i=this._lines[t-1],r=this._wordenize(i,n),s=[];for(let o of r)s.push({word:i.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return s}_wordenize(t,n){let i=[],r;for(n.lastIndex=0;(r=n.exec(t))&&r[0].length!==0;)i.push({start:r.index,end:r.index+r[0].length});return i}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);let n=this._eol,i=t.startLineNumber-1,r=t.endLineNumber-1,s=[];s.push(this._lines[i].substring(t.startColumn-1));for(let o=i+1;o<r;o++)s.push(this._lines[o]);return s.push(this._lines[r].substring(0,t.endColumn-1)),s.join(n)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();let n=this._lineStarts.getIndexOf(t),i=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,i)}}_validateRange(t){let n=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),i=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return n.lineNumber!==t.startLineNumber||n.column!==t.startColumn||i.lineNumber!==t.endLineNumber||i.column!==t.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:i.lineNumber,endColumn:i.column}:t}_validatePosition(t){if(!oe.isIPosition(t))throw new Error("bad position");let{lineNumber:n,column:i}=t,r=!1;if(n<1)n=1,i=1,r=!0;else if(n>this._lines.length)n=this._lines.length,i=this._lines[n-1].length+1,r=!0;else{let s=this._lines[n-1].length+1;i<1?(i=1,r=!0):i>s&&(i=s,r=!0)}return r?{lineNumber:n,column:i}:t}},Bt=class e{constructor(t,n){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){let t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}acceptNewModel(t){this._models[t.url]=new pr(Je.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}acceptRemovedModel(t){this._models[t]&&delete this._models[t]}async computeUnicodeHighlights(t,n,i){let r=this._getModel(t);return r?Wn.computeUnicodeHighlights(r,n,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async computeDiff(t,n,i,r){let s=this._getModel(t),o=this._getModel(n);return!s||!o?null:e.computeDiff(s,o,i,r)}static computeDiff(t,n,i,r){let s=r==="advanced"?mr.getDefault():mr.getLegacy(),o=t.getLinesContent(),a=n.getLinesContent(),l=s.computeDiff(o,a,i),c=l.changes.length>0?!1:this._modelsAreIdentical(t,n);function h(f){return f.map(d=>{var m;return[d.original.startLineNumber,d.original.endLineNumberExclusive,d.modified.startLineNumber,d.modified.endLineNumberExclusive,(m=d.innerChanges)===null||m===void 0?void 0:m.map(x=>[x.originalRange.startLineNumber,x.originalRange.startColumn,x.originalRange.endLineNumber,x.originalRange.endColumn,x.modifiedRange.startLineNumber,x.modifiedRange.startColumn,x.modifiedRange.endLineNumber,x.modifiedRange.endColumn])]})}return{identical:c,quitEarly:l.hitTimeout,changes:h(l.changes),moves:l.moves.map(f=>[f.lineRangeMapping.original.startLineNumber,f.lineRangeMapping.original.endLineNumberExclusive,f.lineRangeMapping.modified.startLineNumber,f.lineRangeMapping.modified.endLineNumberExclusive,h(f.changes)])}}static _modelsAreIdentical(t,n){let i=t.getLineCount(),r=n.getLineCount();if(i!==r)return!1;for(let s=1;s<=i;s++){let o=t.getLineContent(s),a=n.getLineContent(s);if(o!==a)return!1}return!0}async computeMoreMinimalEdits(t,n,i){let r=this._getModel(t);if(!r)return n;let s=[],o;n=n.slice(0).sort((l,c)=>{if(l.range&&c.range)return G.compareRangesUsingStarts(l.range,c.range);let h=l.range?0:1,f=c.range?0:1;return h-f});let a=0;for(let l=1;l<n.length;l++)G.getEndPosition(n[a].range).equals(G.getStartPosition(n[l].range))?(n[a].range=G.fromPositions(G.getStartPosition(n[a].range),G.getEndPosition(n[l].range)),n[a].text+=n[l].text):(a++,n[a]=n[l]);n.length=a+1;for(let{range:l,text:c,eol:h}of n){if(typeof h=="number"&&(o=h),G.isEmpty(l)&&!c)continue;let f=r.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,r.eol),f===c)continue;if(Math.max(c.length,f.length)>e._diffLimit){s.push({range:l,text:c});continue}let d=bs(f,c,i),m=r.offsetAt(G.lift(l).getStartPosition());for(let x of d){let p=r.positionAt(m+x.originalStart),A=r.positionAt(m+x.originalStart+x.originalLength),w={text:c.substr(x.modifiedStart,x.modifiedLength),range:{startLineNumber:p.lineNumber,startColumn:p.column,endLineNumber:A.lineNumber,endColumn:A.column}};r.getValueInRange(w.range)!==w.text&&s.push(w)}}return typeof o=="number"&&s.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async computeLinks(t){let n=this._getModel(t);return n?Rs(n):null}async computeDefaultDocumentColors(t){let n=this._getModel(t);return n?sa(n):null}async textualSuggest(t,n,i,r){let s=new xt,o=new RegExp(i,r),a=new Set;e:for(let l of t){let c=this._getModel(l);if(c){for(let h of c.words(o))if(!(h===n||!isNaN(Number(h)))&&(a.add(h),a.size>e._suggestionsLimit))break e}}return{words:Array.from(a),duration:s.elapsed()}}async computeWordRanges(t,n,i,r){let s=this._getModel(t);if(!s)return Object.create(null);let o=new RegExp(i,r),a=Object.create(null);for(let l=n.startLineNumber;l<n.endLineNumber;l++){let c=s.getLineWords(l,o);for(let h of c){if(!isNaN(Number(h.word)))continue;let f=a[h.word];f||(f=[],a[h.word]=f),f.push({startLineNumber:l,startColumn:h.startColumn,endLineNumber:l,endColumn:h.endColumn})}}return a}async navigateValueSet(t,n,i,r,s){let o=this._getModel(t);if(!o)return null;let a=new RegExp(r,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});let l=o.getValueInRange(n),c=o.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},a);if(!c)return null;let h=o.getValueInRange(c);return vt.INSTANCE.navigateValueSet(n,l,c,h,i)}loadForeignModule(t,n,i){let o={host:is(i,(a,l)=>this._host.fhr(a,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,n),Promise.resolve(Wt(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(i){return Promise.reject(i)}}};Bt._diffLimit=1e5;Bt._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=ko());var xr=!1;function Dr(e){if(xr)return;xr=!0;let t=new En(n=>{globalThis.postMessage(n)},n=>new Bt(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{xr||Dr(null)};var oa;(function(e){function t(n){return typeof n=="string"}e.is=t})(oa||(oa={}));var br;(function(e){function t(n){return typeof n=="string"}e.is=t})(br||(br={}));var aa;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(aa||(aa={}));var ei;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(ei||(ei={}));var ye;(function(e){function t(i,r){return i===Number.MAX_VALUE&&(i=ei.MAX_VALUE),r===Number.MAX_VALUE&&(r=ei.MAX_VALUE),{line:i,character:r}}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&D.uinteger(r.line)&&D.uinteger(r.character)}e.is=n})(ye||(ye={}));var re;(function(e){function t(i,r,s,o){if(D.uinteger(i)&&D.uinteger(r)&&D.uinteger(s)&&D.uinteger(o))return{start:ye.create(i,r),end:ye.create(s,o)};if(ye.is(i)&&ye.is(r))return{start:i,end:r};throw new Error(`Range#create called with invalid arguments[${i}, ${r}, ${s}, ${o}]`)}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&ye.is(r.start)&&ye.is(r.end)}e.is=n})(re||(re={}));var ti;(function(e){function t(i,r){return{uri:i,range:r}}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&re.is(r.range)&&(D.string(r.uri)||D.undefined(r.uri))}e.is=n})(ti||(ti={}));var ua;(function(e){function t(i,r,s,o){return{targetUri:i,targetRange:r,targetSelectionRange:s,originSelectionRange:o}}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&re.is(r.targetRange)&&D.string(r.targetUri)&&re.is(r.targetSelectionRange)&&(re.is(r.originSelectionRange)||D.undefined(r.originSelectionRange))}e.is=n})(ua||(ua={}));var Cr;(function(e){function t(i,r,s,o){return{red:i,green:r,blue:s,alpha:o}}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&D.numberRange(r.red,0,1)&&D.numberRange(r.green,0,1)&&D.numberRange(r.blue,0,1)&&D.numberRange(r.alpha,0,1)}e.is=n})(Cr||(Cr={}));var la;(function(e){function t(i,r){return{range:i,color:r}}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&re.is(r.range)&&Cr.is(r.color)}e.is=n})(la||(la={}));var ca;(function(e){function t(i,r,s){return{label:i,textEdit:r,additionalTextEdits:s}}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&D.string(r.label)&&(D.undefined(r.textEdit)||Rt.is(r))&&(D.undefined(r.additionalTextEdits)||D.typedArray(r.additionalTextEdits,Rt.is))}e.is=n})(ca||(ca={}));var ha;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(ha||(ha={}));var fa;(function(e){function t(i,r,s,o,a,l){let c={startLine:i,endLine:r};return D.defined(s)&&(c.startCharacter=s),D.defined(o)&&(c.endCharacter=o),D.defined(a)&&(c.kind=a),D.defined(l)&&(c.collapsedText=l),c}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&D.uinteger(r.startLine)&&D.uinteger(r.startLine)&&(D.undefined(r.startCharacter)||D.uinteger(r.startCharacter))&&(D.undefined(r.endCharacter)||D.uinteger(r.endCharacter))&&(D.undefined(r.kind)||D.string(r.kind))}e.is=n})(fa||(fa={}));var Ar;(function(e){function t(i,r){return{location:i,message:r}}e.create=t;function n(i){let r=i;return D.defined(r)&&ti.is(r.location)&&D.string(r.message)}e.is=n})(Ar||(Ar={}));var ue;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ue||(ue={}));var da;(function(e){e.Unnecessary=1,e.Deprecated=2})(da||(da={}));var ma;(function(e){function t(n){let i=n;return D.objectLiteral(i)&&D.string(i.href)}e.is=t})(ma||(ma={}));var ni;(function(e){function t(i,r,s,o,a,l){let c={range:i,message:r};return D.defined(s)&&(c.severity=s),D.defined(o)&&(c.code=o),D.defined(a)&&(c.source=a),D.defined(l)&&(c.relatedInformation=l),c}e.create=t;function n(i){var r;let s=i;return D.defined(s)&&re.is(s.range)&&D.string(s.message)&&(D.number(s.severity)||D.undefined(s.severity))&&(D.integer(s.code)||D.string(s.code)||D.undefined(s.code))&&(D.undefined(s.codeDescription)||D.string((r=s.codeDescription)===null||r===void 0?void 0:r.href))&&(D.string(s.source)||D.undefined(s.source))&&(D.undefined(s.relatedInformation)||D.typedArray(s.relatedInformation,Ar.is))}e.is=n})(ni||(ni={}));var Mt;(function(e){function t(i,r,...s){let o={title:i,command:r};return D.defined(s)&&s.length>0&&(o.arguments=s),o}e.create=t;function n(i){let r=i;return D.defined(r)&&D.string(r.title)&&D.string(r.command)}e.is=n})(Mt||(Mt={}));var Rt;(function(e){function t(s,o){return{range:s,newText:o}}e.replace=t;function n(s,o){return{range:{start:s,end:s},newText:o}}e.insert=n;function i(s){return{range:s,newText:""}}e.del=i;function r(s){let o=s;return D.objectLiteral(o)&&D.string(o.newText)&&re.is(o.range)}e.is=r})(Rt||(Rt={}));var Er;(function(e){function t(i,r,s){let o={label:i};return r!==void 0&&(o.needsConfirmation=r),s!==void 0&&(o.description=s),o}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&D.string(r.label)&&(D.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(D.string(r.description)||r.description===void 0)}e.is=n})(Er||(Er={}));var Pt;(function(e){function t(n){let i=n;return D.string(i)}e.is=t})(Pt||(Pt={}));var ga;(function(e){function t(s,o,a){return{range:s,newText:o,annotationId:a}}e.replace=t;function n(s,o,a){return{range:{start:s,end:s},newText:o,annotationId:a}}e.insert=n;function i(s,o){return{range:s,newText:"",annotationId:o}}e.del=i;function r(s){let o=s;return Rt.is(o)&&(Er.is(o.annotationId)||Pt.is(o.annotationId))}e.is=r})(ga||(ga={}));var _r;(function(e){function t(i,r){return{textDocument:i,edits:r}}e.create=t;function n(i){let r=i;return D.defined(r)&&yr.is(r.textDocument)&&Array.isArray(r.edits)}e.is=n})(_r||(_r={}));var vr;(function(e){function t(i,r,s){let o={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(o.options=r),s!==void 0&&(o.annotationId=s),o}e.create=t;function n(i){let r=i;return r&&r.kind==="create"&&D.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||D.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||D.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Pt.is(r.annotationId))}e.is=n})(vr||(vr={}));var wr;(function(e){function t(i,r,s,o){let a={kind:"rename",oldUri:i,newUri:r};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(a.options=s),o!==void 0&&(a.annotationId=o),a}e.create=t;function n(i){let r=i;return r&&r.kind==="rename"&&D.string(r.oldUri)&&D.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||D.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||D.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Pt.is(r.annotationId))}e.is=n})(wr||(wr={}));var Lr;(function(e){function t(i,r,s){let o={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(o.options=r),s!==void 0&&(o.annotationId=s),o}e.create=t;function n(i){let r=i;return r&&r.kind==="delete"&&D.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||D.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||D.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||Pt.is(r.annotationId))}e.is=n})(Lr||(Lr={}));var Fr;(function(e){function t(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(r=>D.string(r.kind)?vr.is(r)||wr.is(r)||Lr.is(r):_r.is(r)))}e.is=t})(Fr||(Fr={}));var pa;(function(e){function t(i){return{uri:i}}e.create=t;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)}e.is=n})(pa||(pa={}));var xa;(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&D.integer(r.version)}e.is=n})(xa||(xa={}));var yr;(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&(r.version===null||D.integer(r.version))}e.is=n})(yr||(yr={}));var Da;(function(e){function t(i,r,s,o){return{uri:i,languageId:r,version:s,text:o}}e.create=t;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&D.string(r.languageId)&&D.integer(r.version)&&D.string(r.text)}e.is=n})(Da||(Da={}));var on;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let i=n;return i===e.PlainText||i===e.Markdown}e.is=t})(on||(on={}));var an;(function(e){function t(n){let i=n;return D.objectLiteral(n)&&on.is(i.kind)&&D.string(i.value)}e.is=t})(an||(an={}));var ee;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(ee||(ee={}));var he;(function(e){e.PlainText=1,e.Snippet=2})(he||(he={}));var ba;(function(e){e.Deprecated=1})(ba||(ba={}));var Ca;(function(e){function t(i,r,s){return{newText:i,insert:r,replace:s}}e.create=t;function n(i){let r=i;return r&&D.string(r.newText)&&re.is(r.insert)&&re.is(r.replace)}e.is=n})(Ca||(Ca={}));var fe;(function(e){e.asIs=1,e.adjustIndentation=2})(fe||(fe={}));var Aa;(function(e){function t(n){let i=n;return i&&(D.string(i.detail)||i.detail===void 0)&&(D.string(i.description)||i.description===void 0)}e.is=t})(Aa||(Aa={}));var Ea;(function(e){function t(n){return{label:n}}e.create=t})(Ea||(Ea={}));var _a;(function(e){function t(n,i){return{items:n||[],isIncomplete:!!i}}e.create=t})(_a||(_a={}));var ii;(function(e){function t(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(i){let r=i;return D.string(r)||D.objectLiteral(r)&&D.string(r.language)&&D.string(r.value)}e.is=n})(ii||(ii={}));var va;(function(e){function t(n){let i=n;return!!i&&D.objectLiteral(i)&&(an.is(i.contents)||ii.is(i.contents)||D.typedArray(i.contents,ii.is))&&(n.range===void 0||re.is(n.range))}e.is=t})(va||(va={}));var wa;(function(e){function t(n,i){return i?{label:n,documentation:i}:{label:n}}e.create=t})(wa||(wa={}));var La;(function(e){function t(n,i,...r){let s={label:n};return D.defined(i)&&(s.documentation=i),D.defined(r)?s.parameters=r:s.parameters=[],s}e.create=t})(La||(La={}));var Fa;(function(e){e.Text=1,e.Read=2,e.Write=3})(Fa||(Fa={}));var ya;(function(e){function t(n,i){let r={range:n};return D.number(i)&&(r.kind=i),r}e.create=t})(ya||(ya={}));var Sa;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Sa||(Sa={}));var Na;(function(e){e.Deprecated=1})(Na||(Na={}));var ka;(function(e){function t(n,i,r,s,o){let a={name:n,kind:i,location:{uri:s,range:r}};return o&&(a.containerName=o),a}e.create=t})(ka||(ka={}));var Ia;(function(e){function t(n,i,r,s){return s!==void 0?{name:n,kind:i,location:{uri:r,range:s}}:{name:n,kind:i,location:{uri:r}}}e.create=t})(Ia||(Ia={}));var Ba;(function(e){function t(i,r,s,o,a,l){let c={name:i,detail:r,kind:s,range:o,selectionRange:a};return l!==void 0&&(c.children=l),c}e.create=t;function n(i){let r=i;return r&&D.string(r.name)&&D.number(r.kind)&&re.is(r.range)&&re.is(r.selectionRange)&&(r.detail===void 0||D.string(r.detail))&&(r.deprecated===void 0||D.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}e.is=n})(Ba||(Ba={}));var Ma;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Ma||(Ma={}));var ri;(function(e){e.Invoked=1,e.Automatic=2})(ri||(ri={}));var Ra;(function(e){function t(i,r,s){let o={diagnostics:i};return r!=null&&(o.only=r),s!=null&&(o.triggerKind=s),o}e.create=t;function n(i){let r=i;return D.defined(r)&&D.typedArray(r.diagnostics,ni.is)&&(r.only===void 0||D.typedArray(r.only,D.string))&&(r.triggerKind===void 0||r.triggerKind===ri.Invoked||r.triggerKind===ri.Automatic)}e.is=n})(Ra||(Ra={}));var Pa;(function(e){function t(i,r,s){let o={title:i},a=!0;return typeof r=="string"?(a=!1,o.kind=r):Mt.is(r)?o.command=r:o.edit=r,a&&s!==void 0&&(o.kind=s),o}e.create=t;function n(i){let r=i;return r&&D.string(r.title)&&(r.diagnostics===void 0||D.typedArray(r.diagnostics,ni.is))&&(r.kind===void 0||D.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||Mt.is(r.command))&&(r.isPreferred===void 0||D.boolean(r.isPreferred))&&(r.edit===void 0||Fr.is(r.edit))}e.is=n})(Pa||(Pa={}));var Ta;(function(e){function t(i,r){let s={range:i};return D.defined(r)&&(s.data=r),s}e.create=t;function n(i){let r=i;return D.defined(r)&&re.is(r.range)&&(D.undefined(r.command)||Mt.is(r.command))}e.is=n})(Ta||(Ta={}));var Ua;(function(e){function t(i,r){return{tabSize:i,insertSpaces:r}}e.create=t;function n(i){let r=i;return D.defined(r)&&D.uinteger(r.tabSize)&&D.boolean(r.insertSpaces)}e.is=n})(Ua||(Ua={}));var Va;(function(e){function t(i,r,s){return{range:i,target:r,data:s}}e.create=t;function n(i){let r=i;return D.defined(r)&&re.is(r.range)&&(D.undefined(r.target)||D.string(r.target))}e.is=n})(Va||(Va={}));var za;(function(e){function t(i,r){return{range:i,parent:r}}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&re.is(r.range)&&(r.parent===void 0||e.is(r.parent))}e.is=n})(za||(za={}));var Oa;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Oa||(Oa={}));var qa;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(qa||(qa={}));var Wa;(function(e){function t(n){let i=n;return D.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}e.is=t})(Wa||(Wa={}));var $a;(function(e){function t(i,r){return{range:i,text:r}}e.create=t;function n(i){let r=i;return r!=null&&re.is(r.range)&&D.string(r.text)}e.is=n})($a||($a={}));var Ha;(function(e){function t(i,r,s){return{range:i,variableName:r,caseSensitiveLookup:s}}e.create=t;function n(i){let r=i;return r!=null&&re.is(r.range)&&D.boolean(r.caseSensitiveLookup)&&(D.string(r.variableName)||r.variableName===void 0)}e.is=n})(Ha||(Ha={}));var ja;(function(e){function t(i,r){return{range:i,expression:r}}e.create=t;function n(i){let r=i;return r!=null&&re.is(r.range)&&(D.string(r.expression)||r.expression===void 0)}e.is=n})(ja||(ja={}));var Ga;(function(e){function t(i,r){return{frameId:i,stoppedLocation:r}}e.create=t;function n(i){let r=i;return D.defined(r)&&re.is(i.stoppedLocation)}e.is=n})(Ga||(Ga={}));var Sr;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(Sr||(Sr={}));var Nr;(function(e){function t(i){return{value:i}}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&(r.tooltip===void 0||D.string(r.tooltip)||an.is(r.tooltip))&&(r.location===void 0||ti.is(r.location))&&(r.command===void 0||Mt.is(r.command))}e.is=n})(Nr||(Nr={}));var Xa;(function(e){function t(i,r,s){let o={position:i,label:r};return s!==void 0&&(o.kind=s),o}e.create=t;function n(i){let r=i;return D.objectLiteral(r)&&ye.is(r.position)&&(D.string(r.label)||D.typedArray(r.label,Nr.is))&&(r.kind===void 0||Sr.is(r.kind))&&r.textEdits===void 0||D.typedArray(r.textEdits,Rt.is)&&(r.tooltip===void 0||D.string(r.tooltip)||an.is(r.tooltip))&&(r.paddingLeft===void 0||D.boolean(r.paddingLeft))&&(r.paddingRight===void 0||D.boolean(r.paddingRight))}e.is=n})(Xa||(Xa={}));var Ja;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Ja||(Ja={}));var Qa;(function(e){function t(n,i,r,s){return{insertText:n,filterText:i,range:r,command:s}}e.create=t})(Qa||(Qa={}));var Ya;(function(e){function t(n){return{items:n}}e.create=t})(Ya||(Ya={}));var Za;(function(e){e.Invoked=0,e.Automatic=1})(Za||(Za={}));var Ka;(function(e){function t(n,i){return{range:n,text:i}}e.create=t})(Ka||(Ka={}));var e1;(function(e){function t(n,i){return{triggerKind:n,selectedCompletionInfo:i}}e.create=t})(e1||(e1={}));var t1;(function(e){function t(n){let i=n;return D.objectLiteral(i)&&br.is(i.uri)&&D.string(i.name)}e.is=t})(t1||(t1={}));var n1;(function(e){function t(s,o,a,l){return new kr(s,o,a,l)}e.create=t;function n(s){let o=s;return!!(D.defined(o)&&D.string(o.uri)&&(D.undefined(o.languageId)||D.string(o.languageId))&&D.uinteger(o.lineCount)&&D.func(o.getText)&&D.func(o.positionAt)&&D.func(o.offsetAt))}e.is=n;function i(s,o){let a=s.getText(),l=r(o,(h,f)=>{let d=h.range.start.line-f.range.start.line;return d===0?h.range.start.character-f.range.start.character:d}),c=a.length;for(let h=l.length-1;h>=0;h--){let f=l[h],d=s.offsetAt(f.range.start),m=s.offsetAt(f.range.end);if(m<=c)a=a.substring(0,d)+f.newText+a.substring(m,a.length);else throw new Error("Overlapping edit");c=d}return a}e.applyEdits=i;function r(s,o){if(s.length<=1)return s;let a=s.length/2|0,l=s.slice(0,a),c=s.slice(a);r(l,o),r(c,o);let h=0,f=0,d=0;for(;h<l.length&&f<c.length;)o(l[h],c[f])<=0?s[d++]=l[h++]:s[d++]=c[f++];for(;h<l.length;)s[d++]=l[h++];for(;f<c.length;)s[d++]=c[f++];return s}})(n1||(n1={}));var kr=class{constructor(t,n,i,r){this._uri=t,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),i=this.offsetAt(t.end);return this._content.substring(n,i)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,i=!0;for(let r=0;r<n.length;r++){i&&(t.push(r),i=!1);let s=n.charAt(r);i=s==="\r"||s===`
|
|
12
12
|
`,s==="\r"&&r+1<n.length&&n.charAt(r+1)===`
|
|
13
|
-
`&&r++}i&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return ye.create(0,t);for(;i<r;){let o=Math.floor((i+r)/2);n[o]>t?r=o:i=o+1}let s=i-1;return ye.create(s,t-n[s])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let i=n[t.line],r=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(i+t.character,r),i)}get lineCount(){return this.getLineOffsets().length}},D;(function(e){let t=Object.prototype.toString;function n(m){return typeof m<"u"}e.defined=n;function i(m){return typeof m>"u"}e.undefined=i;function r(m){return m===!0||m===!1}e.boolean=r;function s(m){return t.call(m)==="[object String]"}e.string=s;function o(m){return t.call(m)==="[object Number]"}e.number=o;function a(m,x,p){return t.call(m)==="[object Number]"&&x<=m&&m<=p}e.numberRange=a;function l(m){return t.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}e.integer=l;function c(m){return t.call(m)==="[object Number]"&&0<=m&&m<=2147483647}e.uinteger=c;function h(m){return t.call(m)==="[object Function]"}e.func=h;function f(m){return m!==null&&typeof m=="object"}e.objectLiteral=f;function d(m,x){return Array.isArray(m)&&m.every(x)}e.typedArray=d})(D||(D={}));function i1(e){return!!e&&e.type!=="dictionary"}function fl(e){return e?.type==="dictionary"}var un={False:"false",Null:"null",True:"true"},W={Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"},g={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockComment:"BlockComment",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",ContinueStatement:"ContinueStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",LineComment:"LineComment",Literal:"Literal",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement"},Pr=["++","--"],A1=["-","+","!","~"],E1=["=","/=","*=","%=","+=","-="],_1=["||","&&"],dl=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"],ui={"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},N={Unknown:0,BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,Template:10},v1=["Unknown","Boolean","<end>","Identifier","Keyword","Null","Numeric","Punctuator","String","RegularExpression","Template"],L={InvalidModuleUri:"InvalidModuleUri",ForInOfLoopInitializer:"ForInOfLoopInitializer",IdentiferExpected:"IdentiferExpected",InvalidEscapedReservedWord:"InvalidEscapedReservedWord",InvalidExpression:"InvalidExpression",InvalidFunctionIdentifier:"InvalidFunctionIdentifier",InvalidHexEscapeSequence:"InvalidHexEscapeSequence",InvalidLeftHandSideInAssignment:"InvalidLeftHandSideInAssignment",InvalidLeftHandSideInForIn:"InvalidLeftHandSideInForIn",InvalidTemplateHead:"InvalidTemplateHead",InvalidVariableAssignment:"InvalidVariableAssignment",KeyMustBeString:"KeyMustBeString",NoFunctionInsideBlock:"NoFunctionInsideBlock",NoFunctionInsideFunction:"NoFunctionInsideFunction",ModuleExportRootOnly:"ModuleExportRootOnly",ModuleImportRootOnly:"ModuleImportRootOnly",PunctuatorExpected:"PunctuatorExpected",TemplateOctalLiteral:"TemplateOctalLiteral",UnexpectedBoolean:"UnexpectedBoolean",UnexpectedEndOfScript:"UnexpectedEndOfScript",UnexpectedIdentifier:"UnexpectedIdentifier",UnexpectedKeyword:"UnexpectedKeyword",UnexpectedNull:"UnexpectedNull",UnexpectedNumber:"UnexpectedNumber",UnexpectedPunctuator:"UnexpectedPunctuator",UnexpectedString:"UnexpectedString",UnexpectedTemplate:"UnexpectedTemplate",UnexpectedToken:"UnexpectedToken"},w1={[L.InvalidModuleUri]:"Module uri must be a text literal.",[L.ForInOfLoopInitializer]:"for-in loop variable declaration may not have an initializer.",[L.IdentiferExpected]:"'${value}' is an invalid identifier.",[L.InvalidEscapedReservedWord]:"Keyword cannot contain escaped characters.",[L.InvalidExpression]:"Invalid expression.",[L.InvalidFunctionIdentifier]:"'${value}' is an invalid function identifier.",[L.InvalidHexEscapeSequence]:"Invalid hexadecimal escape sequence.",[L.InvalidLeftHandSideInAssignment]:"Invalid left-hand side in assignment.",[L.InvalidLeftHandSideInForIn]:"Invalid left-hand side in for-in.",[L.InvalidTemplateHead]:"Invalid template structure.",[L.InvalidVariableAssignment]:"Invalid variable assignment.",[L.KeyMustBeString]:"Object property keys must be a word starting with a letter.",[L.NoFunctionInsideBlock]:"Functions cannot be declared inside of code blocks.",[L.NoFunctionInsideFunction]:"Functions cannot be declared inside another function.",[L.ModuleExportRootOnly]:"Module exports cannot be declared inside of code blocks.",[L.ModuleImportRootOnly]:"Module import cannot be declared inside of code blocks.",[L.PunctuatorExpected]:"'${value}' expected.",[L.TemplateOctalLiteral]:"Octal literals are not allowed in template literals.",[L.UnexpectedBoolean]:"Unexpected boolean literal.",[L.UnexpectedEndOfScript]:"Unexpected end of Arcade expression.",[L.UnexpectedIdentifier]:"Unexpected identifier.",[L.UnexpectedKeyword]:"Unexpected keyword.",[L.UnexpectedNull]:"Unexpected null literal.",[L.UnexpectedNumber]:"Unexpected number.",[L.UnexpectedPunctuator]:"Unexpected ponctuator.",[L.UnexpectedString]:"Unexpected text literal.",[L.UnexpectedTemplate]:"Unexpected quasi '${value}'.",[L.UnexpectedToken]:"Unexpected token '${value}'."},li=class L1 extends Error{constructor({code:t,index:n,line:i,column:r,len:s=0,description:o,data:a}){super(o??t),this.declaredRootClass="esri.arcade.lib.diagnostic",this.name="ParsingError",this.code=t,this.index=n,this.line=i,this.column=r,this.len=s,this.data=a,this.description=o,this.range={start:{line:i,column:r-1},end:{line:i,column:r+s}},Error.captureStackTrace?.(this,L1)}};function ml(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.Program}function Re(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.BlockStatement}function gl(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.BlockComment}function $r(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.EmptyStatement}function pl(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.ExpressionStatement}function r1(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.FunctionDeclaration}function Tr(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.IfStatement}function ci(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.VariableDeclaration}function hi(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.ArrayExpression}function Ur(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.BinaryExpression}function Me(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.Identifier}function F1(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.Literal}function Vr(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.LogicalExpression}function s1(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.ObjectExpression}function o1(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.MemberExpression}function xl(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.UnaryExpression}function Dl(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.UpdateExpression}function y1(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.VariableDeclarator}function bl(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.Property}function Ir(e,t){return t.loc.end.line===e.loc.start.line&&t.loc.end.column<=e.loc.start.column}function a1(e,t){return e.range[0]>=t.range[0]&&e.range[1]<=t.range[1]}var Cl=class{constructor(){this.comments=[],this._nodeStack=[],this._newComments=[]}insertInnerComments(e){if(!Re(e)||e.body.length!==0)return;let t=[];for(let n=this._newComments.length-1;n>=0;n--){let i=this._newComments[n];e.range[1]>=i.range[0]&&(t.unshift(i),this._newComments.splice(n,1))}t.length&&(e.innerComments=t)}attachTrailingComments(e){let t=this._nodeStack.at(-1);if(!t)return;if(Re(e)&&a1(t,e))for(let i=this._newComments.length-1;i>=0;i--){let r=this._newComments[i];a1(r,e)&&(t.trailingComments=[...t.trailingComments??[],r],this._newComments.splice(i,1))}let n=[];if(this._newComments.length>0)for(let i=this._newComments.length-1;i>=0;i--){let r=this._newComments[i];Ir(r,t)?(t.trailingComments=[...t.trailingComments??[],r],this._newComments.splice(i,1)):Ir(r,e)&&(n.unshift(r),this._newComments.splice(i,1))}if(t.trailingComments){let i=t.trailingComments[0];Ir(i,e)&&(n=[...n,...t.trailingComments],delete t.trailingComments)}n.length>0&&(e.trailingComments=n)}attachLeadingComments(e){let t;for(;this._nodeStack.length>0;){let r=this._nodeStack[this._nodeStack.length-1];if(e.range[0]<=r.range[0]){t=r,this._nodeStack.pop();continue}break}let n=[],i=[];if(t!=null){if(!t.leadingComments)return;for(let r=t.leadingComments.length-1;r>=0;r--){let s=t.leadingComments[r];if(e.range[0]>=s.range[1]){n.unshift(s),t.leadingComments.splice(r,1);continue}y1(e)&&!gl(s)&&(i.unshift(s),t.leadingComments.splice(r,1))}t.leadingComments.length===0&&delete t.leadingComments,n.length&&(e.leadingComments=n),i.length&&(e.trailingComments=[...i,...e.trailingComments??[]]);return}for(let r=this._newComments.length-1;r>=0;r--){let s=this._newComments[r];e.range[0]>=s.range[0]&&(n.unshift(s),this._newComments.splice(r,1))}n.length&&(e.leadingComments=n)}attachComments(e){if(ml(e)&&e.body.length>0){let t=this._nodeStack.at(-1);if(t){t.trailingComments=[...t.trailingComments??[],...this._newComments],this._newComments.length=0,this._nodeStack.pop();return}e.trailingComments=[...this._newComments],this._newComments.length=0;return}this.attachTrailingComments(e),this.attachLeadingComments(e),this.insertInnerComments(e),this._nodeStack.push(e)}collectComment(e){this.comments.push(e),this._newComments.push(e)}},Al=/\$\{(.*?)\}/gu;function zr(e,t){let n=w1[e];return t?n.replace(Al,(i,r)=>t[r].toString()??""):n}var S1=class{constructor(e=!1){this.tolerant=e,this.errors=[]}recordError(e){this.errors.push(e)}tolerate(e){if(this.tolerant)this.recordError(e);else throw e}throwError(e){throw e.description??(e.description=zr(e.code,e.data)),new li(e)}tolerateError(e){e.description??(e.description=zr(e.code,e.data));let t=new li(e);if(this.tolerant)this.recordError(t);else throw t}};function u1(e,t){if(!e)throw new Error(`ASSERT: ${t}`)}var l1={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1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DC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F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0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D3-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B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u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uF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uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/u},z={fromCodePoint(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(e)},isLineTerminator(e){return e===10||e===13||e===8232||e===8233},isIdentifierStart(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e===92||e>=128&&l1.NonAsciiIdentifierStart.test(z.fromCodePoint(e))},isIdentifierPart(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===92||e>=128&&l1.NonAsciiIdentifierPart.test(z.fromCodePoint(e))},isDecimalDigit(e){return e>=48&&e<=57},isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit(e){return e>=48&&e<=55}};function c1(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function Br(e){return"01234567".indexOf(e)}var ft=[[],[],[]];Pr.forEach(e=>ft[e.length-1]?.push(e));A1.forEach(e=>ft[e.length-1]?.push(e));_1.forEach(e=>ft[e.length-1]?.push(e));E1.forEach(e=>ft[e.length-1]?.push(e));dl.forEach(e=>ft[e.length-1]?.push(e));var N1=class{constructor(e,t){this.source=e,this.errorHandler=t,this._length=e.length,this.index=0,this.lineNumber=1,this.lineStart=0,this.curlyStack=[]}saveState(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart,curlyStack:this.curlyStack.slice()}}restoreState(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart,this.curlyStack=e.curlyStack}eof(){return this.index>=this._length}throwUnexpectedToken(e=L.UnexpectedToken){this.errorHandler.throwError({code:e,index:this.index,line:this.lineNumber,column:this.index-this.lineStart+1,data:{value:this.source.charAt(this.index)}})}tolerateUnexpectedToken(e=L.UnexpectedToken){this.errorHandler.tolerateError({code:e,index:this.index,line:this.lineNumber,column:this.index-this.lineStart+1})}skipSingleLineComment(e){let t=[],n=this.index-e,i={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{line:0,column:0}};for(;!this.eof();){let s=this.source.charCodeAt(this.index);if(this.index+=1,z.isLineTerminator(s)){i.end={line:this.lineNumber,column:this.index-this.lineStart-1};let o={multiLine:!1,start:n+e,end:this.index-1,range:[n,this.index-1],loc:i};return t.push(o),s===13&&this.source.charCodeAt(this.index)===10&&(this.index+=1),this.lineNumber+=1,this.lineStart=this.index,t}}i.end={line:this.lineNumber,column:this.index-this.lineStart};let r={multiLine:!1,start:n+e,end:this.index,range:[n,this.index],loc:i};return t.push(r),t}skipMultiLineComment(){let e=[],t=this.index-2,n={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{line:0,column:0}};for(;!this.eof();){let r=this.source.charCodeAt(this.index);if(z.isLineTerminator(r))r===13&&this.source.charCodeAt(this.index+1)===10&&(this.index+=1),this.lineNumber+=1,this.index+=1,this.lineStart=this.index;else if(r===42){if(this.source.charCodeAt(this.index+1)===47){this.index+=2,n.end={line:this.lineNumber,column:this.index-this.lineStart};let s={multiLine:!0,start:t+2,end:this.index-2,range:[t,this.index],loc:n};return e.push(s),e}this.index+=1}else this.index+=1}n.end={line:this.lineNumber,column:this.index-this.lineStart};let i={multiLine:!0,start:t+2,end:this.index,range:[t,this.index],loc:n};return e.push(i),this.tolerateUnexpectedToken(),e}scanComments(){let e=[];for(;!this.eof();){let t=this.source.charCodeAt(this.index);if(z.isWhiteSpace(t))this.index+=1;else if(z.isLineTerminator(t))this.index+=1,t===13&&this.source.charCodeAt(this.index)===10&&(this.index+=1),this.lineNumber+=1,this.lineStart=this.index;else if(t===47)if(t=this.source.charCodeAt(this.index+1),t===47){this.index+=2;let n=this.skipSingleLineComment(2);e=[...e,...n]}else if(t===42){this.index+=2;let n=this.skipMultiLineComment();e=[...e,...n]}else break;else break}return e}isKeyword(e){switch(e=e.toLowerCase(),e.length){case 2:return e===W.If||e===W.In;case 3:return e===W.Var||e===W.For;case 4:return e===W.Else;case 5:return e===W.Break||e===W.While;case 6:return e===W.Return||e===W.Import||e===W.Export;case 8:return e===W.Function||e===W.Continue;default:return!1}}codePointAt(e){let t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){let n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=(t-55296)*1024+n-56320+65536)}return t}scanHexEscape(e){let t=e==="u"?4:2,n=0;for(let i=0;i<t;i++)if(!this.eof()&&z.isHexDigit(this.source.charCodeAt(this.index)))n=n*16+c1(this.source[this.index]??""),this.index+=1;else return null;return String.fromCharCode(n)}scanUnicodeCodePointEscape(){let e=this.source[this.index],t=0;for(e==="}"&&this.throwUnexpectedToken();!this.eof()&&(e=this.source[this.index]??"",this.index+=1,!!z.isHexDigit(e.charCodeAt(0)));)t=t*16+c1(e);return(t>1114111||e!=="}")&&this.throwUnexpectedToken(),z.fromCodePoint(t)}getIdentifier(){let e=this.index;for(this.index+=1;!this.eof();){let t=this.source.charCodeAt(this.index);if(t===92)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(z.isIdentifierPart(t))this.index+=1;else break}return this.source.slice(e,this.index)}getComplexIdentifier(){let e=this.codePointAt(this.index),t=z.fromCodePoint(e);this.index+=t.length;let n;for(e===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),this.index+=1,this.source[this.index]==="{"?(this.index+=1,n=this.scanUnicodeCodePointEscape()):(n=this.scanHexEscape("u"),(n===null||n==="\\"||!z.isIdentifierStart(n.charCodeAt(0)))&&this.throwUnexpectedToken()),t=n);!this.eof()&&(e=this.codePointAt(this.index),!!z.isIdentifierPart(e));)n=z.fromCodePoint(e),t+=n,this.index+=n.length,e===92&&(t=t.substring(0,t.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),this.index+=1,this.source[this.index]==="{"?(this.index+=1,n=this.scanUnicodeCodePointEscape()):(n=this.scanHexEscape("u"),(n===null||n==="\\"||!z.isIdentifierPart(n.charCodeAt(0)))&&this.throwUnexpectedToken()),t+=n);return t}octalToDecimal(e){let t=e!=="0",n=Br(e);return!this.eof()&&z.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=n*8+Br(this.source[this.index]??""),this.index+=1,"0123".includes(e)&&!this.eof()&&z.isOctalDigit(this.source.charCodeAt(this.index))&&(n=n*8+Br(this.source[this.index]??""),this.index+=1)),{code:n,octal:t}}scanIdentifier(){let e,t=this.index,n=this.source.charCodeAt(t)===92?this.getComplexIdentifier():this.getIdentifier();if(n.length===1?e=N.Identifier:this.isKeyword(n)?e=N.Keyword:n.toLowerCase()===un.Null?e=N.NullLiteral:n.toLowerCase()===un.True||n.toLowerCase()===un.False?e=N.BooleanLiteral:e=N.Identifier,e!==N.Identifier&&t+n.length!==this.index){let i=this.index;this.index=t,this.tolerateUnexpectedToken(L.InvalidEscapedReservedWord),this.index=i}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}}scanPunctuator(){let e=this.index,t=this.source[this.index]??"";switch(t){case"(":case"{":t==="{"&&this.curlyStack.push("{"),this.index+=1;break;case".":this.index+=1;break;case"}":this.index+=1,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":this.index+=1;break;default:for(let n=ft.length;n>0;n--)if(t=this.source.substring(this.index,this.index+n),ft[n-1]?.includes(t)){this.index+=n;break}}return this.index===e&&this.throwUnexpectedToken(),{type:N.Punctuator,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}}scanHexLiteral(e){let t="";for(;!this.eof()&&z.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index],this.index+=1;return t.length===0&&this.throwUnexpectedToken(),z.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:N.NumericLiteral,value:Number.parseInt(`0x${t}`,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}}scanBinaryLiteral(e){let t="";for(;!this.eof();){let n=this.source[this.index];if(n!=="0"&&n!=="1")break;t+=this.source[this.index],this.index+=1}if(t.length===0&&this.throwUnexpectedToken(),!this.eof()){let n=this.source.charCodeAt(this.index);(z.isIdentifierStart(n)||z.isDecimalDigit(n))&&this.throwUnexpectedToken()}return{type:N.NumericLiteral,value:Number.parseInt(t,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}}scanOctalLiteral(e,t){let n="",i=!1;for(z.isOctalDigit(e.charCodeAt(0))&&(i=!0,n=`0${this.source[this.index]}`),this.index+=1;!this.eof()&&z.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index],this.index+=1;return!i&&n.length===0&&this.throwUnexpectedToken(),(z.isIdentifierStart(this.source.charCodeAt(this.index))||z.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:N.NumericLiteral,value:Number.parseInt(n,8),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}}scanNumericLiteral(){let e=this.index,t=this.source[e]??"";u1(z.isDecimalDigit(t.charCodeAt(0))||t===".","Numeric literal must start with a decimal digit or a decimal point");let n="";if(t!=="."){if(n=this.source[this.index]??"",this.index+=1,t=this.source[this.index]??"",n==="0"){if(t==="x"||t==="X")return this.index+=1,this.scanHexLiteral(e);if(t==="b"||t==="B")return this.index+=1,this.scanBinaryLiteral(e);if(t==="o"||t==="O")return this.scanOctalLiteral(t,e)}for(;z.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index],this.index+=1;t=this.source[this.index]??""}if(t==="."){for(n+=this.source[this.index],this.index+=1;z.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index],this.index+=1;t=this.source[this.index]??""}if(t==="e"||t==="E")if(n+=this.source[this.index],this.index+=1,t=this.source[this.index]??"",(t==="+"||t==="-")&&(n+=this.source[this.index],this.index+=1),z.isDecimalDigit(this.source.charCodeAt(this.index)))for(;z.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index],this.index+=1;else this.throwUnexpectedToken();return z.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:N.NumericLiteral,value:Number.parseFloat(n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}}scanStringLiteral(){let e=this.index,t=this.source[e];u1(t==="'"||t==='"',"String literal must starts with a quote"),this.index+=1;let n=!1,i="";for(;!this.eof();){let r=this.source[this.index]??"";if(this.index+=1,r===t){t="";break}if(r==="\\")if(r=this.source[this.index]??"",this.index+=1,!r||!z.isLineTerminator(r.charCodeAt(0)))switch(r){case"u":if(this.source[this.index]==="{")this.index+=1,i+=this.scanUnicodeCodePointEscape();else{let s=this.scanHexEscape(r);s===null&&this.throwUnexpectedToken(),i+=s}break;case"x":{let s=this.scanHexEscape(r);s===null&&this.throwUnexpectedToken(L.InvalidHexEscapeSequence),i+=s;break}case"n":i+=`
|
|
13
|
+
`&&r++}i&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return ye.create(0,t);for(;i<r;){let o=Math.floor((i+r)/2);n[o]>t?r=o:i=o+1}let s=i-1;return ye.create(s,t-n[s])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let i=n[t.line],r=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(i+t.character,r),i)}get lineCount(){return this.getLineOffsets().length}},D;(function(e){let t=Object.prototype.toString;function n(m){return typeof m<"u"}e.defined=n;function i(m){return typeof m>"u"}e.undefined=i;function r(m){return m===!0||m===!1}e.boolean=r;function s(m){return t.call(m)==="[object String]"}e.string=s;function o(m){return t.call(m)==="[object Number]"}e.number=o;function a(m,x,p){return t.call(m)==="[object Number]"&&x<=m&&m<=p}e.numberRange=a;function l(m){return t.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}e.integer=l;function c(m){return t.call(m)==="[object Number]"&&0<=m&&m<=2147483647}e.uinteger=c;function h(m){return t.call(m)==="[object Function]"}e.func=h;function f(m){return m!==null&&typeof m=="object"}e.objectLiteral=f;function d(m,x){return Array.isArray(m)&&m.every(x)}e.typedArray=d})(D||(D={}));function i1(e){return!!e&&e.type!=="dictionary"}function fl(e){return e?.type==="dictionary"}var un={False:"false",Null:"null",True:"true"},W={Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"},g={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockComment:"BlockComment",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",ContinueStatement:"ContinueStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",LineComment:"LineComment",Literal:"Literal",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement"},Pr=["++","--"],A1=["-","+","!","~"],E1=["=","/=","*=","%=","+=","-="],_1=["||","&&"],dl=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"],ui={"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},N={Unknown:0,BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,Template:10},v1=["Unknown","Boolean","<end>","Identifier","Keyword","Null","Numeric","Punctuator","String","RegularExpression","Template"],L={InvalidModuleUri:"InvalidModuleUri",ForInOfLoopInitializer:"ForInOfLoopInitializer",IdentiferExpected:"IdentiferExpected",InvalidEscapedReservedWord:"InvalidEscapedReservedWord",InvalidExpression:"InvalidExpression",InvalidFunctionIdentifier:"InvalidFunctionIdentifier",InvalidHexEscapeSequence:"InvalidHexEscapeSequence",InvalidLeftHandSideInAssignment:"InvalidLeftHandSideInAssignment",InvalidLeftHandSideInForIn:"InvalidLeftHandSideInForIn",InvalidTemplateHead:"InvalidTemplateHead",InvalidVariableAssignment:"InvalidVariableAssignment",KeyMustBeString:"KeyMustBeString",NoFunctionInsideBlock:"NoFunctionInsideBlock",NoFunctionInsideFunction:"NoFunctionInsideFunction",ModuleExportRootOnly:"ModuleExportRootOnly",ModuleImportRootOnly:"ModuleImportRootOnly",PunctuatorExpected:"PunctuatorExpected",TemplateOctalLiteral:"TemplateOctalLiteral",UnexpectedBoolean:"UnexpectedBoolean",UnexpectedEndOfScript:"UnexpectedEndOfScript",UnexpectedIdentifier:"UnexpectedIdentifier",UnexpectedKeyword:"UnexpectedKeyword",UnexpectedNull:"UnexpectedNull",UnexpectedNumber:"UnexpectedNumber",UnexpectedPunctuator:"UnexpectedPunctuator",UnexpectedString:"UnexpectedString",UnexpectedTemplate:"UnexpectedTemplate",UnexpectedToken:"UnexpectedToken"},w1={[L.InvalidModuleUri]:"Module uri must be a text literal.",[L.ForInOfLoopInitializer]:"for-in loop variable declaration may not have an initializer.",[L.IdentiferExpected]:"'${value}' is an invalid identifier.",[L.InvalidEscapedReservedWord]:"Keyword cannot contain escaped characters.",[L.InvalidExpression]:"Invalid expression.",[L.InvalidFunctionIdentifier]:"'${value}' is an invalid function identifier.",[L.InvalidHexEscapeSequence]:"Invalid hexadecimal escape sequence.",[L.InvalidLeftHandSideInAssignment]:"Invalid left-hand side in assignment.",[L.InvalidLeftHandSideInForIn]:"Invalid left-hand side in for-in.",[L.InvalidTemplateHead]:"Invalid template structure.",[L.InvalidVariableAssignment]:"Invalid variable assignment.",[L.KeyMustBeString]:"Object property keys must be a word starting with a letter.",[L.NoFunctionInsideBlock]:"Functions cannot be declared inside of code blocks.",[L.NoFunctionInsideFunction]:"Functions cannot be declared inside another function.",[L.ModuleExportRootOnly]:"Module exports cannot be declared inside of code blocks.",[L.ModuleImportRootOnly]:"Module import cannot be declared inside of code blocks.",[L.PunctuatorExpected]:"'${value}' expected.",[L.TemplateOctalLiteral]:"Octal literals are not allowed in template literals.",[L.UnexpectedBoolean]:"Unexpected boolean literal.",[L.UnexpectedEndOfScript]:"Unexpected end of Arcade expression.",[L.UnexpectedIdentifier]:"Unexpected identifier.",[L.UnexpectedKeyword]:"Unexpected keyword.",[L.UnexpectedNull]:"Unexpected null literal.",[L.UnexpectedNumber]:"Unexpected number.",[L.UnexpectedPunctuator]:"Unexpected ponctuator.",[L.UnexpectedString]:"Unexpected text literal.",[L.UnexpectedTemplate]:"Unexpected quasi '${value}'.",[L.UnexpectedToken]:"Unexpected token '${value}'."},li=class L1 extends Error{constructor({code:t,index:n,line:i,column:r,len:s=0,description:o,data:a}){super(o??t),this.declaredRootClass="esri.arcade.lib.diagnostic",this.name="ParsingError",this.code=t,this.index=n,this.line=i,this.column=r,this.len=s,this.data=a,this.description=o,this.range={start:{line:i,column:r-1},end:{line:i,column:r+s}},Error.captureStackTrace?.(this,L1)}};function ml(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.Program}function Re(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.BlockStatement}function gl(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.BlockComment}function $r(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.EmptyStatement}function pl(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.ExpressionStatement}function r1(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.FunctionDeclaration}function Tr(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.IfStatement}function ci(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.VariableDeclaration}function hi(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.ArrayExpression}function Ur(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.BinaryExpression}function Me(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.Identifier}function F1(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.Literal}function Vr(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.LogicalExpression}function s1(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.ObjectExpression}function o1(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.MemberExpression}function xl(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.UnaryExpression}function Dl(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.UpdateExpression}function y1(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.VariableDeclarator}function bl(e){return!!e&&typeof e=="object"&&"type"in e&&e.type===g.Property}function Ir(e,t){return t.loc.end.line===e.loc.start.line&&t.loc.end.column<=e.loc.start.column}function a1(e,t){return e.range[0]>=t.range[0]&&e.range[1]<=t.range[1]}var Cl=class{constructor(){this.comments=[],this._nodeStack=[],this._newComments=[]}insertInnerComments(e){if(!Re(e)||e.body.length!==0)return;let t=[];for(let n=this._newComments.length-1;n>=0;n--){let i=this._newComments[n];e.range[1]>=i.range[0]&&(t.unshift(i),this._newComments.splice(n,1))}t.length&&(e.innerComments=t)}attachTrailingComments(e){let t=this._nodeStack.at(-1);if(!t)return;if(Re(e)&&a1(t,e))for(let i=this._newComments.length-1;i>=0;i--){let r=this._newComments[i];a1(r,e)&&(t.trailingComments=[...t.trailingComments??[],r],this._newComments.splice(i,1))}let n=[];if(this._newComments.length>0)for(let i=this._newComments.length-1;i>=0;i--){let r=this._newComments[i];Ir(r,t)?(t.trailingComments=[...t.trailingComments??[],r],this._newComments.splice(i,1)):Ir(r,e)&&(n.unshift(r),this._newComments.splice(i,1))}if(t.trailingComments){let i=t.trailingComments[0];Ir(i,e)&&(n=[...n,...t.trailingComments],delete t.trailingComments)}n.length>0&&(e.trailingComments=n)}attachLeadingComments(e){let t;for(;this._nodeStack.length>0;){let r=this._nodeStack[this._nodeStack.length-1];if(e.range[0]<=r.range[0]){t=r,this._nodeStack.pop();continue}break}let n=[],i=[];if(t!=null){if(!t.leadingComments)return;for(let r=t.leadingComments.length-1;r>=0;r--){let s=t.leadingComments[r];if(e.range[0]>=s.range[1]){n.unshift(s),t.leadingComments.splice(r,1);continue}y1(e)&&!gl(s)&&(i.unshift(s),t.leadingComments.splice(r,1))}t.leadingComments.length===0&&delete t.leadingComments,n.length&&(e.leadingComments=n),i.length&&(e.trailingComments=[...i,...e.trailingComments??[]]);return}for(let r=this._newComments.length-1;r>=0;r--){let s=this._newComments[r];e.range[0]>=s.range[0]&&(n.unshift(s),this._newComments.splice(r,1))}n.length&&(e.leadingComments=n)}attachComments(e){if(ml(e)&&e.body.length>0){let t=this._nodeStack.at(-1);if(t){t.trailingComments=[...t.trailingComments??[],...this._newComments],this._newComments.length=0,this._nodeStack.pop();return}e.trailingComments=[...this._newComments],this._newComments.length=0;return}this.attachTrailingComments(e),this.attachLeadingComments(e),this.insertInnerComments(e),this._nodeStack.push(e)}collectComment(e){this.comments.push(e),this._newComments.push(e)}},Al=/\$\{(.*?)\}/gu;function zr(e,t){let n=w1[e];return t?n.replace(Al,(i,r)=>t[r]?.toString()??""):n}var S1=class{constructor(e=!1){this.tolerant=e,this.errors=[]}recordError(e){this.errors.push(e)}tolerate(e){if(this.tolerant)this.recordError(e);else throw e}throwError(e){throw e.description??(e.description=zr(e.code,e.data)),new li(e)}tolerateError(e){e.description??(e.description=zr(e.code,e.data));let t=new li(e);if(this.tolerant)this.recordError(t);else throw t}};function u1(e,t){if(!e)throw new Error(`ASSERT: ${t}`)}var l1={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u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F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\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B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDEC0-\uDEEB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/u,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D3-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0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u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE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D46\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E\uDC5F\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDF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9]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/u},z={fromCodePoint(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(e)},isLineTerminator(e){return e===10||e===13||e===8232||e===8233},isIdentifierStart(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e===92||e>=128&&l1.NonAsciiIdentifierStart.test(z.fromCodePoint(e))},isIdentifierPart(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===92||e>=128&&l1.NonAsciiIdentifierPart.test(z.fromCodePoint(e))},isDecimalDigit(e){return e>=48&&e<=57},isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit(e){return e>=48&&e<=55}};function c1(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function Br(e){return"01234567".indexOf(e)}var ft=[[],[],[]];Pr.forEach(e=>ft[e.length-1]?.push(e));A1.forEach(e=>ft[e.length-1]?.push(e));_1.forEach(e=>ft[e.length-1]?.push(e));E1.forEach(e=>ft[e.length-1]?.push(e));dl.forEach(e=>ft[e.length-1]?.push(e));var N1=class{constructor(e,t){this.source=e,this.errorHandler=t,this._length=e.length,this.index=0,this.lineNumber=1,this.lineStart=0,this.curlyStack=[]}saveState(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart,curlyStack:this.curlyStack.slice()}}restoreState(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart,this.curlyStack=e.curlyStack}eof(){return this.index>=this._length}throwUnexpectedToken(e=L.UnexpectedToken){this.errorHandler.throwError({code:e,index:this.index,line:this.lineNumber,column:this.index-this.lineStart+1,data:{value:this.source.charAt(this.index)}})}tolerateUnexpectedToken(e=L.UnexpectedToken){this.errorHandler.tolerateError({code:e,index:this.index,line:this.lineNumber,column:this.index-this.lineStart+1})}skipSingleLineComment(e){let t=[],n=this.index-e,i={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{line:0,column:0}};for(;!this.eof();){let s=this.source.charCodeAt(this.index);if(this.index+=1,z.isLineTerminator(s)){i.end={line:this.lineNumber,column:this.index-this.lineStart-1};let o={multiLine:!1,start:n+e,end:this.index-1,range:[n,this.index-1],loc:i};return t.push(o),s===13&&this.source.charCodeAt(this.index)===10&&(this.index+=1),this.lineNumber+=1,this.lineStart=this.index,t}}i.end={line:this.lineNumber,column:this.index-this.lineStart};let r={multiLine:!1,start:n+e,end:this.index,range:[n,this.index],loc:i};return t.push(r),t}skipMultiLineComment(){let e=[],t=this.index-2,n={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{line:0,column:0}};for(;!this.eof();){let r=this.source.charCodeAt(this.index);if(z.isLineTerminator(r))r===13&&this.source.charCodeAt(this.index+1)===10&&(this.index+=1),this.lineNumber+=1,this.index+=1,this.lineStart=this.index;else if(r===42){if(this.source.charCodeAt(this.index+1)===47){this.index+=2,n.end={line:this.lineNumber,column:this.index-this.lineStart};let s={multiLine:!0,start:t+2,end:this.index-2,range:[t,this.index],loc:n};return e.push(s),e}this.index+=1}else this.index+=1}n.end={line:this.lineNumber,column:this.index-this.lineStart};let i={multiLine:!0,start:t+2,end:this.index,range:[t,this.index],loc:n};return e.push(i),this.tolerateUnexpectedToken(),e}scanComments(){let e=[];for(;!this.eof();){let t=this.source.charCodeAt(this.index);if(z.isWhiteSpace(t))this.index+=1;else if(z.isLineTerminator(t))this.index+=1,t===13&&this.source.charCodeAt(this.index)===10&&(this.index+=1),this.lineNumber+=1,this.lineStart=this.index;else if(t===47)if(t=this.source.charCodeAt(this.index+1),t===47){this.index+=2;let n=this.skipSingleLineComment(2);e=[...e,...n]}else if(t===42){this.index+=2;let n=this.skipMultiLineComment();e=[...e,...n]}else break;else break}return e}isKeyword(e){switch(e=e.toLowerCase(),e.length){case 2:return e===W.If||e===W.In;case 3:return e===W.Var||e===W.For;case 4:return e===W.Else;case 5:return e===W.Break||e===W.While;case 6:return e===W.Return||e===W.Import||e===W.Export;case 8:return e===W.Function||e===W.Continue;default:return!1}}codePointAt(e){let t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){let n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=(t-55296)*1024+n-56320+65536)}return t}scanHexEscape(e){let t=e==="u"?4:2,n=0;for(let i=0;i<t;i++)if(!this.eof()&&z.isHexDigit(this.source.charCodeAt(this.index)))n=n*16+c1(this.source[this.index]??""),this.index+=1;else return null;return String.fromCharCode(n)}scanUnicodeCodePointEscape(){let e=this.source[this.index],t=0;for(e==="}"&&this.throwUnexpectedToken();!this.eof()&&(e=this.source[this.index]??"",this.index+=1,!!z.isHexDigit(e.charCodeAt(0)));)t=t*16+c1(e);return(t>1114111||e!=="}")&&this.throwUnexpectedToken(),z.fromCodePoint(t)}getIdentifier(){let e=this.index;for(this.index+=1;!this.eof();){let t=this.source.charCodeAt(this.index);if(t===92)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(z.isIdentifierPart(t))this.index+=1;else break}return this.source.slice(e,this.index)}getComplexIdentifier(){let e=this.codePointAt(this.index),t=z.fromCodePoint(e);this.index+=t.length;let n;for(e===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),this.index+=1,this.source[this.index]==="{"?(this.index+=1,n=this.scanUnicodeCodePointEscape()):(n=this.scanHexEscape("u"),(n===null||n==="\\"||!z.isIdentifierStart(n.charCodeAt(0)))&&this.throwUnexpectedToken()),t=n);!this.eof()&&(e=this.codePointAt(this.index),!!z.isIdentifierPart(e));)n=z.fromCodePoint(e),t+=n,this.index+=n.length,e===92&&(t=t.substring(0,t.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),this.index+=1,this.source[this.index]==="{"?(this.index+=1,n=this.scanUnicodeCodePointEscape()):(n=this.scanHexEscape("u"),(n===null||n==="\\"||!z.isIdentifierPart(n.charCodeAt(0)))&&this.throwUnexpectedToken()),t+=n);return t}octalToDecimal(e){let t=e!=="0",n=Br(e);return!this.eof()&&z.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=n*8+Br(this.source[this.index]??""),this.index+=1,"0123".includes(e)&&!this.eof()&&z.isOctalDigit(this.source.charCodeAt(this.index))&&(n=n*8+Br(this.source[this.index]??""),this.index+=1)),{code:n,octal:t}}scanIdentifier(){let e,t=this.index,n=this.source.charCodeAt(t)===92?this.getComplexIdentifier():this.getIdentifier();if(n.length===1?e=N.Identifier:this.isKeyword(n)?e=N.Keyword:n.toLowerCase()===un.Null?e=N.NullLiteral:n.toLowerCase()===un.True||n.toLowerCase()===un.False?e=N.BooleanLiteral:e=N.Identifier,e!==N.Identifier&&t+n.length!==this.index){let i=this.index;this.index=t,this.tolerateUnexpectedToken(L.InvalidEscapedReservedWord),this.index=i}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}}scanPunctuator(){let e=this.index,t=this.source[this.index]??"";switch(t){case"(":case"{":t==="{"&&this.curlyStack.push("{"),this.index+=1;break;case".":this.index+=1;break;case"}":this.index+=1,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":this.index+=1;break;default:for(let n=ft.length;n>0;n--)if(t=this.source.substring(this.index,this.index+n),ft[n-1]?.includes(t)){this.index+=n;break}}return this.index===e&&this.throwUnexpectedToken(),{type:N.Punctuator,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}}scanHexLiteral(e){let t="";for(;!this.eof()&&z.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index],this.index+=1;return t.length===0&&this.throwUnexpectedToken(),z.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:N.NumericLiteral,value:Number.parseInt(`0x${t}`,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}}scanBinaryLiteral(e){let t="";for(;!this.eof();){let n=this.source[this.index];if(n!=="0"&&n!=="1")break;t+=this.source[this.index],this.index+=1}if(t.length===0&&this.throwUnexpectedToken(),!this.eof()){let n=this.source.charCodeAt(this.index);(z.isIdentifierStart(n)||z.isDecimalDigit(n))&&this.throwUnexpectedToken()}return{type:N.NumericLiteral,value:Number.parseInt(t,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}}scanOctalLiteral(e,t){let n="",i=!1;for(z.isOctalDigit(e.charCodeAt(0))&&(i=!0,n=`0${this.source[this.index]}`),this.index+=1;!this.eof()&&z.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index],this.index+=1;return!i&&n.length===0&&this.throwUnexpectedToken(),(z.isIdentifierStart(this.source.charCodeAt(this.index))||z.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:N.NumericLiteral,value:Number.parseInt(n,8),lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}}scanNumericLiteral(){let e=this.index,t=this.source[e]??"";u1(z.isDecimalDigit(t.charCodeAt(0))||t===".","Numeric literal must start with a decimal digit or a decimal point");let n="";if(t!=="."){if(n=this.source[this.index]??"",this.index+=1,t=this.source[this.index]??"",n==="0"){if(t==="x"||t==="X")return this.index+=1,this.scanHexLiteral(e);if(t==="b"||t==="B")return this.index+=1,this.scanBinaryLiteral(e);if(t==="o"||t==="O")return this.scanOctalLiteral(t,e)}for(;z.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index],this.index+=1;t=this.source[this.index]??""}if(t==="."){for(n+=this.source[this.index],this.index+=1;z.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index],this.index+=1;t=this.source[this.index]??""}if(t==="e"||t==="E")if(n+=this.source[this.index],this.index+=1,t=this.source[this.index]??"",(t==="+"||t==="-")&&(n+=this.source[this.index],this.index+=1),z.isDecimalDigit(this.source.charCodeAt(this.index)))for(;z.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index],this.index+=1;else this.throwUnexpectedToken();return z.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:N.NumericLiteral,value:Number.parseFloat(n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}}scanStringLiteral(){let e=this.index,t=this.source[e];u1(t==="'"||t==='"',"String literal must starts with a quote"),this.index+=1;let n=!1,i="";for(;!this.eof();){let r=this.source[this.index]??"";if(this.index+=1,r===t){t="";break}if(r==="\\")if(r=this.source[this.index]??"",this.index+=1,!r||!z.isLineTerminator(r.charCodeAt(0)))switch(r){case"u":if(this.source[this.index]==="{")this.index+=1,i+=this.scanUnicodeCodePointEscape();else{let s=this.scanHexEscape(r);s===null&&this.throwUnexpectedToken(),i+=s}break;case"x":{let s=this.scanHexEscape(r);s===null&&this.throwUnexpectedToken(L.InvalidHexEscapeSequence),i+=s;break}case"n":i+=`
|
|
14
14
|
`;break;case"r":i+="\r";break;case"t":i+=" ";break;case"b":i+="\b";break;case"f":i+="\f";break;case"v":i+="\v";break;case"8":case"9":i+=r,this.tolerateUnexpectedToken();break;default:if(r&&z.isOctalDigit(r.charCodeAt(0))){let s=this.octalToDecimal(r);n=s.octal||n,i+=String.fromCharCode(s.code)}else i+=r;break}else this.lineNumber+=1,r==="\r"&&this.source[this.index]===`
|
|
15
15
|
`&&(this.index+=1),this.lineStart=this.index;else{if(z.isLineTerminator(r.charCodeAt(0)))break;i+=r}}return t!==""&&(this.index=e,this.throwUnexpectedToken()),{type:N.StringLiteral,value:i,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}}scanTemplate(){let e="",t=!1,n=this.index,i=this.source[n]==="`",r=!1,s=2;for(this.index+=1;!this.eof();){let o=this.source[this.index]??"";if(this.index+=1,o==="`"){s=1,r=!0,t=!0;break}if(o==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),this.index+=1,t=!0;break}e+=o;continue}if(o==="\\"){if(o=this.source[this.index]??"",this.index+=1,z.isLineTerminator(o.charCodeAt(0)))this.lineNumber+=1,o==="\r"&&this.source[this.index]===`
|
|
16
16
|
`&&(this.index+=1),this.lineStart=this.index;else switch(o){case"n":e+=`
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
+
* v4.29.0-beta.94
|
|
5
|
+
*/
|
|
6
|
+
export{a as arcade}from"./p-22837217.js";import"./p-2b1aca7c.js";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
+
* v4.29.0-beta.94
|
|
5
|
+
*/
|
|
6
|
+
import{r as t}from"./p-22837217.js";import"./p-2b1aca7c.js";
|
|
2
7
|
/*!-----------------------------------------------------------------------------
|
|
3
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|