@guihz/trading-vue-editor-tes 0.0.7 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. package/lib/assets/editor.worker-CT5Cb1wO.js +11 -0
  2. package/lib/assets/{parserTccWorker-cJ5nOv5I.js → parserTccWorker-BhMZL9OL.js} +39 -38
  3. package/lib/assets/scriptsRunWorker-DHT6psBx.js +66 -0
  4. package/lib/components/editor/parseScript/buildInConstants.d.ts +51 -0
  5. package/lib/components/editor/parseScript/buildInFuncNamespace/box.d.ts +99 -0
  6. package/lib/components/editor/parseScript/buildInFuncNamespace/chartPoint.d.ts +27 -0
  7. package/lib/components/editor/parseScript/buildInFuncNamespace/index.d.ts +9 -1
  8. package/lib/components/editor/parseScript/buildInFuncNamespace/label.d.ts +77 -0
  9. package/lib/components/editor/parseScript/buildInFuncNamespace/line.d.ts +81 -0
  10. package/lib/components/editor/parseScript/buildInFuncNamespace/linefill.d.ts +37 -0
  11. package/lib/components/editor/parseScript/buildInFuncNamespace/polyline.d.ts +31 -0
  12. package/lib/components/editor/parseScript/buildInFuncNamespace/ta.d.ts +4 -3
  13. package/lib/components/editor/parseScript/buildInFuncNamespace/table.d.ts +94 -0
  14. package/lib/components/editor/parseScript/constants.d.ts +3 -0
  15. package/lib/components/editor/parseScript/type.d.ts +1 -0
  16. package/lib/components/editor/parseScript/visitorParser.d.ts +2 -0
  17. package/lib/components/editor/type/index.d.ts +2 -0
  18. package/lib/trading-vue-editor.js +1876 -1852
  19. package/lib/trading-vue-editor.umd.cjs +32 -32
  20. package/package.json +1 -1
  21. package/lib/assets/scriptsRunWorker-B4O7gGzE.js +0 -66
  22. package/lib/components/editor/parseScript/buildInVariables.d.ts +0 -124
@@ -0,0 +1,11 @@
1
+ (function(){"use strict";class Ir{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?ye.isErrorNoTelemetry(t)?new ye(t.message+`
2
+
3
+ `+t.stack):new Error(t.message+`
4
+
5
+ `+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const Ur=new Ir;function Yt(e){Hr(e)||Ur.onUnexpectedError(e)}function Zt(e){if(e instanceof Error){const{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:ye.isErrorNoTelemetry(e)}}return e}const _t="Canceled";function Hr(e){return e instanceof Wr?!0:e instanceof Error&&e.name===_t&&e.message===_t}class Wr extends Error{constructor(){super(_t),this.name=this.message}}class ye extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof ye)return t;const n=new ye;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class fe extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,fe.prototype)}}function zr(e,t){const n=this;let r=!1,s;return function(){if(r)return s;if(r=!0,t)try{s=e.apply(n,arguments)}finally{t()}else s=e.apply(n,arguments);return s}}var et;(function(e){function t(_){return _&&typeof _=="object"&&typeof _[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*s(_){yield _}e.single=s;function i(_){return t(_)?_:s(_)}e.wrap=i;function l(_){return _||n}e.from=l;function*o(_){for(let x=_.length-1;x>=0;x--)yield _[x]}e.reverse=o;function u(_){return!_||_[Symbol.iterator]().next().done===!0}e.isEmpty=u;function c(_){return _[Symbol.iterator]().next().value}e.first=c;function h(_,x){for(const S of _)if(x(S))return!0;return!1}e.some=h;function f(_,x){for(const S of _)if(x(S))return S}e.find=f;function*m(_,x){for(const S of _)x(S)&&(yield S)}e.filter=m;function*d(_,x){let S=0;for(const N of _)yield x(N,S++)}e.map=d;function*g(..._){for(const x of _)yield*x}e.concat=g;function b(_,x,S){let N=S;for(const R of _)N=x(N,R);return N}e.reduce=b;function*v(_,x,S=_.length){for(x<0&&(x+=_.length),S<0?S+=_.length:S>_.length&&(S=_.length);x<S;x++)yield _[x]}e.slice=v;function w(_,x=Number.POSITIVE_INFINITY){const S=[];if(x===0)return[S,_];const N=_[Symbol.iterator]();for(let R=0;R<x;R++){const M=N.next();if(M.done)return[S,e.empty()];S.push(M.value)}return[S,{[Symbol.iterator](){return N}}]}e.consume=w})(et||(et={}));function s1(e){return e}function i1(e,t){}function Kt(e){if(et.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function $r(...e){return We(()=>Kt(e))}function We(e){return{dispose:zr(()=>{e()})}}class we{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Kt(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?we.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&this._toDispose.delete(t)}}we.DISABLE_DISPOSED_WARNING=!1;class ze{constructor(){this._store=new we,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}ze.None=Object.freeze({dispose(){}});class H{constructor(t){this.element=t,this.next=H.Undefined,this.prev=H.Undefined}}H.Undefined=new H(void 0);class Or{constructor(){this._first=H.Undefined,this._last=H.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===H.Undefined}clear(){let t=this._first;for(;t!==H.Undefined;){const n=t.next;t.prev=H.Undefined,t.next=H.Undefined,t=n}this._first=H.Undefined,this._last=H.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new H(t);if(this._first===H.Undefined)this._first=r,this._last=r;else if(n){const i=this._last;this._last=r,r.prev=i,i.next=r}else{const i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(r))}}shift(){if(this._first!==H.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==H.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==H.Undefined&&t.next!==H.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===H.Undefined&&t.next===H.Undefined?(this._first=H.Undefined,this._last=H.Undefined):t.next===H.Undefined?(this._last=this._last.prev,this._last.next=H.Undefined):t.prev===H.Undefined&&(this._first=this._first.next,this._first.prev=H.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==H.Undefined;)yield t.element,t=t.next}}const Gr=globalThis.performance&&typeof globalThis.performance.now=="function";class tt{static create(t){return new tt(t)}constructor(t){this._now=Gr&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var xt;(function(e){e.None=()=>ze.None;function t(p,L){return f(p,()=>{},0,void 0,!0,void 0,L)}e.defer=t;function n(p){return(L,C=null,A)=>{let E=!1,P;return P=p(I=>{if(!E)return P?P.dispose():E=!0,L.call(C,I)},null,A),E&&P.dispose(),P}}e.once=n;function r(p,L,C){return c((A,E=null,P)=>p(I=>A.call(E,L(I)),null,P),C)}e.map=r;function s(p,L,C){return c((A,E=null,P)=>p(I=>{L(I),A.call(E,I)},null,P),C)}e.forEach=s;function i(p,L,C){return c((A,E=null,P)=>p(I=>L(I)&&A.call(E,I),null,P),C)}e.filter=i;function l(p){return p}e.signal=l;function o(...p){return(L,C=null,A)=>{const E=$r(...p.map(P=>P(I=>L.call(C,I))));return h(E,A)}}e.any=o;function u(p,L,C,A){let E=C;return r(p,P=>(E=L(E,P),E),A)}e.reduce=u;function c(p,L){let C;const A={onWillAddFirstListener(){C=p(E.fire,E)},onDidRemoveLastListener(){C==null||C.dispose()}},E=new se(A);return L==null||L.add(E),E.event}function h(p,L){return L instanceof Array?L.push(p):L&&L.add(p),p}function f(p,L,C=100,A=!1,E=!1,P,I){let X,Z,He,gt=0,Re;const t1={leakWarningThreshold:P,onWillAddFirstListener(){X=p(n1=>{gt++,Z=L(Z,n1),A&&!He&&(bt.fire(Z),Z=void 0),Re=()=>{const r1=Z;Z=void 0,He=void 0,(!A||gt>1)&&bt.fire(r1),gt=0},typeof C=="number"?(clearTimeout(He),He=setTimeout(Re,C)):He===void 0&&(He=0,queueMicrotask(Re))})},onWillRemoveListener(){E&&gt>0&&(Re==null||Re())},onDidRemoveLastListener(){Re=void 0,X.dispose()}},bt=new se(t1);return I==null||I.add(bt),bt.event}e.debounce=f;function m(p,L=0,C){return e.debounce(p,(A,E)=>A?(A.push(E),A):[E],L,void 0,!0,void 0,C)}e.accumulate=m;function d(p,L=(A,E)=>A===E,C){let A=!0,E;return i(p,P=>{const I=A||!L(P,E);return A=!1,E=P,I},C)}e.latch=d;function g(p,L,C){return[e.filter(p,L,C),e.filter(p,A=>!L(A),C)]}e.split=g;function b(p,L=!1,C=[],A){let E=C.slice(),P=p(Z=>{E?E.push(Z):X.fire(Z)});A&&A.add(P);const I=()=>{E==null||E.forEach(Z=>X.fire(Z)),E=null},X=new se({onWillAddFirstListener(){P||(P=p(Z=>X.fire(Z)),A&&A.add(P))},onDidAddFirstListener(){E&&(L?setTimeout(I):I())},onDidRemoveLastListener(){P&&P.dispose(),P=null}});return A&&A.add(X),X.event}e.buffer=b;function v(p,L){return(A,E,P)=>{const I=L(new _);return p(function(X){const Z=I.evaluate(X);Z!==w&&A.call(E,Z)},void 0,P)}}e.chain=v;const w=Symbol("HaltChainable");class _{constructor(){this.steps=[]}map(L){return this.steps.push(L),this}forEach(L){return this.steps.push(C=>(L(C),C)),this}filter(L){return this.steps.push(C=>L(C)?C:w),this}reduce(L,C){let A=C;return this.steps.push(E=>(A=L(A,E),A)),this}latch(L=(C,A)=>C===A){let C=!0,A;return this.steps.push(E=>{const P=C||!L(E,A);return C=!1,A=E,P?E:w}),this}evaluate(L){for(const C of this.steps)if(L=C(L),L===w)break;return L}}function x(p,L,C=A=>A){const A=(...X)=>I.fire(C(...X)),E=()=>p.on(L,A),P=()=>p.removeListener(L,A),I=new se({onWillAddFirstListener:E,onDidRemoveLastListener:P});return I.event}e.fromNodeEventEmitter=x;function S(p,L,C=A=>A){const A=(...X)=>I.fire(C(...X)),E=()=>p.addEventListener(L,A),P=()=>p.removeEventListener(L,A),I=new se({onWillAddFirstListener:E,onDidRemoveLastListener:P});return I.event}e.fromDOMEventEmitter=S;function N(p){return new Promise(L=>n(p)(L))}e.toPromise=N;function R(p){const L=new se;return p.then(C=>{L.fire(C)},()=>{L.fire(void 0)}).finally(()=>{L.dispose()}),L.event}e.fromPromise=R;function M(p,L,C){return L(C),p(A=>L(A))}e.runAndSubscribe=M;function k(p,L){let C=null;function A(P){C==null||C.dispose(),C=new we,L(P,C)}A(void 0);const E=p(P=>A(P));return We(()=>{E.dispose(),C==null||C.dispose()})}e.runAndSubscribeWithStore=k;class U{constructor(L,C){this._observable=L,this._counter=0,this._hasChanged=!1;const A={onWillAddFirstListener:()=>{L.addObserver(this)},onDidRemoveLastListener:()=>{L.removeObserver(this)}};this.emitter=new se(A),C&&C.add(this.emitter)}beginUpdate(L){this._counter++}handlePossibleChange(L){}handleChange(L,C){this._hasChanged=!0}endUpdate(L){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function j(p,L){return new U(p,L).emitter.event}e.fromObservable=j;function q(p){return(L,C,A)=>{let E=0,P=!1;const I={beginUpdate(){E++},endUpdate(){E--,E===0&&(p.reportChanges(),P&&(P=!1,L.call(C)))},handlePossibleChange(){},handleChange(){P=!0}};p.addObserver(I),p.reportChanges();const X={dispose(){p.removeObserver(I)}};return A instanceof we?A.add(X):Array.isArray(A)&&A.push(X),X}}e.fromObservableLight=q})(xt||(xt={}));class Me{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${Me._idPool++}`,Me.all.add(this)}start(t){this._stopWatch=new tt,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}}Me.all=new Set,Me._idPool=0;let jr=-1;class Qr{constructor(t,n=Math.random().toString(18).slice(2,5)){this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){var t;(t=this._stacks)===null||t===void 0||t.clear()}check(t,n){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const s=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let i,l=0;for(const[o,u]of this._stacks)(!i||l<u)&&(i=o,l=u);console.warn(`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${l}):`),console.warn(i)}return()=>{const i=this._stacks.get(t.value)||0;this._stacks.set(t.value,i-1)}}}class pt{static create(){var t;return new pt((t=new Error().stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
6
+ `).slice(2).join(`
7
+ `))}}class Lt{constructor(t){this.value=t}}const Xr=2;class se{constructor(t){var n,r,s,i,l;this._size=0,this._options=t,this._leakageMon=!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new Qr((s=(r=this._options)===null||r===void 0?void 0:r.leakWarningThreshold)!==null&&s!==void 0?s:jr):void 0,this._perfMon=!((i=this._options)===null||i===void 0)&&i._profName?new Me(this._options._profName):void 0,this._deliveryQueue=(l=this._options)===null||l===void 0?void 0:l.deliveryQueue}dispose(){var t,n,r,s;this._disposed||(this._disposed=!0,((t=this._deliveryQueue)===null||t===void 0?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(r=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||r===void 0||r.call(n),(s=this._leakageMon)===null||s===void 0||s.dispose())}get event(){var t;return(t=this._event)!==null&&t!==void 0||(this._event=(n,r,s)=>{var i,l,o,u,c;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),ze.None;if(this._disposed)return ze.None;r&&(n=n.bind(r));const h=new Lt(n);let f;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(h.stack=pt.create(),f=this._leakageMon.check(h.stack,this._size+1)),this._listeners?this._listeners instanceof Lt?((c=this._deliveryQueue)!==null&&c!==void 0||(this._deliveryQueue=new Jr),this._listeners=[this._listeners,h]):this._listeners.push(h):((l=(i=this._options)===null||i===void 0?void 0:i.onWillAddFirstListener)===null||l===void 0||l.call(i,this),this._listeners=h,(u=(o=this._options)===null||o===void 0?void 0:o.onDidAddFirstListener)===null||u===void 0||u.call(o,this)),this._size++;const m=We(()=>{f==null||f(),this._removeListener(h)});return s instanceof we?s.add(m):Array.isArray(s)&&s.push(m),m}),this._event}_removeListener(t){var n,r,s,i;if((r=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||r===void 0||r.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(i=(s=this._options)===null||s===void 0?void 0:s.onDidRemoveLastListener)===null||i===void 0||i.call(s,this),this._size=0;return}const l=this._listeners,o=l.indexOf(t);if(o===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,l[o]=void 0;const u=this._deliveryQueue.current===this;if(this._size*Xr<=l.length){let c=0;for(let h=0;h<l.length;h++)l[h]?l[c++]=l[h]:u&&(this._deliveryQueue.end--,c<this._deliveryQueue.i&&this._deliveryQueue.i--);l.length=c}}_deliver(t,n){var r;if(!t)return;const s=((r=this._options)===null||r===void 0?void 0:r.onListenerError)||Yt;if(!s){t.value(n);return}try{t.value(n)}catch(i){s(i)}}_deliverQueue(t){const n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){var n,r,s,i;if(!((n=this._deliveryQueue)===null||n===void 0)&&n.current&&(this._deliverQueue(this._deliveryQueue),(r=this._perfMon)===null||r===void 0||r.stop()),(s=this._perfMon)===null||s===void 0||s.start(this._size),this._listeners)if(this._listeners instanceof Lt)this._deliver(this._listeners,t);else{const l=this._deliveryQueue;l.enqueue(this,t,this._listeners.length),this._deliverQueue(l)}(i=this._perfMon)===null||i===void 0||i.stop()}hasListeners(){return this._size>0}}class Jr{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function Yr(e){return typeof e=="string"}function Zr(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function vt(e){const t=[];for(const n of Zr(e))typeof e[n]=="function"&&t.push(n);return t}function Kr(e,t){const n=s=>function(){const i=Array.prototype.slice.call(arguments,0);return t(s,i)},r={};for(const s of e)r[s]=n(s);return r}let es=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function ts(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(r,s)=>{const i=s[0],l=t[i];let o=r;return typeof l=="string"?o=l:(typeof l=="number"||typeof l=="boolean"||l===void 0||l===null)&&(o=String(l)),o}),es&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function W(e,t,...n){return ts(t,n)}function a1(e){}var wt;const Ee="en";let Nt=!1,St=!1,Ct=!1,nt,At=Ee,en=Ee,ns,ie;const Ne=globalThis;let J;typeof Ne.vscode<"u"&&typeof Ne.vscode.process<"u"?J=Ne.vscode.process:typeof process<"u"&&(J=process);const rs=typeof((wt=J==null?void 0:J.versions)===null||wt===void 0?void 0:wt.electron)=="string"&&(J==null?void 0:J.type)==="renderer";if(typeof navigator=="object"&&!rs)ie=navigator.userAgent,Nt=ie.indexOf("Windows")>=0,St=ie.indexOf("Macintosh")>=0,(ie.indexOf("Macintosh")>=0||ie.indexOf("iPad")>=0||ie.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Ct=ie.indexOf("Linux")>=0,(ie==null?void 0:ie.indexOf("Mobi"))>=0,W({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),nt=Ee,At=nt,en=navigator.language;else if(typeof J=="object"){Nt=J.platform==="win32",St=J.platform==="darwin",Ct=J.platform==="linux",Ct&&J.env.SNAP&&J.env.SNAP_REVISION,J.env.CI||J.env.BUILD_ARTIFACTSTAGINGDIRECTORY,nt=Ee,At=Ee;const e=J.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];nt=t.locale,en=t.osLocale,At=n||Ee,ns=t._translationsConfigFile}catch{}}else console.error("Unable to resolve platform.");const $e=Nt,ss=St,le=ie,is=typeof Ne.postMessage=="function"&&!Ne.importScripts;(()=>{if(is){const e=[];Ne.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,s=e.length;r<s;r++){const i=e[r];if(i.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),i.callback();return}}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),Ne.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();const as=!!(le&&le.indexOf("Chrome")>=0);le&&le.indexOf("Firefox")>=0,!as&&le&&le.indexOf("Safari")>=0,le&&le.indexOf("Edg/")>=0,le&&le.indexOf("Android")>=0;class ls{constructor(t){this.fn=t,this.lastCache=void 0,this.lastArgKey=void 0}get(t){const n=JSON.stringify(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(t)),this.lastCache}}class tn{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var ke;function os(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function us(e){return e.split(/\r\n|\r|\n/)}function cs(e){for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function hs(e,t=e.length-1){for(let n=t;n>=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function nn(e){return e>=65&&e<=90}function Rt(e){return 55296<=e&&e<=56319}function fs(e){return 56320<=e&&e<=57343}function ds(e,t){return(e-55296<<10)+(t-56320)+65536}function ms(e,t,n){const r=e.charCodeAt(n);if(Rt(r)&&n+1<t){const s=e.charCodeAt(n+1);if(fs(s))return ds(r,s)}return r}const gs=/^[\t\n\r\x20-\x7E]*$/;function bs(e){return gs.test(e)}class Se{static getInstance(t){return ke.cache.get(Array.from(t))}static getLocales(){return ke._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}ke=Se,Se.ambiguousCharacterData=new tn(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Se.cache=new ls(e=>{function t(c){const h=new Map;for(let f=0;f<c.length;f+=2)h.set(c[f],c[f+1]);return h}function n(c,h){const f=new Map(c);for(const[m,d]of h)f.set(m,d);return f}function r(c,h){if(!c)return h;const f=new Map;for(const[m,d]of c)h.has(m)&&f.set(m,d);return f}const s=ke.ambiguousCharacterData.value;let i=e.filter(c=>!c.startsWith("_")&&c in s);i.length===0&&(i=["_default"]);let l;for(const c of i){const h=t(s[c]);l=r(l,h)}const o=t(s._common),u=n(o,l);return new ke(u)}),Se._locales=new tn(()=>Object.keys(ke.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class de{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(de.getRawData())),this._data}static isInvisibleCharacter(t){return de.getData().has(t)}static get codePoints(){return de.getData()}}de._data=void 0;const _s="$initialize";class xs{constructor(t,n,r,s){this.vsWorker=t,this.req=n,this.method=r,this.args=s,this.type=0}}class rn{constructor(t,n,r,s){this.vsWorker=t,this.seq=n,this.res=r,this.err=s,this.type=1}}class ps{constructor(t,n,r,s){this.vsWorker=t,this.req=n,this.eventName=r,this.arg=s,this.type=2}}class Ls{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}}class vs{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class ws{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n){const r=String(++this._lastSentReq);return new Promise((s,i)=>{this._pendingReplies[r]={resolve:s,reject:i},this._send(new xs(this._workerId,r,t,n))})}listen(t,n){let r=null;const s=new se({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,s),this._send(new ps(this._workerId,r,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new vs(this._workerId,r)),r=null}});return s.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let r=t.err;t.err.$isError&&(r=new Error,r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack),n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){const n=t.req;this._handler.handleMessage(t.method,t.args).then(s=>{this._send(new rn(this._workerId,n,s,void 0))},s=>{s.detail instanceof Error&&(s.detail=Zt(s.detail)),this._send(new rn(this._workerId,n,void 0,Zt(s)))})}_handleSubscribeEventMessage(t){const n=t.req,r=this._handler.handleEvent(t.eventName,t.arg)(s=>{this._send(new Ls(this._workerId,n,s))});this._pendingEvents.set(n,r)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){const n=[];if(t.type===0)for(let r=0;r<t.args.length;r++)t.args[r]instanceof ArrayBuffer&&n.push(t.args[r]);else t.type===1&&t.res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(t,n)}}function sn(e){return e[0]==="o"&&e[1]==="n"&&nn(e.charCodeAt(2))}function an(e){return/^onDynamic/.test(e)&&nn(e.charCodeAt(9))}function Ns(e,t,n){const r=l=>function(){const o=Array.prototype.slice.call(arguments,0);return t(l,o)},s=l=>function(o){return n(l,o)},i={};for(const l of e){if(an(l)){i[l]=s(l);continue}if(sn(l)){i[l]=n(l,void 0);continue}i[l]=r(l)}return i}class Ss{constructor(t,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new ws({sendMessage:(r,s)=>{t(r,s)},handleMessage:(r,s)=>this._handleMessage(r,s),handleEvent:(r,s)=>this._handleEvent(r,s)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n){if(t===_s)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,n))}catch(r){return Promise.reject(r)}}_handleEvent(t,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(an(t)){const r=this._requestHandler[t].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return r}if(sn(t)){const r=this._requestHandler[t];if(typeof r!="function")throw new Error(`Missing event ${t} on request handler.`);return r}throw new Error(`Malformed event name ${t}`)}initialize(t,n,r,s){this._protocol.setWorkerId(t);const o=Ns(s,(u,c)=>this._protocol.sendMessage(u,c),(u,c)=>this._protocol.listen(u,c));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(vt(this._requestHandler))):(n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy!==void 0&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((u,c)=>{const h=globalThis.require;h([r],f=>{if(this._requestHandler=f.create(o),!this._requestHandler){c(new Error("No RequestHandler!"));return}u(vt(this._requestHandler))},c)}))}}class me{constructor(t,n,r,s){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=s}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function ln(e,t){return(t<<5)-t+e|0}function Cs(e,t){t=ln(149417,t);for(let n=0,r=e.length;n<r;n++)t=ln(e.charCodeAt(n),t);return t}class on{constructor(t){this.source=t}getElements(){const t=this.source,n=new Int32Array(t.length);for(let r=0,s=t.length;r<s;r++)n[r]=t.charCodeAt(r);return n}}function As(e,t,n){return new ge(new on(e),new on(t)).ComputeDiff(n).changes}class Pe{static Assert(t,n){if(!t)throw new Error(n)}}class Fe{static Copy(t,n,r,s,i){for(let l=0;l<i;l++)r[s+l]=t[n+l]}static Copy2(t,n,r,s,i){for(let l=0;l<i;l++)r[s+l]=t[n+l]}}class un{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new me(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class ge{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;const[s,i,l]=ge._getElements(t),[o,u,c]=ge._getElements(n);this._hasStrings=l&&c,this._originalStringElements=s,this._originalElementsOrHash=i,this._modifiedStringElements=o,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(ge._isStringArray(n)){const r=new Int32Array(n.length);for(let s=0,i=n.length;s<i;s++)r[s]=Cs(n[s],0);return[n,r,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(t,n){if(!this.ElementsAreEqual(t,n))return!1;const r=ge._getStrictElement(this._originalSequence,t),s=ge._getStrictElement(this._modifiedSequence,n);return r===s}static _getStrictElement(t,n){return typeof t.getStrictElement=="function"?t.getStrictElement(n):null}OriginalElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(t,n){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[n]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,n,r,s,i){const l=[!1];let o=this.ComputeDiffRecursive(t,n,r,s,l);return i&&(o=this.PrettifyChanges(o)),{quitEarly:l[0],changes:o}}ComputeDiffRecursive(t,n,r,s,i){for(i[0]=!1;t<=n&&r<=s&&this.ElementsAreEqual(t,r);)t++,r++;for(;n>=t&&s>=r&&this.ElementsAreEqual(n,s);)n--,s--;if(t>n||r>s){let f;return r<=s?(Pe.Assert(t===n+1,"originalStart should only be one more than originalEnd"),f=[new me(t,0,r,s-r+1)]):t<=n?(Pe.Assert(r===s+1,"modifiedStart should only be one more than modifiedEnd"),f=[new me(t,n-t+1,r,0)]):(Pe.Assert(t===n+1,"originalStart should only be one more than originalEnd"),Pe.Assert(r===s+1,"modifiedStart should only be one more than modifiedEnd"),f=[]),f}const l=[0],o=[0],u=this.ComputeRecursionPoint(t,n,r,s,l,o,i),c=l[0],h=o[0];if(u!==null)return u;if(!i[0]){const f=this.ComputeDiffRecursive(t,c,r,h,i);let m=[];return i[0]?m=[new me(c+1,n-(c+1)+1,h+1,s-(h+1)+1)]:m=this.ComputeDiffRecursive(c+1,n,h+1,s,i),this.ConcatenateChanges(f,m)}return[new me(t,n-t+1,r,s-r+1)]}WALKTRACE(t,n,r,s,i,l,o,u,c,h,f,m,d,g,b,v,w,_){let x=null,S=null,N=new un,R=n,M=r,k=d[0]-v[0]-s,U=-1073741824,j=this.m_forwardHistory.length-1;do{const q=k+t;q===R||q<M&&c[q-1]<c[q+1]?(f=c[q+1],g=f-k-s,f<U&&N.MarkNextChange(),U=f,N.AddModifiedElement(f+1,g),k=q+1-t):(f=c[q-1]+1,g=f-k-s,f<U&&N.MarkNextChange(),U=f-1,N.AddOriginalElement(f,g+1),k=q-1-t),j>=0&&(c=this.m_forwardHistory[j],t=c[0],R=1,M=c.length-1)}while(--j>=-1);if(x=N.getReverseChanges(),_[0]){let q=d[0]+1,p=v[0]+1;if(x!==null&&x.length>0){const L=x[x.length-1];q=Math.max(q,L.getOriginalEnd()),p=Math.max(p,L.getModifiedEnd())}S=[new me(q,m-q+1,p,b-p+1)]}else{N=new un,R=l,M=o,k=d[0]-v[0]-u,U=1073741824,j=w?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const q=k+i;q===R||q<M&&h[q-1]>=h[q+1]?(f=h[q+1]-1,g=f-k-u,f>U&&N.MarkNextChange(),U=f+1,N.AddOriginalElement(f+1,g+1),k=q+1-i):(f=h[q-1],g=f-k-u,f>U&&N.MarkNextChange(),U=f,N.AddModifiedElement(f+1,g+1),k=q-1-i),j>=0&&(h=this.m_reverseHistory[j],i=h[0],R=1,M=h.length-1)}while(--j>=-1);S=N.getChanges()}return this.ConcatenateChanges(x,S)}ComputeRecursionPoint(t,n,r,s,i,l,o){let u=0,c=0,h=0,f=0,m=0,d=0;t--,r--,i[0]=0,l[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=n-t+(s-r),b=g+1,v=new Int32Array(b),w=new Int32Array(b),_=s-r,x=n-t,S=t-r,N=n-s,M=(x-_)%2===0;v[_]=t,w[x]=n,o[0]=!1;for(let k=1;k<=g/2+1;k++){let U=0,j=0;h=this.ClipDiagonalBound(_-k,k,_,b),f=this.ClipDiagonalBound(_+k,k,_,b);for(let p=h;p<=f;p+=2){p===h||p<f&&v[p-1]<v[p+1]?u=v[p+1]:u=v[p-1]+1,c=u-(p-_)-S;const L=u;for(;u<n&&c<s&&this.ElementsAreEqual(u+1,c+1);)u++,c++;if(v[p]=u,u+c>U+j&&(U=u,j=c),!M&&Math.abs(p-x)<=k-1&&u>=w[p])return i[0]=u,l[0]=c,L<=w[p]&&k<=1448?this.WALKTRACE(_,h,f,S,x,m,d,N,v,w,u,n,i,c,s,l,M,o):null}const q=(U-t+(j-r)-k)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(U,q))return o[0]=!0,i[0]=U,l[0]=j,q>0&&k<=1448?this.WALKTRACE(_,h,f,S,x,m,d,N,v,w,u,n,i,c,s,l,M,o):(t++,r++,[new me(t,n-t+1,r,s-r+1)]);m=this.ClipDiagonalBound(x-k,k,x,b),d=this.ClipDiagonalBound(x+k,k,x,b);for(let p=m;p<=d;p+=2){p===m||p<d&&w[p-1]>=w[p+1]?u=w[p+1]-1:u=w[p-1],c=u-(p-x)-N;const L=u;for(;u>t&&c>r&&this.ElementsAreEqual(u,c);)u--,c--;if(w[p]=u,M&&Math.abs(p-_)<=k&&u<=v[p])return i[0]=u,l[0]=c,L>=v[p]&&k<=1448?this.WALKTRACE(_,h,f,S,x,m,d,N,v,w,u,n,i,c,s,l,M,o):null}if(k<=1447){let p=new Int32Array(f-h+2);p[0]=_-h+1,Fe.Copy2(v,h,p,1,f-h+1),this.m_forwardHistory.push(p),p=new Int32Array(d-m+2),p[0]=x-m+1,Fe.Copy2(w,m,p,1,d-m+1),this.m_reverseHistory.push(p)}}return this.WALKTRACE(_,h,f,S,x,m,d,N,v,w,u,n,i,c,s,l,M,o)}PrettifyChanges(t){for(let n=0;n<t.length;n++){const r=t[n],s=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,i=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,l=r.originalLength>0,o=r.modifiedLength>0;for(;r.originalStart+r.originalLength<s&&r.modifiedStart+r.modifiedLength<i&&(!l||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!o||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){const c=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!c)break;r.originalStart++,r.modifiedStart++}const u=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],u)){t[n]=u[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){const r=t[n];let s=0,i=0;if(n>0){const f=t[n-1];s=f.originalStart+f.originalLength,i=f.modifiedStart+f.modifiedLength}const l=r.originalLength>0,o=r.modifiedLength>0;let u=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let f=1;;f++){const m=r.originalStart-f,d=r.modifiedStart-f;if(m<s||d<i||l&&!this.OriginalElementsAreEqual(m,m+r.originalLength)||o&&!this.ModifiedElementsAreEqual(d,d+r.modifiedLength))break;const b=(m===s&&d===i?5:0)+this._boundaryScore(m,r.originalLength,d,r.modifiedLength);b>c&&(c=b,u=f)}r.originalStart-=u,r.modifiedStart-=u;const h=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],h)){t[n-1]=h[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n<r;n++){const s=t[n-1],i=t[n],l=i.originalStart-s.originalStart-s.originalLength,o=s.originalStart,u=i.originalStart+i.originalLength,c=u-o,h=s.modifiedStart,f=i.modifiedStart+i.modifiedLength,m=f-h;if(l<5&&c<20&&m<20){const d=this._findBetterContiguousSequence(o,c,h,m,l);if(d){const[g,b]=d;(g!==s.originalStart+s.originalLength||b!==s.modifiedStart+s.modifiedLength)&&(s.originalLength=g-s.originalStart,s.modifiedLength=b-s.modifiedStart,i.originalStart=g+l,i.modifiedStart=b+l,i.originalLength=u-i.originalStart,i.modifiedLength=f-i.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,r,s,i){if(n<i||s<i)return null;const l=t+n-i+1,o=r+s-i+1;let u=0,c=0,h=0;for(let f=t;f<l;f++)for(let m=r;m<o;m++){const d=this._contiguousSequenceScore(f,m,i);d>0&&d>u&&(u=d,c=f,h=m)}return u>0?[c,h]:null}_contiguousSequenceScore(t,n,r){let s=0;for(let i=0;i<r;i++){if(!this.ElementsAreEqual(t+i,n+i))return 0;s+=this._originalStringElements[t+i].length}return s}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,s){const i=this._OriginalRegionIsBoundary(t,n)?1:0,l=this._ModifiedRegionIsBoundary(r,s)?1:0;return i+l}ConcatenateChanges(t,n){const r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){const s=new Array(t.length+n.length-1);return Fe.Copy(t,0,s,0,t.length-1),s[t.length-1]=r[0],Fe.Copy(n,1,s,t.length,n.length-1),s}else{const s=new Array(t.length+n.length);return Fe.Copy(t,0,s,0,t.length),Fe.Copy(n,0,s,t.length,n.length),s}}ChangesOverlap(t,n,r){if(Pe.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),Pe.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const s=t.originalStart;let i=t.originalLength;const l=t.modifiedStart;let o=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(i=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new me(s,i,l,o),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,s){if(t>=0&&t<s)return t;const i=r,l=s-r-1,o=n%2===0;if(t<0){const u=i%2===0;return o===u?0:1}else{const u=l%2===0;return o===u?s-1:s-2}}}let De;const yt=globalThis.vscode;if(typeof yt<"u"&&typeof yt.process<"u"){const e=yt.process;De={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"?De={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:De={get platform(){return $e?"win32":ss?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const rt=De.cwd,Rs=De.env,ys=De.platform,Ms=65,Es=97,ks=90,Ps=122,be=46,Q=47,ee=92,_e=58,Fs=63;class cn extends Error{constructor(t,n,r){let s;typeof n=="string"&&n.indexOf("not ")===0?(s="must not be",n=n.replace(/^not /,"")):s="must be";const i=t.indexOf(".")!==-1?"property":"argument";let l=`The "${t}" ${i} ${s} of type ${n}`;l+=`. Received type ${typeof r}`,super(l),this.code="ERR_INVALID_ARG_TYPE"}}function Ds(e,t){if(e===null||typeof e!="object")throw new cn(t,"Object",e)}function $(e,t){if(typeof e!="string")throw new cn(t,"string",e)}const xe=ys==="win32";function F(e){return e===Q||e===ee}function Mt(e){return e===Q}function pe(e){return e>=Ms&&e<=ks||e>=Es&&e<=Ps}function st(e,t,n,r){let s="",i=0,l=-1,o=0,u=0;for(let c=0;c<=e.length;++c){if(c<e.length)u=e.charCodeAt(c);else{if(r(u))break;u=Q}if(r(u)){if(!(l===c-1||o===1))if(o===2){if(s.length<2||i!==2||s.charCodeAt(s.length-1)!==be||s.charCodeAt(s.length-2)!==be){if(s.length>2){const h=s.lastIndexOf(n);h===-1?(s="",i=0):(s=s.slice(0,h),i=s.length-1-s.lastIndexOf(n)),l=c,o=0;continue}else if(s.length!==0){s="",i=0,l=c,o=0;continue}}t&&(s+=s.length>0?`${n}..`:"..",i=2)}else s.length>0?s+=`${n}${e.slice(l+1,c)}`:s=e.slice(l+1,c),i=c-l-1;l=c,o=0}else u===be&&o!==-1?++o:o=-1}return s}function hn(e,t){Ds(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const K={resolve(...e){let t="",n="",r=!1;for(let s=e.length-1;s>=-1;s--){let i;if(s>=0){if(i=e[s],$(i,"path"),i.length===0)continue}else t.length===0?i=rt():(i=Rs[`=${t}`]||rt(),(i===void 0||i.slice(0,2).toLowerCase()!==t.toLowerCase()&&i.charCodeAt(2)===ee)&&(i=`${t}\\`));const l=i.length;let o=0,u="",c=!1;const h=i.charCodeAt(0);if(l===1)F(h)&&(o=1,c=!0);else if(F(h))if(c=!0,F(i.charCodeAt(1))){let f=2,m=f;for(;f<l&&!F(i.charCodeAt(f));)f++;if(f<l&&f!==m){const d=i.slice(m,f);for(m=f;f<l&&F(i.charCodeAt(f));)f++;if(f<l&&f!==m){for(m=f;f<l&&!F(i.charCodeAt(f));)f++;(f===l||f!==m)&&(u=`\\\\${d}\\${i.slice(m,f)}`,o=f)}}}else o=1;else pe(h)&&i.charCodeAt(1)===_e&&(u=i.slice(0,2),o=2,l>2&&F(i.charCodeAt(2))&&(c=!0,o=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${i.slice(o)}\\${n}`,r=c,c&&t.length>0)break}return n=st(n,!r,"\\",F),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){$(e,"path");const t=e.length;if(t===0)return".";let n=0,r,s=!1;const i=e.charCodeAt(0);if(t===1)return Mt(i)?"\\":e;if(F(i))if(s=!0,F(e.charCodeAt(1))){let o=2,u=o;for(;o<t&&!F(e.charCodeAt(o));)o++;if(o<t&&o!==u){const c=e.slice(u,o);for(u=o;o<t&&F(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&!F(e.charCodeAt(o));)o++;if(o===t)return`\\\\${c}\\${e.slice(u)}\\`;o!==u&&(r=`\\\\${c}\\${e.slice(u,o)}`,n=o)}}}else n=1;else pe(i)&&e.charCodeAt(1)===_e&&(r=e.slice(0,2),n=2,t>2&&F(e.charCodeAt(2))&&(s=!0,n=3));let l=n<t?st(e.slice(n),!s,"\\",F):"";return l.length===0&&!s&&(l="."),l.length>0&&F(e.charCodeAt(t-1))&&(l+="\\"),r===void 0?s?`\\${l}`:l:s?`${r}\\${l}`:`${r}${l}`},isAbsolute(e){$(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return F(n)||t>2&&pe(n)&&e.charCodeAt(1)===_e&&F(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let i=0;i<e.length;++i){const l=e[i];$(l,"path"),l.length>0&&(t===void 0?t=n=l:t+=`\\${l}`)}if(t===void 0)return".";let r=!0,s=0;if(typeof n=="string"&&F(n.charCodeAt(0))){++s;const i=n.length;i>1&&F(n.charCodeAt(1))&&(++s,i>2&&(F(n.charCodeAt(2))?++s:r=!1))}if(r){for(;s<t.length&&F(t.charCodeAt(s));)s++;s>=2&&(t=`\\${t.slice(s)}`)}return K.normalize(t)},relative(e,t){if($(e,"from"),$(t,"to"),e===t)return"";const n=K.resolve(e),r=K.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let s=0;for(;s<e.length&&e.charCodeAt(s)===ee;)s++;let i=e.length;for(;i-1>s&&e.charCodeAt(i-1)===ee;)i--;const l=i-s;let o=0;for(;o<t.length&&t.charCodeAt(o)===ee;)o++;let u=t.length;for(;u-1>o&&t.charCodeAt(u-1)===ee;)u--;const c=u-o,h=l<c?l:c;let f=-1,m=0;for(;m<h;m++){const g=e.charCodeAt(s+m);if(g!==t.charCodeAt(o+m))break;g===ee&&(f=m)}if(m!==h){if(f===-1)return r}else{if(c>h){if(t.charCodeAt(o+m)===ee)return r.slice(o+m+1);if(m===2)return r.slice(o+m)}l>h&&(e.charCodeAt(s+m)===ee?f=m:m===2&&(f=3)),f===-1&&(f=0)}let d="";for(m=s+f+1;m<=i;++m)(m===i||e.charCodeAt(m)===ee)&&(d+=d.length===0?"..":"\\..");return o+=f,d.length>0?`${d}${r.slice(o,u)}`:(r.charCodeAt(o)===ee&&++o,r.slice(o,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=K.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===ee){if(t.charCodeAt(1)===ee){const n=t.charCodeAt(2);if(n!==Fs&&n!==be)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(pe(t.charCodeAt(0))&&t.charCodeAt(1)===_e&&t.charCodeAt(2)===ee)return`\\\\?\\${t}`;return e},dirname(e){$(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const s=e.charCodeAt(0);if(t===1)return F(s)?e:".";if(F(s)){if(n=r=1,F(e.charCodeAt(1))){let o=2,u=o;for(;o<t&&!F(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&F(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&!F(e.charCodeAt(o));)o++;if(o===t)return e;o!==u&&(n=r=o+1)}}}}else pe(s)&&e.charCodeAt(1)===_e&&(n=t>2&&F(e.charCodeAt(2))?3:2,r=n);let i=-1,l=!0;for(let o=t-1;o>=r;--o)if(F(e.charCodeAt(o))){if(!l){i=o;break}}else l=!1;if(i===-1){if(n===-1)return".";i=n}return e.slice(0,i)},basename(e,t){t!==void 0&&$(t,"ext"),$(e,"path");let n=0,r=-1,s=!0,i;if(e.length>=2&&pe(e.charCodeAt(0))&&e.charCodeAt(1)===_e&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let l=t.length-1,o=-1;for(i=e.length-1;i>=n;--i){const u=e.charCodeAt(i);if(F(u)){if(!s){n=i+1;break}}else o===-1&&(s=!1,o=i+1),l>=0&&(u===t.charCodeAt(l)?--l===-1&&(r=i):(l=-1,r=o))}return n===r?r=o:r===-1&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=n;--i)if(F(e.charCodeAt(i))){if(!s){n=i+1;break}}else r===-1&&(s=!1,r=i+1);return r===-1?"":e.slice(n,r)},extname(e){$(e,"path");let t=0,n=-1,r=0,s=-1,i=!0,l=0;e.length>=2&&e.charCodeAt(1)===_e&&pe(e.charCodeAt(0))&&(t=r=2);for(let o=e.length-1;o>=t;--o){const u=e.charCodeAt(o);if(F(u)){if(!i){r=o+1;break}continue}s===-1&&(i=!1,s=o+1),u===be?n===-1?n=o:l!==1&&(l=1):n!==-1&&(l=-1)}return n===-1||s===-1||l===0||l===1&&n===s-1&&n===r+1?"":e.slice(n,s)},format:hn.bind(null,"\\"),parse(e){$(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let r=0,s=e.charCodeAt(0);if(n===1)return F(s)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(F(s)){if(r=1,F(e.charCodeAt(1))){let f=2,m=f;for(;f<n&&!F(e.charCodeAt(f));)f++;if(f<n&&f!==m){for(m=f;f<n&&F(e.charCodeAt(f));)f++;if(f<n&&f!==m){for(m=f;f<n&&!F(e.charCodeAt(f));)f++;f===n?r=f:f!==m&&(r=f+1)}}}}else if(pe(s)&&e.charCodeAt(1)===_e){if(n<=2)return t.root=t.dir=e,t;if(r=2,F(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let i=-1,l=r,o=-1,u=!0,c=e.length-1,h=0;for(;c>=r;--c){if(s=e.charCodeAt(c),F(s)){if(!u){l=c+1;break}continue}o===-1&&(u=!1,o=c+1),s===be?i===-1?i=c:h!==1&&(h=1):i!==-1&&(h=-1)}return o!==-1&&(i===-1||h===0||h===1&&i===o-1&&i===l+1?t.base=t.name=e.slice(l,o):(t.name=e.slice(l,i),t.base=e.slice(l,o),t.ext=e.slice(i,o))),l>0&&l!==r?t.dir=e.slice(0,l-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Ts=(()=>{if(xe){const e=/\\/g;return()=>{const t=rt().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>rt()})(),te={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const s=r>=0?e[r]:Ts();$(s,"path"),s.length!==0&&(t=`${s}/${t}`,n=s.charCodeAt(0)===Q)}return t=st(t,!n,"/",Mt),n?`/${t}`:t.length>0?t:"."},normalize(e){if($(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Q,n=e.charCodeAt(e.length-1)===Q;return e=st(e,!t,"/",Mt),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return $(e,"path"),e.length>0&&e.charCodeAt(0)===Q},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];$(r,"path"),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":te.normalize(t)},relative(e,t){if($(e,"from"),$(t,"to"),e===t||(e=te.resolve(e),t=te.resolve(t),e===t))return"";const n=1,r=e.length,s=r-n,i=1,l=t.length-i,o=s<l?s:l;let u=-1,c=0;for(;c<o;c++){const f=e.charCodeAt(n+c);if(f!==t.charCodeAt(i+c))break;f===Q&&(u=c)}if(c===o)if(l>o){if(t.charCodeAt(i+c)===Q)return t.slice(i+c+1);if(c===0)return t.slice(i+c)}else s>o&&(e.charCodeAt(n+c)===Q?u=c:c===0&&(u=0));let h="";for(c=n+u+1;c<=r;++c)(c===r||e.charCodeAt(c)===Q)&&(h+=h.length===0?"..":"/..");return`${h}${t.slice(i+u)}`},toNamespacedPath(e){return e},dirname(e){if($(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Q;let n=-1,r=!0;for(let s=e.length-1;s>=1;--s)if(e.charCodeAt(s)===Q){if(!r){n=s;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&$(t,"ext"),$(e,"path");let n=0,r=-1,s=!0,i;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let l=t.length-1,o=-1;for(i=e.length-1;i>=0;--i){const u=e.charCodeAt(i);if(u===Q){if(!s){n=i+1;break}}else o===-1&&(s=!1,o=i+1),l>=0&&(u===t.charCodeAt(l)?--l===-1&&(r=i):(l=-1,r=o))}return n===r?r=o:r===-1&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===Q){if(!s){n=i+1;break}}else r===-1&&(s=!1,r=i+1);return r===-1?"":e.slice(n,r)},extname(e){$(e,"path");let t=-1,n=0,r=-1,s=!0,i=0;for(let l=e.length-1;l>=0;--l){const o=e.charCodeAt(l);if(o===Q){if(!s){n=l+1;break}continue}r===-1&&(s=!1,r=l+1),o===be?t===-1?t=l:i!==1&&(i=1):t!==-1&&(i=-1)}return t===-1||r===-1||i===0||i===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:hn.bind(null,"/"),parse(e){$(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===Q;let r;n?(t.root="/",r=1):r=0;let s=-1,i=0,l=-1,o=!0,u=e.length-1,c=0;for(;u>=r;--u){const h=e.charCodeAt(u);if(h===Q){if(!o){i=u+1;break}continue}l===-1&&(o=!1,l=u+1),h===be?s===-1?s=u:c!==1&&(c=1):s!==-1&&(c=-1)}if(l!==-1){const h=i===0&&n?1:i;s===-1||c===0||c===1&&s===l-1&&s===i+1?t.base=t.name=e.slice(h,l):(t.name=e.slice(h,s),t.base=e.slice(h,l),t.ext=e.slice(s,l))}return i>0?t.dir=e.slice(0,i-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};te.win32=K.win32=K,te.posix=K.posix=te,xe?K.normalize:te.normalize,xe?K.resolve:te.resolve,xe?K.relative:te.relative,xe?K.dirname:te.dirname,xe?K.basename:te.basename,xe?K.extname:te.extname,xe?K.sep:te.sep;const Vs=/^\w[\w\d+.-]*$/,Bs=/^\//,qs=/^\/\//;function Is(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Vs.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!Bs.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(qs.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Us(e,t){return!e&&!t?"file":e}function Hs(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==ae&&(t=ae+t):t=ae;break}return t}const z="",ae="/",Ws=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Ce{static isUri(t){return t instanceof Ce?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,r,s,i,l=!1){typeof t=="object"?(this.scheme=t.scheme||z,this.authority=t.authority||z,this.path=t.path||z,this.query=t.query||z,this.fragment=t.fragment||z):(this.scheme=Us(t,l),this.authority=n||z,this.path=Hs(this.scheme,r||z),this.query=s||z,this.fragment=i||z,Is(this,l))}get fsPath(){return Et(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:s,query:i,fragment:l}=t;return n===void 0?n=this.scheme:n===null&&(n=z),r===void 0?r=this.authority:r===null&&(r=z),s===void 0?s=this.path:s===null&&(s=z),i===void 0?i=this.query:i===null&&(i=z),l===void 0?l=this.fragment:l===null&&(l=z),n===this.scheme&&r===this.authority&&s===this.path&&i===this.query&&l===this.fragment?this:new Te(n,r,s,i,l)}static parse(t,n=!1){const r=Ws.exec(t);return r?new Te(r[2]||z,it(r[4]||z),it(r[5]||z),it(r[7]||z),it(r[9]||z),n):new Te(z,z,z,z,z)}static file(t){let n=z;if($e&&(t=t.replace(/\\/g,ae)),t[0]===ae&&t[1]===ae){const r=t.indexOf(ae,2);r===-1?(n=t.substring(2),t=ae):(n=t.substring(2,r),t=t.substring(r)||ae)}return new Te("file",n,t,z,z)}static from(t,n){return new Te(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return $e&&t.scheme==="file"?r=Ce.file(K.join(Et(t,!0),...n)).path:r=te.join(t.path,...n),t.with({path:r})}toString(t=!1){return kt(this,t)}toJSON(){return this}static revive(t){var n,r;if(t){if(t instanceof Ce)return t;{const s=new Te(t);return s._formatted=(n=t.external)!==null&&n!==void 0?n:null,s._fsPath=t._sep===fn&&(r=t.fsPath)!==null&&r!==void 0?r:null,s}}else return t}}const fn=$e?1:void 0;class Te extends Ce{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Et(this,!1)),this._fsPath}toString(t=!1){return t?kt(this,!0):(this._formatted||(this._formatted=kt(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=fn),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const dn={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function mn(e,t,n){let r,s=-1;for(let i=0;i<e.length;i++){const l=e.charCodeAt(i);if(l>=97&&l<=122||l>=65&&l<=90||l>=48&&l<=57||l===45||l===46||l===95||l===126||t&&l===47||n&&l===91||n&&l===93||n&&l===58)s!==-1&&(r+=encodeURIComponent(e.substring(s,i)),s=-1),r!==void 0&&(r+=e.charAt(i));else{r===void 0&&(r=e.substr(0,i));const o=dn[l];o!==void 0?(s!==-1&&(r+=encodeURIComponent(e.substring(s,i)),s=-1),r+=o):s===-1&&(s=i)}}return s!==-1&&(r+=encodeURIComponent(e.substring(s))),r!==void 0?r:e}function zs(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=dn[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function Et(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,$e&&(n=n.replace(/\//g,"\\")),n}function kt(e,t){const n=t?zs:mn;let r="",{scheme:s,authority:i,path:l,query:o,fragment:u}=e;if(s&&(r+=s,r+=":"),(i||s==="file")&&(r+=ae,r+=ae),i){let c=i.indexOf("@");if(c!==-1){const h=i.substr(0,c);i=i.substr(c+1),c=h.lastIndexOf(":"),c===-1?r+=n(h,!1,!1):(r+=n(h.substr(0,c),!1,!1),r+=":",r+=n(h.substr(c+1),!1,!0)),r+="@"}i=i.toLowerCase(),c=i.lastIndexOf(":"),c===-1?r+=n(i,!1,!0):(r+=n(i.substr(0,c),!1,!0),r+=i.substr(c))}if(l){if(l.length>=3&&l.charCodeAt(0)===47&&l.charCodeAt(2)===58){const c=l.charCodeAt(1);c>=65&&c<=90&&(l=`/${String.fromCharCode(c+32)}:${l.substr(3)}`)}else if(l.length>=2&&l.charCodeAt(1)===58){const c=l.charCodeAt(0);c>=65&&c<=90&&(l=`${String.fromCharCode(c+32)}:${l.substr(2)}`)}r+=n(l,!0,!1)}return o&&(r+="?",r+=n(o,!1,!1)),u&&(r+="#",r+=t?u:mn(u,!1,!1)),r}function gn(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+gn(e.substr(3)):e}}const bn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function it(e){return e.match(bn)?e.replace(bn,t=>gn(t)):e}class Y{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new Y(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return Y.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return Y.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return Y.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){const r=t.lineNumber|0,s=n.lineNumber|0;if(r===s){const i=t.column|0,l=n.column|0;return i-l}return r-s}clone(){return new Y(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new Y(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}class T{constructor(t,n,r,s){t>r||t===r&&n>s?(this.startLineNumber=r,this.startColumn=s,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=s)}isEmpty(){return T.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return T.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return T.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return T.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return T.plusRange(this,t)}static plusRange(t,n){let r,s,i,l;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,s=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,s=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,s=t.startColumn),n.endLineNumber>t.endLineNumber?(i=n.endLineNumber,l=n.endColumn):n.endLineNumber===t.endLineNumber?(i=n.endLineNumber,l=Math.max(n.endColumn,t.endColumn)):(i=t.endLineNumber,l=t.endColumn),new T(r,s,i,l)}intersectRanges(t){return T.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,s=t.startColumn,i=t.endLineNumber,l=t.endColumn;const o=n.startLineNumber,u=n.startColumn,c=n.endLineNumber,h=n.endColumn;return r<o?(r=o,s=u):r===o&&(s=Math.max(s,u)),i>c?(i=c,l=h):i===c&&(l=Math.min(l,h)),r>i||r===i&&s>l?null:new T(r,s,i,l)}equalsRange(t){return T.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return T.getEndPosition(this)}static getEndPosition(t){return new Y(t.endLineNumber,t.endColumn)}getStartPosition(){return T.getStartPosition(this)}static getStartPosition(t){return new Y(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new T(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new T(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return T.collapseToStart(this)}static collapseToStart(t){return new T(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return T.collapseToEnd(this)}static collapseToEnd(t){return new T(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new T(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new T(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new T(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,n){if(t&&n){const i=t.startLineNumber|0,l=n.startLineNumber|0;if(i===l){const o=t.startColumn|0,u=n.startColumn|0;if(o===u){const c=t.endLineNumber|0,h=n.endLineNumber|0;if(c===h){const f=t.endColumn|0,m=n.endColumn|0;return f-m}return c-h}return o-u}return i-l}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}}function $s(e,t,n=(r,s)=>r===s){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,s=e.length;r<s;r++)if(!n(e[r],t[r]))return!1;return!0}function*Os(e,t){let n,r;for(const s of e)r!==void 0&&t(r,s)?n.push(s):(n&&(yield n),n=[s]),r=s;n&&(yield n)}function Gs(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function js(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function Qs(e,t){for(const n of t)e.push(n)}var _n;(function(e){function t(i){return i<0}e.isLessThan=t;function n(i){return i<=0}e.isLessThanOrEqual=n;function r(i){return i>0}e.isGreaterThan=r;function s(i){return i===0}e.isNeitherLessOrGreaterThan=s,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(_n||(_n={}));function at(e,t){return(n,r)=>t(e(n),e(r))}const lt=(e,t)=>e-t;function Xs(e){return(t,n)=>-e(t,n)}function xn(e){return e<0?0:e>255?255:e|0}function Ve(e){return e<0?0:e>4294967295?4294967295:e|0}class Js{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=Ve(t);const r=this.values,s=this.prefixSum,i=n.length;return i===0?!1:(this.values=new Uint32Array(r.length+i),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t),t+i),this.values.set(n,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=Ve(t),n=Ve(n),this.values[t]===n?!1:(this.values[t]=n,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,n){t=Ve(t),n=Ve(n);const r=this.values,s=this.prefixSum;if(t>=r.length)return!1;const i=r.length-t;return n>=i&&(n=i),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=Ve(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,r=this.values.length-1,s=0,i=0,l=0;for(;n<=r;)if(s=n+(r-n)/2|0,i=this.prefixSum[s],l=i-this.values[s],t<l)r=s-1;else if(t>=i)n=s+1;else break;return new Ys(s,t-l)}}class Ys{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class Zs{constructor(t,n,r,s){this._uri=t,this._lines=n,this._eol=r,this._versionId=s,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new Y(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let s=0;s<n;s++)r[s]=this._lines[s].length+t;this._lineStarts=new Js(r)}}_setLineText(t,n){this._lines[t]=n,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,n){if(n.length===0)return;const r=us(n);if(r.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}r[r.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]);const s=new Uint32Array(r.length-1);for(let i=1;i<r.length;i++)this._lines.splice(t.lineNumber+i-1,0,r[i]),s[i-1]=r[i].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,s)}}const Ks="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function ei(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of Ks)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const pn=ei();function Ln(e){let t=pn;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const vn=new Or;vn.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Pt(e,t,n,r,s){if(t=Ln(t),s||(s=et.first(vn)),n.length>s.maxLen){let c=e-s.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,e+s.maxLen/2),Pt(e,t,n,r,s)}const i=Date.now(),l=e-1-r;let o=-1,u=null;for(let c=1;!(Date.now()-i>=s.timeBudget);c++){const h=l-s.windowSize*c;t.lastIndex=Math.max(0,h);const f=ti(t,n,l,o);if(!f&&u||(u=f,h<=0))break;o=h}if(u){const c={word:u[0],startColumn:r+1+u.index,endColumn:r+1+u.index+u[0].length};return t.lastIndex=0,c}return null}function ti(e,t,n,r){let s;for(;s=e.exec(t);){const i=s.index||0;if(i<=n&&e.lastIndex>=n)return s;if(r>0&&i>r)return null}return null}class Ft{constructor(t){const n=xn(t);this._defaultValue=n,this._asciiMap=Ft._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const r=xn(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class ni{constructor(t,n,r){const s=new Uint8Array(t*n);for(let i=0,l=t*n;i<l;i++)s[i]=r;this._data=s,this.rows=t,this.cols=n}get(t,n){return this._data[t*this.cols+n]}set(t,n,r){this._data[t*this.cols+n]=r}}class ri{constructor(t){let n=0,r=0;for(let i=0,l=t.length;i<l;i++){const[o,u,c]=t[i];u>n&&(n=u),o>r&&(r=o),c>r&&(r=c)}n++,r++;const s=new ni(r,n,0);for(let i=0,l=t.length;i<l;i++){const[o,u,c]=t[i];s.set(o,u,c)}this._states=s,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?0:this._states.get(t,n)}}let Dt=null;function si(){return Dt===null&&(Dt=new ri([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Dt}let Oe=null;function ii(){if(Oe===null){Oe=new Ft(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;n<e.length;n++)Oe.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)Oe.set(t.charCodeAt(n),2)}return Oe}class ot{static _createLink(t,n,r,s,i){let l=i-1;do{const o=n.charCodeAt(l);if(t.get(o)!==2)break;l--}while(l>s);if(s>0){const o=n.charCodeAt(s-1),u=n.charCodeAt(l);(o===40&&u===41||o===91&&u===93||o===123&&u===125)&&l--}return{range:{startLineNumber:r,startColumn:s+1,endLineNumber:r,endColumn:l+2},url:n.substring(s,l+1)}}static computeLinks(t,n=si()){const r=ii(),s=[];for(let i=1,l=t.getLineCount();i<=l;i++){const o=t.getLineContent(i),u=o.length;let c=0,h=0,f=0,m=1,d=!1,g=!1,b=!1,v=!1;for(;c<u;){let w=!1;const _=o.charCodeAt(c);if(m===13){let x;switch(_){case 40:d=!0,x=0;break;case 41:x=d?0:1;break;case 91:b=!0,g=!0,x=0;break;case 93:b=!1,x=g?0:1;break;case 123:v=!0,x=0;break;case 125:x=v?0:1;break;case 39:case 34:case 96:f===_?x=1:f===39||f===34||f===96?x=0:x=1;break;case 42:x=f===42?1:0;break;case 124:x=f===124?1:0;break;case 32:x=b?0:1;break;default:x=r.get(_)}x===1&&(s.push(ot._createLink(r,o,i,h,c)),w=!0)}else if(m===12){let x;_===91?(g=!0,x=0):x=r.get(_),x===1?w=!0:m=13}else m=n.nextState(m,_),m===0&&(w=!0);w&&(m=1,d=!1,g=!1,v=!1,h=c+1,f=_),c++}m===13&&s.push(ot._createLink(r,o,i,h,u))}return s}}function ai(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:ot.computeLinks(e)}class Tt{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,n,r,s,i){if(t&&n){const l=this.doNavigateValueSet(n,i);if(l)return{range:t,value:l}}if(r&&s){const l=this.doNavigateValueSet(s,i);if(l)return{range:r,value:l}}return null}doNavigateValueSet(t,n){const r=this.numberReplace(t,n);return r!==null?r:this.textReplace(t,n)}numberReplace(t,n){const r=Math.pow(10,t.length-(t.lastIndexOf(".")+1));let s=Number(t);const i=parseFloat(t);return!isNaN(s)&&!isNaN(i)&&s===i?s===0&&!n?null:(s=Math.floor(s*r),s+=n?r:-r,String(s/r)):null}textReplace(t,n){return this.valueSetsReplace(this._defaultValueSet,t,n)}valueSetsReplace(t,n,r){let s=null;for(let i=0,l=t.length;s===null&&i<l;i++)s=this.valueSetReplace(t[i],n,r);return s}valueSetReplace(t,n,r){let s=t.indexOf(n);return s>=0?(s+=r?1:-1,s<0?s=t.length-1:s%=t.length,t[s]):null}}Tt.INSTANCE=new Tt;const wn=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var ut;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof ct?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:xt.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:wn})})(ut||(ut={}));class ct{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?wn:(this._emitter||(this._emitter=new se),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class li{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new ct),this._token}cancel(){this._token?this._token instanceof ct&&this._token.cancel():this._token=ut.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof ct&&this._token.dispose():this._token=ut.None}}class Vt{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const ht=new Vt,Bt=new Vt,qt=new Vt,oi=new Array(230),ui=Object.create(null),ci=Object.create(null);(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const s of t){const[i,l,o,u,c,h,f,m,d]=s;if(r[l]||(r[l]=!0,ui[o]=l,ci[o.toLowerCase()]=l),!n[u]){if(n[u]=!0,!c)throw new Error(`String representation missing for key code ${u} around scan code ${o}`);ht.define(u,c),Bt.define(u,m||c),qt.define(u,d||m||c)}h&&(oi[h]=u)}})();var Nn;(function(e){function t(o){return ht.keyCodeToStr(o)}e.toString=t;function n(o){return ht.strToKeyCode(o)}e.fromString=n;function r(o){return Bt.keyCodeToStr(o)}e.toUserSettingsUS=r;function s(o){return qt.keyCodeToStr(o)}e.toUserSettingsGeneral=s;function i(o){return Bt.strToKeyCode(o)||qt.strToKeyCode(o)}e.fromUserSettings=i;function l(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return ht.keyCodeToStr(o)}e.toElectronAccelerator=l})(Nn||(Nn={}));function hi(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class ne extends T{constructor(t,n,r,s){super(t,n,r,s),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=s}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return ne.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new ne(this.startLineNumber,this.startColumn,t,n):new ne(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new Y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new ne(t,n,this.endLineNumber,this.endColumn):new ne(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new ne(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new ne(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new ne(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new ne(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,s=t.length;r<s;r++)if(!this.selectionsEqual(t[r],n[r]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,r,s,i){return i===0?new ne(t,n,r,s):new ne(r,s,t,n)}}const Sn=Object.create(null);function a(e,t){if(Yr(t)){const n=Sn[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return Sn[e]=t,{id:e}}const y={add:a("add",6e4),plus:a("plus",6e4),gistNew:a("gist-new",6e4),repoCreate:a("repo-create",6e4),lightbulb:a("lightbulb",60001),lightBulb:a("light-bulb",60001),repo:a("repo",60002),repoDelete:a("repo-delete",60002),gistFork:a("gist-fork",60003),repoForked:a("repo-forked",60003),gitPullRequest:a("git-pull-request",60004),gitPullRequestAbandoned:a("git-pull-request-abandoned",60004),recordKeys:a("record-keys",60005),keyboard:a("keyboard",60005),tag:a("tag",60006),tagAdd:a("tag-add",60006),tagRemove:a("tag-remove",60006),gitPullRequestLabel:a("git-pull-request-label",60006),person:a("person",60007),personFollow:a("person-follow",60007),personOutline:a("person-outline",60007),personFilled:a("person-filled",60007),gitBranch:a("git-branch",60008),gitBranchCreate:a("git-branch-create",60008),gitBranchDelete:a("git-branch-delete",60008),sourceControl:a("source-control",60008),mirror:a("mirror",60009),mirrorPublic:a("mirror-public",60009),star:a("star",60010),starAdd:a("star-add",60010),starDelete:a("star-delete",60010),starEmpty:a("star-empty",60010),comment:a("comment",60011),commentAdd:a("comment-add",60011),alert:a("alert",60012),warning:a("warning",60012),search:a("search",60013),searchSave:a("search-save",60013),logOut:a("log-out",60014),signOut:a("sign-out",60014),logIn:a("log-in",60015),signIn:a("sign-in",60015),eye:a("eye",60016),eyeUnwatch:a("eye-unwatch",60016),eyeWatch:a("eye-watch",60016),circleFilled:a("circle-filled",60017),primitiveDot:a("primitive-dot",60017),closeDirty:a("close-dirty",60017),debugBreakpoint:a("debug-breakpoint",60017),debugBreakpointDisabled:a("debug-breakpoint-disabled",60017),debugHint:a("debug-hint",60017),primitiveSquare:a("primitive-square",60018),edit:a("edit",60019),pencil:a("pencil",60019),info:a("info",60020),issueOpened:a("issue-opened",60020),gistPrivate:a("gist-private",60021),gitForkPrivate:a("git-fork-private",60021),lock:a("lock",60021),mirrorPrivate:a("mirror-private",60021),close:a("close",60022),removeClose:a("remove-close",60022),x:a("x",60022),repoSync:a("repo-sync",60023),sync:a("sync",60023),clone:a("clone",60024),desktopDownload:a("desktop-download",60024),beaker:a("beaker",60025),microscope:a("microscope",60025),vm:a("vm",60026),deviceDesktop:a("device-desktop",60026),file:a("file",60027),fileText:a("file-text",60027),more:a("more",60028),ellipsis:a("ellipsis",60028),kebabHorizontal:a("kebab-horizontal",60028),mailReply:a("mail-reply",60029),reply:a("reply",60029),organization:a("organization",60030),organizationFilled:a("organization-filled",60030),organizationOutline:a("organization-outline",60030),newFile:a("new-file",60031),fileAdd:a("file-add",60031),newFolder:a("new-folder",60032),fileDirectoryCreate:a("file-directory-create",60032),trash:a("trash",60033),trashcan:a("trashcan",60033),history:a("history",60034),clock:a("clock",60034),folder:a("folder",60035),fileDirectory:a("file-directory",60035),symbolFolder:a("symbol-folder",60035),logoGithub:a("logo-github",60036),markGithub:a("mark-github",60036),github:a("github",60036),terminal:a("terminal",60037),console:a("console",60037),repl:a("repl",60037),zap:a("zap",60038),symbolEvent:a("symbol-event",60038),error:a("error",60039),stop:a("stop",60039),variable:a("variable",60040),symbolVariable:a("symbol-variable",60040),array:a("array",60042),symbolArray:a("symbol-array",60042),symbolModule:a("symbol-module",60043),symbolPackage:a("symbol-package",60043),symbolNamespace:a("symbol-namespace",60043),symbolObject:a("symbol-object",60043),symbolMethod:a("symbol-method",60044),symbolFunction:a("symbol-function",60044),symbolConstructor:a("symbol-constructor",60044),symbolBoolean:a("symbol-boolean",60047),symbolNull:a("symbol-null",60047),symbolNumeric:a("symbol-numeric",60048),symbolNumber:a("symbol-number",60048),symbolStructure:a("symbol-structure",60049),symbolStruct:a("symbol-struct",60049),symbolParameter:a("symbol-parameter",60050),symbolTypeParameter:a("symbol-type-parameter",60050),symbolKey:a("symbol-key",60051),symbolText:a("symbol-text",60051),symbolReference:a("symbol-reference",60052),goToFile:a("go-to-file",60052),symbolEnum:a("symbol-enum",60053),symbolValue:a("symbol-value",60053),symbolRuler:a("symbol-ruler",60054),symbolUnit:a("symbol-unit",60054),activateBreakpoints:a("activate-breakpoints",60055),archive:a("archive",60056),arrowBoth:a("arrow-both",60057),arrowDown:a("arrow-down",60058),arrowLeft:a("arrow-left",60059),arrowRight:a("arrow-right",60060),arrowSmallDown:a("arrow-small-down",60061),arrowSmallLeft:a("arrow-small-left",60062),arrowSmallRight:a("arrow-small-right",60063),arrowSmallUp:a("arrow-small-up",60064),arrowUp:a("arrow-up",60065),bell:a("bell",60066),bold:a("bold",60067),book:a("book",60068),bookmark:a("bookmark",60069),debugBreakpointConditionalUnverified:a("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:a("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:a("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:a("debug-breakpoint-data-unverified",60072),debugBreakpointData:a("debug-breakpoint-data",60073),debugBreakpointDataDisabled:a("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:a("debug-breakpoint-log-unverified",60074),debugBreakpointLog:a("debug-breakpoint-log",60075),debugBreakpointLogDisabled:a("debug-breakpoint-log-disabled",60075),briefcase:a("briefcase",60076),broadcast:a("broadcast",60077),browser:a("browser",60078),bug:a("bug",60079),calendar:a("calendar",60080),caseSensitive:a("case-sensitive",60081),check:a("check",60082),checklist:a("checklist",60083),chevronDown:a("chevron-down",60084),dropDownButton:a("drop-down-button",60084),chevronLeft:a("chevron-left",60085),chevronRight:a("chevron-right",60086),chevronUp:a("chevron-up",60087),chromeClose:a("chrome-close",60088),chromeMaximize:a("chrome-maximize",60089),chromeMinimize:a("chrome-minimize",60090),chromeRestore:a("chrome-restore",60091),circle:a("circle",60092),circleOutline:a("circle-outline",60092),debugBreakpointUnverified:a("debug-breakpoint-unverified",60092),circleSlash:a("circle-slash",60093),circuitBoard:a("circuit-board",60094),clearAll:a("clear-all",60095),clippy:a("clippy",60096),closeAll:a("close-all",60097),cloudDownload:a("cloud-download",60098),cloudUpload:a("cloud-upload",60099),code:a("code",60100),collapseAll:a("collapse-all",60101),colorMode:a("color-mode",60102),commentDiscussion:a("comment-discussion",60103),compareChanges:a("compare-changes",60157),creditCard:a("credit-card",60105),dash:a("dash",60108),dashboard:a("dashboard",60109),database:a("database",60110),debugContinue:a("debug-continue",60111),debugDisconnect:a("debug-disconnect",60112),debugPause:a("debug-pause",60113),debugRestart:a("debug-restart",60114),debugStart:a("debug-start",60115),debugStepInto:a("debug-step-into",60116),debugStepOut:a("debug-step-out",60117),debugStepOver:a("debug-step-over",60118),debugStop:a("debug-stop",60119),debug:a("debug",60120),deviceCameraVideo:a("device-camera-video",60121),deviceCamera:a("device-camera",60122),deviceMobile:a("device-mobile",60123),diffAdded:a("diff-added",60124),diffIgnored:a("diff-ignored",60125),diffModified:a("diff-modified",60126),diffRemoved:a("diff-removed",60127),diffRenamed:a("diff-renamed",60128),diff:a("diff",60129),discard:a("discard",60130),editorLayout:a("editor-layout",60131),emptyWindow:a("empty-window",60132),exclude:a("exclude",60133),extensions:a("extensions",60134),eyeClosed:a("eye-closed",60135),fileBinary:a("file-binary",60136),fileCode:a("file-code",60137),fileMedia:a("file-media",60138),filePdf:a("file-pdf",60139),fileSubmodule:a("file-submodule",60140),fileSymlinkDirectory:a("file-symlink-directory",60141),fileSymlinkFile:a("file-symlink-file",60142),fileZip:a("file-zip",60143),files:a("files",60144),filter:a("filter",60145),flame:a("flame",60146),foldDown:a("fold-down",60147),foldUp:a("fold-up",60148),fold:a("fold",60149),folderActive:a("folder-active",60150),folderOpened:a("folder-opened",60151),gear:a("gear",60152),gift:a("gift",60153),gistSecret:a("gist-secret",60154),gist:a("gist",60155),gitCommit:a("git-commit",60156),gitCompare:a("git-compare",60157),gitMerge:a("git-merge",60158),githubAction:a("github-action",60159),githubAlt:a("github-alt",60160),globe:a("globe",60161),grabber:a("grabber",60162),graph:a("graph",60163),gripper:a("gripper",60164),heart:a("heart",60165),home:a("home",60166),horizontalRule:a("horizontal-rule",60167),hubot:a("hubot",60168),inbox:a("inbox",60169),issueClosed:a("issue-closed",60324),issueReopened:a("issue-reopened",60171),issues:a("issues",60172),italic:a("italic",60173),jersey:a("jersey",60174),json:a("json",60175),bracket:a("bracket",60175),kebabVertical:a("kebab-vertical",60176),key:a("key",60177),law:a("law",60178),lightbulbAutofix:a("lightbulb-autofix",60179),linkExternal:a("link-external",60180),link:a("link",60181),listOrdered:a("list-ordered",60182),listUnordered:a("list-unordered",60183),liveShare:a("live-share",60184),loading:a("loading",60185),location:a("location",60186),mailRead:a("mail-read",60187),mail:a("mail",60188),markdown:a("markdown",60189),megaphone:a("megaphone",60190),mention:a("mention",60191),milestone:a("milestone",60192),gitPullRequestMilestone:a("git-pull-request-milestone",60192),mortarBoard:a("mortar-board",60193),move:a("move",60194),multipleWindows:a("multiple-windows",60195),mute:a("mute",60196),noNewline:a("no-newline",60197),note:a("note",60198),octoface:a("octoface",60199),openPreview:a("open-preview",60200),package:a("package",60201),paintcan:a("paintcan",60202),pin:a("pin",60203),play:a("play",60204),run:a("run",60204),plug:a("plug",60205),preserveCase:a("preserve-case",60206),preview:a("preview",60207),project:a("project",60208),pulse:a("pulse",60209),question:a("question",60210),quote:a("quote",60211),radioTower:a("radio-tower",60212),reactions:a("reactions",60213),references:a("references",60214),refresh:a("refresh",60215),regex:a("regex",60216),remoteExplorer:a("remote-explorer",60217),remote:a("remote",60218),remove:a("remove",60219),replaceAll:a("replace-all",60220),replace:a("replace",60221),repoClone:a("repo-clone",60222),repoForcePush:a("repo-force-push",60223),repoPull:a("repo-pull",60224),repoPush:a("repo-push",60225),report:a("report",60226),requestChanges:a("request-changes",60227),rocket:a("rocket",60228),rootFolderOpened:a("root-folder-opened",60229),rootFolder:a("root-folder",60230),rss:a("rss",60231),ruby:a("ruby",60232),saveAll:a("save-all",60233),saveAs:a("save-as",60234),save:a("save",60235),screenFull:a("screen-full",60236),screenNormal:a("screen-normal",60237),searchStop:a("search-stop",60238),server:a("server",60240),settingsGear:a("settings-gear",60241),settings:a("settings",60242),shield:a("shield",60243),smiley:a("smiley",60244),sortPrecedence:a("sort-precedence",60245),splitHorizontal:a("split-horizontal",60246),splitVertical:a("split-vertical",60247),squirrel:a("squirrel",60248),starFull:a("star-full",60249),starHalf:a("star-half",60250),symbolClass:a("symbol-class",60251),symbolColor:a("symbol-color",60252),symbolCustomColor:a("symbol-customcolor",60252),symbolConstant:a("symbol-constant",60253),symbolEnumMember:a("symbol-enum-member",60254),symbolField:a("symbol-field",60255),symbolFile:a("symbol-file",60256),symbolInterface:a("symbol-interface",60257),symbolKeyword:a("symbol-keyword",60258),symbolMisc:a("symbol-misc",60259),symbolOperator:a("symbol-operator",60260),symbolProperty:a("symbol-property",60261),wrench:a("wrench",60261),wrenchSubaction:a("wrench-subaction",60261),symbolSnippet:a("symbol-snippet",60262),tasklist:a("tasklist",60263),telescope:a("telescope",60264),textSize:a("text-size",60265),threeBars:a("three-bars",60266),thumbsdown:a("thumbsdown",60267),thumbsup:a("thumbsup",60268),tools:a("tools",60269),triangleDown:a("triangle-down",60270),triangleLeft:a("triangle-left",60271),triangleRight:a("triangle-right",60272),triangleUp:a("triangle-up",60273),twitter:a("twitter",60274),unfold:a("unfold",60275),unlock:a("unlock",60276),unmute:a("unmute",60277),unverified:a("unverified",60278),verified:a("verified",60279),versions:a("versions",60280),vmActive:a("vm-active",60281),vmOutline:a("vm-outline",60282),vmRunning:a("vm-running",60283),watch:a("watch",60284),whitespace:a("whitespace",60285),wholeWord:a("whole-word",60286),window:a("window",60287),wordWrap:a("word-wrap",60288),zoomIn:a("zoom-in",60289),zoomOut:a("zoom-out",60290),listFilter:a("list-filter",60291),listFlat:a("list-flat",60292),listSelection:a("list-selection",60293),selection:a("selection",60293),listTree:a("list-tree",60294),debugBreakpointFunctionUnverified:a("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:a("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:a("debug-breakpoint-function-disabled",60296),debugStackframeActive:a("debug-stackframe-active",60297),circleSmallFilled:a("circle-small-filled",60298),debugStackframeDot:a("debug-stackframe-dot",60298),debugStackframe:a("debug-stackframe",60299),debugStackframeFocused:a("debug-stackframe-focused",60299),debugBreakpointUnsupported:a("debug-breakpoint-unsupported",60300),symbolString:a("symbol-string",60301),debugReverseContinue:a("debug-reverse-continue",60302),debugStepBack:a("debug-step-back",60303),debugRestartFrame:a("debug-restart-frame",60304),callIncoming:a("call-incoming",60306),callOutgoing:a("call-outgoing",60307),menu:a("menu",60308),expandAll:a("expand-all",60309),feedback:a("feedback",60310),gitPullRequestReviewer:a("git-pull-request-reviewer",60310),groupByRefType:a("group-by-ref-type",60311),ungroupByRefType:a("ungroup-by-ref-type",60312),account:a("account",60313),gitPullRequestAssignee:a("git-pull-request-assignee",60313),bellDot:a("bell-dot",60314),debugConsole:a("debug-console",60315),library:a("library",60316),output:a("output",60317),runAll:a("run-all",60318),syncIgnored:a("sync-ignored",60319),pinned:a("pinned",60320),githubInverted:a("github-inverted",60321),debugAlt:a("debug-alt",60305),serverProcess:a("server-process",60322),serverEnvironment:a("server-environment",60323),pass:a("pass",60324),stopCircle:a("stop-circle",60325),playCircle:a("play-circle",60326),record:a("record",60327),debugAltSmall:a("debug-alt-small",60328),vmConnect:a("vm-connect",60329),cloud:a("cloud",60330),merge:a("merge",60331),exportIcon:a("export",60332),graphLeft:a("graph-left",60333),magnet:a("magnet",60334),notebook:a("notebook",60335),redo:a("redo",60336),checkAll:a("check-all",60337),pinnedDirty:a("pinned-dirty",60338),passFilled:a("pass-filled",60339),circleLargeFilled:a("circle-large-filled",60340),circleLarge:a("circle-large",60341),circleLargeOutline:a("circle-large-outline",60341),combine:a("combine",60342),gather:a("gather",60342),table:a("table",60343),variableGroup:a("variable-group",60344),typeHierarchy:a("type-hierarchy",60345),typeHierarchySub:a("type-hierarchy-sub",60346),typeHierarchySuper:a("type-hierarchy-super",60347),gitPullRequestCreate:a("git-pull-request-create",60348),runAbove:a("run-above",60349),runBelow:a("run-below",60350),notebookTemplate:a("notebook-template",60351),debugRerun:a("debug-rerun",60352),workspaceTrusted:a("workspace-trusted",60353),workspaceUntrusted:a("workspace-untrusted",60354),workspaceUnspecified:a("workspace-unspecified",60355),terminalCmd:a("terminal-cmd",60356),terminalDebian:a("terminal-debian",60357),terminalLinux:a("terminal-linux",60358),terminalPowershell:a("terminal-powershell",60359),terminalTmux:a("terminal-tmux",60360),terminalUbuntu:a("terminal-ubuntu",60361),terminalBash:a("terminal-bash",60362),arrowSwap:a("arrow-swap",60363),copy:a("copy",60364),personAdd:a("person-add",60365),filterFilled:a("filter-filled",60366),wand:a("wand",60367),debugLineByLine:a("debug-line-by-line",60368),inspect:a("inspect",60369),layers:a("layers",60370),layersDot:a("layers-dot",60371),layersActive:a("layers-active",60372),compass:a("compass",60373),compassDot:a("compass-dot",60374),compassActive:a("compass-active",60375),azure:a("azure",60376),issueDraft:a("issue-draft",60377),gitPullRequestClosed:a("git-pull-request-closed",60378),gitPullRequestDraft:a("git-pull-request-draft",60379),debugAll:a("debug-all",60380),debugCoverage:a("debug-coverage",60381),runErrors:a("run-errors",60382),folderLibrary:a("folder-library",60383),debugContinueSmall:a("debug-continue-small",60384),beakerStop:a("beaker-stop",60385),graphLine:a("graph-line",60386),graphScatter:a("graph-scatter",60387),pieChart:a("pie-chart",60388),bracketDot:a("bracket-dot",60389),bracketError:a("bracket-error",60390),lockSmall:a("lock-small",60391),azureDevops:a("azure-devops",60392),verifiedFilled:a("verified-filled",60393),newLine:a("newline",60394),layout:a("layout",60395),layoutActivitybarLeft:a("layout-activitybar-left",60396),layoutActivitybarRight:a("layout-activitybar-right",60397),layoutPanelLeft:a("layout-panel-left",60398),layoutPanelCenter:a("layout-panel-center",60399),layoutPanelJustify:a("layout-panel-justify",60400),layoutPanelRight:a("layout-panel-right",60401),layoutPanel:a("layout-panel",60402),layoutSidebarLeft:a("layout-sidebar-left",60403),layoutSidebarRight:a("layout-sidebar-right",60404),layoutStatusbar:a("layout-statusbar",60405),layoutMenubar:a("layout-menubar",60406),layoutCentered:a("layout-centered",60407),layoutSidebarRightOff:a("layout-sidebar-right-off",60416),layoutPanelOff:a("layout-panel-off",60417),layoutSidebarLeftOff:a("layout-sidebar-left-off",60418),target:a("target",60408),indent:a("indent",60409),recordSmall:a("record-small",60410),errorSmall:a("error-small",60411),arrowCircleDown:a("arrow-circle-down",60412),arrowCircleLeft:a("arrow-circle-left",60413),arrowCircleRight:a("arrow-circle-right",60414),arrowCircleUp:a("arrow-circle-up",60415),heartFilled:a("heart-filled",60420),map:a("map",60421),mapFilled:a("map-filled",60422),circleSmall:a("circle-small",60423),bellSlash:a("bell-slash",60424),bellSlashDot:a("bell-slash-dot",60425),commentUnresolved:a("comment-unresolved",60426),gitPullRequestGoToChanges:a("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:a("git-pull-request-new-changes",60428),searchFuzzy:a("search-fuzzy",60429),commentDraft:a("comment-draft",60430),send:a("send",60431),sparkle:a("sparkle",60432),insert:a("insert",60433),mic:a("mic",60434),thumbsDownFilled:a("thumbsdown-filled",60435),thumbsUpFilled:a("thumbsup-filled",60436),coffee:a("coffee",60437),snake:a("snake",60438),game:a("game",60439),vr:a("vr",60440),chip:a("chip",60441),piano:a("piano",60442),music:a("music",60443),micFilled:a("mic-filled",60444),gitFetch:a("git-fetch",60445),copilot:a("copilot",60446),lightbulbSparkle:a("lightbulb-sparkle",60447),lightbulbSparkleAutofix:a("lightbulb-sparkle-autofix",60447),robot:a("robot",60448),sparkleFilled:a("sparkle-filled",60449),diffSingle:a("diff-single",60450),diffMultiple:a("diff-multiple",60451),dialogError:a("dialog-error","error"),dialogWarning:a("dialog-warning","warning"),dialogInfo:a("dialog-info","info"),dialogClose:a("dialog-close","close"),treeItemExpanded:a("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:a("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:a("tree-filter-on-type-off","list-selection"),treeFilterClear:a("tree-filter-clear","close"),treeItemLoading:a("tree-item-loading","loading"),menuSelection:a("menu-selection","check"),menuSubmenu:a("menu-submenu","chevron-right"),menuBarMore:a("menubar-more","more"),scrollbarButtonLeft:a("scrollbar-button-left","triangle-left"),scrollbarButtonRight:a("scrollbar-button-right","triangle-right"),scrollbarButtonUp:a("scrollbar-button-up","triangle-up"),scrollbarButtonDown:a("scrollbar-button-down","triangle-down"),toolBarMore:a("toolbar-more","more"),quickInputBack:a("quick-input-back","arrow-left")};class fi{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new se,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,n){return this._tokenizationSupports.set(t,n),this.handleChange([t]),We(()=>{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){var r;(r=this._factories.get(t))===null||r===void 0||r.dispose();const s=new di(this,t,n);return this._factories.set(t,s),We(()=>{const i=this._factories.get(t);!i||i!==s||(this._factories.delete(t),i.dispose())})}async getOrCreate(t){const n=this.get(t);if(n)return n;const r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;const r=this._factories.get(t);return!!(!r||r.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class di extends ze{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}}class mi{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Cn;(function(e){const t=new Map;t.set(0,y.symbolMethod),t.set(1,y.symbolFunction),t.set(2,y.symbolConstructor),t.set(3,y.symbolField),t.set(4,y.symbolVariable),t.set(5,y.symbolClass),t.set(6,y.symbolStruct),t.set(7,y.symbolInterface),t.set(8,y.symbolModule),t.set(9,y.symbolProperty),t.set(10,y.symbolEvent),t.set(11,y.symbolOperator),t.set(12,y.symbolUnit),t.set(13,y.symbolValue),t.set(15,y.symbolEnum),t.set(14,y.symbolConstant),t.set(15,y.symbolEnum),t.set(16,y.symbolEnumMember),t.set(17,y.symbolKeyword),t.set(27,y.symbolSnippet),t.set(18,y.symbolText),t.set(19,y.symbolColor),t.set(20,y.symbolFile),t.set(21,y.symbolReference),t.set(22,y.symbolCustomColor),t.set(23,y.symbolFolder),t.set(24,y.symbolTypeParameter),t.set(25,y.account),t.set(26,y.issues);function n(i){let l=t.get(i);return l||(console.info("No codicon found for CompletionItemKind "+i),l=y.symbolProperty),l}e.toIcon=n;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function s(i,l){let o=r.get(i);return typeof o>"u"&&!l&&(o=9),o}e.fromString=s})(Cn||(Cn={}));var An;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(An||(An={}));var Rn;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Rn||(Rn={}));var yn;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(yn||(yn={})),W("Array","array"),W("Boolean","boolean"),W("Class","class"),W("Constant","constant"),W("Constructor","constructor"),W("Enum","enumeration"),W("EnumMember","enumeration member"),W("Event","event"),W("Field","field"),W("File","file"),W("Function","function"),W("Interface","interface"),W("Key","key"),W("Method","method"),W("Module","module"),W("Namespace","namespace"),W("Null","null"),W("Number","number"),W("Object","object"),W("Operator","operator"),W("Package","package"),W("Property","property"),W("String","string"),W("Struct","struct"),W("TypeParameter","type parameter"),W("Variable","variable");var Mn;(function(e){const t=new Map;t.set(0,y.symbolFile),t.set(1,y.symbolModule),t.set(2,y.symbolNamespace),t.set(3,y.symbolPackage),t.set(4,y.symbolClass),t.set(5,y.symbolMethod),t.set(6,y.symbolProperty),t.set(7,y.symbolField),t.set(8,y.symbolConstructor),t.set(9,y.symbolEnum),t.set(10,y.symbolInterface),t.set(11,y.symbolFunction),t.set(12,y.symbolVariable),t.set(13,y.symbolConstant),t.set(14,y.symbolString),t.set(15,y.symbolNumber),t.set(16,y.symbolBoolean),t.set(17,y.symbolArray),t.set(18,y.symbolObject),t.set(19,y.symbolKey),t.set(20,y.symbolNull),t.set(21,y.symbolEnumMember),t.set(22,y.symbolStruct),t.set(23,y.symbolEvent),t.set(24,y.symbolOperator),t.set(25,y.symbolTypeParameter);function n(r){let s=t.get(r);return s||(console.info("No codicon found for SymbolKind "+r),s=y.symbolProperty),s}e.toIcon=n})(Mn||(Mn={}));var En;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(En||(En={}));var kn;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(kn||(kn={})),new fi;var Pn;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(Pn||(Pn={}));var Fn;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Fn||(Fn={}));var Dn;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(Dn||(Dn={}));var Tn;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(Tn||(Tn={}));var Vn;(function(e){e[e.Deprecated=1]="Deprecated"})(Vn||(Vn={}));var Bn;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Bn||(Bn={}));var qn;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(qn||(qn={}));var In;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(In||(In={}));var Un;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Un||(Un={}));var Hn;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Hn||(Hn={}));var Wn;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(Wn||(Wn={}));var zn;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.letterSpacing=63]="letterSpacing",e[e.lightbulb=64]="lightbulb",e[e.lineDecorationsWidth=65]="lineDecorationsWidth",e[e.lineHeight=66]="lineHeight",e[e.lineNumbers=67]="lineNumbers",e[e.lineNumbersMinChars=68]="lineNumbersMinChars",e[e.linkedEditing=69]="linkedEditing",e[e.links=70]="links",e[e.matchBrackets=71]="matchBrackets",e[e.minimap=72]="minimap",e[e.mouseStyle=73]="mouseStyle",e[e.mouseWheelScrollSensitivity=74]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=75]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=76]="multiCursorMergeOverlapping",e[e.multiCursorModifier=77]="multiCursorModifier",e[e.multiCursorPaste=78]="multiCursorPaste",e[e.multiCursorLimit=79]="multiCursorLimit",e[e.occurrencesHighlight=80]="occurrencesHighlight",e[e.overviewRulerBorder=81]="overviewRulerBorder",e[e.overviewRulerLanes=82]="overviewRulerLanes",e[e.padding=83]="padding",e[e.pasteAs=84]="pasteAs",e[e.parameterHints=85]="parameterHints",e[e.peekWidgetDefaultFocus=86]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=87]="definitionLinkOpensInPeek",e[e.quickSuggestions=88]="quickSuggestions",e[e.quickSuggestionsDelay=89]="quickSuggestionsDelay",e[e.readOnly=90]="readOnly",e[e.readOnlyMessage=91]="readOnlyMessage",e[e.renameOnType=92]="renameOnType",e[e.renderControlCharacters=93]="renderControlCharacters",e[e.renderFinalNewline=94]="renderFinalNewline",e[e.renderLineHighlight=95]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=96]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=97]="renderValidationDecorations",e[e.renderWhitespace=98]="renderWhitespace",e[e.revealHorizontalRightPadding=99]="revealHorizontalRightPadding",e[e.roundedSelection=100]="roundedSelection",e[e.rulers=101]="rulers",e[e.scrollbar=102]="scrollbar",e[e.scrollBeyondLastColumn=103]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=104]="scrollBeyondLastLine",e[e.scrollPredominantAxis=105]="scrollPredominantAxis",e[e.selectionClipboard=106]="selectionClipboard",e[e.selectionHighlight=107]="selectionHighlight",e[e.selectOnLineNumbers=108]="selectOnLineNumbers",e[e.showFoldingControls=109]="showFoldingControls",e[e.showUnused=110]="showUnused",e[e.snippetSuggestions=111]="snippetSuggestions",e[e.smartSelect=112]="smartSelect",e[e.smoothScrolling=113]="smoothScrolling",e[e.stickyScroll=114]="stickyScroll",e[e.stickyTabStops=115]="stickyTabStops",e[e.stopRenderingLineAfter=116]="stopRenderingLineAfter",e[e.suggest=117]="suggest",e[e.suggestFontSize=118]="suggestFontSize",e[e.suggestLineHeight=119]="suggestLineHeight",e[e.suggestOnTriggerCharacters=120]="suggestOnTriggerCharacters",e[e.suggestSelection=121]="suggestSelection",e[e.tabCompletion=122]="tabCompletion",e[e.tabIndex=123]="tabIndex",e[e.unicodeHighlighting=124]="unicodeHighlighting",e[e.unusualLineTerminators=125]="unusualLineTerminators",e[e.useShadowDOM=126]="useShadowDOM",e[e.useTabStops=127]="useTabStops",e[e.wordBreak=128]="wordBreak",e[e.wordSeparators=129]="wordSeparators",e[e.wordWrap=130]="wordWrap",e[e.wordWrapBreakAfterCharacters=131]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=132]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=133]="wordWrapColumn",e[e.wordWrapOverride1=134]="wordWrapOverride1",e[e.wordWrapOverride2=135]="wordWrapOverride2",e[e.wrappingIndent=136]="wrappingIndent",e[e.wrappingStrategy=137]="wrappingStrategy",e[e.showDeprecated=138]="showDeprecated",e[e.inlayHints=139]="inlayHints",e[e.editorClassName=140]="editorClassName",e[e.pixelRatio=141]="pixelRatio",e[e.tabFocusMode=142]="tabFocusMode",e[e.layoutInfo=143]="layoutInfo",e[e.wrappingInfo=144]="wrappingInfo",e[e.defaultColorDecorators=145]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=146]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=147]="inlineCompletionsAccessibilityVerbose"})(zn||(zn={}));var $n;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})($n||($n={}));var On;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(On||(On={}));var Gn;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(Gn||(Gn={}));var jn;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(jn||(jn={}));var Qn;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Qn||(Qn={}));var Xn;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Xn||(Xn={}));var Jn;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Jn||(Jn={}));var It;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(It||(It={}));var Ut;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(Ut||(Ut={}));var Ht;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(Ht||(Ht={}));var Yn;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Yn||(Yn={}));var Zn;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Zn||(Zn={}));var Kn;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(Kn||(Kn={}));var er;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(er||(er={}));var tr;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(tr||(tr={}));var nr;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(nr||(nr={}));var rr;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(rr||(rr={}));var sr;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(sr||(sr={}));var ir;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(ir||(ir={}));var Wt;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(Wt||(Wt={}));var ar;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(ar||(ar={}));var lr;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(lr||(lr={}));var or;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(or||(or={}));var ur;(function(e){e[e.Deprecated=1]="Deprecated"})(ur||(ur={}));var cr;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(cr||(cr={}));var hr;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(hr||(hr={}));var fr;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(fr||(fr={}));var dr;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(dr||(dr={}));class Ge{static chord(t,n){return hi(t,n)}}Ge.CtrlCmd=2048,Ge.Shift=1024,Ge.Alt=512,Ge.WinCtrl=256;function gi(){return{editor:void 0,languages:void 0,CancellationTokenSource:li,Emitter:se,KeyCode:It,KeyMod:Ge,Position:Y,Range:T,Selection:ne,SelectionDirection:Wt,MarkerSeverity:Ut,MarkerTag:Ht,Uri:Ce,Token:mi}}var mr;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(mr||(mr={}));var gr;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(gr||(gr={}));var br;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(br||(br={}));var _r;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(_r||(_r={}));function bi(e,t,n,r,s){if(r===0)return!0;const i=t.charCodeAt(r-1);if(e.get(i)!==0||i===13||i===10)return!0;if(s>0){const l=t.charCodeAt(r);if(e.get(l)!==0)return!0}return!1}function _i(e,t,n,r,s){if(r+s===n)return!0;const i=t.charCodeAt(r+s);if(e.get(i)!==0||i===13||i===10)return!0;if(s>0){const l=t.charCodeAt(r+s-1);if(e.get(l)!==0)return!0}return!1}function xi(e,t,n,r,s){return bi(e,t,n,r,s)&&_i(e,t,n,r,s)}class pi{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){const n=t.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;const s=r.index,i=r[0].length;if(s===this._prevMatchStartIndex&&i===this._prevMatchLength){if(i===0){ms(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=s,this._prevMatchLength=i,!this._wordSeparators||xi(this._wordSeparators,t,n,s,i))return r}while(r);return null}}function Li(e,t="Unreachable"){throw new Error(t)}function ft(e){if(!e()){debugger;e(),Yt(new fe("Assertion Failed"))}}function xr(e,t){let n=0;for(;n<e.length-1;){const r=e[n],s=e[n+1];if(!t(r,s))return!1;n++}return!0}class vi{static computeUnicodeHighlights(t,n,r){const s=r?r.startLineNumber:1,i=r?r.endLineNumber:t.getLineCount(),l=new pr(n),o=l.getCandidateCodePoints();let u;o==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${wi(Array.from(o))}`,"g");const c=new pi(null,u),h=[];let f=!1,m,d=0,g=0,b=0;e:for(let v=s,w=i;v<=w;v++){const _=t.getLineContent(v),x=_.length;c.reset(0);do if(m=c.next(_),m){let S=m.index,N=m.index+m[0].length;if(S>0){const U=_.charCodeAt(S-1);Rt(U)&&S--}if(N+1<x){const U=_.charCodeAt(N-1);Rt(U)&&N++}const R=_.substring(S,N);let M=Pt(S+1,pn,_,0);M&&M.endColumn<=S+1&&(M=null);const k=l.shouldHighlightNonBasicASCII(R,M?M.word:null);if(k!==0){if(k===3?d++:k===2?g++:k===1?b++:Li(),h.length>=1e3){f=!0;break e}h.push(new T(v,S+1,v,N+1))}}while(m)}return{ranges:h,hasMore:f,ambiguousCharacterCount:d,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:b}}static computeUnicodeHighlightReason(t,n){const r=new pr(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=t.codePointAt(0),l=r.ambiguousCharacters.getPrimaryConfusable(i),o=Se.getLocales().filter(u=>!Se.getInstance(new Set([...n.allowedLocales,u])).isAmbiguous(i));return{kind:0,confusableWith:String.fromCodePoint(l),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function wi(e,t){return`[${os(e.map(r=>String.fromCodePoint(r)).join(""))}]`}class pr{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=Se.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of de.codePoints)Lr(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const r=t.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let s=!1,i=!1;if(n)for(const l of n){const o=l.codePointAt(0),u=bs(l);s=s||u,!u&&!this.ambiguousCharacters.isAmbiguous(o)&&!de.isInvisibleCharacter(o)&&(i=!0)}return!s&&i?0:this.options.invisibleCharacters&&!Lr(t)&&de.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Lr(e){return e===" "||e===`
8
+ `||e===" "}class dt{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}}class Ni{constructor(t,n){this.lineRangeMapping=t,this.changes=n}}class D{static addRange(t,n){let r=0;for(;r<n.length&&n[r].endExclusive<t.start;)r++;let s=r;for(;s<n.length&&n[s].start<=t.endExclusive;)s++;if(r===s)n.splice(r,0,t);else{const i=Math.min(t.start,n[r].start),l=Math.max(t.endExclusive,n[s-1].endExclusive);n.splice(r,s-r,new D(i,l))}}static tryCreate(t,n){if(!(t>n))return new D(t,n)}static ofLength(t){return new D(0,t)}static ofStartAndLength(t,n){return new D(t,t+n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new fe(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new D(this.start+t,this.endExclusive+t)}deltaStart(t){return new D(this.start+t,this.endExclusive)}deltaEnd(t){return new D(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(t){return this.start===t.start&&this.endExclusive===t.endExclusive}containsRange(t){return this.start<=t.start&&t.endExclusive<=this.endExclusive}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new D(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);if(n<=r)return new D(n,r)}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new fe(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new fe(`Invalid clipping range: ${this.toString()}`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let n=this.start;n<this.endExclusive;n++)t(n)}}function Be(e,t){const n=je(e,t);return n===-1?void 0:e[n]}function je(e,t,n=0,r=e.length){let s=n,i=r;for(;s<i;){const l=Math.floor((s+i)/2);t(e[l])?s=l+1:i=l}return s-1}function Si(e,t){const n=zt(e,t);return n===e.length?void 0:e[n]}function zt(e,t,n=0,r=e.length){let s=n,i=r;for(;s<i;){const l=Math.floor((s+i)/2);t(e[l])?i=l:s=l+1}return s}class Qe{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(Qe.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!t(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}const n=je(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}}Qe.assertInvariants=!1;class V{static fromRange(t){return new V(t.startLineNumber,t.endLineNumber)}static fromRangeInclusive(t){return new V(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let n=new oe(t[0].slice());for(let r=1;r<t.length;r++)n=n.getUnion(new oe(t[r].slice()));return n.ranges}static ofLength(t,n){return new V(t,t+n)}static deserialize(t){return new V(t[0],t[1])}constructor(t,n){if(t>n)throw new fe(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new V(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new V(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new V(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){const n=Math.max(this.startLineNumber,t.startLineNumber),r=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=r)return new V(n,r)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new T(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new T(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){const n=[];for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)n.push(t(r));return n}forEach(t){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}toOffsetRange(){return new D(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class oe{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;const n=zt(this._normalizedRanges,s=>s.endLineNumberExclusive>=t.startLineNumber),r=je(this._normalizedRanges,s=>s.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,t);else if(n===r-1){const s=this._normalizedRanges[n];this._normalizedRanges[n]=s.join(t)}else{const s=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(t);this._normalizedRanges.splice(n,r-n,s)}}contains(t){const n=Be(this._normalizedRanges,r=>r.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){const n=Be(this._normalizedRanges,r=>r.startLineNumber<t.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;const n=[];let r=0,s=0,i=null;for(;r<this._normalizedRanges.length||s<t._normalizedRanges.length;){let l=null;if(r<this._normalizedRanges.length&&s<t._normalizedRanges.length){const o=this._normalizedRanges[r],u=t._normalizedRanges[s];o.startLineNumber<u.startLineNumber?(l=o,r++):(l=u,s++)}else r<this._normalizedRanges.length?(l=this._normalizedRanges[r],r++):(l=t._normalizedRanges[s],s++);i===null?i=l:i.endLineNumberExclusive>=l.startLineNumber?i=new V(i.startLineNumber,Math.max(i.endLineNumberExclusive,l.endLineNumberExclusive)):(n.push(i),i=l)}return i!==null&&n.push(i),new oe(n)}subtractFrom(t){const n=zt(this._normalizedRanges,l=>l.endLineNumberExclusive>=t.startLineNumber),r=je(this._normalizedRanges,l=>l.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new oe([t]);const s=[];let i=t.startLineNumber;for(let l=n;l<r;l++){const o=this._normalizedRanges[l];o.startLineNumber>i&&s.push(new V(i,o.startLineNumber)),i=o.endLineNumberExclusive}return i<t.endLineNumberExclusive&&s.push(new V(i,t.endLineNumberExclusive)),new oe(s)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){const n=[];let r=0,s=0;for(;r<this._normalizedRanges.length&&s<t._normalizedRanges.length;){const i=this._normalizedRanges[r],l=t._normalizedRanges[s],o=i.intersect(l);o&&!o.isEmpty&&n.push(o),i.endLineNumberExclusive<l.endLineNumberExclusive?r++:s++}return new oe(n)}getWithDelta(t){return new oe(this._normalizedRanges.map(n=>n.delta(t)))}}class Le{static inverse(t,n,r){const s=[];let i=1,l=1;for(const u of t){const c=new ce(new V(i,u.original.startLineNumber),new V(l,u.modified.startLineNumber),void 0);c.modified.isEmpty||s.push(c),i=u.original.endLineNumberExclusive,l=u.modified.endLineNumberExclusive}const o=new ce(new V(i,n+1),new V(l,r+1),void 0);return o.modified.isEmpty||s.push(o),s}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Le(this.modified,this.original)}join(t){return new Le(this.original.join(t.original),this.modified.join(t.modified))}}class ce extends Le{constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){var t;return new ce(this.modified,this.original,(t=this.innerChanges)===null||t===void 0?void 0:t.map(n=>n.flip()))}}class Xe{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Xe(this.modifiedRange,this.originalRange)}}const Ci=3;class Ai{computeDiff(t,n,r){var s;const l=new Mi(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let u=null;for(const c of l.changes){let h;c.originalEndLineNumber===0?h=new V(c.originalStartLineNumber+1,c.originalStartLineNumber+1):h=new V(c.originalStartLineNumber,c.originalEndLineNumber+1);let f;c.modifiedEndLineNumber===0?f=new V(c.modifiedStartLineNumber+1,c.modifiedStartLineNumber+1):f=new V(c.modifiedStartLineNumber,c.modifiedEndLineNumber+1);let m=new ce(h,f,(s=c.charChanges)===null||s===void 0?void 0:s.map(d=>new Xe(new T(d.originalStartLineNumber,d.originalStartColumn,d.originalEndLineNumber,d.originalEndColumn),new T(d.modifiedStartLineNumber,d.modifiedStartColumn,d.modifiedEndLineNumber,d.modifiedEndColumn))));u&&(u.modified.endLineNumberExclusive===m.modified.startLineNumber||u.original.endLineNumberExclusive===m.original.startLineNumber)&&(m=new ce(u.original.join(m.original),u.modified.join(m.modified),u.innerChanges&&m.innerChanges?u.innerChanges.concat(m.innerChanges):void 0),o.pop()),o.push(m),u=m}return ft(()=>xr(o,(c,h)=>h.original.startLineNumber-c.original.endLineNumberExclusive===h.modified.startLineNumber-c.modified.endLineNumberExclusive&&c.original.endLineNumberExclusive<h.original.startLineNumber&&c.modified.endLineNumberExclusive<h.modified.startLineNumber)),new dt(o,[],l.quitEarly)}}function vr(e,t,n,r){return new ge(e,t,n).ComputeDiff(r)}let wr=class{constructor(t){const n=[],r=[];for(let s=0,i=t.length;s<i;s++)n[s]=$t(t[s],1),r[s]=Ot(t[s],1);this.lines=t,this._startColumns=n,this._endColumns=r}getElements(){const t=[];for(let n=0,r=this.lines.length;n<r;n++)t[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,n,r){const s=[],i=[],l=[];let o=0;for(let u=n;u<=r;u++){const c=this.lines[u],h=t?this._startColumns[u]:1,f=t?this._endColumns[u]:c.length+1;for(let m=h;m<f;m++)s[o]=c.charCodeAt(m-1),i[o]=u+1,l[o]=m,o++;!t&&u<r&&(s[o]=10,i[o]=u+1,l[o]=c.length+1,o++)}return new Ri(s,i,l)}};class Ri{constructor(t,n,r){this._charCodes=t,this._lineNumbers=n,this._columns=r}toString(){return"["+this._charCodes.map((t,n)=>(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}}class qe{constructor(t,n,r,s,i,l,o,u){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=s,this.modifiedStartLineNumber=i,this.modifiedStartColumn=l,this.modifiedEndLineNumber=o,this.modifiedEndColumn=u}static createFromDiffChange(t,n,r){const s=n.getStartLineNumber(t.originalStart),i=n.getStartColumn(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1),o=n.getEndColumn(t.originalStart+t.originalLength-1),u=r.getStartLineNumber(t.modifiedStart),c=r.getStartColumn(t.modifiedStart),h=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),f=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new qe(s,i,l,o,u,c,h,f)}}function yi(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,s=e.length;r<s;r++){const i=e[r],l=i.originalStart-(n.originalStart+n.originalLength),o=i.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(l,o)<Ci?(n.originalLength=i.originalStart+i.originalLength-n.originalStart,n.modifiedLength=i.modifiedStart+i.modifiedLength-n.modifiedStart):(t.push(i),n=i)}return t}class Je{constructor(t,n,r,s,i){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=s,this.charChanges=i}static createFromDiffResult(t,n,r,s,i,l,o){let u,c,h,f,m;if(n.originalLength===0?(u=r.getStartLineNumber(n.originalStart)-1,c=0):(u=r.getStartLineNumber(n.originalStart),c=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(h=s.getStartLineNumber(n.modifiedStart)-1,f=0):(h=s.getStartLineNumber(n.modifiedStart),f=s.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),l&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&i()){const d=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),g=s.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(d.getElements().length>0&&g.getElements().length>0){let b=vr(d,g,i,!0).changes;o&&(b=yi(b)),m=[];for(let v=0,w=b.length;v<w;v++)m.push(qe.createFromDiffChange(b[v],d,g))}}return new Je(u,c,h,f,m)}}class Mi{constructor(t,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new wr(t),this.modified=new wr(n),this.continueLineDiff=Nr(r.maxComputationTime),this.continueCharDiff=Nr(r.maxComputationTime===0?0:Math.min(r.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const t=vr(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,r=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){const o=[];for(let u=0,c=n.length;u<c;u++)o.push(Je.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[u],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:o}}const s=[];let i=0,l=0;for(let o=-1,u=n.length;o<u;o++){const c=o+1<u?n[o+1]:null,h=c?c.originalStart:this.originalLines.length,f=c?c.modifiedStart:this.modifiedLines.length;for(;i<h&&l<f;){const m=this.originalLines[i],d=this.modifiedLines[l];if(m!==d){{let g=$t(m,1),b=$t(d,1);for(;g>1&&b>1;){const v=m.charCodeAt(g-2),w=d.charCodeAt(b-2);if(v!==w)break;g--,b--}(g>1||b>1)&&this._pushTrimWhitespaceCharChange(s,i+1,1,g,l+1,1,b)}{let g=Ot(m,1),b=Ot(d,1);const v=m.length+1,w=d.length+1;for(;g<v&&b<w;){const _=m.charCodeAt(g-1),x=m.charCodeAt(b-1);if(_!==x)break;g++,b++}(g<v||b<w)&&this._pushTrimWhitespaceCharChange(s,i+1,g,v,l+1,b,w)}}i++,l++}c&&(s.push(Je.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=c.originalLength,l+=c.modifiedLength)}return{quitEarly:r,changes:s}}_pushTrimWhitespaceCharChange(t,n,r,s,i,l,o){if(this._mergeTrimWhitespaceCharChange(t,n,r,s,i,l,o))return;let u;this.shouldComputeCharChanges&&(u=[new qe(n,r,n,s,i,l,i,o)]),t.push(new Je(n,n,i,i,u))}_mergeTrimWhitespaceCharChange(t,n,r,s,i,l,o){const u=t.length;if(u===0)return!1;const c=t[u-1];return c.originalEndLineNumber===0||c.modifiedEndLineNumber===0?!1:c.originalEndLineNumber===n&&c.modifiedEndLineNumber===i?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new qe(n,r,n,s,i,l,i,o)),!0):c.originalEndLineNumber+1===n&&c.modifiedEndLineNumber+1===i?(c.originalEndLineNumber=n,c.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new qe(n,r,n,s,i,l,i,o)),!0):!1}}function $t(e,t){const n=cs(e);return n===-1?t:n+1}function Ot(e,t){const n=hs(e);return n===-1?t:n+2}function Nr(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}class he{static trivial(t,n){return new he([new O(D.ofLength(t.length),D.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new he([new O(D.ofLength(t.length),D.ofLength(n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class O{static invert(t,n){const r=[];return Gs(t,(s,i)=>{r.push(O.fromOffsetPairs(s?s.getEndExclusives():ue.zero,i?i.getStarts():new ue(n,(s?s.seq2Range.endExclusive-s.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new O(new D(t.offset1,n.offset1),new D(t.offset2,n.offset2))}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new O(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new O(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new O(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new O(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new O(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){const n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new O(n,r)}getStarts(){return new ue(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new ue(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class ue{constructor(t,n){this.offset1=t,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}}ue.zero=new ue(0,0),ue.max=new ue(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class Ye{isValid(){return!0}}Ye.instance=new Ye;class Ei{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new fe("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class Gt{constructor(t,n){this.width=t,this.height=n,this.array=[],this.array=new Array(t*n)}get(t,n){return this.array[t+n*this.width]}set(t,n,r){this.array[t+n*this.width]=r}}function jt(e){return e===32||e===9}class Ie{static getKey(t){let n=this.chrKeys.get(t);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(t,n)),n}constructor(t,n,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let s=0;for(let i=t.startLineNumber-1;i<t.endLineNumberExclusive-1;i++){const l=n[i];for(let u=0;u<l.length;u++){s++;const c=l[u],h=Ie.getKey(c);this.histogram[h]=(this.histogram[h]||0)+1}s++;const o=Ie.getKey(`
9
+ `);this.histogram[o]=(this.histogram[o]||0)+1}this.totalCount=s}computeSimilarity(t){var n,r;let s=0;const i=Math.max(this.histogram.length,t.histogram.length);for(let l=0;l<i;l++)s+=Math.abs(((n=this.histogram[l])!==null&&n!==void 0?n:0)-((r=t.histogram[l])!==null&&r!==void 0?r:0));return 1-s/(this.totalCount+t.totalCount)}}Ie.chrKeys=new Map;class ki{compute(t,n,r=Ye.instance,s){if(t.length===0||n.length===0)return he.trivial(t,n);const i=new Gt(t.length,n.length),l=new Gt(t.length,n.length),o=new Gt(t.length,n.length);for(let g=0;g<t.length;g++)for(let b=0;b<n.length;b++){if(!r.isValid())return he.trivialTimedOut(t,n);const v=g===0?0:i.get(g-1,b),w=b===0?0:i.get(g,b-1);let _;t.getElement(g)===n.getElement(b)?(g===0||b===0?_=0:_=i.get(g-1,b-1),g>0&&b>0&&l.get(g-1,b-1)===3&&(_+=o.get(g-1,b-1)),_+=s?s(g,b):1):_=-1;const x=Math.max(v,w,_);if(x===_){const S=g>0&&b>0?o.get(g-1,b-1):0;o.set(g,b,S+1),l.set(g,b,3)}else x===v?(o.set(g,b,0),l.set(g,b,1)):x===w&&(o.set(g,b,0),l.set(g,b,2));i.set(g,b,x)}const u=[];let c=t.length,h=n.length;function f(g,b){(g+1!==c||b+1!==h)&&u.push(new O(new D(g+1,c),new D(b+1,h))),c=g,h=b}let m=t.length-1,d=n.length-1;for(;m>=0&&d>=0;)l.get(m,d)===3?(f(m,d),m--,d--):l.get(m,d)===1?m--:d--;return f(-1,-1),u.reverse(),new he(u,!1)}}class Sr{compute(t,n,r=Ye.instance){if(t.length===0||n.length===0)return he.trivial(t,n);const s=t,i=n;function l(b,v){for(;b<s.length&&v<i.length&&s.getElement(b)===i.getElement(v);)b++,v++;return b}let o=0;const u=new Pi;u.set(0,l(0,0));const c=new Fi;c.set(0,u.get(0)===0?null:new Cr(null,0,0,u.get(0)));let h=0;e:for(;;){if(o++,!r.isValid())return he.trivialTimedOut(s,i);const b=-Math.min(o,i.length+o%2),v=Math.min(o,s.length+o%2);for(h=b;h<=v;h+=2){const w=h===v?-1:u.get(h+1),_=h===b?-1:u.get(h-1)+1,x=Math.min(Math.max(w,_),s.length),S=x-h;if(x>s.length||S>i.length)continue;const N=l(x,S);u.set(h,N);const R=x===w?c.get(h+1):c.get(h-1);if(c.set(h,N!==x?new Cr(R,x,S,N-x):R),u.get(h)===s.length&&u.get(h)-h===i.length)break e}}let f=c.get(h);const m=[];let d=s.length,g=i.length;for(;;){const b=f?f.x+f.length:0,v=f?f.y+f.length:0;if((b!==d||v!==g)&&m.push(new O(new D(b,d),new D(v,g))),!f)break;d=f.x,g=f.y,f=f.prev}return m.reverse(),new he(m,!1)}}class Cr{constructor(t,n,r,s){this.prev=t,this.x=n,this.y=r,this.length=s}}class Pi{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[t]=n}}}class Fi{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}}class Di{constructor(){this.map=new Map}add(t,n){let r=this.map.get(t);r||(r=new Set,this.map.set(t,r)),r.add(n)}delete(t,n){const r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){const r=this.map.get(t);r&&r.forEach(n)}get(t){const n=this.map.get(t);return n||new Set}}class mt{constructor(t,n,r){this.lines=t,this.considerWhitespaceChanges=r,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let s=!1;n.start>0&&n.endExclusive>=t.length&&(n=new D(n.start-1,n.endExclusive),s=!0),this.lineRange=n,this.firstCharOffsetByLine[0]=0;for(let i=this.lineRange.start;i<this.lineRange.endExclusive;i++){let l=t[i],o=0;if(s)o=l.length,l="",s=!1;else if(!r){const u=l.trimStart();o=l.length-u.length,l=u.trimEnd()}this.additionalOffsetByLine.push(o);for(let u=0;u<l.length;u++)this.elements.push(l.charCodeAt(u));i<t.length-1&&(this.elements.push(10),this.firstCharOffsetByLine[i-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new D(0,this.length))}getText(t){return this.elements.slice(t.start,t.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){const n=Rr(t>0?this.elements[t-1]:-1),r=Rr(t<this.elements.length?this.elements[t]:-1);if(n===7&&r===8)return 0;let s=0;return n!==r&&(s+=10,n===0&&r===1&&(s+=1)),s+=Ar(n),s+=Ar(r),s}translateOffset(t){if(this.lineRange.isEmpty)return new Y(this.lineRange.start+1,1);const n=je(this.firstCharOffsetByLine,r=>r<=t);return new Y(this.lineRange.start+n+1,t-this.firstCharOffsetByLine[n]+this.additionalOffsetByLine[n]+1)}translateRange(t){return T.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!Qt(this.elements[t]))return;let n=t;for(;n>0&&Qt(this.elements[n-1]);)n--;let r=t;for(;r<this.elements.length&&Qt(this.elements[r]);)r++;return new D(n,r)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}isStronglyEqual(t,n){return this.elements[t]===this.elements[n]}extendToFullLines(t){var n,r;const s=(n=Be(this.firstCharOffsetByLine,l=>l<=t.start))!==null&&n!==void 0?n:0,i=(r=Si(this.firstCharOffsetByLine,l=>t.endExclusive<=l))!==null&&r!==void 0?r:this.elements.length;return new D(s,i)}}function Qt(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const Ti={0:0,1:0,2:0,3:10,4:2,5:3,6:3,7:10,8:10};function Ar(e){return Ti[e]}function Rr(e){return e===10?8:e===13?7:jt(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function Vi(e,t,n,r,s,i){let{moves:l,excludedChanges:o}=qi(e,t,n,i);if(!i.isValid())return[];const u=e.filter(h=>!o.has(h)),c=Ii(u,r,s,t,n,i);return Qs(l,c),l=Ui(l),l=l.filter(h=>{const f=h.original.toOffsetRange().slice(t).map(d=>d.trim());return f.join(`
10
+ `).length>=15&&Bi(f,d=>d.length>=2)>=2}),l=Hi(e,l),l}function Bi(e,t){let n=0;for(const r of e)t(r)&&n++;return n}function qi(e,t,n,r){const s=[],i=e.filter(u=>u.modified.isEmpty&&u.original.length>=3).map(u=>new Ie(u.original,t,u)),l=new Set(e.filter(u=>u.original.isEmpty&&u.modified.length>=3).map(u=>new Ie(u.modified,n,u))),o=new Set;for(const u of i){let c=-1,h;for(const f of l){const m=u.computeSimilarity(f);m>c&&(c=m,h=f)}if(c>.9&&h&&(l.delete(h),s.push(new Le(u.range,h.range)),o.add(u.source),o.add(h.source)),!r.isValid())return{moves:s,excludedChanges:o}}return{moves:s,excludedChanges:o}}function Ii(e,t,n,r,s,i){const l=[],o=new Di;for(const m of e)for(let d=m.original.startLineNumber;d<m.original.endLineNumberExclusive-2;d++){const g=`${t[d-1]}:${t[d+1-1]}:${t[d+2-1]}`;o.add(g,{range:new V(d,d+3)})}const u=[];e.sort(at(m=>m.modified.startLineNumber,lt));for(const m of e){let d=[];for(let g=m.modified.startLineNumber;g<m.modified.endLineNumberExclusive-2;g++){const b=`${n[g-1]}:${n[g+1-1]}:${n[g+2-1]}`,v=new V(g,g+3),w=[];o.forEach(b,({range:_})=>{for(const S of d)if(S.originalLineRange.endLineNumberExclusive+1===_.endLineNumberExclusive&&S.modifiedLineRange.endLineNumberExclusive+1===v.endLineNumberExclusive){S.originalLineRange=new V(S.originalLineRange.startLineNumber,_.endLineNumberExclusive),S.modifiedLineRange=new V(S.modifiedLineRange.startLineNumber,v.endLineNumberExclusive),w.push(S);return}const x={modifiedLineRange:v,originalLineRange:_};u.push(x),w.push(x)}),d=w}if(!i.isValid())return[]}u.sort(Xs(at(m=>m.modifiedLineRange.length,lt)));const c=new oe,h=new oe;for(const m of u){const d=m.modifiedLineRange.startLineNumber-m.originalLineRange.startLineNumber,g=c.subtractFrom(m.modifiedLineRange),b=h.subtractFrom(m.originalLineRange).getWithDelta(d),v=g.getIntersection(b);for(const w of v.ranges){if(w.length<3)continue;const _=w,x=w.delta(-d);l.push(new Le(x,_)),c.addRange(_),h.addRange(x)}}l.sort(at(m=>m.original.startLineNumber,lt));const f=new Qe(e);for(let m=0;m<l.length;m++){const d=l[m],g=f.findLastMonotonous(R=>R.original.startLineNumber<=d.original.startLineNumber),b=Be(e,R=>R.modified.startLineNumber<=d.modified.startLineNumber),v=Math.max(d.original.startLineNumber-g.original.startLineNumber,d.modified.startLineNumber-b.modified.startLineNumber),w=f.findLastMonotonous(R=>R.original.startLineNumber<d.original.endLineNumberExclusive),_=Be(e,R=>R.modified.startLineNumber<d.modified.endLineNumberExclusive),x=Math.max(w.original.endLineNumberExclusive-d.original.endLineNumberExclusive,_.modified.endLineNumberExclusive-d.modified.endLineNumberExclusive);let S;for(S=0;S<v;S++){const R=d.original.startLineNumber-S-1,M=d.modified.startLineNumber-S-1;if(R>r.length||M>s.length||c.contains(M)||h.contains(R)||!yr(r[R-1],s[M-1],i))break}S>0&&(h.addRange(new V(d.original.startLineNumber-S,d.original.startLineNumber)),c.addRange(new V(d.modified.startLineNumber-S,d.modified.startLineNumber)));let N;for(N=0;N<x;N++){const R=d.original.endLineNumberExclusive+N,M=d.modified.endLineNumberExclusive+N;if(R>r.length||M>s.length||c.contains(M)||h.contains(R)||!yr(r[R-1],s[M-1],i))break}N>0&&(h.addRange(new V(d.original.endLineNumberExclusive,d.original.endLineNumberExclusive+N)),c.addRange(new V(d.modified.endLineNumberExclusive,d.modified.endLineNumberExclusive+N))),(S>0||N>0)&&(l[m]=new Le(new V(d.original.startLineNumber-S,d.original.endLineNumberExclusive+N),new V(d.modified.startLineNumber-S,d.modified.endLineNumberExclusive+N)))}return l}function yr(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const s=new Sr().compute(new mt([e],new D(0,1),!1),new mt([t],new D(0,1),!1),n);let i=0;const l=O.invert(s.diffs,e.length);for(const h of l)h.seq1Range.forEach(f=>{jt(e.charCodeAt(f))||i++});function o(h){let f=0;for(let m=0;m<e.length;m++)jt(h.charCodeAt(m))||f++;return f}const u=o(e.length>t.length?e:t);return i/u>.6&&u>10}function Ui(e){if(e.length===0)return e;e.sort(at(n=>n.original.startLineNumber,lt));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],s=e[n],i=s.original.startLineNumber-r.original.endLineNumberExclusive,l=s.modified.startLineNumber-r.modified.endLineNumberExclusive;if(i>=0&&l>=0&&i+l<=2){t[t.length-1]=r.join(s);continue}t.push(s)}return t}function Hi(e,t){const n=new Qe(e);return t=t.filter(r=>{const s=n.findLastMonotonous(o=>o.original.startLineNumber<r.original.endLineNumberExclusive)||new Le(new V(1,1),new V(1,1)),i=Be(e,o=>o.modified.startLineNumber<r.modified.endLineNumberExclusive);return s!==i}),t}function Mr(e,t,n){let r=n;return r=Er(e,t,r),r=Er(e,t,r),r=Wi(e,t,r),r}function Er(e,t,n){if(n.length===0)return n;const r=[];r.push(n[0]);for(let i=1;i<n.length;i++){const l=r[r.length-1];let o=n[i];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const u=o.seq1Range.start-l.seq1Range.endExclusive;let c;for(c=1;c<=u&&!(e.getElement(o.seq1Range.start-c)!==e.getElement(o.seq1Range.endExclusive-c)||t.getElement(o.seq2Range.start-c)!==t.getElement(o.seq2Range.endExclusive-c));c++);if(c--,c===u){r[r.length-1]=new O(new D(l.seq1Range.start,o.seq1Range.endExclusive-u),new D(l.seq2Range.start,o.seq2Range.endExclusive-u));continue}o=o.delta(-c)}r.push(o)}const s=[];for(let i=0;i<r.length-1;i++){const l=r[i+1];let o=r[i];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const u=l.seq1Range.start-o.seq1Range.endExclusive;let c;for(c=0;c<u&&!(!e.isStronglyEqual(o.seq1Range.start+c,o.seq1Range.endExclusive+c)||!t.isStronglyEqual(o.seq2Range.start+c,o.seq2Range.endExclusive+c));c++);if(c===u){r[i+1]=new O(new D(o.seq1Range.start+u,l.seq1Range.endExclusive),new D(o.seq2Range.start+u,l.seq2Range.endExclusive));continue}c>0&&(o=o.delta(c))}s.push(o)}return r.length>0&&s.push(r[r.length-1]),s}function Wi(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const s=r>0?n[r-1]:void 0,i=n[r],l=r+1<n.length?n[r+1]:void 0,o=new D(s?s.seq1Range.start+1:0,l?l.seq1Range.endExclusive-1:e.length),u=new D(s?s.seq2Range.start+1:0,l?l.seq2Range.endExclusive-1:t.length);i.seq1Range.isEmpty?n[r]=kr(i,e,t,o,u):i.seq2Range.isEmpty&&(n[r]=kr(i.swap(),t,e,u,o).swap())}return n}function kr(e,t,n,r,s){let l=1;for(;e.seq1Range.start-l>=r.start&&e.seq2Range.start-l>=s.start&&n.isStronglyEqual(e.seq2Range.start-l,e.seq2Range.endExclusive-l)&&l<100;)l++;l--;let o=0;for(;e.seq1Range.start+o<r.endExclusive&&e.seq2Range.endExclusive+o<s.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(l===0&&o===0)return e;let u=0,c=-1;for(let h=-l;h<=o;h++){const f=e.seq2Range.start+h,m=e.seq2Range.endExclusive+h,d=e.seq1Range.start+h,g=t.getBoundaryScore(d)+n.getBoundaryScore(f)+n.getBoundaryScore(m);g>c&&(c=g,u=h)}return e.delta(u)}function zi(e,t,n){const r=[];for(const s of n){const i=r[r.length-1];if(!i){r.push(s);continue}s.seq1Range.start-i.seq1Range.endExclusive<=2||s.seq2Range.start-i.seq2Range.endExclusive<=2?r[r.length-1]=new O(i.seq1Range.join(s.seq1Range),i.seq2Range.join(s.seq2Range)):r.push(s)}return r}function $i(e,t,n){const r=[];let s;function i(){if(!s)return;const o=s.s1Range.length-s.deleted;s.s2Range.length-s.added,Math.max(s.deleted,s.added)+(s.count-1)>o&&r.push(new O(s.s1Range,s.s2Range)),s=void 0}for(const o of n){let u=function(d,g){var b,v,w,_;if(!s||!s.s1Range.containsRange(d)||!s.s2Range.containsRange(g))if(s&&!(s.s1Range.endExclusive<d.start&&s.s2Range.endExclusive<g.start)){const N=D.tryCreate(s.s1Range.endExclusive,d.start),R=D.tryCreate(s.s2Range.endExclusive,g.start);s.deleted+=(b=N==null?void 0:N.length)!==null&&b!==void 0?b:0,s.added+=(v=R==null?void 0:R.length)!==null&&v!==void 0?v:0,s.s1Range=s.s1Range.join(d),s.s2Range=s.s2Range.join(g)}else i(),s={added:0,deleted:0,count:0,s1Range:d,s2Range:g};const x=d.intersect(o.seq1Range),S=g.intersect(o.seq2Range);s.count++,s.deleted+=(w=x==null?void 0:x.length)!==null&&w!==void 0?w:0,s.added+=(_=S==null?void 0:S.length)!==null&&_!==void 0?_:0};const c=e.findWordContaining(o.seq1Range.start-1),h=t.findWordContaining(o.seq2Range.start-1),f=e.findWordContaining(o.seq1Range.endExclusive),m=t.findWordContaining(o.seq2Range.endExclusive);c&&f&&h&&m&&c.equals(f)&&h.equals(m)?u(c,h):(c&&h&&u(c,h),f&&m&&u(f,m))}return i(),Oi(n,r)}function Oi(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],s=t[0];let i;r&&(!s||r.seq1Range.start<s.seq1Range.start)?i=e.shift():i=t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=i.seq1Range.start?n[n.length-1]=n[n.length-1].join(i):n.push(i)}return n}function Gi(e,t,n){let r=n;if(r.length===0)return r;let s=0,i;do{i=!1;const l=[r[0]];for(let o=1;o<r.length;o++){let h=function(m,d){const g=new D(c.seq1Range.endExclusive,u.seq1Range.start);return e.getText(g).replace(/\s/g,"").length<=4&&(m.seq1Range.length+m.seq2Range.length>5||d.seq1Range.length+d.seq2Range.length>5)};const u=r[o],c=l[l.length-1];h(c,u)?(i=!0,l[l.length-1]=l[l.length-1].join(u)):l.push(u)}r=l}while(s++<10&&i);return r}function ji(e,t,n){let r=n;if(r.length===0)return r;let s=0,i;do{i=!1;const o=[r[0]];for(let u=1;u<r.length;u++){let f=function(d,g){const b=new D(h.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(b)>5||b.length>500)return!1;const w=e.getText(b).trim();if(w.length>20||w.split(/\r\n|\r|\n/).length>1)return!1;const _=e.countLinesIn(d.seq1Range),x=d.seq1Range.length,S=t.countLinesIn(d.seq2Range),N=d.seq2Range.length,R=e.countLinesIn(g.seq1Range),M=g.seq1Range.length,k=t.countLinesIn(g.seq2Range),U=g.seq2Range.length,j=2*40+50;function q(p){return Math.min(p,j)}return Math.pow(Math.pow(q(_*40+x),1.5)+Math.pow(q(S*40+N),1.5),1.5)+Math.pow(Math.pow(q(R*40+M),1.5)+Math.pow(q(k*40+U),1.5),1.5)>(j**1.5)**1.5*1.3};const c=r[u],h=o[o.length-1];f(h,c)?(i=!0,o[o.length-1]=o[o.length-1].join(c)):o.push(c)}r=o}while(s++<10&&i);const l=[];return js(r,(o,u,c)=>{let h=u;function f(w){return w.length>0&&w.trim().length<=3&&u.seq1Range.length+u.seq2Range.length>100}const m=e.extendToFullLines(u.seq1Range),d=e.getText(new D(m.start,u.seq1Range.start));f(d)&&(h=h.deltaStart(-d.length));const g=e.getText(new D(u.seq1Range.endExclusive,m.endExclusive));f(g)&&(h=h.deltaEnd(g.length));const b=O.fromOffsetPairs(o?o.getEndExclusives():ue.zero,c?c.getStarts():ue.max),v=h.intersect(b);l.push(v)}),l}class Pr{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){const n=t===0?0:Fr(this.lines[t-1]),r=t===this.lines.length?0:Fr(this.lines[t]);return 1e3-(n+r)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(`
11
+ `)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}}function Fr(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}class Qi{constructor(){this.dynamicProgrammingDiffing=new ki,this.myersDiffingAlgorithm=new Sr}computeDiff(t,n,r){if(t.length<=1&&$s(t,n,(N,R)=>N===R))return new dt([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new dt([new ce(new V(1,t.length+1),new V(1,n.length+1),[new Xe(new T(1,1,t.length,t[0].length+1),new T(1,1,n.length,n[0].length+1))])],[],!1);const s=r.maxComputationTimeMs===0?Ye.instance:new Ei(r.maxComputationTimeMs),i=!r.ignoreTrimWhitespace,l=new Map;function o(N){let R=l.get(N);return R===void 0&&(R=l.size,l.set(N,R)),R}const u=t.map(N=>o(N.trim())),c=n.map(N=>o(N.trim())),h=new Pr(u,t),f=new Pr(c,n),m=h.length+f.length<1700?this.dynamicProgrammingDiffing.compute(h,f,s,(N,R)=>t[N]===n[R]?n[R].length===0?.1:1+Math.log(1+n[R].length):.99):this.myersDiffingAlgorithm.compute(h,f);let d=m.diffs,g=m.hitTimeout;d=Mr(h,f,d),d=Gi(h,f,d);const b=[],v=N=>{if(i)for(let R=0;R<N;R++){const M=w+R,k=_+R;if(t[M]!==n[k]){const U=this.refineDiff(t,n,new O(new D(M,M+1),new D(k,k+1)),s,i);for(const j of U.mappings)b.push(j);U.hitTimeout&&(g=!0)}}};let w=0,_=0;for(const N of d){ft(()=>N.seq1Range.start-w===N.seq2Range.start-_);const R=N.seq1Range.start-w;v(R),w=N.seq1Range.endExclusive,_=N.seq2Range.endExclusive;const M=this.refineDiff(t,n,N,s,i);M.hitTimeout&&(g=!0);for(const k of M.mappings)b.push(k)}v(t.length-w);const x=Dr(b,t,n);let S=[];return r.computeMoves&&(S=this.computeMoves(x,t,n,u,c,s,i)),ft(()=>{function N(M,k){if(M.lineNumber<1||M.lineNumber>k.length)return!1;const U=k[M.lineNumber-1];return!(M.column<1||M.column>U.length+1)}function R(M,k){return!(M.startLineNumber<1||M.startLineNumber>k.length+1||M.endLineNumberExclusive<1||M.endLineNumberExclusive>k.length+1)}for(const M of x){if(!M.innerChanges)return!1;for(const k of M.innerChanges)if(!(N(k.modifiedRange.getStartPosition(),n)&&N(k.modifiedRange.getEndPosition(),n)&&N(k.originalRange.getStartPosition(),t)&&N(k.originalRange.getEndPosition(),t)))return!1;if(!R(M.modified,n)||!R(M.original,t))return!1}return!0}),new dt(x,S,g)}computeMoves(t,n,r,s,i,l,o){return Vi(t,n,r,s,i,l).map(h=>{const f=this.refineDiff(n,r,new O(h.original.toOffsetRange(),h.modified.toOffsetRange()),l,o),m=Dr(f.mappings,n,r,!0);return new Ni(h,m)})}refineDiff(t,n,r,s,i){const l=new mt(t,r.seq1Range,i),o=new mt(n,r.seq2Range,i),u=l.length+o.length<500?this.dynamicProgrammingDiffing.compute(l,o,s):this.myersDiffingAlgorithm.compute(l,o,s);let c=u.diffs;return c=Mr(l,o,c),c=$i(l,o,c),c=zi(l,o,c),c=ji(l,o,c),{mappings:c.map(f=>new Xe(l.translateRange(f.seq1Range),o.translateRange(f.seq2Range))),hitTimeout:u.hitTimeout}}}function Dr(e,t,n,r=!1){const s=[];for(const i of Os(e.map(l=>Xi(l,t,n)),(l,o)=>l.original.overlapOrTouch(o.original)||l.modified.overlapOrTouch(o.modified))){const l=i[0],o=i[i.length-1];s.push(new ce(l.original.join(o.original),l.modified.join(o.modified),i.map(u=>u.innerChanges[0])))}return ft(()=>!r&&s.length>0&&s[0].original.startLineNumber!==s[0].modified.startLineNumber?!1:xr(s,(i,l)=>l.original.startLineNumber-i.original.endLineNumberExclusive===l.modified.startLineNumber-i.modified.endLineNumberExclusive&&i.original.endLineNumberExclusive<l.original.startLineNumber&&i.modified.endLineNumberExclusive<l.modified.startLineNumber)),s}function Xi(e,t,n){let r=0,s=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(s=-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+s&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+s&&(r=1);const i=new V(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+s),l=new V(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+s);return new ce(i,l,[e])}const Tr={getLegacy:()=>new Ai,getDefault:()=>new Qi};function ve(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class G{constructor(t,n,r,s=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,r))|0,this.a=ve(Math.max(Math.min(1,s),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}}class re{constructor(t,n,r,s){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=ve(Math.max(Math.min(1,n),0),3),this.l=ve(Math.max(Math.min(1,r),0),3),this.a=ve(Math.max(Math.min(1,s),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){const n=t.r/255,r=t.g/255,s=t.b/255,i=t.a,l=Math.max(n,r,s),o=Math.min(n,r,s);let u=0,c=0;const h=(o+l)/2,f=l-o;if(f>0){switch(c=Math.min(h<=.5?f/(2*h):f/(2-2*h),1),l){case n:u=(r-s)/f+(r<s?6:0);break;case r:u=(s-n)/f+2;break;case s:u=(n-r)/f+4;break}u*=60,u=Math.round(u)}return new re(u,c,h,i)}static _hue2rgb(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}static toRGBA(t){const n=t.h/360,{s:r,l:s,a:i}=t;let l,o,u;if(r===0)l=o=u=s;else{const c=s<.5?s*(1+r):s+r-s*r,h=2*s-c;l=re._hue2rgb(h,c,n+1/3),o=re._hue2rgb(h,c,n),u=re._hue2rgb(h,c,n-1/3)}return new G(Math.round(l*255),Math.round(o*255),Math.round(u*255),i)}}class Ue{constructor(t,n,r,s){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=ve(Math.max(Math.min(1,n),0),3),this.v=ve(Math.max(Math.min(1,r),0),3),this.a=ve(Math.max(Math.min(1,s),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){const n=t.r/255,r=t.g/255,s=t.b/255,i=Math.max(n,r,s),l=Math.min(n,r,s),o=i-l,u=i===0?0:o/i;let c;return o===0?c=0:i===n?c=((r-s)/o%6+6)%6:i===r?c=(s-n)/o+2:c=(n-r)/o+4,new Ue(Math.round(c*60),u,i,t.a)}static toRGBA(t){const{h:n,s:r,v:s,a:i}=t,l=s*r,o=l*(1-Math.abs(n/60%2-1)),u=s-l;let[c,h,f]=[0,0,0];return n<60?(c=l,h=o):n<120?(c=o,h=l):n<180?(h=l,f=o):n<240?(h=o,f=l):n<300?(c=o,f=l):n<=360&&(c=l,f=o),c=Math.round((c+u)*255),h=Math.round((h+u)*255),f=Math.round((f+u)*255),new G(c,h,f,i)}}class B{static fromHex(t){return B.Format.CSS.parseHex(t)||B.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:re.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Ue.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof G)this.rgba=t;else if(t instanceof re)this._hsla=t,this.rgba=re.toRGBA(t);else if(t instanceof Ue)this._hsva=t,this.rgba=Ue.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&G.equals(this.rgba,t.rgba)&&re.equals(this.hsla,t.hsla)&&Ue.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=B._relativeLuminanceForComponent(this.rgba.r),n=B._relativeLuminanceForComponent(this.rgba.g),r=B._relativeLuminanceForComponent(this.rgba.b),s=.2126*t+.7152*n+.0722*r;return ve(s,4)}static _relativeLuminanceForComponent(t){const 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){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n<r}lighten(t){return new B(new re(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new B(new re(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){const{r:n,g:r,b:s,a:i}=this.rgba;return new B(new G(n,r,s,i*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new B(new G(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;const{r:n,g:r,b:s,a:i}=this.rgba;return new B(new G(t.rgba.r-i*(t.rgba.r-n),t.rgba.g-i*(t.rgba.g-r),t.rgba.b-i*(t.rgba.b-s),1))}toString(){return this._toString||(this._toString=B.Format.CSS.format(this)),this._toString}static getLighterColor(t,n,r){if(t.isLighterThan(n))return t;r=r||.5;const s=t.getRelativeLuminance(),i=n.getRelativeLuminance();return r=r*(i-s)/i,t.lighten(r)}static getDarkerColor(t,n,r){if(t.isDarkerThan(n))return t;r=r||.5;const s=t.getRelativeLuminance(),i=n.getRelativeLuminance();return r=r*(s-i)/s,t.darken(r)}}B.white=new B(new G(255,255,255,1)),B.black=new B(new G(0,0,0,1)),B.red=new B(new G(255,0,0,1)),B.blue=new B(new G(0,0,255,1)),B.green=new B(new G(0,255,0,1)),B.cyan=new B(new G(0,255,255,1)),B.lightgrey=new B(new G(211,211,211,1)),B.transparent=new B(new G(0,0,0,0)),function(e){(function(t){(function(n){function r(d){return d.rgba.a===1?`rgb(${d.rgba.r}, ${d.rgba.g}, ${d.rgba.b})`:e.Format.CSS.formatRGBA(d)}n.formatRGB=r;function s(d){return`rgba(${d.rgba.r}, ${d.rgba.g}, ${d.rgba.b}, ${+d.rgba.a.toFixed(2)})`}n.formatRGBA=s;function i(d){return d.hsla.a===1?`hsl(${d.hsla.h}, ${(d.hsla.s*100).toFixed(2)}%, ${(d.hsla.l*100).toFixed(2)}%)`:e.Format.CSS.formatHSLA(d)}n.formatHSL=i;function l(d){return`hsla(${d.hsla.h}, ${(d.hsla.s*100).toFixed(2)}%, ${(d.hsla.l*100).toFixed(2)}%, ${d.hsla.a.toFixed(2)})`}n.formatHSLA=l;function o(d){const g=d.toString(16);return g.length!==2?"0"+g:g}function u(d){return`#${o(d.rgba.r)}${o(d.rgba.g)}${o(d.rgba.b)}`}n.formatHex=u;function c(d,g=!1){return g&&d.rgba.a===1?e.Format.CSS.formatHex(d):`#${o(d.rgba.r)}${o(d.rgba.g)}${o(d.rgba.b)}${o(Math.round(d.rgba.a*255))}`}n.formatHexA=c;function h(d){return d.isOpaque()?e.Format.CSS.formatHex(d):e.Format.CSS.formatRGBA(d)}n.format=h;function f(d){const g=d.length;if(g===0||d.charCodeAt(0)!==35)return null;if(g===7){const b=16*m(d.charCodeAt(1))+m(d.charCodeAt(2)),v=16*m(d.charCodeAt(3))+m(d.charCodeAt(4)),w=16*m(d.charCodeAt(5))+m(d.charCodeAt(6));return new e(new G(b,v,w,1))}if(g===9){const b=16*m(d.charCodeAt(1))+m(d.charCodeAt(2)),v=16*m(d.charCodeAt(3))+m(d.charCodeAt(4)),w=16*m(d.charCodeAt(5))+m(d.charCodeAt(6)),_=16*m(d.charCodeAt(7))+m(d.charCodeAt(8));return new e(new G(b,v,w,_/255))}if(g===4){const b=m(d.charCodeAt(1)),v=m(d.charCodeAt(2)),w=m(d.charCodeAt(3));return new e(new G(16*b+b,16*v+v,16*w+w))}if(g===5){const b=m(d.charCodeAt(1)),v=m(d.charCodeAt(2)),w=m(d.charCodeAt(3)),_=m(d.charCodeAt(4));return new e(new G(16*b+b,16*v+v,16*w+w,(16*_+_)/255))}return null}n.parseHex=f;function m(d){switch(d){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}})(t.CSS||(t.CSS={}))})(e.Format||(e.Format={}))}(B||(B={}));function Vr(e){const t=[];for(const n of e){const r=Number(n);(r||r===0&&n.replace(/\s/g,"")!=="")&&t.push(r)}return t}function Xt(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Ze(e,t){const n=t.index,r=t[0].length;if(!n)return;const s=e.positionAt(n);return{startLineNumber:s.lineNumber,startColumn:s.column,endLineNumber:s.lineNumber,endColumn:s.column+r}}function Ji(e,t){if(!e)return;const n=B.Format.CSS.parseHex(t);if(n)return{range:e,color:Xt(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Br(e,t,n){if(!e||t.length!==1)return;const s=t[0].values(),i=Vr(s);return{range:e,color:Xt(i[0],i[1],i[2],n?i[3]:1)}}function qr(e,t,n){if(!e||t.length!==1)return;const s=t[0].values(),i=Vr(s),l=new B(new re(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:Xt(l.rgba.r,l.rgba.g,l.rgba.b,l.rgba.a)}}function Ke(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function Yi(e){const t=[],r=Ke(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(r.length>0)for(const s of r){const i=s.filter(c=>c!==void 0),l=i[1],o=i[2];if(!o)continue;let u;if(l==="rgb"){const 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;u=Br(Ze(e,s),Ke(o,c),!1)}else if(l==="rgba"){const 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;u=Br(Ze(e,s),Ke(o,c),!0)}else if(l==="hsl"){const 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;u=qr(Ze(e,s),Ke(o,c),!1)}else if(l==="hsla"){const 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;u=qr(Ze(e,s),Ke(o,c),!0)}else l==="#"&&(u=Ji(Ze(e,s),l+o));u&&t.push(u)}return t}function Zi(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:Yi(e)}class Ki extends Zs{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){const n=[];for(let r=0;r<this._lines.length;r++){const s=this._lines[r],i=this.offsetAt(new Y(r+1,1)),l=s.matchAll(t);for(const o of l)(o.index||o.index===0)&&(o.index=o.index+i),n.push(o)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,n){const r=Pt(t.column,Ln(n),this._lines[t.lineNumber-1],0);return r?new T(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):null}words(t){const n=this._lines,r=this._wordenize.bind(this);let s=0,i="",l=0,o=[];return{*[Symbol.iterator](){for(;;)if(l<o.length){const u=i.substring(o[l].start,o[l].end);l+=1,yield u}else if(s<n.length)i=n[s],o=r(i,t),l=0,s+=1;else break}}}getLineWords(t,n){const r=this._lines[t-1],s=this._wordenize(r,n),i=[];for(const l of s)i.push({word:r.substring(l.start,l.end),startColumn:l.start+1,endColumn:l.end+1});return i}_wordenize(t,n){const r=[];let s;for(n.lastIndex=0;(s=n.exec(t))&&s[0].length!==0;)r.push({start:s.index,end:s.index+s[0].length});return r}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);const n=this._eol,r=t.startLineNumber-1,s=t.endLineNumber-1,i=[];i.push(this._lines[r].substring(t.startColumn-1));for(let l=r+1;l<s;l++)i.push(this._lines[l]);return i.push(this._lines[s].substring(0,t.endColumn-1)),i.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();const n=this._lineStarts.getIndexOf(t),r=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,r)}}_validateRange(t){const n=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),r=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return n.lineNumber!==t.startLineNumber||n.column!==t.startColumn||r.lineNumber!==t.endLineNumber||r.column!==t.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}:t}_validatePosition(t){if(!Y.isIPosition(t))throw new Error("bad position");let{lineNumber:n,column:r}=t,s=!1;if(n<1)n=1,r=1,s=!0;else if(n>this._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,s=!0;else{const i=this._lines[n-1].length+1;r<1?(r=1,s=!0):r>i&&(r=i,s=!0)}return s?{lineNumber:n,column:r}:t}}class Ae{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(){const t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}acceptNewModel(t){this._models[t.url]=new Ki(Ce.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,r){const s=this._getModel(t);return s?vi.computeUnicodeHighlights(s,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async computeDiff(t,n,r,s){const i=this._getModel(t),l=this._getModel(n);return!i||!l?null:Ae.computeDiff(i,l,r,s)}static computeDiff(t,n,r,s){const i=s==="advanced"?Tr.getDefault():Tr.getLegacy(),l=t.getLinesContent(),o=n.getLinesContent(),u=i.computeDiff(l,o,r),c=u.changes.length>0?!1:this._modelsAreIdentical(t,n);function h(f){return f.map(m=>{var d;return[m.original.startLineNumber,m.original.endLineNumberExclusive,m.modified.startLineNumber,m.modified.endLineNumberExclusive,(d=m.innerChanges)===null||d===void 0?void 0:d.map(g=>[g.originalRange.startLineNumber,g.originalRange.startColumn,g.originalRange.endLineNumber,g.originalRange.endColumn,g.modifiedRange.startLineNumber,g.modifiedRange.startColumn,g.modifiedRange.endLineNumber,g.modifiedRange.endColumn])]})}return{identical:c,quitEarly:u.hitTimeout,changes:h(u.changes),moves:u.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){const r=t.getLineCount(),s=n.getLineCount();if(r!==s)return!1;for(let i=1;i<=r;i++){const l=t.getLineContent(i),o=n.getLineContent(i);if(l!==o)return!1}return!0}async computeMoreMinimalEdits(t,n,r){const s=this._getModel(t);if(!s)return n;const i=[];let l;n=n.slice(0).sort((u,c)=>{if(u.range&&c.range)return T.compareRangesUsingStarts(u.range,c.range);const h=u.range?0:1,f=c.range?0:1;return h-f});let o=0;for(let u=1;u<n.length;u++)T.getEndPosition(n[o].range).equals(T.getStartPosition(n[u].range))?(n[o].range=T.fromPositions(T.getStartPosition(n[o].range),T.getEndPosition(n[u].range)),n[o].text+=n[u].text):(o++,n[o]=n[u]);n.length=o+1;for(let{range:u,text:c,eol:h}of n){if(typeof h=="number"&&(l=h),T.isEmpty(u)&&!c)continue;const f=s.getValueInRange(u);if(c=c.replace(/\r\n|\n|\r/g,s.eol),f===c)continue;if(Math.max(c.length,f.length)>Ae._diffLimit){i.push({range:u,text:c});continue}const m=As(f,c,r),d=s.offsetAt(T.lift(u).getStartPosition());for(const g of m){const b=s.positionAt(d+g.originalStart),v=s.positionAt(d+g.originalStart+g.originalLength),w={text:c.substr(g.modifiedStart,g.modifiedLength),range:{startLineNumber:b.lineNumber,startColumn:b.column,endLineNumber:v.lineNumber,endColumn:v.column}};s.getValueInRange(w.range)!==w.text&&i.push(w)}}return typeof l=="number"&&i.push({eol:l,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}async computeLinks(t){const n=this._getModel(t);return n?ai(n):null}async computeDefaultDocumentColors(t){const n=this._getModel(t);return n?Zi(n):null}async textualSuggest(t,n,r,s){const i=new tt,l=new RegExp(r,s),o=new Set;e:for(const u of t){const c=this._getModel(u);if(c){for(const h of c.words(l))if(!(h===n||!isNaN(Number(h)))&&(o.add(h),o.size>Ae._suggestionsLimit))break e}}return{words:Array.from(o),duration:i.elapsed()}}async computeWordRanges(t,n,r,s){const i=this._getModel(t);if(!i)return Object.create(null);const l=new RegExp(r,s),o=Object.create(null);for(let u=n.startLineNumber;u<n.endLineNumber;u++){const c=i.getLineWords(u,l);for(const h of c){if(!isNaN(Number(h.word)))continue;let f=o[h.word];f||(f=[],o[h.word]=f),f.push({startLineNumber:u,startColumn:h.startColumn,endLineNumber:u,endColumn:h.endColumn})}}return o}async navigateValueSet(t,n,r,s,i){const l=this._getModel(t);if(!l)return null;const o=new RegExp(s,i);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const u=l.getValueInRange(n),c=l.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},o);if(!c)return null;const h=l.getValueInRange(c);return Tt.INSTANCE.navigateValueSet(n,u,c,h,r)}loadForeignModule(t,n,r){const l={host:Kr(r,(o,u)=>this._host.fhr(o,u)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(l,n),Promise.resolve(vt(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(r){return Promise.reject(r)}}}Ae._diffLimit=1e5,Ae._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=gi());let Jt=!1;function e1(e){if(Jt)return;Jt=!0;const t=new Ss(n=>{globalThis.postMessage(n)},n=>new Ae(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{Jt||e1(null)}})();