2){const N=S.lastIndexOf(h);N===-1?(S="",v=0):(S=S.slice(0,N),v=S.length-1-S.lastIndexOf(h)),p=E,_=0;continue}else if(S.length!==0){S="",v=0,p=E,_=0;continue}}l&&(S+=S.length>0?`${h}..`:"..",v=2)}else S.length>0?S+=`${h}${a.slice(p+1,E)}`:S=a.slice(p+1,E),v=E-p-1;p=E,_=0}else y===b&&_!==-1?++_:_=-1}return S}function s(a,l){if(l===null||typeof l!="object")throw new n("pathObject","Object",l);const h=l.dir||l.root,f=l.base||`${l.name||""}${l.ext||""}`;return h?h===l.root?`${h}${f}`:`${h}${a}${f}`:f}e.win32={resolve(...a){let l="",h="",f=!1;for(let S=a.length-1;S>=-1;S--){let v;if(S>=0){if(v=a[S],i(v,"path"),v.length===0)continue}else l.length===0?v=L.cwd():(v=L.env[`=${l}`]||L.cwd(),(v===void 0||v.slice(0,2).toLowerCase()!==l.toLowerCase()&&v.charCodeAt(2)===u)&&(v=`${l}\\`));const p=v.length;let _=0,y="",E=!1;const N=v.charCodeAt(0);if(p===1)o(N)&&(_=1,E=!0);else if(o(N))if(E=!0,o(v.charCodeAt(1))){let D=2,M=D;for(;D2&&o(v.charCodeAt(2))&&(E=!0,_=3));if(y.length>0)if(l.length>0){if(y.toLowerCase()!==l.toLowerCase())continue}else l=y;if(f){if(l.length>0)break}else if(h=`${v.slice(_)}\\${h}`,f=E,E&&l.length>0)break}return h=r(h,!f,"\\",o),f?`${l}\\${h}`:`${l}${h}`||"."},normalize(a){i(a,"path");const l=a.length;if(l===0)return".";let h=0,f,S=!1;const v=a.charCodeAt(0);if(l===1)return c(v)?"\\":a;if(o(v))if(S=!0,o(a.charCodeAt(1))){let _=2,y=_;for(;_2&&o(a.charCodeAt(2))&&(S=!0,h=3));let p=h0&&o(a.charCodeAt(l-1))&&(p+="\\"),f===void 0?S?`\\${p}`:p:S?`${f}\\${p}`:`${f}${p}`},isAbsolute(a){i(a,"path");const l=a.length;if(l===0)return!1;const h=a.charCodeAt(0);return o(h)||l>2&&d(h)&&a.charCodeAt(1)===g&&o(a.charCodeAt(2))},join(...a){if(a.length===0)return".";let l,h;for(let v=0;v0&&(l===void 0?l=h=p:l+=`\\${p}`)}if(l===void 0)return".";let f=!0,S=0;if(typeof h=="string"&&o(h.charCodeAt(0))){++S;const v=h.length;v>1&&o(h.charCodeAt(1))&&(++S,v>2&&(o(h.charCodeAt(2))?++S:f=!1))}if(f){for(;S=2&&(l=`\\${l.slice(S)}`)}return e.win32.normalize(l)},relative(a,l){if(i(a,"from"),i(l,"to"),a===l)return"";const h=e.win32.resolve(a),f=e.win32.resolve(l);if(h===f||(a=h.toLowerCase(),l=f.toLowerCase(),a===l))return"";let S=0;for(;SS&&a.charCodeAt(v-1)===u;)v--;const p=v-S;let _=0;for(;__&&l.charCodeAt(y-1)===u;)y--;const E=y-_,N=pN){if(l.charCodeAt(_+M)===u)return f.slice(_+M+1);if(M===2)return f.slice(_+M)}p>N&&(a.charCodeAt(S+M)===u?D=M:M===2&&(D=3)),D===-1&&(D=0)}let B="";for(M=S+D+1;M<=v;++M)(M===v||a.charCodeAt(M)===u)&&(B+=B.length===0?"..":"\\..");return _+=D,B.length>0?`${B}${f.slice(_,y)}`:(f.charCodeAt(_)===u&&++_,f.slice(_,y))},toNamespacedPath(a){if(typeof a!="string")return a;if(a.length===0)return"";const l=e.win32.resolve(a);if(l.length<=2)return a;if(l.charCodeAt(0)===u){if(l.charCodeAt(1)===u){const h=l.charCodeAt(2);if(h!==t&&h!==b)return`\\\\?\\UNC\\${l.slice(2)}`}}else if(d(l.charCodeAt(0))&&l.charCodeAt(1)===g&&l.charCodeAt(2)===u)return`\\\\?\\${l}`;return a},dirname(a){i(a,"path");const l=a.length;if(l===0)return".";let h=-1,f=0;const S=a.charCodeAt(0);if(l===1)return o(S)?a:".";if(o(S)){if(h=f=1,o(a.charCodeAt(1))){let _=2,y=_;for(;_2&&o(a.charCodeAt(2))?3:2,f=h);let v=-1,p=!0;for(let _=l-1;_>=f;--_)if(o(a.charCodeAt(_))){if(!p){v=_;break}}else p=!1;if(v===-1){if(h===-1)return".";v=h}return a.slice(0,v)},basename(a,l){l!==void 0&&i(l,"ext"),i(a,"path");let h=0,f=-1,S=!0,v;if(a.length>=2&&d(a.charCodeAt(0))&&a.charCodeAt(1)===g&&(h=2),l!==void 0&&l.length>0&&l.length<=a.length){if(l===a)return"";let p=l.length-1,_=-1;for(v=a.length-1;v>=h;--v){const y=a.charCodeAt(v);if(o(y)){if(!S){h=v+1;break}}else _===-1&&(S=!1,_=v+1),p>=0&&(y===l.charCodeAt(p)?--p==-1&&(f=v):(p=-1,f=_))}return h===f?f=_:f===-1&&(f=a.length),a.slice(h,f)}for(v=a.length-1;v>=h;--v)if(o(a.charCodeAt(v))){if(!S){h=v+1;break}}else f===-1&&(S=!1,f=v+1);return f===-1?"":a.slice(h,f)},extname(a){i(a,"path");let l=0,h=-1,f=0,S=-1,v=!0,p=0;a.length>=2&&a.charCodeAt(1)===g&&d(a.charCodeAt(0))&&(l=f=2);for(let _=a.length-1;_>=l;--_){const y=a.charCodeAt(_);if(o(y)){if(!v){f=_+1;break}continue}S===-1&&(v=!1,S=_+1),y===b?h===-1?h=_:p!==1&&(p=1):h!==-1&&(p=-1)}return h===-1||S===-1||p===0||p===1&&h===S-1&&h===f+1?"":a.slice(h,S)},format:s.bind(null,"\\"),parse(a){i(a,"path");const l={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return l;const h=a.length;let f=0,S=a.charCodeAt(0);if(h===1)return o(S)?(l.root=l.dir=a,l):(l.base=l.name=a,l);if(o(S)){if(f=1,o(a.charCodeAt(1))){let D=2,M=D;for(;D0&&(l.root=a.slice(0,f));let v=-1,p=f,_=-1,y=!0,E=a.length-1,N=0;for(;E>=f;--E){if(S=a.charCodeAt(E),o(S)){if(!y){p=E+1;break}continue}_===-1&&(y=!1,_=E+1),S===b?v===-1?v=E:N!==1&&(N=1):v!==-1&&(N=-1)}return _!==-1&&(v===-1||N===0||N===1&&v===_-1&&v===p+1?l.base=l.name=a.slice(p,_):(l.name=a.slice(p,v),l.base=a.slice(p,_),l.ext=a.slice(v,_))),p>0&&p!==f?l.dir=a.slice(0,p-1):l.dir=l.root,l},sep:"\\",delimiter:";",win32:null,posix:null},e.posix={resolve(...a){let l="",h=!1;for(let f=a.length-1;f>=-1&&!h;f--){const S=f>=0?a[f]:L.cwd();i(S,"path"),S.length!==0&&(l=`${S}/${l}`,h=S.charCodeAt(0)===C)}return l=r(l,!h,"/",c),h?`/${l}`:l.length>0?l:"."},normalize(a){if(i(a,"path"),a.length===0)return".";const l=a.charCodeAt(0)===C,h=a.charCodeAt(a.length-1)===C;return a=r(a,!l,"/",c),a.length===0?l?"/":h?"./":".":(h&&(a+="/"),l?`/${a}`:a)},isAbsolute(a){return i(a,"path"),a.length>0&&a.charCodeAt(0)===C},join(...a){if(a.length===0)return".";let l;for(let h=0;h0&&(l===void 0?l=f:l+=`/${f}`)}return l===void 0?".":e.posix.normalize(l)},relative(a,l){if(i(a,"from"),i(l,"to"),a===l||(a=e.posix.resolve(a),l=e.posix.resolve(l),a===l))return"";const h=1,f=a.length,S=f-h,v=1,p=l.length-v,_=S_){if(l.charCodeAt(v+E)===C)return l.slice(v+E+1);if(E===0)return l.slice(v+E)}else S>_&&(a.charCodeAt(h+E)===C?y=E:E===0&&(y=0));let N="";for(E=h+y+1;E<=f;++E)(E===f||a.charCodeAt(E)===C)&&(N+=N.length===0?"..":"/..");return`${N}${l.slice(v+y)}`},toNamespacedPath(a){return a},dirname(a){if(i(a,"path"),a.length===0)return".";const l=a.charCodeAt(0)===C;let h=-1,f=!0;for(let S=a.length-1;S>=1;--S)if(a.charCodeAt(S)===C){if(!f){h=S;break}}else f=!1;return h===-1?l?"/":".":l&&h===1?"//":a.slice(0,h)},basename(a,l){l!==void 0&&i(l,"ext"),i(a,"path");let h=0,f=-1,S=!0,v;if(l!==void 0&&l.length>0&&l.length<=a.length){if(l===a)return"";let p=l.length-1,_=-1;for(v=a.length-1;v>=0;--v){const y=a.charCodeAt(v);if(y===C){if(!S){h=v+1;break}}else _===-1&&(S=!1,_=v+1),p>=0&&(y===l.charCodeAt(p)?--p==-1&&(f=v):(p=-1,f=_))}return h===f?f=_:f===-1&&(f=a.length),a.slice(h,f)}for(v=a.length-1;v>=0;--v)if(a.charCodeAt(v)===C){if(!S){h=v+1;break}}else f===-1&&(S=!1,f=v+1);return f===-1?"":a.slice(h,f)},extname(a){i(a,"path");let l=-1,h=0,f=-1,S=!0,v=0;for(let p=a.length-1;p>=0;--p){const _=a.charCodeAt(p);if(_===C){if(!S){h=p+1;break}continue}f===-1&&(S=!1,f=p+1),_===b?l===-1?l=p:v!==1&&(v=1):l!==-1&&(v=-1)}return l===-1||f===-1||v===0||v===1&&l===f-1&&l===h+1?"":a.slice(l,f)},format:s.bind(null,"/"),parse(a){i(a,"path");const l={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return l;const h=a.charCodeAt(0)===C;let f;h?(l.root="/",f=1):f=0;let S=-1,v=0,p=-1,_=!0,y=a.length-1,E=0;for(;y>=f;--y){const N=a.charCodeAt(y);if(N===C){if(!_){v=y+1;break}continue}p===-1&&(_=!1,p=y+1),N===b?S===-1?S=y:E!==1&&(E=1):S!==-1&&(E=-1)}if(p!==-1){const N=v===0&&h?1:v;S===-1||E===0||E===1&&S===p-1&&S===v+1?l.base=l.name=a.slice(N,p):(l.name=a.slice(N,S),l.base=a.slice(N,p),l.ext=a.slice(S,p))}return v>0?l.dir=a.slice(0,v-1):h&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=L.platform==="win32"?e.win32.normalize:e.posix.normalize,e.resolve=L.platform==="win32"?e.win32.resolve:e.posix.resolve,e.relative=L.platform==="win32"?e.win32.relative:e.posix.relative,e.dirname=L.platform==="win32"?e.win32.dirname:e.posix.dirname,e.basename=L.platform==="win32"?e.win32.basename:e.posix.basename,e.extname=L.platform==="win32"?e.win32.extname:e.posix.extname,e.sep=L.platform==="win32"?e.win32.sep:e.posix.sep}),define(te[139],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Range=void 0;var L;(function(m){function k(C,u){if(C.start>=u.end||u.start>=C.end)return{start:0,end:0};const g=Math.max(C.start,u.start),t=Math.min(C.end,u.end);return t-g<=0?{start:0,end:0}:{start:g,end:t}}m.intersect=k;function I(C){return C.end-C.start<=0}m.isEmpty=I;function w(C,u){return!I(k(C,u))}m.intersects=w;function b(C,u){const g=[],t={start:C.start,end:Math.min(u.start,C.end)},n={start:Math.max(u.end,C.start),end:C.end};return I(t)||g.push(t),I(n)||g.push(n),g}m.relativeComplement=b})(L=e.Range||(e.Range={}))}),define(te[318],ie([1,0,139]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RangeMap=e.consolidate=e.shift=e.groupIntersect=void 0;function m(C,u){const g=[];for(let t of u){if(C.start>=t.range.end)continue;if(C.endu.concat(g),[]))}class b{constructor(){this.groups=[],this._size=0}splice(u,g,t=[]){const n=t.length-g,i=m({start:0,end:u},this.groups),o=m({start:u+g,end:Number.POSITIVE_INFINITY},this.groups).map(d=>({range:k(d.range,n),size:d.size})),c=t.map((d,r)=>({range:{start:u+r,end:u+r+1},size:d.size}));this.groups=w(i,c,o),this._size=this.groups.reduce((d,r)=>d+r.size*(r.range.end-r.range.start),0)}get count(){const u=this.groups.length;return u?this.groups[u-1].range.end:0}get size(){return this._size}indexAt(u){if(u<0)return-1;let g=0,t=0;for(let n of this.groups){const i=n.range.end-n.range.start,o=t+i*n.size;if(um.Disposable.None;function l(z){if(b){const{onListenerDidAdd:j}=z,$=n.create();let G=0;z.onListenerDidAdd=()=>{++G==2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),$.print()),j==null||j()}}}function h(z){return(j,$=null,G)=>{let J=!1,re;return re=z(se=>{if(!J)return re?re.dispose():J=!0,j.call($,se)},null,G),J&&re.dispose(),re}}a.once=h;function f(z,j,$){return E((G,J=null,re)=>z(se=>G.call(J,j(se)),null,re),$)}a.map=f;function S(z,j,$){return E((G,J=null,re)=>z(se=>{j(se),G.call(J,se)},null,re),$)}a.forEach=S;function v(z,j,$){return E((G,J=null,re)=>z(se=>j(se)&&G.call(J,se),null,re),$)}a.filter=v;function p(z){return z}a.signal=p;function _(...z){return(j,$=null,G)=>(0,m.combinedDisposable)(...z.map(J=>J(re=>j.call($,re),null,G)))}a.any=_;function y(z,j,$,G){let J=$;return f(z,re=>(J=j(J,re),J),G)}a.reduce=y;function E(z,j){let $;const G={onFirstListenerAdd(){$=z(J.fire,J)},onLastListenerRemove(){$.dispose()}};j||l(G);const J=new o(G);return j&&j.add(J),J.event}function N(z,j,$=100,G=!1,J,re){let se,Z,V,K=0;const X={leakWarningThreshold:J,onFirstListenerAdd(){se=z(ae=>{K++,Z=j(Z,ae),G&&!V&&(oe.fire(Z),Z=void 0),clearTimeout(V),V=setTimeout(()=>{const ee=Z;Z=void 0,V=void 0,(!G||K>1)&&oe.fire(ee),K=0},$)})},onLastListenerRemove(){se.dispose()}};re||l(X);const oe=new o(X);return re&&re.add(oe),oe.event}a.debounce=N;function D(z,j=(G,J)=>G===J,$){let G=!0,J;return v(z,re=>{const se=G||!j(re,J);return G=!1,J=re,se},$)}a.latch=D;function M(z,j,$){return[a.filter(z,j,$),a.filter(z,G=>!j(G),$)]}a.split=M;function B(z,j=!1,$=[]){let G=$.slice(),J=z(Z=>{G?G.push(Z):se.fire(Z)});const re=()=>{G&&G.forEach(Z=>se.fire(Z)),G=null},se=new o({onFirstListenerAdd(){J||(J=z(Z=>se.fire(Z)))},onFirstListenerDidAdd(){G&&(j?setTimeout(re):re())},onLastListenerRemove(){J&&J.dispose(),J=null}});return se.event}a.buffer=B;class O{constructor(j){this.event=j}map(j){return new O(f(this.event,j))}forEach(j){return new O(S(this.event,j))}filter(j){return new O(v(this.event,j))}reduce(j,$){return new O(y(this.event,j,$))}latch(){return new O(D(this.event))}debounce(j,$=100,G=!1,J){return new O(N(this.event,j,$,G,J))}on(j,$,G){return this.event(j,$,G)}once(j,$,G){return h(this.event)(j,$,G)}}function T(z){return new O(z)}a.chain=T;function A(z,j,$=G=>G){const G=(...Z)=>se.fire($(...Z)),J=()=>z.on(j,G),re=()=>z.removeListener(j,G),se=new o({onFirstListenerAdd:J,onLastListenerRemove:re});return se.event}a.fromNodeEventEmitter=A;function P(z,j,$=G=>G){const G=(...Z)=>se.fire($(...Z)),J=()=>z.addEventListener(j,G),re=()=>z.removeEventListener(j,G),se=new o({onFirstListenerAdd:J,onLastListenerRemove:re});return se.event}a.fromDOMEventEmitter=P;function F(z){return new Promise(j=>h(z)(j))}a.toPromise=F;function W(z,j){return j(void 0),z($=>j($))}a.runAndSubscribe=W;function R(z,j){let $=null;function G(re){$==null||$.dispose(),$=new m.DisposableStore,j(re,$)}G(void 0);const J=z(re=>G(re));return(0,m.toDisposable)(()=>{J.dispose(),$==null||$.dispose()})}a.runAndSubscribeWithStore=R})(C=e.Event||(e.Event={}));class u{constructor(l){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${l}_${u._idPool++}`}start(l){this._stopWatch=new I.StopWatch(!0),this._listenerCount=l}stop(){if(this._stopWatch){const l=this._stopWatch.elapsed();this._elapsedOverall+=l,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${l.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}u._idPool=0;let g=-1;class t{constructor(l,h=Math.random().toString(18).slice(2,5)){this.customThreshold=l,this.name=h,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(l,h){let f=g;if(typeof this.customThreshold=="number"&&(f=this.customThreshold),f<=0||h{const v=this._stacks.get(l.value)||0;this._stacks.set(l.value,v-1)}}}class n{constructor(l){this.value=l}static create(){var l;return new n((l=new Error().stack)!==null&&l!==void 0?l:"")}print(){console.warn(this.value.split(`
+`).slice(2).join(`
+`))}}class i{constructor(l,h,f){this.callback=l,this.callbackThis=h,this.stack=f,this.subscription=new m.SafeDisposable}invoke(l){this.callback.call(this.callbackThis,l)}}class o{constructor(l){var h;this._disposed=!1,this._options=l,this._leakageMon=g>0?new t(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((h=this._options)===null||h===void 0?void 0:h._profName)?new u(this._options._profName):void 0}dispose(){var l,h,f,S;if(!this._disposed){if(this._disposed=!0,this._listeners){if(w){const v=Array.from(this._listeners);queueMicrotask(()=>{var p;for(const _ of v)_.subscription.isset()&&(_.subscription.unset(),(p=_.stack)===null||p===void 0||p.print())})}this._listeners.clear()}(l=this._deliveryQueue)===null||l===void 0||l.clear(),(f=(h=this._options)===null||h===void 0?void 0:h.onLastListenerRemove)===null||f===void 0||f.call(h),(S=this._leakageMon)===null||S===void 0||S.dispose()}}get event(){return this._event||(this._event=(l,h,f)=>{var S,v,p;this._listeners||(this._listeners=new k.LinkedList);const _=this._listeners.isEmpty();_&&((S=this._options)===null||S===void 0?void 0:S.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let y,E;this._leakageMon&&this._listeners.size>=30&&(E=n.create(),y=this._leakageMon.check(E,this._listeners.size+1)),w&&(E=E??n.create());const N=new i(l,h,E),D=this._listeners.push(N);_&&((v=this._options)===null||v===void 0?void 0:v.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),((p=this._options)===null||p===void 0?void 0:p.onListenerDidAdd)&&this._options.onListenerDidAdd(this,l,h);const M=N.subscription.set(()=>{y&&y(),this._disposed||(D(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return f instanceof m.DisposableStore?f.add(M):Array.isArray(f)&&f.push(M),M}),this._event}fire(l){var h,f;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new k.LinkedList);for(let S of this._listeners)this._deliveryQueue.push([S,l]);for((h=this._perfMon)===null||h===void 0||h.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[S,v]=this._deliveryQueue.shift();try{S.invoke(v)}catch(p){(0,L.onUnexpectedError)(p)}}(f=this._perfMon)===null||f===void 0||f.stop()}}}e.Emitter=o;class c extends o{constructor(l){super(l);this._isPaused=0,this._eventQueue=new k.LinkedList,this._mergeFn=l==null?void 0:l.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){const l=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(l))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(l){this._listeners&&(this._isPaused!==0?this._eventQueue.push(l):super.fire(l))}}e.PauseableEmitter=c;class d extends c{constructor(l){var h;super(l);this._delay=(h=l.delay)!==null&&h!==void 0?h:100}fire(l){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(l)}}e.DebounceEmitter=d;class r{constructor(){this.buffers=[]}wrapEvent(l){return(h,f,S)=>l(v=>{const p=this.buffers[this.buffers.length-1];p?p.push(()=>h.call(f,v)):h.call(f,v)},void 0,S)}bufferEvents(l){const h=[];this.buffers.push(h);const f=l();return this.buffers.pop(),h.forEach(S=>S()),f}}e.EventBufferer=r;class s{constructor(){this.listening=!1,this.inputEvent=C.None,this.inputEventListener=m.Disposable.None,this.emitter=new o({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(l){this.inputEvent=l,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=l(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=s}),define(te[34],ie([1,0,4,2]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isStandalone=e.isAndroid=e.isElectron=e.isWebkitWebView=e.isSafari=e.isChrome=e.isWebKit=e.isFirefox=e.getZoomFactor=e.PixelRatio=void 0;class k{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}k.INSTANCE=new k;class I extends m.Disposable{constructor(){super();this._onDidChange=this._register(new L.Emitter),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(t){this._mediaQueryList&&this._mediaQueryList.removeEventListener("change",this._listener),this._mediaQueryList=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class w extends m.Disposable{constructor(){super();this._onDidChange=this._register(new L.Emitter),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const t=this._register(new I);this._register(t.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}get value(){return this._value}_getPixelRatio(){const t=document.createElement("canvas").getContext("2d"),n=window.devicePixelRatio||1,i=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return n/i}}class b{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new w),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}e.PixelRatio=new b;function C(){return k.INSTANCE.getZoomFactor()}e.getZoomFactor=C;const u=navigator.userAgent;e.isFirefox=u.indexOf("Firefox")>=0,e.isWebKit=u.indexOf("AppleWebKit")>=0,e.isChrome=u.indexOf("Chrome")>=0,e.isSafari=!e.isChrome&&u.indexOf("Safari")>=0,e.isWebkitWebView=!e.isChrome&&!e.isSafari&&e.isWebKit,e.isElectron=u.indexOf("Electron/")>=0,e.isAndroid=u.indexOf("Android")>=0,e.isStandalone=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches}),define(te[167],ie([1,0,34,16]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserFeatures=void 0,e.BrowserFeatures={clipboard:{writeText:m.isNative||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:m.isNative||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>m.isNative||L.isStandalone?0:navigator.keyboard||L.isSafari?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}}),define(te[92],ie([1,0,4]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stopEvent=e.DomEmitter=void 0;class m{constructor(w,b,C){const u=g=>this.emitter.fire(g);this.emitter=new L.Emitter({onFirstListenerAdd:()=>w.addEventListener(b,u,C),onLastListenerRemove:()=>w.removeEventListener(b,u,C)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}e.DomEmitter=m;function k(I){return I.preventDefault(),I.stopPropagation(),I}e.stopEvent=k}),define(te[44],ie([1,0,34,58,96,16]),function(q,e,L,m,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandardKeyboardEvent=void 0;function w(n){if(n.charCode){let o=String.fromCharCode(n.charCode).toUpperCase();return m.KeyCodeUtils.fromString(o)}const i=n.keyCode;if(i===3)return 7;if(L.isFirefox){if(i===59)return 80;if(i===107)return 81;if(i===109)return 83;if(I.isMacintosh&&i===224)return 57}else if(L.isWebKit){if(i===91)return 57;if(I.isMacintosh&&i===93)return 57;if(!I.isMacintosh&&i===92)return 57}return m.EVENT_KEY_CODE_MAP[i]||0}const b=I.isMacintosh?256:2048,C=512,u=1024,g=I.isMacintosh?2048:256;class t{constructor(i){this._standardKeyboardEventBrand=!0;let o=i;this.browserEvent=o,this.target=o.target,this.ctrlKey=o.ctrlKey,this.shiftKey=o.shiftKey,this.altKey=o.altKey,this.metaKey=o.metaKey,this.keyCode=w(o),this.code=o.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(i){return this._asKeybinding===i}_computeKeybinding(){let i=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(i=this.keyCode);let o=0;return this.ctrlKey&&(o|=b),this.altKey&&(o|=C),this.shiftKey&&(o|=u),this.metaKey&&(o|=g),o|=i,o}_computeRuntimeKeybinding(){let i=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(i=this.keyCode),new k.SimpleKeybinding(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,i)}}e.StandardKeyboardEvent=t}),define(te[59],ie([1,0,34,214,16]),function(q,e,L,m,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandardWheelEvent=e.StandardMouseEvent=void 0;class I{constructor(C){this.timestamp=Date.now(),this.browserEvent=C,this.leftButton=C.button===0,this.middleButton=C.button===1,this.rightButton=C.button===2,this.buttons=C.buttons,this.target=C.target,this.detail=C.detail||1,C.type==="dblclick"&&(this.detail=2),this.ctrlKey=C.ctrlKey,this.shiftKey=C.shiftKey,this.altKey=C.altKey,this.metaKey=C.metaKey,typeof C.pageX=="number"?(this.posx=C.pageX,this.posy=C.pageY):(this.posx=C.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=C.clientY+document.body.scrollTop+document.documentElement.scrollTop);let u=m.IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(self,C.view);this.posx-=u.left,this.posy-=u.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}e.StandardMouseEvent=I;class w{constructor(C,u=0,g=0){if(this.browserEvent=C||null,this.target=C?C.target||C.targetNode||C.srcElement:null,this.deltaY=g,this.deltaX=u,C){let t=C,n=C;if(typeof t.wheelDeltaY!="undefined")this.deltaY=t.wheelDeltaY/120;else if(typeof n.VERTICAL_AXIS!="undefined"&&n.axis===n.VERTICAL_AXIS)this.deltaY=-n.detail/3;else if(C.type==="wheel"){const i=C;i.deltaMode===i.DOM_DELTA_LINE?L.isFirefox&&!k.isMacintosh?this.deltaY=-C.deltaY/3:this.deltaY=-C.deltaY:this.deltaY=-C.deltaY/40}if(typeof t.wheelDeltaX!="undefined")L.isSafari&&k.isWindows?this.deltaX=-(t.wheelDeltaX/120):this.deltaX=t.wheelDeltaX/120;else if(typeof n.HORIZONTAL_AXIS!="undefined"&&n.axis===n.HORIZONTAL_AXIS)this.deltaX=-C.detail/3;else if(C.type==="wheel"){const i=C;i.deltaMode===i.DOM_DELTA_LINE?L.isFirefox&&!k.isMacintosh?this.deltaX=-C.deltaX/3:this.deltaX=-C.deltaX:this.deltaX=-C.deltaX/40}this.deltaY===0&&this.deltaX===0&&C.wheelDelta&&(this.deltaY=C.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}e.StandardWheelEvent=w}),define(te[21],ie([1,0,4]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const m=Object.freeze(function(b,C){const u=setTimeout(b.bind(C),0);return{dispose(){clearTimeout(u)}}});var k;(function(b){function C(u){return u===b.None||u===b.Cancelled||u instanceof I?!0:!u||typeof u!="object"?!1:typeof u.isCancellationRequested=="boolean"&&typeof u.onCancellationRequested=="function"}b.isCancellationToken=C,b.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:L.Event.None}),b.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:m})})(k=e.CancellationToken||(e.CancellationToken={}));class I{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?m:(this._emitter||(this._emitter=new L.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class w{constructor(C){this._token=void 0,this._parentListener=void 0,this._parentListener=C&&C.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new I),this._token}cancel(){this._token?this._token instanceof I&&this._token.cancel():this._token=k.Cancelled}dispose(C=!1){C&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof I&&this._token.dispose():this._token=k.None}}e.CancellationTokenSource=w});var we=this&&this.__awaiter||function(q,e,L,m){function k(I){return I instanceof L?I:new L(function(w){w(I)})}return new(L||(L=Promise))(function(I,w){function b(g){try{u(m.next(g))}catch(t){w(t)}}function C(g){try{u(m.throw(g))}catch(t){w(t)}}function u(g){g.done?I(g.value):k(g.value).then(b,C)}u((m=m.apply(q,e||[])).next())})},pt=this&&this.__asyncValues||function(q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=q[Symbol.asyncIterator],L;return e?e.call(q):(q=typeof __values=="function"?__values(q):q[Symbol.iterator](),L={},m("next"),m("throw"),m("return"),L[Symbol.asyncIterator]=function(){return this},L);function m(I){L[I]=q[I]&&function(w){return new Promise(function(b,C){w=q[I](w),k(b,C,w.done,w.value)})}}function k(I,w,b,C){Promise.resolve(C).then(function(u){I({value:u,done:b})},w)}};define(te[10],ie([1,0,21,13,4,2,16]),function(q,e,L,m,k,I,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCancelableAsyncIterable=e.CancelableAsyncIterableObject=e.AsyncIterableObject=e.Promises=e.DeferredPromise=e.IdleValue=e.runWhenIdle=e.RunOnceScheduler=e.IntervalTimer=e.TimeoutTimer=e.first=e.disposableTimeout=e.timeout=e.ThrottledDelayer=e.Delayer=e.MicrotaskDelay=e.Throttler=e.raceCancellation=e.createCancelablePromise=e.isThenable=void 0;function b(y){return!!y&&typeof y.then=="function"}e.isThenable=b;function C(y){const E=new L.CancellationTokenSource,N=y(E.token),D=new Promise((M,B)=>{const O=E.token.onCancellationRequested(()=>{O.dispose(),E.dispose(),B(new m.CancellationError)});Promise.resolve(N).then(T=>{O.dispose(),E.dispose(),M(T)},T=>{O.dispose(),E.dispose(),B(T)})});return new class{cancel(){E.cancel()}then(M,B){return D.then(M,B)}catch(M){return this.then(void 0,M)}finally(M){return D.finally(M)}}}e.createCancelablePromise=C;function u(y,E,N){return new Promise((D,M)=>{const B=E.onCancellationRequested(()=>{B.dispose(),D(N)});y.then(D,M).finally(()=>B.dispose())})}e.raceCancellation=u;class g{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(E){if(this.activePromise){if(this.queuedPromiseFactory=E,!this.queuedPromise){const N=()=>{this.queuedPromise=null;const D=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,D};this.queuedPromise=new Promise(D=>{this.activePromise.then(N,N).then(D)})}return new Promise((N,D)=>{this.queuedPromise.then(N,D)})}return this.activePromise=E(),new Promise((N,D)=>{this.activePromise.then(M=>{this.activePromise=null,N(M)},M=>{this.activePromise=null,D(M)})})}}e.Throttler=g;const t=(y,E)=>{let N=!0;const D=setTimeout(()=>{N=!1,E()},y);return{isTriggered:()=>N,dispose:()=>{clearTimeout(D),N=!1}}},n=y=>{let E=!0;return queueMicrotask(()=>{E&&(E=!1,y())}),{isTriggered:()=>E,dispose:()=>{E=!1}}};e.MicrotaskDelay=Symbol("MicrotaskDelay");class i{constructor(E){this.defaultDelay=E,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(E,N=this.defaultDelay){this.task=E,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((M,B)=>{this.doResolve=M,this.doReject=B}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const M=this.task;return this.task=null,M()}}));const D=()=>{var M;this.deferred=null,(M=this.doResolve)===null||M===void 0||M.call(this,null)};return this.deferred=N===e.MicrotaskDelay?n(D):t(N,D),this.completionPromise}isTriggered(){var E;return!!((E=this.deferred)===null||E===void 0?void 0:E.isTriggered())}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(new m.CancellationError),this.completionPromise=null)}cancelTimeout(){var E;(E=this.deferred)===null||E===void 0||E.dispose(),this.deferred=null}dispose(){this.cancel()}}e.Delayer=i;class o{constructor(E){this.delayer=new i(E),this.throttler=new g}trigger(E,N){return this.delayer.trigger(()=>this.throttler.queue(E),N)}dispose(){this.delayer.dispose()}}e.ThrottledDelayer=o;function c(y,E){return E?new Promise((N,D)=>{const M=setTimeout(()=>{B.dispose(),N()},y),B=E.onCancellationRequested(()=>{clearTimeout(M),B.dispose(),D(new m.CancellationError)})}):C(N=>c(y,N))}e.timeout=c;function d(y,E=0){const N=setTimeout(y,E);return(0,I.toDisposable)(()=>clearTimeout(N))}e.disposableTimeout=d;function r(y,E=D=>!!D,N=null){let D=0;const M=y.length,B=()=>{if(D>=M)return Promise.resolve(N);const O=y[D++];return Promise.resolve(O()).then(A=>E(A)?Promise.resolve(A):B())};return B()}e.first=r;class s{constructor(E,N){this._token=-1,typeof E=="function"&&typeof N=="number"&&this.setIfNotSet(E,N)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(E,N){this.cancel(),this._token=setTimeout(()=>{this._token=-1,E()},N)}setIfNotSet(E,N){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,E()},N))}}e.TimeoutTimer=s;class a{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(E,N){this.cancel(),this._token=setInterval(()=>{E()},N)}}e.IntervalTimer=a;class l{constructor(E,N){this.timeoutToken=-1,this.runner=E,this.timeout=N,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(E=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,E)}get delay(){return this.timeout}set delay(E){this.timeout=E}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}e.RunOnceScheduler=l,function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?e.runWhenIdle=y=>{(0,w.setTimeout0)(()=>{if(E)return;const N=Date.now()+15;y(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,N-Date.now())}}))});let E=!1;return{dispose(){E||(E=!0)}}}:e.runWhenIdle=(y,E)=>{const N=requestIdleCallback(y,typeof E=="number"?{timeout:E}:void 0);let D=!1;return{dispose(){D||(D=!0,cancelIdleCallback(N))}}}}();class h{constructor(E){this._didRun=!1,this._executor=()=>{try{this._value=E()}catch(N){this._error=N}finally{this._didRun=!0}},this._handle=(0,e.runWhenIdle)(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}e.IdleValue=h;class f{constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((E,N)=>{this.completeCallback=E,this.errorCallback=N})}get isRejected(){return this.rejected}get isSettled(){return this.rejected||this.resolved}complete(E){return new Promise(N=>{this.completeCallback(E),this.resolved=!0,N()})}cancel(){new Promise(E=>{this.errorCallback(new m.CancellationError),this.rejected=!0,E()})}}e.DeferredPromise=f;var S;(function(y){function E(D){return we(this,void 0,void 0,function*(){let M;const B=yield Promise.all(D.map(O=>O.then(T=>T,T=>{M||(M=T)})));if(typeof M!="undefined")throw M;return B})}y.settled=E;function N(D){return new Promise((M,B)=>we(this,void 0,void 0,function*(){try{yield D(M,B)}catch(O){B(O)}}))}y.withAsyncBody=N})(S=e.Promises||(e.Promises={}));class v{constructor(E){this._state=0,this._results=[],this._error=null,this._onStateChanged=new k.Emitter,queueMicrotask(()=>we(this,void 0,void 0,function*(){const N={emitOne:D=>this.emitOne(D),emitMany:D=>this.emitMany(D),reject:D=>this.reject(D)};try{yield Promise.resolve(E(N)),this.resolve()}catch(D){this.reject(D)}finally{N.emitOne=void 0,N.emitMany=void 0,N.reject=void 0}}))}static fromArray(E){return new v(N=>{N.emitMany(E)})}static fromPromise(E){return new v(N=>we(this,void 0,void 0,function*(){N.emitMany(yield E)}))}static fromPromises(E){return new v(N=>we(this,void 0,void 0,function*(){yield Promise.all(E.map(D=>we(this,void 0,void 0,function*(){return N.emitOne(yield D)})))}))}static merge(E){return new v(N=>we(this,void 0,void 0,function*(){yield Promise.all(E.map(D=>{var M,B;return we(this,void 0,void 0,function*(){var O,T;try{for(M=pt(D);B=yield M.next(),!B.done;){const A=B.value;N.emitOne(A)}}catch(A){O={error:A}}finally{try{B&&!B.done&&(T=M.return)&&(yield T.call(M))}finally{if(O)throw O.error}}})}))}))}[Symbol.asyncIterator](){let E=0;return{next:()=>we(this,void 0,void 0,function*(){do{if(this._state===2)throw this._error;if(Ewe(this,void 0,void 0,function*(){var M,B;try{for(var O=pt(E),T;T=yield O.next(),!T.done;){const A=T.value;D.emitOne(N(A))}}catch(A){M={error:A}}finally{try{T&&!T.done&&(B=O.return)&&(yield B.call(O))}finally{if(M)throw M.error}}}))}map(E){return v.map(this,E)}static filter(E,N){return new v(D=>we(this,void 0,void 0,function*(){var M,B;try{for(var O=pt(E),T;T=yield O.next(),!T.done;){const A=T.value;N(A)&&D.emitOne(A)}}catch(A){M={error:A}}finally{try{T&&!T.done&&(B=O.return)&&(yield B.call(O))}finally{if(M)throw M.error}}}))}filter(E){return v.filter(this,E)}static coalesce(E){return v.filter(E,N=>!!N)}coalesce(){return v.coalesce(this)}static toPromise(E){var N,D,M,B;return we(this,void 0,void 0,function*(){const O=[];try{for(N=pt(E);D=yield N.next(),!D.done;){const T=D.value;O.push(T)}}catch(T){M={error:T}}finally{try{D&&!D.done&&(B=N.return)&&(yield B.call(N))}finally{if(M)throw M.error}}return O})}toPromise(){return v.toPromise(this)}emitOne(E){this._state===0&&(this._results.push(E),this._onStateChanged.fire())}emitMany(E){this._state===0&&(this._results=this._results.concat(E),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(E){this._state===0&&(this._state=2,this._error=E,this._onStateChanged.fire())}}e.AsyncIterableObject=v,v.EMPTY=v.fromArray([]);class p extends v{constructor(E,N){super(N);this._source=E}cancel(){this._source.cancel()}}e.CancelableAsyncIterableObject=p;function _(y){const E=new L.CancellationTokenSource,N=y(E.token);return new p(E,D=>we(this,void 0,void 0,function*(){var M,B;const O=E.token.onCancellationRequested(()=>{O.dispose(),E.dispose(),D.reject(new m.CancellationError)});try{try{for(var T=pt(N),A;A=yield T.next(),!A.done;){const P=A.value;if(E.token.isCancellationRequested)return;D.emitOne(P)}}catch(P){M={error:P}}finally{try{A&&!A.done&&(B=T.return)&&(yield B.call(T))}finally{if(M)throw M.error}}O.dispose(),E.dispose()}catch(P){O.dispose(),E.dispose(),D.reject(P)}}))}e.createCancelableAsyncIterable=_}),define(te[319],ie([1,0,10,2]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarVisibilityController=void 0;class k extends m.Disposable{constructor(w,b,C){super();this._visibility=w,this._visibleClassName=b,this._invisibleClassName=C,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new L.TimeoutTimer)}setVisibility(w){this._visibility!==w&&(this._visibility=w,this._updateShouldBeVisible())}setShouldBeVisible(w){this._rawShouldBeVisible=w,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const w=this._applyVisibilitySetting();this._shouldBeVisible!==w&&(this._shouldBeVisible=w,this.ensureVisibility())}setIsNeeded(w){this._isNeeded!==w&&(this._isNeeded=w,this.ensureVisibility())}setDomNode(w){this._domNode=w,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)},0))}_hide(w){this._revealTimer.cancel(),!!this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(w?" fade":"")))}}e.ScrollbarVisibilityController=k}),define(te[320],ie([1,0,10]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compareByPrefix=e.compareAnything=e.compareFileNames=void 0;const m=new L.IdleValue(()=>{const u=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:u,collatorIsNumeric:u.resolvedOptions().numeric}}),k=new L.IdleValue(()=>({collator:new Intl.Collator(void 0,{numeric:!0})})),I=new L.IdleValue(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}));function w(u,g,t=!1){const n=u||"",i=g||"",o=m.value.collator.compare(n,i);return m.value.collatorIsNumeric&&o===0&&n!==i?ni.length)return 1}return 0}e.compareByPrefix=C}),define(te[140],ie([1,0,4,2]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SmoothScrollingOperation=e.SmoothScrollingUpdate=e.Scrollable=e.ScrollState=void 0;class k{constructor(i,o,c,d,r,s,a){this._forceIntegerValues=i,this._scrollStateBrand=void 0,this._forceIntegerValues&&(o=o|0,c=c|0,d=d|0,r=r|0,s=s|0,a=a|0),this.rawScrollLeft=d,this.rawScrollTop=a,o<0&&(o=0),d+o>c&&(d=c-o),d<0&&(d=0),r<0&&(r=0),a+r>s&&(a=s-r),a<0&&(a=0),this.width=o,this.scrollWidth=c,this.scrollLeft=d,this.height=r,this.scrollHeight=s,this.scrollTop=a}equals(i){return this.rawScrollLeft===i.rawScrollLeft&&this.rawScrollTop===i.rawScrollTop&&this.width===i.width&&this.scrollWidth===i.scrollWidth&&this.scrollLeft===i.scrollLeft&&this.height===i.height&&this.scrollHeight===i.scrollHeight&&this.scrollTop===i.scrollTop}withScrollDimensions(i,o){return new k(this._forceIntegerValues,typeof i.width!="undefined"?i.width:this.width,typeof i.scrollWidth!="undefined"?i.scrollWidth:this.scrollWidth,o?this.rawScrollLeft:this.scrollLeft,typeof i.height!="undefined"?i.height:this.height,typeof i.scrollHeight!="undefined"?i.scrollHeight:this.scrollHeight,o?this.rawScrollTop:this.scrollTop)}withScrollPosition(i){return new k(this._forceIntegerValues,this.width,this.scrollWidth,typeof i.scrollLeft!="undefined"?i.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof i.scrollTop!="undefined"?i.scrollTop:this.rawScrollTop)}createScrollEvent(i,o){const c=this.width!==i.width,d=this.scrollWidth!==i.scrollWidth,r=this.scrollLeft!==i.scrollLeft,s=this.height!==i.height,a=this.scrollHeight!==i.scrollHeight,l=this.scrollTop!==i.scrollTop;return{inSmoothScrolling:o,oldWidth:i.width,oldScrollWidth:i.scrollWidth,oldScrollLeft:i.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:i.height,oldScrollHeight:i.scrollHeight,oldScrollTop:i.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:c,scrollWidthChanged:d,scrollLeftChanged:r,heightChanged:s,scrollHeightChanged:a,scrollTopChanged:l}}}e.ScrollState=k;class I extends m.Disposable{constructor(i){super();this._scrollableBrand=void 0,this._onScroll=this._register(new L.Emitter),this.onScroll=this._onScroll.event,this._smoothScrollDuration=i.smoothScrollDuration,this._scheduleAtNextAnimationFrame=i.scheduleAtNextAnimationFrame,this._state=new k(i.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(i){this._smoothScrollDuration=i}validateScrollPosition(i){return this._state.withScrollPosition(i)}getScrollDimensions(){return this._state}setScrollDimensions(i,o){const c=this._state.withScrollDimensions(i,o);this._setState(c,Boolean(this._smoothScrolling)),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(i){const o=this._state.withScrollPosition(i);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(o,!1)}setScrollPositionSmooth(i,o){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(i);if(this._smoothScrolling){i={scrollLeft:typeof i.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:i.scrollLeft,scrollTop:typeof i.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:i.scrollTop};const c=this._state.withScrollPosition(i);if(this._smoothScrolling.to.scrollLeft===c.scrollLeft&&this._smoothScrolling.to.scrollTop===c.scrollTop)return;let d;o?d=new u(this._smoothScrolling.from,c,this._smoothScrolling.startTime,this._smoothScrolling.duration):d=this._smoothScrolling.combine(this._state,c,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=d}else{const c=this._state.withScrollPosition(i);this._smoothScrolling=u.start(this._state,c,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const i=this._smoothScrolling.tick(),o=this._state.withScrollPosition(i);if(this._setState(o,!0),!!this._smoothScrolling){if(i.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(i,o){const c=this._state;c.equals(i)||(this._state=i,this._onScroll.fire(this._state.createScrollEvent(c,o)))}}e.Scrollable=I;class w{constructor(i,o,c){this.scrollLeft=i,this.scrollTop=o,this.isDone=c}}e.SmoothScrollingUpdate=w;function b(n,i){const o=i-n;return function(c){return n+o*t(c)}}function C(n,i,o){return function(c){return c2.5*c){let r,s;return i=ne.length?ge:ne[ce]})}e.format=b;function C(Y){return Y.replace(/[<>&]/g,function(ne){switch(ne){case"<":return"<";case">":return">";case"&":return"&";default:return ne}})}e.escape=C;function u(Y){return Y.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}e.escapeRegExpCharacters=u;function g(Y,ne=" "){const ge=t(Y,ne);return n(ge,ne)}e.trim=g;function t(Y,ne){if(!Y||!ne)return Y;const ge=ne.length;if(ge===0||Y.length===0)return Y;let fe=0;for(;Y.indexOf(ne,fe)===fe;)fe=fe+ge;return Y.substring(fe)}e.ltrim=t;function n(Y,ne){if(!Y||!ne)return Y;const ge=ne.length,fe=Y.length;if(ge===0||fe===0)return Y;let ce=fe,he=-1;for(;he=Y.lastIndexOf(ne,ce-1),!(he===-1||he+ge!==ce);){if(he===0)return"";ce=he}return Y.substring(0,ce)}e.rtrim=n;function i(Y){return Y.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}e.convertSimple2RegExpPattern=i;function o(Y){return Y.replace(/\*/g,"")}e.stripWildcards=o;function c(Y,ne,ge={}){if(!Y)throw new Error("Cannot create regex from empty string");ne||(Y=u(Y)),ge.wholeWord&&(/\B/.test(Y.charAt(0))||(Y="\\b"+Y),/\B/.test(Y.charAt(Y.length-1))||(Y=Y+"\\b"));let fe="";return ge.global&&(fe+="g"),ge.matchCase||(fe+="i"),ge.multiline&&(fe+="m"),ge.unicode&&(fe+="u"),new RegExp(Y,fe)}e.createRegExp=c;function d(Y){return Y.source==="^"||Y.source==="^$"||Y.source==="$"||Y.source==="^\\s*$"?!1:!!(Y.exec("")&&Y.lastIndex===0)}e.regExpLeadsToEndlessLoop=d;function r(Y){return(Y.global?"g":"")+(Y.ignoreCase?"i":"")+(Y.multiline?"m":"")+(Y.unicode?"u":"")}e.regExpFlags=r;function s(Y){return Y.split(/\r\n|\r|\n/)}e.splitLines=s;function a(Y){for(let ne=0,ge=Y.length;ne=0;ge--){const fe=Y.charCodeAt(ge);if(fe!==32&&fe!==9)return ge}return-1}e.lastNonWhitespaceIndex=h;function f(Y,ne){return Yne?1:0}e.compare=f;function S(Y,ne,ge=0,fe=Y.length,ce=0,he=ne.length){for(;gede)return 1}const ve=fe-ge,Ce=he-ce;return veCe?1:0}e.compareSubstring=S;function v(Y,ne){return p(Y,ne,0,Y.length,0,ne.length)}e.compareIgnoreCase=v;function p(Y,ne,ge=0,fe=Y.length,ce=0,he=ne.length){for(;ge=128||de>=128)return S(Y.toLowerCase(),ne.toLowerCase(),ge,fe,ce,he);_(be)&&(be-=32),_(de)&&(de-=32);const me=be-de;if(me!==0)return me}const ve=fe-ge,Ce=he-ce;return veCe?1:0}e.compareSubstringIgnoreCase=p;function _(Y){return Y>=97&&Y<=122}e.isLowerAsciiLetter=_;function y(Y){return Y>=65&&Y<=90}e.isUpperAsciiLetter=y;function E(Y,ne){return Y.length===ne.length&&p(Y,ne)===0}e.equalsIgnoreCase=E;function N(Y,ne){const ge=ne.length;return ne.length>Y.length?!1:p(Y,ne,0,ge)===0}e.startsWithIgnoreCase=N;function D(Y,ne){let ge,fe=Math.min(Y.length,ne.length);for(ge=0;ge1){const fe=Y.charCodeAt(ne-2);if(B(fe))return T(fe,ge)}return ge}class F{constructor(ne,ge=0){this._str=ne,this._len=ne.length,this._offset=ge}get offset(){return this._offset}setOffset(ne){this._offset=ne}prevCodePoint(){const ne=P(this._str,this._offset);return this._offset-=ne>=65536?2:1,ne}nextCodePoint(){const ne=A(this._str,this._len,this._offset);return this._offset+=ne>=65536?2:1,ne}eol(){return this._offset>=this._len}}e.CodePointIterator=F;class W{constructor(ne,ge=0){this._iterator=new F(ne,ge)}get offset(){return this._iterator.offset}nextGraphemeLength(){const ne=ee.getInstance(),ge=this._iterator,fe=ge.offset;let ce=ne.getGraphemeBreakType(ge.nextCodePoint());for(;!ge.eol();){const he=ge.offset,ve=ne.getGraphemeBreakType(ge.nextCodePoint());if(ae(ce,ve)){ge.setOffset(he);break}ce=ve}return ge.offset-fe}prevGraphemeLength(){const ne=ee.getInstance(),ge=this._iterator,fe=ge.offset;let ce=ne.getGraphemeBreakType(ge.prevCodePoint());for(;ge.offset>0;){const he=ge.offset,ve=ne.getGraphemeBreakType(ge.prevCodePoint());if(ae(ve,ce)){ge.setOffset(he);break}ce=ve}return fe-ge.offset}eol(){return this._iterator.eol()}}e.GraphemeIterator=W;function R(Y,ne){return new W(Y,ne).nextGraphemeLength()}e.nextCharLength=R;function z(Y,ne){return new W(Y,ne).prevGraphemeLength()}e.prevCharLength=z;function j(Y,ne){ne>0&&O(Y.charCodeAt(ne))&&ne--;const ge=ne+R(Y,ne);return[ge-z(Y,ge),ge]}e.getCharContainingOffset=j;const $=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function G(Y){return $.test(Y)}e.containsRTL=G;const J=/^[\t\n\r\x20-\x7E]*$/;function re(Y){return J.test(Y)}e.isBasicASCII=re,e.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function se(Y){return e.UNUSUAL_LINE_TERMINATORS.test(Y)}e.containsUnusualLineTerminators=se;function Z(Y){return Y>=11904&&Y<=55215||Y>=63744&&Y<=64255||Y>=65281&&Y<=65374}e.isFullWidthCharacter=Z;function V(Y){return Y>=127462&&Y<=127487||Y===8986||Y===8987||Y===9200||Y===9203||Y>=9728&&Y<=10175||Y===11088||Y===11093||Y>=127744&&Y<=128591||Y>=128640&&Y<=128764||Y>=128992&&Y<=129008||Y>=129280&&Y<=129535||Y>=129648&&Y<=129782}e.isEmojiImprecise=V,e.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function K(Y){return!!(Y&&Y.length>0&&Y.charCodeAt(0)===65279)}e.startsWithUTF8BOM=K;function X(Y,ne=!1){return Y?(ne&&(Y=Y.replace(/\\./g,"")),Y.toLowerCase()!==Y):!1}e.containsUppercaseCharacter=X;function oe(Y){const ne=90-65+1;return Y=Y%(2*ne),Yge[3*ce+1])ce=2*ce+1;else return ge[3*ce+2];return 0}}ee._INSTANCE=null;function ue(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function le(Y,ne){if(Y===0)return 0;const ge=x(Y,ne);if(ge!==void 0)return ge;const fe=new F(ne,Y);return fe.prevCodePoint(),fe.offset}e.getLeftDeleteOffset=le;function x(Y,ne){const ge=new F(ne,Y);let fe=ge.prevCodePoint();for(;H(fe)||fe===65039||fe===8419;){if(ge.offset===0)return;fe=ge.prevCodePoint()}if(!V(fe))return;let ce=ge.offset;return ce>0&&ge.prevCodePoint()===8205&&(ce=ge.offset),ce}function H(Y){return 127995<=Y&&Y<=127999}e.noBreakWhitespace="\xA0";class U{constructor(ne){this.confusableDictionary=ne}static getInstance(ne){return U.cache.get(Array.from(ne))}static getLocales(){return U._locales.getValue()}isAmbiguous(ne){return this.confusableDictionary.has(ne)}getPrimaryConfusable(ne){return this.confusableDictionary.get(ne)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}e.AmbiguousCharacters=U,k=U,U.ambiguousCharacterData=new m.Lazy(()=>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],"_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]}')),U.cache=new L.LRUCachedComputed(Y=>{function ne(de){const me=new Map;for(let _e=0;_e!de.startsWith("_")&&de in ce);he.length===0&&(he=["_default"]);let ve;for(const de of he){const me=ne(ce[de]);ve=fe(ve,me)}const Ce=ne(ce._common),be=ge(Ce,ve);return new U(be)}),U._locales=new m.Lazy(()=>Object.keys(U.ambiguousCharacterData.getValue()).filter(Y=>!Y.startsWith("_")));class Q{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(Q.getRawData())),this._data}static isInvisibleCharacter(ne){return Q.getData().has(ne)}static get codePoints(){return Q.getData()}}e.InvisibleCharacters=Q,Q._data=void 0}),define(te[168],ie([1,0,84,16,8]),function(q,e,L,m,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasDriveLetter=e.isRootOrDriveLetter=e.isWindowsDriveLetter=e.isEqualOrParent=e.getRoot=e.toPosixPath=e.toSlashes=e.isPathSeparator=void 0;function I(i){return i===47||i===92}e.isPathSeparator=I;function w(i){return i.replace(/[\\/]/g,L.posix.sep)}e.toSlashes=w;function b(i){return i.indexOf("/")===-1&&(i=w(i)),/^[a-zA-Z]:(\/|$)/.test(i)&&(i="/"+i),i}e.toPosixPath=b;function C(i,o=L.posix.sep){if(!i)return"";const c=i.length,d=i.charCodeAt(0);if(I(d)){if(I(i.charCodeAt(1))&&!I(i.charCodeAt(2))){let s=3;const a=s;for(;si.length)return!1;if(c){if(!(0,k.startsWithIgnoreCase)(i,o))return!1;if(o.length===i.length)return!0;let s=o.length;return o.charAt(o.length-1)===d&&s--,i.charAt(s)===d}return o.charAt(o.length-1)!==d&&(o+=d),i.indexOf(o)===0}e.isEqualOrParent=u;function g(i){return i>=65&&i<=90||i>=97&&i<=122}e.isWindowsDriveLetter=g;function t(i){const o=(0,L.normalize)(i);return m.isWindows?i.length>3?!1:n(o)&&(i.length===2||o.charCodeAt(2)===92):o===L.posix.sep}e.isRootOrDriveLetter=t;function n(i,o){return(o!==void 0?o:m.isWindows)?g(i.charCodeAt(0))&&i.charCodeAt(1)===58:!1}e.hasDriveLetter=n}),define(te[114],ie([1,0,8]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringSHA1=e.toHexString=e.stringHash=e.numberHash=e.doHash=e.hash=void 0;function m(c){return k(c,0)}e.hash=m;function k(c,d){switch(typeof c){case"object":return c===null?I(349,d):Array.isArray(c)?C(c,d):u(c,d);case"string":return b(c,d);case"boolean":return w(c,d);case"number":return I(c,d);case"undefined":return I(937,d);default:return I(617,d)}}e.doHash=k;function I(c,d){return(d<<5)-d+c|0}e.numberHash=I;function w(c,d){return I(c?433:863,d)}function b(c,d){d=I(149417,d);for(let r=0,s=c.length;rk(s,r),d)}function u(c,d){return d=I(181387,d),Object.keys(c).sort().reduce((r,s)=>(r=b(s,r),k(c[s],r)),d)}function g(c,d,r=32){const s=r-d,a=~((1<>>s)>>>0}function t(c,d=0,r=c.byteLength,s=0){for(let a=0;ar.toString(16).padStart(2,"0")).join(""):n((c>>>0).toString(16),d/4)}e.toHexString=i;class o{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(d){const r=d.length;if(r===0)return;const s=this._buff;let a=this._buffLen,l=this._leftoverHighSurrogate,h,f;for(l!==0?(h=l,f=-1,l=0):(h=d.charCodeAt(0),f=0);;){let S=h;if(L.isHighSurrogate(h))if(f+1>>6,d[r++]=128|(s&63)>>>0):s<65536?(d[r++]=224|(s&61440)>>>12,d[r++]=128|(s&4032)>>>6,d[r++]=128|(s&63)>>>0):(d[r++]=240|(s&1835008)>>>18,d[r++]=128|(s&258048)>>>12,d[r++]=128|(s&4032)>>>6,d[r++]=128|(s&63)>>>0),r>=64&&(this._step(),r-=64,this._totalLen+=64,d[0]=d[64+0],d[1]=d[64+1],d[2]=d[64+2]),r}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),i(this._h0)+i(this._h1)+i(this._h2)+i(this._h3)+i(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,t(this._buff,this._buffLen),this._buffLen>56&&(this._step(),t(this._buff));const d=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(d/4294967296),!1),this._buffDV.setUint32(60,d%4294967296,!1),this._step()}_step(){const d=o._bigBlock32,r=this._buffDV;for(let _=0;_<64;_+=4)d.setUint32(_,r.getUint32(_,!1),!1);for(let _=64;_<320;_+=4)d.setUint32(_,g(d.getUint32(_-12,!1)^d.getUint32(_-32,!1)^d.getUint32(_-56,!1)^d.getUint32(_-64,!1),1),!1);let s=this._h0,a=this._h1,l=this._h2,h=this._h3,f=this._h4,S,v,p;for(let _=0;_<80;_++)_<20?(S=a&l|~a&h,v=1518500249):_<40?(S=a^l^h,v=1859775393):_<60?(S=a&l|a&h|l&h,v=2400959708):(S=a^l^h,v=3395469782),p=g(s,5)+S+f+v+d.getUint32(_*4,!1)&4294967295,f=h,h=l,l=g(a,30),a=s,s=p;this._h0=this._h0+s&4294967295,this._h1=this._h1+a&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+f&4294967295}}e.StringSHA1=o,o._bigBlock32=new DataView(new ArrayBuffer(320))}),define(te[141],ie([1,0,313,114]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LcsDiff=e.MyArray=e.Debug=e.stringDiff=e.StringDiffSequence=void 0;class k{constructor(t){this.source=t}getElements(){const t=this.source,n=new Int32Array(t.length);for(let i=0,o=t.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new L.DiffChange(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 u{constructor(t,n,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=t,this._modifiedSequence=n;const[o,c,d]=u._getElements(t),[r,s,a]=u._getElements(n);this._hasStrings=d&&a,this._originalStringElements=o,this._originalElementsOrHash=c,this._modifiedStringElements=r,this._modifiedElementsOrHash=s,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(u._isStringArray(n)){const i=new Int32Array(n.length);for(let o=0,c=n.length;o=t&&o>=i&&this.ElementsAreEqual(n,o);)n--,o--;if(t>n||i>o){let h;return i<=o?(w.Assert(t===n+1,"originalStart should only be one more than originalEnd"),h=[new L.DiffChange(t,0,i,o-i+1)]):t<=n?(w.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),h=[new L.DiffChange(t,n-t+1,i,0)]):(w.Assert(t===n+1,"originalStart should only be one more than originalEnd"),w.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),h=[]),h}const d=[0],r=[0],s=this.ComputeRecursionPoint(t,n,i,o,d,r,c),a=d[0],l=r[0];if(s!==null)return s;if(!c[0]){const h=this.ComputeDiffRecursive(t,a,i,l,c);let f=[];return c[0]?f=[new L.DiffChange(a+1,n-(a+1)+1,l+1,o-(l+1)+1)]:f=this.ComputeDiffRecursive(a+1,n,l+1,o,c),this.ConcatenateChanges(h,f)}return[new L.DiffChange(t,n-t+1,i,o-i+1)]}WALKTRACE(t,n,i,o,c,d,r,s,a,l,h,f,S,v,p,_,y,E){let N=null,D=null,M=new C,B=n,O=i,T=S[0]-_[0]-o,A=-1073741824,P=this.m_forwardHistory.length-1;do{const F=T+t;F===B||F=0&&(a=this.m_forwardHistory[P],t=a[0],B=1,O=a.length-1)}while(--P>=-1);if(N=M.getReverseChanges(),E[0]){let F=S[0]+1,W=_[0]+1;if(N!==null&&N.length>0){const R=N[N.length-1];F=Math.max(F,R.getOriginalEnd()),W=Math.max(W,R.getModifiedEnd())}D=[new L.DiffChange(F,f-F+1,W,p-W+1)]}else{M=new C,B=d,O=r,T=S[0]-_[0]-s,A=1073741824,P=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const F=T+c;F===B||F=l[F+1]?(h=l[F+1]-1,v=h-T-s,h>A&&M.MarkNextChange(),A=h+1,M.AddOriginalElement(h+1,v+1),T=F+1-c):(h=l[F-1],v=h-T-s,h>A&&M.MarkNextChange(),A=h,M.AddModifiedElement(h+1,v+1),T=F-1-c),P>=0&&(l=this.m_reverseHistory[P],c=l[0],B=1,O=l.length-1)}while(--P>=-1);D=M.getChanges()}return this.ConcatenateChanges(N,D)}ComputeRecursionPoint(t,n,i,o,c,d,r){let s=0,a=0,l=0,h=0,f=0,S=0;t--,i--,c[0]=0,d[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const v=n-t+(o-i),p=v+1,_=new Int32Array(p),y=new Int32Array(p),E=o-i,N=n-t,D=t-i,M=n-o,O=(N-E)%2==0;_[E]=t,y[N]=n,r[0]=!1;for(let T=1;T<=v/2+1;T++){let A=0,P=0;l=this.ClipDiagonalBound(E-T,T,E,p),h=this.ClipDiagonalBound(E+T,T,E,p);for(let W=l;W<=h;W+=2){W===l||WA+P&&(A=s,P=a),!O&&Math.abs(W-N)<=T-1&&s>=y[W])return c[0]=s,d[0]=a,R<=y[W]&&1447>0&&T<=1447+1?this.WALKTRACE(E,l,h,D,N,f,S,M,_,y,s,n,c,a,o,d,O,r):null}const F=(A-t+(P-i)-T)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(A,F))return r[0]=!0,c[0]=A,d[0]=P,F>0&&1447>0&&T<=1447+1?this.WALKTRACE(E,l,h,D,N,f,S,M,_,y,s,n,c,a,o,d,O,r):(t++,i++,[new L.DiffChange(t,n-t+1,i,o-i+1)]);f=this.ClipDiagonalBound(N-T,T,N,p),S=this.ClipDiagonalBound(N+T,T,N,p);for(let W=f;W<=S;W+=2){W===f||W=y[W+1]?s=y[W+1]-1:s=y[W-1],a=s-(W-N)-M;const R=s;for(;s>t&&a>i&&this.ElementsAreEqual(s,a);)s--,a--;if(y[W]=s,O&&Math.abs(W-E)<=T&&s<=_[W])return c[0]=s,d[0]=a,R>=_[W]&&1447>0&&T<=1447+1?this.WALKTRACE(E,l,h,D,N,f,S,M,_,y,s,n,c,a,o,d,O,r):null}if(T<=1447){let W=new Int32Array(h-l+2);W[0]=E-l+1,b.Copy2(_,l,W,1,h-l+1),this.m_forwardHistory.push(W),W=new Int32Array(S-f+2),W[0]=N-f+1,b.Copy2(y,f,W,1,S-f+1),this.m_reverseHistory.push(W)}}return this.WALKTRACE(E,l,h,D,N,f,S,M,_,y,s,n,c,a,o,d,O,r)}PrettifyChanges(t){for(let n=0;n0,r=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;n--){const i=t[n];let o=0,c=0;if(n>0){const h=t[n-1];o=h.originalStart+h.originalLength,c=h.modifiedStart+h.modifiedLength}const d=i.originalLength>0,r=i.modifiedLength>0;let s=0,a=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let h=1;;h++){const f=i.originalStart-h,S=i.modifiedStart-h;if(fa&&(a=p,s=h)}i.originalStart-=s,i.modifiedStart-=s;const l=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],l)){t[n-1]=l[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,i=t.length;n0&&S>s&&(s=S,a=h,l=f)}return s>0?[a,l]:null}_contiguousSequenceScore(t,n,i){let o=0;for(let c=0;c=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 i=t+n;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))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 i=t+n;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(t,n,i,o){const c=this._OriginalRegionIsBoundary(t,n)?1:0,d=this._ModifiedRegionIsBoundary(i,o)?1:0;return c+d}ConcatenateChanges(t,n){let i=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],i)){const o=new Array(t.length+n.length-1);return b.Copy(t,0,o,0,t.length-1),o[t.length-1]=i[0],b.Copy(n,1,o,t.length,n.length-1),o}else{const o=new Array(t.length+n.length);return b.Copy(t,0,o,0,t.length),b.Copy(n,0,o,t.length,n.length),o}}ChangesOverlap(t,n,i){if(w.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),w.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 o=t.originalStart;let c=t.originalLength;const d=t.modifiedStart;let r=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(c=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(r=n.modifiedStart+n.modifiedLength-t.modifiedStart),i[0]=new L.DiffChange(o,c,d,r),!0}else return i[0]=null,!1}ClipDiagonalBound(t,n,i,o){if(t>=0&&tl.lastDiffIds},{getElements:()=>[...l.children.slice(0,f),...h,...l.children.slice(f+c)].map(E=>i.getId(E.element).toString())}).ComputeDiff(!1);if(S.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(o,c,h,r);const v=o.slice(0,-1),p=(E,N,D)=>{if(s>0)for(let M=0;MD.originalStart-N.originalStart))p(_,y,_-(E.originalStart+E.originalLength)),_=E.originalStart,y=E.modifiedStart-f,this.spliceSimple([...v,_],E.originalLength,b.Iterable.slice(h,y,y+E.modifiedLength),r);p(_,y,_)}spliceSimple(i,o,c=b.Iterable.empty(),{onDidCreateNode:d,onDidDeleteNode:r,diffIdentityProvider:s}){const{parentNode:a,listIndex:l,revealed:h,visible:f}=this.getParentNodeWithListIndex(i),S=[],v=b.Iterable.map(c,A=>this.createTreeNode(A,a,a.visible?1:0,h,S,d)),p=i[i.length-1],_=a.children.length>0;let y=0;for(let A=p;A>=0&&As.getId(A.element).toString())):a.lastDiffIds=a.children.map(A=>s.getId(A.element).toString()):a.lastDiffIds=void 0;let B=0;for(const A of M)A.visible&&B++;if(B!==0)for(let A=p+E.length;AP+(F.visible?F.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(a,D-A),this.list.splice(l,A,S)}if(M.length>0&&r){const A=P=>{r(P),P.children.forEach(A)};M.forEach(A)}this._onDidSplice.fire({insertedNodes:E,deletedNodes:M});const O=a.children.length>0;_!==O&&this.setCollapsible(i.slice(0,-1),O);let T=a;for(;T;){if(T.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}T=T.parent}}rerender(i){if(i.length===0)throw new L.TreeError(this.user,"Invalid tree location");const{node:o,listIndex:c,revealed:d}=this.getTreeNodeWithListIndex(i);o.visible&&d&&this.list.splice(c,1,[o])}has(i){return this.hasTreeNode(i)}getListIndex(i){const{listIndex:o,visible:c,revealed:d}=this.getTreeNodeWithListIndex(i);return c&&d?o:-1}getListRenderCount(i){return this.getTreeNode(i).renderNodeCount}isCollapsible(i){return this.getTreeNode(i).collapsible}setCollapsible(i,o){const c=this.getTreeNode(i);typeof o=="undefined"&&(o=!c.collapsible);const d={collapsible:o};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(i,d))}isCollapsed(i){return this.getTreeNode(i).collapsed}setCollapsed(i,o,c){const d=this.getTreeNode(i);typeof o=="undefined"&&(o=!d.collapsed);const r={collapsed:o,recursive:c||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(i,r))}_setCollapseState(i,o){const{node:c,listIndex:d,revealed:r}=this.getTreeNodeWithListIndex(i),s=this._setListNodeCollapseState(c,d,r,o);if(c!==this.root&&this.autoExpandSingleChildren&&s&&!g(o)&&c.collapsible&&!c.collapsed&&!o.recursive){let a=-1;for(let l=0;l-1){a=-1;break}else a=l;a>-1&&this._setCollapseState([...i,a],o)}return s}_setListNodeCollapseState(i,o,c,d){const r=this._setNodeCollapseState(i,d,!1);if(!c||!i.visible||!r)return r;const s=i.renderNodeCount,a=this.updateNodeAfterCollapseChange(i),l=s-(o===-1?0:1);return this.list.splice(o+1,l,a.slice(1)),r}_setNodeCollapseState(i,o,c){let d;if(i===this.root?d=!1:(g(o)?(d=i.collapsible!==o.collapsible,i.collapsible=o.collapsible):i.collapsible?(d=i.collapsed!==o.collapsed,i.collapsed=o.collapsed):d=!1,d&&this._onDidChangeCollapseState.fire({node:i,deep:c})),!g(o)&&o.recursive)for(const r of i.children)d=this._setNodeCollapseState(r,o,!0)||d;return d}expandTo(i){this.eventBufferer.bufferEvents(()=>{let o=this.getTreeNode(i);for(;o.parent;)o=o.parent,i=i.slice(0,i.length-1),o.collapsed&&this._setCollapseState(i,{collapsed:!1,recursive:!1})})}refilter(){const i=this.root.renderNodeCount,o=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,i,o),this.refilterDelayer.cancel()}createTreeNode(i,o,c,d,r,s){const a={parent:o,element:i.element,children:[],depth:o.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof i.collapsible=="boolean"?i.collapsible:typeof i.collapsed!="undefined",collapsed:typeof i.collapsed=="undefined"?this.collapseByDefault:i.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},l=this._filterNode(a,c);a.visibility=l,d&&r.push(a);const h=i.children||b.Iterable.empty(),f=d&&l!==0&&!a.collapsed,S=b.Iterable.map(h,_=>this.createTreeNode(_,a,l,f,r,s));let v=0,p=1;for(const _ of S)a.children.push(_),p+=_.renderNodeCount,_.visible&&(_.visibleChildIndex=v++);return a.collapsible=a.collapsible||a.children.length>0,a.visibleChildrenCount=v,a.visible=l===2?v>0:l===1,a.visible?a.collapsed||(a.renderNodeCount=p):(a.renderNodeCount=0,d&&r.pop()),s&&s(a),a}updateNodeAfterCollapseChange(i){const o=i.renderNodeCount,c=[];return this._updateNodeAfterCollapseChange(i,c),this._updateAncestorsRenderNodeCount(i.parent,c.length-o),c}_updateNodeAfterCollapseChange(i,o){if(i.visible===!1)return 0;if(o.push(i),i.renderNodeCount=1,!i.collapsed)for(const c of i.children)i.renderNodeCount+=this._updateNodeAfterCollapseChange(c,o);return this._onDidChangeRenderNodeCount.fire(i),i.renderNodeCount}updateNodeAfterFilterChange(i){const o=i.renderNodeCount,c=[];return this._updateNodeAfterFilterChange(i,i.visible?1:0,c),this._updateAncestorsRenderNodeCount(i.parent,c.length-o),c}_updateNodeAfterFilterChange(i,o,c,d=!0){let r;if(i!==this.root){if(r=this._filterNode(i,o),r===0)return i.visible=!1,i.renderNodeCount=0,!1;d&&c.push(i)}const s=c.length;i.renderNodeCount=i===this.root?0:1;let a=!1;if(!i.collapsed||r!==0){let l=0;for(const h of i.children)a=this._updateNodeAfterFilterChange(h,r,c,d&&!i.collapsed)||a,h.visible&&(h.visibleChildIndex=l++);i.visibleChildrenCount=l}else i.visibleChildrenCount=0;return i!==this.root&&(i.visible=r===2?a:r===1,i.visibility=r),i.visible?i.collapsed||(i.renderNodeCount+=c.length-s):(i.renderNodeCount=0,d&&c.pop()),this._onDidChangeRenderNodeCount.fire(i),i.visible}_updateAncestorsRenderNodeCount(i,o){if(o!==0)for(;i;)i.renderNodeCount+=o,this._onDidChangeRenderNodeCount.fire(i),i=i.parent}_filterNode(i,o){const c=this.filter?this.filter.filter(i.element,o):1;return typeof c=="boolean"?(i.filterData=void 0,c?1:0):C(c)?(i.filterData=c.data,u(c.visibility)):(i.filterData=void 0,u(c))}hasTreeNode(i,o=this.root){if(!i||i.length===0)return!0;const[c,...d]=i;return c<0||c>o.children.length?!1:this.hasTreeNode(d,o.children[c])}getTreeNode(i,o=this.root){if(!i||i.length===0)return o;const[c,...d]=i;if(c<0||c>o.children.length)throw new L.TreeError(this.user,"Invalid tree location");return this.getTreeNode(d,o.children[c])}getTreeNodeWithListIndex(i){if(i.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:o,listIndex:c,revealed:d,visible:r}=this.getParentNodeWithListIndex(i),s=i[i.length-1];if(s<0||s>o.children.length)throw new L.TreeError(this.user,"Invalid tree location");const a=o.children[s];return{node:a,listIndex:c,revealed:d,visible:r&&a.visible}}getParentNodeWithListIndex(i,o=this.root,c=0,d=!0,r=!0){const[s,...a]=i;if(s<0||s>o.children.length)throw new L.TreeError(this.user,"Invalid tree location");for(let l=0;l{var c;if(o.element===null)return;const d=o;if(g.add(d.element),this.nodes.set(d.element,d),this.identityProvider){const r=this.identityProvider.getId(d.element).toString();t.add(r),this.nodesByIdentity.set(r,d)}(c=u.onDidCreateNode)===null||c===void 0||c.call(u,d)},i=o=>{var c;if(o.element===null)return;const d=o;if(g.has(d.element)||this.nodes.delete(d.element),this.identityProvider){const r=this.identityProvider.getId(d.element).toString();t.has(r)||this.nodesByIdentity.delete(r)}(c=u.onDidDeleteNode)===null||c===void 0||c.call(u,d)};this.model.splice([...b,0],Number.MAX_VALUE,C,Object.assign(Object.assign({},u),{onDidCreateNode:n,onDidDeleteNode:i}))}preserveCollapseState(b=k.Iterable.empty()){return this.sorter&&(b=[...b].sort(this.sorter.compare.bind(this.sorter))),k.Iterable.map(b,C=>{let u=this.nodes.get(C.element);if(!u&&this.identityProvider){const n=this.identityProvider.getId(C.element).toString();u=this.nodesByIdentity.get(n)}if(!u)return Object.assign(Object.assign({},C),{children:this.preserveCollapseState(C.children)});const g=typeof C.collapsible=="boolean"?C.collapsible:u.collapsible,t=typeof C.collapsed!="undefined"?C.collapsed:u.collapsed;return Object.assign(Object.assign({},C),{collapsible:g,collapsed:t,children:this.preserveCollapseState(C.children)})})}rerender(b){const C=this.getElementLocation(b);this.model.rerender(C)}getFirstElementChild(b=null){const C=this.getElementLocation(b);return this.model.getFirstElementChild(C)}has(b){return this.nodes.has(b)}getListIndex(b){const C=this.getElementLocation(b);return this.model.getListIndex(C)}getListRenderCount(b){const C=this.getElementLocation(b);return this.model.getListRenderCount(C)}isCollapsible(b){const C=this.getElementLocation(b);return this.model.isCollapsible(C)}setCollapsible(b,C){const u=this.getElementLocation(b);return this.model.setCollapsible(u,C)}isCollapsed(b){const C=this.getElementLocation(b);return this.model.isCollapsed(C)}setCollapsed(b,C,u){const g=this.getElementLocation(b);return this.model.setCollapsed(g,C,u)}expandTo(b){const C=this.getElementLocation(b);this.model.expandTo(C)}refilter(){this.model.refilter()}getNode(b=null){if(b===null)return this.model.getNode(this.model.rootRef);const C=this.nodes.get(b);if(!C)throw new m.TreeError(this.user,`Tree element not found: ${b}`);return C}getNodeLocation(b){return b.element}getParentNodeLocation(b){if(b===null)throw new m.TreeError(this.user,"Invalid getParentNodeLocation call");const C=this.nodes.get(b);if(!C)throw new m.TreeError(this.user,`Tree element not found: ${b}`);const u=this.model.getNodeLocation(C),g=this.model.getParentNodeLocation(u);return this.model.getNode(g).element}getElementLocation(b){if(b===null)return[];const C=this.nodes.get(b);if(!C)throw new m.TreeError(this.user,`Tree element not found: ${b}`);return this.model.getNodeLocation(C)}}e.ObjectTreeModel=I}),define(te[321],ie([1,0,170,111,4,57]),function(q,e,L,m,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompressibleObjectTreeModel=e.DefaultElementMapper=e.CompressedObjectTreeModel=e.decompress=e.compress=void 0;function w(s){const a=[s.element],l=s.incompressible||!1;return{element:{elements:a,incompressible:l},children:I.Iterable.map(I.Iterable.from(s.children),w),collapsible:s.collapsible,collapsed:s.collapsed}}function b(s){const a=[s.element],l=s.incompressible||!1;let h,f;for(;[f,h]=I.Iterable.consume(I.Iterable.from(s.children),2),!(f.length!==1||f[0].incompressible);)s=f[0],a.push(s.element);return{element:{elements:a,incompressible:l},children:I.Iterable.map(I.Iterable.concat(f,h),b),collapsible:s.collapsible,collapsed:s.collapsed}}e.compress=b;function C(s,a=0){let l;return aC(h,0)),a===0&&s.element.incompressible?{element:s.element.elements[a],children:l,incompressible:!0,collapsible:s.collapsible,collapsed:s.collapsed}:{element:s.element.elements[a],children:l,collapsible:s.collapsible,collapsed:s.collapsed}}function u(s){return C(s,0)}e.decompress=u;function g(s,a,l){return s.element===a?Object.assign(Object.assign({},s),{children:l}):Object.assign(Object.assign({},s),{children:I.Iterable.map(I.Iterable.from(s.children),h=>g(h,a,l))})}const t=s=>({getId(a){return a.elements.map(l=>s.getId(l).toString()).join("\0")}});class n{constructor(a,l,h={}){this.user=a,this.rootRef=null,this.nodes=new Map,this.model=new L.ObjectTreeModel(a,l,h),this.enabled=typeof h.compressionEnabled=="undefined"?!0:h.compressionEnabled,this.identityProvider=h.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(a,l=I.Iterable.empty(),h){const f=h.diffIdentityProvider&&t(h.diffIdentityProvider);if(a===null){const M=I.Iterable.map(l,this.enabled?b:w);this._setChildren(null,M,{diffIdentityProvider:f,diffDepth:1/0});return}const S=this.nodes.get(a);if(!S)throw new Error("Unknown compressed tree node");const v=this.model.getNode(S),p=this.model.getParentNodeLocation(S),_=this.model.getNode(p),y=u(v),E=g(y,a,l),N=(this.enabled?b:w)(E),D=_.children.map(M=>M===v?N:M);this._setChildren(_.element,D,{diffIdentityProvider:f,diffDepth:v.depth-_.depth})}setCompressionEnabled(a){if(a===this.enabled)return;this.enabled=a;const h=this.model.getNode().children,f=I.Iterable.map(h,u),S=I.Iterable.map(f,a?b:w);this._setChildren(null,S,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(a,l,h){const f=new Set,S=p=>{for(const _ of p.element.elements)f.add(_),this.nodes.set(_,p.element)},v=p=>{for(const _ of p.element.elements)f.has(_)||this.nodes.delete(_)};this.model.setChildren(a,l,Object.assign(Object.assign({},h),{onDidCreateNode:S,onDidDeleteNode:v}))}has(a){return this.nodes.has(a)}getListIndex(a){const l=this.getCompressedNode(a);return this.model.getListIndex(l)}getListRenderCount(a){const l=this.getCompressedNode(a);return this.model.getListRenderCount(l)}getNode(a){if(typeof a=="undefined")return this.model.getNode();const l=this.getCompressedNode(a);return this.model.getNode(l)}getNodeLocation(a){const l=this.model.getNodeLocation(a);return l===null?null:l.elements[l.elements.length-1]}getParentNodeLocation(a){const l=this.getCompressedNode(a),h=this.model.getParentNodeLocation(l);return h===null?null:h.elements[h.elements.length-1]}getFirstElementChild(a){const l=this.getCompressedNode(a);return this.model.getFirstElementChild(l)}isCollapsible(a){const l=this.getCompressedNode(a);return this.model.isCollapsible(l)}setCollapsible(a,l){const h=this.getCompressedNode(a);return this.model.setCollapsible(h,l)}isCollapsed(a){const l=this.getCompressedNode(a);return this.model.isCollapsed(l)}setCollapsed(a,l,h){const f=this.getCompressedNode(a);return this.model.setCollapsed(f,l,h)}expandTo(a){const l=this.getCompressedNode(a);this.model.expandTo(l)}rerender(a){const l=this.getCompressedNode(a);this.model.rerender(l)}refilter(){this.model.refilter()}getCompressedNode(a){if(a===null)return null;const l=this.nodes.get(a);if(!l)throw new m.TreeError(this.user,`Tree element not found: ${a}`);return l}}e.CompressedObjectTreeModel=n;const i=s=>s[s.length-1];e.DefaultElementMapper=i;class o{constructor(a,l){this.unwrapper=a,this.node=l}get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(a=>new o(this.unwrapper,a))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}function c(s,a){return{splice(l,h,f){a.splice(l,h,f.map(S=>s.map(S)))},updateElementHeight(l,h){a.updateElementHeight(l,h)}}}function d(s,a){return Object.assign(Object.assign({},a),{identityProvider:a.identityProvider&&{getId(l){return a.identityProvider.getId(s(l))}},sorter:a.sorter&&{compare(l,h){return a.sorter.compare(l.elements[0],h.elements[0])}},filter:a.filter&&{filter(l,h){return a.filter.filter(s(l),h)}}})}class r{constructor(a,l,h={}){this.rootRef=null,this.elementMapper=h.elementMapper||e.DefaultElementMapper;const f=S=>this.elementMapper(S.elements);this.nodeMapper=new m.WeakMapper(S=>new o(f,S)),this.model=new n(a,c(this.nodeMapper,l),d(f,h))}get onDidSplice(){return k.Event.map(this.model.onDidSplice,({insertedNodes:a,deletedNodes:l})=>({insertedNodes:a.map(h=>this.nodeMapper.map(h)),deletedNodes:l.map(h=>this.nodeMapper.map(h))}))}get onDidChangeCollapseState(){return k.Event.map(this.model.onDidChangeCollapseState,({node:a,deep:l})=>({node:this.nodeMapper.map(a),deep:l}))}get onDidChangeRenderNodeCount(){return k.Event.map(this.model.onDidChangeRenderNodeCount,a=>this.nodeMapper.map(a))}setChildren(a,l=I.Iterable.empty(),h={}){this.model.setChildren(a,l,h)}setCompressionEnabled(a){this.model.setCompressionEnabled(a)}has(a){return this.model.has(a)}getListIndex(a){return this.model.getListIndex(a)}getListRenderCount(a){return this.model.getListRenderCount(a)}getNode(a){return this.nodeMapper.map(this.model.getNode(a))}getNodeLocation(a){return a.element}getParentNodeLocation(a){return this.model.getParentNodeLocation(a)}getFirstElementChild(a){const l=this.model.getFirstElementChild(a);return l===null||typeof l=="undefined"?l:this.elementMapper(l.elements)}isCollapsible(a){return this.model.isCollapsible(a)}setCollapsible(a,l){return this.model.setCollapsible(a,l)}isCollapsed(a){return this.model.isCollapsed(a)}setCollapsed(a,l,h){return this.model.setCollapsed(a,l,h)}expandTo(a){return this.model.expandTo(a)}rerender(a){return this.model.rerender(a)}refilter(){return this.model.refilter()}getCompressedTreeNode(a=null){return this.model.getNode(a)}}e.CompressibleObjectTreeModel=r}),define(te[49],ie([1,0,8]),function(q,e,L){"use strict";var m,k;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.ResourceMap=e.TernarySearchTree=e.UriIterator=e.PathIterator=e.ConfigKeysIterator=e.StringIterator=void 0;class I{constructor(){this._value="",this._pos=0}reset(d){return this._value=d,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos=0;r--,this._valueLen--){const s=this._value.charCodeAt(r);if(!(s===47||this._splitOnBackslash&&s===92))break}return this.next()}hasNext(){return this._to!1){return new g(new C(d))}static forStrings(){return new g(new I)}static forConfigKeys(){return new g(new w)}clear(){this._root=void 0}set(d,r){const s=this._iter.reset(d);let a;this._root||(this._root=new u,this._root.segment=s.value());const l=[];for(a=this._root;;){const f=s.cmp(a.segment);if(f>0)a.left||(a.left=new u,a.left.segment=s.value()),l.push([-1,a]),a=a.left;else if(f<0)a.right||(a.right=new u,a.right.segment=s.value()),l.push([1,a]),a=a.right;else if(s.hasNext())s.next(),a.mid||(a.mid=new u,a.mid.segment=s.value()),l.push([0,a]),a=a.mid;else break}const h=a.value;a.value=r,a.key=d;for(let f=l.length-1;f>=0;f--){const S=l[f][1];S.updateHeight();const v=S.balanceFactor();if(v<-1||v>1){const p=l[f][0],_=l[f+1][0];if(p===1&&_===1)l[f][1]=S.rotateLeft();else if(p===-1&&_===-1)l[f][1]=S.rotateRight();else if(p===1&&_===-1)S.right=l[f+1][1]=l[f+1][1].rotateRight(),l[f][1]=S.rotateLeft();else if(p===-1&&_===1)S.left=l[f+1][1]=l[f+1][1].rotateLeft(),l[f][1]=S.rotateRight();else throw new Error;if(f>0)switch(l[f-1][0]){case-1:l[f-1][1].left=l[f][1];break;case 1:l[f-1][1].right=l[f][1];break;case 0:l[f-1][1].mid=l[f][1];break}else this._root=l[0][1]}}return h}get(d){var r;return(r=this._getNode(d))===null||r===void 0?void 0:r.value}_getNode(d){const r=this._iter.reset(d);let s=this._root;for(;s;){const a=r.cmp(s.segment);if(a>0)s=s.left;else if(a<0)s=s.right;else if(r.hasNext())r.next(),s=s.mid;else break}return s}has(d){const r=this._getNode(d);return!((r==null?void 0:r.value)===void 0&&(r==null?void 0:r.mid)===void 0)}delete(d){return this._delete(d,!1)}deleteSuperstr(d){return this._delete(d,!0)}_delete(d,r){var s;const a=this._iter.reset(d),l=[];let h=this._root;for(;h;){const f=a.cmp(h.segment);if(f>0)l.push([-1,h]),h=h.left;else if(f<0)l.push([1,h]),h=h.right;else if(a.hasNext())a.next(),l.push([0,h]),h=h.mid;else break}if(!!h){if(r?(h.left=void 0,h.mid=void 0,h.right=void 0,h.height=1):(h.key=void 0,h.value=void 0),!h.mid&&!h.value)if(h.left&&h.right){const f=this._min(h.right),{key:S,value:v,segment:p}=f;this._delete(f.key,!1),h.key=S,h.value=v,h.segment=p}else{const f=(s=h.left)!==null&&s!==void 0?s:h.right;if(l.length>0){const[S,v]=l[l.length-1];switch(S){case-1:v.left=f;break;case 0:v.mid=f;break;case 1:v.right=f;break}}else this._root=f}for(let f=l.length-1;f>=0;f--){const S=l[f][1];S.updateHeight();const v=S.balanceFactor();if(v>1?(S.right.balanceFactor()>=0||(S.right=S.right.rotateRight()),l[f][1]=S.rotateLeft()):v<-1&&(S.left.balanceFactor()<=0||(S.left=S.left.rotateLeft()),l[f][1]=S.rotateRight()),f>0)switch(l[f-1][0]){case-1:l[f-1][1].left=l[f][1];break;case 1:l[f-1][1].right=l[f][1];break;case 0:l[f-1][1].mid=l[f][1];break}else this._root=l[0][1]}}}_min(d){for(;d.left;)d=d.left;return d}findSubstr(d){const r=this._iter.reset(d);let s=this._root,a;for(;s;){const l=r.cmp(s.segment);if(l>0)s=s.left;else if(l<0)s=s.right;else if(r.hasNext())r.next(),a=s.value||a,s=s.mid;else break}return s&&s.value||a}findSuperstr(d){const r=this._iter.reset(d);let s=this._root;for(;s;){const a=r.cmp(s.segment);if(a>0)s=s.left;else if(a<0)s=s.right;else if(r.hasNext())r.next(),s=s.mid;else return s.mid?this._entries(s.mid):void 0}}forEach(d){for(const[r,s]of this)d(s,r)}*[Symbol.iterator](){yield*this._entries(this._root)}*_entries(d){!d||(d.left&&(yield*this._entries(d.left)),d.value&&(yield[d.key,d.value]),d.mid&&(yield*this._entries(d.mid)),d.right&&(yield*this._entries(d.right)))}}e.TernarySearchTree=g;class t{constructor(d,r){this.uri=d,this.value=r}}class n{constructor(d,r){this[m]="ResourceMap",d instanceof n?(this.map=new Map(d.map),this.toKey=r??n.defaultToKey):(this.map=new Map,this.toKey=d??n.defaultToKey)}set(d,r){return this.map.set(this.toKey(d),new t(d,r)),this}get(d){var r;return(r=this.map.get(this.toKey(d)))===null||r===void 0?void 0:r.value}has(d){return this.map.has(this.toKey(d))}get size(){return this.map.size}clear(){this.map.clear()}delete(d){return this.map.delete(this.toKey(d))}forEach(d,r){typeof r!="undefined"&&(d=d.bind(r));for(let[s,a]of this.map)d(a.value,a.uri,this)}*values(){for(let d of this.map.values())yield d.value}*keys(){for(let d of this.map.values())yield d.uri}*entries(){for(let d of this.map.values())yield[d.uri,d.value]}*[(m=Symbol.toStringTag,Symbol.iterator)](){for(let[,d]of this.map)yield[d.uri,d.value]}}e.ResourceMap=n,n.defaultToKey=c=>c.toString();class i{constructor(){this[k]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var d;return(d=this._head)===null||d===void 0?void 0:d.value}get last(){var d;return(d=this._tail)===null||d===void 0?void 0:d.value}has(d){return this._map.has(d)}get(d,r=0){const s=this._map.get(d);if(!!s)return r!==0&&this.touch(s,r),s.value}set(d,r,s=0){let a=this._map.get(d);if(a)a.value=r,s!==0&&this.touch(a,s);else{switch(a={key:d,value:r,next:void 0,previous:void 0},s){case 0:this.addItemLast(a);break;case 1:this.addItemFirst(a);break;case 2:this.addItemLast(a);break;default:this.addItemLast(a);break}this._map.set(d,a),this._size++}return this}delete(d){return!!this.remove(d)}remove(d){const r=this._map.get(d);if(!!r)return this._map.delete(d),this.removeItem(r),this._size--,r.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const d=this._head;return this._map.delete(d.key),this.removeItem(d),this._size--,d.value}forEach(d,r){const s=this._state;let a=this._head;for(;a;){if(r?d.bind(r)(a.value,a.key,this):d(a.value,a.key,this),this._state!==s)throw new Error("LinkedMap got modified during iteration.");a=a.next}}keys(){const d=this,r=this._state;let s=this._head;const a={[Symbol.iterator](){return a},next(){if(d._state!==r)throw new Error("LinkedMap got modified during iteration.");if(s){const l={value:s.key,done:!1};return s=s.next,l}else return{value:void 0,done:!0}}};return a}values(){const d=this,r=this._state;let s=this._head;const a={[Symbol.iterator](){return a},next(){if(d._state!==r)throw new Error("LinkedMap got modified during iteration.");if(s){const l={value:s.value,done:!1};return s=s.next,l}else return{value:void 0,done:!0}}};return a}entries(){const d=this,r=this._state;let s=this._head;const a={[Symbol.iterator](){return a},next(){if(d._state!==r)throw new Error("LinkedMap got modified during iteration.");if(s){const l={value:[s.key,s.value],done:!1};return s=s.next,l}else return{value:void 0,done:!0}}};return a}[(k=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(d){if(d>=this.size)return;if(d===0){this.clear();return}let r=this._head,s=this.size;for(;r&&s>d;)this._map.delete(r.key),r=r.next,s--;this._head=r,this._size=s,r&&(r.previous=void 0),this._state++}addItemFirst(d){if(!this._head&&!this._tail)this._tail=d;else if(this._head)d.next=this._head,this._head.previous=d;else throw new Error("Invalid list");this._head=d,this._state++}addItemLast(d){if(!this._head&&!this._tail)this._head=d;else if(this._tail)d.previous=this._tail,this._tail.next=d;else throw new Error("Invalid list");this._tail=d,this._state++}removeItem(d){if(d===this._head&&d===this._tail)this._head=void 0,this._tail=void 0;else if(d===this._head){if(!d.next)throw new Error("Invalid list");d.next.previous=void 0,this._head=d.next}else if(d===this._tail){if(!d.previous)throw new Error("Invalid list");d.previous.next=void 0,this._tail=d.previous}else{const r=d.next,s=d.previous;if(!r||!s)throw new Error("Invalid list");r.previous=s,s.next=r}d.next=void 0,d.previous=void 0,this._state++}touch(d,r){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(r!==1&&r!==2)){if(r===1){if(d===this._head)return;const s=d.next,a=d.previous;d===this._tail?(a.next=void 0,this._tail=a):(s.previous=a,a.next=s),d.previous=void 0,d.next=this._head,this._head.previous=d,this._head=d,this._state++}else if(r===2){if(d===this._tail)return;const s=d.next,a=d.previous;d===this._head?(s.previous=void 0,this._head=s):(s.previous=a,a.next=s),d.next=void 0,d.previous=this._tail,this._tail.next=d,this._tail=d,this._state++}}}toJSON(){const d=[];return this.forEach((r,s)=>{d.push([s,r])}),d}fromJSON(d){this.clear();for(const[r,s]of d)this.set(r,s)}}e.LinkedMap=i;class o extends i{constructor(d,r=1){super();this._limit=d,this._ratio=Math.min(Math.max(0,r),1)}get limit(){return this._limit}set limit(d){this._limit=d,this.checkTrim()}get(d,r=2){return super.get(d,r)}peek(d){return super.get(d,0)}set(d,r){return super.set(d,r,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}e.LRUCache=o}),define(te[75],ie([1,0,49,8]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fuzzyScoreGracefulAggressive=e.fuzzyScore=e.FuzzyScore=e.isPatternInWord=e.createMatches=e.anyScore=e.matchesFuzzy=e.matchesWords=e.matchesCamelCase=e.isUpper=e.matchesSubString=e.matchesContiguousSubString=e.matchesPrefix=e.matchesStrictPrefix=e.or=void 0;function k(...x){return function(H,U){for(let Q=0,Y=x.length;Q0?[{start:0,end:H.length}]:[]:null}function w(x,H){const U=H.toLowerCase().indexOf(x.toLowerCase());return U===-1?null:[{start:U,end:U+x.length}]}e.matchesContiguousSubString=w;function b(x,H){return C(x.toLowerCase(),H.toLowerCase(),0,0)}e.matchesSubString=b;function C(x,H,U,Q){if(U===x.length)return[];if(Q===H.length)return null;if(x[U]===H[Q]){let Y=null;return(Y=C(x,H,U+1,Q+1))?r({start:Q,end:Q+1},Y):null}return C(x,H,U,Q+1)}function u(x){return 97<=x&&x<=122}function g(x){return 65<=x&&x<=90}e.isUpper=g;function t(x){return 48<=x&&x<=57}function n(x){return x===32||x===9||x===10||x===13}const i=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(x=>i.add(x.charCodeAt(0)));function o(x){return n(x)||i.has(x)}function c(x,H){return x===H||o(x)&&o(H)}function d(x){return u(x)||g(x)||t(x)}function r(x,H){return H.length===0?H=[x]:x.end===H[0].start?H[0].start=x.start:H.unshift(x),H}function s(x,H){for(let U=H;U0&&!d(x.charCodeAt(U-1)))return U}return x.length}function a(x,H,U,Q){if(U===x.length)return[];if(Q===H.length)return null;if(x[U]!==H[Q].toLowerCase())return null;{let Y=null,ne=Q+1;for(Y=a(x,H,U+1,Q+1);!Y&&(ne=s(H,ne)).6}function f(x){const{upperPercent:H,lowerPercent:U,alphaPercent:Q,numericPercent:Y}=x;return U>.2&&H<.8&&Q>.6&&Y<.2}function S(x){let H=0,U=0,Q=0,Y=0;for(let ne=0;ne60)return null;const U=l(H);if(!f(U)){if(!h(U))return null;H=H.toLowerCase()}let Q=null,Y=0;for(x=x.toLowerCase();Y0&&o(x.charCodeAt(U-1)))return U;return x.length}const E=k(e.matchesPrefix,v,w),N=k(e.matchesPrefix,v,b),D=new L.LRUCache(1e4);function M(x,H,U=!1){if(typeof x!="string"||typeof H!="string")return null;let Q=D.get(x);Q||(Q=new RegExp(m.convertSimple2RegExpPattern(x),"i"),D.set(x,Q));const Y=Q.exec(H);return Y?[{start:Y.index,end:Y.index+Y[0].length}]:U?N(x,H):E(x,H)}e.matchesFuzzy=M;function B(x,H,U,Q,Y,ne){const ge=Math.min(13,x.length);for(;U1;Q--){const Y=x[Q]+U,ne=H[H.length-1];ne&&ne.end===Y?ne.end=Y+1:H.push({start:Y,end:Y+1})}return H}e.createMatches=O;const T=128;function A(){const x=[],H=[];for(let U=0;U<=T;U++)H[U]=0;for(let U=0;U<=T;U++)x.push(H.slice(0));return x}function P(x){const H=[];for(let U=0;U<=x;U++)H[U]=0;return H}const F=P(2*T),W=P(2*T),R=A(),z=A(),j=A(),$=!1;function G(x,H,U,Q,Y){function ne(fe,ce,he=" "){for(;fe.lengthne(fe,3)).join("|")}
+`;for(let fe=0;fe<=U;fe++)fe===0?ge+=" |":ge+=`${H[fe-1]}|`,ge+=x[fe].slice(0,Y+1).map(ce=>ne(ce.toString(),3)).join("|")+`
+`;return ge}function J(x,H,U,Q){x=x.substr(H),U=U.substr(Q),console.log(G(z,x,x.length,U,U.length)),console.log(G(j,x,x.length,U,U.length)),console.log(G(R,x,x.length,U,U.length))}function re(x,H){if(H<0||H>=x.length)return!1;const U=x.codePointAt(H);switch(U){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 40:case 91:return!0;case void 0:return!1;default:return!!m.isEmojiImprecise(U)}}function se(x,H){if(H<0||H>=x.length)return!1;switch(x.charCodeAt(H)){case 32:case 9:return!0;default:return!1}}function Z(x,H,U){return H[x]!==U[x]}function V(x,H,U,Q,Y,ne,ge=!1){for(;HT?T:x.length,ce=Q.length>T?T:Q.length;if(U>=fe||ne>=ce||fe-U>ce-ne||!V(H,U,fe,Y,ne,ce,!0))return;oe(fe,ce,U,ne,H,Y);let he=1,ve=1,Ce=U,be=ne;const de=[!1];for(he=1,Ce=U;CeTe,De=Se?z[he][ve-1]+(R[he][ve-1]>0?-5:0):0,Pe=be>Te+1&&R[he][ve-1]>0,Fe=Pe?z[he][ve-2]+(R[he][ve-2]>0?-5:0):0;if(Pe&&(!Se||Fe>=De)&&(!He||Fe>=Le))z[he][ve]=Fe,j[he][ve]=3,R[he][ve]=0;else if(Se&&(!He||De>=Le))z[he][ve]=De,j[he][ve]=2,R[he][ve]=0;else if(He)z[he][ve]=Le,j[he][ve]=1,R[he][ve]=R[he-1][ve-1]+1;else throw new Error("not possible")}}if($&&J(x,U,Q,ne),!de[0]&&!ge)return;he--,ve--;const me=[z[he][ve],ne];let _e=0,ye=0;for(;he>=1;){let Te=ve;do{const Me=j[he][Te];if(Me===3)Te=Te-2;else if(Me===2)Te=Te-1;else break}while(Te>=1);_e>1&&H[U+he-1]===Y[ne+ve-1]&&!Z(Te+ne-1,Q,Y)&&_e+1>R[he][Te]&&(Te=ve),Te===ve?_e++:_e=1,ye||(ye=Te),he--,ve=Te-1,me.push(ve)}ce===fe&&(me[0]+=2);const ke=ye-fe;return me[0]-=ke,me}e.fuzzyScore=X;function oe(x,H,U,Q,Y,ne){let ge=x-1,fe=H-1;for(;ge>=U&&fe>=Q;)Y[ge]===ne[fe]&&(W[ge]=fe,ge--),fe--}function ae(x,H,U,Q,Y,ne,ge,fe,ce,he,ve){if(H[U]!==ne[ge])return Number.MIN_SAFE_INTEGER;let Ce=1,be=!1;return ge===U-Q?Ce=x[U]===Y[ge]?7:5:Z(ge,Y,ne)&&(ge===0||!Z(ge-1,Y,ne))?(Ce=x[U]===Y[ge]?7:5,be=!0):re(ne,ge)&&(ge===0||!re(ne,ge-1))?Ce=5:(re(ne,ge-1)||se(ne,ge-1))&&(Ce=5,be=!0),Ce>1&&U===Q&&(ve[0]=!0),be||(be=Z(ge,Y,ne)||re(ne,ge-1)||se(ne,ge-1)),U===Q?ge>ce&&(Ce-=be?3:5):he?Ce+=be?2:0:Ce+=be?0:1,ge+1===fe&&(Ce-=be?3:5),Ce}function ee(x,H,U,Q,Y,ne,ge){return ue(x,H,U,Q,Y,ne,!0,ge)}e.fuzzyScoreGracefulAggressive=ee;function ue(x,H,U,Q,Y,ne,ge,fe){let ce=X(x,H,U,Q,Y,ne,fe);if(ce&&!ge)return ce;if(x.length>=3){const he=Math.min(7,x.length-1);for(let ve=U+1;vece[0])&&(ce=be))}}}return ce}function le(x,H){if(H+1>=x.length)return;const U=x[H],Q=x[H+1];if(U!==Q)return x.slice(0,H)+Q+U+x.slice(H+2)}}),define(te[322],ie([1,0,75,84,16,8]),function(q,e,L,m,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieceToQuery=e.prepareQuery=e.scoreFuzzy2=void 0;const w=[void 0,[]];function b(s,a,l=0,h=0){const f=a;return f.values&&f.values.length>1?C(s,f.values,l,h):u(s,a,l,h)}e.scoreFuzzy2=b;function C(s,a,l,h){let f=0;const S=[];for(const v of a){const[p,_]=u(s,v,l,h);if(typeof p!="number")return w;f+=p,S.push(..._)}return[f,t(S)]}function u(s,a,l,h){const f=(0,L.fuzzyScore)(a.original,a.originalLowercase,l,s,s.toLowerCase(),h,!0);return f?[f[0],(0,L.createMatches)(f)]:w}const g=Object.freeze({score:0});function t(s){const a=s.sort((f,S)=>f.start-S.start),l=[];let h;for(const f of a)!h||!n(h,f)?(h=f,l.push(f)):(h.start=Math.min(h.start,f.start),h.end=Math.max(h.end,f.end));return l}function n(s,a){return!(s.end=0,v=i(s);let p;const _=s.split(o);if(_.length>1)for(const y of _){const E=i(y),{pathNormalized:N,normalized:D,normalizedLowercase:M}=d(y);D&&(p||(p=[]),p.push({original:y,originalLowercase:y.toLowerCase(),pathNormalized:N,normalized:D,normalizedLowercase:M,expectContiguousMatch:E}))}return{original:s,originalLowercase:a,pathNormalized:l,normalized:h,normalizedLowercase:f,values:p,containsPathSeparator:S,expectContiguousMatch:v}}e.prepareQuery=c;function d(s){let a;k.isWindows?a=s.replace(/\//g,m.sep):a=s.replace(/\\/g,m.sep);const l=(0,I.stripWildcards)(a).replace(/\s|"/g,"");return{pathNormalized:a,normalized:l,normalizedLowercase:l.toLowerCase()}}function r(s){return Array.isArray(s)?c(s.map(a=>a.original).join(o)):c(s.original)}e.pieceToQuery=r}),define(te[218],ie([1,0,10,168,49,84,16,8]),function(q,e,L,m,k,I,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isRelativePattern=e.parse=e.match=e.splitGlobAware=e.GLOB_SPLIT=e.GLOBSTAR=void 0,e.GLOBSTAR="**",e.GLOB_SPLIT="/";const C="[/\\\\]",u="[^/\\\\]",g=/\//g;function t(P){switch(P){case 0:return"";case 1:return`${u}*?`;default:return`(?:${C}|${u}+${C}|${C}${u}+)*?`}}function n(P,F){if(!P)return[];const W=[];let R=!1,z=!1,j="";for(const $ of P){switch($){case F:if(!R&&!z){W.push(j),j="";continue}break;case"{":R=!0;break;case"}":R=!1;break;case"[":z=!0;break;case"]":z=!1;break}j+=$}return j&&W.push(j),W}e.splitGlobAware=n;function i(P){if(!P)return"";let F="";const W=n(P,e.GLOB_SPLIT);if(W.every(R=>R===e.GLOBSTAR))F=".*";else{let R=!1;W.forEach((z,j)=>{if(z===e.GLOBSTAR){R||(F+=t(2),R=!0);return}let $=!1,G="",J=!1,re="";for(const se of z){if(se!=="}"&&$){G+=se;continue}if(J&&(se!=="]"||!re)){let Z;se==="-"?Z=se:(se==="^"||se==="!")&&!re?Z="^":se===e.GLOB_SPLIT?Z="":Z=(0,b.escapeRegExpCharacters)(se),re+=Z;continue}switch(se){case"{":$=!0;continue;case"[":J=!0;continue;case"}":{F+=`(?:${n(G,",").map(K=>i(K)).join("|")})`,$=!1,G="";break}case"]":F+="["+re+"]",J=!1,re="";break;case"?":F+=u;continue;case"*":F+=t(1);continue;default:F+=(0,b.escapeRegExpCharacters)(se)}}jS(G,F)).filter(G=>G!==f),P),R=W.length;if(!R)return f;if(R===1)return W[0];const z=function(G,J){for(let re=0,se=W.length;re!!G.allBasenames);j&&(z.allBasenames=j.allBasenames);const $=W.reduce((G,J)=>J.allPaths?G.concat(J.allPaths):G,[]);return $.length&&(z.allPaths=$),z}function E(P,F,W){const R=I.sep===I.posix.sep,z=R?P:P.replace(g,I.sep),j=I.sep+z,$=I.posix.sep+P,G=W?function(J,re){return typeof J=="string"&&(J===z||J.endsWith(j)||!R&&(J===P||J.endsWith($)))?F:null}:function(J,re){return typeof J=="string"&&(J===z||!R&&J===P)?F:null};return G.allPaths=[(W?"*/":"./")+P],G}function N(P){try{const F=new RegExp(`^${i(P)}$`);return function(W){return F.lastIndex=0,typeof W=="string"&&F.test(W)?P:null}}catch{return f}}function D(P,F,W){return!P||typeof F!="string"?!1:M(P)(F,void 0,W)}e.match=D;function M(P,F={}){if(!P)return h;if(typeof P=="string"||B(P)){const W=S(P,F);if(W===f)return h;const R=function(z,j){return!!W(z,j)};return W.allBasenames&&(R.allBasenames=W.allBasenames),W.allPaths&&(R.allPaths=W.allPaths),R}return O(P,F)}e.parse=M;function B(P){const F=P;return F?typeof F.base=="string"&&typeof F.pattern=="string":!1}e.isRelativePattern=B;function O(P,F){const W=A(Object.getOwnPropertyNames(P).map(G=>T(G,P[G],F)).filter(G=>G!==f)),R=W.length;if(!R)return f;if(!W.some(G=>!!G.requiresSiblings)){if(R===1)return W[0];const G=function(se,Z){for(let V=0,K=W.length;V!!se.allBasenames);J&&(G.allBasenames=J.allBasenames);const re=W.reduce((se,Z)=>Z.allPaths?se.concat(Z.allPaths):se,[]);return re.length&&(G.allPaths=re),G}const z=function(G,J,re){let se;for(let Z=0,V=W.length;Z!!G.allBasenames);j&&(z.allBasenames=j.allBasenames);const $=W.reduce((G,J)=>J.allPaths?G.concat(J.allPaths):G,[]);return $.length&&(z.allPaths=$),z}function T(P,F,W){if(F===!1)return f;const R=S(P,W);if(R===f)return f;if(typeof F=="boolean")return R;if(F){const z=F.when;if(typeof z=="string"){const j=($,G,J,re)=>{if(!re||!R($,G))return null;const se=z.replace("$(basename)",J),Z=re(se);return(0,L.isThenable)(Z)?Z.then(V=>V?P:null):Z?P:null};return j.requiresSiblings=!0,j}}return R}function A(P,F){const W=P.filter(G=>!!G.basenames);if(W.length<2)return P;const R=W.reduce((G,J)=>{const re=J.basenames;return re?G.concat(re):G},[]);let z;if(F){z=[];for(let G=0,J=R.length;G{const re=J.patterns;return re?G.concat(re):G},[]);const j=function(G,J){if(typeof G!="string")return null;if(!J){let se;for(se=G.length;se>0;se--){const Z=G.charCodeAt(se-1);if(Z===47||Z===92)break}J=G.substr(se)}const re=R.indexOf(J);return re!==-1?z[re]:null};j.basenames=R,j.patterns=z,j.allBasenames=R;const $=P.filter(G=>!G.basenames);return $.push(j),$}}),define(te[97],ie([1,0,28,75,8]),function(q,e,L,m,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchesFuzzyIconAware=e.parseLabelWithIcons=e.stripIcons=e.markdownEscapeEscapedIcons=e.escapeIcons=e.iconStartMarker=void 0,e.iconStartMarker="$(";const I=new RegExp(`\\$\\(${L.CSSIcon.iconNameExpression}(?:${L.CSSIcon.iconModifierExpression})?\\)`,"g"),w=new RegExp(L.CSSIcon.iconNameCharacter),b=new RegExp(`(\\\\)?${I.source}`,"g");function C(d){return d.replace(b,(r,s)=>s?r:`\\${r}`)}e.escapeIcons=C;const u=new RegExp(`\\\\${I.source}`,"g");function g(d){return d.replace(u,r=>`\\${r}`)}e.markdownEscapeEscapedIcons=g;const t=new RegExp(`(\\s)?(\\\\)?${I.source}(\\s)?`,"g");function n(d){return d.indexOf(e.iconStartMarker)===-1?d:d.replace(t,(r,s,a,l)=>a?r:s||l||"")}e.stripIcons=n;function i(d){const r=d.indexOf(e.iconStartMarker);return r===-1?{text:d}:o(d,r)}e.parseLabelWithIcons=i;function o(d,r){const s=[];let a="";function l(E){if(E){a+=E;for(const N of E)s.push(S)}}let h=-1,f="",S=0,v,p,_=r;const y=d.length;for(l(d.substr(0,r));_" ".repeat(o.length)).replace(/\>/gm,"\\>").replace(/\n/g,n===1?`\\
+`:`
+
+`),this}appendMarkdown(t){return this.value+=t,this}appendCodeblock(t,n){return this.value+="\n```",this.value+=t,this.value+=`
+`,this.value+=n,this.value+="\n```\n",this}}e.MarkdownString=k;function I(g){return w(g)?!g.value:Array.isArray(g)?g.every(I):!0}e.isEmptyMarkdownString=I;function w(g){return g instanceof k?!0:g&&typeof g=="object"?typeof g.value=="string"&&(typeof g.isTrusted=="boolean"||g.isTrusted===void 0)&&(typeof g.supportThemeIcons=="boolean"||g.supportThemeIcons===void 0):!1}e.isMarkdownString=w;function b(g){return g.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}e.escapeMarkdownSyntaxTokens=b;function C(g){return g&&g.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}e.removeMarkdownEscapes=C;function u(g){const t=[],n=g.split("|").map(o=>o.trim());g=n[0];const i=n[1];if(i){const o=/height=(\d+)/.exec(i),c=/width=(\d+)/.exec(i),d=o?o[1]:"",r=c?c[1]:"",s=isFinite(parseInt(r)),a=isFinite(parseInt(d));s&&t.push(`width="${r}"`),a&&t.push(`height="${d}"`)}return{href:g,dimensions:t}}e.parseHrefAndDimensions=u}),define(te[323],ie([1,0,8]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildReplaceStringWithCasePreserved=void 0;function m(w,b){if(w&&w[0]!==""){const C=k(w,b,"-"),u=k(w,b,"_");return C&&!u?I(w,b,"-"):!C&&u?I(w,b,"_"):w[0].toUpperCase()===w[0]?b.toUpperCase():w[0].toLowerCase()===w[0]?b.toLowerCase():L.containsUppercaseCharacter(w[0][0])&&b.length>0?b[0].toUpperCase()+b.substr(1):w[0][0].toUpperCase()!==w[0][0]&&b.length>0?b[0].toLowerCase()+b.substr(1):b}else return b}e.buildReplaceStringWithCasePreserved=m;function k(w,b,C){return w[0].indexOf(C)!==-1&&b.indexOf(C)!==-1&&w[0].split(C).length===b.split(C).length}function I(w,b,C){const u=b.split(C),g=w[0].split(C);let t="";return u.forEach((n,i)=>{t+=m([g[i]],n)+C}),t.slice(0,-1)}}),define(te[76],ie([1,0,8]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var m;(function(k){k[k.Ignore=0]="Ignore",k[k.Info=1]="Info",k[k.Warning=2]="Warning",k[k.Error=3]="Error"})(m||(m={})),function(k){const I="error",w="warning",b="warn",C="info",u="ignore";function g(n){return n?L.equalsIgnoreCase(I,n)?k.Error:L.equalsIgnoreCase(w,n)||L.equalsIgnoreCase(b,n)?k.Warning:L.equalsIgnoreCase(C,n)?k.Info:k.Ignore:k.Ignore}k.fromValue=g;function t(n){switch(n){case k.Error:return I;case k.Warning:return w;case k.Info:return C;default:return u}}k.toString=t}(m||(m={})),e.default=m}),define(te[19],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertNever=e.withNullAsUndefined=e.createProxyObject=e.getAllMethodNames=e.getAllPropertyNames=e.validateConstraint=e.validateConstraints=e.isFunction=e.assertIsDefined=e.assertType=e.isUndefinedOrNull=e.isDefined=e.isUndefined=e.isBoolean=e.isIterable=e.isNumber=e.isObject=e.isString=e.isArray=void 0;function L(h){return Array.isArray(h)}e.isArray=L;function m(h){return typeof h=="string"}e.isString=m;function k(h){return typeof h=="object"&&h!==null&&!Array.isArray(h)&&!(h instanceof RegExp)&&!(h instanceof Date)}e.isObject=k;function I(h){return typeof h=="number"&&!isNaN(h)}e.isNumber=I;function w(h){return!!h&&typeof h[Symbol.iterator]=="function"}e.isIterable=w;function b(h){return h===!0||h===!1}e.isBoolean=b;function C(h){return typeof h=="undefined"}e.isUndefined=C;function u(h){return!g(h)}e.isDefined=u;function g(h){return C(h)||h===null}e.isUndefinedOrNull=g;function t(h,f){if(!h)throw new Error(f?`Unexpected type, expected '${f}'`:"Unexpected type")}e.assertType=t;function n(h){if(g(h))throw new Error("Assertion Failed: argument is undefined or null");return h}e.assertIsDefined=n;function i(h){return typeof h=="function"}e.isFunction=i;function o(h,f){const S=Math.min(h.length,f.length);for(let v=0;vfunction(){const _=Array.prototype.slice.call(arguments,0);return f(p,_)};let v={};for(const p of h)v[p]=S(p);return v}e.createProxyObject=s;function a(h){return h===null?void 0:h}e.withNullAsUndefined=a;function l(h,f="Unreachable"){throw new Error(f)}e.assertNever=l}),define(te[40],ie([1,0,19]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOrDefault=e.equals=e.mixin=e.cloneAndChange=e.deepFreeze=e.deepClone=void 0;function m(t){if(!t||typeof t!="object"||t instanceof RegExp)return t;const n=Array.isArray(t)?[]:{};return Object.keys(t).forEach(i=>{t[i]&&typeof t[i]=="object"?n[i]=m(t[i]):n[i]=t[i]}),n}e.deepClone=m;function k(t){if(!t||typeof t!="object")return t;const n=[t];for(;n.length>0;){const i=n.shift();Object.freeze(i);for(const o in i)if(I.call(i,o)){const c=i[o];typeof c=="object"&&!Object.isFrozen(c)&&n.push(c)}}return t}e.deepFreeze=k;const I=Object.prototype.hasOwnProperty;function w(t,n){return b(t,n,new Set)}e.cloneAndChange=w;function b(t,n,i){if((0,L.isUndefinedOrNull)(t))return t;const o=n(t);if(typeof o!="undefined")return o;if((0,L.isArray)(t)){const c=[];for(const d of t)c.push(b(d,n,i));return c}if((0,L.isObject)(t)){if(i.has(t))throw new Error("Cannot clone recursive data-structure");i.add(t);const c={};for(let d in t)I.call(t,d)&&(c[d]=b(t[d],n,i));return i.delete(t),c}return t}function C(t,n,i=!0){return(0,L.isObject)(t)?((0,L.isObject)(n)&&Object.keys(n).forEach(o=>{o in t?i&&((0,L.isObject)(t[o])&&(0,L.isObject)(n[o])?C(t[o],n[o],i):t[o]=n[o]):t[o]=n[o]}),t):n}e.mixin=C;function u(t,n){if(t===n)return!0;if(t==null||n===null||n===void 0||typeof t!=typeof n||typeof t!="object"||Array.isArray(t)!==Array.isArray(n))return!1;let i,o;if(Array.isArray(t)){if(t.length!==n.length)return!1;for(i=0;i255?255:k|0}e.toUint8=L;function m(k){return k<0?0:k>4294967295?4294967295:k|0}e.toUint32=m}),define(te[25],ie([1,0,84,16]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uriToFsPath=e.URI=void 0;const k=/^\w[\w\d+.-]*$/,I=/^\//,w=/^\/\//;function b(v,p){if(!v.scheme&&p)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${v.authority}", path: "${v.path}", query: "${v.query}", fragment: "${v.fragment}"}`);if(v.scheme&&!k.test(v.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(v.path){if(v.authority){if(!I.test(v.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(w.test(v.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function C(v,p){return!v&&!p?"file":v}function u(v,p){switch(v){case"https":case"http":case"file":p?p[0]!==t&&(p=t+p):p=t;break}return p}const g="",t="/",n=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class i{constructor(p,_,y,E,N,D=!1){typeof p=="object"?(this.scheme=p.scheme||g,this.authority=p.authority||g,this.path=p.path||g,this.query=p.query||g,this.fragment=p.fragment||g):(this.scheme=C(p,D),this.authority=_||g,this.path=u(this.scheme,y||g),this.query=E||g,this.fragment=N||g,b(this,D))}static isUri(p){return p instanceof i?!0:p?typeof p.authority=="string"&&typeof p.fragment=="string"&&typeof p.path=="string"&&typeof p.query=="string"&&typeof p.scheme=="string"&&typeof p.fsPath=="string"&&typeof p.with=="function"&&typeof p.toString=="function":!1}get fsPath(){return a(this,!1)}with(p){if(!p)return this;let{scheme:_,authority:y,path:E,query:N,fragment:D}=p;return _===void 0?_=this.scheme:_===null&&(_=g),y===void 0?y=this.authority:y===null&&(y=g),E===void 0?E=this.path:E===null&&(E=g),N===void 0?N=this.query:N===null&&(N=g),D===void 0?D=this.fragment:D===null&&(D=g),_===this.scheme&&y===this.authority&&E===this.path&&N===this.query&&D===this.fragment?this:new c(_,y,E,N,D)}static parse(p,_=!1){const y=n.exec(p);return y?new c(y[2]||g,S(y[4]||g),S(y[5]||g),S(y[7]||g),S(y[9]||g),_):new c(g,g,g,g,g)}static file(p){let _=g;if(m.isWindows&&(p=p.replace(/\\/g,t)),p[0]===t&&p[1]===t){const y=p.indexOf(t,2);y===-1?(_=p.substring(2),p=t):(_=p.substring(2,y),p=p.substring(y)||t)}return new c("file",_,p,g,g)}static from(p){const _=new c(p.scheme,p.authority,p.path,p.query,p.fragment);return b(_,!0),_}static joinPath(p,..._){if(!p.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let y;return m.isWindows&&p.scheme==="file"?y=i.file(L.win32.join(a(p,!0),..._)).path:y=L.posix.join(p.path,..._),p.with({path:y})}toString(p=!1){return l(this,p)}toJSON(){return this}static revive(p){if(p){if(p instanceof i)return p;{const _=new c(p);return _._formatted=p.external,_._fsPath=p._sep===o?p.fsPath:null,_}}else return p}}e.URI=i;const o=m.isWindows?1:void 0;class c extends i{constructor(){super(...arguments);this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=a(this,!1)),this._fsPath}toString(p=!1){return p?l(this,!0):(this._formatted||(this._formatted=l(this,!1)),this._formatted)}toJSON(){const p={$mid:1};return this._fsPath&&(p.fsPath=this._fsPath,p._sep=o),this._formatted&&(p.external=this._formatted),this.path&&(p.path=this.path),this.scheme&&(p.scheme=this.scheme),this.authority&&(p.authority=this.authority),this.query&&(p.query=this.query),this.fragment&&(p.fragment=this.fragment),p}}const d={[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 r(v,p){let _,y=-1;for(let E=0;E=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===45||N===46||N===95||N===126||p&&N===47)y!==-1&&(_+=encodeURIComponent(v.substring(y,E)),y=-1),_!==void 0&&(_+=v.charAt(E));else{_===void 0&&(_=v.substr(0,E));const D=d[N];D!==void 0?(y!==-1&&(_+=encodeURIComponent(v.substring(y,E)),y=-1),_+=D):y===-1&&(y=E)}}return y!==-1&&(_+=encodeURIComponent(v.substring(y))),_!==void 0?_:v}function s(v){let p;for(let _=0;_1&&v.scheme==="file"?_=`//${v.authority}${v.path}`:v.path.charCodeAt(0)===47&&(v.path.charCodeAt(1)>=65&&v.path.charCodeAt(1)<=90||v.path.charCodeAt(1)>=97&&v.path.charCodeAt(1)<=122)&&v.path.charCodeAt(2)===58?p?_=v.path.substr(1):_=v.path[1].toLowerCase()+v.path.substr(2):_=v.path,m.isWindows&&(_=_.replace(/\//g,"\\")),_}e.uriToFsPath=a;function l(v,p){const _=p?s:r;let y="",{scheme:E,authority:N,path:D,query:M,fragment:B}=v;if(E&&(y+=E,y+=":"),(N||E==="file")&&(y+=t,y+=t),N){let O=N.indexOf("@");if(O!==-1){const T=N.substr(0,O);N=N.substr(O+1),O=T.indexOf(":"),O===-1?y+=_(T,!1):(y+=_(T.substr(0,O),!1),y+=":",y+=_(T.substr(O+1),!1)),y+="@"}N=N.toLowerCase(),O=N.indexOf(":"),O===-1?y+=_(N,!1):(y+=_(N.substr(0,O),!1),y+=N.substr(O))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){const O=D.charCodeAt(1);O>=65&&O<=90&&(D=`/${String.fromCharCode(O+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){const O=D.charCodeAt(0);O>=65&&O<=90&&(D=`${String.fromCharCode(O+32)}:${D.substr(2)}`)}y+=_(D,!0)}return M&&(y+="?",y+=_(M,!1)),B&&(y+="#",y+=p?B:r(B,!1)),y}function h(v){try{return decodeURIComponent(v)}catch{return v.length>3?v.substr(0,3)+h(v.substr(3)):v}}const f=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function S(v){return v.match(f)?v.replace(f,p=>h(p)):v}}),define(te[219],ie([1,0,112,25]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.revive=e.parse=void 0;function k(w){let b=JSON.parse(w);return b=I(b),b}e.parse=k;function I(w,b=0){if(!w||b>200)return w;if(typeof w=="object"){switch(w.$mid){case 1:return m.URI.revive(w);case 2:return new RegExp(w.source,w.flags);case 14:return new Date(w.source)}if(w instanceof L.VSBuffer||w instanceof Uint8Array)return w;if(Array.isArray(w))for(let C=0;C{let Pe=De.relatedTarget;for(;Pe&&Pe!==Le;)Pe=Pe.parentNode;Pe!==Le&&Se(De)})}e.addDisposableNonBubblingMouseOutListener=S;function v(Le,Se){return c(Le,"pointerout",De=>{let Pe=De.relatedTarget;for(;Pe&&Pe!==Le;)Pe=Pe.parentNode;Pe!==Le&&Se(De)})}e.addDisposableNonBubblingPointerOutListener=v;function p(Le,Se,De){let Pe=null;const Fe=Ve=>$e.fire(Ve),ze=()=>{Pe||(Pe=new o(Le,Se,Fe,De))},Ke=()=>{Pe&&(Pe.dispose(),Pe=null)},$e=new C.Emitter({onFirstListenerAdd:ze,onLastListenerRemove:Ke});return $e}e.createEventEmitter=p;let _=null;function y(Le){if(!_){const Se=De=>setTimeout(()=>De(new Date().getTime()),0);_=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||Se}return _.call(self,Le)}class E{constructor(Se,De=0){this._runner=Se,this.priority=De,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(Se){(0,b.onUnexpectedError)(Se)}}static sort(Se,De){return De.priority-Se.priority}}(function(){let Le=[],Se=null,De=!1,Pe=!1,Fe=()=>{for(De=!1,Se=Le,Le=[],Pe=!0;Se.length>0;)Se.sort(E.sort),Se.shift().execute();Pe=!1};e.scheduleAtNextAnimationFrame=(ze,Ke=0)=>{let $e=new E(ze,Ke);return Le.push($e),De||(De=!0,y(Fe)),$e},e.runAtThisOrScheduleAtNextAnimationFrame=(ze,Ke)=>{if(Pe){let $e=new E(ze,Ke);return Se.push($e),$e}else return(0,e.scheduleAtNextAnimationFrame)(ze,Ke)}})();const N=8,D=function(Le,Se){return Se};class M extends u.Disposable{constructor(Se,De,Pe,Fe=D,ze=N){super();let Ke=null,$e=0,Ve=this._register(new w.TimeoutTimer),tt=()=>{$e=new Date().getTime(),Pe(Ke),Ke=null};this._register(c(Se,De,Be=>{Ke=Fe(Ke,Be);let Ee=new Date().getTime()-$e;Ee>=ze?(Ve.cancel(),tt()):Ve.setIfNotSet(tt,ze-Ee)}))}}function B(Le,Se,De,Pe,Fe){return new M(Le,Se,De,Pe,Fe)}e.addDisposableThrottledListener=B;function O(Le){return document.defaultView.getComputedStyle(Le,null)}e.getComputedStyle=O;function T(Le){if(Le!==document.body)return new P(Le.clientWidth,Le.clientHeight);if(t.isIOS&&window.visualViewport)return new P(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new P(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new P(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new P(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}e.getClientArea=T;class A{static convertToPixels(Se,De){return parseFloat(De)||0}static getDimension(Se,De,Pe){let Fe=O(Se),ze="0";return Fe&&(Fe.getPropertyValue?ze=Fe.getPropertyValue(De):ze=Fe.getAttribute(Pe)),A.convertToPixels(Se,ze)}static getBorderLeftWidth(Se){return A.getDimension(Se,"border-left-width","borderLeftWidth")}static getBorderRightWidth(Se){return A.getDimension(Se,"border-right-width","borderRightWidth")}static getBorderTopWidth(Se){return A.getDimension(Se,"border-top-width","borderTopWidth")}static getBorderBottomWidth(Se){return A.getDimension(Se,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(Se){return A.getDimension(Se,"padding-left","paddingLeft")}static getPaddingRight(Se){return A.getDimension(Se,"padding-right","paddingRight")}static getPaddingTop(Se){return A.getDimension(Se,"padding-top","paddingTop")}static getPaddingBottom(Se){return A.getDimension(Se,"padding-bottom","paddingBottom")}static getMarginLeft(Se){return A.getDimension(Se,"margin-left","marginLeft")}static getMarginTop(Se){return A.getDimension(Se,"margin-top","marginTop")}static getMarginRight(Se){return A.getDimension(Se,"margin-right","marginRight")}static getMarginBottom(Se){return A.getDimension(Se,"margin-bottom","marginBottom")}}class P{constructor(Se,De){this.width=Se,this.height=De}with(Se=this.width,De=this.height){return Se!==this.width||De!==this.height?new P(Se,De):this}static is(Se){return typeof Se=="object"&&typeof Se.height=="number"&&typeof Se.width=="number"}static lift(Se){return Se instanceof P?Se:new P(Se.width,Se.height)}static equals(Se,De){return Se===De?!0:!Se||!De?!1:Se.width===De.width&&Se.height===De.height}}e.Dimension=P,P.None=new P(0,0);function F(Le){let Se=Le.offsetParent,De=Le.offsetTop,Pe=Le.offsetLeft;for(;(Le=Le.parentNode)!==null&&Le!==document.body&&Le!==document.documentElement;){De-=Le.scrollTop;const Fe=Z(Le)?null:O(Le);Fe&&(Pe-=Fe.direction!=="rtl"?Le.scrollLeft:-Le.scrollLeft),Le===Se&&(Pe+=A.getBorderLeftWidth(Le),De+=A.getBorderTopWidth(Le),De+=Le.offsetTop,Pe+=Le.offsetLeft,Se=Le.offsetParent)}return{left:Pe,top:De}}e.getTopLeftOffset=F;function W(Le,Se,De){typeof Se=="number"&&(Le.style.width=`${Se}px`),typeof De=="number"&&(Le.style.height=`${De}px`)}e.size=W;function R(Le){let Se=Le.getBoundingClientRect();return{left:Se.left+e.StandardWindow.scrollX,top:Se.top+e.StandardWindow.scrollY,width:Se.width,height:Se.height}}e.getDomNodePagePosition=R,e.StandardWindow=new class{get scrollX(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function z(Le){let Se=A.getMarginLeft(Le)+A.getMarginRight(Le);return Le.offsetWidth+Se}e.getTotalWidth=z;function j(Le){let Se=A.getBorderLeftWidth(Le)+A.getBorderRightWidth(Le),De=A.getPaddingLeft(Le)+A.getPaddingRight(Le);return Le.offsetWidth-Se-De}e.getContentWidth=j;function $(Le){let Se=A.getBorderTopWidth(Le)+A.getBorderBottomWidth(Le),De=A.getPaddingTop(Le)+A.getPaddingBottom(Le);return Le.offsetHeight-Se-De}e.getContentHeight=$;function G(Le){let Se=A.getMarginTop(Le)+A.getMarginBottom(Le);return Le.offsetHeight+Se}e.getTotalHeight=G;function J(Le,Se){for(;Le;){if(Le===Se)return!0;Le=Le.parentNode}return!1}e.isAncestor=J;function re(Le,Se,De){for(;Le&&Le.nodeType===Le.ELEMENT_NODE;){if(Le.classList.contains(Se))return Le;if(De){if(typeof De=="string"){if(Le.classList.contains(De))return null}else if(Le===De)return null}Le=Le.parentNode}return null}e.findParentWithClass=re;function se(Le,Se,De){return!!re(Le,Se,De)}e.hasParentWithClass=se;function Z(Le){return Le&&!!Le.host&&!!Le.mode}e.isShadowRoot=Z;function V(Le){return!!K(Le)}e.isInShadowDOM=V;function K(Le){for(;Le.parentNode;){if(Le===document.body)return null;Le=Le.parentNode}return Z(Le)?Le:null}e.getShadowRoot=K;function X(){let Le=document.activeElement;for(;Le==null?void 0:Le.shadowRoot;)Le=Le.shadowRoot.activeElement;return Le}e.getActiveElement=X;function oe(Le=document.getElementsByTagName("head")[0]){let Se=document.createElement("style");return Se.type="text/css",Se.media="screen",Le.appendChild(Se),Se}e.createStyleSheet=oe;let ae=null;function ee(){return ae||(ae=oe()),ae}function ue(Le){var Se,De;return((Se=Le==null?void 0:Le.sheet)===null||Se===void 0?void 0:Se.rules)?Le.sheet.rules:((De=Le==null?void 0:Le.sheet)===null||De===void 0?void 0:De.cssRules)?Le.sheet.cssRules:[]}function le(Le,Se,De=ee()){!De||!Se||De.sheet.insertRule(Le+"{"+Se+"}",0)}e.createCSSRule=le;function x(Le,Se=ee()){if(!Se)return;let De=ue(Se),Pe=[];for(let Fe=0;Fe=0;Fe--)Se.sheet.deleteRule(Pe[Fe])}e.removeCSSRulesContainingSelector=x;function H(Le){return typeof HTMLElement=="object"?Le instanceof HTMLElement:Le&&typeof Le=="object"&&Le.nodeType===1&&typeof Le.nodeName=="string"}e.isHTMLElement=H,e.EventType={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:L.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:L.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:L.isWebKit?"webkitAnimationIteration":"animationiteration"},e.EventHelper={stop:function(Le,Se){Le.preventDefault?Le.preventDefault():Le.returnValue=!1,Se&&(Le.stopPropagation?Le.stopPropagation():Le.cancelBubble=!0)}};function U(Le){let Se=[];for(let De=0;Le&&Le.nodeType===Le.ELEMENT_NODE;De++)Se[De]=Le.scrollTop,Le=Le.parentNode;return Se}e.saveParentsScrollTop=U;function Q(Le,Se){for(let De=0;Le&&Le.nodeType===Le.ELEMENT_NODE;De++)Le.scrollTop!==Se[De]&&(Le.scrollTop=Se[De]),Le=Le.parentNode}e.restoreParentsScrollTop=Q;class Y extends u.Disposable{constructor(Se){super();this._onDidFocus=this._register(new C.Emitter),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new C.Emitter),this.onDidBlur=this._onDidBlur.event;let De=Y.hasFocusWithin(Se),Pe=!1;const Fe=()=>{Pe=!1,De||(De=!0,this._onDidFocus.fire())},ze=()=>{De&&(Pe=!0,window.setTimeout(()=>{Pe&&(Pe=!1,De=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{Y.hasFocusWithin(Se)!==De&&(De?ze():Fe())},this._register(c(Se,e.EventType.FOCUS,Fe,!0)),this._register(c(Se,e.EventType.BLUR,ze,!0)),this._register(c(Se,e.EventType.FOCUS_IN,()=>this._refreshStateHandler())),this._register(c(Se,e.EventType.FOCUS_OUT,()=>this._refreshStateHandler()))}static hasFocusWithin(Se){const De=K(Se),Pe=De?De.activeElement:document.activeElement;return J(Pe,Se)}}function ne(Le){return new Y(Le)}e.trackFocus=ne;function ge(Le,...Se){if(Le.append(...Se),Se.length===1&&typeof Se[0]!="string")return Se[0]}e.append=ge;function fe(Le,Se){return Le.insertBefore(Se,Le.firstChild),Se}e.prepend=fe;function ce(Le,...Se){Le.innerText="",ge(Le,...Se)}e.reset=ce;const he=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var ve;(function(Le){Le.HTML="http://www.w3.org/1999/xhtml",Le.SVG="http://www.w3.org/2000/svg"})(ve=e.Namespace||(e.Namespace={}));function Ce(Le,Se,De,...Pe){let Fe=he.exec(Se);if(!Fe)throw new Error("Bad use of emmet");De=Object.assign({},De||{});let ze=Fe[1]||"div",Ke;return Le!==ve.HTML?Ke=document.createElementNS(Le,ze):Ke=document.createElement(ze),Fe[3]&&(Ke.id=Fe[3]),Fe[4]&&(Ke.className=Fe[4].replace(/\./g," ").trim()),Object.keys(De).forEach($e=>{const Ve=De[$e];typeof Ve!="undefined"&&(/^on\w+$/.test($e)?Ke[$e]=Ve:$e==="selected"?Ve&&Ke.setAttribute($e,"true"):Ke.setAttribute($e,Ve))}),Ke.append(...Pe),Ke}function be(Le,Se,...De){return Ce(ve.HTML,Le,Se,...De)}e.$=be,be.SVG=function(Le,Se,...De){return Ce(ve.SVG,Le,Se,...De)};function de(...Le){for(let Se of Le)Se.style.display="",Se.removeAttribute("aria-hidden")}e.show=de;function me(...Le){for(let Se of Le)Se.style.display="none",Se.setAttribute("aria-hidden","true")}e.hide=me;function _e(Le){return Array.prototype.slice.call(document.getElementsByTagName(Le),0)}e.getElementsByTagName=_e;function ye(Le){const Se=window.devicePixelRatio*Le;return Math.max(1,Math.floor(Se))/window.devicePixelRatio}e.computeScreenAwareSize=ye;function ke(Le){window.open(Le,"_blank","noopener")}e.windowOpenNoOpener=ke;function Te(Le){const Se=()=>{Le(),De=(0,e.scheduleAtNextAnimationFrame)(Se)};let De=(0,e.scheduleAtNextAnimationFrame)(Se);return(0,u.toDisposable)(()=>De.dispose())}e.animate=Te,g.RemoteAuthorities.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function Me(Le){return Le?`url('${g.FileAccess.asBrowserUri(Le).toString(!0).replace(/'/g,"%27")}')`:"url('')"}e.asCSSUrl=Me;function We(Le){return`'${Le.replace(/'/g,"%27")}'`}e.asCSSPropertyValue=We;class xe extends C.Emitter{constructor(){super();this._subscriptions=new u.DisposableStore,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(c(window,"keydown",Se=>{if(Se.defaultPrevented)return;const De=new k.StandardKeyboardEvent(Se);if(!(De.keyCode===6&&Se.repeat)){if(Se.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(Se.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(Se.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(Se.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(De.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=Se.altKey,this._keyStatus.ctrlKey=Se.ctrlKey,this._keyStatus.metaKey=Se.metaKey,this._keyStatus.shiftKey=Se.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=Se,this.fire(this._keyStatus))}},!0)),this._subscriptions.add(c(window,"keyup",Se=>{Se.defaultPrevented||(!Se.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!Se.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!Se.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!Se.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=Se.altKey,this._keyStatus.ctrlKey=Se.ctrlKey,this._keyStatus.metaKey=Se.metaKey,this._keyStatus.shiftKey=Se.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=Se,this.fire(this._keyStatus)))},!0)),this._subscriptions.add(c(document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(c(document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(c(document.body,"mousemove",Se=>{Se.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),this._subscriptions.add(c(window,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return xe.instance||(xe.instance=new xe),xe.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}e.ModifierKeyEmitter=xe;function He(Le,Se){window.matchMedia(Le).addEventListener("change",Se)}e.addMatchMediaChangeListener=He}),define(te[171],ie([1,0,7]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createElement=e.renderFormattedText=e.renderText=void 0;function m(t,n={}){const i=I(n);return i.textContent=t,i}e.renderText=m;function k(t,n={}){const i=I(n);return b(i,C(t,!!n.renderCodeSegments),n.actionHandler,n.renderCodeSegments),i}e.renderFormattedText=k;function I(t){const n=t.inline?"span":"div",i=document.createElement(n);return t.className&&(i.className=t.className),i}e.createElement=I;class w{constructor(n){this.source=n,this.index=0}eos(){return this.index>=this.source.length}next(){const n=this.peek();return this.advance(),n}peek(){return this.source[this.index]}advance(){this.index++}}function b(t,n,i,o){let c;if(n.type===2)c=document.createTextNode(n.content||"");else if(n.type===3)c=document.createElement("b");else if(n.type===4)c=document.createElement("i");else if(n.type===7&&o)c=document.createElement("code");else if(n.type===5&&i){const d=document.createElement("a");i.disposables.add(L.addStandardDisposableListener(d,"click",r=>{i.callback(String(n.index),r)})),c=d}else n.type===8?c=document.createElement("br"):n.type===1&&(c=t);c&&t!==c&&t.appendChild(c),c&&Array.isArray(n.children)&&n.children.forEach(d=>{b(c,d,i,o)})}function C(t,n){const i={type:1,children:[]};let o=0,c=i;const d=[],r=new w(t);for(;!r.eos();){let s=r.next();const a=s==="\\"&&g(r.peek(),n)!==0;if(a&&(s=r.next()),!a&&u(s,n)&&s===r.peek()){r.advance(),c.type===2&&(c=d.pop());const l=g(s,n);if(c.type===l||c.type===5&&l===6)c=d.pop();else{const h={type:l,children:[]};l===5&&(h.index=o,o++),c.children.push(h),d.push(c),c=h}}else if(s===`
+`)c.type===2&&(c=d.pop()),c.children.push({type:8});else if(c.type!==2){const l={type:2,content:s};c.children.push(l),d.push(c),c=l}else c.content+=s}return c.type===2&&(c=d.pop()),d.length,i}function u(t,n){return g(t,n)!==0}function g(t,n){switch(t){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return n?7:0;default:return 0}}}),define(te[98],ie([1,0,7,214,59,2,16]),function(q,e,L,m,k,I,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalMouseMoveMonitor=e.standardMouseMoveMerger=void 0;function b(u,g){let t=new k.StandardMouseEvent(g);return t.preventDefault(),{leftButton:t.leftButton,buttons:t.buttons,posx:t.posx,posy:t.posy}}e.standardMouseMoveMerger=b;class C{constructor(){this._hooks=new I.DisposableStore,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(g,t){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;const n=this._onStopCallback;this._onStopCallback=null,g&&n&&n(t)}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(g,t,n,i,o){if(this.isMonitoring())return;this._mouseMoveEventMerger=n,this._mouseMoveCallback=i,this._onStopCallback=o;const c=m.IframeUtils.getSameOriginWindowChain(),d=w.isIOS?"pointermove":"mousemove",r="mouseup",s=c.map(l=>l.window.document),a=L.getShadowRoot(g);a&&s.unshift(a);for(const l of s)this._hooks.add(L.addDisposableThrottledListener(l,d,h=>{if(h.buttons!==t){this.stopMonitoring(!0);return}this._mouseMoveCallback(h)},(h,f)=>this._mouseMoveEventMerger(h,f))),this._hooks.add(L.addDisposableListener(l,r,h=>this.stopMonitoring(!0)));if(m.IframeUtils.hasDifferentOriginAncestor()){let l=c[c.length-1];this._hooks.add(L.addDisposableListener(l.window.document,"mouseout",h=>{new k.StandardMouseEvent(h).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(L.addDisposableListener(l.window.document,"mouseover",h=>{new k.StandardMouseEvent(h).target.tagName.toLowerCase()==="html"&&this.stopMonitoring(!0)})),this._hooks.add(L.addDisposableListener(l.window.document.body,"mouseleave",h=>{this.stopMonitoring(!0)}))}}}e.GlobalMouseMoveMonitor=C});var Ie=this&&this.__decorate||function(q,e,L,m){var k=arguments.length,I=k<3?e:m===null?m=Object.getOwnPropertyDescriptor(e,L):m,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(q,e,L,m);else for(var b=q.length-1;b>=0;b--)(w=q[b])&&(I=(k<3?w(I):k>3?w(e,L,I):w(e,L))||I);return k>3&&I&&Object.defineProperty(e,L,I),I};define(te[60],ie([1,0,7,18,95,2]),function(q,e,L,m,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Gesture=e.EventType=void 0;var w;(function(C){C.Tap="-monaco-gesturetap",C.Change="-monaco-gesturechange",C.Start="-monaco-gesturestart",C.End="-monaco-gesturesend",C.Contextmenu="-monaco-gesturecontextmenu"})(w=e.EventType||(e.EventType={}));class b extends I.Disposable{constructor(){super();this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(L.addDisposableListener(document,"touchstart",u=>this.onTouchStart(u),{passive:!1})),this._register(L.addDisposableListener(document,"touchend",u=>this.onTouchEnd(u))),this._register(L.addDisposableListener(document,"touchmove",u=>this.onTouchMove(u),{passive:!1}))}static addTarget(u){return b.isTouchDevice()?(b.INSTANCE||(b.INSTANCE=new b),b.INSTANCE.targets.push(u),{dispose:()=>{b.INSTANCE.targets=b.INSTANCE.targets.filter(g=>g!==u)}}):I.Disposable.None}static ignoreTarget(u){return b.isTouchDevice()?(b.INSTANCE||(b.INSTANCE=new b),b.INSTANCE.ignoreTargets.push(u),{dispose:()=>{b.INSTANCE.ignoreTargets=b.INSTANCE.ignoreTargets.filter(g=>g!==u)}}):I.Disposable.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(u){let g=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let t=0,n=u.targetTouches.length;t=b.HOLD_DELAY&&Math.abs(c.initialPageX-m.tail(c.rollingPageX))<30&&Math.abs(c.initialPageY-m.tail(c.rollingPageY))<30){let r=this.newGestureEvent(w.Contextmenu,c.initialTarget);r.pageX=m.tail(c.rollingPageX),r.pageY=m.tail(c.rollingPageY),this.dispatchEvent(r)}else if(t===1){let r=m.tail(c.rollingPageX),s=m.tail(c.rollingPageY),a=m.tail(c.rollingTimestamps)-c.rollingTimestamps[0],l=r-c.rollingPageX[0],h=s-c.rollingPageY[0];const f=this.targets.filter(S=>c.initialTarget instanceof Node&&S.contains(c.initialTarget));this.inertia(f,g,Math.abs(l)/a,l>0?1:-1,r,Math.abs(h)/a,h>0?1:-1,s)}this.dispatchEvent(this.newGestureEvent(w.End,c.initialTarget)),delete this.activeTouches[o.identifier]}this.dispatched&&(u.preventDefault(),u.stopPropagation(),this.dispatched=!1)}newGestureEvent(u,g){let t=document.createEvent("CustomEvent");return t.initEvent(u,!1,!0),t.initialTarget=g,t.tapCount=0,t}dispatchEvent(u){if(u.type===w.Tap){const g=new Date().getTime();let t=0;g-this._lastSetTapCountTime>b.CLEAR_TAP_COUNT_TIME?t=1:t=2,this._lastSetTapCountTime=g,u.tapCount=t}else(u.type===w.Change||u.type===w.Contextmenu)&&(this._lastSetTapCountTime=0);for(let g=0;g{u.initialTarget instanceof Node&&g.contains(u.initialTarget)&&(g.dispatchEvent(u),this.dispatched=!0)})}inertia(u,g,t,n,i,o,c,d){this.handle=L.scheduleAtNextAnimationFrame(()=>{let r=Date.now(),s=r-g,a=0,l=0,h=!0;t+=b.SCROLL_FRICTION*s,o+=b.SCROLL_FRICTION*s,t>0&&(h=!1,a=n*t*s),o>0&&(h=!1,l=c*o*s);let f=this.newGestureEvent(w.Change);f.translationX=a,f.translationY=l,u.forEach(S=>S.dispatchEvent(f)),h||this.inertia(u,r,t,n,i+a,o,c,d+l)})}onTouchMove(u){let g=Date.now();for(let t=0,n=u.changedTouches.length;t3&&(o.rollingPageX.shift(),o.rollingPageY.shift(),o.rollingTimestamps.shift()),o.rollingPageX.push(i.pageX),o.rollingPageY.push(i.pageY),o.rollingTimestamps.push(g)}this.dispatched&&(u.preventDefault(),u.stopPropagation(),this.dispatched=!1)}}b.SCROLL_FRICTION=-.005,b.HOLD_DELAY=700,b.CLEAR_TAP_COUNT_TIME=400,Ie([k.memoize],b,"isTouchDevice",null),e.Gesture=b}),define(te[115],ie([1,0,7,28]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderIcon=e.renderLabelWithIcons=void 0;const k=new RegExp(`(\\\\)?\\$\\((${m.CSSIcon.iconNameExpression}(?:${m.CSSIcon.iconModifierExpression})?)\\)`,"g");function I(b){const C=new Array;let u,g=0,t=0;for(;(u=k.exec(b))!==null;){t=u.index||0,C.push(b.substring(g,t)),g=(u.index||0)+u[0].length;const[,n,i]=u;C.push(n?`$(${i})`:w({id:i}))}return g{g=t===`\r
+`?-1:0,n+=u;for(const i of C)i.end<=n||(i.start>=n&&(i.start+=g),i.end>=n&&(i.end+=g));return u+=g,"\u23CE"})}}e.HighlightedLabel=I}),define(te[324],ie([1,0,7]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RowCache=void 0;function m(I){try{I.parentElement&&I.parentElement.removeChild(I)}catch{}}class k{constructor(w){this.renderers=w,this.cache=new Map}alloc(w){let b=this.getTemplateCache(w).pop();if(!b){const C=(0,L.$)(".monaco-list-row"),g=this.getRenderer(w).renderTemplate(C);b={domNode:C,templateId:w,templateData:g}}return b}release(w){!w||this.releaseRow(w)}releaseRow(w){const{domNode:b,templateId:C}=w;b&&(b.classList.remove("scrolling"),m(b)),this.getTemplateCache(C).push(w)}getTemplateCache(w){let b=this.cache.get(w);return b||(b=[],this.cache.set(w,b)),b}dispose(){this.cache.forEach((w,b)=>{for(const C of w)this.getRenderer(b).disposeTemplate(C.templateData),C.templateData=null}),this.cache.clear()}getRenderer(w){const b=this.renderers.get(w);if(!b)throw new Error(`No renderer found for ${w}`);return b}}e.RowCache=k}),define(te[62],ie([1,0,7,44,59,60,2]),function(q,e,L,m,k,I,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Widget=void 0;class b extends w.Disposable{onclick(u,g){this._register(L.addDisposableListener(u,L.EventType.CLICK,t=>g(new k.StandardMouseEvent(t))))}onmousedown(u,g){this._register(L.addDisposableListener(u,L.EventType.MOUSE_DOWN,t=>g(new k.StandardMouseEvent(t))))}onmouseover(u,g){this._register(L.addDisposableListener(u,L.EventType.MOUSE_OVER,t=>g(new k.StandardMouseEvent(t))))}onnonbubblingmouseout(u,g){this._register(L.addDisposableNonBubblingMouseOutListener(u,t=>g(new k.StandardMouseEvent(t))))}onkeydown(u,g){this._register(L.addDisposableListener(u,L.EventType.KEY_DOWN,t=>g(new m.StandardKeyboardEvent(t))))}onkeyup(u,g){this._register(L.addDisposableListener(u,L.EventType.KEY_UP,t=>g(new m.StandardKeyboardEvent(t))))}oninput(u,g){this._register(L.addDisposableListener(u,L.EventType.INPUT,g))}onblur(u,g){this._register(L.addDisposableListener(u,L.EventType.BLUR,g))}onfocus(u,g){this._register(L.addDisposableListener(u,L.EventType.FOCUS,g))}ignoreGesture(u){I.Gesture.ignoreTarget(u)}}e.Widget=b}),define(te[172],ie([1,0,98,62,10]),function(q,e,L,m,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarArrow=e.ARROW_IMG_SIZE=void 0,e.ARROW_IMG_SIZE=11;class I extends m.Widget{constructor(b){super();this._onActivate=b.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=b.bgWidth+"px",this.bgDomNode.style.height=b.bgHeight+"px",typeof b.top!="undefined"&&(this.bgDomNode.style.top="0px"),typeof b.left!="undefined"&&(this.bgDomNode.style.left="0px"),typeof b.bottom!="undefined"&&(this.bgDomNode.style.bottom="0px"),typeof b.right!="undefined"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=b.className,this.domNode.classList.add(...b.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width=e.ARROW_IMG_SIZE+"px",this.domNode.style.height=e.ARROW_IMG_SIZE+"px",typeof b.top!="undefined"&&(this.domNode.style.top=b.top+"px"),typeof b.left!="undefined"&&(this.domNode.style.left=b.left+"px"),typeof b.bottom!="undefined"&&(this.domNode.style.bottom=b.bottom+"px"),typeof b.right!="undefined"&&(this.domNode.style.right=b.right+"px"),this._mouseMoveMonitor=this._register(new L.GlobalMouseMoveMonitor),this.onmousedown(this.bgDomNode,C=>this._arrowMouseDown(C)),this.onmousedown(this.domNode,C=>this._arrowMouseDown(C)),this._mousedownRepeatTimer=this._register(new k.IntervalTimer),this._mousedownScheduleRepeatTimer=this._register(new k.TimeoutTimer)}_arrowMouseDown(b){const C=()=>{this._mousedownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(C,200),this._mouseMoveMonitor.startMonitoring(b.target,b.buttons,L.standardMouseMoveMerger,u=>{},()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()}),b.preventDefault()}}e.ScrollbarArrow=I}),define(te[221],ie([1,0,7,31,98,172,319,62,16]),function(q,e,L,m,k,I,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractScrollbar=void 0;const u=140;class g extends b.Widget{constructor(n){super();this._lazyRender=n.lazyRender,this._host=n.host,this._scrollable=n.scrollable,this._scrollByPage=n.scrollByPage,this._scrollbarState=n.scrollbarState,this._visibilityController=this._register(new w.ScrollbarVisibilityController(n.visibility,"visible scrollbar "+n.extraScrollbarClassName,"invisible scrollbar "+n.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new k.GlobalMouseMoveMonitor),this._shouldRender=!0,this.domNode=(0,m.createFastDomNode)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,i=>this._domNodeMouseDown(i))}_createArrow(n){const i=this._register(new I.ScrollbarArrow(n));this.domNode.domNode.appendChild(i.bgDomNode),this.domNode.domNode.appendChild(i.domNode)}_createSlider(n,i,o,c){this.slider=(0,m.createFastDomNode)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(n),this.slider.setLeft(i),typeof o=="number"&&this.slider.setWidth(o),typeof c=="number"&&this.slider.setHeight(c),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,d=>{d.leftButton&&(d.preventDefault(),this._sliderMouseDown(d,()=>{}))}),this.onclick(this.slider.domNode,d=>{d.leftButton&&d.stopPropagation()})}_onElementSize(n){return this._scrollbarState.setVisibleSize(n)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(n){return this._scrollbarState.setScrollSize(n)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(n){return this._scrollbarState.setScrollPosition(n)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){!this._shouldRender||(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(n){n.target===this.domNode.domNode&&this._onMouseDown(n)}delegateMouseDown(n){const i=this.domNode.domNode.getClientRects()[0].top,o=i+this._scrollbarState.getSliderPosition(),c=i+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),d=this._sliderMousePosition(n);o<=d&&d<=c?n.leftButton&&(n.preventDefault(),this._sliderMouseDown(n,()=>{})):this._onMouseDown(n)}_onMouseDown(n){let i,o;if(n.target===this.domNode.domNode&&typeof n.browserEvent.offsetX=="number"&&typeof n.browserEvent.offsetY=="number")i=n.browserEvent.offsetX,o=n.browserEvent.offsetY;else{const d=L.getDomNodePagePosition(this.domNode.domNode);i=n.posx-d.left,o=n.posy-d.top}const c=this._mouseDownRelativePosition(i,o);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(c):this._scrollbarState.getDesiredScrollPositionFromOffset(c)),n.leftButton&&(n.preventDefault(),this._sliderMouseDown(n,()=>{}))}_sliderMouseDown(n,i){const o=this._sliderMousePosition(n),c=this._sliderOrthogonalMousePosition(n),d=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(n.target,n.buttons,k.standardMouseMoveMerger,r=>{const s=this._sliderOrthogonalMousePosition(r),a=Math.abs(s-c);if(C.isWindows&&a>u){this._setDesiredScrollPositionNow(d.getScrollPosition());return}const h=this._sliderMousePosition(r)-o;this._setDesiredScrollPositionNow(d.getDesiredScrollPositionFromDelta(h))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),i()}),this._host.onDragStart()}_setDesiredScrollPositionNow(n){const i={};this.writeScrollPosition(i,n),this._scrollable.setScrollPositionNow(i)}updateScrollbarSize(n){this._updateScrollbarSize(n),this._scrollbarState.setScrollbarSize(n),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}e.AbstractScrollbar=g}),define(te[325],ie([1,0,59,221,172,215,28]),function(q,e,L,m,k,I,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HorizontalScrollbar=void 0;class b extends m.AbstractScrollbar{constructor(u,g,t){const n=u.getScrollDimensions(),i=u.getCurrentScrollPosition();super({lazyRender:g.lazyRender,host:t,scrollbarState:new I.ScrollbarState(g.horizontalHasArrows?g.arrowSize:0,g.horizontal===2?0:g.horizontalScrollbarSize,g.vertical===2?0:g.verticalScrollbarSize,n.width,n.scrollWidth,i.scrollLeft),visibility:g.horizontal,extraScrollbarClassName:"horizontal",scrollable:u,scrollByPage:g.scrollByPage});if(g.horizontalHasArrows){const o=(g.arrowSize-k.ARROW_IMG_SIZE)/2,c=(g.horizontalScrollbarSize-k.ARROW_IMG_SIZE)/2;this._createArrow({className:"scra",icon:w.Codicon.scrollbarButtonLeft,top:c,left:o,bottom:void 0,right:void 0,bgWidth:g.arrowSize,bgHeight:g.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new L.StandardWheelEvent(null,1,0))}),this._createArrow({className:"scra",icon:w.Codicon.scrollbarButtonRight,top:c,left:void 0,bottom:void 0,right:o,bgWidth:g.arrowSize,bgHeight:g.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new L.StandardWheelEvent(null,-1,0))})}this._createSlider(Math.floor((g.horizontalScrollbarSize-g.horizontalSliderSize)/2),0,void 0,g.horizontalSliderSize)}_updateSlider(u,g){this.slider.setWidth(u),this.slider.setLeft(g)}_renderDomNode(u,g){this.domNode.setWidth(u),this.domNode.setHeight(g),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(u){return this._shouldRender=this._onElementScrollSize(u.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(u.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(u.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(u,g){return u}_sliderMousePosition(u){return u.posx}_sliderOrthogonalMousePosition(u){return u.posy}_updateScrollbarSize(u){this.slider.setHeight(u)}writeScrollPosition(u,g){u.scrollLeft=g}updateOptions(u){this.updateScrollbarSize(u.horizontal===2?0:u.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(u.vertical===2?0:u.verticalScrollbarSize),this._visibilityController.setVisibility(u.horizontal),this._scrollByPage=u.scrollByPage}}e.HorizontalScrollbar=b}),define(te[326],ie([1,0,59,221,172,215,28]),function(q,e,L,m,k,I,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VerticalScrollbar=void 0;class b extends m.AbstractScrollbar{constructor(u,g,t){const n=u.getScrollDimensions(),i=u.getCurrentScrollPosition();super({lazyRender:g.lazyRender,host:t,scrollbarState:new I.ScrollbarState(g.verticalHasArrows?g.arrowSize:0,g.vertical===2?0:g.verticalScrollbarSize,0,n.height,n.scrollHeight,i.scrollTop),visibility:g.vertical,extraScrollbarClassName:"vertical",scrollable:u,scrollByPage:g.scrollByPage});if(g.verticalHasArrows){const o=(g.arrowSize-k.ARROW_IMG_SIZE)/2,c=(g.verticalScrollbarSize-k.ARROW_IMG_SIZE)/2;this._createArrow({className:"scra",icon:w.Codicon.scrollbarButtonUp,top:o,left:c,bottom:void 0,right:void 0,bgWidth:g.verticalScrollbarSize,bgHeight:g.arrowSize,onActivate:()=>this._host.onMouseWheel(new L.StandardWheelEvent(null,0,1))}),this._createArrow({className:"scra",icon:w.Codicon.scrollbarButtonDown,top:void 0,left:c,bottom:o,right:void 0,bgWidth:g.verticalScrollbarSize,bgHeight:g.arrowSize,onActivate:()=>this._host.onMouseWheel(new L.StandardWheelEvent(null,0,-1))})}this._createSlider(0,Math.floor((g.verticalScrollbarSize-g.verticalSliderSize)/2),g.verticalSliderSize,void 0)}_updateSlider(u,g){this.slider.setHeight(u),this.slider.setTop(g)}_renderDomNode(u,g){this.domNode.setWidth(g),this.domNode.setHeight(u),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(u){return this._shouldRender=this._onElementScrollSize(u.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(u.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(u.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(u,g){return g}_sliderMousePosition(u){return u.posy}_sliderOrthogonalMousePosition(u){return u.posx}_updateScrollbarSize(u){this.slider.setWidth(u)}writeScrollPosition(u,g){u.scrollTop=g}updateOptions(u){this.updateScrollbarSize(u.vertical===2?0:u.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(u.vertical),this._scrollByPage=u.scrollByPage}}e.VerticalScrollbar=b}),define(te[42],ie([1,0,168,45,84,16,8,25]),function(q,e,L,m,k,I,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataUri=e.addTrailingPathSeparator=e.removeTrailingPathSeparator=e.hasTrailingPathSeparator=e.isEqualAuthority=e.isAbsolutePath=e.resolvePath=e.relativePath=e.normalizePath=e.joinPath=e.dirname=e.extname=e.basename=e.basenameOrAuthority=e.getComparisonKey=e.isEqualOrParent=e.isEqual=e.extUriIgnorePathCase=e.extUriBiasedIgnorePathCase=e.extUri=e.ExtUri=e.originalFSPath=void 0;function C(t){return(0,b.uriToFsPath)(t,!0)}e.originalFSPath=C;class u{constructor(n){this._ignorePathCasing=n}compare(n,i,o=!1){return n===i?0:(0,w.compare)(this.getComparisonKey(n,o),this.getComparisonKey(i,o))}isEqual(n,i,o=!1){return n===i?!0:!n||!i?!1:this.getComparisonKey(n,o)===this.getComparisonKey(i,o)}getComparisonKey(n,i=!1){return n.with({path:this._ignorePathCasing(n)?n.path.toLowerCase():void 0,fragment:i?null:void 0}).toString()}isEqualOrParent(n,i,o=!1){if(n.scheme===i.scheme){if(n.scheme===m.Schemas.file)return L.isEqualOrParent(C(n),C(i),this._ignorePathCasing(n))&&n.query===i.query&&(o||n.fragment===i.fragment);if((0,e.isEqualAuthority)(n.authority,i.authority))return L.isEqualOrParent(n.path,i.path,this._ignorePathCasing(n),"/")&&n.query===i.query&&(o||n.fragment===i.fragment)}return!1}joinPath(n,...i){return b.URI.joinPath(n,...i)}basenameOrAuthority(n){return(0,e.basename)(n)||n.authority}basename(n){return k.posix.basename(n.path)}extname(n){return k.posix.extname(n.path)}dirname(n){if(n.path.length===0)return n;let i;return n.scheme===m.Schemas.file?i=b.URI.file(k.dirname(C(n))).path:(i=k.posix.dirname(n.path),n.authority&&i.length&&i.charCodeAt(0)!==47&&(console.error(`dirname("${n.toString})) resulted in a relative path`),i="/")),n.with({path:i})}normalizePath(n){if(!n.path.length)return n;let i;return n.scheme===m.Schemas.file?i=b.URI.file(k.normalize(C(n))).path:i=k.posix.normalize(n.path),n.with({path:i})}relativePath(n,i){if(n.scheme!==i.scheme||!(0,e.isEqualAuthority)(n.authority,i.authority))return;if(n.scheme===m.Schemas.file){const d=k.relative(C(n),C(i));return I.isWindows?L.toSlashes(d):d}let o=n.path||"/",c=i.path||"/";if(this._ignorePathCasing(n)){let d=0;for(const r=Math.min(o.length,c.length);dL.getRoot(o).length&&o[o.length-1]===i}else{const o=n.path;return o.length>1&&o.charCodeAt(o.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(n.fsPath)}}removeTrailingPathSeparator(n,i=k.sep){return(0,e.hasTrailingPathSeparator)(n,i)?n.with({path:n.path.substr(0,n.path.length-1)}):n}addTrailingPathSeparator(n,i=k.sep){let o=!1;if(n.scheme===m.Schemas.file){const c=C(n);o=c!==void 0&&c.length===L.getRoot(c).length&&c[c.length-1]===i}else{i="/";const c=n.path;o=c.length===1&&c.charCodeAt(c.length-1)===47}return!o&&!(0,e.hasTrailingPathSeparator)(n,i)?n.with({path:n.path+"/"}):n}}e.ExtUri=u,e.extUri=new u(()=>!1),e.extUriBiasedIgnorePathCase=new u(t=>t.scheme===m.Schemas.file?!I.isLinux:!0),e.extUriIgnorePathCase=new u(t=>!0),e.isEqual=e.extUri.isEqual.bind(e.extUri),e.isEqualOrParent=e.extUri.isEqualOrParent.bind(e.extUri),e.getComparisonKey=e.extUri.getComparisonKey.bind(e.extUri),e.basenameOrAuthority=e.extUri.basenameOrAuthority.bind(e.extUri),e.basename=e.extUri.basename.bind(e.extUri),e.extname=e.extUri.extname.bind(e.extUri),e.dirname=e.extUri.dirname.bind(e.extUri),e.joinPath=e.extUri.joinPath.bind(e.extUri),e.normalizePath=e.extUri.normalizePath.bind(e.extUri),e.relativePath=e.extUri.relativePath.bind(e.extUri),e.resolvePath=e.extUri.resolvePath.bind(e.extUri),e.isAbsolutePath=e.extUri.isAbsolutePath.bind(e.extUri),e.isEqualAuthority=e.extUri.isEqualAuthority.bind(e.extUri),e.hasTrailingPathSeparator=e.extUri.hasTrailingPathSeparator.bind(e.extUri),e.removeTrailingPathSeparator=e.extUri.removeTrailingPathSeparator.bind(e.extUri),e.addTrailingPathSeparator=e.extUri.addTrailingPathSeparator.bind(e.extUri);var g;(function(t){t.META_DATA_LABEL="label",t.META_DATA_DESCRIPTION="description",t.META_DATA_SIZE="size",t.META_DATA_MIME="mime";function n(i){const o=new Map;i.path.substring(i.path.indexOf(";")+1,i.path.lastIndexOf(";")).split(";").forEach(r=>{const[s,a]=r.split(":");s&&a&&o.set(s,a)});const d=i.path.substring(0,i.path.indexOf(";"));return d&&o.set(t.META_DATA_MIME,d),o}t.parseMetaData=n})(g=e.DataUri||(e.DataUri={}))}),define(te[327],ie([1,0,7,759,92,171,59,115,10,21,13,4,68,97,136,2,314,219,45,40,42,8,25]),function(q,e,L,m,k,I,w,b,C,u,g,t,n,i,o,c,d,r,s,a,l,h,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderMarkdown=void 0;function S(y,E={},N={}){var D;const M=new c.DisposableStore;let B=!1;const O=M.add(new u.CancellationTokenSource),T=(0,I.createElement)(E),A=function(J){let re;try{re=(0,r.parse)(decodeURIComponent(J))}catch{}return re?(re=(0,a.cloneAndChange)(re,se=>{if(y.uris&&y.uris[se])return f.URI.revive(y.uris[se])}),encodeURIComponent(JSON.stringify(re))):J},P=function(J,re){const se=y.uris&&y.uris[J];let Z=f.URI.revive(se);return re?J.startsWith(s.Schemas.data+":")?J:(Z||(Z=f.URI.parse(J)),s.FileAccess.asBrowserUri(Z).toString(!0)):!Z||f.URI.parse(J).toString()===Z.toString()?J:(Z.query&&(Z=Z.with({query:A(Z.query)})),Z.toString())};let F;const W=new Promise(J=>F=J),R=new d.marked.Renderer;if(R.image=(J,re,se)=>{let Z=[],V=[];return J&&({href:J,dimensions:Z}=(0,n.parseHrefAndDimensions)(J),V.push(`src="${J}"`)),se&&V.push(`alt="${se}"`),re&&V.push(`title="${re}"`),Z.length&&(V=V.concat(Z)),""},R.link=(J,re,se)=>typeof J!="string"?"":(J===se&&(se=(0,n.removeMarkdownEscapes)(se)),J=P(J,!1),y.baseUri&&(J=v(f.URI.from(y.baseUri),J)),re=typeof re=="string"?(0,n.removeMarkdownEscapes)(re):"",J=(0,n.removeMarkdownEscapes)(J),!J||/^data:|javascript:/i.test(J)||/^command:/i.test(J)&&!y.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(J)?se:(J=J.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),`${se}`)),R.paragraph=J=>`${J}
`,E.codeBlockRenderer&&(R.code=(J,re)=>{const se=E.codeBlockRenderer(re??"",J),Z=o.defaultGenerator.nextId();return(0,C.raceCancellation)(Promise.all([se,W]),O.token).then(V=>{var K;if(!B&&V){const X=T.querySelector(`div[data-code="${Z}"]`);X&&L.reset(X,V[0]),(K=E.asyncRenderCallback)===null||K===void 0||K.call(E)}}).catch(()=>{}),`${(0,h.escape)(J)}
`}),E.actionHandler){const J=E.actionHandler.disposables.add(new k.DomEmitter(T,"click")),re=E.actionHandler.disposables.add(new k.DomEmitter(T,"auxclick"));E.actionHandler.disposables.add(t.Event.any(J.event,re.event)(se=>{const Z=new w.StandardMouseEvent(se);if(!Z.leftButton&&!Z.middleButton)return;let V=Z.target;if(!(V.tagName!=="A"&&(V=V.parentElement,!V||V.tagName!=="A")))try{let K=V.dataset.href;K&&(y.baseUri&&(K=v(f.URI.from(y.baseUri),K)),E.actionHandler.callback(K,Z))}catch(K){(0,g.onUnexpectedError)(K)}finally{Z.preventDefault()}}))}y.supportHtml||(N.sanitizer=J=>(y.isTrusted?J.match(/^(]+>)|(<\/\s*span>)$/):void 0)?J:"",N.sanitize=!0,N.silent=!0),N.renderer=R;let z=(D=y.value)!==null&&D!==void 0?D:"";z.length>1e5&&(z=`${z.substr(0,1e5)}\u2026`),y.supportThemeIcons&&(z=(0,i.markdownEscapeEscapedIcons)(z));let j=d.marked.parse(z,N);y.supportThemeIcons&&(j=(0,b.renderLabelWithIcons)(j).map(re=>typeof re=="string"?re:re.outerHTML).join(""));const G=new DOMParser().parseFromString(p(y,j),"text/html");if(G.body.querySelectorAll("img").forEach(J=>{const re=J.getAttribute("src");if(re){let se=re;try{y.baseUri&&(se=v(f.URI.from(y.baseUri),se))}catch{}J.src=P(se,!0)}}),T.innerHTML=p(y,G.body.innerHTML),F(),E.asyncRenderCallback)for(const J of T.getElementsByTagName("img")){const re=M.add(L.addDisposableListener(J,"load",()=>{re.dispose(),E.asyncRenderCallback()}))}return{element:T,dispose:()=>{B=!0,O.cancel(),M.dispose()}}}e.renderMarkdown=S;function v(y,E){return/^\w[\w\d+.-]*:/.test(E)?E:y.path.endsWith("/")?(0,l.resolvePath)(y,E).toString():(0,l.resolvePath)((0,l.dirname)(y),E).toString()}function p(y,E){const{config:N,allowedSchemes:D}=_(y);m.addHook("uponSanitizeAttribute",(B,O)=>{if(O.attrName==="style"||O.attrName==="class"){if(B.tagName==="SPAN"){if(O.attrName==="style"){O.keepAttr=/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(O.attrValue);return}else if(O.attrName==="class"){O.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(O.attrValue);return}}O.keepAttr=!1;return}});const M=document.createElement("a");m.addHook("afterSanitizeAttributes",B=>{for(const O of["href","src"])B.hasAttribute(O)&&(M.href=B.getAttribute(O),D.includes(M.protocol.replace(/:$/,""))||B.removeAttribute(O))});try{return m.sanitize(E,Object.assign(Object.assign({},N),{RETURN_TRUSTED_TYPE:!0}))}finally{m.removeHook("uponSanitizeAttribute"),m.removeHook("afterSanitizeAttributes")}}function _(y){const E=[s.Schemas.http,s.Schemas.https,s.Schemas.mailto,s.Schemas.data,s.Schemas.file,s.Schemas.vscodeFileResource,s.Schemas.vscodeRemote,s.Schemas.vscodeRemoteResource];return y.isTrusted&&E.push(s.Schemas.command),{config:{ALLOWED_TAGS:["ul","li","p","b","i","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],ALLOWED_ATTR:["href","data-href","target","title","src","alt","class","style","data-code","width","height","align"],ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:E}}}),define(te[173],ie([1,0,168,45,16,42,25]),function(q,e,L,m,k,I,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeDriveLetter=e.getBaseLabel=void 0;function b(g){if(!g)return;typeof g=="string"&&(g=w.URI.file(g));const t=(0,I.basename)(g)||(g.scheme===m.Schemas.file?g.fsPath:g.path);return k.isWindows&&(0,L.isRootOrDriveLetter)(t)?C(t):t}e.getBaseLabel=b;function C(g,t){return(0,L.hasDriveLetter)(g,t)?g.charAt(0).toUpperCase()+g.slice(1):g}e.normalizeDriveLetter=C;let u=Object.create(null)}),define(te[328],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateUuid=void 0;const L=new Uint8Array(16),m=[];for(let w=0;w<256;w++)m.push(w.toString(16).padStart(2,"0"));let k;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?k=crypto.getRandomValues.bind(crypto):k=function(w){for(let b=0;b{this._pendingReplies[_]={resolve:y,reject:E},this._send(new t(this._workerId,_,v,p))})}listen(v,p){let _=null;const y=new m.Emitter({onFirstListenerAdd:()=>{_=String(++this._lastSentReq),this._pendingEmitters.set(_,y),this._send(new i(this._workerId,_,v,p))},onLastListenerRemove:()=>{this._pendingEmitters.delete(_),this._send(new c(this._workerId,_)),_=null}});return y.event}handleMessage(v){!v||!v.vsWorker||this._workerId!==-1&&v.vsWorker!==this._workerId||this._handleMessage(v)}_handleMessage(v){switch(v.type){case 1:return this._handleReplyMessage(v);case 0:return this._handleRequestMessage(v);case 2:return this._handleSubscribeEventMessage(v);case 3:return this._handleEventMessage(v);case 4:return this._handleUnsubscribeEventMessage(v)}}_handleReplyMessage(v){if(!this._pendingReplies[v.seq]){console.warn("Got reply to unknown seq");return}let p=this._pendingReplies[v.seq];if(delete this._pendingReplies[v.seq],v.err){let _=v.err;v.err.$isError&&(_=new Error,_.name=v.err.name,_.message=v.err.message,_.stack=v.err.stack),p.reject(_);return}p.resolve(v.res)}_handleRequestMessage(v){let p=v.req;this._handler.handleMessage(v.method,v.args).then(y=>{this._send(new n(this._workerId,p,y,void 0))},y=>{y.detail instanceof Error&&(y.detail=(0,L.transformErrorForSerialization)(y.detail)),this._send(new n(this._workerId,p,void 0,(0,L.transformErrorForSerialization)(y)))})}_handleSubscribeEventMessage(v){const p=v.req,_=this._handler.handleEvent(v.eventName,v.arg)(y=>{this._send(new o(this._workerId,p,y))});this._pendingEvents.set(p,_)}_handleEventMessage(v){if(!this._pendingEmitters.has(v.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(v.req).fire(v.event)}_handleUnsubscribeEventMessage(v){if(!this._pendingEvents.has(v.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(v.req).dispose(),this._pendingEvents.delete(v.req)}_send(v){let p=[];if(v.type===0)for(let _=0;_{this._protocol.handleMessage(B)},B=>{y&&y(B)})),this._protocol=new d({sendMessage:(B,O)=>{this._worker.postMessage(B,O)},handleMessage:(B,O)=>{if(typeof _[B]!="function")return Promise.reject(new Error("Missing method "+B+" on main thread host."));try{return Promise.resolve(_[B].apply(_,O))}catch(T){return Promise.reject(T)}},handleEvent:(B,O)=>{if(a(B)){const T=_[B].call(_,O);if(typeof T!="function")throw new Error(`Missing dynamic event ${B} on main thread host.`);return T}if(s(B)){const T=_[B];if(typeof T!="function")throw new Error(`Missing event ${B} on main thread host.`);return T}throw new Error(`Malformed event name ${B}`)}}),this._protocol.setWorkerId(this._worker.getId());let E=null;typeof I.globals.require!="undefined"&&typeof I.globals.require.getConfig=="function"?E=I.globals.require.getConfig():typeof I.globals.requirejs!="undefined"&&(E=I.globals.requirejs.s.contexts._.config);const N=w.getAllMethodNames(_);this._onModuleLoaded=this._protocol.sendMessage(C,[this._worker.getId(),JSON.parse(JSON.stringify(E)),p,N]);const D=(B,O)=>this._request(B,O),M=(B,O)=>this._protocol.listen(B,O);this._lazyProxy=new Promise((B,O)=>{y=O,this._onModuleLoaded.then(T=>{B(l(T,D,M))},T=>{O(T),this._onError("Worker failed to load "+p,T)})})}getProxyObject(){return this._lazyProxy}_request(v,p){return new Promise((_,y)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(v,p).then(_,y)},y)})}_onError(v,p){console.error(v),console.info(p)}}e.SimpleWorkerClient=r;function s(S){return S[0]==="o"&&S[1]==="n"&&b.isUpperAsciiLetter(S.charCodeAt(2))}function a(S){return/^onDynamic/.test(S)&&b.isUpperAsciiLetter(S.charCodeAt(9))}function l(S,v,p){const _=N=>function(){const D=Array.prototype.slice.call(arguments,0);return v(N,D)},y=N=>function(D){return p(N,D)};let E={};for(const N of S){if(a(N)){E[N]=y(N);continue}if(s(N)){E[N]=p(N,void 0);continue}E[N]=_(N)}return E}class h{constructor(v,p){this._requestHandlerFactory=p,this._requestHandler=null,this._protocol=new d({sendMessage:(_,y)=>{v(_,y)},handleMessage:(_,y)=>this._handleMessage(_,y),handleEvent:(_,y)=>this._handleEvent(_,y)})}onmessage(v){this._protocol.handleMessage(v)}_handleMessage(v,p){if(v===C)return this.initialize(p[0],p[1],p[2],p[3]);if(!this._requestHandler||typeof this._requestHandler[v]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+v));try{return Promise.resolve(this._requestHandler[v].apply(this._requestHandler,p))}catch(_){return Promise.reject(_)}}_handleEvent(v,p){if(!this._requestHandler)throw new Error("Missing requestHandler");if(a(v)){const _=this._requestHandler[v].call(this._requestHandler,p);if(typeof _!="function")throw new Error(`Missing dynamic event ${v} on request handler.`);return _}if(s(v)){const _=this._requestHandler[v];if(typeof _!="function")throw new Error(`Missing event ${v} on request handler.`);return _}throw new Error(`Malformed event name ${v}`)}initialize(v,p,_,y){this._protocol.setWorkerId(v);const D=l(y,(M,B)=>this._protocol.sendMessage(M,B),(M,B)=>this._protocol.listen(M,B));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(D),Promise.resolve(w.getAllMethodNames(this._requestHandler))):(p&&(typeof p.baseUrl!="undefined"&&delete p.baseUrl,typeof p.paths!="undefined"&&typeof p.paths.vs!="undefined"&&delete p.paths.vs,typeof p.trustedTypesPolicy!==void 0&&delete p.trustedTypesPolicy,p.catchError=!0,I.globals.require.config(p)),new Promise((M,B)=>{(I.globals.require||q)([_],T=>{if(this._requestHandler=T.create(D),!this._requestHandler){B(new Error("No RequestHandler!"));return}M(w.getAllMethodNames(this._requestHandler))},B)}))}}e.SimpleWorkerServer=h;function f(S){return new h(S,null)}e.create=f}),define(te[329],ie([1,0,16,222]),function(q,e,L,m){"use strict";var k;Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultWorkerFactory=e.getWorkerBootstrapUrl=void 0;const I=(k=window.trustedTypes)===null||k===void 0?void 0:k.createPolicy("defaultWorkerFactory",{createScriptURL:t=>t});function w(t){if(L.globals.MonacoEnvironment){if(typeof L.globals.MonacoEnvironment.getWorker=="function")return L.globals.MonacoEnvironment.getWorker("workerMain.js",t);if(typeof L.globals.MonacoEnvironment.getWorkerUrl=="function"){const n=L.globals.MonacoEnvironment.getWorkerUrl("workerMain.js",t);return new Worker(I?I.createScriptURL(n):n,{name:t})}}if(typeof q=="function"){const n=q.toUrl("vs/base/worker/workerMain.js"),i=b(n,t);return new Worker(I?I.createScriptURL(i):i,{name:t})}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function b(t,n){if(/^((http:)|(https:)|(file:))/.test(t)&&t.substring(0,self.origin.length)!==self.origin){const i="vs/base/worker/defaultWorkerFactory.js",o=q.toUrl(i).slice(0,-i.length),c=`/*${n}*/self.MonacoEnvironment={baseUrl: '${o}'};const ttPolicy = self.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });importScripts(ttPolicy?.createScriptURL('${t}') ?? '${t}');/*${n}*/`,d=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(d)}return t+"#"+n}e.getWorkerBootstrapUrl=b;function C(t){return typeof t.then=="function"}class u{constructor(n,i,o,c,d){this.id=i;const r=w(o);C(r)?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(n,[]),this.worker.then(s=>{s.onmessage=function(a){c(a.data)},s.onmessageerror=d,typeof s.addEventListener=="function"&&s.addEventListener("error",d)})}getId(){return this.id}postMessage(n,i){this.worker&&this.worker.then(o=>o.postMessage(n,i))}dispose(){this.worker&&this.worker.then(n=>n.terminate()),this.worker=null}}class g{constructor(n){this._label=n,this._webWorkerFailedBeforeError=!1}create(n,i,o){let c=++g.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new u(n,c,this._label||"anonymous"+c,i,d=>{(0,m.logOnceWebWorkerWarning)(d),this._webWorkerFailedBeforeError=d,o(d)})}}e.DefaultWorkerFactory=g,g.LAST_WORKER_ID=0}),define(te[223],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.quickPickItemScorerAccessor=e.QuickPickItemScorerAccessor=e.ItemActivation=e.QuickInputHideReason=e.NO_KEY_MODS=void 0,e.NO_KEY_MODS={ctrlCmd:!1,alt:!1};var L;(function(I){I[I.Blur=1]="Blur",I[I.Gesture=2]="Gesture",I[I.Other=3]="Other"})(L=e.QuickInputHideReason||(e.QuickInputHideReason={}));var m;(function(I){I[I.NONE=0]="NONE",I[I.FIRST=1]="FIRST",I[I.SECOND=2]="SECOND",I[I.LAST=3]="LAST"})(m=e.ItemActivation||(e.ItemActivation={}));class k{constructor(w){this.options=w}}e.QuickPickItemScorerAccessor=k,e.quickPickItemScorerAccessor=new k}),define(te[330],ie([1,0,10,4,2,19]),function(q,e,L,m,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryStorageDatabase=e.Storage=void 0;var w;(function(u){u[u.None=0]="None",u[u.Initialized=1]="Initialized",u[u.Closed=2]="Closed"})(w||(w={}));class b extends k.Disposable{constructor(g,t=Object.create(null)){super();this.database=g,this.options=t,this._onDidChangeStorage=this._register(new m.Emitter),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=w.None,this.cache=new Map,this.flushDelayer=new L.ThrottledDelayer(b.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(g=>this.onDidChangeItemsExternal(g)))}onDidChangeItemsExternal(g){var t,n;(t=g.changed)===null||t===void 0||t.forEach((i,o)=>this.accept(o,i)),(n=g.deleted)===null||n===void 0||n.forEach(i=>this.accept(i,void 0))}accept(g,t){if(this.state===w.Closed)return;let n=!1;(0,I.isUndefinedOrNull)(t)?n=this.cache.delete(g):this.cache.get(g)!==t&&(this.cache.set(g,t),n=!0),n&&this._onDidChangeStorage.fire(g)}get(g,t){const n=this.cache.get(g);return(0,I.isUndefinedOrNull)(n)?t:n}getBoolean(g,t){const n=this.get(g);return(0,I.isUndefinedOrNull)(n)?t:n==="true"}getNumber(g,t){const n=this.get(g);return(0,I.isUndefinedOrNull)(n)?t:parseInt(n,10)}set(g,t){return we(this,void 0,void 0,function*(){if(this.state===w.Closed)return;if((0,I.isUndefinedOrNull)(t))return this.delete(g);const n=String(t);if(this.cache.get(g)!==n)return this.cache.set(g,n),this.pendingInserts.set(g,n),this.pendingDeletes.delete(g),this._onDidChangeStorage.fire(g),this.doFlush()})}delete(g){return we(this,void 0,void 0,function*(){if(!(this.state===w.Closed||!this.cache.delete(g)))return this.pendingDeletes.has(g)||this.pendingDeletes.add(g),this.pendingInserts.delete(g),this._onDidChangeStorage.fire(g),this.doFlush()})}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}flushPending(){return we(this,void 0,void 0,function*(){if(!this.hasPending)return;const g={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(g).finally(()=>{var t;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)(t=this.whenFlushedCallbacks.pop())===null||t===void 0||t()})})}doFlush(g){return we(this,void 0,void 0,function*(){return this.flushDelayer.trigger(()=>this.flushPending(),g)})}dispose(){this.flushDelayer.dispose(),super.dispose()}}e.Storage=b,b.DEFAULT_FLUSH_DELAY=100;class C{constructor(){this.onDidChangeItemsExternal=m.Event.None,this.items=new Map}updateItems(g){return we(this,void 0,void 0,function*(){g.insert&&g.insert.forEach((t,n)=>this.items.set(n,t)),g.delete&&g.delete.forEach(t=>this.items.delete(t))})}}e.InMemoryStorageDatabase=C}),define(te[224],ie([12]),{}),define(te[331],ie([12]),{}),define(te[46],ie([1,0,7,16,331]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.status=e.alert=e.setARIAContainer=void 0;const k=2e4;let I,w,b,C,u;function g(o){I=document.createElement("div"),I.className="monaco-aria-container";const c=()=>{const r=document.createElement("div");return r.className="monaco-alert",r.setAttribute("role","alert"),r.setAttribute("aria-atomic","true"),I.appendChild(r),r};w=c(),b=c();const d=()=>{const r=document.createElement("div");return r.className="monaco-status",r.setAttribute("role","complementary"),r.setAttribute("aria-live","polite"),r.setAttribute("aria-atomic","true"),I.appendChild(r),r};C=d(),u=d(),o.appendChild(I)}e.setARIAContainer=g;function t(o){!I||(w.textContent!==o?(L.clearNode(b),i(w,o)):(L.clearNode(w),i(b,o)))}e.alert=t;function n(o){!I||(m.isMacintosh?t(o):C.textContent!==o?(L.clearNode(u),i(C,o)):(L.clearNode(C),i(u,o)))}e.status=n;function i(o,c){L.clearNode(o),c.length>k&&(c=c.substr(0,k)),o.textContent=c,o.style.visibility="hidden",o.style.visibility="visible"}}),define(te[332],ie([12]),{}),define(te[333],ie([1,0,7,44,60,115,30,4,2,40,332]),function(q,e,L,m,k,I,w,b,C,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Button=void 0;const g={buttonBackground:w.Color.fromHex("#0E639C"),buttonHoverBackground:w.Color.fromHex("#006BB3"),buttonForeground:w.Color.white};class t extends C.Disposable{constructor(i,o){super();this._onDidClick=this._register(new b.Emitter),this.options=o||Object.create(null),(0,u.mixin)(this.options,g,!1),this.buttonForeground=this.options.buttonForeground,this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonSecondaryForeground=this.options.buttonSecondaryForeground,this.buttonSecondaryBackground=this.options.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=this.options.buttonSecondaryHoverBackground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),i.appendChild(this._element),this._register(k.Gesture.addTarget(this._element)),[L.EventType.CLICK,k.EventType.Tap].forEach(c=>{this._register((0,L.addDisposableListener)(this._element,c,d=>{if(!this.enabled){L.EventHelper.stop(d);return}this._onDidClick.fire(d)}))}),this._register((0,L.addDisposableListener)(this._element,L.EventType.KEY_DOWN,c=>{const d=new m.StandardKeyboardEvent(c);let r=!1;this.enabled&&(d.equals(3)||d.equals(10))?(this._onDidClick.fire(c),r=!0):d.equals(9)&&(this._element.blur(),r=!0),r&&L.EventHelper.stop(d,!0)})),this._register((0,L.addDisposableListener)(this._element,L.EventType.MOUSE_OVER,c=>{this._element.classList.contains("disabled")||this.setHoverBackground()})),this._register((0,L.addDisposableListener)(this._element,L.EventType.MOUSE_OUT,c=>{this.applyStyles()})),this.focusTracker=this._register((0,L.trackFocus)(this._element)),this._register(this.focusTracker.onDidFocus(()=>this.setHoverBackground())),this._register(this.focusTracker.onDidBlur(()=>this.applyStyles())),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let i;this.options.secondary?i=this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:i=this.buttonHoverBackground?this.buttonHoverBackground.toString():null,i&&(this._element.style.backgroundColor=i)}style(i){this.buttonForeground=i.buttonForeground,this.buttonBackground=i.buttonBackground,this.buttonHoverBackground=i.buttonHoverBackground,this.buttonSecondaryForeground=i.buttonSecondaryForeground,this.buttonSecondaryBackground=i.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=i.buttonSecondaryHoverBackground,this.buttonBorder=i.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let i,o;this.options.secondary?(o=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",i=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(o=this.buttonForeground?this.buttonForeground.toString():"",i=this.buttonBackground?this.buttonBackground.toString():"");const c=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=o,this._element.style.backgroundColor=i,this._element.style.borderWidth=c?"1px":"",this._element.style.borderStyle=c?"solid":"",this._element.style.borderColor=c}}get element(){return this._element}set label(i){this._element.classList.add("monaco-text-button"),this.options.supportIcons?(0,L.reset)(this._element,...(0,I.renderLabelWithIcons)(i)):this._element.textContent=i,typeof this.options.title=="string"?this._element.title=this.options.title:this.options.title&&(this._element.title=i)}set enabled(i){i?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}e.Button=t}),define(te[334],ie([12]),{}),define(te[174],ie([1,0,62,28,30,4,334]),function(q,e,L,m,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Checkbox=void 0;const w={inputActiveOptionBorder:k.Color.fromHex("#007ACC00"),inputActiveOptionForeground:k.Color.fromHex("#FFFFFF"),inputActiveOptionBackground:k.Color.fromHex("#0E639C50")};class b extends L.Widget{constructor(u){super();this._onChange=this._register(new I.Emitter),this.onChange=this._onChange.event,this._onKeyDown=this._register(new I.Emitter),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},w),u),this._checked=this._opts.isChecked;const g=["monaco-custom-checkbox"];this._opts.icon&&g.push(...m.CSSIcon.asClassNameArray(this._opts.icon)),this._opts.actionClassName&&g.push(...this._opts.actionClassName.split(" ")),this._checked&&g.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.classList.add(...g),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,t=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),t.preventDefault())}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,t=>{if(t.keyCode===10||t.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),t.preventDefault();return}this._onKeyDown.fire(t)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(u){this._checked=u,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 2+2+2+16}style(u){u.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=u.inputActiveOptionBorder),u.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=u.inputActiveOptionForeground),u.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=u.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}e.Checkbox=b}),define(te[335],ie([12]),{}),define(te[336],ie([12]),{}),define(te[143],ie([1,0,28,335,336]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatRule=void 0;function m(k){let I=k.definition;for(;I instanceof L.Codicon;)I=I.definition;return`.codicon-${k.id}:before { content: '${I.fontCharacter}'; }`}e.formatRule=m}),define(te[337],ie([12]),{}),define(te[225],ie([1,0,167,7,2,16,139,337]),function(q,e,L,m,k,I,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextView=e.layout=e.LayoutAnchorMode=void 0;var b;(function(t){t[t.AVOID=0]="AVOID",t[t.ALIGN=1]="ALIGN"})(b=e.LayoutAnchorMode||(e.LayoutAnchorMode={}));function C(t,n,i){const o=i.mode===b.ALIGN?i.offset:i.offset+i.size,c=i.mode===b.ALIGN?i.offset+i.size:i.offset;return i.position===0?n<=t-o?o:n<=c?c-n:Math.max(t-n,0):n<=c?c-n:n<=t-o?o:0}e.layout=C;class u extends k.Disposable{constructor(n,i){super();this.container=null,this.delegate=null,this.toDisposeOnClean=k.Disposable.None,this.toDisposeOnSetContainer=k.Disposable.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=m.$(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,m.hide(this.view),this.setContainer(n,i),this._register((0,k.toDisposable)(()=>this.setContainer(null,1)))}setContainer(n,i){var o;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,(o=this.shadowRootHostElement)===null||o===void 0||o.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),n){if(this.container=n,this.useFixedPosition=i!==1,this.useShadowDOM=i===3,this.useShadowDOM){this.shadowRootHostElement=m.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const d=document.createElement("style");d.textContent=g,this.shadowRoot.appendChild(d),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(m.$("slot"))}else this.container.appendChild(this.view);const c=new k.DisposableStore;u.BUBBLE_UP_EVENTS.forEach(d=>{c.add(m.addStandardDisposableListener(this.container,d,r=>{this.onDOMEvent(r,!1)}))}),u.BUBBLE_DOWN_EVENTS.forEach(d=>{c.add(m.addStandardDisposableListener(this.container,d,r=>{this.onDOMEvent(r,!0)},!0))}),this.toDisposeOnSetContainer=c}}show(n){this.isVisible()&&this.hide(),m.clearNode(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2500",this.view.style.position=this.useFixedPosition?"fixed":"absolute",m.show(this.view),this.toDisposeOnClean=n.render(this.view)||k.Disposable.None,this.delegate=n,this.doLayout(),this.delegate.focus&&this.delegate.focus()}getViewElement(){return this.view}layout(){if(!!this.isVisible()){if(this.delegate.canRelayout===!1&&!(I.isIOS&&L.BrowserFeatures.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()}}doLayout(){if(!this.isVisible())return;let n=this.delegate.getAnchor(),i;if(m.isHTMLElement(n)){let f=m.getDomNodePagePosition(n);i={top:f.top,left:f.left,width:f.width,height:f.height}}else i={top:n.y,left:n.x,width:n.width||1,height:n.height||2};const o=m.getTotalWidth(this.view),c=m.getTotalHeight(this.view),d=this.delegate.anchorPosition||0,r=this.delegate.anchorAlignment||0,s=this.delegate.anchorAxisAlignment||0;let a,l;if(s===0){const f={offset:i.top-window.pageYOffset,size:i.height,position:d===0?0:1},S={offset:i.left,size:i.width,position:r===0?0:1,mode:b.ALIGN};a=C(window.innerHeight,c,f)+window.pageYOffset,w.Range.intersects({start:a,end:a+c},{start:f.offset,end:f.offset+f.size})&&(S.mode=b.AVOID),l=C(window.innerWidth,o,S)}else{const f={offset:i.left,size:i.width,position:r===0?0:1},S={offset:i.top,size:i.height,position:d===0?0:1,mode:b.ALIGN};l=C(window.innerWidth,o,f),w.Range.intersects({start:l,end:l+o},{start:f.offset,end:f.offset+f.size})&&(S.mode=b.AVOID),a=C(window.innerHeight,c,S)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(d===0?"bottom":"top"),this.view.classList.add(r===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const h=m.getDomNodePagePosition(this.container);this.view.style.top=`${a-(this.useFixedPosition?m.getDomNodePagePosition(this.view).top:h.top)}px`,this.view.style.left=`${l-(this.useFixedPosition?m.getDomNodePagePosition(this.view).left:h.left)}px`,this.view.style.width="initial"}hide(n){const i=this.delegate;this.delegate=null,(i==null?void 0:i.onHide)&&i.onHide(n),this.toDisposeOnClean.dispose(),m.hide(this.view)}isVisible(){return!!this.delegate}onDOMEvent(n,i){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(n,document.activeElement):i&&!m.isAncestor(n.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}e.ContextView=u,u.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],u.BUBBLE_DOWN_EVENTS=["click"];let g=`
+ :host {
+ all: initial; /* 1st rule so subsequent properties are reset. */
+ }
+
+ @font-face {
+ font-family: "codicon";
+ font-display: block;
+ src: url("./codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6") format("truetype");
+ }
+
+ .codicon[class*='codicon-'] {
+ font: normal normal normal 16px/1 codicon;
+ display: inline-block;
+ text-decoration: none;
+ text-rendering: auto;
+ text-align: center;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ user-select: none;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ }
+
+ :host {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;
+ }
+
+ :host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
+ :host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }
+ :host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }
+ :host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }
+ :host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }
+
+ :host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }
+ :host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }
+ :host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }
+ :host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }
+ :host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }
+
+ :host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }
+ :host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }
+ :host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }
+ :host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }
+ :host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }
+`}),define(te[338],ie([12]),{}),define(te[226],ie([1,0,7,30,40,8,338]),function(q,e,L,m,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CountBadge=void 0;const w={badgeBackground:m.Color.fromHex("#4D4D4D"),badgeForeground:m.Color.fromHex("#FFFFFF")};class b{constructor(u,g){this.count=0,this.options=g||Object.create(null),(0,k.mixin)(this.options,w,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=(0,L.append)(u,(0,L.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(u){this.count=u,this.render()}setTitleFormat(u){this.titleFormat=u,this.render()}render(){this.element.textContent=(0,I.format)(this.countFormat,this.count),this.element.title=(0,I.format)(this.titleFormat,this.count),this.applyStyles()}style(u){this.badgeBackground=u.badgeBackground,this.badgeForeground=u.badgeForeground,this.badgeBorder=u.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const u=this.badgeBackground?this.badgeBackground.toString():"",g=this.badgeForeground?this.badgeForeground.toString():"",t=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=u,this.element.style.color=g,this.element.style.borderWidth=t?"1px":"",this.element.style.borderStyle=t?"solid":"",this.element.style.borderColor=t}}}e.CountBadge=b}),define(te[227],ie([12]),{}),define(te[228],ie([12]),{}),define(te[339],ie([12]),{}),define(te[340],ie([12]),{}),define(te[341],ie([12]),{}),define(te[342],ie([12]),{}),define(te[229],ie([12]),{}),define(te[343],ie([12]),{}),define(te[144],ie([1,0,343]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME=void 0,e.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME="monaco-mouse-cursor-text"}),define(te[344],ie([12]),{}),define(te[345],ie([1,0,7,10,30,2,40,344]),function(q,e,L,m,k,I,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressBar=void 0;const b="done",C="active",u="infinite",g="infinite-long-running",t="discrete",n={progressBarBackground:k.Color.fromHex("#0E70C0")};class i extends I.Disposable{constructor(c,d){super();this.options=d||Object.create(null),(0,w.mixin)(this.options,n,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this.showDelayedScheduler=this._register(new m.RunOnceScheduler(()=>(0,L.show)(this.element),0)),this.longRunningScheduler=this._register(new m.RunOnceScheduler(()=>this.infiniteLongRunning(),i.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(c)}create(c){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),c.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(C,u,g,t),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(c){return this.element.classList.add(b),this.element.classList.contains(u)?(this.bit.style.opacity="0",c?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",c?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(t,b,g),this.element.classList.add(C,u),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(g)}getContainer(){return this.element}style(c){this.progressBarBackground=c.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const c=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=c}}}e.ProgressBar=i,i.LONG_RUNNING_INFINITE_THRESHOLD=1e4}),define(te[346],ie([12]),{}),define(te[116],ie([1,0,7,92,60,10,95,4,2,16,346]),function(q,e,L,m,k,I,w,b,C,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sash=e.OrthogonalEdge=void 0;let g=!1;var t;(function(h){h.North="north",h.South="south",h.East="east",h.West="west"})(t=e.OrthogonalEdge||(e.OrthogonalEdge={}));let n=4;const i=new b.Emitter;let o=300;const c=new b.Emitter;class d{constructor(){this.disposables=new C.DisposableStore}get onPointerMove(){return this.disposables.add(new m.DomEmitter(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new m.DomEmitter(window,"mouseup")).event}dispose(){this.disposables.dispose()}}Ie([w.memoize],d.prototype,"onPointerMove",null),Ie([w.memoize],d.prototype,"onPointerUp",null);class r{constructor(f){this.el=f,this.disposables=new C.DisposableStore}get onPointerMove(){return this.disposables.add(new m.DomEmitter(this.el,k.EventType.Change)).event}get onPointerUp(){return this.disposables.add(new m.DomEmitter(this.el,k.EventType.End)).event}dispose(){this.disposables.dispose()}}Ie([w.memoize],r.prototype,"onPointerMove",null),Ie([w.memoize],r.prototype,"onPointerUp",null);class s{constructor(f){this.factory=f}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}Ie([w.memoize],s.prototype,"onPointerMove",null),Ie([w.memoize],s.prototype,"onPointerUp",null);const a="pointer-events-disabled";class l extends C.Disposable{constructor(f,S,v){super();this.hoverDelay=o,this.hoverDelayer=this._register(new I.Delayer(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new b.Emitter),this._onDidStart=this._register(new b.Emitter),this._onDidChange=this._register(new b.Emitter),this._onDidReset=this._register(new b.Emitter),this._onDidEnd=this._register(new b.Emitter),this.orthogonalStartSashDisposables=this._register(new C.DisposableStore),this.orthogonalStartDragHandleDisposables=this._register(new C.DisposableStore),this.orthogonalEndSashDisposables=this._register(new C.DisposableStore),this.orthogonalEndDragHandleDisposables=this._register(new C.DisposableStore),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,L.append)(f,(0,L.$)(".monaco-sash")),v.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${v.orthogonalEdge}`),u.isMacintosh&&this.el.classList.add("mac");const p=this._register(new m.DomEmitter(this.el,"mousedown")).event;this._register(p(B=>this.onPointerStart(B,new d),this));const _=this._register(new m.DomEmitter(this.el,"dblclick")).event;this._register(_(this.onPointerDoublePress,this));const y=this._register(new m.DomEmitter(this.el,"mouseenter")).event;this._register(y(()=>l.onMouseEnter(this)));const E=this._register(new m.DomEmitter(this.el,"mouseleave")).event;this._register(E(()=>l.onMouseLeave(this))),this._register(k.Gesture.addTarget(this.el));const N=b.Event.map(this._register(new m.DomEmitter(this.el,k.EventType.Start)).event,B=>{var O;return Object.assign(Object.assign({},B),{target:(O=B.initialTarget)!==null&&O!==void 0?O:null})});this._register(N(B=>this.onPointerStart(B,new r(this.el)),this));const D=this._register(new m.DomEmitter(this.el,k.EventType.Tap)).event,M=b.Event.map(b.Event.filter(b.Event.debounce(D,(B,O)=>{var T;return{event:O,count:((T=B==null?void 0:B.count)!==null&&T!==void 0?T:0)+1}},250),({count:B})=>B===2),({event:B})=>{var O;return Object.assign(Object.assign({},B),{target:(O=B.initialTarget)!==null&&O!==void 0?O:null})});this._register(M(this.onPointerDoublePress,this)),typeof v.size=="number"?(this.size=v.size,v.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=n,this._register(i.event(B=>{this.size=B,this.layout()}))),this._register(c.event(B=>this.hoverDelay=B)),this.layoutProvider=S,this.orthogonalStartSash=v.orthogonalStartSash,this.orthogonalEndSash=v.orthogonalEndSash,this.orientation=v.orientation||0,this.orientation===1?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",g),this.layout()}get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(f){this._state!==f&&(this.el.classList.toggle("disabled",f===0),this.el.classList.toggle("minimum",f===1),this.el.classList.toggle("maximum",f===2),this._state=f,this.onDidEnablementChange.fire(f))}set orthogonalStartSash(f){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),f){const S=v=>{this.orthogonalStartDragHandleDisposables.clear(),v!==0&&(this._orthogonalStartDragHandle=(0,L.append)(this.el,(0,L.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,C.toDisposable)(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new m.DomEmitter(this._orthogonalStartDragHandle,"mouseenter")).event(()=>l.onMouseEnter(f),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new m.DomEmitter(this._orthogonalStartDragHandle,"mouseleave")).event(()=>l.onMouseLeave(f),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(f.onDidEnablementChange.event(S,this)),S(f.state)}this._orthogonalStartSash=f}set orthogonalEndSash(f){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),f){const S=v=>{this.orthogonalEndDragHandleDisposables.clear(),v!==0&&(this._orthogonalEndDragHandle=(0,L.append)(this.el,(0,L.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,C.toDisposable)(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new m.DomEmitter(this._orthogonalEndDragHandle,"mouseenter")).event(()=>l.onMouseEnter(f),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new m.DomEmitter(this._orthogonalEndDragHandle,"mouseleave")).event(()=>l.onMouseLeave(f),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(f.onDidEnablementChange.event(S,this)),S(f.state)}this._orthogonalEndSash=f}onPointerStart(f,S){L.EventHelper.stop(f);let v=!1;if(!f.__orthogonalSashEvent){const A=this.getOrthogonalSash(f);A&&(v=!0,f.__orthogonalSashEvent=!0,A.onPointerStart(f,new s(S)))}if(this.linkedSash&&!f.__linkedSashEvent&&(f.__linkedSashEvent=!0,this.linkedSash.onPointerStart(f,new s(S))),!this.state)return;const p=(0,L.getElementsByTagName)("iframe");for(const A of p)A.classList.add(a);const _=f.pageX,y=f.pageY,E=f.altKey,N={startX:_,currentX:_,startY:y,currentY:y,altKey:E};this.el.classList.add("active"),this._onDidStart.fire(N);const D=(0,L.createStyleSheet)(this.el),M=()=>{let A="";v?A="all-scroll":this.orientation===1?this.state===1?A="s-resize":this.state===2?A="n-resize":A=u.isMacintosh?"row-resize":"ns-resize":this.state===1?A="e-resize":this.state===2?A="w-resize":A=u.isMacintosh?"col-resize":"ew-resize",D.textContent=`* { cursor: ${A} !important; }`},B=new C.DisposableStore;M(),v||this.onDidEnablementChange.event(M,null,B);const O=A=>{L.EventHelper.stop(A,!1);const P={startX:_,currentX:A.pageX,startY:y,currentY:A.pageY,altKey:E};this._onDidChange.fire(P)},T=A=>{L.EventHelper.stop(A,!1),this.el.removeChild(D),this.el.classList.remove("active"),this._onDidEnd.fire(),B.dispose();for(const P of p)P.classList.remove(a)};S.onPointerMove(O,null,B),S.onPointerUp(T,null,B),B.add(S)}onPointerDoublePress(f){const S=this.getOrthogonalSash(f);S&&S._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(f,S=!1){f.el.classList.contains("active")?(f.hoverDelayer.cancel(),f.el.classList.add("hover")):f.hoverDelayer.trigger(()=>f.el.classList.add("hover"),f.hoverDelay).then(void 0,()=>{}),!S&&f.linkedSash&&l.onMouseEnter(f.linkedSash,!0)}static onMouseLeave(f,S=!1){f.hoverDelayer.cancel(),f.el.classList.remove("hover"),!S&&f.linkedSash&&l.onMouseLeave(f.linkedSash,!0)}clearSashHoverState(){l.onMouseLeave(this)}layout(){if(this.orientation===0){const f=this.layoutProvider;this.el.style.left=f.getVerticalSashLeft(this)-this.size/2+"px",f.getVerticalSashTop&&(this.el.style.top=f.getVerticalSashTop(this)+"px"),f.getVerticalSashHeight&&(this.el.style.height=f.getVerticalSashHeight(this)+"px")}else{const f=this.layoutProvider;this.el.style.top=f.getHorizontalSashTop(this)-this.size/2+"px",f.getHorizontalSashLeft&&(this.el.style.left=f.getHorizontalSashLeft(this)+"px"),f.getHorizontalSashWidth&&(this.el.style.width=f.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(f){if(!(!f.target||!(f.target instanceof HTMLElement))&&f.target.classList.contains("orthogonal-drag-handle"))return f.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}e.Sash=l}),define(te[347],ie([12]),{}),define(te[69],ie([1,0,34,7,31,59,325,326,62,10,4,2,16,140,347]),function(q,e,L,m,k,I,w,b,C,u,g,t,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DomScrollableElement=e.SmoothScrollableElement=e.ScrollableElement=e.AbstractScrollableElement=e.MouseWheelClassifier=void 0;const o=500,c=50,d=!0;class r{constructor(p,_,y){this.timestamp=p,this.deltaX=_,this.deltaY=y,this.score=0}}class s{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let p=1,_=0,y=1,E=this._rear;do{const N=E===this._front?p:Math.pow(2,-y);if(p-=N,_+=this._memory[E].score*N,E===this._front)break;E=(this._capacity+E-1)%this._capacity,y++}while(!0);return _<=.5}accept(p,_,y){const E=new r(p,_,y);E.score=this._computeScore(E),this._front===-1&&this._rear===-1?(this._memory[0]=E,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=E)}_computeScore(p){if(Math.abs(p.deltaX)>0&&Math.abs(p.deltaY)>0)return 1;let _=.5;const y=this._front===-1&&this._rear===-1?null:this._memory[this._rear];return(!this._isAlmostInt(p.deltaX)||!this._isAlmostInt(p.deltaY))&&(_+=.25),Math.min(Math.max(_,0),1)}_isAlmostInt(p){return Math.abs(Math.round(p)-p)<.01}}e.MouseWheelClassifier=s,s.INSTANCE=new s;class a extends C.Widget{constructor(p,_,y){super();this._onScroll=this._register(new g.Emitter),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new g.Emitter),p.style.overflow="hidden",this._options=S(_),this._scrollable=y,this._register(this._scrollable.onScroll(N=>{this._onWillScroll.fire(N),this._onDidScroll(N),this._onScroll.fire(N)}));const E={onMouseWheel:N=>this._onMouseWheel(N),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new b.VerticalScrollbar(this._scrollable,this._options,E)),this._horizontalScrollbar=this._register(new w.HorizontalScrollbar(this._scrollable,this._options,E)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(p),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,k.createFastDomNode)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,k.createFastDomNode)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,k.createFastDomNode)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,N=>this._onMouseOver(N)),this.onnonbubblingmouseout(this._listenOnDomNode,N=>this._onMouseOut(N)),this._hideTimeout=this._register(new u.TimeoutTimer),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=(0,t.dispose)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(p){this._verticalScrollbar.delegateMouseDown(p)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(p){this._scrollable.setScrollDimensions(p,!1)}updateClassName(p){this._options.className=p,n.isMacintosh&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(p){typeof p.handleMouseWheel!="undefined"&&(this._options.handleMouseWheel=p.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof p.mouseWheelScrollSensitivity!="undefined"&&(this._options.mouseWheelScrollSensitivity=p.mouseWheelScrollSensitivity),typeof p.fastScrollSensitivity!="undefined"&&(this._options.fastScrollSensitivity=p.fastScrollSensitivity),typeof p.scrollPredominantAxis!="undefined"&&(this._options.scrollPredominantAxis=p.scrollPredominantAxis),typeof p.horizontal!="undefined"&&(this._options.horizontal=p.horizontal),typeof p.vertical!="undefined"&&(this._options.vertical=p.vertical),typeof p.horizontalScrollbarSize!="undefined"&&(this._options.horizontalScrollbarSize=p.horizontalScrollbarSize),typeof p.verticalScrollbarSize!="undefined"&&(this._options.verticalScrollbarSize=p.verticalScrollbarSize),typeof p.scrollByPage!="undefined"&&(this._options.scrollByPage=p.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(p){if(this._mouseWheelToDispose.length>0!==p&&(this._mouseWheelToDispose=(0,t.dispose)(this._mouseWheelToDispose),p)){const y=E=>{this._onMouseWheel(new I.StandardWheelEvent(E))};this._mouseWheelToDispose.push(m.addDisposableListener(this._listenOnDomNode,m.EventType.MOUSE_WHEEL,y,{passive:!1}))}}_onMouseWheel(p){const _=s.INSTANCE;if(d){const N=window.devicePixelRatio/(0,L.getZoomFactor)();n.isWindows||n.isLinux?_.accept(Date.now(),p.deltaX/N,p.deltaY/N):_.accept(Date.now(),p.deltaX,p.deltaY)}let y=!1;if(p.deltaY||p.deltaX){let N=p.deltaY*this._options.mouseWheelScrollSensitivity,D=p.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(N)>=Math.abs(D)?D=0:N=0),this._options.flipAxes&&([N,D]=[D,N]);const M=!n.isMacintosh&&p.browserEvent&&p.browserEvent.shiftKey;(this._options.scrollYToX||M)&&!D&&(D=N,N=0),p.browserEvent&&p.browserEvent.altKey&&(D=D*this._options.fastScrollSensitivity,N=N*this._options.fastScrollSensitivity);const B=this._scrollable.getFutureScrollPosition();let O={};if(N){const T=c*N,A=B.scrollTop-(T<0?Math.floor(T):Math.ceil(T));this._verticalScrollbar.writeScrollPosition(O,A)}if(D){const T=c*D,A=B.scrollLeft-(T<0?Math.floor(T):Math.ceil(T));this._horizontalScrollbar.writeScrollPosition(O,A)}O=this._scrollable.validateScrollPosition(O),(B.scrollLeft!==O.scrollLeft||B.scrollTop!==O.scrollTop)&&(d&&this._options.mouseWheelSmoothScroll&&_.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(O):this._scrollable.setScrollPositionNow(O),y=!0)}let E=y;!E&&this._options.alwaysConsumeMouseWheel&&(E=!0),!E&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(E=!0),E&&(p.preventDefault(),p.stopPropagation())}_onDidScroll(p){this._shouldRender=this._horizontalScrollbar.onDidScroll(p)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(p)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(!!this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const p=this._scrollable.getCurrentScrollPosition(),_=p.scrollTop>0,y=p.scrollLeft>0,E=y?" left":"",N=_?" top":"",D=y||_?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${E}`),this._topShadowDomNode.setClassName(`shadow${N}`),this._topLeftShadowDomNode.setClassName(`shadow${D}${N}${E}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(p){this._mouseIsOver=!1,this._hide()}_onMouseOver(p){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),o)}}e.AbstractScrollableElement=a;class l extends a{constructor(p,_){_=_||{},_.mouseWheelSmoothScroll=!1;const y=new i.Scrollable({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:E=>m.scheduleAtNextAnimationFrame(E)});super(p,_,y);this._register(y)}setScrollPosition(p){this._scrollable.setScrollPositionNow(p)}}e.ScrollableElement=l;class h extends a{constructor(p,_,y){super(p,_,y)}setScrollPosition(p){p.reuseAnimation?this._scrollable.setScrollPositionSmooth(p,p.reuseAnimation):this._scrollable.setScrollPositionNow(p)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}e.SmoothScrollableElement=h;class f extends a{constructor(p,_){_=_||{},_.mouseWheelSmoothScroll=!1;const y=new i.Scrollable({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:E=>m.scheduleAtNextAnimationFrame(E)});super(p,_,y);this._register(y),this._element=p,this.onScroll(E=>{E.scrollTopChanged&&(this._element.scrollTop=E.scrollTop),E.scrollLeftChanged&&(this._element.scrollLeft=E.scrollLeft)}),this.scanDomNode()}setScrollPosition(p){this._scrollable.setScrollPositionNow(p)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}e.DomScrollableElement=f;function S(v){const p={lazyRender:typeof v.lazyRender!="undefined"?v.lazyRender:!1,className:typeof v.className!="undefined"?v.className:"",useShadows:typeof v.useShadows!="undefined"?v.useShadows:!0,handleMouseWheel:typeof v.handleMouseWheel!="undefined"?v.handleMouseWheel:!0,flipAxes:typeof v.flipAxes!="undefined"?v.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof v.consumeMouseWheelIfScrollbarIsNeeded!="undefined"?v.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof v.alwaysConsumeMouseWheel!="undefined"?v.alwaysConsumeMouseWheel:!1,scrollYToX:typeof v.scrollYToX!="undefined"?v.scrollYToX:!1,mouseWheelScrollSensitivity:typeof v.mouseWheelScrollSensitivity!="undefined"?v.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof v.fastScrollSensitivity!="undefined"?v.fastScrollSensitivity:5,scrollPredominantAxis:typeof v.scrollPredominantAxis!="undefined"?v.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof v.mouseWheelSmoothScroll!="undefined"?v.mouseWheelSmoothScroll:!0,arrowSize:typeof v.arrowSize!="undefined"?v.arrowSize:11,listenOnDomNode:typeof v.listenOnDomNode!="undefined"?v.listenOnDomNode:null,horizontal:typeof v.horizontal!="undefined"?v.horizontal:1,horizontalScrollbarSize:typeof v.horizontalScrollbarSize!="undefined"?v.horizontalScrollbarSize:10,horizontalSliderSize:typeof v.horizontalSliderSize!="undefined"?v.horizontalSliderSize:0,horizontalHasArrows:typeof v.horizontalHasArrows!="undefined"?v.horizontalHasArrows:!1,vertical:typeof v.vertical!="undefined"?v.vertical:1,verticalScrollbarSize:typeof v.verticalScrollbarSize!="undefined"?v.verticalScrollbarSize:10,verticalHasArrows:typeof v.verticalHasArrows!="undefined"?v.verticalHasArrows:!1,verticalSliderSize:typeof v.verticalSliderSize!="undefined"?v.verticalSliderSize:0,scrollByPage:typeof v.scrollByPage!="undefined"?v.scrollByPage:!1};return p.horizontalSliderSize=typeof v.horizontalSliderSize!="undefined"?v.horizontalSliderSize:p.horizontalScrollbarSize,p.verticalSliderSize=typeof v.verticalSliderSize!="undefined"?v.verticalSliderSize:p.verticalScrollbarSize,n.isMacintosh&&(p.className+=" mac"),p}}),define(te[230],ie([1,0,7,44,69,2,339]),function(q,e,L,m,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HoverAction=e.HoverWidget=void 0;const w=L.$;class b extends I.Disposable{constructor(){super();this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new k.DomScrollableElement(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}e.HoverWidget=b;class C extends I.Disposable{constructor(g,t,n){super();this.actionContainer=L.append(g,w("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=L.append(this.actionContainer,w("a.action")),this.action.setAttribute("role","button"),t.iconClass&&L.append(this.action,w(`span.icon.${t.iconClass}`));const i=L.append(this.action,w("span"));i.textContent=n?`${t.label} (${n})`:t.label,this._register(L.addDisposableListener(this.actionContainer,L.EventType.CLICK,o=>{o.stopPropagation(),o.preventDefault(),t.run(this.actionContainer)})),this._register(L.addDisposableListener(this.actionContainer,L.EventType.KEY_UP,o=>{new m.StandardKeyboardEvent(o).equals(3)&&(o.stopPropagation(),o.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}static render(g,t,n){return new C(g,t,n)}setEnabled(g){g?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}e.HoverAction=C}),define(te[175],ie([1,0,34,166,7,92,60,69,18,10,95,4,2,40,139,140,318,324]),function(q,e,L,m,k,I,w,b,C,u,g,t,n,i,o,c,d,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ListView=e.NativeDragAndDropData=e.ExternalElementsDragAndDropData=e.ElementsDragAndDropData=void 0;const s={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(p){return[p]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class a{constructor(_){this.elements=_}update(){}getData(){return this.elements}}e.ElementsDragAndDropData=a;class l{constructor(_){this.elements=_}update(){}getData(){return this.elements}}e.ExternalElementsDragAndDropData=l;class h{constructor(){this.types=[],this.files=[]}update(_){if(_.types&&this.types.splice(0,this.types.length,..._.types),_.files){this.files.splice(0,this.files.length);for(let y=0;y<_.files.length;y++){const E=_.files.item(y);E&&(E.size||E.type)&&this.files.push(E)}}}getData(){return{types:this.types,files:this.files}}}e.NativeDragAndDropData=h;function f(p,_){return Array.isArray(p)&&Array.isArray(_)?(0,C.equals)(p,_):p===_}class S{constructor(_){(_==null?void 0:_.getSetSize)?this.getSetSize=_.getSetSize.bind(_):this.getSetSize=(y,E,N)=>N,(_==null?void 0:_.getPosInSet)?this.getPosInSet=_.getPosInSet.bind(_):this.getPosInSet=(y,E)=>E+1,(_==null?void 0:_.getRole)?this.getRole=_.getRole.bind(_):this.getRole=y=>"listitem",(_==null?void 0:_.isChecked)?this.isChecked=_.isChecked.bind(_):this.isChecked=y=>{}}}class v{constructor(_,y,E,N=s){if(this.virtualDelegate=y,this.domId=`list_id_${++v.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new u.Delayer(50),this.splicing=!1,this.dragOverAnimationStopDisposable=n.Disposable.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=n.Disposable.None,this.onDragLeaveTimeout=n.Disposable.None,this.disposables=new n.DisposableStore,this._onDidChangeContentHeight=new t.Emitter,this._horizontalScrolling=!1,N.horizontalScrolling&&N.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new d.RangeMap;for(const M of E)this.renderers.set(M.templateId,M);this.cache=this.disposables.add(new r.RowCache(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support",typeof N.mouseSupport=="boolean"?N.mouseSupport:!0),this._horizontalScrolling=(0,i.getOrDefault)(N,M=>M.horizontalScrolling,s.horizontalScrolling),this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=typeof N.additionalScrollHeight=="undefined"?0:N.additionalScrollHeight,this.accessibilityProvider=new S(N.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",(0,i.getOrDefault)(N,M=>M.transformOptimization,s.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(w.Gesture.addTarget(this.rowsContainer)),this.scrollable=new c.Scrollable({forceIntegerValues:!0,smoothScrollDuration:(0,i.getOrDefault)(N,M=>M.smoothScrolling,!1)?125:0,scheduleAtNextAnimationFrame:M=>(0,k.scheduleAtNextAnimationFrame)(M)}),this.scrollableElement=this.disposables.add(new b.SmoothScrollableElement(this.rowsContainer,{alwaysConsumeMouseWheel:(0,i.getOrDefault)(N,M=>M.alwaysConsumeMouseWheel,s.alwaysConsumeMouseWheel),horizontal:1,vertical:(0,i.getOrDefault)(N,M=>M.verticalScrollMode,s.verticalScrollMode),useShadows:(0,i.getOrDefault)(N,M=>M.useShadows,s.useShadows),mouseWheelScrollSensitivity:N.mouseWheelScrollSensitivity,fastScrollSensitivity:N.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),_.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,k.addDisposableListener)(this.rowsContainer,w.EventType.Change,M=>this.onTouchChange(M))),this.disposables.add((0,k.addDisposableListener)(this.scrollableElement.getDomNode(),"scroll",M=>M.target.scrollTop=0)),this.disposables.add((0,k.addDisposableListener)(this.domNode,"dragover",M=>this.onDragOver(this.toDragEvent(M)))),this.disposables.add((0,k.addDisposableListener)(this.domNode,"drop",M=>this.onDrop(this.toDragEvent(M)))),this.disposables.add((0,k.addDisposableListener)(this.domNode,"dragleave",M=>this.onDragLeave(this.toDragEvent(M)))),this.disposables.add((0,k.addDisposableListener)(this.domNode,"dragend",M=>this.onDragEnd(M))),this.setRowLineHeight=(0,i.getOrDefault)(N,M=>M.setRowLineHeight,s.setRowLineHeight),this.setRowHeight=(0,i.getOrDefault)(N,M=>M.setRowHeight,s.setRowHeight),this.supportDynamicHeights=(0,i.getOrDefault)(N,M=>M.supportDynamicHeights,s.supportDynamicHeights),this.dnd=(0,i.getOrDefault)(N,M=>M.dnd,s.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(_){if(_!==this._horizontalScrolling){if(_&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=_,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const y of this.items)this.measureItemWidth(y);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,k.getContentWidth)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(_){_.additionalScrollHeight!==void 0&&(this.additionalScrollHeight=_.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),_.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(_.smoothScrolling?125:0),_.horizontalScrolling!==void 0&&(this.horizontalScrolling=_.horizontalScrolling),_.mouseWheelScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:_.mouseWheelScrollSensitivity}),_.fastScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({fastScrollSensitivity:_.fastScrollSensitivity})}splice(_,y,E=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(_,y,E)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(_,y,E=[]){const N=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),D={start:_,end:_+y},M=o.Range.intersect(N,D),B=new Map;for(let Z=M.end-1;Z>=M.start;Z--){const V=this.items[Z];if(V.dragStartDisposable.dispose(),V.row){let K=B.get(V.templateId);K||(K=[],B.set(V.templateId,K));const X=this.renderers.get(V.templateId);X&&X.disposeElement&&X.disposeElement(V.element,Z,V.row.templateData,V.size),K.push(V.row)}V.row=null}const O={start:_+y,end:this.items.length},T=o.Range.intersect(O,N),A=o.Range.relativeComplement(O,N),P=E.map(Z=>({id:String(this.itemId++),element:Z,templateId:this.virtualDelegate.getTemplateId(Z),size:this.virtualDelegate.getHeight(Z),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(Z),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:n.Disposable.None,checkedDisposable:n.Disposable.None}));let F;_===0&&y>=this.items.length?(this.rangeMap=new d.RangeMap,this.rangeMap.splice(0,0,P),F=this.items,this.items=P):(this.rangeMap.splice(_,y,P),F=this.items.splice(_,y,...P));const W=E.length-y,R=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),z=(0,d.shift)(T,W),j=o.Range.intersect(R,z);for(let Z=j.start;Z(0,d.shift)(Z,W)),re=[{start:_,end:_+E.length},...G].map(Z=>o.Range.intersect(R,Z)),se=this.getNextToLastElement(re);for(const Z of re)for(let V=Z.start;VZ.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,k.scheduleAtNextAnimationFrame)(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let _=0;for(const y of this.items)typeof y.width!="undefined"&&(_=Math.max(_,y.width));this.scrollWidth=_,this.scrollableElement.setScrollDimensions({scrollWidth:_===0?0:_+10})}rerender(){if(!!this.supportDynamicHeights){for(const _ of this.items)_.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(_){return this.items[_].element}domElement(_){const y=this.items[_].row;return y&&y.domNode}elementHeight(_){return this.items[_].size}elementTop(_){return this.rangeMap.positionAt(_)}indexAt(_){return this.rangeMap.indexAt(_)}indexAfter(_){return this.rangeMap.indexAfter(_)}layout(_,y){let E={height:typeof _=="number"?_:(0,k.getContentHeight)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,E.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(E),typeof y!="undefined"&&(this.renderWidth=y,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof y=="number"?y:(0,k.getContentWidth)(this.domNode)})}render(_,y,E,N,D,M=!1){const B=this.getRenderRange(y,E),O=o.Range.relativeComplement(B,_),T=o.Range.relativeComplement(_,B),A=this.getNextToLastElement(O);if(M){const P=o.Range.intersect(_,B);for(let F=P.start;FN.row.domNode.setAttribute("aria-checked",String(!!A));T(M.value),N.checkedDisposable=M.onDidChange(T)}N.row.domNode.parentElement||(y?this.rowsContainer.insertBefore(N.row.domNode,y):this.rowsContainer.appendChild(N.row.domNode)),this.updateItemInDOM(N,_);const B=this.renderers.get(N.templateId);if(!B)throw new Error(`No renderer found for template id ${N.templateId}`);B&&B.renderElement(N.element,_,N.row.templateData,N.size);const O=this.dnd.getDragURI(N.element);N.dragStartDisposable.dispose(),N.row.domNode.draggable=!!O,O&&(N.dragStartDisposable=(0,k.addDisposableListener)(N.row.domNode,"dragstart",T=>this.onDragStart(N.element,O,T))),this.horizontalScrolling&&(this.measureItemWidth(N),this.eventuallyUpdateScrollWidth())}measureItemWidth(_){if(!_.row||!_.row.domNode)return;_.row.domNode.style.width=L.isFirefox?"-moz-fit-content":"fit-content",_.width=(0,k.getContentWidth)(_.row.domNode);const y=window.getComputedStyle(_.row.domNode);y.paddingLeft&&(_.width+=parseFloat(y.paddingLeft)),y.paddingRight&&(_.width+=parseFloat(y.paddingRight)),_.row.domNode.style.width=""}updateItemInDOM(_,y){_.row.domNode.style.top=`${this.elementTop(y)}px`,this.setRowHeight&&(_.row.domNode.style.height=`${_.size}px`),this.setRowLineHeight&&(_.row.domNode.style.lineHeight=`${_.size}px`),_.row.domNode.setAttribute("data-index",`${y}`),_.row.domNode.setAttribute("data-last-element",y===this.length-1?"true":"false"),_.row.domNode.setAttribute("data-parity",y%2==0?"even":"odd"),_.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(_.element,y,this.length))),_.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(_.element,y))),_.row.domNode.setAttribute("id",this.getElementDomId(y)),_.row.domNode.classList.toggle("drop-target",_.dropTarget)}removeItemFromDOM(_){const y=this.items[_];if(y.dragStartDisposable.dispose(),y.checkedDisposable.dispose(),y.row){const E=this.renderers.get(y.templateId);E&&E.disposeElement&&E.disposeElement(y.element,_,y.row.templateData,y.size),this.cache.release(y.row),y.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(_,y){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:_,reuseAnimation:y})}get scrollTop(){return this.getScrollTop()}set scrollTop(_){this.setScrollTop(_)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return t.Event.map(this.disposables.add(new I.DomEmitter(this.domNode,"click")).event,_=>this.toMouseEvent(_))}get onMouseDblClick(){return t.Event.map(this.disposables.add(new I.DomEmitter(this.domNode,"dblclick")).event,_=>this.toMouseEvent(_))}get onMouseMiddleClick(){return t.Event.filter(t.Event.map(this.disposables.add(new I.DomEmitter(this.domNode,"auxclick")).event,_=>this.toMouseEvent(_)),_=>_.browserEvent.button===1)}get onMouseDown(){return t.Event.map(this.disposables.add(new I.DomEmitter(this.domNode,"mousedown")).event,_=>this.toMouseEvent(_))}get onContextMenu(){return t.Event.any(t.Event.map(this.disposables.add(new I.DomEmitter(this.domNode,"contextmenu")).event,_=>this.toMouseEvent(_)),t.Event.map(this.disposables.add(new I.DomEmitter(this.domNode,w.EventType.Contextmenu)).event,_=>this.toGestureEvent(_)))}get onTouchStart(){return t.Event.map(this.disposables.add(new I.DomEmitter(this.domNode,"touchstart")).event,_=>this.toTouchEvent(_))}get onTap(){return t.Event.map(this.disposables.add(new I.DomEmitter(this.rowsContainer,w.EventType.Tap)).event,_=>this.toGestureEvent(_))}toMouseEvent(_){const y=this.getItemIndexFromEventTarget(_.target||null),E=typeof y=="undefined"?void 0:this.items[y],N=E&&E.element;return{browserEvent:_,index:y,element:N}}toTouchEvent(_){const y=this.getItemIndexFromEventTarget(_.target||null),E=typeof y=="undefined"?void 0:this.items[y],N=E&&E.element;return{browserEvent:_,index:y,element:N}}toGestureEvent(_){const y=this.getItemIndexFromEventTarget(_.initialTarget||null),E=typeof y=="undefined"?void 0:this.items[y],N=E&&E.element;return{browserEvent:_,index:y,element:N}}toDragEvent(_){const y=this.getItemIndexFromEventTarget(_.target||null),E=typeof y=="undefined"?void 0:this.items[y],N=E&&E.element;return{browserEvent:_,index:y,element:N}}onScroll(_){try{const y=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(y,_.scrollTop,_.height,_.scrollLeft,_.scrollWidth),this.supportDynamicHeights&&this._rerender(_.scrollTop,_.height,_.inSmoothScrolling)}catch(y){throw console.error("Got bad scroll event:",_),y}}onTouchChange(_){_.preventDefault(),_.stopPropagation(),this.scrollTop-=_.translationY}onDragStart(_,y,E){if(!E.dataTransfer)return;const N=this.dnd.getDragElements(_);if(E.dataTransfer.effectAllowed="copyMove",E.dataTransfer.setData(m.DataTransfers.TEXT,y),E.dataTransfer.setDragImage){let D;this.dnd.getDragLabel&&(D=this.dnd.getDragLabel(N,E)),typeof D=="undefined"&&(D=String(N.length));const M=(0,k.$)(".monaco-drag-image");M.textContent=D,document.body.appendChild(M),E.dataTransfer.setDragImage(M,-10,-10),setTimeout(()=>document.body.removeChild(M),0)}this.currentDragData=new a(N),m.StaticDND.CurrentDragAndDropData=new l(N),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,E)}onDragOver(_){if(_.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),m.StaticDND.CurrentDragAndDropData&&m.StaticDND.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(_.browserEvent),!_.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(m.StaticDND.CurrentDragAndDropData)this.currentDragData=m.StaticDND.CurrentDragAndDropData;else{if(!_.browserEvent.dataTransfer.types)return!1;this.currentDragData=new h}const y=this.dnd.onDragOver(this.currentDragData,_.element,_.index,_.browserEvent);if(this.canDrop=typeof y=="boolean"?y:y.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;_.browserEvent.dataTransfer.dropEffect=typeof y!="boolean"&&y.effect===0?"copy":"move";let E;if(typeof y!="boolean"&&y.feedback?E=y.feedback:typeof _.index=="undefined"?E=[-1]:E=[_.index],E=(0,C.distinct)(E).filter(N=>N>=-1&&NN-D),E=E[0]===-1?[-1]:E,f(this.currentDragFeedback,E))return!0;if(this.currentDragFeedback=E,this.currentDragFeedbackDisposable.dispose(),E[0]===-1)this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=(0,n.toDisposable)(()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")});else{for(const N of E){const D=this.items[N];D.dropTarget=!0,D.row&&D.row.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=(0,n.toDisposable)(()=>{for(const N of E){const D=this.items[N];D.dropTarget=!1,D.row&&D.row.domNode.classList.remove("drop-target")}})}return!0}onDragLeave(_){var y,E;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,u.disposableTimeout)(()=>this.clearDragOverFeedback(),100),this.currentDragData&&((E=(y=this.dnd).onDragLeave)===null||E===void 0||E.call(y,this.currentDragData,_.element,_.index,_.browserEvent))}onDrop(_){if(!this.canDrop)return;const y=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,m.StaticDND.CurrentDragAndDropData=void 0,!(!y||!_.browserEvent.dataTransfer)&&(_.browserEvent.preventDefault(),y.update(_.browserEvent.dataTransfer),this.dnd.drop(y,_.element,_.index,_.browserEvent))}onDragEnd(_){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,m.StaticDND.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(_)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=n.Disposable.None}setupDragAndDropScrollTopAnimation(_){if(!this.dragOverAnimationDisposable){const y=(0,k.getTopLeftOffset)(this.domNode).top;this.dragOverAnimationDisposable=(0,k.animate)(this.animateDragAndDropScrollTop.bind(this,y))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,u.disposableTimeout)(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=_.pageY}animateDragAndDropScrollTop(_){if(this.dragOverMouseY===void 0)return;const y=this.dragOverMouseY-_,E=this.renderHeight-35;y<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(y-35))):y>E&&(this.scrollTop+=Math.min(14,Math.floor(.3*(y-E))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(_){const y=this.scrollableElement.getDomNode();let E=_;for(;E instanceof HTMLElement&&E!==this.rowsContainer&&y.contains(E);){const N=E.getAttribute("data-index");if(N){const D=Number(N);if(!isNaN(D))return D}E=E.parentElement}}getRenderRange(_,y){return{start:this.rangeMap.indexAt(_),end:this.rangeMap.indexAfter(_+y-1)}}_rerender(_,y,E){const N=this.getRenderRange(_,y);let D,M;_===this.elementTop(N.start)?(D=N.start,M=0):N.end-N.start>1&&(D=N.start+1,M=this.elementTop(D)-_);let B=0;for(;;){const O=this.getRenderRange(_,y);let T=!1;for(let A=O.start;Aae.templateData===X);if(oe>=0){const ae=this.renderedElements[oe];this.trait.unrender(X),ae.index=K}else{const ae={index:K,templateData:X};this.renderedElements.push(ae)}this.trait.renderIndex(K,X)}splice(V,K,X){const oe=[];for(const ae of this.renderedElements)ae.index=V+K&&oe.push({index:ae.index+X-K,templateData:ae.templateData});this.renderedElements=oe}renderIndexes(V){for(const{index:K,templateData:X}of this.renderedElements)V.indexOf(K)>-1&&this.trait.renderIndex(K,X)}disposeTemplate(V){const K=this.renderedElements.findIndex(X=>X.templateData===V);K<0||this.renderedElements.splice(K,1)}}class f{constructor(V){this._trait=V,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new n.Emitter,this.onChange=this._onChange.event}get name(){return this._trait}get renderer(){return new h(this)}splice(V,K,X){var oe;K=Math.max(0,Math.min(K,this.length-V));const ae=X.length-K,ee=V+K,ue=[...this.sortedIndexes.filter(x=>xx?H+V:-1).filter(x=>x!==-1),...this.sortedIndexes.filter(x=>x>=ee).map(x=>x+ae)],le=this.length+ae;if(this.sortedIndexes.length>0&&ue.length===0&&le>0){const x=(oe=this.sortedIndexes.find(H=>H>=V))!==null&&oe!==void 0?oe:le-1;ue.push(Math.min(x,le-1))}this.renderer.splice(V,K,X.length),this._set(ue,ue),this.length=le}renderIndex(V,K){K.classList.toggle(this._trait,this.contains(V))}unrender(V){V.classList.remove(this._trait)}set(V,K){return this._set(V,[...V].sort($),K)}_set(V,K,X){const oe=this.indexes,ae=this.sortedIndexes;this.indexes=V,this.sortedIndexes=K;const ee=z(ae,V);return this.renderer.renderIndexes(ee),this._onChange.fire({indexes:V,browserEvent:X}),oe}get(){return this.indexes}contains(V){return(0,C.binarySearch)(this.sortedIndexes,V,$)>=0}dispose(){(0,o.dispose)(this._onChange)}}Ie([t.memoize],f.prototype,"renderer",null);class S extends f{constructor(V){super("selected");this.setAriaSelected=V}renderIndex(V,K){super.renderIndex(V,K),this.setAriaSelected&&(this.contains(V)?K.setAttribute("aria-selected","true"):K.setAttribute("aria-selected","false"))}}class v{constructor(V,K,X){this.trait=V,this.view=K,this.identityProvider=X}splice(V,K,X){if(!this.identityProvider)return this.trait.splice(V,K,X.map(()=>!1));const oe=this.trait.get().map(ee=>this.identityProvider.getId(this.view.element(ee)).toString()),ae=X.map(ee=>oe.indexOf(this.identityProvider.getId(ee).toString())>-1);this.trait.splice(V,K,ae)}}function p(Z){return Z.tagName==="INPUT"||Z.tagName==="TEXTAREA"}e.isInputElement=p;function _(Z){return Z.classList.contains("monaco-editor")?!0:Z.classList.contains("monaco-list")||!Z.parentElement?!1:_(Z.parentElement)}e.isMonacoEditor=_;class y{constructor(V,K,X){this.list=V,this.view=K,this.disposables=new o.DisposableStore,this.multipleSelectionDisposables=new o.DisposableStore,this.onKeyDown.filter(oe=>oe.keyCode===3).on(this.onEnter,this,this.disposables),this.onKeyDown.filter(oe=>oe.keyCode===16).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter(oe=>oe.keyCode===18).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter(oe=>oe.keyCode===11).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter(oe=>oe.keyCode===12).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter(oe=>oe.keyCode===9).on(this.onEscape,this,this.disposables),X.multipleSelectionSupport!==!1&&this.onKeyDown.filter(oe=>(r.isMacintosh?oe.metaKey:oe.ctrlKey)&&oe.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return n.Event.chain(this.disposables.add(new m.DomEmitter(this.view.domNode,"keydown")).event).filter(V=>!p(V.target)).map(V=>new k.StandardKeyboardEvent(V))}updateOptions(V){V.multipleSelectionSupport!==void 0&&(this.multipleSelectionDisposables.clear(),V.multipleSelectionSupport&&this.onKeyDown.filter(K=>(r.isMacintosh?K.metaKey:K.ctrlKey)&&K.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables))}onEnter(V){V.preventDefault(),V.stopPropagation(),this.list.setSelection(this.list.getFocus(),V.browserEvent)}onUpArrow(V){V.preventDefault(),V.stopPropagation(),this.list.focusPrevious(1,!1,V.browserEvent);const K=this.list.getFocus()[0];this.list.setAnchor(K),this.list.reveal(K),this.view.domNode.focus()}onDownArrow(V){V.preventDefault(),V.stopPropagation(),this.list.focusNext(1,!1,V.browserEvent);const K=this.list.getFocus()[0];this.list.setAnchor(K),this.list.reveal(K),this.view.domNode.focus()}onPageUpArrow(V){V.preventDefault(),V.stopPropagation(),this.list.focusPreviousPage(V.browserEvent);const K=this.list.getFocus()[0];this.list.setAnchor(K),this.list.reveal(K),this.view.domNode.focus()}onPageDownArrow(V){V.preventDefault(),V.stopPropagation(),this.list.focusNextPage(V.browserEvent);const K=this.list.getFocus()[0];this.list.setAnchor(K),this.list.reveal(K),this.view.domNode.focus()}onCtrlA(V){V.preventDefault(),V.stopPropagation(),this.list.setSelection((0,C.range)(this.list.length),V.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(V){this.list.getSelection().length&&(V.preventDefault(),V.stopPropagation(),this.list.setSelection([],V.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}Ie([t.memoize],y.prototype,"onKeyDown",null);var E;(function(Z){Z[Z.Idle=0]="Idle",Z[Z.Typing=1]="Typing"})(E||(E={})),e.DefaultKeyboardNavigationDelegate=new class{mightProducePrintableCharacter(Z){return Z.ctrlKey||Z.metaKey||Z.altKey?!1:Z.keyCode>=31&&Z.keyCode<=56||Z.keyCode>=21&&Z.keyCode<=30||Z.keyCode>=93&&Z.keyCode<=102||Z.keyCode>=80&&Z.keyCode<=90}};class N{constructor(V,K,X,oe){this.list=V,this.view=K,this.keyboardNavigationLabelProvider=X,this.delegate=oe,this.enabled=!1,this.state=E.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new o.DisposableStore,this.disposables=new o.DisposableStore,this.updateOptions(V.options)}updateOptions(V){(typeof V.enableKeyboardNavigation=="undefined"?!0:!!V.enableKeyboardNavigation)?this.enable():this.disable(),typeof V.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=V.automaticKeyboardNavigation)}enable(){if(this.enabled)return;const V=n.Event.chain(this.enabledDisposables.add(new m.DomEmitter(this.view.domNode,"keydown")).event).filter(oe=>!p(oe.target)).filter(()=>this.automaticKeyboardNavigation||this.triggered).map(oe=>new k.StandardKeyboardEvent(oe)).filter(oe=>this.delegate.mightProducePrintableCharacter(oe)).forEach(oe=>oe.preventDefault()).map(oe=>oe.browserEvent.key).event,K=n.Event.debounce(V,()=>null,800);n.Event.reduce(n.Event.any(V,K),(oe,ae)=>ae===null?null:(oe||"")+ae)(this.onInput,this,this.enabledDisposables),K(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){!this.enabled||(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var V;const K=this.list.getFocus();if(K.length>0&&K[0]===this.previouslyFocused){const X=(V=this.list.options.accessibilityProvider)===null||V===void 0?void 0:V.getAriaLabel(this.list.element(K[0]));X&&(0,w.alert)(X)}this.previouslyFocused=-1}onInput(V){if(!V){this.state=E.Idle,this.triggered=!1;return}const K=this.list.getFocus(),X=K.length>0?K[0]:0,oe=this.state===E.Idle?1:0;this.state=E.Typing;for(let ae=0;ae!p(oe.target)).map(oe=>new k.StandardKeyboardEvent(oe)).filter(oe=>oe.keyCode===2&&!oe.ctrlKey&&!oe.metaKey&&!oe.shiftKey&&!oe.altKey).on(this.onTab,this,this.disposables)}onTab(V){if(V.target!==this.view.domNode)return;const K=this.list.getFocus();if(K.length===0)return;const X=this.view.domElement(K[0]);if(!X)return;const oe=X.querySelector("[tabIndex]");if(!oe||!(oe instanceof HTMLElement)||oe.tabIndex===-1)return;const ae=window.getComputedStyle(oe);ae.visibility==="hidden"||ae.display==="none"||(V.preventDefault(),V.stopPropagation(),oe.focus())}dispose(){this.disposables.dispose()}}function M(Z){return r.isMacintosh?Z.browserEvent.metaKey:Z.browserEvent.ctrlKey}e.isSelectionSingleChangeEvent=M;function B(Z){return Z.browserEvent.shiftKey}e.isSelectionRangeChangeEvent=B;function O(Z){return Z instanceof MouseEvent&&Z.button===2}const T={isSelectionSingleChangeEvent:M,isSelectionRangeChangeEvent:B};class A{constructor(V){this.list=V,this.disposables=new o.DisposableStore,this._onPointer=new n.Emitter,this.onPointer=this._onPointer.event,V.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||T),this.mouseSupport=typeof V.options.mouseSupport=="undefined"||!!V.options.mouseSupport,this.mouseSupport&&(V.onMouseDown(this.onMouseDown,this,this.disposables),V.onContextMenu(this.onContextMenu,this,this.disposables),V.onMouseDblClick(this.onDoubleClick,this,this.disposables),V.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(I.Gesture.addTarget(V.getHTMLElement()))),n.Event.any(V.onMouseClick,V.onMouseMiddleClick,V.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(V){V.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,V.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||T))}isSelectionSingleChangeEvent(V){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(V):!1}isSelectionRangeChangeEvent(V){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(V):!1}isSelectionChangeEvent(V){return this.isSelectionSingleChangeEvent(V)||this.isSelectionRangeChangeEvent(V)}onMouseDown(V){_(V.browserEvent.target)||document.activeElement!==V.browserEvent.target&&this.list.domFocus()}onContextMenu(V){if(_(V.browserEvent.target))return;const K=typeof V.index=="undefined"?[]:[V.index];this.list.setFocus(K,V.browserEvent)}onViewPointer(V){if(!this.mouseSupport||p(V.browserEvent.target)||_(V.browserEvent.target))return;const K=V.index;if(typeof K=="undefined"){this.list.setFocus([],V.browserEvent),this.list.setSelection([],V.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionRangeChangeEvent(V))return this.changeSelection(V);if(this.isSelectionChangeEvent(V))return this.changeSelection(V);this.list.setFocus([K],V.browserEvent),this.list.setAnchor(K),O(V.browserEvent)||this.list.setSelection([K],V.browserEvent),this._onPointer.fire(V)}onDoubleClick(V){if(p(V.browserEvent.target)||_(V.browserEvent.target)||this.isSelectionChangeEvent(V))return;const K=this.list.getFocus();this.list.setSelection(K,V.browserEvent)}changeSelection(V){const K=V.index;let X=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(V)){if(typeof X=="undefined"){const H=this.list.getFocus()[0];X=H??K,this.list.setAnchor(X)}const oe=Math.min(X,K),ae=Math.max(X,K),ee=(0,C.range)(oe,ae+1),ue=this.list.getSelection(),le=R(z(ue,[X]),X);if(le.length===0)return;const x=z(ee,j(ue,le));this.list.setSelection(x,V.browserEvent),this.list.setFocus([K],V.browserEvent)}else if(this.isSelectionSingleChangeEvent(V)){const oe=this.list.getSelection(),ae=oe.filter(ee=>ee!==K);this.list.setFocus([K]),this.list.setAnchor(K),oe.length===ae.length?this.list.setSelection([...ae,K],V.browserEvent):this.list.setSelection(ae,V.browserEvent)}}dispose(){this.disposables.dispose()}}e.MouseController=A;class P{constructor(V,K){this.styleElement=V,this.selectorSuffix=K}style(V){const K=this.selectorSuffix&&`.${this.selectorSuffix}`,X=[];V.listBackground&&(V.listBackground.isOpaque()?X.push(`.monaco-list${K} .monaco-list-rows { background: ${V.listBackground}; }`):r.isMacintosh||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),V.listFocusBackground&&(X.push(`.monaco-list${K}:focus .monaco-list-row.focused { background-color: ${V.listFocusBackground}; }`),X.push(`.monaco-list${K}:focus .monaco-list-row.focused:hover { background-color: ${V.listFocusBackground}; }`)),V.listFocusForeground&&X.push(`.monaco-list${K}:focus .monaco-list-row.focused { color: ${V.listFocusForeground}; }`),V.listActiveSelectionBackground&&(X.push(`.monaco-list${K}:focus .monaco-list-row.selected { background-color: ${V.listActiveSelectionBackground}; }`),X.push(`.monaco-list${K}:focus .monaco-list-row.selected:hover { background-color: ${V.listActiveSelectionBackground}; }`)),V.listActiveSelectionForeground&&X.push(`.monaco-list${K}:focus .monaco-list-row.selected { color: ${V.listActiveSelectionForeground}; }`),V.listActiveSelectionIconForeground&&X.push(`.monaco-list${K}:focus .monaco-list-row.selected .codicon { color: ${V.listActiveSelectionIconForeground}; }`),V.listFocusAndSelectionBackground&&X.push(`
+ .monaco-drag-image,
+ .monaco-list${K}:focus .monaco-list-row.selected.focused { background-color: ${V.listFocusAndSelectionBackground}; }
+ `),V.listFocusAndSelectionForeground&&X.push(`
+ .monaco-drag-image,
+ .monaco-list${K}:focus .monaco-list-row.selected.focused { color: ${V.listFocusAndSelectionForeground}; }
+ `),V.listInactiveFocusForeground&&(X.push(`.monaco-list${K} .monaco-list-row.focused { color: ${V.listInactiveFocusForeground}; }`),X.push(`.monaco-list${K} .monaco-list-row.focused:hover { color: ${V.listInactiveFocusForeground}; }`)),V.listInactiveSelectionIconForeground&&X.push(`.monaco-list${K} .monaco-list-row.focused .codicon { color: ${V.listInactiveSelectionIconForeground}; }`),V.listInactiveFocusBackground&&(X.push(`.monaco-list${K} .monaco-list-row.focused { background-color: ${V.listInactiveFocusBackground}; }`),X.push(`.monaco-list${K} .monaco-list-row.focused:hover { background-color: ${V.listInactiveFocusBackground}; }`)),V.listInactiveSelectionBackground&&(X.push(`.monaco-list${K} .monaco-list-row.selected { background-color: ${V.listInactiveSelectionBackground}; }`),X.push(`.monaco-list${K} .monaco-list-row.selected:hover { background-color: ${V.listInactiveSelectionBackground}; }`)),V.listInactiveSelectionForeground&&X.push(`.monaco-list${K} .monaco-list-row.selected { color: ${V.listInactiveSelectionForeground}; }`),V.listHoverBackground&&X.push(`.monaco-list${K}:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${V.listHoverBackground}; }`),V.listHoverForeground&&X.push(`.monaco-list${K} .monaco-list-row:hover:not(.selected):not(.focused) { color: ${V.listHoverForeground}; }`),V.listSelectionOutline&&X.push(`.monaco-list${K} .monaco-list-row.selected { outline: 1px dotted ${V.listSelectionOutline}; outline-offset: -1px; }`),V.listFocusOutline&&X.push(`
+ .monaco-drag-image,
+ .monaco-list${K}:focus .monaco-list-row.focused { outline: 1px solid ${V.listFocusOutline}; outline-offset: -1px; }
+ .monaco-workbench.context-menu-visible .monaco-list${K}.last-focused .monaco-list-row.focused { outline: 1px solid ${V.listFocusOutline}; outline-offset: -1px; }
+ `),V.listInactiveFocusOutline&&X.push(`.monaco-list${K} .monaco-list-row.focused { outline: 1px dotted ${V.listInactiveFocusOutline}; outline-offset: -1px; }`),V.listHoverOutline&&X.push(`.monaco-list${K} .monaco-list-row:hover { outline: 1px dashed ${V.listHoverOutline}; outline-offset: -1px; }`),V.listDropBackground&&X.push(`
+ .monaco-list${K}.drop-target,
+ .monaco-list${K} .monaco-list-rows.drop-target,
+ .monaco-list${K} .monaco-list-row.drop-target { background-color: ${V.listDropBackground} !important; color: inherit !important; }
+ `),V.listFilterWidgetBackground&&X.push(`.monaco-list-type-filter { background-color: ${V.listFilterWidgetBackground} }`),V.listFilterWidgetOutline&&X.push(`.monaco-list-type-filter { border: 1px solid ${V.listFilterWidgetOutline}; }`),V.listFilterWidgetNoMatchesOutline&&X.push(`.monaco-list-type-filter.no-matches { border: 1px solid ${V.listFilterWidgetNoMatchesOutline}; }`),V.listMatchesShadow&&X.push(`.monaco-list-type-filter { box-shadow: 1px 1px 1px ${V.listMatchesShadow}; }`),V.tableColumnsBorder&&X.push(`
+ .monaco-table:hover > .monaco-split-view2,
+ .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {
+ border-color: ${V.tableColumnsBorder};
+ }`),V.tableOddRowsBackgroundColor&&X.push(`
+ .monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,
+ .monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,
+ .monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {
+ background-color: ${V.tableOddRowsBackgroundColor};
+ }
+ `),this.styleElement.textContent=X.join(`
+`)}}e.DefaultStyleController=P;const F={listFocusBackground:g.Color.fromHex("#7FB0D0"),listActiveSelectionBackground:g.Color.fromHex("#0E639C"),listActiveSelectionForeground:g.Color.fromHex("#FFFFFF"),listActiveSelectionIconForeground:g.Color.fromHex("#FFFFFF"),listFocusAndSelectionBackground:g.Color.fromHex("#094771"),listFocusAndSelectionForeground:g.Color.fromHex("#FFFFFF"),listInactiveSelectionBackground:g.Color.fromHex("#3F3F46"),listInactiveSelectionIconForeground:g.Color.fromHex("#FFFFFF"),listHoverBackground:g.Color.fromHex("#2A2D2E"),listDropBackground:g.Color.fromHex("#383B3D"),treeIndentGuidesStroke:g.Color.fromHex("#a9a9a9"),tableColumnsBorder:g.Color.fromHex("#cccccc").transparent(.2),tableOddRowsBackgroundColor:g.Color.fromHex("#cccccc").transparent(.04)},W={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function R(Z,V){const K=Z.indexOf(V);if(K===-1)return[];const X=[];let oe=K-1;for(;oe>=0&&Z[oe]===V-(K-oe);)X.push(Z[oe--]);for(X.reverse(),oe=K;oe=Z.length)K.push(V[oe++]);else if(oe>=V.length)K.push(Z[X++]);else if(Z[X]===V[oe]){K.push(Z[X]),X++,oe++;continue}else Z[X]=Z.length)K.push(V[oe++]);else if(oe>=V.length)K.push(Z[X++]);else if(Z[X]===V[oe]){X++,oe++;continue}else Z[X]Z-V;class G{constructor(V,K){this._templateId=V,this.renderers=K}get templateId(){return this._templateId}renderTemplate(V){return this.renderers.map(K=>K.renderTemplate(V))}renderElement(V,K,X,oe){let ae=0;for(const ee of this.renderers)ee.renderElement(V,K,X[ae++],oe)}disposeElement(V,K,X,oe){let ae=0;for(const ee of this.renderers)ee.disposeElement&&ee.disposeElement(V,K,X[ae],oe),ae+=1}disposeTemplate(V){let K=0;for(const X of this.renderers)X.disposeTemplate(V[K++])}}class J{constructor(V){this.accessibilityProvider=V,this.templateId="a18n"}renderTemplate(V){return V}renderElement(V,K,X){const oe=this.accessibilityProvider.getAriaLabel(V);oe?X.setAttribute("aria-label",oe):X.removeAttribute("aria-label");const ae=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(V);typeof ae=="number"?X.setAttribute("aria-level",`${ae}`):X.removeAttribute("aria-level")}disposeTemplate(V){}}class re{constructor(V,K){this.list=V,this.dnd=K}getDragElements(V){const K=this.list.getSelectedElements();return K.indexOf(V)>-1?K:[V]}getDragURI(V){return this.dnd.getDragURI(V)}getDragLabel(V,K){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(V,K)}onDragStart(V,K){this.dnd.onDragStart&&this.dnd.onDragStart(V,K)}onDragOver(V,K,X,oe){return this.dnd.onDragOver(V,K,X,oe)}onDragLeave(V,K,X,oe){var ae,ee;(ee=(ae=this.dnd).onDragLeave)===null||ee===void 0||ee.call(ae,V,K,X,oe)}onDragEnd(V){this.dnd.onDragEnd&&this.dnd.onDragEnd(V)}drop(V,K,X,oe){this.dnd.drop(V,K,X,oe)}}class se{constructor(V,K,X,oe,ae=W){var ee;this.user=V,this._options=ae,this.focus=new f("focused"),this.anchor=new f("anchor"),this.eventBufferer=new n.EventBufferer,this._ariaLabel="",this.disposables=new o.DisposableStore,this._onDidDispose=new n.Emitter,this.onDidDispose=this._onDidDispose.event;const ue=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(ee=this._options.accessibilityProvider)===null||ee===void 0?void 0:ee.getWidgetRole():"list";this.selection=new S(ue!=="listbox"),(0,d.mixin)(ae,F,!1);const le=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=ae.accessibilityProvider,this.accessibilityProvider&&(le.push(new J(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),oe=oe.map(H=>new G(H.templateId,[...le,H]));const x=Object.assign(Object.assign({},ae),{dnd:ae.dnd&&new re(this,ae.dnd)});if(this.view=new l.ListView(K,X,oe,x),this.view.domNode.setAttribute("role",ue),ae.styleController)this.styleController=ae.styleController(this.view.domId);else{const H=(0,L.createStyleSheet)(this.view.domNode);this.styleController=new P(H,this.view.domId)}if(this.spliceable=new b.CombinedSpliceable([new v(this.focus,this.view,ae.identityProvider),new v(this.selection,this.view,ae.identityProvider),new v(this.anchor,this.view,ae.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new D(this,this.view)),(typeof ae.keyboardSupport!="boolean"||ae.keyboardSupport)&&(this.keyboardController=new y(this,this.view,ae),this.disposables.add(this.keyboardController)),ae.keyboardNavigationLabelProvider){const H=ae.keyboardNavigationDelegate||e.DefaultKeyboardNavigationDelegate;this.typeLabelController=new N(this,this.view,ae.keyboardNavigationLabelProvider,H),this.disposables.add(this.typeLabelController)}this.mouseController=this.createMouseController(ae),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return n.Event.map(this.eventBufferer.wrapEvent(this.focus.onChange),V=>this.toListEvent(V))}get onDidChangeSelection(){return n.Event.map(this.eventBufferer.wrapEvent(this.selection.onChange),V=>this.toListEvent(V))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let V=!1;const K=n.Event.chain(this.disposables.add(new m.DomEmitter(this.view.domNode,"keydown")).event).map(ae=>new k.StandardKeyboardEvent(ae)).filter(ae=>V=ae.keyCode===58||ae.shiftKey&&ae.keyCode===68).map(m.stopEvent).filter(()=>!1).event,X=n.Event.chain(this.disposables.add(new m.DomEmitter(this.view.domNode,"keyup")).event).forEach(()=>V=!1).map(ae=>new k.StandardKeyboardEvent(ae)).filter(ae=>ae.keyCode===58||ae.shiftKey&&ae.keyCode===68).map(m.stopEvent).map(({browserEvent:ae})=>{const ee=this.getFocus(),ue=ee.length?ee[0]:void 0,le=typeof ue!="undefined"?this.view.element(ue):void 0,x=typeof ue!="undefined"?this.view.domElement(ue):this.view.domNode;return{index:ue,element:le,anchor:x,browserEvent:ae}}).event,oe=n.Event.chain(this.view.onContextMenu).filter(ae=>!V).map(({element:ae,index:ee,browserEvent:ue})=>({element:ae,index:ee,anchor:{x:ue.pageX+1,y:ue.pageY},browserEvent:ue})).event;return n.Event.any(K,X,oe)}get onKeyDown(){return this.disposables.add(new m.DomEmitter(this.view.domNode,"keydown")).event}get onDidFocus(){return n.Event.signal(this.disposables.add(new m.DomEmitter(this.view.domNode,"focus",!0)).event)}createMouseController(V){return new A(this)}updateOptions(V={}){var K;this._options=Object.assign(Object.assign({},this._options),V),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(V),(K=this.keyboardController)===null||K===void 0||K.updateOptions(V),this.view.updateOptions(V)}get options(){return this._options}splice(V,K,X=[]){if(V<0||V>this.view.length)throw new a.ListError(this.user,`Invalid start index: ${V}`);if(K<0)throw new a.ListError(this.user,`Invalid delete count: ${K}`);K===0&&X.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(V,K,X))}rerender(){this.view.rerender()}element(V){return this.view.element(V)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(V){this.view.setScrollTop(V)}get ariaLabel(){return this._ariaLabel}set ariaLabel(V){this._ariaLabel=V,this.view.domNode.setAttribute("aria-label",V)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(V,K){this.view.layout(V,K)}setSelection(V,K){for(const X of V)if(X<0||X>=this.length)throw new a.ListError(this.user,`Invalid index ${X}`);this.selection.set(V,K)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(V=>this.view.element(V))}setAnchor(V){if(typeof V=="undefined"){this.anchor.set([]);return}if(V<0||V>=this.length)throw new a.ListError(this.user,`Invalid index ${V}`);this.anchor.set([V])}getAnchor(){return(0,C.firstOrDefault)(this.anchor.get(),void 0)}getAnchorElement(){const V=this.getAnchor();return typeof V=="undefined"?void 0:this.element(V)}setFocus(V,K){for(const X of V)if(X<0||X>=this.length)throw new a.ListError(this.user,`Invalid index ${X}`);this.focus.set(V,K)}focusNext(V=1,K=!1,X,oe){if(this.length===0)return;const ae=this.focus.get(),ee=this.findNextIndex(ae.length>0?ae[0]+V:0,K,oe);ee>-1&&this.setFocus([ee],X)}focusPrevious(V=1,K=!1,X,oe){if(this.length===0)return;const ae=this.focus.get(),ee=this.findPreviousIndex(ae.length>0?ae[0]-V:0,K,oe);ee>-1&&this.setFocus([ee],X)}focusNextPage(V,K){return we(this,void 0,void 0,function*(){let X=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);X=X===0?0:X-1;const oe=this.view.element(X),ae=this.getFocusedElements()[0];if(ae!==oe){const ee=this.findPreviousIndex(X,!1,K);ee>-1&&ae!==this.view.element(ee)?this.setFocus([ee],V):this.setFocus([X],V)}else{const ee=this.view.getScrollTop();this.view.setScrollTop(ee+this.view.renderHeight-this.view.elementHeight(X)),this.view.getScrollTop()!==ee&&(this.setFocus([]),yield(0,u.timeout)(0),yield this.focusNextPage(V,K))}})}focusPreviousPage(V,K){return we(this,void 0,void 0,function*(){let X;const oe=this.view.getScrollTop();oe===0?X=this.view.indexAt(oe):X=this.view.indexAfter(oe-1);const ae=this.view.element(X),ee=this.getFocusedElements()[0];if(ee!==ae){const ue=this.findNextIndex(X,!1,K);ue>-1&&ee!==this.view.element(ue)?this.setFocus([ue],V):this.setFocus([X],V)}else{const ue=oe;this.view.setScrollTop(oe-this.view.renderHeight),this.view.getScrollTop()!==ue&&(this.setFocus([]),yield(0,u.timeout)(0),yield this.focusPreviousPage(V,K))}})}focusLast(V,K){if(this.length===0)return;const X=this.findPreviousIndex(this.length-1,!1,K);X>-1&&this.setFocus([X],V)}focusFirst(V,K){this.focusNth(0,V,K)}focusNth(V,K,X){if(this.length===0)return;const oe=this.findNextIndex(V,!1,X);oe>-1&&this.setFocus([oe],K)}findNextIndex(V,K=!1,X){for(let oe=0;oe=this.length&&!K)return-1;if(V=V%this.length,!X||X(this.element(V)))return V;V++}return-1}findPreviousIndex(V,K=!1,X){for(let oe=0;oethis.view.element(V))}reveal(V,K){if(V<0||V>=this.length)throw new a.ListError(this.user,`Invalid index ${V}`);const X=this.view.getScrollTop(),oe=this.view.elementTop(V),ae=this.view.elementHeight(V);if((0,s.isNumber)(K)){const ee=ae-this.view.renderHeight;this.view.setScrollTop(ee*(0,c.clamp)(K,0,1)+oe)}else{const ee=oe+ae,ue=X+this.view.renderHeight;oe=ue||(oe=ue&&ae>=this.view.renderHeight?this.view.setScrollTop(oe):ee>=ue&&this.view.setScrollTop(ee-this.view.renderHeight))}}getRelativeTop(V){if(V<0||V>=this.length)throw new a.ListError(this.user,`Invalid index ${V}`);const K=this.view.getScrollTop(),X=this.view.elementTop(V),oe=this.view.elementHeight(V);if(XK+this.view.renderHeight)return null;const ae=oe-this.view.renderHeight;return Math.abs((K-X)/ae)}getHTMLElement(){return this.view.domNode}style(V){this.styleController.style(V)}toListEvent({indexes:V,browserEvent:K}){return{indexes:V,elements:V.map(X=>this.view.element(X)),browserEvent:K}}_onFocusChange(){const V=this.focus.get();this.view.domNode.classList.toggle("element-focused",V.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var V;const K=this.focus.get();if(K.length>0){let X;((V=this.accessibilityProvider)===null||V===void 0?void 0:V.getActiveDescendantId)&&(X=this.accessibilityProvider.getActiveDescendantId(this.view.element(K[0]))),this.view.domNode.setAttribute("aria-activedescendant",X||this.view.getElementDomId(K[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const V=this.selection.get();this.view.domNode.classList.toggle("selection-none",V.length===0),this.view.domNode.classList.toggle("selection-single",V.length===1),this.view.domNode.classList.toggle("selection-multiple",V.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}Ie([t.memoize],se.prototype,"onDidChangeFocus",null),Ie([t.memoize],se.prototype,"onDidChangeSelection",null),Ie([t.memoize],se.prototype,"onContextMenu",null),Ie([t.memoize],se.prototype,"onKeyDown",null),Ie([t.memoize],se.prototype,"onDidFocus",null),e.List=se}),define(te[348],ie([1,0,18,21,4,2,117,229]),function(q,e,L,m,k,I,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PagedList=void 0;class b{constructor(n,i){this.renderer=n,this.modelProvider=i}get templateId(){return this.renderer.templateId}renderTemplate(n){return{data:this.renderer.renderTemplate(n),disposable:I.Disposable.None}}renderElement(n,i,o,c){if(o.disposable&&o.disposable.dispose(),!o.data)return;const d=this.modelProvider();if(d.isResolved(n))return this.renderer.renderElement(d.get(n),n,o.data,c);const r=new m.CancellationTokenSource,s=d.resolve(n,r.token);o.disposable={dispose:()=>r.cancel()},this.renderer.renderPlaceholder(n,o.data),s.then(a=>this.renderer.renderElement(a,n,o.data,c))}disposeTemplate(n){n.disposable&&(n.disposable.dispose(),n.disposable=void 0),n.data&&(this.renderer.disposeTemplate(n.data),n.data=void 0)}}class C{constructor(n,i){this.modelProvider=n,this.accessibilityProvider=i}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(n){const i=this.modelProvider();return i.isResolved(n)?this.accessibilityProvider.getAriaLabel(i.get(n)):null}}function u(t,n){return Object.assign(Object.assign({},n),{accessibilityProvider:n.accessibilityProvider&&new C(t,n.accessibilityProvider)})}class g{constructor(n,i,o,c,d={}){const r=()=>this.model,s=c.map(a=>new b(a,r));this.list=new w.List(n,i,o,s,u(r,d))}updateOptions(n){this.list.updateOptions(n)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return k.Event.map(this.list.onMouseDblClick,({element:n,index:i,browserEvent:o})=>({element:n===void 0?void 0:this._model.get(n),index:i,browserEvent:o}))}get onPointer(){return k.Event.map(this.list.onPointer,({element:n,index:i,browserEvent:o})=>({element:n===void 0?void 0:this._model.get(n),index:i,browserEvent:o}))}get onDidChangeSelection(){return k.Event.map(this.list.onDidChangeSelection,({elements:n,indexes:i,browserEvent:o})=>({elements:n.map(c=>this._model.get(c)),indexes:i,browserEvent:o}))}get model(){return this._model}set model(n){this._model=n,this.list.splice(0,this.list.length,(0,L.range)(n.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(n=>this.model.get(n))}style(n){this.list.style(n)}dispose(){this.list.dispose()}}e.PagedList=g}),define(te[349],ie([12]),{}),define(te[231],ie([1,0,7,116,69,18,30,4,2,113,140,19,349]),function(q,e,L,m,k,I,w,b,C,u,g,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SplitView=e.Sizing=void 0;const n={separatorBorder:w.Color.transparent};class i{constructor(l,h,f,S){this.container=l,this.view=h,this.disposable=S,this._cachedVisibleSize=void 0,typeof f=="number"?(this._size=f,this._cachedVisibleSize=void 0,l.classList.add("visible")):(this._size=0,this._cachedVisibleSize=f.cachedVisibleSize)}set size(l){this._size=l}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize=="undefined"}setVisible(l,h){l!==this.visible&&(l?(this.size=(0,u.clamp)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof h=="number"?h:this.size,this.size=0),this.container.classList.toggle("visible",l),this.view.setVisible&&this.view.setVisible(l))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(l){this.container.style.pointerEvents=l?"":"none"}layout(l,h){this.layoutContainer(l),this.view.layout(this.size,l,h)}dispose(){return this.disposable.dispose(),this.view}}class o extends i{layoutContainer(l){this.container.style.top=`${l}px`,this.container.style.height=`${this.size}px`}}class c extends i{layoutContainer(l){this.container.style.left=`${l}px`,this.container.style.width=`${this.size}px`}}var d;(function(a){a[a.Idle=0]="Idle",a[a.Busy=1]="Busy"})(d||(d={}));var r;(function(a){a.Distribute={type:"distribute"};function l(f){return{type:"split",index:f}}a.Split=l;function h(f){return{type:"invisible",cachedVisibleSize:f}}a.Invisible=h})(r=e.Sizing||(e.Sizing={}));class s extends C.Disposable{constructor(l,h={}){var f,S,v,p,_;super();this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=d.Idle,this._onDidSashChange=this._register(new b.Emitter),this._onDidSashReset=this._register(new b.Emitter),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(f=h.orientation)!==null&&f!==void 0?f:0,this.inverseAltBehavior=(S=h.inverseAltBehavior)!==null&&S!==void 0?S:!1,this.proportionalLayout=(v=h.proportionalLayout)!==null&&v!==void 0?v:!0,this.getSashOrthogonalSize=h.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),l.appendChild(this.el),this.sashContainer=(0,L.append)(this.el,(0,L.$)(".sash-container")),this.viewContainer=(0,L.$)(".split-view-container"),this.scrollable=new g.Scrollable({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:L.scheduleAtNextAnimationFrame}),this.scrollableElement=this._register(new k.SmoothScrollableElement(this.viewContainer,{vertical:this.orientation===0?(p=h.scrollbarVisibility)!==null&&p!==void 0?p:1:2,horizontal:this.orientation===1?(_=h.scrollbarVisibility)!==null&&_!==void 0?_:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(y=>{this.viewContainer.scrollTop=y.scrollTop,this.viewContainer.scrollLeft=y.scrollLeft})),(0,L.append)(this.el,this.scrollableElement.getDomNode()),this.style(h.styles||n),h.descriptor&&(this.size=h.descriptor.size,h.descriptor.views.forEach((y,E)=>{const N=t.isUndefined(y.visible)||y.visible?y.size:{type:"invisible",cachedVisibleSize:y.size},D=y.view;this.doAddView(D,N,E,!0)}),this.contentSize=this.viewItems.reduce((y,E)=>y+E.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(l){for(const h of this.sashItems)h.sash.orthogonalStartSash=l;this._orthogonalStartSash=l}set orthogonalEndSash(l){for(const h of this.sashItems)h.sash.orthogonalEndSash=l;this._orthogonalEndSash=l}set startSnappingEnabled(l){this._startSnappingEnabled!==l&&(this._startSnappingEnabled=l,this.updateSashEnablement())}set endSnappingEnabled(l){this._endSnappingEnabled!==l&&(this._endSnappingEnabled=l,this.updateSashEnablement())}style(l){l.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",l.separatorBorder.toString()))}addView(l,h,f=this.viewItems.length,S){this.doAddView(l,h,f,S)}layout(l,h){const f=Math.max(this.size,this.contentSize);if(this.size=l,this.layoutContext=h,this.proportions)for(let S=0;Sthis.viewItems[_].priority===1),p=S.filter(_=>this.viewItems[_].priority===2);this.resize(this.viewItems.length-1,l-f,void 0,v,p)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(l=>l.size/this.contentSize))}onSashStart({sash:l,start:h,alt:f}){for(const _ of this.viewItems)_.enabled=!1;const S=this.sashItems.findIndex(_=>_.sash===l),v=(0,C.combinedDisposable)((0,L.addDisposableListener)(document.body,"keydown",_=>p(this.sashDragState.current,_.altKey)),(0,L.addDisposableListener)(document.body,"keyup",()=>p(this.sashDragState.current,!1))),p=(_,y)=>{const E=this.viewItems.map(O=>O.size);let N=Number.NEGATIVE_INFINITY,D=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(y=!y),y)if(S===this.sashItems.length-1){const T=this.viewItems[S];N=(T.minimumSize-T.size)/2,D=(T.maximumSize-T.size)/2}else{const T=this.viewItems[S+1];N=(T.size-T.maximumSize)/2,D=(T.size-T.minimumSize)/2}let M,B;if(!y){const O=(0,I.range)(S,-1),T=(0,I.range)(S+1,this.viewItems.length),A=O.reduce((G,J)=>G+(this.viewItems[J].minimumSize-E[J]),0),P=O.reduce((G,J)=>G+(this.viewItems[J].viewMaximumSize-E[J]),0),F=T.length===0?Number.POSITIVE_INFINITY:T.reduce((G,J)=>G+(E[J]-this.viewItems[J].minimumSize),0),W=T.length===0?Number.NEGATIVE_INFINITY:T.reduce((G,J)=>G+(E[J]-this.viewItems[J].viewMaximumSize),0),R=Math.max(A,W),z=Math.min(F,P),j=this.findFirstSnapIndex(O),$=this.findFirstSnapIndex(T);if(typeof j=="number"){const G=this.viewItems[j],J=Math.floor(G.viewMinimumSize/2);M={index:j,limitDelta:G.visible?R-J:R+J,size:G.size}}if(typeof $=="number"){const G=this.viewItems[$],J=Math.floor(G.viewMinimumSize/2);B={index:$,limitDelta:G.visible?z+J:z-J,size:G.size}}}this.sashDragState={start:_,current:_,index:S,sizes:E,minDelta:N,maxDelta:D,alt:y,snapBefore:M,snapAfter:B,disposable:v}};p(h,f)}onSashChange({current:l}){const{index:h,start:f,sizes:S,alt:v,minDelta:p,maxDelta:_,snapBefore:y,snapAfter:E}=this.sashDragState;this.sashDragState.current=l;const N=l-f,D=this.resize(h,N,S,void 0,void 0,p,_,y,E);if(v){const M=h===this.sashItems.length-1,B=this.viewItems.map(W=>W.size),O=M?h:h+1,T=this.viewItems[O],A=T.size-T.maximumSize,P=T.size-T.minimumSize,F=M?h-1:h+1;this.resize(F,-D,B,void 0,void 0,A,P)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(l){this._onDidSashChange.fire(l),this.sashDragState.disposable.dispose(),this.saveProportions();for(const h of this.viewItems)h.enabled=!0}onViewChange(l,h){const f=this.viewItems.indexOf(l);f<0||f>=this.viewItems.length||(h=typeof h=="number"?h:l.size,h=(0,u.clamp)(h,l.minimumSize,l.maximumSize),this.inverseAltBehavior&&f>0?(this.resize(f-1,Math.floor((l.size-h)/2)),this.distributeEmptySpace(),this.layoutViews()):(l.size=h,this.relayout([f],void 0)))}resizeView(l,h){if(this.state!==d.Idle)throw new Error("Cant modify splitview");if(this.state=d.Busy,l<0||l>=this.viewItems.length)return;const f=(0,I.range)(this.viewItems.length).filter(_=>_!==l),S=[...f.filter(_=>this.viewItems[_].priority===1),l],v=f.filter(_=>this.viewItems[_].priority===2),p=this.viewItems[l];h=Math.round(h),h=(0,u.clamp)(h,p.minimumSize,Math.min(p.maximumSize,this.size)),p.size=h,this.relayout(S,v),this.state=d.Idle}distributeViewSizes(){const l=[];let h=0;for(const _ of this.viewItems)_.maximumSize-_.minimumSize>0&&(l.push(_),h+=_.size);const f=Math.floor(h/l.length);for(const _ of l)_.size=(0,u.clamp)(f,_.minimumSize,_.maximumSize);const S=(0,I.range)(this.viewItems.length),v=S.filter(_=>this.viewItems[_].priority===1),p=S.filter(_=>this.viewItems[_].priority===2);this.relayout(v,p)}getViewSize(l){return l<0||l>=this.viewItems.length?-1:this.viewItems[l].size}doAddView(l,h,f=this.viewItems.length,S){if(this.state!==d.Idle)throw new Error("Cant modify splitview");this.state=d.Busy;const v=(0,L.$)(".split-view-view");f===this.viewItems.length?this.viewContainer.appendChild(v):this.viewContainer.insertBefore(v,this.viewContainer.children.item(f));const p=l.onDidChange(M=>this.onViewChange(N,M)),_=(0,C.toDisposable)(()=>this.viewContainer.removeChild(v)),y=(0,C.combinedDisposable)(p,_);let E;typeof h=="number"?E=h:h.type==="split"?E=this.getViewSize(h.index)/2:h.type==="invisible"?E={cachedVisibleSize:h.cachedVisibleSize}:E=l.minimumSize;const N=this.orientation===0?new o(v,l,E,y):new c(v,l,E,y);if(this.viewItems.splice(f,0,N),this.viewItems.length>1){let M={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash};const B=this.orientation===0?new m.Sash(this.sashContainer,{getHorizontalSashTop:G=>this.getSashPosition(G),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},M),{orientation:1})):new m.Sash(this.sashContainer,{getVerticalSashLeft:G=>this.getSashPosition(G),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},M),{orientation:0})),O=this.orientation===0?G=>({sash:B,start:G.startY,current:G.currentY,alt:G.altKey}):G=>({sash:B,start:G.startX,current:G.currentX,alt:G.altKey}),A=b.Event.map(B.onDidStart,O)(this.onSashStart,this),F=b.Event.map(B.onDidChange,O)(this.onSashChange,this),R=b.Event.map(B.onDidEnd,()=>this.sashItems.findIndex(G=>G.sash===B))(this.onSashEnd,this),z=B.onDidReset(()=>{const G=this.sashItems.findIndex(V=>V.sash===B),J=(0,I.range)(G,-1),re=(0,I.range)(G+1,this.viewItems.length),se=this.findFirstSnapIndex(J),Z=this.findFirstSnapIndex(re);typeof se=="number"&&!this.viewItems[se].visible||typeof Z=="number"&&!this.viewItems[Z].visible||this._onDidSashReset.fire(G)}),j=(0,C.combinedDisposable)(A,F,R,z,B),$={sash:B,disposable:j};this.sashItems.splice(f-1,0,$)}v.appendChild(l.element);let D;typeof h!="number"&&h.type==="split"&&(D=[h.index]),S||this.relayout([f],D),this.state=d.Idle,!S&&typeof h!="number"&&h.type==="distribute"&&this.distributeViewSizes()}relayout(l,h){const f=this.viewItems.reduce((S,v)=>S+v.size,0);this.resize(this.viewItems.length-1,this.size-f,void 0,l,h),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(l,h,f=this.viewItems.map(N=>N.size),S,v,p=Number.NEGATIVE_INFINITY,_=Number.POSITIVE_INFINITY,y,E){if(l<0||l>=this.viewItems.length)return 0;const N=(0,I.range)(l,-1),D=(0,I.range)(l+1,this.viewItems.length);if(v)for(const $ of v)(0,I.pushToStart)(N,$),(0,I.pushToStart)(D,$);if(S)for(const $ of S)(0,I.pushToEnd)(N,$),(0,I.pushToEnd)(D,$);const M=N.map($=>this.viewItems[$]),B=N.map($=>f[$]),O=D.map($=>this.viewItems[$]),T=D.map($=>f[$]),A=N.reduce(($,G)=>$+(this.viewItems[G].minimumSize-f[G]),0),P=N.reduce(($,G)=>$+(this.viewItems[G].maximumSize-f[G]),0),F=D.length===0?Number.POSITIVE_INFINITY:D.reduce(($,G)=>$+(f[G]-this.viewItems[G].minimumSize),0),W=D.length===0?Number.NEGATIVE_INFINITY:D.reduce(($,G)=>$+(f[G]-this.viewItems[G].maximumSize),0),R=Math.max(A,W,p),z=Math.min(F,P,_);let j=!1;if(y){const $=this.viewItems[y.index],G=h>=y.limitDelta;j=G!==$.visible,$.setVisible(G,y.size)}if(!j&&E){const $=this.viewItems[E.index],G=h_+y.size,0);let f=this.size-h;const S=(0,I.range)(this.viewItems.length-1,-1),v=S.filter(_=>this.viewItems[_].priority===1),p=S.filter(_=>this.viewItems[_].priority===2);for(const _ of p)(0,I.pushToStart)(S,_);for(const _ of v)(0,I.pushToEnd)(S,_);typeof l=="number"&&(0,I.pushToEnd)(S,l);for(let _=0;f!==0&&_h+f.size,0);let l=0;for(const h of this.viewItems)h.layout(l,this.layoutContext),l+=h.size;this.sashItems.forEach(h=>h.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let l=!1;const h=this.viewItems.map(y=>l=y.size-y.minimumSize>0||l);l=!1;const f=this.viewItems.map(y=>l=y.maximumSize-y.size>0||l),S=[...this.viewItems].reverse();l=!1;const v=S.map(y=>l=y.size-y.minimumSize>0||l).reverse();l=!1;const p=S.map(y=>l=y.maximumSize-y.size>0||l).reverse();let _=0;for(let y=0;y0||this.startSnappingEnabled)?E.state=1:F&&h[y]&&(_0)return;if(!f.visible&&f.snap)return h}}dispose(){super.dispose(),(0,C.dispose)(this.viewItems),this.viewItems=[],this.sashItems.forEach(l=>l.disposable.dispose()),this.sashItems=[]}}e.SplitView=s}),define(te[350],ie([12]),{}),define(te[351],ie([1,0,7,117,231,4,2,350]),function(q,e,L,m,k,I,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Table=void 0;class b{constructor(n,i,o){this.columns=n,this.getColumnSize=o,this.templateId=b.TemplateId,this.renderedTemplates=new Set;const c=new Map(i.map(d=>[d.templateId,d]));this.renderers=[];for(const d of n){const r=c.get(d.templateId);if(!r)throw new Error(`Table cell renderer for template id ${d.templateId} not found.`);this.renderers.push(r)}}renderTemplate(n){const i=(0,L.append)(n,(0,L.$)(".monaco-table-tr")),o=[],c=[];for(let r=0;rnew u(h,f)),a={size:s.reduce((h,f)=>h+f.column.weight,0),views:s.map(h=>({size:h.column.weight,view:h}))};this.splitview=this.disposables.add(new k.SplitView(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:a})),this.splitview.el.style.height=`${o.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${o.headerRowHeight}px`;const l=new b(c,d,h=>this.splitview.getViewSize(h));this.list=this.disposables.add(new m.List(n,this.domNode,C(o),[l],r)),I.Event.any(...s.map(h=>h.onDidLayout))(([h,f])=>l.layoutColumn(h,f),null,this.disposables),this.splitview.onDidSashReset(h=>{const f=c.reduce((v,p)=>v+p.weight,0),S=c[h].weight/f*this.cachedWidth;this.splitview.resizeView(h,S)},null,this.disposables),this.styleElement=(0,L.createStyleSheet)(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(n){this.list.updateOptions(n)}splice(n,i,o=[]){this.list.splice(n,i,o)}getHTMLElement(){return this.domNode}style(n){const i=[];i.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {
+ top: ${this.virtualDelegate.headerRowHeight+1}px;
+ height: calc(100% - ${this.virtualDelegate.headerRowHeight}px);
+ }`),this.styleElement.textContent=i.join(`
+`),this.list.style(n)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}e.Table=g,g.InstanceCount=0}),define(te[352],ie([12]),{}),define(te[145],ie([12]),{}),define(te[232],ie([1,0,7,136,145]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIconClass=void 0;const k={},I=new m.IdGenerator("quick-input-button-icon-");function w(b){if(!b)return;let C;const u=b.dark.toString();return k[u]?C=k[u]:(C=I.nextId(),L.createCSSRule(`.${C}`,`background-image: ${L.asCSSUrl(b.light||b.dark)}`),L.createCSSRule(`.vs-dark .${C}, .hc-black .${C}`,`background-image: ${L.asCSSUrl(b.dark)}`),k[u]=C),C}e.getIconClass=w}),define(te[353],ie([12]),{}),define(te[354],ie([12]),{}),define(te[355],ie([12]),{}),define(te[356],ie([12]),{}),define(te[357],ie([12]),{}),define(te[358],ie([12]),{}),define(te[359],ie([12]),{}),define(te[360],ie([12]),{}),define(te[361],ie([12]),{}),define(te[362],ie([12]),{}),define(te[363],ie([12]),{}),define(te[364],ie([12]),{}),define(te[365],ie([12]),{}),define(te[366],ie([12]),{}),define(te[367],ie([12]),{}),define(te[368],ie([12]),{}),define(te[369],ie([12]),{}),define(te[370],ie([12]),{}),define(te[371],ie([12]),{}),define(te[372],ie([12]),{}),define(te[373],ie([12]),{}),define(te[374],ie([12]),{}),define(te[375],ie([12]),{}),define(te[376],ie([12]),{}),define(te[377],ie([12]),{}),define(te[378],ie([12]),{}),define(te[379],ie([12]),{}),define(te[380],ie([12]),{}),define(te[381],ie([12]),{}),define(te[382],ie([12]),{}),define(te[383],ie([12]),{}),define(te[384],ie([12]),{}),define(te[385],ie([12]),{}),define(te[386],ie([12]),{}),define(te[387],ie([12]),{}),define(te[388],ie([12]),{}),define(te[389],ie([12]),{}),define(te[390],ie([12]),{}),define(te[391],ie([12]),{}),define(te[392],ie([12]),{}),define(te[393],ie([12]),{}),define(te[394],ie([12]),{}),define(te[395],ie([12]),{}),define(te[396],ie([12]),{}),define(te[397],ie([12]),{}),define(te[398],ie([12]),{}),define(te[399],ie([12]),{}),define(te[233],ie([1,0,2,4]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ElementSizeObserver=void 0;class k extends L.Disposable{constructor(w,b){super();this._onDidChange=this._register(new m.Emitter),this.onDidChange=this._onDidChange.event,this._referenceDomElement=w,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,b)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){!this._resizeObserver&&this._referenceDomElement&&(this._resizeObserver=new ResizeObserver(w=>{w&&w[0]&&w[0].contentRect?this.observe({width:w[0].contentRect.width,height:w[0].contentRect.height}):this.observe()}),this._resizeObserver.observe(this._referenceDomElement))}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(w){this.measureReferenceDomElement(!0,w)}measureReferenceDomElement(w,b){let C=0,u=0;b?(C=b.width,u=b.height):this._referenceDomElement&&(C=this._referenceDomElement.clientWidth,u=this._referenceDomElement.clientHeight),C=Math.max(5,C),u=Math.max(5,u),(this._width!==C||this._height!==u)&&(this._width=C,this._height=u,w&&this._onDidChange.fire())}}e.ElementSizeObserver=k}),define(te[400],ie([1,0,217]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.migrateOptions=void 0;function m(k){const I=k.wordWrap;I===!0?k.wordWrap="on":I===!1&&(k.wordWrap="off");const w=k.lineNumbers;w===!0?k.lineNumbers="on":w===!1&&(k.lineNumbers="off"),k.autoClosingBrackets===!1&&(k.autoClosingBrackets="never",k.autoClosingQuotes="never",k.autoSurround="never"),k.cursorBlinking==="visible"&&(k.cursorBlinking="solid");const u=k.renderWhitespace;u===!0?k.renderWhitespace="boundary":u===!1&&(k.renderWhitespace="none");const g=k.renderLineHighlight;g===!0?k.renderLineHighlight="line":g===!1&&(k.renderLineHighlight="none");const t=k.acceptSuggestionOnEnter;t===!0?k.acceptSuggestionOnEnter="on":t===!1&&(k.acceptSuggestionOnEnter="off");const n=k.tabCompletion;n===!1?k.tabCompletion="off":n===!0&&(k.tabCompletion="onlySnippets");const i=k.suggest;if(i&&typeof i.filteredTypes=="object"&&i.filteredTypes){const l={};l.method="showMethods",l.function="showFunctions",l.constructor="showConstructors",l.deprecated="showDeprecated",l.field="showFields",l.variable="showVariables",l.class="showClasses",l.struct="showStructs",l.interface="showInterfaces",l.module="showModules",l.property="showProperties",l.event="showEvents",l.operator="showOperators",l.unit="showUnits",l.value="showValues",l.constant="showConstants",l.enum="showEnums",l.enumMember="showEnumMembers",l.keyword="showKeywords",l.text="showWords",l.color="showColors",l.file="showFiles",l.reference="showReferences",l.folder="showFolders",l.typeParameter="showTypeParameters",l.snippet="showSnippets",(0,L.forEach)(l,h=>{const f=i.filteredTypes[h.key];f===!1&&(i[h.value]=f)})}const o=k.hover;o===!0?k.hover={enabled:!0}:o===!1&&(k.hover={enabled:!1});const c=k.parameterHints;c===!0?k.parameterHints={enabled:!0}:c===!1&&(k.parameterHints={enabled:!1});const d=k.autoIndent;d===!0?k.autoIndent="full":d===!1&&(k.autoIndent="advanced");const r=k.matchBrackets;r===!0?k.matchBrackets="always":r===!1&&(k.matchBrackets="never");const{renderIndentGuides:s,highlightActiveIndentGuide:a}=k;k.guides||(k.guides={}),s!==void 0&&(k.guides.indentation=!!s),a!==void 0&&(k.guides.highlightActiveIndentation=!!a)}e.migrateOptions=m}),define(te[234],ie([1,0,4]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabFocus=void 0;class m{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new L.Emitter,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(I){this._tabFocus!==I&&(this._tabFocus=I,this._onDidChangeTabFocus.fire(this._tabFocus))}}e.TabFocus=new m}),define(te[146],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StableEditorScrollState=void 0;class L{constructor(k,I,w){this._visiblePosition=k,this._visiblePositionScrollDelta=I,this._cursorPosition=w}static capture(k){let I=null,w=0;if(k.getScrollTop()!==0){const b=k.getVisibleRanges();if(b.length>0){I=b[0].getStartPosition();const C=k.getTopForPosition(I.lineNumber,I.column);w=k.getScrollTop()-C}}return new L(I,w,k.getPosition())}restore(k){if(this._visiblePosition){const I=k.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);k.setScrollTop(I+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(k){const I=k.getPosition();if(!this._cursorPosition||!I)return;const w=k.getTopForLineNumber(I.lineNumber)-k.getTopForLineNumber(this._cursorPosition.lineNumber);k.setScrollTop(k.getScrollTop()+w)}}e.StableEditorScrollState=L}),define(te[118],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VisibleRanges=e.HorizontalPosition=e.FloatHorizontalRange=e.HorizontalRange=e.LineVisibleRanges=e.RenderingContext=e.RestrictedRenderingContext=void 0;class L{constructor(g,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=g,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const n=this._viewLayout.getCurrentViewport();this.scrollTop=n.top,this.scrollLeft=n.left,this.viewportWidth=n.width,this.viewportHeight=n.height}getScrolledTopFromAbsoluteTop(g){return g-this.scrollTop}getVerticalOffsetForLineNumber(g){return this._viewLayout.getVerticalOffsetForLineNumber(g)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}e.RestrictedRenderingContext=L;class m extends L{constructor(g,t,n){super(g,t);this._renderingContextBrand=void 0,this._viewLines=n}linesVisibleRangesForRange(g,t){return this._viewLines.linesVisibleRangesForRange(g,t)}visibleRangeForPosition(g){return this._viewLines.visibleRangeForPosition(g)}}e.RenderingContext=m;class k{constructor(g,t,n){this.outsideRenderedLine=g,this.lineNumber=t,this.ranges=n}}e.LineVisibleRanges=k;class I{constructor(g,t){this._horizontalRangeBrand=void 0,this.left=Math.round(g),this.width=Math.round(t)}static from(g){const t=new Array(g.length);for(let n=0,i=g.length;n=t.left?C.width=Math.max(C.width,t.left+t.width-C.left):(w[b++]=C,C=t)}return w[b++]=C,w}static _createHorizontalRangesFromClientRects(I,w,b){if(!I||I.length===0)return null;const C=[];for(let u=0,g=I.length;uo)return null;if(w=Math.min(o,Math.max(i,w)),C=Math.min(o,Math.max(i,C)),w===C&&b===u&&b===0&&!I.children[w].firstChild){const s=I.children[w].getClientRects();return this._createHorizontalRangesFromClientRects(s,g,t)}w!==C&&C>0&&u===0&&(C--,u=1073741824);let c=I.children[w].firstChild,d=I.children[C].firstChild;if((!c||!d)&&(!c&&b===0&&w>0&&(c=I.children[w-1].firstChild,b=1073741824),!d&&u===0&&C>0&&(d=I.children[C-1].firstChild,u=1073741824)),!c||!d)return null;b=Math.min(c.textContent.length,Math.max(0,b)),u=Math.min(d.textContent.length,Math.max(0,u));const r=this._readClientRects(c,b,d,u,n);return this._createHorizontalRangesFromClientRects(r,g,t)}}e.RangeUtil=m}),define(te[236],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCharIndex=e.allCharCodes=void 0,e.allCharCodes=(()=>{const m=[];for(let k=32;k<=126;k++)m.push(k);return m.push(65533),m})();const L=(m,k)=>(m-=32,m<0||m>96?k<=2?(m+96)%96:96-1:m);e.getCharIndex=L}),define(te[402],ie([1,0,236,142]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapCharRenderer=void 0;class k{constructor(w,b){this.scale=b,this._minimapCharRendererBrand=void 0,this.charDataNormal=k.soften(w,12/15),this.charDataLight=k.soften(w,50/60)}static soften(w,b){const C=new Uint8ClampedArray(w.length);for(let u=0,g=w.length;uw.width||C+a>w.height){console.warn("bad render request outside image data");return}const l=c?this.charDataLight:this.charDataNormal,h=(0,L.getCharIndex)(u,o),f=w.width*4,S=n.r,v=n.g,p=n.b,_=g.r-S,y=g.g-v,E=g.b-p,N=Math.max(t,i),D=w.data;let M=h*r*s,B=C*f+b*4;for(let O=0;Ow.width||C+d>w.height){console.warn("bad render request outside image data");return}const r=w.width*4,s=.5*(g/255),a=t.r,l=t.g,h=t.b,f=u.r-a,S=u.g-l,v=u.b-h,p=a+f*s,_=l+S*s,y=h+v*s,E=Math.max(g,n),N=w.data;let D=C*r+b*4;for(let M=0;M{const w=new Uint8ClampedArray(I.length/2);for(let b=0;b>1]=m[I[b]]<<4|m[I[b+1]]&15;return w};e.prebakedMiniMaps={1:(0,L.once)(()=>k("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:(0,L.once)(()=>k("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))}}),define(te[404],ie([1,0,402,236,403,142]),function(q,e,L,m,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapCharRendererFactory=void 0;class w{static create(C,u){if(this.lastCreated&&C===this.lastCreated.scale&&u===this.lastFontFamily)return this.lastCreated;let g;return k.prebakedMiniMaps[C]?g=new L.MinimapCharRenderer(k.prebakedMiniMaps[C](),C):g=w.createFromSampleData(w.createSampleData(u).data,C),this.lastFontFamily=u,this.lastCreated=g,g}static createSampleData(C){const u=document.createElement("canvas"),g=u.getContext("2d");u.style.height=`${16}px`,u.height=16,u.width=96*10,u.style.width=96*10+"px",g.fillStyle="#ffffff",g.font=`bold ${16}px ${C}`,g.textBaseline="middle";let t=0;for(const n of m.allCharCodes)g.fillText(String.fromCharCode(n),t,16/2),t+=10;return g.getImageData(0,0,96*10,16)}static createFromSampleData(C,u){const g=16*10*4*96;if(C.length!==g)throw new Error("Unexpected source in MinimapCharRenderer");const t=w._downsample(C,u);return new L.MinimapCharRenderer(t,u)}static _downsampleChar(C,u,g,t,n){const i=1*n,o=2*n;let c=t,d=0;for(let r=0;r0){const d=255/c;for(let r=0;r=0&&w<256?this._asciiMap[w]=C:this._map.set(w,C)}get(w){return w>=0&&w<256?this._asciiMap[w]:this._map.get(w)||this._defaultValue}}e.CharacterClassifier=m;class k{constructor(){this._actual=new m(0)}add(w){this._actual.set(w,1)}has(w){return this._actual.get(w)===1}}e.CharacterSet=k}),define(te[70],ie([1,0,8]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorColumns=void 0;class m{static _nextVisibleColumn(I,w,b){return I===9?m.nextRenderTabStop(w,b):L.isFullWidthCharacter(I)||L.isEmojiImprecise(I)?w+2:w+1}static visibleColumnFromColumn(I,w,b){const C=Math.min(w-1,I.length),u=I.substring(0,C),g=new L.GraphemeIterator(u);let t=0;for(;!g.eol();){const n=L.getNextCodePoint(u,C,g.offset);g.nextGraphemeLength(),t=this._nextVisibleColumn(n,t,b)}return t}static columnFromVisibleColumn(I,w,b){if(w<=0)return 1;const C=I.length,u=new L.GraphemeIterator(I);let g=0,t=1;for(;!u.eol();){const n=L.getNextCodePoint(I,C,u.offset);u.nextGraphemeLength();const i=this._nextVisibleColumn(n,g,b),o=u.offset+1;if(i>=w){const c=w-g;return i-wb||I===b&&w>C?(this.startLineNumber=b,this.startColumn=C,this.endLineNumber=I,this.endColumn=w):(this.startLineNumber=I,this.startColumn=w,this.endLineNumber=b,this.endColumn=C)}isEmpty(){return m.isEmpty(this)}static isEmpty(I){return I.startLineNumber===I.endLineNumber&&I.startColumn===I.endColumn}containsPosition(I){return m.containsPosition(this,I)}static containsPosition(I,w){return!(w.lineNumberI.endLineNumber||w.lineNumber===I.startLineNumber&&w.columnI.endColumn)}static strictContainsPosition(I,w){return!(w.lineNumberI.endLineNumber||w.lineNumber===I.startLineNumber&&w.column<=I.startColumn||w.lineNumber===I.endLineNumber&&w.column>=I.endColumn)}containsRange(I){return m.containsRange(this,I)}static containsRange(I,w){return!(w.startLineNumberI.endLineNumber||w.endLineNumber>I.endLineNumber||w.startLineNumber===I.startLineNumber&&w.startColumnI.endColumn)}strictContainsRange(I){return m.strictContainsRange(this,I)}static strictContainsRange(I,w){return!(w.startLineNumberI.endLineNumber||w.endLineNumber>I.endLineNumber||w.startLineNumber===I.startLineNumber&&w.startColumn<=I.startColumn||w.endLineNumber===I.endLineNumber&&w.endColumn>=I.endColumn)}plusRange(I){return m.plusRange(this,I)}static plusRange(I,w){let b,C,u,g;return w.startLineNumberI.endLineNumber?(u=w.endLineNumber,g=w.endColumn):w.endLineNumber===I.endLineNumber?(u=w.endLineNumber,g=Math.max(w.endColumn,I.endColumn)):(u=I.endLineNumber,g=I.endColumn),new m(b,C,u,g)}intersectRanges(I){return m.intersectRanges(this,I)}static intersectRanges(I,w){let b=I.startLineNumber,C=I.startColumn,u=I.endLineNumber,g=I.endColumn,t=w.startLineNumber,n=w.startColumn,i=w.endLineNumber,o=w.endColumn;return bi?(u=i,g=o):u===i&&(g=Math.min(g,o)),b>u||b===u&&C>g?null:new m(b,C,u,g)}equalsRange(I){return m.equalsRange(this,I)}static equalsRange(I,w){return!!I&&!!w&&I.startLineNumber===w.startLineNumber&&I.startColumn===w.startColumn&&I.endLineNumber===w.endLineNumber&&I.endColumn===w.endColumn}getEndPosition(){return m.getEndPosition(this)}static getEndPosition(I){return new L.Position(I.endLineNumber,I.endColumn)}getStartPosition(){return m.getStartPosition(this)}static getStartPosition(I){return new L.Position(I.startLineNumber,I.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(I,w){return new m(this.startLineNumber,this.startColumn,I,w)}setStartPosition(I,w){return new m(I,w,this.endLineNumber,this.endColumn)}collapseToStart(){return m.collapseToStart(this)}static collapseToStart(I){return new m(I.startLineNumber,I.startColumn,I.startLineNumber,I.startColumn)}static fromPositions(I,w=I){return new m(I.lineNumber,I.column,w.lineNumber,w.column)}static lift(I){return I?new m(I.startLineNumber,I.startColumn,I.endLineNumber,I.endColumn):null}static isIRange(I){return I&&typeof I.startLineNumber=="number"&&typeof I.startColumn=="number"&&typeof I.endLineNumber=="number"&&typeof I.endColumn=="number"}static areIntersectingOrTouching(I,w){return!(I.endLineNumberI.startLineNumber}toJSON(){return this}}e.Range=m}),define(te[237],ie([1,0,8,11,3]),function(q,e,L,m,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PagedScreenReaderStrategy=e.TextAreaState=e._debugComposition=void 0,e._debugComposition=!1;class I{constructor(C,u,g,t,n){this.value=C,this.selectionStart=u,this.selectionEnd=g,this.selectionStartPosition=t,this.selectionEndPosition=n}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(C){return new I(C.getValue(),C.getSelectionStart(),C.getSelectionEnd(),null,null)}collapseSelection(){return new I(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(C,u,g){e._debugComposition&&console.log(`writeToTextArea ${C}: ${this.toString()}`),u.setValue(C,this.value),g&&u.setSelectionRange(C,this.selectionStart,this.selectionEnd)}deduceEditorPosition(C){if(C<=this.selectionStart){const t=this.value.substring(C,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(C>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,C);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}const u=this.value.substring(this.selectionStart,C);if(u.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,u,1);const g=this.value.substring(C,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,g,-1)}_finishDeduceEditorPosition(C,u,g){let t=0,n=-1;for(;(n=u.indexOf(`
+`,n+1))!==-1;)t++;return[C,g*u.length,t]}static deduceInput(C,u,g){if(!C)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};e._debugComposition&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${C.toString()}`),console.log(`CURRENT STATE: ${u.toString()}`));const t=Math.min(L.commonPrefixLength(C.value,u.value),C.selectionStart,u.selectionStart),n=Math.min(L.commonSuffixLength(C.value,u.value),C.value.length-C.selectionEnd,u.value.length-u.selectionEnd),i=C.value.substring(t,C.value.length-n),o=u.value.substring(t,u.value.length-n),c=C.selectionStart-t,d=C.selectionEnd-t,r=u.selectionStart-t,s=u.selectionEnd-t;if(e._debugComposition&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${i}>, selectionStart: ${c}, selectionEnd: ${d}`),console.log(`AFTER DIFFING CURRENT STATE: <${o}>, selectionStart: ${r}, selectionEnd: ${s}`)),r===s){const l=C.selectionStart-t;return e._debugComposition&&console.log(`REMOVE PREVIOUS: ${l} chars`),{text:o,replacePrevCharCnt:l,replaceNextCharCnt:0,positionDelta:0}}const a=d-c;return{text:o,replacePrevCharCnt:a,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(C,u){if(!C)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(e._debugComposition&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${C.toString()}`),console.log(`CURRENT STATE: ${u.toString()}`)),C.value===u.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:u.selectionEnd-C.selectionEnd};const g=Math.min(L.commonPrefixLength(C.value,u.value),C.selectionEnd),t=Math.min(L.commonSuffixLength(C.value,u.value),C.value.length-C.selectionEnd),n=C.value.substring(g,C.value.length-t),i=u.value.substring(g,u.value.length-t),o=C.selectionStart-g,c=C.selectionEnd-g,d=u.selectionStart-g,r=u.selectionEnd-g;return e._debugComposition&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${n}>, selectionStart: ${o}, selectionEnd: ${c}`),console.log(`AFTER DIFFING CURRENT STATE: <${i}>, selectionStart: ${d}, selectionEnd: ${r}`)),{text:i,replacePrevCharCnt:c,replaceNextCharCnt:n.length-c,positionDelta:r-i.length}}}e.TextAreaState=I,I.EMPTY=new I("",0,0,null,null);class w{static _getPageOfLine(C,u){return Math.floor((C-1)/u)}static _getRangeForPage(C,u){const g=C*u,t=g+1,n=g+u;return new k.Range(t,1,n+1,1)}static fromEditorSelection(C,u,g,t,n){const i=w._getPageOfLine(g.startLineNumber,t),o=w._getRangeForPage(i,t),c=w._getPageOfLine(g.endLineNumber,t),d=w._getRangeForPage(c,t),r=o.intersectRanges(new k.Range(1,1,g.startLineNumber,g.startColumn));let s=u.getValueInRange(r,1);const a=u.getLineCount(),l=u.getLineMaxColumn(a),h=d.intersectRanges(new k.Range(g.endLineNumber,g.endColumn,a,l));let f=u.getValueInRange(h,1),S;if(i===c||i+1===c)S=u.getValueInRange(g,1);else{const v=o.intersectRanges(g),p=d.intersectRanges(g);S=u.getValueInRange(v,1)+String.fromCharCode(8230)+u.getValueInRange(p,1)}if(n){const v=500;s.length>v&&(s=s.substring(s.length-v,s.length)),f.length>v&&(f=f.substring(0,v)),S.length>2*v&&(S=S.substring(0,v)+String.fromCharCode(8230)+S.substring(S.length-v,S.length))}return new I(s+S+f,s.length,s.length+S.length,new m.Position(g.startLineNumber,g.startColumn),new m.Position(g.endLineNumber,g.endColumn))}}e.PagedScreenReaderStrategy=w}),define(te[238],ie([1,0,216,4,2,40,3]),function(q,e,L,m,k,I,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiffNavigator=void 0;const b={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class C extends k.Disposable{constructor(g,t={}){super();this._onDidUpdate=this._register(new m.Emitter),this._editor=g,this._options=I.mixin(t,b,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(n=>{this.ignoreSelectionChange||(this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(n=>{this.revealFirst=!0})),this._init()}_init(){!!this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(g){this.ranges=[],g&&g.forEach(t=>{!this._options.ignoreCharChanges&&t.charChanges?t.charChanges.forEach(n=>{this.ranges.push({rhs:!0,range:new w.Range(n.modifiedStartLineNumber,n.modifiedStartColumn,n.modifiedEndLineNumber,n.modifiedEndColumn)})}):t.modifiedEndLineNumber===0?this.ranges.push({rhs:!0,range:new w.Range(t.modifiedStartLineNumber,1,t.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new w.Range(t.modifiedStartLineNumber,1,t.modifiedEndLineNumber+1,1)})}),this.ranges.sort((t,n)=>w.Range.compareRangesUsingStarts(t.range,n.range)),this._onDidUpdate.fire(this)}_initIdx(g){let t=!1;const n=this._editor.getPosition();if(!n){this.nextIdx=0;return}for(let i=0,o=this.ranges.length;i=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));const n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{const i=n.range.getStartPosition();this._editor.setPosition(i),this._editor.revealRangeInCenter(n.range,t)}finally{this.ignoreSelectionChange=!1}}canNavigate(){return this.ranges&&this.ranges.length>0}next(g=0){this._move(!0,g)}previous(g=0){this._move(!1,g)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}e.DiffNavigator=C}),define(te[63],ie([1,0,3]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditOperation=void 0;class m{static insert(I,w){return{range:new L.Range(I.lineNumber,I.column,I.lineNumber,I.column),text:w,forceMoveMarkers:!0}}static delete(I){return{range:I,text:null}}static replace(I,w){return{range:I,text:w}}static replaceMove(I,w){return{range:I,text:w,forceMoveMarkers:!0}}}e.EditOperation=m}),define(te[405],ie([1,0,8,63,3]),function(q,e,L,m,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.trimTrailingWhitespace=e.TrimTrailingWhitespaceCommand=void 0;class I{constructor(C,u){this._selection=C,this._cursors=u,this._selectionId=null}getEditOperations(C,u){const g=w(C,this._cursors);for(let t=0,n=g.length;ti.lineNumber===o.lineNumber?i.column-o.column:i.lineNumber-o.lineNumber);for(let i=C.length-2;i>=0;i--)C[i].lineNumber===C[i+1].lineNumber&&C.splice(i,1);const u=[];let g=0,t=0;const n=C.length;for(let i=1,o=b.getLineCount();i<=o;i++){const c=b.getLineContent(i),d=c.length+1;let r=0;if(t255?255:k|0}}e.RGBA8=L,L.Empty=new L(0,0,0,0)}),define(te[22],ie([1,0,11,3]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;class k extends m.Range{constructor(w,b,C,u){super(w,b,C,u);this.selectionStartLineNumber=w,this.selectionStartColumn=b,this.positionLineNumber=C,this.positionColumn=u}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(w){return k.selectionsEqual(this,w)}static selectionsEqual(w,b){return w.selectionStartLineNumber===b.selectionStartLineNumber&&w.selectionStartColumn===b.selectionStartColumn&&w.positionLineNumber===b.positionLineNumber&&w.positionColumn===b.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(w,b){return this.getDirection()===0?new k(this.startLineNumber,this.startColumn,w,b):new k(w,b,this.startLineNumber,this.startColumn)}getPosition(){return new L.Position(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new L.Position(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(w,b){return this.getDirection()===0?new k(w,b,this.endLineNumber,this.endColumn):new k(this.endLineNumber,this.endColumn,w,b)}static fromPositions(w,b=w){return new k(w.lineNumber,w.column,b.lineNumber,b.column)}static fromRange(w,b){return b===0?new k(w.startLineNumber,w.startColumn,w.endLineNumber,w.endColumn):new k(w.endLineNumber,w.endColumn,w.startLineNumber,w.startColumn)}static liftSelection(w){return new k(w.selectionStartLineNumber,w.selectionStartColumn,w.positionLineNumber,w.positionColumn)}static selectionsArrEqual(w,b){if(w&&!b||!w&&b)return!1;if(!w&&!b)return!0;if(w.length!==b.length)return!1;for(let C=0,u=w.length;Cthis._onCut.fire(),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new I.RunOnceScheduler(()=>this.writeScreenReaderContent("asyncFocusGain"),0)),this._textAreaState=g.TextAreaState.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._currentComposition=null;let S=null;this._register(this._textArea.onKeyDown(v=>{const p=new k.StandardKeyboardEvent(v);(p.keyCode===109||this._currentComposition&&p.keyCode===1)&&p.stopPropagation(),p.equals(9)&&p.preventDefault(),S=p,this._onKeyDown.fire(p)})),this._register(this._textArea.onKeyUp(v=>{const p=new k.StandardKeyboardEvent(v);this._onKeyUp.fire(p)})),this._register(this._textArea.onCompositionStart(v=>{g._debugComposition&&console.log("[compositionstart]",v);const p=new o;if(this._currentComposition){this._currentComposition=p;return}if(this._currentComposition=p,this._OS===2&&S&&S.equals(109)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===v.data&&(S.code==="ArrowRight"||S.code==="ArrowLeft")){g._debugComposition&&console.log("[compositionstart] Handling long press case on macOS + arrow key",v),p.handleCompositionUpdate("x"),this._onCompositionStart.fire({data:v.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:v.data});return}this._onCompositionStart.fire({data:v.data})})),this._register(this._textArea.onCompositionUpdate(v=>{g._debugComposition&&console.log("[compositionupdate]",v);const p=this._currentComposition;if(!p)return;if(this._browser.isAndroid){const y=g.TextAreaState.readFromTextArea(this._textArea),E=g.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,y);this._textAreaState=y,this._onType.fire(E),this._onCompositionUpdate.fire(v);return}const _=p.handleCompositionUpdate(v.data);this._textAreaState=g.TextAreaState.readFromTextArea(this._textArea),this._onType.fire(_),this._onCompositionUpdate.fire(v)})),this._register(this._textArea.onCompositionEnd(v=>{g._debugComposition&&console.log("[compositionend]",v);const p=this._currentComposition;if(!p)return;if(this._currentComposition=null,this._browser.isAndroid){const y=g.TextAreaState.readFromTextArea(this._textArea),E=g.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,y);this._textAreaState=y,this._onType.fire(E),this._onCompositionEnd.fire();return}const _=p.handleCompositionUpdate(v.data);this._textAreaState=g.TextAreaState.readFromTextArea(this._textArea),this._onType.fire(_),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(v=>{if(g._debugComposition&&console.log("[input]",v),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const p=g.TextAreaState.readFromTextArea(this._textArea),_=g.TextAreaState.deduceInput(this._textAreaState,p,this._OS===2);_.replacePrevCharCnt===0&&_.text.length===1&&u.isHighSurrogate(_.text.charCodeAt(0))||(this._textAreaState=p,(_.text!==""||_.replacePrevCharCnt!==0||_.replaceNextCharCnt!==0||_.positionDelta!==0)&&this._onType.fire(_))})),this._register(this._textArea.onCut(v=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(v),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(v=>{this._ensureClipboardGetsEditorSelection(v)})),this._register(this._textArea.onPaste(v=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),v.preventDefault(),!v.clipboardData)return;let[p,_]=d.getTextData(v.clipboardData);!p||(_=_||i.INSTANCE.get(p),this._onPaste.fire({text:p,metadata:_}))})),this._register(this._textArea.onFocus(()=>{const v=this._hasFocus;this._setHasFocus(!0),this._browser.isSafari&&!v&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let a=0;return m.addDisposableListener(document,"selectionchange",l=>{if(!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const h=Date.now(),f=h-a;if(a=h,f<5)return;const S=h-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),S<100||!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;const v=this._textArea.getValue();if(this._textAreaState.value!==v)return;const p=this._textArea.getSelectionStart(),_=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===p&&this._textAreaState.selectionEnd===_)return;const y=this._textAreaState.deduceEditorPosition(p),E=this._host.deduceModelPosition(y[0],y[1],y[2]),N=this._textAreaState.deduceEditorPosition(_),D=this._host.deduceModelPosition(N[0],N[1],N[2]),M=new t.Selection(E.lineNumber,E.column,D.lineNumber,D.column);this._onSelectionChangeRequest.fire(M)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(a){this._hasFocus!==a&&(this._hasFocus=a,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(a,l){this._hasFocus||(l=l.collapseSelection()),l.writeToTextArea(a,this._textArea,this._hasFocus),this._textAreaState=l}writeScreenReaderContent(a){this._currentComposition||this._setAndWriteTextAreaState(a,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(a){const l=this._host.getDataToCopy(),h={version:1,isFromEmptySelection:l.isFromEmptySelection,multicursorText:l.multicursorText,mode:l.mode};i.INSTANCE.set(this._browser.isFirefox?l.text.replace(/\r\n/g,`
+`):l.text,h),a.preventDefault(),a.clipboardData&&d.setTextData(a.clipboardData,l.text,l.html,h)}}e.TextAreaInput=c;class d{static getTextData(a){const l=a.getData(C.Mimes.text);let h=null;const f=a.getData("vscode-editor-data");if(typeof f=="string")try{h=JSON.parse(f),h.version!==1&&(h=null)}catch{}return[l,h]}static setTextData(a,l,h,f){a.setData(C.Mimes.text,l),typeof h=="string"&&a.setData("text/html",h),a.setData("vscode-editor-data",JSON.stringify(f))}}class r extends b.Disposable{constructor(a){super();this._actual=a,this.onKeyDown=this._register(m.createEventEmitter(this._actual,"keydown")).event,this.onKeyUp=this._register(m.createEventEmitter(this._actual,"keyup")).event,this.onCompositionStart=this._register(m.createEventEmitter(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(m.createEventEmitter(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(m.createEventEmitter(this._actual,"compositionend")).event,this.onInput=this._register(m.createEventEmitter(this._actual,"input")).event,this.onCut=this._register(m.createEventEmitter(this._actual,"cut")).event,this.onCopy=this._register(m.createEventEmitter(this._actual,"copy")).event,this.onPaste=this._register(m.createEventEmitter(this._actual,"paste")).event,this.onFocus=this._register(m.createEventEmitter(this._actual,"focus")).event,this.onBlur=this._register(m.createEventEmitter(this._actual,"blur")).event,this._onSyntheticTap=this._register(new w.Emitter),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(m.addDisposableListener(this._actual,n.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){const a=m.getShadowRoot(this._actual);return a?a.activeElement===this._actual:m.isInDOM(this._actual)?document.activeElement===this._actual:!1}setIgnoreSelectionChangeTime(a){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(a,l){const h=this._actual;h.value!==l&&(this.setIgnoreSelectionChangeTime("setValue"),h.value=l)}getSelectionStart(){return this._actual.selectionDirection==="backward"?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return this._actual.selectionDirection==="backward"?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(a,l,h){const f=this._actual;let S=null;const v=m.getShadowRoot(f);v?S=v.activeElement:S=document.activeElement;const p=S===f,_=f.selectionStart,y=f.selectionEnd;if(p&&_===l&&y===h){L.isFirefox&&window.parent!==window&&f.focus();return}if(p){this.setIgnoreSelectionChangeTime("setSelectionRange"),f.setSelectionRange(l,h),L.isFirefox&&window.parent!==window&&f.focus();return}try{const E=m.saveParentsScrollTop(f);this.setIgnoreSelectionChangeTime("setSelectionRange"),f.focus(),f.setSelectionRange(l,h),m.restoreParentsScrollTop(f,E)}catch{}}}e.TextAreaWrapper=r}),define(te[100],ie([1,0,22]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReplaceCommandThatPreservesSelection=e.ReplaceCommandWithOffsetCursorState=e.ReplaceCommandWithoutChangingPosition=e.ReplaceCommandThatSelectsText=e.ReplaceCommand=void 0;class m{constructor(u,g,t=!1){this._range=u,this._text=g,this.insertsAutoWhitespace=t}getEditOperations(u,g){g.addTrackedEditOperation(this._range,this._text)}computeCursorState(u,g){const n=g.getInverseEditOperations()[0].range;return L.Selection.fromPositions(n.getEndPosition())}}e.ReplaceCommand=m;class k{constructor(u,g){this._range=u,this._text=g}getEditOperations(u,g){g.addTrackedEditOperation(this._range,this._text)}computeCursorState(u,g){const n=g.getInverseEditOperations()[0].range;return L.Selection.fromRange(n,0)}}e.ReplaceCommandThatSelectsText=k;class I{constructor(u,g,t=!1){this._range=u,this._text=g,this.insertsAutoWhitespace=t}getEditOperations(u,g){g.addTrackedEditOperation(this._range,this._text)}computeCursorState(u,g){const n=g.getInverseEditOperations()[0].range;return L.Selection.fromPositions(n.getStartPosition())}}e.ReplaceCommandWithoutChangingPosition=I;class w{constructor(u,g,t,n,i=!1){this._range=u,this._text=g,this._columnDeltaOffset=n,this._lineNumberDeltaOffset=t,this.insertsAutoWhitespace=i}getEditOperations(u,g){g.addTrackedEditOperation(this._range,this._text)}computeCursorState(u,g){const n=g.getInverseEditOperations()[0].range;return L.Selection.fromPositions(n.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}e.ReplaceCommandWithOffsetCursorState=w;class b{constructor(u,g,t,n=!1){this._range=u,this._text=g,this._initialSelection=t,this._forceMoveMarkers=n,this._selectionId=null}getEditOperations(u,g){g.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=g.trackSelection(this._initialSelection)}computeCursorState(u,g){return g.getTrackedSelection(this._selectionId)}}e.ReplaceCommandThatPreservesSelection=b}),define(te[406],ie([1,0,3,22]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SurroundSelectionCommand=void 0;class k{constructor(w,b,C){this._range=w,this._charBeforeSelection=b,this._charAfterSelection=C}getEditOperations(w,b){b.addTrackedEditOperation(new L.Range(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),b.addTrackedEditOperation(new L.Range(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(w,b){const C=b.getInverseEditOperations(),u=C[0].range,g=C[1].range;return new m.Selection(u.endLineNumber,u.endColumn,g.endLineNumber,g.endColumn-this._charAfterSelection.length)}}e.SurroundSelectionCommand=k}),define(te[93],ie([1,0,8,16,112]),function(q,e,L,m,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeUTF16LE=e.createStringBuilder=e.hasTextDecoder=e.getPlatformTextDecoder=void 0;let I;function w(){return I||(I=new TextDecoder("UTF-16LE")),I}let b;function C(){return b||(b=new TextDecoder("UTF-16BE")),b}let u;function g(){return u||(u=m.isLittleEndian()?w():C()),u}e.getPlatformTextDecoder=g,e.hasTextDecoder=typeof TextDecoder!="undefined",e.hasTextDecoder?(e.createStringBuilder=c=>new i(c),e.decodeUTF16LE=t):(e.createStringBuilder=c=>new o,e.decodeUTF16LE=n);function t(c,d,r){const s=new Uint16Array(c.buffer,d,r);return r>0&&(s[0]===65279||s[0]===65534)?n(c,d,r):w().decode(s)}function n(c,d,r){const s=[];let a=0;for(let l=0;l=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=d;return}for(let s=0;s=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[g]}onLinesDeleted(u,g){if(this.getCount()===0)return null;const t=this.getStartLineNumber(),n=this.getEndLineNumber();if(gn)return null;let i=0,o=0;for(let d=t;d<=n;d++){const r=d-this._rendLineNumberStart;u<=d&&d<=g&&(o===0?(i=r,o=1):o++)}if(u=t&&o<=n&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),i=!0);return i}onLinesInserted(u,g){if(this.getCount()===0)return null;const t=g-u+1,n=this.getStartLineNumber(),i=this.getEndLineNumber();if(u<=n)return this._rendLineNumberStart+=t,null;if(u>i)return null;if(t+u>i)return this._lines.splice(u-this._rendLineNumberStart,i-u+1);const o=[];for(let a=0;at)continue;const d=Math.max(g,c.fromLineNumber),r=Math.min(t,c.toLineNumber);for(let s=d;s<=r;s++){const a=s-this._rendLineNumberStart;this._lines[a].onTokensChanged(),n=!0}}return n}}e.RenderedLinesCollection=I;class w{constructor(u){this._host=u,this.domNode=this._createDomNode(),this._linesCollection=new I(()=>this._host.createVisibleLine())}_createDomNode(){const u=(0,L.createFastDomNode)(document.createElement("div"));return u.setClassName("view-layer"),u.setPosition("absolute"),u.domNode.setAttribute("role","presentation"),u.domNode.setAttribute("aria-hidden","true"),u}onConfigurationChanged(u){return!!u.hasChanged(131)}onFlushed(u){return this._linesCollection.flush(),!0}onLinesChanged(u){return this._linesCollection.onLinesChanged(u.fromLineNumber,u.toLineNumber)}onLinesDeleted(u){const g=this._linesCollection.onLinesDeleted(u.fromLineNumber,u.toLineNumber);if(g)for(let t=0,n=g.length;tg){const o=g,c=Math.min(t,i.rendLineNumberStart-1);o<=c&&(this._insertLinesBefore(i,o,c,n,g),i.linesLength+=c-o+1)}else if(i.rendLineNumberStart0&&(this._removeLinesBefore(i,o),i.linesLength-=o)}if(i.rendLineNumberStart=g,i.rendLineNumberStart+i.linesLength-1t){const o=Math.max(0,t-i.rendLineNumberStart+1),d=i.linesLength-1-o+1;d>0&&(this._removeLinesAfter(i,d),i.linesLength-=d)}return this._finishRendering(i,!1,n),i}_renderUntouchedLines(u,g,t,n,i){const o=u.rendLineNumberStart,c=u.lines;for(let d=g;d<=t;d++){const r=o+d;c[d].layoutLine(r,n[r-i])}}_insertLinesBefore(u,g,t,n,i){const o=[];let c=0;for(let d=g;d<=t;d++)o[c++]=this.host.createVisibleLine();u.lines=o.concat(u.lines)}_removeLinesBefore(u,g){for(let t=0;t=0;c--){const d=u.lines[c];n[c]&&(d.setDomNode(o),o=o.previousSibling)}}_finishRenderingInvalidLines(u,g,t){const n=document.createElement("div");b._ttPolicy&&(g=b._ttPolicy.createHTML(g)),n.innerHTML=g;for(let i=0;iC}),b._sb=(0,m.createStringBuilder)(1e5)}),define(te[240],ie([1,0,112,93]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compressConsecutiveTextChanges=e.TextChange=void 0;function k(C){return C.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class I{constructor(u,g,t,n){this.oldPosition=u,this.oldText=g,this.newPosition=t,this.newText=n}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${k(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${k(this.oldText)}")`:`(replace@${this.oldPosition} "${k(this.oldText)}" with "${k(this.newText)}")`}static _writeStringSize(u){return 4+2*u.length}static _writeString(u,g,t){const n=g.length;L.writeUInt32BE(u,n,t),t+=4;for(let i=0;i(w.hasOwnProperty(b)||(w[b]=I(b)),w[b])}e.getMapForWordSeparators=k(I=>new m(I))}),define(te[121],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWordAtText=e.ensureValidWordDefinition=e.DEFAULT_WORD_REGEXP=e.USUAL_WORD_SEPARATORS=void 0,e.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function L(b=""){let C="(-?\\d*\\.\\d\\w*)|([^";for(const u of e.USUAL_WORD_SEPARATORS)b.indexOf(u)>=0||(C+="\\"+u);return C+="\\s]+)",new RegExp(C,"g")}e.DEFAULT_WORD_REGEXP=L();function m(b){let C=e.DEFAULT_WORD_REGEXP;if(b&&b instanceof RegExp)if(b.global)C=b;else{let u="g";b.ignoreCase&&(u+="i"),b.multiline&&(u+="m"),b.unicode&&(u+="u"),C=new RegExp(b.source,u)}return C.lastIndex=0,C}e.ensureValidWordDefinition=m;const k={maxLen:1e3,windowSize:15,timeBudget:150};function I(b,C,u,g,t=k){if(u.length>t.maxLen){let d=b-t.maxLen/2;return d<0?d=0:g+=d,u=u.substring(d,b+t.maxLen/2),I(b,C,u,g,t)}const n=Date.now(),i=b-1-g;let o=-1,c=null;for(let d=1;!(Date.now()-n>=t.timeBudget);d++){const r=i-t.windowSize*d;C.lastIndex=Math.max(0,r);const s=w(C,u,i,o);if(!s&&c||(c=s,r<=0))break;o=r}if(c){const d={word:c[0],startColumn:g+1+c.index,endColumn:g+1+c.index+c[0].length};return C.lastIndex=0,d}return null}e.getWordAtText=I;function w(b,C,u,g){let t;for(;t=b.exec(C);){const n=t.index||0;if(n<=u&&b.lastIndex>=u)return t;if(g>0&&n>g)return null}return null}}),define(te[241],ie([1,0,70]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AtomicTabMoveOperations=void 0;class m{static whitespaceVisibleColumn(I,w,b){const C=I.length;let u=0,g=-1,t=-1;for(let n=0;n0&&r.originalLength<20&&r.modifiedLength>0&&r.modifiedLength<20&&l()){const E=s.createCharSequence(d,r.originalStart,r.originalStart+r.originalLength-1),N=a.createCharSequence(d,r.modifiedStart,r.modifiedStart+r.modifiedLength-1);let D=I(E,N,l,!0).changes;f&&(D=u(D)),y=[];for(let M=0,B=D.length;M1&&D>1;){const M=y.charCodeAt(N-2),B=E.charCodeAt(D-2);if(M!==B)break;N--,D--}(N>1||D>1)&&this._pushTrimWhitespaceCharChange(a,l+1,1,N,h+1,1,D)}{let N=i(y,1),D=i(E,1);const M=y.length+1,B=E.length+1;for(;N!0;const d=Date.now();return()=>Date.now()-dg&&(g=n)}return g}else{if(typeof I=="string")return C?I==="*"?5:I===b?10:0:0;if(I){const{language:g,pattern:t,scheme:n,hasAccessToAllModels:i,notebookType:o}=I;if(!C&&!i)return 0;let c=0;if(n)if(n===w.scheme)c=10;else if(n==="*")c=5;else return 0;if(g)if(g===b)c=10;else if(g==="*")c=Math.max(c,5);else return 0;if(o)if(o===u)c=10;else if(o==="*")c=Math.max(c,5);else return 0;if(t){let d;if(typeof t=="string"?d=t:d=Object.assign(Object.assign({},t),{base:(0,m.normalize)(t.base)}),d===w.fsPath||(0,L.match)(d,w.fsPath))c=10;else return 0}return c}else return 0}}e.score=k}),define(te[122],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoClosingPairs=e.StandardAutoClosingPairConditional=e.IndentAction=void 0;var L;(function(w){w[w.None=0]="None",w[w.Indent=1]="Indent",w[w.IndentOutdent=2]="IndentOutdent",w[w.Outdent=3]="Outdent"})(L=e.IndentAction||(e.IndentAction={}));class m{constructor(b){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=b.open,this.close=b.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(b.notIn))for(let C=0,u=b.notIn.length;Ci&&(i=a),s>o&&(o=s),l>o&&(o=l)}i++,o++;const c=new m(o,i,0);for(let d=0,r=n.length;d=this._maxCharCode?0:this._states.get(n,i)}}e.StateMachine=k;let I=null;function w(){return I===null&&(I=new k([[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]])),I}let b=null;function C(){if(b===null){b=new L.CharacterClassifier(0);const t=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let i=0;ic);if(c>0){const s=i.charCodeAt(c-1),a=i.charCodeAt(r);(s===40&&a===41||s===91&&a===93||s===123&&a===125)&&r--}return{range:{startLineNumber:o,startColumn:c+1,endLineNumber:o,endColumn:r+2},url:i.substring(c,r+1)}}static computeLinks(n,i=w()){const o=C(),c=[];for(let d=1,r=n.getLineCount();d<=r;d++){const s=n.getLineContent(d),a=s.length;let l=0,h=0,f=0,S=1,v=!1,p=!1,_=!1,y=!1;for(;l0&&I.getLanguageId(t-1)===u;)t--;return new m(I,u,t,g+1,I.getStartOffset(t),I.getEndOffset(g))}e.createScopedLineTokens=L;class m{constructor(w,b,C,u,g,t){this._scopedLineTokensBrand=void 0,this._actual=w,this.languageId=b,this._firstTokenIndex=C,this._lastTokenIndex=u,this.firstCharOffset=g,this._lastCharOffset=t}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(w){return this._actual.getLineContent().substring(0,this.firstCharOffset+w)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(w){return this._actual.findTokenIndexAtOffset(w+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(w){return this._actual.getStandardTokenType(w+this._firstTokenIndex)}}e.ScopedLineTokens=m;function k(I){return(I&3)!=0}e.ignoreBracketsInToken=k}),define(te[61],ie([1,0,11,3,22,123,70,177]),function(q,e,L,m,k,I,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isQuote=e.EditOperationResult=e.SingleCursorState=e.PartialViewCursorState=e.PartialModelCursorState=e.CursorState=e.CursorConfiguration=void 0;const C=()=>!0,u=()=>!1,g=s=>s===" "||s===" ";class t{constructor(a,l,h,f){this.languageConfigurationService=f,this._cursorMoveConfigurationBrand=void 0,this._languageId=a;const S=h.options,v=S.get(131);this.readOnly=S.get(81),this.tabSize=l.tabSize,this.indentSize=l.indentSize,this.insertSpaces=l.insertSpaces,this.stickyTabStops=S.get(104),this.lineHeight=S.get(59),this.pageSize=Math.max(1,Math.floor(v.height/this.lineHeight)-2),this.useTabStops=S.get(116),this.wordSeparators=S.get(117),this.emptySelectionClipboard=S.get(32),this.copyWithSyntaxHighlighting=S.get(21),this.multiCursorMergeOverlapping=S.get(69),this.multiCursorPaste=S.get(71),this.autoClosingBrackets=S.get(5),this.autoClosingQuotes=S.get(8),this.autoClosingDelete=S.get(6),this.autoClosingOvertype=S.get(7),this.autoSurround=S.get(11),this.autoIndent=S.get(9),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(a,this.autoClosingQuotes),bracket:this._getShouldAutoClose(a,this.autoClosingBrackets)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(a).getAutoClosingPairs();const p=this.languageConfigurationService.getLanguageConfiguration(a).getSurroundingPairs();if(p)for(const _ of p)this.surroundingPairs[_.open]=_.close}static shouldRecreate(a){return a.hasChanged(131)||a.hasChanged(117)||a.hasChanged(32)||a.hasChanged(69)||a.hasChanged(71)||a.hasChanged(5)||a.hasChanged(8)||a.hasChanged(6)||a.hasChanged(7)||a.hasChanged(11)||a.hasChanged(116)||a.hasChanged(59)||a.hasChanged(81)}get electricChars(){var a;if(!this._electricChars){this._electricChars={};const l=(a=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)===null||a===void 0?void 0:a.getElectricCharacters();if(l)for(const h of l)this._electricChars[h]=!0}return this._electricChars}onElectricCharacter(a,l,h){const f=(0,I.createScopedLineTokens)(l,h-1),S=this.languageConfigurationService.getLanguageConfiguration(f.languageId).electricCharacter;return S?S.onElectricCharacter(a,f,h-f.firstCharOffset):null}normalizeIndentation(a){return(0,b.normalizeIndentation)(a,this.indentSize,this.insertSpaces)}_getShouldAutoClose(a,l){switch(l){case"beforeWhitespace":return g;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(a);case"always":return C;case"never":return u}}_getLanguageDefinedShouldAutoClose(a){const l=this.languageConfigurationService.getLanguageConfiguration(a).getAutoCloseBeforeSet();return h=>l.indexOf(h)!==-1}visibleColumnFromColumn(a,l){return w.CursorColumns.visibleColumnFromColumn(a.getLineContent(l.lineNumber),l.column,this.tabSize)}columnFromVisibleColumn(a,l,h){const f=w.CursorColumns.columnFromVisibleColumn(a.getLineContent(l),h,this.tabSize),S=a.getLineMinColumn(l);if(fv?v:f}}e.CursorConfiguration=t;class n{constructor(a,l){this._cursorStateBrand=void 0,this.modelState=a,this.viewState=l}static fromModelState(a){return new i(a)}static fromViewState(a){return new o(a)}static fromModelSelection(a){const l=k.Selection.liftSelection(a),h=new c(m.Range.fromPositions(l.getSelectionStart()),0,l.getPosition(),0);return n.fromModelState(h)}static fromModelSelections(a){const l=[];for(let h=0,f=a.length;ht,c=g>n,d=gn||Sg||f0&&g--,I.columnSelect(b,C,u.fromViewLineNumber,u.fromViewVisualColumn,u.toViewLineNumber,g)}static columnSelectRight(b,C,u){let g=0;const t=Math.min(u.fromViewLineNumber,u.toViewLineNumber),n=Math.max(u.fromViewLineNumber,u.toViewLineNumber);for(let o=t;o<=n;o++){const c=C.getLineMaxColumn(o),d=b.visibleColumnFromColumn(C,new m.Position(o,c));g=Math.max(g,d)}let i=u.toViewVisualColumn;return it.getLineMinColumn(n.lineNumber))return n.delta(void 0,-w.prevCharLength(t.getLineContent(n.lineNumber),n.column-1));if(n.lineNumber>1){const i=n.lineNumber-1;return new k.Position(i,t.getLineMaxColumn(i))}else return n}static leftPositionAtomicSoftTabs(t,n,i){if(n.column<=t.getLineIndentColumn(n.lineNumber)){const o=t.getLineMinColumn(n.lineNumber),c=t.getLineContent(n.lineNumber),d=b.AtomicTabMoveOperations.atomicPosition(c,n.column-1,i,0);if(d!==-1&&d+1>=o)return new k.Position(n.lineNumber,d+1)}return this.leftPosition(t,n)}static left(t,n,i){const o=t.stickyTabStops?u.leftPositionAtomicSoftTabs(n,i,t.tabSize):u.leftPosition(n,i);return new C(o.lineNumber,o.column,0)}static moveLeft(t,n,i,o,c){let d,r;if(i.hasSelection()&&!o)d=i.selection.startLineNumber,r=i.selection.startColumn;else{const s=i.position.delta(void 0,-(c-1)),a=n.normalizePosition(u.clipPositionColumn(s,n),0),l=u.left(t,n,a);d=l.lineNumber,r=l.column}return i.move(o,d,r,0)}static clipPositionColumn(t,n){return new k.Position(t.lineNumber,u.clipRange(t.column,n.getLineMinColumn(t.lineNumber),n.getLineMaxColumn(t.lineNumber)))}static clipRange(t,n,i){return ti?i:t}static rightPosition(t,n,i){return il?(i=l,r?o=n.getLineMaxColumn(i):o=Math.min(n.getLineMaxColumn(i),o)):o=t.columnFromVisibleColumn(n,i,a),S?c=0:c=a-m.CursorColumns.visibleColumnFromColumn(n.getLineContent(i),o,t.tabSize),s!==void 0){const v=new k.Position(i,o),p=n.normalizePosition(v,s);c=c+(o-p.column),i=p.lineNumber,o=p.column}return new C(i,o,c)}static down(t,n,i,o,c,d,r){return this.vertical(t,n,i,o,c,i+d,r,1)}static moveDown(t,n,i,o,c){let d,r;i.hasSelection()&&!o?(d=i.selection.endLineNumber,r=i.selection.endColumn):(d=i.position.lineNumber,r=i.position.column);const s=u.down(t,n,d,r,i.leftoverVisibleColumns,c,!0);return i.move(o,s.lineNumber,s.column,s.leftoverVisibleColumns)}static translateDown(t,n,i){const o=i.selection,c=u.down(t,n,o.selectionStartLineNumber,o.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),d=u.down(t,n,o.positionLineNumber,o.positionColumn,i.leftoverVisibleColumns,1,!1);return new L.SingleCursorState(new I.Range(c.lineNumber,c.column,c.lineNumber,c.column),c.leftoverVisibleColumns,new k.Position(d.lineNumber,d.column),d.leftoverVisibleColumns)}static up(t,n,i,o,c,d,r){return this.vertical(t,n,i,o,c,i-d,r,0)}static moveUp(t,n,i,o,c){let d,r;i.hasSelection()&&!o?(d=i.selection.startLineNumber,r=i.selection.startColumn):(d=i.position.lineNumber,r=i.position.column);const s=u.up(t,n,d,r,i.leftoverVisibleColumns,c,!0);return i.move(o,s.lineNumber,s.column,s.leftoverVisibleColumns)}static translateUp(t,n,i){const o=i.selection,c=u.up(t,n,o.selectionStartLineNumber,o.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),d=u.up(t,n,o.positionLineNumber,o.positionColumn,i.leftoverVisibleColumns,1,!1);return new L.SingleCursorState(new I.Range(c.lineNumber,c.column,c.lineNumber,c.column),c.leftoverVisibleColumns,new k.Position(d.lineNumber,d.column),d.leftoverVisibleColumns)}static _isBlankLine(t,n){return t.getLineFirstNonWhitespaceColumn(n)===0}static moveToPrevBlankLine(t,n,i,o){let c=i.position.lineNumber;for(;c>1&&this._isBlankLine(n,c);)c--;for(;c>1&&!this._isBlankLine(n,c);)c--;return i.move(o,c,n.getLineMinColumn(c),0)}static moveToNextBlankLine(t,n,i,o){const c=n.getLineCount();let d=i.position.lineNumber;for(;d=f.length+1)return!1;const S=f.charAt(h.column-2),v=o.get(S);if(!v)return!1;if((0,k.isQuote)(S)){if(i==="never")return!1}else if(n==="never")return!1;const p=f.charAt(h.column-1);let _=!1;for(const y of v)y.open===S&&y.close===p&&(_=!0);if(!_)return!1;if(t==="auto"){let y=!1;for(let E=0,N=r.length;E1){const c=n.getLineContent(o.lineNumber),d=L.firstNonWhitespaceIndex(c),r=d===-1?c.length+1:d+1;if(o.column<=r){const s=i.visibleColumnFromColumn(n,o),a=I.CursorColumns.prevIndentTabStop(s,i.indentSize),l=i.columnFromVisibleColumn(n,o.lineNumber,a);return new b.Range(o.lineNumber,l,o.lineNumber,o.column)}}return b.Range.fromPositions(u.getPositionAfterDeleteLeft(o,n),o)}static getPositionAfterDeleteLeft(t,n){if(t.column>1){const i=L.getLeftDeleteOffset(t.column-1,n.getLineContent(t.lineNumber));return t.with(void 0,i+1)}else if(t.lineNumber>1){const i=t.lineNumber-1;return new C.Position(i,n.getLineMaxColumn(i))}else return t}static cut(t,n,i){const o=[];let c=null;i.sort((d,r)=>C.Position.compare(d.getStartPosition(),r.getEndPosition()));for(let d=0,r=i.length;d1&&(c==null?void 0:c.endLineNumber)!==a.lineNumber?(l=a.lineNumber-1,h=n.getLineMaxColumn(a.lineNumber-1),f=a.lineNumber,S=n.getLineMaxColumn(a.lineNumber)):(l=a.lineNumber,h=1,f=a.lineNumber,S=n.getLineMaxColumn(a.lineNumber));const v=new b.Range(l,h,f,S);c=v,v.isEmpty()?o[d]=null:o[d]=new m.ReplaceCommand(v,"")}else o[d]=null;else o[d]=new m.ReplaceCommand(s,"")}return new k.EditOperationResult(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}e.DeleteOperations=u}),define(te[151],ie([1,0,8,61,181,120,11,3]),function(q,e,L,m,k,I,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordPartOperations=e.WordOperations=void 0;class C{static _createWord(n,i,o,c,d){return{start:c,end:d,wordType:i,nextCharClass:o}}static _findPreviousWordOnLine(n,i,o){const c=i.getLineContent(o.lineNumber);return this._doFindPreviousWordOnLine(c,n,o)}static _doFindPreviousWordOnLine(n,i,o){let c=0;for(let d=o.column-2;d>=0;d--){const r=n.charCodeAt(d),s=i.get(r);if(s===0){if(c===2)return this._createWord(n,c,s,d+1,this._findEndOfWord(n,i,c,d+1));c=1}else if(s===2){if(c===1)return this._createWord(n,c,s,d+1,this._findEndOfWord(n,i,c,d+1));c=2}else if(s===1&&c!==0)return this._createWord(n,c,s,d+1,this._findEndOfWord(n,i,c,d+1))}return c!==0?this._createWord(n,c,1,0,this._findEndOfWord(n,i,c,0)):null}static _findEndOfWord(n,i,o,c){const d=n.length;for(let r=c;r=0;d--){const r=n.charCodeAt(d),s=i.get(r);if(s===1||o===1&&s===2||o===2&&s===0)return d+1}return 0}static moveWordLeft(n,i,o,c){let d=o.lineNumber,r=o.column;r===1&&d>1&&(d=d-1,r=i.getLineMaxColumn(d));let s=C._findPreviousWordOnLine(n,i,new w.Position(d,r));if(c===0)return new w.Position(d,s?s.start+1:1);if(c===1)return s&&s.wordType===2&&s.end-s.start==1&&s.nextCharClass===0&&(s=C._findPreviousWordOnLine(n,i,new w.Position(d,s.start+1))),new w.Position(d,s?s.start+1:1);if(c===3){for(;s&&s.wordType===2;)s=C._findPreviousWordOnLine(n,i,new w.Position(d,s.start+1));return new w.Position(d,s?s.start+1:1)}return s&&r<=s.end+1&&(s=C._findPreviousWordOnLine(n,i,new w.Position(d,s.start+1))),new w.Position(d,s?s.end+1:1)}static _moveWordPartLeft(n,i){const o=i.lineNumber,c=n.getLineMaxColumn(o);if(i.column===1)return o>1?new w.Position(o-1,n.getLineMaxColumn(o-1)):i;const d=n.getLineContent(o);for(let r=i.column-1;r>1;r--){const s=d.charCodeAt(r-2),a=d.charCodeAt(r-1);if(s===95&&a!==95)return new w.Position(o,r);if(L.isLowerAsciiLetter(s)&&L.isUpperAsciiLetter(a))return new w.Position(o,r);if(L.isUpperAsciiLetter(s)&&L.isUpperAsciiLetter(a)&&r+1=a.start+1&&(a=C._findNextWordOnLine(n,i,new w.Position(d,a.end+1))),a?r=a.start+1:r=i.getLineMaxColumn(d);return new w.Position(d,r)}static _moveWordPartRight(n,i){const o=i.lineNumber,c=n.getLineMaxColumn(o);if(i.column===c)return o1?l=1:(a--,l=c.getLineMaxColumn(a)):(h&&l<=h.end+1&&(h=C._findPreviousWordOnLine(o,c,new w.Position(a,h.start+1))),h?l=h.end+1:l>1?l=1:(a--,l=c.getLineMaxColumn(a))),new b.Range(a,l,s.lineNumber,s.column)}static deleteInsideWord(n,i,o){if(!o.isEmpty())return o;const c=new w.Position(o.positionLineNumber,o.positionColumn),d=this._deleteInsideWordWhitespace(i,c);return d||this._deleteInsideWordDetermineDeleteRange(n,i,c)}static _charAtIsWhitespace(n,i){const o=n.charCodeAt(i);return o===32||o===9}static _deleteInsideWordWhitespace(n,i){const o=n.getLineContent(i.lineNumber),c=o.length;if(c===0)return null;let d=Math.max(i.column-2,0);if(!this._charAtIsWhitespace(o,d))return null;let r=Math.min(i.column-1,c-1);if(!this._charAtIsWhitespace(o,r))return null;for(;d>0&&this._charAtIsWhitespace(o,d-1);)d--;for(;r+11?new b.Range(o.lineNumber-1,i.getLineMaxColumn(o.lineNumber-1),o.lineNumber,1):o.lineNumberf.start+1<=o.column&&o.column<=f.end+1,s=(f,S)=>(f=Math.min(f,o.column),S=Math.max(S,o.column),new b.Range(o.lineNumber,f,o.lineNumber,S)),a=f=>{let S=f.start+1,v=f.end+1,p=!1;for(;v-11&&this._charAtIsWhitespace(c,S-2);)S--;return s(S,v)},l=C._findPreviousWordOnLine(n,i,o);if(l&&r(l))return a(l);const h=C._findNextWordOnLine(n,i,o);return h&&r(h)?a(h):l&&h?s(l.end+1,h.start+1):l?s(l.start+1,l.end+1):h?s(h.start+1,h.end+1):s(1,d+1)}static _deleteWordPartLeft(n,i){if(!i.isEmpty())return i;const o=i.getPosition(),c=C._moveWordPartLeft(n,o);return new b.Range(o.lineNumber,o.column,c.lineNumber,c.column)}static _findFirstNonWhitespaceChar(n,i){const o=n.length;for(let c=i;c=S.start+1&&(S=C._findNextWordOnLine(o,c,new w.Position(a,S.end+1))),S?l=S.start+1:lBoolean(n))}}),define(te[182],ie([1,0,19,61,180,151,11,3]),function(q,e,L,m,k,I,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorMove=e.CursorMoveCommands=void 0;class C{static addCursorDown(t,n,i){const o=[];let c=0;for(let d=0,r=n.length;da&&(l=a,h=t.model.getLineMaxColumn(l)),m.CursorState.fromModelState(new m.SingleCursorState(new b.Range(d.lineNumber,1,l,h),0,new w.Position(l,h),0))}const s=n.modelState.selectionStart.getStartPosition().lineNumber;if(d.lineNumbers){const a=t.getLineCount();let l=r.lineNumber+1,h=1;return l>a&&(l=a,h=t.getLineMaxColumn(l)),m.CursorState.fromViewState(n.viewState.move(n.modelState.hasSelection(),l,h,0))}else{const a=n.modelState.selectionStart.getEndPosition();return m.CursorState.fromModelState(n.modelState.move(n.modelState.hasSelection(),a.lineNumber,a.column,0))}}static word(t,n,i,o){const c=t.model.validatePosition(o);return m.CursorState.fromModelState(I.WordOperations.word(t.cursorConfig,t.model,n.modelState,i,c))}static cancelSelection(t,n){if(!n.modelState.hasSelection())return new m.CursorState(n.modelState,n.viewState);const i=n.viewState.position.lineNumber,o=n.viewState.position.column;return m.CursorState.fromViewState(new m.SingleCursorState(new b.Range(i,o,i,o),0,new w.Position(i,o),0))}static moveTo(t,n,i,o,c){const d=t.model.validatePosition(o),r=c?t.coordinatesConverter.validateViewPosition(new w.Position(c.lineNumber,c.column),d):t.coordinatesConverter.convertModelPositionToViewPosition(d);return m.CursorState.fromViewState(n.viewState.move(i,r.lineNumber,r.column,0))}static simpleMove(t,n,i,o,c,d){switch(i){case 0:return d===4?this._moveHalfLineLeft(t,n,o):this._moveLeft(t,n,o,c);case 1:return d===4?this._moveHalfLineRight(t,n,o):this._moveRight(t,n,o,c);case 2:return d===2?this._moveUpByViewLines(t,n,o,c):this._moveUpByModelLines(t,n,o,c);case 3:return d===2?this._moveDownByViewLines(t,n,o,c):this._moveDownByModelLines(t,n,o,c);case 4:return d===2?n.map(r=>m.CursorState.fromViewState(k.MoveOperations.moveToPrevBlankLine(t.cursorConfig,t,r.viewState,o))):n.map(r=>m.CursorState.fromModelState(k.MoveOperations.moveToPrevBlankLine(t.cursorConfig,t.model,r.modelState,o)));case 5:return d===2?n.map(r=>m.CursorState.fromViewState(k.MoveOperations.moveToNextBlankLine(t.cursorConfig,t,r.viewState,o))):n.map(r=>m.CursorState.fromModelState(k.MoveOperations.moveToNextBlankLine(t.cursorConfig,t.model,r.modelState,o)));case 6:return this._moveToViewMinColumn(t,n,o);case 7:return this._moveToViewFirstNonWhitespaceColumn(t,n,o);case 8:return this._moveToViewCenterColumn(t,n,o);case 9:return this._moveToViewMaxColumn(t,n,o);case 10:return this._moveToViewLastNonWhitespaceColumn(t,n,o);default:return null}}static viewportMove(t,n,i,o,c){const d=t.getCompletelyVisibleViewRange(),r=t.coordinatesConverter.convertViewRangeToModelRange(d);switch(i){case 11:{const s=this._firstLineNumberInRange(t.model,r,c),a=t.model.getLineFirstNonWhitespaceColumn(s);return[this._moveToModelPosition(t,n[0],o,s,a)]}case 13:{const s=this._lastLineNumberInRange(t.model,r,c),a=t.model.getLineFirstNonWhitespaceColumn(s);return[this._moveToModelPosition(t,n[0],o,s,a)]}case 12:{const s=Math.round((r.startLineNumber+r.endLineNumber)/2),a=t.model.getLineFirstNonWhitespaceColumn(s);return[this._moveToModelPosition(t,n[0],o,s,a)]}case 14:{const s=[];for(let a=0,l=n.length;ai.endLineNumber-1?d=i.endLineNumber-1:cm.CursorState.fromViewState(k.MoveOperations.moveLeft(t.cursorConfig,t,c.viewState,i,o)))}static _moveHalfLineLeft(t,n,i){const o=[];for(let c=0,d=n.length;cm.CursorState.fromViewState(k.MoveOperations.moveRight(t.cursorConfig,t,c.viewState,i,o)))}static _moveHalfLineRight(t,n,i){const o=[];for(let c=0,d=n.length;cg.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(g=>g.asCursorState())}getViewPositions(){return this.cursors.map(g=>g.viewState.position)}getTopMostViewPosition(){return(0,L.findMinBy)(this.cursors,(0,L.compareBy)(g=>g.viewState.position,I.Position.compare)).viewState.position}getBottomMostViewPosition(){return(0,L.findLastMaxBy)(this.cursors,(0,L.compareBy)(g=>g.viewState.position,I.Position.compare)).viewState.position}getSelections(){return this.cursors.map(g=>g.modelState.selection)}getViewSelections(){return this.cursors.map(g=>g.viewState.selection)}setSelections(g){this.setStates(m.CursorState.fromModelSelections(g))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(g){g!==null&&(this.cursors[0].setState(this.context,g[0].modelState,g[0].viewState),this._setSecondaryStates(g.slice(1)))}_setSecondaryStates(g){const t=this.cursors.length-1,n=g.length;if(tn){const i=t-n;for(let o=0;o=g+1&&this.lastAddedCursorIndex--,this.cursors[g+1].dispose(this.context),this.cursors.splice(g+1,1)}normalize(){if(this.cursors.length===1)return;const g=this.cursors.slice(0),t=[];for(let n=0,i=g.length;nn.selection,w.Range.compareRangesUsingStarts));for(let n=0;nl&&v.index--;g.splice(l,1),t.splice(a,1),this._removeSecondaryCursor(l-1),n--}}}}e.CursorCollection=C}),define(te[415],ie([1,0,122]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharacterPairSupport=void 0;class m{constructor(w){if(w.autoClosingPairs?this._autoClosingPairs=w.autoClosingPairs.map(b=>new L.StandardAutoClosingPairConditional(b)):w.brackets?this._autoClosingPairs=w.brackets.map(b=>new L.StandardAutoClosingPairConditional({open:b[0],close:b[1]})):this._autoClosingPairs=[],w.colorizedBracketPairs?this._colorizedBracketPairs=k(w.colorizedBracketPairs.map(b=>[b[0],b[1]])):w.brackets?this._colorizedBracketPairs=k(w.brackets.map(b=>[b[0],b[1]]).filter(b=>!(b[0]==="<"&&b[1]===">"))):this._colorizedBracketPairs=[],w.__electricCharacterSupport&&w.__electricCharacterSupport.docComment){const b=w.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new L.StandardAutoClosingPairConditional({open:b.open,close:b.close||""}))}this._autoCloseBefore=typeof w.autoCloseBefore=="string"?w.autoCloseBefore:m.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=w.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}getSurroundingPairs(){return this._surroundingPairs}getColorizedBrackets(){return this._colorizedBracketPairs}}e.CharacterPairSupport=m,m.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])>
+ `;function k(I){return I.filter(([w,b])=>w!==""&&b!=="")}}),define(te[416],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentRulesSupport=void 0;function L(k){return k.global&&(k.lastIndex=0),!0}class m{constructor(I){this._indentationRules=I}shouldIncrease(I){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&L(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(I))}shouldDecrease(I){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&L(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(I))}shouldIndentNextLine(I){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&L(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(I))}shouldIgnore(I){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&L(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(I))}getIndentMetadata(I){let w=0;return this.shouldIncrease(I)&&(w+=1),this.shouldDecrease(I)&&(w+=2),this.shouldIndentNextLine(I)&&(w+=4),this.shouldIgnore(I)&&(w+=8),w}}e.IndentRulesSupport=m}),define(te[417],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicInplaceReplace=void 0;class L{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(k,I,w,b,C){if(k&&I){const u=this.doNavigateValueSet(I,C);if(u)return{range:k,value:u}}if(w&&b){const u=this.doNavigateValueSet(b,C);if(u)return{range:w,value:u}}return null}doNavigateValueSet(k,I){const w=this.numberReplace(k,I);return w!==null?w:this.textReplace(k,I)}numberReplace(k,I){const w=Math.pow(10,k.length-(k.lastIndexOf(".")+1));let b=Number(k),C=parseFloat(k);return!isNaN(b)&&!isNaN(C)&&b===C?b===0&&!I?null:(b=Math.floor(b*w),b+=I?w:-w,String(b/w)):null}textReplace(k,I){return this.valueSetsReplace(this._defaultValueSet,k,I)}valueSetsReplace(k,I,w){let b=null;for(let C=0,u=k.length;b===null&&C=0?(b+=w?1:-1,b<0?b=k.length-1:b%=k.length,k[b]):null}}e.BasicInplaceReplace=L,L.INSTANCE=new L}),define(te[418],ie([1,0,13,8,122]),function(q,e,L,m,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OnEnterSupport=void 0;class I{constructor(b){b=b||{},b.brackets=b.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],b.brackets.forEach(C=>{const u=I._createOpenBracketRegExp(C[0]),g=I._createCloseBracketRegExp(C[1]);u&&g&&this._brackets.push({open:C[0],openRegExp:u,close:C[1],closeRegExp:g})}),this._regExpRules=b.onEnterRules||[]}onEnter(b,C,u,g){if(b>=3)for(let t=0,n=this._regExpRules.length;tc.reg?(c.reg.lastIndex=0,c.reg.test(c.text)):!0))return i.action}if(b>=2&&u.length>0&&g.length>0)for(let t=0,n=this._brackets.length;t=2&&u.length>0){for(let t=0,n=this._brackets.length;t[p[0].toLowerCase(),p[1].toLowerCase()]);const h=[];for(let p=0;p{const[y,E]=p,[N,D]=_;return y===N||y===D||E===N||E===D},S=(p,_)=>{const y=Math.min(p,_),E=Math.max(p,_);for(let N=0;N0&&v.push({open:_,close:y})}return v}class b{constructor(l,h){this._richEditBracketsBrand=void 0;const f=w(h);this.brackets=f.map((S,v)=>new I(l,v,S.open,S.close,t(S.open,S.close,f,v),n(S.open,S.close,f,v))),this.forwardRegex=i(this.brackets),this.reversedRegex=o(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const S of this.brackets){for(const v of S.open)this.textIsBracket[v]=S,this.textIsOpenBracket[v]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,v.length);for(const v of S.close)this.textIsBracket[v]=S,this.textIsOpenBracket[v]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,v.length)}}}e.RichEditBrackets=b;function C(a,l,h,f){for(let S=0,v=l.length;S=0&&f.push(_);for(const _ of p.close)_.indexOf(a)>=0&&f.push(_)}}function u(a,l){return a.length-l.length}function g(a){if(a.length<=1)return a;const l=[],h=new Set;for(const f of a)h.has(f)||(l.push(f),h.add(f));return l}function t(a,l,h,f){let S=[];S=S.concat(a),S=S.concat(l);for(let v=0,p=S.length;v=0;p--)S[v++]=f.charCodeAt(p);return m.getPlatformTextDecoder().decode(S)}else{const S=[];let v=0;for(let p=f.length-1;p>=0;p--)S[v++]=f.charAt(p);return S.join("")}}let l=null,h=null;return function(S){return l!==S&&(l=S,h=a(l)),h}}();class s{static _findPrevBracketInText(l,h,f,S){const v=f.match(l);if(!v)return null;const p=f.length-(v.index||0),_=v[0].length,y=S+p;return new k.Range(h,y-_+1,h,y+1)}static findPrevBracketInRange(l,h,f,S,v){const _=r(f).substring(f.length-v,f.length-S);return this._findPrevBracketInText(l,h,_,S)}static findNextBracketInText(l,h,f,S){const v=f.match(l);if(!v)return null;const p=v.index||0,_=v[0].length;if(_===0)return null;const y=S+p;return new k.Range(h,y+1,h,y+1+_)}static findNextBracketInRange(l,h,f,S,v){const p=f.substring(S,v);return this.findNextBracketInText(l,h,p,S)}}e.BracketsUtils=s}),define(te[419],ie([1,0,18,123,183]),function(q,e,L,m,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketElectricCharacterSupport=void 0;class I{constructor(b){this._richEditBrackets=b}getElectricCharacters(){const b=[];if(this._richEditBrackets)for(const C of this._richEditBrackets.brackets)for(const u of C.close){const g=u.charAt(u.length-1);b.push(g)}return(0,L.distinct)(b)}onElectricCharacter(b,C,u){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const g=C.findTokenIndexAtOffset(u-1);if((0,m.ignoreBracketsInToken)(C.getStandardTokenType(g)))return null;const t=this._richEditBrackets.reversedRegex,n=C.getLineContent().substring(0,u-1)+b,i=k.BracketsUtils.findPrevBracketInRange(t,1,n,0,n.length);if(!i)return null;const o=n.substring(i.startColumn-1,i.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[o])return null;const d=C.getActualLineContentBefore(i.startColumn-1);return/^\s*$/.test(d)?{matchOpenBracket:o}:null}}e.BracketElectricCharacterSupport=I}),define(te[420],ie([1,0,30]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateTokensCSSForColorMap=e.ThemeTrieElement=e.ThemeTrieElementRule=e.strcmp=e.toStandardTokenType=e.TokenTheme=e.ColorMap=e.parseTokenTheme=e.ParsedTokenThemeRule=void 0;class m{constructor(d,r,s,a,l){this._parsedThemeRuleBrand=void 0,this.token=d,this.index=r,this.fontStyle=s,this.foreground=a,this.background=l}}e.ParsedTokenThemeRule=m;function k(c){if(!c||!Array.isArray(c))return[];const d=[];let r=0;for(let s=0,a=c.length;s{const y=t(p.token,_.token);return y!==0?y:p.index-_.index});let r=0,s="000000",a="ffffff";for(;c.length>=1&&c[0].token==="";){const p=c.shift();p.fontStyle!==-1&&(r=p.fontStyle),p.foreground!==null&&(s=p.foreground),p.background!==null&&(a=p.background)}const l=new b;for(let p of d)l.getId(p);const h=l.getId(s),f=l.getId(a),S=new n(r,h,f),v=new i(S);for(let p=0,_=c.length;p<_;p++){const y=c[p];v.insert(y.token,y.fontStyle,l.getId(y.foreground),l.getId(y.background))}return new C(l,v)}const w=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class b{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(d){if(d===null)return 0;const r=d.match(w);if(!r)throw new Error("Illegal value for token color: "+d);d=r[1].toUpperCase();let s=this._color2id.get(d);return s||(s=++this._lastColorId,this._color2id.set(d,s),this._id2color[s]=L.Color.fromHex("#"+d),s)}getColorMap(){return this._id2color.slice(0)}}e.ColorMap=b;class C{constructor(d,r){this._colorMap=d,this._root=r,this._cache=new Map}static createFromRawTokenTheme(d,r){return this.createFromParsedTokenTheme(k(d),r)}static createFromParsedTokenTheme(d,r){return I(d,r)}getColorMap(){return this._colorMap.getColorMap()}_match(d){return this._root.match(d)}match(d,r){let s=this._cache.get(r);if(typeof s=="undefined"){const a=this._match(r),l=g(r);s=(a.metadata|l<<8)>>>0,this._cache.set(r,s)}return(s|d<<0)>>>0}}e.TokenTheme=C;const u=/\b(comment|string|regex|regexp)\b/;function g(c){const d=c.match(u);if(!d)return 0;switch(d[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}e.toStandardTokenType=g;function t(c,d){return cd?1:0}e.strcmp=t;class n{constructor(d,r,s){this._themeTrieElementRuleBrand=void 0,this._fontStyle=d,this._foreground=r,this._background=s,this.metadata=(this._fontStyle<<10|this._foreground<<14|this._background<<23)>>>0}clone(){return new n(this._fontStyle,this._foreground,this._background)}acceptOverwrite(d,r,s){d!==-1&&(this._fontStyle=d),r!==0&&(this._foreground=r),s!==0&&(this._background=s),this.metadata=(this._fontStyle<<10|this._foreground<<14|this._background<<23)>>>0}}e.ThemeTrieElementRule=n;class i{constructor(d){this._themeTrieElementBrand=void 0,this._mainRule=d,this._children=new Map}match(d){if(d==="")return this._mainRule;const r=d.indexOf(".");let s,a;r===-1?(s=d,a=""):(s=d.substring(0,r),a=d.substring(r+1));const l=this._children.get(s);return typeof l!="undefined"?l.match(a):this._mainRule}insert(d,r,s,a){if(d===""){this._mainRule.acceptOverwrite(r,s,a);return}const l=d.indexOf(".");let h,f;l===-1?(h=d,f=""):(h=d.substring(0,l),f=d.substring(l+1));let S=this._children.get(h);typeof S=="undefined"&&(S=new i(this._mainRule.clone()),this._children.set(h,S)),S.insert(f,r,s,a)}}e.ThemeTrieElement=i;function o(c){const d=[];for(let r=1,s=c.length;r{if(t){const n=this._entries.indexOf(t);n>=0&&(this._entries.splice(n,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),t=void 0)}})}has(u){return this.all(u).length>0}all(u){if(!u)return[];this._updateScores(u);const g=[];for(let t of this._entries)t._score>0&&g.push(t.provider);return g}ordered(u){const g=[];return this._orderedForEach(u,t=>g.push(t.provider)),g}orderedGroups(u){const g=[];let t,n;return this._orderedForEach(u,i=>{t&&n===i._score?t.push(i.provider):(n=i._score,t=[i.provider],g.push(t))}),g}_orderedForEach(u,g){if(!!u){this._updateScores(u);for(const t of this._entries)t._score>0&&g(t)}}_updateScores(u){var g;const t=(g=this._notebookTypeResolver)===null||g===void 0?void 0:g.call(this,u.uri),n={uri:u.uri.toString(),language:u.getLanguageId(),notebookType:t};if(!(this._lastCandidate&&this._lastCandidate.language===n.language&&this._lastCandidate.uri===n.uri&&this._lastCandidate.notebookType===n.notebookType)){this._lastCandidate=n;for(let i of this._entries)if(i._score=(0,I.score)(i.selector,u.uri,u.getLanguageId(),(0,k.shouldSynchronizeModel)(u),t),w(i.selector)&&i._score>0){for(let o of this._entries)o._score=0;i._score=1e3;break}this._entries.sort(b._compareByScoreAndTime)}}static _compareByScoreAndTime(u,g){return u._scoreg._score?-1:u._timeg._time?-1:0}}e.LanguageFeatureRegistry=b}),define(te[85],ie([1,0,8,3]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lengthOfString=e.lengthsToRange=e.positionToLength=e.lengthGreaterThanEqual=e.lengthLessThanEqual=e.lengthLessThan=e.lengthDiffNonNegative=e.lengthAdd=e.lengthGetColumnCountIfZeroLineCount=e.lengthGetLineCount=e.lengthToObj=e.toLength=e.lengthIsZero=e.lengthZero=e.lengthDiff=e.LengthObj=void 0;class k{constructor(h,f){this.lineCount=h,this.columnCount=f}toString(){return`${this.lineCount},${this.columnCount}`}}e.LengthObj=k,k.zero=new k(0,0);function I(l,h,f,S){return l!==f?C(f-l,S):C(0,S-h)}e.lengthDiff=I,e.lengthZero=0;function w(l){return l===0}e.lengthIsZero=w;const b=Math.pow(2,26);function C(l,h){return l*b+h}e.toLength=C;function u(l){const h=l,f=Math.floor(h/b),S=h-f*b;return new k(f,S)}e.lengthToObj=u;function g(l){return Math.floor(l/b)}e.lengthGetLineCount=g;function t(l){return l}e.lengthGetColumnCountIfZeroLineCount=t;function n(l,h){return h=h}e.lengthGreaterThanEqual=d;function r(l){return C(l.lineNumber-1,l.column-1)}e.positionToLength=r;function s(l,h){const f=l,S=Math.floor(f/b),v=f-S*b,p=h,_=Math.floor(p/b),y=p-_*b;return new m.Range(S+1,v+1,_+1,y+1)}e.lengthsToRange=s;function a(l){const h=(0,L.splitLines)(l);return C(h.length-1,h[h.length-1].length)}e.lengthOfString=a}),define(te[243],ie([1,0,85]),function(q,e,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BeforeEditPositionMapper=e.TextEditInfo=void 0;class m{constructor(b,C,u){this.startOffset=b,this.endOffset=C,this.newLength=u}}e.TextEditInfo=m;class k{constructor(b,C){this.documentLength=C,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=b.map(u=>I.from(u))}getOffsetBeforeChange(b){return this.adjustNextEdit(b),this.translateCurToOld(b)}getDistanceToNextChange(b){this.adjustNextEdit(b);const C=this.edits[this.nextEditIdx],u=C?this.translateOldToCur(C.offsetObj):this.documentLength;return(0,L.lengthDiffNonNegative)(b,u)}translateOldToCur(b){return b.lineCount===this.deltaLineIdxInOld?(0,L.toLength)(b.lineCount+this.deltaOldToNewLineCount,b.columnCount+this.deltaOldToNewColumnCount):(0,L.toLength)(b.lineCount+this.deltaOldToNewLineCount,b.columnCount)}translateCurToOld(b){const C=(0,L.lengthToObj)(b);return C.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,L.toLength)(C.lineCount-this.deltaOldToNewLineCount,C.columnCount-this.deltaOldToNewColumnCount):(0,L.toLength)(C.lineCount-this.deltaOldToNewLineCount,C.columnCount)}adjustNextEdit(b){for(;this.nextEditIdx=w.childrenLength)return-1;if(w.getChild(b))return b}}function I(w){return w.length>0?w[w.length-1]:void 0}}),define(te[101],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DenseKeyProvider=e.identityKeyProvider=e.SmallImmutableSet=void 0;const L=new Array;class m{constructor(w,b){this.items=w,this.additionalItems=b}static create(w,b){if(w<=128&&b.length===0){let C=m.cache[w];return C||(C=new m(w,b),m.cache[w]=C),C}return new m(w,b)}static getEmpty(){return this.empty}add(w,b){const C=b.getKey(w);let u=C>>5;if(u===0){const t=1<0;)a=a.getChild(l-1);return a.canBeReused(s)}handleChildrenChanged(){this.throwIfImmutable();const s=this.childrenLength;let a=this.getChild(0).length,l=this.getChild(0).missingOpeningBracketIds;for(let h=1;h=u.length)return null;const c=g,d=u[c].listHeight;for(g++;g=2?k(c===0&&g===u.length?u:u.slice(c,g),!1):u[c]}let n=t(),i=t();if(!i)return n;for(let c=t();c;c=t())I(n,i)<=I(i,c)?(n=w(n,i),i=c):i=w(i,c);return w(n,i)}e.concat23Trees=m;function k(u,g=!1){if(u.length===0)return null;if(u.length===1)return u[0];let t=u.length;for(;t>3;){const n=t>>1;for(let i=0;i=3?u[2]:null,g)}e.concat23TreesOfSameHeight=k;function I(u,g){return Math.abs(u.listHeight-g.listHeight)}function w(u,g){return u.listHeight===g.listHeight?L.ListAstNode.create23(u,g,null,!1):u.listHeight>g.listHeight?b(u,g):C(g,u)}function b(u,g){u=u.toMutable();let t=u;const n=new Array;let i;for(;;){if(g.listHeight===t.listHeight){i=g;break}if(t.kind!==4)throw new Error("unexpected");n.push(t),t=t.makeLastElementMutable()}for(let o=n.length-1;o>=0;o--){const c=n[o];i?c.childrenLength>=3?i=L.ListAstNode.create23(c.unappendChild(),i,null,!1):(c.appendChildOfSameHeight(i),i=void 0):c.handleChildrenChanged()}return i?L.ListAstNode.create23(u,i,null,!1):u}function C(u,g){u=u.toMutable();let t=u;const n=new Array;for(;g.listHeight!==t.listHeight;){if(t.kind!==4)throw new Error("unexpected");n.push(t),t=t.makeFirstElementMutable()}let i=g;for(let o=n.length-1;o>=0;o--){const c=n[o];i?c.childrenLength>=3?i=L.ListAstNode.create23(i,c.unprependChild(),null,!1):(c.prependChildOfSameHeight(i),i=void 0):c.handleChildrenChanged()}return i?L.ListAstNode.create23(i,u,null,!1):u}}),define(te[244],ie([1,0,152,243,101,85,423,422]),function(q,e,L,m,k,I,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseDocument=void 0;function C(g,t,n,i){return new u(g,t,n,i).parseDocument()}e.parseDocument=C;class u{constructor(t,n,i,o){if(this.tokenizer=t,this.createImmutableLists=o,this._itemsConstructed=0,this._itemsFromCache=0,i&&o)throw new Error("Not supported");this.oldNodeReader=i?new b.NodeReader(i):void 0,this.positionMapper=new m.BeforeEditPositionMapper(n,t.length)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let t=this.parseList(k.SmallImmutableSet.getEmpty());return t||(t=L.ListAstNode.getEmpty()),t}parseList(t){const n=new Array;for(;;){const o=this.tokenizer.peek();if(!o||o.kind===2&&o.bracketIds.intersects(t))break;const c=this.parseChild(t);c.kind===4&&c.childrenLength===0||n.push(c)}return this.oldNodeReader?(0,w.concat23Trees)(n):(0,w.concat23TreesOfSameHeight)(n,this.createImmutableLists)}parseChild(t){if(this.oldNodeReader){const i=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(!(0,I.lengthIsZero)(i)){const o=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),c=>(0,I.lengthLessThan)(c.length,i)?c.canBeReused(t):!1);if(o)return this._itemsFromCache++,this.tokenizer.skip(o.length),o}}this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new L.InvalidBracketAstNode(n.bracketIds,n.length);case 0:return n.astNode;case 1:{const i=t.merge(n.bracketIds),o=this.parseList(i),c=this.tokenizer.peek();return c&&c.kind===2&&(c.bracketId===n.bracketId||c.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),L.PairAstNode.create(n.astNode,o,c.astNode)):L.PairAstNode.create(n.astNode,o,null)}default:throw new Error("unexpected")}}}}),define(te[424],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.guessIndentation=void 0;class L{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function m(I,w,b,C,u){u.spacesDiff=0,u.looksLikeAlignment=!1;let g;for(g=0;g0&&n>0||i>0&&o>0)return;const c=Math.abs(n-o),d=Math.abs(t-i);if(c===0){u.spacesDiff=d,d>0&&0<=i-1&&i-10?u++:p>1&&g++,m(t,n,h,v,d),d.looksLikeAlignment&&!(b&&w===d.spacesDiff)))continue;const y=d.spacesDiff;y<=o&&c[y]++,t=h,n=v}let r=b;u!==g&&(r=u{const h=c[l];h>a&&(a=h,s=l)}),s===4&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(s=2)}return{insertSpaces:r,tabSize:s}}e.guessIndentation=k}),define(te[425],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalCompare=e.recomputeMaxEnd=e.nodeAcceptEdit=e.IntervalTree=e.SENTINEL=e.IntervalNode=e.getNodeColor=void 0;function L(T){return(T.metadata&1)>>>0}e.getNodeColor=L;function m(T,A){T.metadata=T.metadata&254|A<<0}function k(T){return(T.metadata&2)>>>1==1}function I(T,A){T.metadata=T.metadata&253|(A?1:0)<<1}function w(T){return(T.metadata&4)>>>2==1}function b(T,A){T.metadata=T.metadata&251|(A?1:0)<<2}function C(T){return(T.metadata&24)>>>3}function u(T,A){T.metadata=T.metadata&231|A<<3}function g(T){return(T.metadata&32)>>>5==1}function t(T,A){T.metadata=T.metadata&223|(A?1:0)<<5}class n{constructor(A,P,F){this.metadata=0,this.parent=this,this.left=this,this.right=this,m(this,1),this.start=P,this.end=F,this.delta=0,this.maxEnd=F,this.id=A,this.ownerId=0,this.options=null,b(this,!1),u(this,1),t(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=P,this.cachedAbsoluteEnd=F,this.range=null,I(this,!1)}reset(A,P,F,W){this.start=P,this.end=F,this.maxEnd=F,this.cachedVersionId=A,this.cachedAbsoluteStart=P,this.cachedAbsoluteEnd=F,this.range=W}setOptions(A){this.options=A;const P=this.options.className;b(this,P==="squiggly-error"||P==="squiggly-warning"||P==="squiggly-info"),u(this,this.options.stickiness),t(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(A,P,F){this.cachedVersionId!==F&&(this.range=null),this.cachedVersionId=F,this.cachedAbsoluteStart=A,this.cachedAbsoluteEnd=P}detach(){this.parent=null,this.left=null,this.right=null}}e.IntervalNode=n,e.SENTINEL=new n(null,0,0),e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.left=e.SENTINEL,e.SENTINEL.right=e.SENTINEL,m(e.SENTINEL,0);class i{constructor(){this.root=e.SENTINEL,this.requestNormalizeDelta=!1}intervalSearch(A,P,F,W,R){return this.root===e.SENTINEL?[]:f(this,A,P,F,W,R)}search(A,P,F){return this.root===e.SENTINEL?[]:h(this,A,P,F)}collectNodesFromOwner(A){return a(this,A)}collectNodesPostOrder(){return l(this)}insert(A){S(this,A),this._normalizeDeltaIfNecessary()}delete(A){p(this,A),this._normalizeDeltaIfNecessary()}resolveNode(A,P){const F=A;let W=0;for(;A!==this.root;)A===A.parent.right&&(W+=A.parent.delta),A=A.parent;const R=F.start+W,z=F.end+W;F.setCachedOffsets(R,z,P)}acceptReplace(A,P,F,W){const R=r(this,A,A+P);for(let z=0,j=R.length;zP||F===1?!1:F===2?!0:A}function d(T,A,P,F,W){const R=C(T),z=R===0||R===2,j=R===1||R===2,$=P-A,G=F,J=Math.min($,G),re=T.start;let se=!1;const Z=T.end;let V=!1;A<=re&&Z<=P&&g(T)&&(T.start=A,se=!0,T.end=A,V=!0);{const X=W?1:$>0?2:0;!se&&c(re,z,A,X)&&(se=!0),!V&&c(Z,j,A,X)&&(V=!0)}if(J>0&&!W){const X=$>G?2:0;!se&&c(re,z,A+J,X)&&(se=!0),!V&&c(Z,j,A+J,X)&&(V=!0)}{const X=W?1:0;!se&&c(re,z,P,X)&&(T.start=A+G,se=!0),!V&&c(Z,j,P,X)&&(T.end=A+G,V=!0)}const K=G-$;se||(T.start=Math.max(0,re+K)),V||(T.end=Math.max(0,Z+K)),T.start>T.end&&(T.end=T.start)}e.nodeAcceptEdit=d;function r(T,A,P){let F=T.root,W=0,R=0,z=0,j=0;const $=[];let G=0;for(;F!==e.SENTINEL;){if(k(F)){I(F.left,!1),I(F.right,!1),F===F.parent.right&&(W-=F.parent.delta),F=F.parent;continue}if(!k(F.left)){if(R=W+F.maxEnd,RP){I(F,!0);continue}if(j=W+F.end,j>=A&&(F.setCachedOffsets(z,j,0),$[G++]=F),I(F,!0),F.right!==e.SENTINEL&&!k(F.right)){W+=F.delta,F=F.right;continue}}return I(T.root,!1),$}function s(T,A,P,F){let W=T.root,R=0,z=0,j=0;const $=F-(P-A);for(;W!==e.SENTINEL;){if(k(W)){I(W.left,!1),I(W.right,!1),W===W.parent.right&&(R-=W.parent.delta),M(W),W=W.parent;continue}if(!k(W.left)){if(z=R+W.maxEnd,zP){W.start+=$,W.end+=$,W.delta+=$,(W.delta<-1073741824||W.delta>1073741824)&&(T.requestNormalizeDelta=!0),I(W,!0);continue}if(I(W,!0),W.right!==e.SENTINEL&&!k(W.right)){R+=W.delta,W=W.right;continue}}I(T.root,!1)}function a(T,A){let P=T.root;const F=[];let W=0;for(;P!==e.SENTINEL;){if(k(P)){I(P.left,!1),I(P.right,!1),P=P.parent;continue}if(P.left!==e.SENTINEL&&!k(P.left)){P=P.left;continue}if(P.ownerId===A&&(F[W++]=P),I(P,!0),P.right!==e.SENTINEL&&!k(P.right)){P=P.right;continue}}return I(T.root,!1),F}function l(T){let A=T.root;const P=[];let F=0;for(;A!==e.SENTINEL;){if(k(A)){I(A.left,!1),I(A.right,!1),A=A.parent;continue}if(A.left!==e.SENTINEL&&!k(A.left)){A=A.left;continue}if(A.right!==e.SENTINEL&&!k(A.right)){A=A.right;continue}P[F++]=A,I(A,!0)}return I(T.root,!1),P}function h(T,A,P,F){let W=T.root,R=0,z=0,j=0;const $=[];let G=0;for(;W!==e.SENTINEL;){if(k(W)){I(W.left,!1),I(W.right,!1),W===W.parent.right&&(R-=W.parent.delta),W=W.parent;continue}if(W.left!==e.SENTINEL&&!k(W.left)){W=W.left;continue}z=R+W.start,j=R+W.end,W.setCachedOffsets(z,j,F);let J=!0;if(A&&W.ownerId&&W.ownerId!==A&&(J=!1),P&&w(W)&&(J=!1),J&&($[G++]=W),I(W,!0),W.right!==e.SENTINEL&&!k(W.right)){R+=W.delta,W=W.right;continue}}return I(T.root,!1),$}function f(T,A,P,F,W,R){let z=T.root,j=0,$=0,G=0,J=0;const re=[];let se=0;for(;z!==e.SENTINEL;){if(k(z)){I(z.left,!1),I(z.right,!1),z===z.parent.right&&(j-=z.parent.delta),z=z.parent;continue}if(!k(z.left)){if($=j+z.maxEnd,$P){I(z,!0);continue}if(J=j+z.end,J>=A){z.setCachedOffsets(G,J,R);let Z=!0;F&&z.ownerId&&z.ownerId!==F&&(Z=!1),W&&w(z)&&(Z=!1),Z&&(re[se++]=z)}if(I(z,!0),z.right!==e.SENTINEL&&!k(z.right)){j+=z.delta,z=z.right;continue}}return I(T.root,!1),re}function S(T,A){if(T.root===e.SENTINEL)return A.parent=e.SENTINEL,A.left=e.SENTINEL,A.right=e.SENTINEL,m(A,0),T.root=A,T.root;v(T,A),B(A.parent);let P=A;for(;P!==T.root&&L(P.parent)===1;)if(P.parent===P.parent.parent.left){const F=P.parent.parent.right;L(F)===1?(m(P.parent,0),m(F,0),m(P.parent.parent,1),P=P.parent.parent):(P===P.parent.right&&(P=P.parent,E(T,P)),m(P.parent,0),m(P.parent.parent,1),N(T,P.parent.parent))}else{const F=P.parent.parent.left;L(F)===1?(m(P.parent,0),m(F,0),m(P.parent.parent,1),P=P.parent.parent):(P===P.parent.left&&(P=P.parent,N(T,P)),m(P.parent,0),m(P.parent.parent,1),E(T,P.parent.parent))}return m(T.root,0),A}function v(T,A){let P=0,F=T.root;const W=A.start,R=A.end;for(;;)if(O(W,R,F.start+P,F.end+P)<0)if(F.left===e.SENTINEL){A.start-=P,A.end-=P,A.maxEnd-=P,F.left=A;break}else F=F.left;else if(F.right===e.SENTINEL){A.start-=P+F.delta,A.end-=P+F.delta,A.maxEnd-=P+F.delta,F.right=A;break}else P+=F.delta,F=F.right;A.parent=F,A.left=e.SENTINEL,A.right=e.SENTINEL,m(A,1)}function p(T,A){let P,F;if(A.left===e.SENTINEL?(P=A.right,F=A,P.delta+=A.delta,(P.delta<-1073741824||P.delta>1073741824)&&(T.requestNormalizeDelta=!0),P.start+=A.delta,P.end+=A.delta):A.right===e.SENTINEL?(P=A.left,F=A):(F=_(A.right),P=F.right,P.start+=F.delta,P.end+=F.delta,P.delta+=F.delta,(P.delta<-1073741824||P.delta>1073741824)&&(T.requestNormalizeDelta=!0),F.start+=A.delta,F.end+=A.delta,F.delta=A.delta,(F.delta<-1073741824||F.delta>1073741824)&&(T.requestNormalizeDelta=!0)),F===T.root){T.root=P,m(P,0),A.detach(),y(),M(P),T.root.parent=e.SENTINEL;return}const W=L(F)===1;if(F===F.parent.left?F.parent.left=P:F.parent.right=P,F===A?P.parent=F.parent:(F.parent===A?P.parent=F:P.parent=F.parent,F.left=A.left,F.right=A.right,F.parent=A.parent,m(F,L(A)),A===T.root?T.root=F:A===A.parent.left?A.parent.left=F:A.parent.right=F,F.left!==e.SENTINEL&&(F.left.parent=F),F.right!==e.SENTINEL&&(F.right.parent=F)),A.detach(),W){B(P.parent),F!==A&&(B(F),B(F.parent)),y();return}B(P),B(P.parent),F!==A&&(B(F),B(F.parent));let R;for(;P!==T.root&&L(P)===0;)P===P.parent.left?(R=P.parent.right,L(R)===1&&(m(R,0),m(P.parent,1),E(T,P.parent),R=P.parent.right),L(R.left)===0&&L(R.right)===0?(m(R,1),P=P.parent):(L(R.right)===0&&(m(R.left,0),m(R,1),N(T,R),R=P.parent.right),m(R,L(P.parent)),m(P.parent,0),m(R.right,0),E(T,P.parent),P=T.root)):(R=P.parent.left,L(R)===1&&(m(R,0),m(P.parent,1),N(T,P.parent),R=P.parent.left),L(R.left)===0&&L(R.right)===0?(m(R,1),P=P.parent):(L(R.left)===0&&(m(R.right,0),m(R,1),E(T,R),R=P.parent.left),m(R,L(P.parent)),m(P.parent,0),m(R.left,0),N(T,P.parent),P=T.root));m(P,0),y()}function _(T){for(;T.left!==e.SENTINEL;)T=T.left;return T}function y(){e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.delta=0,e.SENTINEL.start=0,e.SENTINEL.end=0}function E(T,A){const P=A.right;P.delta+=A.delta,(P.delta<-1073741824||P.delta>1073741824)&&(T.requestNormalizeDelta=!0),P.start+=A.delta,P.end+=A.delta,A.right=P.left,P.left!==e.SENTINEL&&(P.left.parent=A),P.parent=A.parent,A.parent===e.SENTINEL?T.root=P:A===A.parent.left?A.parent.left=P:A.parent.right=P,P.left=A,A.parent=P,M(A),M(P)}function N(T,A){const P=A.left;A.delta-=P.delta,(A.delta<-1073741824||A.delta>1073741824)&&(T.requestNormalizeDelta=!0),A.start-=P.delta,A.end-=P.delta,A.left=P.right,P.right!==e.SENTINEL&&(P.right.parent=A),P.parent=A.parent,A.parent===e.SENTINEL?T.root=P:A===A.parent.right?A.parent.right=P:A.parent.left=P,P.right=A,A.parent=P,M(A),M(P)}function D(T){let A=T.end;if(T.left!==e.SENTINEL){const P=T.left.maxEnd;P>A&&(A=P)}if(T.right!==e.SENTINEL){const P=T.right.maxEnd+T.delta;P>A&&(A=P)}return A}function M(T){T.maxEnd=D(T)}e.recomputeMaxEnd=M;function B(T){for(;T!==e.SENTINEL;){const A=D(T);if(T.maxEnd===A)return;T.maxEnd=A,T=T.parent}}function O(T,A,P,F){return T===P?A-F:T-P}e.intervalCompare=O}),define(te[426],ie([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.recomputeTreeMetadata=e.updateTreeMetadata=e.fixInsert=e.rbDelete=e.rightRotate=e.leftRotate=e.resetSentinel=e.calculateLF=e.calculateSize=e.righttest=e.leftest=e.SENTINEL=e.TreeNode=void 0;class L{constructor(c,d){this.piece=c,this.color=d,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==e.SENTINEL)return m(this.right);let c=this;for(;c.parent!==e.SENTINEL&&c.parent.left!==c;)c=c.parent;return c.parent===e.SENTINEL?e.SENTINEL:c.parent}prev(){if(this.left!==e.SENTINEL)return k(this.left);let c=this;for(;c.parent!==e.SENTINEL&&c.parent.right!==c;)c=c.parent;return c.parent===e.SENTINEL?e.SENTINEL:c.parent}detach(){this.parent=null,this.left=null,this.right=null}}e.TreeNode=L,e.SENTINEL=new L(null,0),e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.left=e.SENTINEL,e.SENTINEL.right=e.SENTINEL,e.SENTINEL.color=0;function m(o){for(;o.left!==e.SENTINEL;)o=o.left;return o}e.leftest=m;function k(o){for(;o.right!==e.SENTINEL;)o=o.right;return o}e.righttest=k;function I(o){return o===e.SENTINEL?0:o.size_left+o.piece.length+I(o.right)}e.calculateSize=I;function w(o){return o===e.SENTINEL?0:o.lf_left+o.piece.lineFeedCnt+w(o.right)}e.calculateLF=w;function b(){e.SENTINEL.parent=e.SENTINEL}e.resetSentinel=b;function C(o,c){const d=c.right;d.size_left+=c.size_left+(c.piece?c.piece.length:0),d.lf_left+=c.lf_left+(c.piece?c.piece.lineFeedCnt:0),c.right=d.left,d.left!==e.SENTINEL&&(d.left.parent=c),d.parent=c.parent,c.parent===e.SENTINEL?o.root=d:c.parent.left===c?c.parent.left=d:c.parent.right=d,d.left=c,c.parent=d}e.leftRotate=C;function u(o,c){const d=c.left;c.left=d.right,d.right!==e.SENTINEL&&(d.right.parent=c),d.parent=c.parent,c.size_left-=d.size_left+(d.piece?d.piece.length:0),c.lf_left-=d.lf_left+(d.piece?d.piece.lineFeedCnt:0),c.parent===e.SENTINEL?o.root=d:c===c.parent.right?c.parent.right=d:c.parent.left=d,d.right=c,c.parent=d}e.rightRotate=u;function g(o,c){let d,r;if(c.left===e.SENTINEL?(r=c,d=r.right):c.right===e.SENTINEL?(r=c,d=r.left):(r=m(c.right),d=r.right),r===o.root){o.root=d,d.color=0,c.detach(),b(),o.root.parent=e.SENTINEL;return}const s=r.color===1;if(r===r.parent.left?r.parent.left=d:r.parent.right=d,r===c?(d.parent=r.parent,i(o,d)):(r.parent===c?d.parent=r:d.parent=r.parent,i(o,d),r.left=c.left,r.right=c.right,r.parent=c.parent,r.color=c.color,c===o.root?o.root=r:c===c.parent.left?c.parent.left=r:c.parent.right=r,r.left!==e.SENTINEL&&(r.left.parent=r),r.right!==e.SENTINEL&&(r.right.parent=r),r.size_left=c.size_left,r.lf_left=c.lf_left,i(o,r)),c.detach(),d.parent.left===d){const l=I(d),h=w(d);if(l!==d.parent.size_left||h!==d.parent.lf_left){const f=l-d.parent.size_left,S=h-d.parent.lf_left;d.parent.size_left=l,d.parent.lf_left=h,n(o,d.parent,f,S)}}if(i(o,d.parent),s){b();return}let a;for(;d!==o.root&&d.color===0;)d===d.parent.left?(a=d.parent.right,a.color===1&&(a.color=0,d.parent.color=1,C(o,d.parent),a=d.parent.right),a.left.color===0&&a.right.color===0?(a.color=1,d=d.parent):(a.right.color===0&&(a.left.color=0,a.color=1,u(o,a),a=d.parent.right),a.color=d.parent.color,d.parent.color=0,a.right.color=0,C(o,d.parent),d=o.root)):(a=d.parent.left,a.color===1&&(a.color=0,d.parent.color=1,u(o,d.parent),a=d.parent.left),a.left.color===0&&a.right.color===0?(a.color=1,d=d.parent):(a.left.color===0&&(a.right.color=0,a.color=1,C(o,a),a=d.parent.left),a.color=d.parent.color,d.parent.color=0,a.left.color=0,u(o,d.parent),d=o.root));d.color=0,b()}e.rbDelete=g;function t(o,c){for(i(o,c);c!==o.root&&c.parent.color===1;)if(c.parent===c.parent.parent.left){const d=c.parent.parent.right;d.color===1?(c.parent.color=0,d.color=0,c.parent.parent.color=1,c=c.parent.parent):(c===c.parent.right&&(c=c.parent,C(o,c)),c.parent.color=0,c.parent.parent.color=1,u(o,c.parent.parent))}else{const d=c.parent.parent.left;d.color===1?(c.parent.color=0,d.color=0,c.parent.parent.color=1,c=c.parent.parent):(c===c.parent.left&&(c=c.parent,u(o,c)),c.parent.color=0,c.parent.parent.color=1,C(o,c.parent.parent))}o.root.color=0}e.fixInsert=t;function n(o,c,d,r){for(;c!==o.root&&c!==e.SENTINEL;)c.parent.left===c&&(c.parent.size_left+=d,c.parent.lf_left+=r),c=c.parent}e.updateTreeMetadata=n;function i(o,c){let d=0,r=0;if(c!==o.root){for(;c!==o.root&&c===c.parent.right;)c=c.parent;if(c!==o.root)for(c=c.parent,d=I(c.left)-c.size_left,r=w(c.left)-c.lf_left,c.size_left+=d,c.lf_left+=r;c!==o.root&&(d!==0||r!==0);)c.parent.left===c&&(c.parent.size_left+=d,c.parent.lf_left+=r),c=c.parent}}e.recomputeTreeMetadata=i}),define(te[245],ie([1,0,18,142]),function(q,e,L,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PrefixSumIndexOfResult=e.ConstantTimePrefixSumComputer=e.PrefixSumComputer=void 0;class k{constructor(C){this.values=C,this.prefixSum=new Uint32Array(C.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(C,u){C=(0,m.toUint32)(C);const g=this.values,t=this.prefixSum,n=u.length;return n===0?!1:(this.values=new Uint32Array(g.length+n),this.values.set(g.subarray(0,C),0),this.values.set(g.subarray(C),C+n),this.values.set(u,C),C-1=0&&this.prefixSum.set(t.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(C,u){return C=(0,m.toUint32)(C),u=(0,m.toUint32)(u),this.values[C]===u?!1:(this.values[C]=u,C-1=g.length)return!1;const n=g.length-C;return u>=n&&(u=n),u===0?!1:(this.values=new Uint32Array(g.length-u),this.values.set(g.subarray(0,C),0),this.values.set(g.subarray(C+u),C),this.prefixSum=new Uint32Array(this.values.length),C-1=0&&this.prefixSum.set(t.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(C){return C<0?0:(C=(0,m.toUint32)(C),this._getPrefixSum(C))}_getPrefixSum(C){if(C<=this.prefixSumValidIndex[0])return this.prefixSum[C];let u=this.prefixSumValidIndex[0]+1;u===0&&(this.prefixSum[0]=this.values[0],u++),C>=this.values.length&&(C=this.values.length-1);for(let g=u;g<=C;g++)this.prefixSum[g]=this.prefixSum[g-1]+this.values[g];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],C),this.prefixSum[C]}getIndexOf(C){C=Math.floor(C),this.getTotalSum();let u=0,g=this.values.length-1,t=0,n=0,i=0;for(;u<=g;)if(t=u+(g-u)/2|0,n=this.prefixSum[t],i=n-this.values[t],C=n)u=t+1;else break;return new w(t,C-i)}}e.PrefixSumComputer=k;class I{constructor(C){this._values=C,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(C){return this._ensureValid(),C===0?0:this._prefixSum[C-1]}getIndexOf(C){this._ensureValid();const u=this._indexBySum[C],g=u>0?this._prefixSum[u-1]:0;return new w(u,C-g)}removeValues(C,u){this._values.splice(C,u),this._invalidate(C)}insertValues(C,u){this._values=(0,L.arrayInsert)(this._values,C,u),this._invalidate(C)}_invalidate(C){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,C-1)}_ensureValid(){if(!this._isValid){for(let C=this._validEndIndex+1,u=this._values.length;C0?this._prefixSum[C-1]:0;this._prefixSum[C]=t+g;for(let n=0;n=0;let a=null;try{a=L.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:s,global:!0,unicode:!0})}catch{return null}if(!a)return null;let l=!this.isRegex&&!s;return l&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(l=this.matchCase),new w.SearchData(a,this.wordSeparators?(0,m.getMapForWordSeparators)(this.wordSeparators):null,l?this.searchString:null)}}e.SearchParams=C;function u(r){if(!r||r.length===0)return!1;for(let s=0,a=r.length;s=a)break;const h=r.charCodeAt(s);if(h===110||h===114||h===87)return!0}return!1}e.isMultilineRegexSource=u;function g(r,s,a){if(!a)return new w.FindMatch(r,null);const l=[];for(let h=0,f=s.length;h>0);a[f]>=s?h=f-1:a[f+1]>=s?(l=f,h=f):l=f+1}return l+1}}class n{static findMatches(s,a,l,h,f){const S=a.parseSearchRequest();return S?S.regex.multiline?this._doFindMatchesMultiline(s,l,new d(S.wordSeparators,S.regex),h,f):this._doFindMatchesLineByLine(s,l,S,h,f):[]}static _getMultilineMatchRange(s,a,l,h,f,S){let v,p=0;h?(p=h.findLineFeedCountBeforeOffset(f),v=a+f+p):v=a+f;let _;if(h){const D=h.findLineFeedCountBeforeOffset(f+S.length)-p;_=v+S.length+D}else _=v+S.length;const y=s.getPositionAt(v),E=s.getPositionAt(_);return new I.Range(y.lineNumber,y.column,E.lineNumber,E.column)}static _doFindMatchesMultiline(s,a,l,h,f){const S=s.getOffsetAt(a.getStartPosition()),v=s.getValueInRange(a,1),p=s.getEOL()===`\r
+`?new t(v):null,_=[];let y=0,E;for(l.reset(0);E=l.next(v);)if(_[y++]=g(this._getMultilineMatchRange(s,S,v,p,E.index,E[0]),E,h),y>=f)return _;return _}static _doFindMatchesLineByLine(s,a,l,h,f){const S=[];let v=0;if(a.startLineNumber===a.endLineNumber){const _=s.getLineContent(a.startLineNumber).substring(a.startColumn-1,a.endColumn-1);return v=this._findMatchesInLine(l,_,a.startLineNumber,a.startColumn-1,v,S,h,f),S}const p=s.getLineContent(a.startLineNumber).substring(a.startColumn-1);v=this._findMatchesInLine(l,p,a.startLineNumber,a.startColumn-1,v,S,h,f);for(let _=a.startLineNumber+1;_=p))return f;return f}const y=new d(s.wordSeparators,s.regex);let E;y.reset(0);do if(E=y.next(a),E&&(S[f++]=g(new I.Range(l,E.index+1+h,l,E.index+1+E[0].length+h),E,v),f>=p))return f;while(E);return f}static findNextMatch(s,a,l,h){const f=a.parseSearchRequest();if(!f)return null;const S=new d(f.wordSeparators,f.regex);return f.regex.multiline?this._doFindNextMatchMultiline(s,l,S,h):this._doFindNextMatchLineByLine(s,l,S,h)}static _doFindNextMatchMultiline(s,a,l,h){const f=new k.Position(a.lineNumber,1),S=s.getOffsetAt(f),v=s.getLineCount(),p=s.getValueInRange(new I.Range(f.lineNumber,f.column,v,s.getLineMaxColumn(v)),1),_=s.getEOL()===`\r
+`?new t(p):null;l.reset(a.column-1);let y=l.next(p);return y?g(this._getMultilineMatchRange(s,S,p,_,y.index,y[0]),y,h):a.lineNumber!==1||a.column!==1?this._doFindNextMatchMultiline(s,new k.Position(1,1),l,h):null}static _doFindNextMatchLineByLine(s,a,l,h){const f=s.getLineCount(),S=a.lineNumber,v=s.getLineContent(S),p=this._findFirstMatchInLine(l,v,S,a.column,h);if(p)return p;for(let _=1;_<=f;_++){const y=(S+_-1)%f,E=s.getLineContent(y+1),N=this._findFirstMatchInLine(l,E,y+1,1,h);if(N)return N}return null}static _findFirstMatchInLine(s,a,l,h,f){s.reset(h-1);const S=s.next(a);return S?g(new I.Range(l,S.index+1,l,S.index+1+S[0].length),S,f):null}static findPreviousMatch(s,a,l,h){const f=a.parseSearchRequest();if(!f)return null;const S=new d(f.wordSeparators,f.regex);return f.regex.multiline?this._doFindPreviousMatchMultiline(s,l,S,h):this._doFindPreviousMatchLineByLine(s,l,S,h)}static _doFindPreviousMatchMultiline(s,a,l,h){const f=this._doFindMatchesMultiline(s,new I.Range(1,1,a.lineNumber,a.column),l,h,10*b);if(f.length>0)return f[f.length-1];const S=s.getLineCount();return a.lineNumber!==S||a.column!==s.getLineMaxColumn(S)?this._doFindPreviousMatchMultiline(s,new k.Position(S,s.getLineMaxColumn(S)),l,h):null}static _doFindPreviousMatchLineByLine(s,a,l,h){const f=s.getLineCount(),S=a.lineNumber,v=s.getLineContent(S).substring(0,a.column-1),p=this._findLastMatchInLine(l,v,S,h);if(p)return p;for(let _=1;_<=f;_++){const y=(f+S-_-1)%f,E=s.getLineContent(y+1),N=this._findLastMatchInLine(l,E,y+1,h);if(N)return N}return null}static _findLastMatchInLine(s,a,l,h){let f=null,S;for(s.reset(0);S=s.next(a);)f=g(new I.Range(l,S.index+1,l,S.index+1+S[0].length),S,h);return f}}e.TextModelSearch=n;function i(r,s,a,l,h){if(l===0)return!0;const f=s.charCodeAt(l-1);if(r.get(f)!==0||f===13||f===10)return!0;if(h>0){const S=s.charCodeAt(l);if(r.get(S)!==0)return!0}return!1}function o(r,s,a,l,h){if(l+h===a)return!0;const f=s.charCodeAt(l+h);if(r.get(f)!==0||f===13||f===10)return!0;if(h>0){const S=s.charCodeAt(l+h-1);if(r.get(S)!==0)return!0}return!1}function c(r,s,a,l,h){return i(r,s,a,l,h)&&o(r,s,a,l,h)}e.isValidMatch=c;class d{constructor(s,a){this._wordSeparators=s,this._searchRegex=a,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(s){this._searchRegex.lastIndex=s,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(s){const a=s.length;let l;do{if(this._prevMatchStartIndex+this._prevMatchLength===a||(l=this._searchRegex.exec(s),!l))return null;const h=l.index,f=l[0].length;if(h===this._prevMatchStartIndex&&f===this._prevMatchLength){if(f===0){L.getNextCodePoint(s,a,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=h,this._prevMatchLength=f,!this._wordSeparators||c(this._wordSeparators,s,a,h,f))return l}while(l);return null}}e.Searcher=d}),define(te[246],ie([1,0,11,3,50,426,153]),function(q,e,L,m,k,I,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieceTreeBase=e.StringBuffer=e.Piece=e.createLineStarts=e.createLineStartsFast=e.LineStarts=e.createUintArray=e.AverageBufferSize=void 0,e.AverageBufferSize=65535;function b(d){let r;return d[d.length-1]<65536?r=new Uint16Array(d.length):r=new Uint32Array(d.length),r.set(d,0),r}e.createUintArray=b;class C{constructor(r,s,a,l,h){this.lineStarts=r,this.cr=s,this.lf=a,this.crlf=l,this.isBasicASCII=h}}e.LineStarts=C;function u(d,r=!0){const s=[0];let a=1;for(let l=0,h=d.length;l126)&&(f=!1)}const S=new C(b(d),a,l,h,f);return d.length=0,S}e.createLineStarts=g;class t{constructor(r,s,a,l,h){this.bufferIndex=r,this.start=s,this.end=a,this.lineFeedCnt=l,this.length=h}}e.Piece=t;class n{constructor(r,s){this.buffer=r,this.lineStarts=s}}e.StringBuffer=n;class i{constructor(r,s){this._pieces=[],this._tree=r,this._BOM=s,this._index=0,r.root!==I.SENTINEL&&r.iterate(r.root,a=>(a!==I.SENTINEL&&this._pieces.push(a.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class o{constructor(r){this._limit=r,this._cache=[]}get(r){for(let s=this._cache.length-1;s>=0;s--){const a=this._cache[s];if(a.nodeStartOffset<=r&&a.nodeStartOffset+a.node.piece.length>=r)return a}return null}get2(r){for(let s=this._cache.length-1;s>=0;s--){const a=this._cache[s];if(a.nodeStartLineNumber&&a.nodeStartLineNumber