!function(){"use strict";const e=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function t(t){(function(e){if(e instanceof i)return!0;return e instanceof Error&&e.name===r&&e.message===r})(t)||e.onUnexpectedError(t)}function n(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e}const r="Canceled";class i extends Error{constructor(){super(r),this.name=this.message}}function o(e){const t=this;let n,r=!1;return function(){return r||(r=!0,n=e.apply(t,arguments)),n}}var a,s;!function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const t=Object.freeze([]);e.empty=function(){return t},e.single=function*(e){yield e},e.from=function(e){return e||t},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.concatNested=function*(e){for(const t of e)for(const e of t)yield e},e.reduce=function(e,t,n){let r=n;for(const n of e)r=t(r,n);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);ti}]},e.equals=function(e,t,n=(e,t)=>e===t){const r=e[Symbol.iterator](),i=t[Symbol.iterator]();for(;;){const e=r.next(),t=i.next();if(e.done!==t.done)return!1;if(e.done)return!0;if(!n(e.value,t.value))return!1}}}(a||(a={}));class c extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function l(e){if(a.is(e)){let t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new c(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function u(e){return{dispose:o((()=>{e()}))}}class h{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{l(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?h.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}h.DISABLE_DISPOSED_WARNING=!1;class f{constructor(){this._store=new h,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}f.None=Object.freeze({dispose(){}});class d{constructor(e){this.element=e,this.next=d.Undefined,this.prev=d.Undefined}}d.Undefined=new d(void 0);class m{constructor(){this._first=d.Undefined,this._last=d.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===d.Undefined}clear(){let e=this._first;for(;e!==d.Undefined;){const t=e.next;e.prev=d.Undefined,e.next=d.Undefined,e=t}this._first=d.Undefined,this._last=d.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new d(e);if(this._first===d.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==d.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==d.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==d.Undefined&&e.next!==d.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===d.Undefined&&e.next===d.Undefined?(this._first=d.Undefined,this._last=d.Undefined):e.next===d.Undefined?(this._last=this._last.prev,this._last.next=d.Undefined):e.prev===d.Undefined&&(this._first=this._first.next,this._first.prev=d.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==d.Undefined;)yield e.element,e=e.next}}const g="en";let p,b,v,y=!1,C=!1,w=!1,_=g;const S="object"==typeof self?self:"object"==typeof global?global:{};let A;void 0!==S.vscode&&void 0!==S.vscode.process?A=S.vscode.process:"undefined"!=typeof process&&(A=process);const x="string"==typeof(null===(s=null==A?void 0:A.versions)||void 0===s?void 0:s.electron)&&"renderer"===(null==A?void 0:A.type);if("object"!=typeof navigator||x)if("object"==typeof A){y="win32"===A.platform,C="darwin"===A.platform,w="linux"===A.platform,w&&A.env.SNAP&&A.env.SNAP_REVISION,p=g,_=g;const e=A.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];p=t.locale,_=n||g,b=t._translationsConfigFile}catch(e){}}else console.error("Unable to resolve platform.");else v=navigator.userAgent,y=v.indexOf("Windows")>=0,C=v.indexOf("Macintosh")>=0,(v.indexOf("Macintosh")>=0||v.indexOf("iPad")>=0||v.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,w=v.indexOf("Linux")>=0,p=navigator.language,_=p;const E=y,N=C,k=w,L=v;(()=>{if("function"==typeof S.postMessage&&!S.importScripts){let e=[];S.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n{const r=++t;e.push({id:r,callback:n}),S.postMessage({vscodeScheduleAsyncWork:r},"*")}}})();const O=!!(L&&L.indexOf("Chrome")>=0);L&&L.indexOf("Firefox"),!O&&L&&L.indexOf("Safari"),L&&L.indexOf("Edg/"),L&&L.indexOf("Android");const T=S.performance&&"function"==typeof S.performance.now;class M{constructor(e){this._highResolution=T&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new M(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?S.performance.now():Date.now()}}var I,P;!function(e){function t(e){return(t,n=null,r)=>{let i,o=!1;return i=e((e=>{if(!o)return i?i.dispose():o=!0,t.call(n,e)}),null,r),o&&i.dispose(),i}}function n(e,t){return a(((n,r=null,i)=>e((e=>n.call(r,t(e))),null,i)))}function r(e,t){return a(((n,r=null,i)=>e((e=>{t(e),n.call(r,e)}),null,i)))}function i(e,t){return a(((n,r=null,i)=>e((e=>t(e)&&n.call(r,e)),null,i)))}function o(e,t,r){let i=r;return n(e,(e=>(i=t(i,e),i)))}function a(e){let t;const n=new V({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function s(e,t,n=100,r=!1,i){let o,a,s,c=0;const l=new V({leakWarningThreshold:i,onFirstListenerAdd(){o=e((e=>{c++,a=t(a,e),r&&!s&&(l.fire(a),a=void 0),clearTimeout(s),s=setTimeout((()=>{const e=a;a=void 0,s=void 0,(!r||c>1)&&l.fire(e),c=0}),n)}))},onLastListenerRemove(){o.dispose()}});return l.event}function c(e,t=(e,t)=>e===t){let n,r=!0;return i(e,(e=>{const i=r||!t(e,n);return r=!1,n=e,i}))}e.None=()=>f.None,e.once=t,e.map=n,e.forEach=r,e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>function(...e){return u((()=>l(e)))}(...e.map((e=>e((e=>t.call(n,e)),null,r))))},e.reduce=o,e.debouncedListener=function(e,t,n,r=100,i=!1){let o,a,s=0;return e((e=>{s++,o=n(o,e),i&&!a&&(t(o),o=void 0),clearTimeout(a),a=setTimeout((()=>{const e=o;o=void 0,a=void 0,(!i||s>1)&&t(e),s=0}),r)}))},e.debounce=s,e.latch=c,e.split=function(t,n){return[e.filter(t,n),e.filter(t,(e=>!n(e)))]},e.buffer=function(e,t=!1,n=[]){let r=n.slice(),i=e((e=>{r?r.push(e):a.fire(e)}));const o=()=>{r&&r.forEach((e=>a.fire(e))),r=null},a=new V({onFirstListenerAdd(){i||(i=e((e=>a.fire(e))))},onFirstListenerDidAdd(){r&&(t?setTimeout(o):o())},onLastListenerRemove(){i&&i.dispose(),i=null}});return a.event};class d{constructor(e){this.event=e}map(e){return new d(n(this.event,e))}forEach(e){return new d(r(this.event,e))}filter(e){return new d(i(this.event,e))}reduce(e,t){return new d(o(this.event,e,t))}latch(){return new d(c(this.event))}debounce(e,t=100,n=!1,r){return new d(s(this.event,e,t,n,r))}on(e,t,n){return this.event(e,t,n)}once(e,n,r){return t(this.event)(e,n,r)}}e.chain=function(e){return new d(e)},e.fromNodeEventEmitter=function(e,t,n=e=>e){const r=(...e)=>i.fire(n(...e)),i=new V({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return i.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const r=(...e)=>i.fire(n(...e)),i=new V({onFirstListenerAdd:()=>e.addEventListener(t,r),onLastListenerRemove:()=>e.removeEventListener(t,r)});return i.event},e.toPromise=function(e){return new Promise((n=>t(e)(n)))},e.runAndSubscribe=function(e,t){return t(void 0),e((e=>t(e)))},e.runAndSubscribeWithStore=function(e,t){let n=null;function r(e){null==n||n.dispose(),n=new h,t(e,n)}r(void 0);const i=e((e=>r(e)));return u((()=>{i.dispose(),null==n||n.dispose()}))}}(I||(I={}));class R{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${R._idPool++}`}start(e){this._stopWatch=new M(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}R._idPool=0;class V{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new R(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,n)=>{var r;this._listeners||(this._listeners=new m);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(t?[e,t]:e);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const a=null===(r=this._leakageMon)||void 0===r?void 0:r.check(this._listeners.size),s=u((()=>{if(a&&a(),!this._disposed&&(o(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}));return n instanceof h?n.add(s):Array.isArray(n)&&n.push(s),s}),this._event}fire(e){var n,r;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new m);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(null===(n=this._perfMon)||void 0===n||n.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[e,n]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,n):e[0].call(e[1],n)}catch(e){t(e)}}null===(r=this._perfMon)||void 0===r||r.stop()}}dispose(){var e,t,n,r,i;this._disposed||(this._disposed=!0,null===(e=this._listeners)||void 0===e||e.clear(),null===(t=this._deliveryQueue)||void 0===t||t.clear(),null===(r=null===(n=this._options)||void 0===n?void 0:n.onLastListenerRemove)||void 0===r||r.call(n),null===(i=this._leakageMon)||void 0===i||i.dispose())}}function F(e){const t=[];for(const n of function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e))"function"==typeof e[n]&&t.push(n);return t}function D(e,t="Unreachable"){throw new Error(t)}class K{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function j(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function U(e,t,n=0,r=e.length,i=0,o=t.length){for(;no)return 1}const a=r-n,s=o-i;return as?1:0}function B(e){return e>=97&&e<=122}function $(e){return e>=65&&e<=90}function q(e,t){const n=t.length;return!(t.length>e.length)&&0===function(e,t,n=0,r=e.length,i=0,o=t.length){for(;n=128||s>=128)return U(e.toLowerCase(),t.toLowerCase(),n,r,i,o);B(a)&&(a-=32),B(s)&&(s-=32);const c=a-s;if(0!==c)return c}const a=r-n,s=o-i;return as?1:0}(e,t,0,n)}function W(e){return 55296<=e&&e<=56319}function H(e,t,n){const r=e.charCodeAt(n);if(W(r)&&n+1JSON.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]}'))),z.cache=new class{constructor(e){this.computeFn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.computeFn(e)),this.lastCache}}((e=>{function t(e){const t=new Map;for(let n=0;n!e.startsWith("_")&&e in r));0===o.length&&(o=["_default"]);for(const e of o){i=n(i,t(r[e]))}const a=function(e,t){const n=new Map(e);for(const[e,r]of t)n.set(e,r);return n}(t(r._common),i);return new z(a)})),z._locales=new K((()=>Object.keys(z.ambiguousCharacterData.getValue()).filter((e=>!e.startsWith("_")))));class G{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(G.getRawData())),this._data}static isInvisibleCharacter(e){return G.getData().has(e)}static get codePoints(){return G.getData()}}G._data=void 0;class J{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.method=n,this.args=r,this.type=0}}class X{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class Z{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=r,this.type=2}}class Y{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class Q{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class ee{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const n=String(++this._lastSentReq);return new Promise(((r,i)=>{this._pendingReplies[n]={resolve:r,reject:i},this._send(new J(this._workerId,n,e,t))}))}listen(e,t){let n=null;const r=new V({onFirstListenerAdd:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,r),this._send(new Z(this._workerId,n,e,t))},onLastListenerRemove:()=>{this._pendingEmitters.delete(n),this._send(new Q(this._workerId,n)),n=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new X(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=n(e.detail)),this._send(new X(this._workerId,t,void 0,n(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new Y(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){let t=[];if(0===e.type)for(let n=0;n{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t),handleEvent:(e,t)=>this._handleEvent(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if("$initialize"===e)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}}_handleEvent(e,t){if(!this._requestHandler)throw new Error("Missing requestHandler");if(ne(e)){const n=this._requestHandler[e].call(this._requestHandler,t);if("function"!=typeof n)throw new Error(`Missing dynamic event ${e} on request handler.`);return n}if(te(e)){const t=this._requestHandler[e];if("function"!=typeof t)throw new Error(`Missing event ${e} on request handler.`);return t}throw new Error(`Malformed event name ${e}`)}initialize(e,t,n,r){this._protocol.setWorkerId(e);const i=function(e,t,n){const r=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i=e=>function(t){return n(e,t)};let o={};for(const t of e)ne(t)?o[t]=i(t):te(t)?o[t]=n(t,void 0):o[t]=r(t);return o}(r,((e,t)=>this._protocol.sendMessage(e,t)),((e,t)=>this._protocol.listen(e,t)));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(i),Promise.resolve(F(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,void 0!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,S.require.config(t)),new Promise(((e,t)=>{(0,S.require)([n],(n=>{this._requestHandler=n.create(i),this._requestHandler?e(F(this._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}}class ie{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function oe(e,t){return(t<<5)-t+e|0}function ae(e,t){t=oe(149417,t);for(let n=0,r=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new ie(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(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),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 fe{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,i,o]=fe._getElements(e),[a,s,c]=fe._getElements(t);this._hasStrings=o&&c,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=a,this._modifiedElementsOrHash=s,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(fe._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let i;return n<=r?(le.Assert(e===t+1,"originalStart should only be one more than originalEnd"),i=[new ie(e,0,n,r-n+1)]):e<=t?(le.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[new ie(e,t-e+1,n,0)]):(le.Assert(e===t+1,"originalStart should only be one more than originalEnd"),le.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i}const o=[0],a=[0],s=this.ComputeRecursionPoint(e,t,n,r,o,a,i),c=o[0],l=a[0];if(null!==s)return s;if(!i[0]){const o=this.ComputeDiffRecursive(e,c,n,l,i);let a=[];return a=i[0]?[new ie(c+1,t-(c+1)+1,l+1,r-(l+1)+1)]:this.ComputeDiffRecursive(c+1,t,l+1,r,i),this.ConcatenateChanges(o,a)}return[new ie(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,i,o,a,s,c,l,u,h,f,d,m,g,p,b){let v=null,y=null,C=new he,w=t,_=n,S=f[0]-g[0]-r,A=-1073741824,x=this.m_forwardHistory.length-1;do{const t=S+e;t===w||t<_&&c[t-1]=0&&(e=(c=this.m_forwardHistory[x])[0],w=1,_=c.length-1)}while(--x>=-1);if(v=C.getReverseChanges(),b[0]){let e=f[0]+1,t=g[0]+1;if(null!==v&&v.length>0){const n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}y=[new ie(e,h-e+1,t,m-t+1)]}else{C=new he,w=o,_=a,S=f[0]-g[0]-s,A=1073741824,x=p?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+i;e===w||e<_&&l[e-1]>=l[e+1]?(d=(u=l[e+1]-1)-S-s,u>A&&C.MarkNextChange(),A=u+1,C.AddOriginalElement(u+1,d+1),S=e+1-i):(d=(u=l[e-1])-S-s,u>A&&C.MarkNextChange(),A=u,C.AddModifiedElement(u+1,d+1),S=e-1-i),x>=0&&(i=(l=this.m_reverseHistory[x])[0],w=1,_=l.length-1)}while(--x>=-1);y=C.getChanges()}return this.ConcatenateChanges(v,y)}ComputeRecursionPoint(e,t,n,r,i,o,a){let s=0,c=0,l=0,u=0,h=0,f=0;e--,n--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const d=t-e+(r-n),m=d+1,g=new Int32Array(m),p=new Int32Array(m),b=r-n,v=t-e,y=e-n,C=t-r,w=(v-b)%2==0;g[b]=e,p[v]=t,a[0]=!1;for(let _=1;_<=d/2+1;_++){let d=0,S=0;l=this.ClipDiagonalBound(b-_,_,b,m),u=this.ClipDiagonalBound(b+_,_,b,m);for(let e=l;e<=u;e+=2){s=e===l||ed+S&&(d=s,S=c),!w&&Math.abs(e-v)<=_-1&&s>=p[e])return i[0]=s,o[0]=c,n<=p[e]&&_<=1448?this.WALKTRACE(b,l,u,y,v,h,f,C,g,p,s,t,i,c,r,o,w,a):null}const A=(d-e+(S-n)-_)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(d,A))return a[0]=!0,i[0]=d,o[0]=S,A>0&&_<=1448?this.WALKTRACE(b,l,u,y,v,h,f,C,g,p,s,t,i,c,r,o,w,a):(e++,n++,[new ie(e,t-e+1,n,r-n+1)]);h=this.ClipDiagonalBound(v-_,_,v,m),f=this.ClipDiagonalBound(v+_,_,v,m);for(let d=h;d<=f;d+=2){s=d===h||d=p[d+1]?p[d+1]-1:p[d-1],c=s-(d-v)-C;const m=s;for(;s>e&&c>n&&this.ElementsAreEqual(s,c);)s--,c--;if(p[d]=s,w&&Math.abs(d-b)<=_&&s<=g[d])return i[0]=s,o[0]=c,m>=g[d]&&_<=1448?this.WALKTRACE(b,l,u,y,v,h,f,C,g,p,s,t,i,c,r,o,w,a):null}if(_<=1447){let e=new Int32Array(u-l+2);e[0]=b-l+1,ue.Copy2(g,l,e,1,u-l+1),this.m_forwardHistory.push(e),e=new Int32Array(f-h+2),e[0]=v-h+1,ue.Copy2(p,h,e,1,f-h+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,l,u,y,v,h,f,C,g,p,s,t,i,c,r,o,w,a)}PrettifyChanges(e){for(let t=0;t0,a=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;t--){const n=e[t];let r=0,i=0;if(t>0){const n=e[t-1];r=n.originalStart+n.originalLength,i=n.modifiedStart+n.modifiedLength}const o=n.originalLength>0,a=n.modifiedLength>0;let s=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,l=n.modifiedStart-e;if(tc&&(c=u,s=e)}n.originalStart-=s,n.modifiedStart-=s;const l=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],l)&&(e[t-1]=l[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t0&&n>s&&(s=n,c=t,l=e)}return s>0?[c,l]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return ue.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],ue.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return ue.Copy(e,0,n,0,e.length),ue.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(le.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),le.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let i=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new ie(r,i,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&ee.cwd()}}else de="undefined"!=typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd()}:{get platform(){return E?"win32":N?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const me=de.cwd,ge=de.env,pe=de.platform,be=46,ve=47,ye=92,Ce=58;class we extends Error{constructor(e,t,n){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const i=-1!==e.indexOf(".")?"property":"argument";let o=`The "${e}" ${i} ${r} of type ${t}`;o+=". Received type "+typeof n,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function _e(e,t){if("string"!=typeof e)throw new we(t,"string",e)}function Se(e){return e===ve||e===ye}function Ae(e){return e===ve}function xe(e){return e>=65&&e<=90||e>=97&&e<=122}function Ee(e,t,n,r){let i="",o=0,a=-1,s=0,c=0;for(let l=0;l<=e.length;++l){if(l2){const e=i.lastIndexOf(n);-1===e?(i="",o=0):(i=i.slice(0,e),o=i.length-1-i.lastIndexOf(n)),a=l,s=0;continue}if(0!==i.length){i="",o=0,a=l,s=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",o=2)}else i.length>0?i+=`${n}${e.slice(a+1,l)}`:i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else c===be&&-1!==s?++s:s=-1}return i}function Ne(e,t){if(null===t||"object"!=typeof t)throw new we("pathObject","Object",t);const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const ke={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let o;if(i>=0){if(o=e[i],_e(o,"path"),0===o.length)continue}else 0===t.length?o=me():(o=ge[`=${t}`]||me(),(void 0===o||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&o.charCodeAt(2)===ye)&&(o=`${t}\\`));const a=o.length;let s=0,c="",l=!1;const u=o.charCodeAt(0);if(1===a)Se(u)&&(s=1,l=!0);else if(Se(u))if(l=!0,Se(o.charCodeAt(1))){let e=2,t=e;for(;e2&&Se(o.charCodeAt(2))&&(l=!0,s=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(r){if(t.length>0)break}else if(n=`${o.slice(s)}\\${n}`,r=l,l&&t.length>0)break}return n=Ee(n,!r,"\\",Se),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){_e(e,"path");const t=e.length;if(0===t)return".";let n,r=0,i=!1;const o=e.charCodeAt(0);if(1===t)return Ae(o)?"\\":e;if(Se(o))if(i=!0,Se(e.charCodeAt(1))){let i=2,o=i;for(;i2&&Se(e.charCodeAt(2))&&(i=!0,r=3));let a=r0&&Se(e.charCodeAt(t-1))&&(a+="\\"),void 0===n?i?`\\${a}`:a:i?`${n}\\${a}`:`${n}${a}`},isAbsolute(e){_e(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return Se(n)||t>2&&xe(n)&&e.charCodeAt(1)===Ce&&Se(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let r=0;r0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let r=!0,i=0;if("string"==typeof n&&Se(n.charCodeAt(0))){++i;const e=n.length;e>1&&Se(n.charCodeAt(1))&&(++i,e>2&&(Se(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(t=`\\${t.slice(i)}`)}return ke.normalize(t)},relative(e,t){if(_e(e,"from"),_e(t,"to"),e===t)return"";const n=ke.resolve(e),r=ke.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let i=0;for(;ii&&e.charCodeAt(o-1)===ye;)o--;const a=o-i;let s=0;for(;ss&&t.charCodeAt(c-1)===ye;)c--;const l=c-s,u=au){if(t.charCodeAt(s+f)===ye)return r.slice(s+f+1);if(2===f)return r.slice(s+f)}a>u&&(e.charCodeAt(i+f)===ye?h=f:2===f&&(h=3)),-1===h&&(h=0)}let d="";for(f=i+h+1;f<=o;++f)f!==o&&e.charCodeAt(f)!==ye||(d+=0===d.length?"..":"\\..");return s+=h,d.length>0?`${d}${r.slice(s,c)}`:(r.charCodeAt(s)===ye&&++s,r.slice(s,c))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=ke.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===ye){if(t.charCodeAt(1)===ye){const e=t.charCodeAt(2);if(63!==e&&e!==be)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(xe(t.charCodeAt(0))&&t.charCodeAt(1)===Ce&&t.charCodeAt(2)===ye)return`\\\\?\\${t}`;return e},dirname(e){_e(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(1===t)return Se(i)?e:".";if(Se(i)){if(n=r=1,Se(e.charCodeAt(1))){let i=2,o=i;for(;i2&&Se(e.charCodeAt(2))?3:2,r=n);let o=-1,a=!0;for(let n=t-1;n>=r;--n)if(Se(e.charCodeAt(n))){if(!a){o=n;break}}else a=!1;if(-1===o){if(-1===n)return".";o=n}return e.slice(0,o)},basename(e,t){void 0!==t&&_e(t,"ext"),_e(e,"path");let n,r=0,i=-1,o=!0;if(e.length>=2&&xe(e.charCodeAt(0))&&e.charCodeAt(1)===Ce&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,s=-1;for(n=e.length-1;n>=r;--n){const c=e.charCodeAt(n);if(Se(c)){if(!o){r=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(c===t.charCodeAt(a)?-1==--a&&(i=n):(a=-1,i=s))}return r===i?i=s:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(Se(e.charCodeAt(n))){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){_e(e,"path");let t=0,n=-1,r=0,i=-1,o=!0,a=0;e.length>=2&&e.charCodeAt(1)===Ce&&xe(e.charCodeAt(0))&&(t=r=2);for(let s=e.length-1;s>=t;--s){const t=e.charCodeAt(s);if(Se(t)){if(!o){r=s+1;break}}else-1===i&&(o=!1,i=s+1),t===be?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return-1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:Ne.bind(null,"\\"),parse(e){_e(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(1===n)return Se(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Se(i)){if(r=1,Se(e.charCodeAt(1))){let t=2,i=t;for(;t0&&(t.root=e.slice(0,r));let o=-1,a=r,s=-1,c=!0,l=e.length-1,u=0;for(;l>=r;--l)if(i=e.charCodeAt(l),Se(i)){if(!c){a=l+1;break}}else-1===s&&(c=!1,s=l+1),i===be?-1===o?o=l:1!==u&&(u=1):-1!==o&&(u=-1);return-1!==s&&(-1===o||0===u||1===u&&o===s-1&&o===a+1?t.base=t.name=e.slice(a,s):(t.name=e.slice(a,o),t.base=e.slice(a,s),t.ext=e.slice(o,s))),t.dir=a>0&&a!==r?e.slice(0,a-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Le={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:me();_e(i,"path"),0!==i.length&&(t=`${i}/${t}`,n=i.charCodeAt(0)===ve)}return t=Ee(t,!n,"/",Ae),n?`/${t}`:t.length>0?t:"."},normalize(e){if(_e(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===ve,n=e.charCodeAt(e.length-1)===ve;return 0===(e=Ee(e,!t,"/",Ae)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(_e(e,"path"),e.length>0&&e.charCodeAt(0)===ve),join(...e){if(0===e.length)return".";let t;for(let n=0;n0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":Le.normalize(t)},relative(e,t){if(_e(e,"from"),_e(t,"to"),e===t)return"";if((e=Le.resolve(e))===(t=Le.resolve(t)))return"";const n=e.length,r=n-1,i=t.length-1,o=ro){if(t.charCodeAt(1+s)===ve)return t.slice(1+s+1);if(0===s)return t.slice(1+s)}else r>o&&(e.charCodeAt(1+s)===ve?a=s:0===s&&(a=0));let c="";for(s=1+a+1;s<=n;++s)s!==n&&e.charCodeAt(s)!==ve||(c+=0===c.length?"..":"/..");return`${c}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(_e(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===ve;let n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===ve){if(!r){n=t;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&_e(t,"ext"),_e(e,"path");let n,r=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,s=-1;for(n=e.length-1;n>=0;--n){const c=e.charCodeAt(n);if(c===ve){if(!o){r=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(c===t.charCodeAt(a)?-1==--a&&(i=n):(a=-1,i=s))}return r===i?i=s:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===ve){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){_e(e,"path");let t=-1,n=0,r=-1,i=!0,o=0;for(let a=e.length-1;a>=0;--a){const s=e.charCodeAt(a);if(s!==ve)-1===r&&(i=!1,r=a+1),s===be?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)},format:Ne.bind(null,"/"),parse(e){_e(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===ve;let r;n?(t.root="/",r=1):r=0;let i=-1,o=0,a=-1,s=!0,c=e.length-1,l=0;for(;c>=r;--c){const t=e.charCodeAt(c);if(t!==ve)-1===a&&(s=!1,a=c+1),t===be?-1===i?i=c:1!==l&&(l=1):-1!==i&&(l=-1);else if(!s){o=c+1;break}}if(-1!==a){const r=0===o&&n?1:o;-1===i||0===l||1===l&&i===a-1&&i===o+1?t.base=t.name=e.slice(r,a):(t.name=e.slice(r,i),t.base=e.slice(r,a),t.ext=e.slice(i,a))}return o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Le.win32=ke.win32=ke,Le.posix=ke.posix=Le;const Oe="win32"===pe?ke.normalize:Le.normalize;"win32"===pe?ke.resolve:Le.resolve,"win32"===pe?ke.relative:Le.relative,"win32"===pe?ke.dirname:Le.dirname;const Te="win32"===pe?ke.basename:Le.basename,Me="win32"===pe?ke.extname:Le.extname,Ie="win32"===pe?ke.sep:Le.sep,Pe=/^\w[\w\d+.-]*$/,Re=/^\//,Ve=/^\/\//;function Fe(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Pe.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!Re.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Ve.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const De="",Ke="/",je=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Ue{constructor(e,t,n,r,i,o=!1){"object"==typeof e?(this.scheme=e.scheme||De,this.authority=e.authority||De,this.path=e.path||De,this.query=e.query||De,this.fragment=e.fragment||De):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||De,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Ke&&(t=Ke+t):t=Ke}return t}(this.scheme,n||De),this.query=r||De,this.fragment=i||De,Fe(this,o))}static isUri(e){return e instanceof Ue||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}get fsPath(){return ze(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=De),void 0===n?n=this.authority:null===n&&(n=De),void 0===r?r=this.path:null===r&&(r=De),void 0===i?i=this.query:null===i&&(i=De),void 0===o?o=this.fragment:null===o&&(o=De),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new $e(t,n,r,i,o)}static parse(e,t=!1){const n=je.exec(e);return n?new $e(n[2]||De,Ze(n[4]||De),Ze(n[5]||De),Ze(n[7]||De),Ze(n[9]||De),t):new $e(De,De,De,De,De)}static file(e){let t=De;if(E&&(e=e.replace(/\\/g,Ke)),e[0]===Ke&&e[1]===Ke){const n=e.indexOf(Ke,2);-1===n?(t=e.substring(2),e=Ke):(t=e.substring(2,n),e=e.substring(n)||Ke)}return new $e("file",t,e,De,De)}static from(e){const t=new $e(e.scheme,e.authority,e.path,e.query,e.fragment);return Fe(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=E&&"file"===e.scheme?Ue.file(ke.join(ze(e,!0),...t)).path:Le.join(e.path,...t),e.with({path:n})}toString(e=!1){return Ge(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof Ue)return e;{const t=new $e(e);return t._formatted=e.external,t._fsPath=e._sep===Be?e.fsPath:null,t}}return e}}const Be=E?1:void 0;class $e extends Ue{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=ze(this,!1)),this._fsPath}toString(e=!1){return e?Ge(this,!0):(this._formatted||(this._formatted=Ge(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Be),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const qe={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 We(e,t){let n,r=-1;for(let i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));const t=qe[o];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=t):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function He(e){let t;for(let n=0;n1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,E&&(n=n.replace(/\//g,"\\")),n}function Ge(e,t){const n=t?He:We;let r="",{scheme:i,authority:o,path:a,query:s,fragment:c}=e;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=Ke,r+=Ke),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),e=t.indexOf(":"),-1===e?r+=n(t,!1):(r+=n(t.substr(0,e),!1),r+=":",r+=n(t.substr(e+1),!1)),r+="@"}o=o.toLowerCase(),e=o.indexOf(":"),-1===e?r+=n(o,!1):(r+=n(o.substr(0,e),!1),r+=o.substr(e))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){const e=a.charCodeAt(1);e>=65&&e<=90&&(a=`/${String.fromCharCode(e+32)}:${a.substr(3)}`)}else if(a.length>=2&&58===a.charCodeAt(1)){const e=a.charCodeAt(0);e>=65&&e<=90&&(a=`${String.fromCharCode(e+32)}:${a.substr(2)}`)}r+=n(a,!0)}return s&&(r+="?",r+=n(s,!1)),c&&(r+="#",r+=t?c:We(c,!1)),r}function Je(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+Je(e.substr(3)):e}}const Xe=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ze(e){return e.match(Xe)?e.replace(Xe,(e=>Je(e))):e}class Ye{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new Ye(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Ye.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Ye.isBefore(this,e)}static isBefore(e,t){return e.lineNumbern||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return Qe.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Qe.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.columne.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return Qe.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)))}strictContainsRange(e){return Qe.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return Qe.plusRange(this,e)}static plusRange(e,t){let n,r,i,o;return t.startLineNumbere.endLineNumber?(i=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,o=e.endColumn),new Qe(n,r,i,o)}intersectRanges(e){return Qe.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,o=e.endColumn,a=t.startLineNumber,s=t.startColumn,c=t.endLineNumber,l=t.endColumn;return nc?(i=c,o=l):i===c&&(o=Math.min(o,l)),n>i||n===i&&r>o?null:new Qe(n,r,i,o)}equalsRange(e){return Qe.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return Qe.getEndPosition(this)}static getEndPosition(e){return new Ye(e.endLineNumber,e.endColumn)}getStartPosition(){return Qe.getStartPosition(this)}static getStartPosition(e){return new Ye(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new Qe(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new Qe(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return Qe.collapseToStart(this)}static collapseToStart(e){return new Qe(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new Qe(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new Qe(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}}function et(e,t,n,r){return new fe(e,t,n).ComputeDiff(r)}class tt{constructor(e){const t=[],n=[];for(let r=0,i=e.length;r0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){const o=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),s=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let c=et(o,s,i,!0).changes;a&&(c=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r1&&a>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(a-2))break;n--,a--}(n>1||a>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,o+1,1,a)}{let n=st(e,1),a=st(t,1);const s=e.length+1,c=t.length+1;for(;n=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===n?t:n+2}function ct(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t255?255:0|e}function ut(e){return e<0?0:e>4294967295?4294967295:0|e}class ht{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=ut(e);const n=this.values,r=this.prefixSum,i=t.length;return 0!==i&&(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=ut(e),t=ut(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;const i=n.length-e;return t>=i&&(t=i),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=ut(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0,i=0,o=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],o=i-this.values[r],e=i))break;t=r+1}return new ft(r,e-o)}}class ft{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class dt{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new Ye(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;r/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();const gt={maxLen:1e3,windowSize:15,timeBudget:150};function pt(e,t,n,r,i=gt){if(n.length>i.maxLen){let o=e-i.maxLen/2;return o<0?o=0:r+=o,pt(e,t,n=n.substring(o,e+i.maxLen/2),r,i)}const o=Date.now(),a=e-1-r;let s=-1,c=null;for(let e=1;!(Date.now()-o>=i.timeBudget);e++){const r=a-i.windowSize*e;t.lastIndex=Math.max(0,r);const o=bt(t,n,a,s);if(!o&&c)break;if(c=o,r<=0)break;s=r}if(c){const e={word:c[0],startColumn:r+1+c.index,endColumn:r+1+c.index+c[0].length};return t.lastIndex=0,e}return null}function bt(e,t,n,r){let i;for(;i=e.exec(t);){const t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}class vt{constructor(e){const t=lt(e);this._defaultValue=t,this._asciiMap=vt._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){const n=lt(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class yt{constructor(e,t,n){const r=new Uint8Array(e*t);for(let i=0,o=e*t;it&&(t=o),i>n&&(n=i),a>n&&(n=a)}t++,n++;const r=new yt(n,t,0);for(let t=0,n=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let wt=null;let _t=null;class St{static _createLink(e,t,n,r,i){let o=i-1;do{const n=t.charCodeAt(o);if(2!==e.get(n))break;o--}while(o>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(o);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&o--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:o+2},url:t.substring(r,o+1)}}static computeLinks(e,t=function(){return null===wt&&(wt=new Ct([[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]])),wt}()){const n=function(){if(null===_t){_t=new vt(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}At.INSTANCE=new At;const xt=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var Et;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof Nt||!(!t||"object"!=typeof t)&&("boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:I.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:xt})}(Et||(Et={}));class Nt{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?xt:(this._emitter||(this._emitter=new V),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class kt{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Nt),this._token}cancel(){this._token?this._token instanceof Nt&&this._token.cancel():this._token=Et.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Nt&&this._token.dispose():this._token=Et.None}}class Lt{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Ot=new Lt,Tt=new Lt,Mt=new Lt,It=new Array(230),Pt=Object.create(null),Rt=Object.create(null);var Vt,Ft,Dt,Kt;!function(){const e="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",0,e,0,e,e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_CLEAR",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];let n=[],r=[];for(const e of t){const[t,i,o,a,s,c,l,u,h,f]=e;if(r[o]||(r[o]=!0,Pt[a]=o,Rt[a.toLowerCase()]=o),!n[s]){if(n[s]=!0,!c)throw new Error(`String representation missing for key code ${s} around scan code ${a}`);Ot.define(s,c),Tt.define(s,h||c),Mt.define(s,f||h||c)}l&&(It[l]=s)}}(),function(e){e.toString=function(e){return Ot.keyCodeToStr(e)},e.fromString=function(e){return Ot.strToKeyCode(e)},e.toUserSettingsUS=function(e){return Tt.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Mt.keyCodeToStr(e)},e.fromUserSettings=function(e){return Tt.strToKeyCode(e)||Mt.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Ot.keyCodeToStr(e)}}(Vt||(Vt={}));class jt extends Qe{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return jt.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new jt(this.startLineNumber,this.startColumn,e,t):new jt(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new Ye(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Ye(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new jt(e,t,this.endLineNumber,this.endColumn):new jt(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new jt(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new jt(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new jt(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new jt(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;ne.then((e=>e),(e=>{t||(t=e)})))));if(void 0!==t)throw t;return n}))},e.withAsyncBody=function(e){return new Promise(((t,n)=>qt(this,void 0,void 0,(function*(){try{yield e(t,n)}catch(e){n(e)}}))))}}(Bt||(Bt={}));class Ht{constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new V,queueMicrotask((()=>qt(this,void 0,void 0,(function*(){const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{yield Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))))}static fromArray(e){return new Ht((t=>{t.emitMany(e)}))}static fromPromise(e){return new Ht((t=>qt(this,void 0,void 0,(function*(){t.emitMany(yield e)}))))}static fromPromises(e){return new Ht((t=>qt(this,void 0,void 0,(function*(){yield Promise.all(e.map((e=>qt(this,void 0,void 0,(function*(){return t.emitOne(yield e)})))))}))))}static merge(e){return new Ht((t=>qt(this,void 0,void 0,(function*(){yield Promise.all(e.map((e=>{var n,r;return qt(this,void 0,void 0,(function*(){var i,o;try{for(n=Wt(e);!(r=yield n.next()).done;){const e=r.value;t.emitOne(e)}}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}}))})))}))))}[Symbol.asyncIterator](){let e=0;return{next:()=>qt(this,void 0,void 0,(function*(){for(;;){if(2===this._state)throw this._error;if(eqt(this,void 0,void 0,(function*(){var r,i;try{for(var o,a=Wt(e);!(o=yield a.next()).done;){const e=o.value;n.emitOne(t(e))}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=a.return)&&(yield i.call(a))}finally{if(r)throw r.error}}}))))}map(e){return Ht.map(this,e)}static filter(e,t){return new Ht((n=>qt(this,void 0,void 0,(function*(){var r,i;try{for(var o,a=Wt(e);!(o=yield a.next()).done;){const e=o.value;t(e)&&n.emitOne(e)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=a.return)&&(yield i.call(a))}finally{if(r)throw r.error}}}))))}filter(e){return Ht.filter(this,e)}static coalesce(e){return Ht.filter(e,(e=>!!e))}coalesce(){return Ht.coalesce(this)}static toPromise(e){var t,n,r,i;return qt(this,void 0,void 0,(function*(){const o=[];try{for(t=Wt(e);!(n=yield t.next()).done;){const e=n.value;o.push(e)}}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=t.return)&&(yield i.call(t))}finally{if(r)throw r.error}}return o}))}toPromise(){return Ht.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}Ht.EMPTY=Ht.fromArray([]);class zt{constructor(){this[$t]="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 e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(r);break;case 1:this.addItemFirst(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}values(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}entries(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}[($t=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}const Gt="**",Jt="/",Xt="[/\\\\]",Zt="[^/\\\\]",Yt=/\//g;function Qt(e){switch(e){case 0:return"";case 1:return`${Zt}*?`;default:return`(?:${Xt}|${Zt}+${Xt}|${Xt}${Zt}+)*?`}}function en(e,t){if(!e)return[];const n=[];let r=!1,i=!1,o="";for(const a of e){switch(a){case t:if(!r&&!i){n.push(o),o="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":i=!0;break;case"]":i=!1}o+=a}return o&&n.push(o),n}function tn(e){if(!e)return"";let t="";const n=en(e,Jt);if(n.every((e=>e===Gt)))t=".*";else{let e=!1;n.forEach(((r,i)=>{if(r===Gt)return void(e||(t+=Qt(2),e=!0));let o=!1,a="",s=!1,c="";for(const e of r)if("}"!==e&&o)a+=e;else if(!s||"]"===e&&c)switch(e){case"{":o=!0;continue;case"[":s=!0;continue;case"}":{const e=`(?:${en(a,",").map((e=>tn(e))).join("|")})`;t+=e,o=!1,a="";break}case"]":t+="["+c+"]",s=!1,c="";break;case"?":t+=Zt;continue;case"*":t+=Qt(1);continue;default:t+=j(e)}else{let t;t="-"===e?e:"^"!==e&&"!"!==e||c?e===Jt?"":j(e):"^",c+=t}ithis._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}(1e4),un=function(){return!1},hn=function(){return null};function fn(e,t){if(!e)return hn;let n;n="string"!=typeof e?e.pattern:e,n=n.trim();const r=`${n}_${!!t.trimForExclusions}`;let i,o=ln.get(r);if(o)return dn(o,e);if(nn.test(n)){const e=n.substr(4);o=function(t,r){return"string"==typeof t&&t.endsWith(e)?n:null}}else o=(i=rn.exec(mn(n,t)))?function(e,t){const n=`/${e}`,r=`\\${e}`,i=function(i,o){return"string"!=typeof i?null:o?o===e?t:null:i===e||i.endsWith(n)||i.endsWith(r)?t:null},o=[e];return i.basenames=o,i.patterns=[t],i.allBasenames=o,i}(i[1],n):(t.trimForExclusions?an:on).test(n)?function(e,t){const n=bn(e.slice(1,-1).split(",").map((e=>fn(e,t))).filter((e=>e!==hn)),e),r=n.length;if(!r)return hn;if(1===r)return n[0];const i=function(t,r){for(let i=0,o=n.length;i!!e.allBasenames));o&&(i.allBasenames=o.allBasenames);const a=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);a.length&&(i.allPaths=a);return i}(n,t):(i=sn.exec(mn(n,t)))?gn(i[1].substr(1),n,!0):(i=cn.exec(mn(n,t)))?gn(i[1],n,!1):function(e){try{const t=new RegExp(`^${tn(e)}$`);return function(n){return t.lastIndex=0,"string"==typeof n&&t.test(n)?e:null}}catch(e){return hn}}(n);return ln.set(r,o),dn(o,e)}function dn(e,t){return"string"==typeof t?e:function(n,r){return function(e,t,n,r=Ie){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!q(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===r&&n--,e.charAt(n)===r}return t.charAt(t.length-1)!==r&&(t+=r),0===e.indexOf(t)}(n,t.base,!k)?e(n.substr(t.base.length+1),r):null}}function mn(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function gn(e,t,n){const r=Ie===Le.sep,i=r?e:e.replace(Yt,Ie),o=Ie+i,a=Le.sep+e,s=n?function(n,s){return"string"!=typeof n||n!==i&&!n.endsWith(o)&&(r||n!==e&&!n.endsWith(a))?null:t}:function(n,o){return"string"!=typeof n||n!==i&&(r||n!==e)?null:t};return s.allPaths=[(n?"*/":"./")+e],s}function pn(e,t,n){return!(!e||"string"!=typeof t)&&function(e,t={}){if(!e)return un;if("string"==typeof e||function(e){const t=e;if(!t)return!1;return"string"==typeof t.base&&"string"==typeof t.pattern}(e)){const n=fn(e,t);if(n===hn)return un;const r=function(e,t){return!!n(e,t)};return n.allBasenames&&(r.allBasenames=n.allBasenames),n.allPaths&&(r.allPaths=n.allPaths),r}return function(e,t){const n=bn(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return hn;const r=fn(e,n);if(r===hn)return hn;if("boolean"==typeof t)return r;if(t){const n=t.when;if("string"==typeof n){const t=(t,i,o,a)=>{if(!a||!r(t,i))return null;const s=a(n.replace("$(basename)",o));return(c=s)&&"function"==typeof c.then?s.then((t=>t?e:null)):s?e:null;var c};return t.requiresSiblings=!0,t}}return r}(n,e[n],t))).filter((e=>e!==hn))),r=n.length;if(!r)return hn;if(!n.some((e=>!!e.requiresSiblings))){if(1===r)return n[0];const e=function(e,t){for(let r=0,i=n.length;r!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const i=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return i.length&&(e.allPaths=i),e}const i=function(e,t,r){let i;for(let o=0,a=n.length;o!!e.allBasenames));o&&(i.allBasenames=o.allBasenames);const a=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);a.length&&(i.allPaths=a);return i}(e,t)}(e)(t,void 0,n)}function bn(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const r=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let i;if(t){i=[];for(let e=0,n=r.length;e{const n=t.patterns;return n?e.concat(n):e}),[]);const o=function(e,t){if("string"!=typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=r.indexOf(t);return-1!==n?i[n]:null};o.basenames=r,o.patterns=i,o.allBasenames=r;const a=e.filter((e=>!e.basenames));return a.push(o),a}function vn(e,t,n,r){if(Array.isArray(e)){let i=0;for(const o of e){const e=vn(o,t,n,r);if(10===e)return e;e>i&&(i=e)}return i}if("string"==typeof e)return r?"*"===e?5:e===n?10:0:0;if(e){const{language:i,pattern:o,scheme:a,hasAccessToAllModels:s}=e;if(!r&&!s)return 0;let c=0;if(a)if(a===t.scheme)c=10;else{if("*"!==a)return 0;c=5}if(i)if(i===n)c=10;else{if("*"!==i)return 0;c=Math.max(c,5)}if(o){let e;if(e="string"==typeof o?o:Object.assign(Object.assign({},o),{base:Oe(o.base)}),e!==t.fsPath&&!pn(e,t.fsPath))return 0;c=10}return c}return 0}function yn(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(yn):!!e.exclusive)}class Cn{constructor(){this._clock=0,this._entries=[],this._onDidChange=new V}get onDidChange(){return this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),u((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(let e of this._entries)e._score>0&&t.push(e.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,(e=>t.push(e.provider))),t}orderedGroups(e){const t=[];let n,r;return this._orderedForEach(e,(e=>{n&&r===e._score?n.push(e.provider):(r=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t){if(e){this._updateScores(e);for(const e of this._entries)e._score>0&&t(e)}}_updateScores(e){const t={uri:e.uri.toString(),language:e.getLanguageId()};if(!this._lastCandidate||this._lastCandidate.language!==t.language||this._lastCandidate.uri!==t.uri){this._lastCandidate=t;for(let t of this._entries)if(t._score=vn(t.selector,e.uri,e.getLanguageId(),Ut(e)),yn(t.selector)&&t._score>0){for(let e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(Cn._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._scoret._score?-1:e._timet._time?-1:0}}var wn,_n,Sn,An,xn,En,Nn,kn,Ln,On,Tn,Mn,In,Pn,Rn,Vn,Fn,Dn,Kn,jn,Un,Bn,$n,qn,Wn,Hn,zn,Gn,Jn,Xn,Zn,Yn,Qn,er,tr,nr,rr,ir,or,ar,sr,cr,lr,ur,hr,fr=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class dr extends f{constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return fr(this,void 0,void 0,(function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}))}_create(){return fr(this,void 0,void 0,(function*(){const e=yield Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}))}}class mr{constructor(e,t,n){this.id=e,this.definition=t,this.description=n,mr._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return mr._allCodicons}}mr._allCodicons=[],mr.add=new mr("add",{fontCharacter:"\\ea60"}),mr.plus=new mr("plus",mr.add.definition),mr.gistNew=new mr("gist-new",mr.add.definition),mr.repoCreate=new mr("repo-create",mr.add.definition),mr.lightbulb=new mr("lightbulb",{fontCharacter:"\\ea61"}),mr.lightBulb=new mr("light-bulb",{fontCharacter:"\\ea61"}),mr.repo=new mr("repo",{fontCharacter:"\\ea62"}),mr.repoDelete=new mr("repo-delete",{fontCharacter:"\\ea62"}),mr.gistFork=new mr("gist-fork",{fontCharacter:"\\ea63"}),mr.repoForked=new mr("repo-forked",{fontCharacter:"\\ea63"}),mr.gitPullRequest=new mr("git-pull-request",{fontCharacter:"\\ea64"}),mr.gitPullRequestAbandoned=new mr("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),mr.recordKeys=new mr("record-keys",{fontCharacter:"\\ea65"}),mr.keyboard=new mr("keyboard",{fontCharacter:"\\ea65"}),mr.tag=new mr("tag",{fontCharacter:"\\ea66"}),mr.tagAdd=new mr("tag-add",{fontCharacter:"\\ea66"}),mr.tagRemove=new mr("tag-remove",{fontCharacter:"\\ea66"}),mr.person=new mr("person",{fontCharacter:"\\ea67"}),mr.personFollow=new mr("person-follow",{fontCharacter:"\\ea67"}),mr.personOutline=new mr("person-outline",{fontCharacter:"\\ea67"}),mr.personFilled=new mr("person-filled",{fontCharacter:"\\ea67"}),mr.gitBranch=new mr("git-branch",{fontCharacter:"\\ea68"}),mr.gitBranchCreate=new mr("git-branch-create",{fontCharacter:"\\ea68"}),mr.gitBranchDelete=new mr("git-branch-delete",{fontCharacter:"\\ea68"}),mr.sourceControl=new mr("source-control",{fontCharacter:"\\ea68"}),mr.mirror=new mr("mirror",{fontCharacter:"\\ea69"}),mr.mirrorPublic=new mr("mirror-public",{fontCharacter:"\\ea69"}),mr.star=new mr("star",{fontCharacter:"\\ea6a"}),mr.starAdd=new mr("star-add",{fontCharacter:"\\ea6a"}),mr.starDelete=new mr("star-delete",{fontCharacter:"\\ea6a"}),mr.starEmpty=new mr("star-empty",{fontCharacter:"\\ea6a"}),mr.comment=new mr("comment",{fontCharacter:"\\ea6b"}),mr.commentAdd=new mr("comment-add",{fontCharacter:"\\ea6b"}),mr.alert=new mr("alert",{fontCharacter:"\\ea6c"}),mr.warning=new mr("warning",{fontCharacter:"\\ea6c"}),mr.search=new mr("search",{fontCharacter:"\\ea6d"}),mr.searchSave=new mr("search-save",{fontCharacter:"\\ea6d"}),mr.logOut=new mr("log-out",{fontCharacter:"\\ea6e"}),mr.signOut=new mr("sign-out",{fontCharacter:"\\ea6e"}),mr.logIn=new mr("log-in",{fontCharacter:"\\ea6f"}),mr.signIn=new mr("sign-in",{fontCharacter:"\\ea6f"}),mr.eye=new mr("eye",{fontCharacter:"\\ea70"}),mr.eyeUnwatch=new mr("eye-unwatch",{fontCharacter:"\\ea70"}),mr.eyeWatch=new mr("eye-watch",{fontCharacter:"\\ea70"}),mr.circleFilled=new mr("circle-filled",{fontCharacter:"\\ea71"}),mr.primitiveDot=new mr("primitive-dot",{fontCharacter:"\\ea71"}),mr.closeDirty=new mr("close-dirty",{fontCharacter:"\\ea71"}),mr.debugBreakpoint=new mr("debug-breakpoint",{fontCharacter:"\\ea71"}),mr.debugBreakpointDisabled=new mr("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),mr.debugHint=new mr("debug-hint",{fontCharacter:"\\ea71"}),mr.primitiveSquare=new mr("primitive-square",{fontCharacter:"\\ea72"}),mr.edit=new mr("edit",{fontCharacter:"\\ea73"}),mr.pencil=new mr("pencil",{fontCharacter:"\\ea73"}),mr.info=new mr("info",{fontCharacter:"\\ea74"}),mr.issueOpened=new mr("issue-opened",{fontCharacter:"\\ea74"}),mr.gistPrivate=new mr("gist-private",{fontCharacter:"\\ea75"}),mr.gitForkPrivate=new mr("git-fork-private",{fontCharacter:"\\ea75"}),mr.lock=new mr("lock",{fontCharacter:"\\ea75"}),mr.mirrorPrivate=new mr("mirror-private",{fontCharacter:"\\ea75"}),mr.close=new mr("close",{fontCharacter:"\\ea76"}),mr.removeClose=new mr("remove-close",{fontCharacter:"\\ea76"}),mr.x=new mr("x",{fontCharacter:"\\ea76"}),mr.repoSync=new mr("repo-sync",{fontCharacter:"\\ea77"}),mr.sync=new mr("sync",{fontCharacter:"\\ea77"}),mr.clone=new mr("clone",{fontCharacter:"\\ea78"}),mr.desktopDownload=new mr("desktop-download",{fontCharacter:"\\ea78"}),mr.beaker=new mr("beaker",{fontCharacter:"\\ea79"}),mr.microscope=new mr("microscope",{fontCharacter:"\\ea79"}),mr.vm=new mr("vm",{fontCharacter:"\\ea7a"}),mr.deviceDesktop=new mr("device-desktop",{fontCharacter:"\\ea7a"}),mr.file=new mr("file",{fontCharacter:"\\ea7b"}),mr.fileText=new mr("file-text",{fontCharacter:"\\ea7b"}),mr.more=new mr("more",{fontCharacter:"\\ea7c"}),mr.ellipsis=new mr("ellipsis",{fontCharacter:"\\ea7c"}),mr.kebabHorizontal=new mr("kebab-horizontal",{fontCharacter:"\\ea7c"}),mr.mailReply=new mr("mail-reply",{fontCharacter:"\\ea7d"}),mr.reply=new mr("reply",{fontCharacter:"\\ea7d"}),mr.organization=new mr("organization",{fontCharacter:"\\ea7e"}),mr.organizationFilled=new mr("organization-filled",{fontCharacter:"\\ea7e"}),mr.organizationOutline=new mr("organization-outline",{fontCharacter:"\\ea7e"}),mr.newFile=new mr("new-file",{fontCharacter:"\\ea7f"}),mr.fileAdd=new mr("file-add",{fontCharacter:"\\ea7f"}),mr.newFolder=new mr("new-folder",{fontCharacter:"\\ea80"}),mr.fileDirectoryCreate=new mr("file-directory-create",{fontCharacter:"\\ea80"}),mr.trash=new mr("trash",{fontCharacter:"\\ea81"}),mr.trashcan=new mr("trashcan",{fontCharacter:"\\ea81"}),mr.history=new mr("history",{fontCharacter:"\\ea82"}),mr.clock=new mr("clock",{fontCharacter:"\\ea82"}),mr.folder=new mr("folder",{fontCharacter:"\\ea83"}),mr.fileDirectory=new mr("file-directory",{fontCharacter:"\\ea83"}),mr.symbolFolder=new mr("symbol-folder",{fontCharacter:"\\ea83"}),mr.logoGithub=new mr("logo-github",{fontCharacter:"\\ea84"}),mr.markGithub=new mr("mark-github",{fontCharacter:"\\ea84"}),mr.github=new mr("github",{fontCharacter:"\\ea84"}),mr.terminal=new mr("terminal",{fontCharacter:"\\ea85"}),mr.console=new mr("console",{fontCharacter:"\\ea85"}),mr.repl=new mr("repl",{fontCharacter:"\\ea85"}),mr.zap=new mr("zap",{fontCharacter:"\\ea86"}),mr.symbolEvent=new mr("symbol-event",{fontCharacter:"\\ea86"}),mr.error=new mr("error",{fontCharacter:"\\ea87"}),mr.stop=new mr("stop",{fontCharacter:"\\ea87"}),mr.variable=new mr("variable",{fontCharacter:"\\ea88"}),mr.symbolVariable=new mr("symbol-variable",{fontCharacter:"\\ea88"}),mr.array=new mr("array",{fontCharacter:"\\ea8a"}),mr.symbolArray=new mr("symbol-array",{fontCharacter:"\\ea8a"}),mr.symbolModule=new mr("symbol-module",{fontCharacter:"\\ea8b"}),mr.symbolPackage=new mr("symbol-package",{fontCharacter:"\\ea8b"}),mr.symbolNamespace=new mr("symbol-namespace",{fontCharacter:"\\ea8b"}),mr.symbolObject=new mr("symbol-object",{fontCharacter:"\\ea8b"}),mr.symbolMethod=new mr("symbol-method",{fontCharacter:"\\ea8c"}),mr.symbolFunction=new mr("symbol-function",{fontCharacter:"\\ea8c"}),mr.symbolConstructor=new mr("symbol-constructor",{fontCharacter:"\\ea8c"}),mr.symbolBoolean=new mr("symbol-boolean",{fontCharacter:"\\ea8f"}),mr.symbolNull=new mr("symbol-null",{fontCharacter:"\\ea8f"}),mr.symbolNumeric=new mr("symbol-numeric",{fontCharacter:"\\ea90"}),mr.symbolNumber=new mr("symbol-number",{fontCharacter:"\\ea90"}),mr.symbolStructure=new mr("symbol-structure",{fontCharacter:"\\ea91"}),mr.symbolStruct=new mr("symbol-struct",{fontCharacter:"\\ea91"}),mr.symbolParameter=new mr("symbol-parameter",{fontCharacter:"\\ea92"}),mr.symbolTypeParameter=new mr("symbol-type-parameter",{fontCharacter:"\\ea92"}),mr.symbolKey=new mr("symbol-key",{fontCharacter:"\\ea93"}),mr.symbolText=new mr("symbol-text",{fontCharacter:"\\ea93"}),mr.symbolReference=new mr("symbol-reference",{fontCharacter:"\\ea94"}),mr.goToFile=new mr("go-to-file",{fontCharacter:"\\ea94"}),mr.symbolEnum=new mr("symbol-enum",{fontCharacter:"\\ea95"}),mr.symbolValue=new mr("symbol-value",{fontCharacter:"\\ea95"}),mr.symbolRuler=new mr("symbol-ruler",{fontCharacter:"\\ea96"}),mr.symbolUnit=new mr("symbol-unit",{fontCharacter:"\\ea96"}),mr.activateBreakpoints=new mr("activate-breakpoints",{fontCharacter:"\\ea97"}),mr.archive=new mr("archive",{fontCharacter:"\\ea98"}),mr.arrowBoth=new mr("arrow-both",{fontCharacter:"\\ea99"}),mr.arrowDown=new mr("arrow-down",{fontCharacter:"\\ea9a"}),mr.arrowLeft=new mr("arrow-left",{fontCharacter:"\\ea9b"}),mr.arrowRight=new mr("arrow-right",{fontCharacter:"\\ea9c"}),mr.arrowSmallDown=new mr("arrow-small-down",{fontCharacter:"\\ea9d"}),mr.arrowSmallLeft=new mr("arrow-small-left",{fontCharacter:"\\ea9e"}),mr.arrowSmallRight=new mr("arrow-small-right",{fontCharacter:"\\ea9f"}),mr.arrowSmallUp=new mr("arrow-small-up",{fontCharacter:"\\eaa0"}),mr.arrowUp=new mr("arrow-up",{fontCharacter:"\\eaa1"}),mr.bell=new mr("bell",{fontCharacter:"\\eaa2"}),mr.bold=new mr("bold",{fontCharacter:"\\eaa3"}),mr.book=new mr("book",{fontCharacter:"\\eaa4"}),mr.bookmark=new mr("bookmark",{fontCharacter:"\\eaa5"}),mr.debugBreakpointConditionalUnverified=new mr("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),mr.debugBreakpointConditional=new mr("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),mr.debugBreakpointConditionalDisabled=new mr("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),mr.debugBreakpointDataUnverified=new mr("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),mr.debugBreakpointData=new mr("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),mr.debugBreakpointDataDisabled=new mr("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),mr.debugBreakpointLogUnverified=new mr("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),mr.debugBreakpointLog=new mr("debug-breakpoint-log",{fontCharacter:"\\eaab"}),mr.debugBreakpointLogDisabled=new mr("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),mr.briefcase=new mr("briefcase",{fontCharacter:"\\eaac"}),mr.broadcast=new mr("broadcast",{fontCharacter:"\\eaad"}),mr.browser=new mr("browser",{fontCharacter:"\\eaae"}),mr.bug=new mr("bug",{fontCharacter:"\\eaaf"}),mr.calendar=new mr("calendar",{fontCharacter:"\\eab0"}),mr.caseSensitive=new mr("case-sensitive",{fontCharacter:"\\eab1"}),mr.check=new mr("check",{fontCharacter:"\\eab2"}),mr.checklist=new mr("checklist",{fontCharacter:"\\eab3"}),mr.chevronDown=new mr("chevron-down",{fontCharacter:"\\eab4"}),mr.dropDownButton=new mr("drop-down-button",mr.chevronDown.definition),mr.chevronLeft=new mr("chevron-left",{fontCharacter:"\\eab5"}),mr.chevronRight=new mr("chevron-right",{fontCharacter:"\\eab6"}),mr.chevronUp=new mr("chevron-up",{fontCharacter:"\\eab7"}),mr.chromeClose=new mr("chrome-close",{fontCharacter:"\\eab8"}),mr.chromeMaximize=new mr("chrome-maximize",{fontCharacter:"\\eab9"}),mr.chromeMinimize=new mr("chrome-minimize",{fontCharacter:"\\eaba"}),mr.chromeRestore=new mr("chrome-restore",{fontCharacter:"\\eabb"}),mr.circleOutline=new mr("circle-outline",{fontCharacter:"\\eabc"}),mr.debugBreakpointUnverified=new mr("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),mr.circleSlash=new mr("circle-slash",{fontCharacter:"\\eabd"}),mr.circuitBoard=new mr("circuit-board",{fontCharacter:"\\eabe"}),mr.clearAll=new mr("clear-all",{fontCharacter:"\\eabf"}),mr.clippy=new mr("clippy",{fontCharacter:"\\eac0"}),mr.closeAll=new mr("close-all",{fontCharacter:"\\eac1"}),mr.cloudDownload=new mr("cloud-download",{fontCharacter:"\\eac2"}),mr.cloudUpload=new mr("cloud-upload",{fontCharacter:"\\eac3"}),mr.code=new mr("code",{fontCharacter:"\\eac4"}),mr.collapseAll=new mr("collapse-all",{fontCharacter:"\\eac5"}),mr.colorMode=new mr("color-mode",{fontCharacter:"\\eac6"}),mr.commentDiscussion=new mr("comment-discussion",{fontCharacter:"\\eac7"}),mr.compareChanges=new mr("compare-changes",{fontCharacter:"\\eafd"}),mr.creditCard=new mr("credit-card",{fontCharacter:"\\eac9"}),mr.dash=new mr("dash",{fontCharacter:"\\eacc"}),mr.dashboard=new mr("dashboard",{fontCharacter:"\\eacd"}),mr.database=new mr("database",{fontCharacter:"\\eace"}),mr.debugContinue=new mr("debug-continue",{fontCharacter:"\\eacf"}),mr.debugDisconnect=new mr("debug-disconnect",{fontCharacter:"\\ead0"}),mr.debugPause=new mr("debug-pause",{fontCharacter:"\\ead1"}),mr.debugRestart=new mr("debug-restart",{fontCharacter:"\\ead2"}),mr.debugStart=new mr("debug-start",{fontCharacter:"\\ead3"}),mr.debugStepInto=new mr("debug-step-into",{fontCharacter:"\\ead4"}),mr.debugStepOut=new mr("debug-step-out",{fontCharacter:"\\ead5"}),mr.debugStepOver=new mr("debug-step-over",{fontCharacter:"\\ead6"}),mr.debugStop=new mr("debug-stop",{fontCharacter:"\\ead7"}),mr.debug=new mr("debug",{fontCharacter:"\\ead8"}),mr.deviceCameraVideo=new mr("device-camera-video",{fontCharacter:"\\ead9"}),mr.deviceCamera=new mr("device-camera",{fontCharacter:"\\eada"}),mr.deviceMobile=new mr("device-mobile",{fontCharacter:"\\eadb"}),mr.diffAdded=new mr("diff-added",{fontCharacter:"\\eadc"}),mr.diffIgnored=new mr("diff-ignored",{fontCharacter:"\\eadd"}),mr.diffModified=new mr("diff-modified",{fontCharacter:"\\eade"}),mr.diffRemoved=new mr("diff-removed",{fontCharacter:"\\eadf"}),mr.diffRenamed=new mr("diff-renamed",{fontCharacter:"\\eae0"}),mr.diff=new mr("diff",{fontCharacter:"\\eae1"}),mr.discard=new mr("discard",{fontCharacter:"\\eae2"}),mr.editorLayout=new mr("editor-layout",{fontCharacter:"\\eae3"}),mr.emptyWindow=new mr("empty-window",{fontCharacter:"\\eae4"}),mr.exclude=new mr("exclude",{fontCharacter:"\\eae5"}),mr.extensions=new mr("extensions",{fontCharacter:"\\eae6"}),mr.eyeClosed=new mr("eye-closed",{fontCharacter:"\\eae7"}),mr.fileBinary=new mr("file-binary",{fontCharacter:"\\eae8"}),mr.fileCode=new mr("file-code",{fontCharacter:"\\eae9"}),mr.fileMedia=new mr("file-media",{fontCharacter:"\\eaea"}),mr.filePdf=new mr("file-pdf",{fontCharacter:"\\eaeb"}),mr.fileSubmodule=new mr("file-submodule",{fontCharacter:"\\eaec"}),mr.fileSymlinkDirectory=new mr("file-symlink-directory",{fontCharacter:"\\eaed"}),mr.fileSymlinkFile=new mr("file-symlink-file",{fontCharacter:"\\eaee"}),mr.fileZip=new mr("file-zip",{fontCharacter:"\\eaef"}),mr.files=new mr("files",{fontCharacter:"\\eaf0"}),mr.filter=new mr("filter",{fontCharacter:"\\eaf1"}),mr.flame=new mr("flame",{fontCharacter:"\\eaf2"}),mr.foldDown=new mr("fold-down",{fontCharacter:"\\eaf3"}),mr.foldUp=new mr("fold-up",{fontCharacter:"\\eaf4"}),mr.fold=new mr("fold",{fontCharacter:"\\eaf5"}),mr.folderActive=new mr("folder-active",{fontCharacter:"\\eaf6"}),mr.folderOpened=new mr("folder-opened",{fontCharacter:"\\eaf7"}),mr.gear=new mr("gear",{fontCharacter:"\\eaf8"}),mr.gift=new mr("gift",{fontCharacter:"\\eaf9"}),mr.gistSecret=new mr("gist-secret",{fontCharacter:"\\eafa"}),mr.gist=new mr("gist",{fontCharacter:"\\eafb"}),mr.gitCommit=new mr("git-commit",{fontCharacter:"\\eafc"}),mr.gitCompare=new mr("git-compare",{fontCharacter:"\\eafd"}),mr.gitMerge=new mr("git-merge",{fontCharacter:"\\eafe"}),mr.githubAction=new mr("github-action",{fontCharacter:"\\eaff"}),mr.githubAlt=new mr("github-alt",{fontCharacter:"\\eb00"}),mr.globe=new mr("globe",{fontCharacter:"\\eb01"}),mr.grabber=new mr("grabber",{fontCharacter:"\\eb02"}),mr.graph=new mr("graph",{fontCharacter:"\\eb03"}),mr.gripper=new mr("gripper",{fontCharacter:"\\eb04"}),mr.heart=new mr("heart",{fontCharacter:"\\eb05"}),mr.home=new mr("home",{fontCharacter:"\\eb06"}),mr.horizontalRule=new mr("horizontal-rule",{fontCharacter:"\\eb07"}),mr.hubot=new mr("hubot",{fontCharacter:"\\eb08"}),mr.inbox=new mr("inbox",{fontCharacter:"\\eb09"}),mr.issueClosed=new mr("issue-closed",{fontCharacter:"\\eba4"}),mr.issueReopened=new mr("issue-reopened",{fontCharacter:"\\eb0b"}),mr.issues=new mr("issues",{fontCharacter:"\\eb0c"}),mr.italic=new mr("italic",{fontCharacter:"\\eb0d"}),mr.jersey=new mr("jersey",{fontCharacter:"\\eb0e"}),mr.json=new mr("json",{fontCharacter:"\\eb0f"}),mr.kebabVertical=new mr("kebab-vertical",{fontCharacter:"\\eb10"}),mr.key=new mr("key",{fontCharacter:"\\eb11"}),mr.law=new mr("law",{fontCharacter:"\\eb12"}),mr.lightbulbAutofix=new mr("lightbulb-autofix",{fontCharacter:"\\eb13"}),mr.linkExternal=new mr("link-external",{fontCharacter:"\\eb14"}),mr.link=new mr("link",{fontCharacter:"\\eb15"}),mr.listOrdered=new mr("list-ordered",{fontCharacter:"\\eb16"}),mr.listUnordered=new mr("list-unordered",{fontCharacter:"\\eb17"}),mr.liveShare=new mr("live-share",{fontCharacter:"\\eb18"}),mr.loading=new mr("loading",{fontCharacter:"\\eb19"}),mr.location=new mr("location",{fontCharacter:"\\eb1a"}),mr.mailRead=new mr("mail-read",{fontCharacter:"\\eb1b"}),mr.mail=new mr("mail",{fontCharacter:"\\eb1c"}),mr.markdown=new mr("markdown",{fontCharacter:"\\eb1d"}),mr.megaphone=new mr("megaphone",{fontCharacter:"\\eb1e"}),mr.mention=new mr("mention",{fontCharacter:"\\eb1f"}),mr.milestone=new mr("milestone",{fontCharacter:"\\eb20"}),mr.mortarBoard=new mr("mortar-board",{fontCharacter:"\\eb21"}),mr.move=new mr("move",{fontCharacter:"\\eb22"}),mr.multipleWindows=new mr("multiple-windows",{fontCharacter:"\\eb23"}),mr.mute=new mr("mute",{fontCharacter:"\\eb24"}),mr.noNewline=new mr("no-newline",{fontCharacter:"\\eb25"}),mr.note=new mr("note",{fontCharacter:"\\eb26"}),mr.octoface=new mr("octoface",{fontCharacter:"\\eb27"}),mr.openPreview=new mr("open-preview",{fontCharacter:"\\eb28"}),mr.package_=new mr("package",{fontCharacter:"\\eb29"}),mr.paintcan=new mr("paintcan",{fontCharacter:"\\eb2a"}),mr.pin=new mr("pin",{fontCharacter:"\\eb2b"}),mr.play=new mr("play",{fontCharacter:"\\eb2c"}),mr.run=new mr("run",{fontCharacter:"\\eb2c"}),mr.plug=new mr("plug",{fontCharacter:"\\eb2d"}),mr.preserveCase=new mr("preserve-case",{fontCharacter:"\\eb2e"}),mr.preview=new mr("preview",{fontCharacter:"\\eb2f"}),mr.project=new mr("project",{fontCharacter:"\\eb30"}),mr.pulse=new mr("pulse",{fontCharacter:"\\eb31"}),mr.question=new mr("question",{fontCharacter:"\\eb32"}),mr.quote=new mr("quote",{fontCharacter:"\\eb33"}),mr.radioTower=new mr("radio-tower",{fontCharacter:"\\eb34"}),mr.reactions=new mr("reactions",{fontCharacter:"\\eb35"}),mr.references=new mr("references",{fontCharacter:"\\eb36"}),mr.refresh=new mr("refresh",{fontCharacter:"\\eb37"}),mr.regex=new mr("regex",{fontCharacter:"\\eb38"}),mr.remoteExplorer=new mr("remote-explorer",{fontCharacter:"\\eb39"}),mr.remote=new mr("remote",{fontCharacter:"\\eb3a"}),mr.remove=new mr("remove",{fontCharacter:"\\eb3b"}),mr.replaceAll=new mr("replace-all",{fontCharacter:"\\eb3c"}),mr.replace=new mr("replace",{fontCharacter:"\\eb3d"}),mr.repoClone=new mr("repo-clone",{fontCharacter:"\\eb3e"}),mr.repoForcePush=new mr("repo-force-push",{fontCharacter:"\\eb3f"}),mr.repoPull=new mr("repo-pull",{fontCharacter:"\\eb40"}),mr.repoPush=new mr("repo-push",{fontCharacter:"\\eb41"}),mr.report=new mr("report",{fontCharacter:"\\eb42"}),mr.requestChanges=new mr("request-changes",{fontCharacter:"\\eb43"}),mr.rocket=new mr("rocket",{fontCharacter:"\\eb44"}),mr.rootFolderOpened=new mr("root-folder-opened",{fontCharacter:"\\eb45"}),mr.rootFolder=new mr("root-folder",{fontCharacter:"\\eb46"}),mr.rss=new mr("rss",{fontCharacter:"\\eb47"}),mr.ruby=new mr("ruby",{fontCharacter:"\\eb48"}),mr.saveAll=new mr("save-all",{fontCharacter:"\\eb49"}),mr.saveAs=new mr("save-as",{fontCharacter:"\\eb4a"}),mr.save=new mr("save",{fontCharacter:"\\eb4b"}),mr.screenFull=new mr("screen-full",{fontCharacter:"\\eb4c"}),mr.screenNormal=new mr("screen-normal",{fontCharacter:"\\eb4d"}),mr.searchStop=new mr("search-stop",{fontCharacter:"\\eb4e"}),mr.server=new mr("server",{fontCharacter:"\\eb50"}),mr.settingsGear=new mr("settings-gear",{fontCharacter:"\\eb51"}),mr.settings=new mr("settings",{fontCharacter:"\\eb52"}),mr.shield=new mr("shield",{fontCharacter:"\\eb53"}),mr.smiley=new mr("smiley",{fontCharacter:"\\eb54"}),mr.sortPrecedence=new mr("sort-precedence",{fontCharacter:"\\eb55"}),mr.splitHorizontal=new mr("split-horizontal",{fontCharacter:"\\eb56"}),mr.splitVertical=new mr("split-vertical",{fontCharacter:"\\eb57"}),mr.squirrel=new mr("squirrel",{fontCharacter:"\\eb58"}),mr.starFull=new mr("star-full",{fontCharacter:"\\eb59"}),mr.starHalf=new mr("star-half",{fontCharacter:"\\eb5a"}),mr.symbolClass=new mr("symbol-class",{fontCharacter:"\\eb5b"}),mr.symbolColor=new mr("symbol-color",{fontCharacter:"\\eb5c"}),mr.symbolCustomColor=new mr("symbol-customcolor",{fontCharacter:"\\eb5c"}),mr.symbolConstant=new mr("symbol-constant",{fontCharacter:"\\eb5d"}),mr.symbolEnumMember=new mr("symbol-enum-member",{fontCharacter:"\\eb5e"}),mr.symbolField=new mr("symbol-field",{fontCharacter:"\\eb5f"}),mr.symbolFile=new mr("symbol-file",{fontCharacter:"\\eb60"}),mr.symbolInterface=new mr("symbol-interface",{fontCharacter:"\\eb61"}),mr.symbolKeyword=new mr("symbol-keyword",{fontCharacter:"\\eb62"}),mr.symbolMisc=new mr("symbol-misc",{fontCharacter:"\\eb63"}),mr.symbolOperator=new mr("symbol-operator",{fontCharacter:"\\eb64"}),mr.symbolProperty=new mr("symbol-property",{fontCharacter:"\\eb65"}),mr.wrench=new mr("wrench",{fontCharacter:"\\eb65"}),mr.wrenchSubaction=new mr("wrench-subaction",{fontCharacter:"\\eb65"}),mr.symbolSnippet=new mr("symbol-snippet",{fontCharacter:"\\eb66"}),mr.tasklist=new mr("tasklist",{fontCharacter:"\\eb67"}),mr.telescope=new mr("telescope",{fontCharacter:"\\eb68"}),mr.textSize=new mr("text-size",{fontCharacter:"\\eb69"}),mr.threeBars=new mr("three-bars",{fontCharacter:"\\eb6a"}),mr.thumbsdown=new mr("thumbsdown",{fontCharacter:"\\eb6b"}),mr.thumbsup=new mr("thumbsup",{fontCharacter:"\\eb6c"}),mr.tools=new mr("tools",{fontCharacter:"\\eb6d"}),mr.triangleDown=new mr("triangle-down",{fontCharacter:"\\eb6e"}),mr.triangleLeft=new mr("triangle-left",{fontCharacter:"\\eb6f"}),mr.triangleRight=new mr("triangle-right",{fontCharacter:"\\eb70"}),mr.triangleUp=new mr("triangle-up",{fontCharacter:"\\eb71"}),mr.twitter=new mr("twitter",{fontCharacter:"\\eb72"}),mr.unfold=new mr("unfold",{fontCharacter:"\\eb73"}),mr.unlock=new mr("unlock",{fontCharacter:"\\eb74"}),mr.unmute=new mr("unmute",{fontCharacter:"\\eb75"}),mr.unverified=new mr("unverified",{fontCharacter:"\\eb76"}),mr.verified=new mr("verified",{fontCharacter:"\\eb77"}),mr.versions=new mr("versions",{fontCharacter:"\\eb78"}),mr.vmActive=new mr("vm-active",{fontCharacter:"\\eb79"}),mr.vmOutline=new mr("vm-outline",{fontCharacter:"\\eb7a"}),mr.vmRunning=new mr("vm-running",{fontCharacter:"\\eb7b"}),mr.watch=new mr("watch",{fontCharacter:"\\eb7c"}),mr.whitespace=new mr("whitespace",{fontCharacter:"\\eb7d"}),mr.wholeWord=new mr("whole-word",{fontCharacter:"\\eb7e"}),mr.window=new mr("window",{fontCharacter:"\\eb7f"}),mr.wordWrap=new mr("word-wrap",{fontCharacter:"\\eb80"}),mr.zoomIn=new mr("zoom-in",{fontCharacter:"\\eb81"}),mr.zoomOut=new mr("zoom-out",{fontCharacter:"\\eb82"}),mr.listFilter=new mr("list-filter",{fontCharacter:"\\eb83"}),mr.listFlat=new mr("list-flat",{fontCharacter:"\\eb84"}),mr.listSelection=new mr("list-selection",{fontCharacter:"\\eb85"}),mr.selection=new mr("selection",{fontCharacter:"\\eb85"}),mr.listTree=new mr("list-tree",{fontCharacter:"\\eb86"}),mr.debugBreakpointFunctionUnverified=new mr("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),mr.debugBreakpointFunction=new mr("debug-breakpoint-function",{fontCharacter:"\\eb88"}),mr.debugBreakpointFunctionDisabled=new mr("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),mr.debugStackframeActive=new mr("debug-stackframe-active",{fontCharacter:"\\eb89"}),mr.debugStackframeDot=new mr("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),mr.debugStackframe=new mr("debug-stackframe",{fontCharacter:"\\eb8b"}),mr.debugStackframeFocused=new mr("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),mr.debugBreakpointUnsupported=new mr("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),mr.symbolString=new mr("symbol-string",{fontCharacter:"\\eb8d"}),mr.debugReverseContinue=new mr("debug-reverse-continue",{fontCharacter:"\\eb8e"}),mr.debugStepBack=new mr("debug-step-back",{fontCharacter:"\\eb8f"}),mr.debugRestartFrame=new mr("debug-restart-frame",{fontCharacter:"\\eb90"}),mr.callIncoming=new mr("call-incoming",{fontCharacter:"\\eb92"}),mr.callOutgoing=new mr("call-outgoing",{fontCharacter:"\\eb93"}),mr.menu=new mr("menu",{fontCharacter:"\\eb94"}),mr.expandAll=new mr("expand-all",{fontCharacter:"\\eb95"}),mr.feedback=new mr("feedback",{fontCharacter:"\\eb96"}),mr.groupByRefType=new mr("group-by-ref-type",{fontCharacter:"\\eb97"}),mr.ungroupByRefType=new mr("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),mr.account=new mr("account",{fontCharacter:"\\eb99"}),mr.bellDot=new mr("bell-dot",{fontCharacter:"\\eb9a"}),mr.debugConsole=new mr("debug-console",{fontCharacter:"\\eb9b"}),mr.library=new mr("library",{fontCharacter:"\\eb9c"}),mr.output=new mr("output",{fontCharacter:"\\eb9d"}),mr.runAll=new mr("run-all",{fontCharacter:"\\eb9e"}),mr.syncIgnored=new mr("sync-ignored",{fontCharacter:"\\eb9f"}),mr.pinned=new mr("pinned",{fontCharacter:"\\eba0"}),mr.githubInverted=new mr("github-inverted",{fontCharacter:"\\eba1"}),mr.debugAlt=new mr("debug-alt",{fontCharacter:"\\eb91"}),mr.serverProcess=new mr("server-process",{fontCharacter:"\\eba2"}),mr.serverEnvironment=new mr("server-environment",{fontCharacter:"\\eba3"}),mr.pass=new mr("pass",{fontCharacter:"\\eba4"}),mr.stopCircle=new mr("stop-circle",{fontCharacter:"\\eba5"}),mr.playCircle=new mr("play-circle",{fontCharacter:"\\eba6"}),mr.record=new mr("record",{fontCharacter:"\\eba7"}),mr.debugAltSmall=new mr("debug-alt-small",{fontCharacter:"\\eba8"}),mr.vmConnect=new mr("vm-connect",{fontCharacter:"\\eba9"}),mr.cloud=new mr("cloud",{fontCharacter:"\\ebaa"}),mr.merge=new mr("merge",{fontCharacter:"\\ebab"}),mr.exportIcon=new mr("export",{fontCharacter:"\\ebac"}),mr.graphLeft=new mr("graph-left",{fontCharacter:"\\ebad"}),mr.magnet=new mr("magnet",{fontCharacter:"\\ebae"}),mr.notebook=new mr("notebook",{fontCharacter:"\\ebaf"}),mr.redo=new mr("redo",{fontCharacter:"\\ebb0"}),mr.checkAll=new mr("check-all",{fontCharacter:"\\ebb1"}),mr.pinnedDirty=new mr("pinned-dirty",{fontCharacter:"\\ebb2"}),mr.passFilled=new mr("pass-filled",{fontCharacter:"\\ebb3"}),mr.circleLargeFilled=new mr("circle-large-filled",{fontCharacter:"\\ebb4"}),mr.circleLargeOutline=new mr("circle-large-outline",{fontCharacter:"\\ebb5"}),mr.combine=new mr("combine",{fontCharacter:"\\ebb6"}),mr.gather=new mr("gather",{fontCharacter:"\\ebb6"}),mr.table=new mr("table",{fontCharacter:"\\ebb7"}),mr.variableGroup=new mr("variable-group",{fontCharacter:"\\ebb8"}),mr.typeHierarchy=new mr("type-hierarchy",{fontCharacter:"\\ebb9"}),mr.typeHierarchySub=new mr("type-hierarchy-sub",{fontCharacter:"\\ebba"}),mr.typeHierarchySuper=new mr("type-hierarchy-super",{fontCharacter:"\\ebbb"}),mr.gitPullRequestCreate=new mr("git-pull-request-create",{fontCharacter:"\\ebbc"}),mr.runAbove=new mr("run-above",{fontCharacter:"\\ebbd"}),mr.runBelow=new mr("run-below",{fontCharacter:"\\ebbe"}),mr.notebookTemplate=new mr("notebook-template",{fontCharacter:"\\ebbf"}),mr.debugRerun=new mr("debug-rerun",{fontCharacter:"\\ebc0"}),mr.workspaceTrusted=new mr("workspace-trusted",{fontCharacter:"\\ebc1"}),mr.workspaceUntrusted=new mr("workspace-untrusted",{fontCharacter:"\\ebc2"}),mr.workspaceUnspecified=new mr("workspace-unspecified",{fontCharacter:"\\ebc3"}),mr.terminalCmd=new mr("terminal-cmd",{fontCharacter:"\\ebc4"}),mr.terminalDebian=new mr("terminal-debian",{fontCharacter:"\\ebc5"}),mr.terminalLinux=new mr("terminal-linux",{fontCharacter:"\\ebc6"}),mr.terminalPowershell=new mr("terminal-powershell",{fontCharacter:"\\ebc7"}),mr.terminalTmux=new mr("terminal-tmux",{fontCharacter:"\\ebc8"}),mr.terminalUbuntu=new mr("terminal-ubuntu",{fontCharacter:"\\ebc9"}),mr.terminalBash=new mr("terminal-bash",{fontCharacter:"\\ebca"}),mr.arrowSwap=new mr("arrow-swap",{fontCharacter:"\\ebcb"}),mr.copy=new mr("copy",{fontCharacter:"\\ebcc"}),mr.personAdd=new mr("person-add",{fontCharacter:"\\ebcd"}),mr.filterFilled=new mr("filter-filled",{fontCharacter:"\\ebce"}),mr.wand=new mr("wand",{fontCharacter:"\\ebcf"}),mr.debugLineByLine=new mr("debug-line-by-line",{fontCharacter:"\\ebd0"}),mr.inspect=new mr("inspect",{fontCharacter:"\\ebd1"}),mr.layers=new mr("layers",{fontCharacter:"\\ebd2"}),mr.layersDot=new mr("layers-dot",{fontCharacter:"\\ebd3"}),mr.layersActive=new mr("layers-active",{fontCharacter:"\\ebd4"}),mr.compass=new mr("compass",{fontCharacter:"\\ebd5"}),mr.compassDot=new mr("compass-dot",{fontCharacter:"\\ebd6"}),mr.compassActive=new mr("compass-active",{fontCharacter:"\\ebd7"}),mr.azure=new mr("azure",{fontCharacter:"\\ebd8"}),mr.issueDraft=new mr("issue-draft",{fontCharacter:"\\ebd9"}),mr.gitPullRequestClosed=new mr("git-pull-request-closed",{fontCharacter:"\\ebda"}),mr.gitPullRequestDraft=new mr("git-pull-request-draft",{fontCharacter:"\\ebdb"}),mr.debugAll=new mr("debug-all",{fontCharacter:"\\ebdc"}),mr.debugCoverage=new mr("debug-coverage",{fontCharacter:"\\ebdd"}),mr.runErrors=new mr("run-errors",{fontCharacter:"\\ebde"}),mr.folderLibrary=new mr("folder-library",{fontCharacter:"\\ebdf"}),mr.debugContinueSmall=new mr("debug-continue-small",{fontCharacter:"\\ebe0"}),mr.beakerStop=new mr("beaker-stop",{fontCharacter:"\\ebe1"}),mr.graphLine=new mr("graph-line",{fontCharacter:"\\ebe2"}),mr.graphScatter=new mr("graph-scatter",{fontCharacter:"\\ebe3"}),mr.pieChart=new mr("pie-chart",{fontCharacter:"\\ebe4"}),mr.bracket=new mr("bracket",mr.json.definition),mr.bracketDot=new mr("bracket-dot",{fontCharacter:"\\ebe5"}),mr.bracketError=new mr("bracket-error",{fontCharacter:"\\ebe6"}),mr.lockSmall=new mr("lock-small",{fontCharacter:"\\ebe7"}),mr.azureDevops=new mr("azure-devops",{fontCharacter:"\\ebe8"}),mr.verifiedFilled=new mr("verified-filled",{fontCharacter:"\\ebe9"}),mr.newLine=new mr("newline",{fontCharacter:"\\ebea"}),mr.layout=new mr("layout",{fontCharacter:"\\ebeb"}),mr.layoutActivitybarLeft=new mr("layout-activitybar-left",{fontCharacter:"\\ebec"}),mr.layoutActivitybarRight=new mr("layout-activitybar-right",{fontCharacter:"\\ebed"}),mr.layoutPanelLeft=new mr("layout-panel-left",{fontCharacter:"\\ebee"}),mr.layoutPanelCenter=new mr("layout-panel-center",{fontCharacter:"\\ebef"}),mr.layoutPanelJustify=new mr("layout-panel-justify",{fontCharacter:"\\ebf0"}),mr.layoutPanelRight=new mr("layout-panel-right",{fontCharacter:"\\ebf1"}),mr.layoutPanel=new mr("layout-panel",{fontCharacter:"\\ebf2"}),mr.layoutSidebarLeft=new mr("layout-sidebar-left",{fontCharacter:"\\ebf3"}),mr.layoutSidebarRight=new mr("layout-sidebar-right",{fontCharacter:"\\ebf4"}),mr.layoutStatusbar=new mr("layout-statusbar",{fontCharacter:"\\ebf5"}),mr.layoutMenubar=new mr("layout-menubar",{fontCharacter:"\\ebf6"}),mr.layoutCentered=new mr("layout-centered",{fontCharacter:"\\ebf7"}),mr.target=new mr("target",{fontCharacter:"\\ebf8"}),mr.dialogError=new mr("dialog-error",mr.error.definition),mr.dialogWarning=new mr("dialog-warning",mr.warning.definition),mr.dialogInfo=new mr("dialog-info",mr.info.definition),mr.dialogClose=new mr("dialog-close",mr.close.definition),mr.treeItemExpanded=new mr("tree-item-expanded",mr.chevronDown.definition),mr.treeFilterOnTypeOn=new mr("tree-filter-on-type-on",mr.listFilter.definition),mr.treeFilterOnTypeOff=new mr("tree-filter-on-type-off",mr.listSelection.definition),mr.treeFilterClear=new mr("tree-filter-clear",mr.close.definition),mr.treeItemLoading=new mr("tree-item-loading",mr.loading.definition),mr.menuSelection=new mr("menu-selection",mr.check.definition),mr.menuSubmenu=new mr("menu-submenu",mr.chevronRight.definition),mr.menuBarMore=new mr("menubar-more",mr.more.definition),mr.scrollbarButtonLeft=new mr("scrollbar-button-left",mr.triangleLeft.definition),mr.scrollbarButtonRight=new mr("scrollbar-button-right",mr.triangleRight.definition),mr.scrollbarButtonUp=new mr("scrollbar-button-up",mr.triangleUp.definition),mr.scrollbarButtonDown=new mr("scrollbar-button-down",mr.triangleDown.definition),mr.toolBarMore=new mr("toolbar-more",mr.more.definition),mr.quickInputBack=new mr("quick-input-back",mr.arrowLeft.definition),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){if(e instanceof mr)return["codicon","codicon-"+e.id];const r=t.exec(e.id);if(!r)return n(mr.error);let[,i,o]=r;const a=["codicon","codicon-"+i];return o&&a.push("codicon-modifier-"+o.substr(1)),a}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")}}(wn||(wn={}));class gr{constructor(e,t,n){this._tokenBrand=void 0,this.offset=e,this.type=t,this.language=n}toString(){return"("+this.offset+", "+this.type+")"}}!function(e){const t=new Map;t.set(0,mr.symbolMethod),t.set(1,mr.symbolFunction),t.set(2,mr.symbolConstructor),t.set(3,mr.symbolField),t.set(4,mr.symbolVariable),t.set(5,mr.symbolClass),t.set(6,mr.symbolStruct),t.set(7,mr.symbolInterface),t.set(8,mr.symbolModule),t.set(9,mr.symbolProperty),t.set(10,mr.symbolEvent),t.set(11,mr.symbolOperator),t.set(12,mr.symbolUnit),t.set(13,mr.symbolValue),t.set(15,mr.symbolEnum),t.set(14,mr.symbolConstant),t.set(15,mr.symbolEnum),t.set(16,mr.symbolEnumMember),t.set(17,mr.symbolKeyword),t.set(27,mr.symbolSnippet),t.set(18,mr.symbolText),t.set(19,mr.symbolColor),t.set(20,mr.symbolFile),t.set(21,mr.symbolReference),t.set(22,mr.symbolCustomColor),t.set(23,mr.symbolFolder),t.set(24,mr.symbolTypeParameter),t.set(25,mr.account),t.set(26,mr.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=mr.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let r=n.get(e);return void 0!==r||t||(r=9),r}}(_n||(_n={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(Sn||(Sn={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(An||(An={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(xn||(xn={})),function(e){const t=new Map;t.set(0,mr.symbolFile),t.set(1,mr.symbolModule),t.set(2,mr.symbolNamespace),t.set(3,mr.symbolPackage),t.set(4,mr.symbolClass),t.set(5,mr.symbolMethod),t.set(6,mr.symbolProperty),t.set(7,mr.symbolField),t.set(8,mr.symbolConstructor),t.set(9,mr.symbolEnum),t.set(10,mr.symbolInterface),t.set(11,mr.symbolFunction),t.set(12,mr.symbolVariable),t.set(13,mr.symbolConstant),t.set(14,mr.symbolString),t.set(15,mr.symbolNumber),t.set(16,mr.symbolBoolean),t.set(17,mr.symbolArray),t.set(18,mr.symbolObject),t.set(19,mr.symbolKey),t.set(20,mr.symbolNull),t.set(21,mr.symbolEnumMember),t.set(22,mr.symbolStruct),t.set(23,mr.symbolEvent),t.set(24,mr.symbolOperator),t.set(25,mr.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=mr.symbolProperty),n}}(En||(En={})),function(e){e.is=function(e){return!(!e||"object"!=typeof e)&&("string"==typeof e.id&&"string"==typeof e.title)}}(Nn||(Nn={})),function(e){e[e.Other=0]="Other",e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(kn||(kn={})),new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new Cn,new class{constructor(){this._map=new Map,this._factories=new Map,this._onDidChange=new V,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._map.set(e,t),this.fire([e]),u((()=>{this._map.get(e)===t&&(this._map.delete(e),this.fire([e]))}))}registerFactory(e,t){var n;null===(n=this._factories.get(e))||void 0===n||n.dispose();const r=new dr(this,e,t);return this._factories.set(e,r),u((()=>{const t=this._factories.get(e);t&&t===r&&(this._factories.delete(e),t.dispose())}))}getOrCreate(e){return fr(this,void 0,void 0,(function*(){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(yield n.resolve(),this.get(e))}))}get(e){return this._map.get(e)||null}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(Ln||(Ln={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(On||(On={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(Tn||(Tn={})),function(e){e[e.Deprecated=1]="Deprecated"}(Mn||(Mn={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(In||(In={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(Pn||(Pn={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(Rn||(Rn={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Vn||(Vn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Fn||(Fn={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(Dn||(Dn={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.emptySelectionClipboard=32]="emptySelectionClipboard",e[e.extraEditorClassName=33]="extraEditorClassName",e[e.fastScrollSensitivity=34]="fastScrollSensitivity",e[e.find=35]="find",e[e.fixedOverflowWidgets=36]="fixedOverflowWidgets",e[e.folding=37]="folding",e[e.foldingStrategy=38]="foldingStrategy",e[e.foldingHighlight=39]="foldingHighlight",e[e.foldingImportsByDefault=40]="foldingImportsByDefault",e[e.foldingMaximumRegions=41]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=42]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=43]="fontFamily",e[e.fontInfo=44]="fontInfo",e[e.fontLigatures=45]="fontLigatures",e[e.fontSize=46]="fontSize",e[e.fontWeight=47]="fontWeight",e[e.formatOnPaste=48]="formatOnPaste",e[e.formatOnType=49]="formatOnType",e[e.glyphMargin=50]="glyphMargin",e[e.gotoLocation=51]="gotoLocation",e[e.hideCursorInOverviewRuler=52]="hideCursorInOverviewRuler",e[e.hover=53]="hover",e[e.inDiffEditor=54]="inDiffEditor",e[e.inlineSuggest=55]="inlineSuggest",e[e.letterSpacing=56]="letterSpacing",e[e.lightbulb=57]="lightbulb",e[e.lineDecorationsWidth=58]="lineDecorationsWidth",e[e.lineHeight=59]="lineHeight",e[e.lineNumbers=60]="lineNumbers",e[e.lineNumbersMinChars=61]="lineNumbersMinChars",e[e.linkedEditing=62]="linkedEditing",e[e.links=63]="links",e[e.matchBrackets=64]="matchBrackets",e[e.minimap=65]="minimap",e[e.mouseStyle=66]="mouseStyle",e[e.mouseWheelScrollSensitivity=67]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=68]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=69]="multiCursorMergeOverlapping",e[e.multiCursorModifier=70]="multiCursorModifier",e[e.multiCursorPaste=71]="multiCursorPaste",e[e.occurrencesHighlight=72]="occurrencesHighlight",e[e.overviewRulerBorder=73]="overviewRulerBorder",e[e.overviewRulerLanes=74]="overviewRulerLanes",e[e.padding=75]="padding",e[e.parameterHints=76]="parameterHints",e[e.peekWidgetDefaultFocus=77]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=78]="definitionLinkOpensInPeek",e[e.quickSuggestions=79]="quickSuggestions",e[e.quickSuggestionsDelay=80]="quickSuggestionsDelay",e[e.readOnly=81]="readOnly",e[e.renameOnType=82]="renameOnType",e[e.renderControlCharacters=83]="renderControlCharacters",e[e.renderFinalNewline=84]="renderFinalNewline",e[e.renderLineHighlight=85]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=86]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=87]="renderValidationDecorations",e[e.renderWhitespace=88]="renderWhitespace",e[e.revealHorizontalRightPadding=89]="revealHorizontalRightPadding",e[e.roundedSelection=90]="roundedSelection",e[e.rulers=91]="rulers",e[e.scrollbar=92]="scrollbar",e[e.scrollBeyondLastColumn=93]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=94]="scrollBeyondLastLine",e[e.scrollPredominantAxis=95]="scrollPredominantAxis",e[e.selectionClipboard=96]="selectionClipboard",e[e.selectionHighlight=97]="selectionHighlight",e[e.selectOnLineNumbers=98]="selectOnLineNumbers",e[e.showFoldingControls=99]="showFoldingControls",e[e.showUnused=100]="showUnused",e[e.snippetSuggestions=101]="snippetSuggestions",e[e.smartSelect=102]="smartSelect",e[e.smoothScrolling=103]="smoothScrolling",e[e.stickyTabStops=104]="stickyTabStops",e[e.stopRenderingLineAfter=105]="stopRenderingLineAfter",e[e.suggest=106]="suggest",e[e.suggestFontSize=107]="suggestFontSize",e[e.suggestLineHeight=108]="suggestLineHeight",e[e.suggestOnTriggerCharacters=109]="suggestOnTriggerCharacters",e[e.suggestSelection=110]="suggestSelection",e[e.tabCompletion=111]="tabCompletion",e[e.tabIndex=112]="tabIndex",e[e.unicodeHighlighting=113]="unicodeHighlighting",e[e.unusualLineTerminators=114]="unusualLineTerminators",e[e.useShadowDOM=115]="useShadowDOM",e[e.useTabStops=116]="useTabStops",e[e.wordSeparators=117]="wordSeparators",e[e.wordWrap=118]="wordWrap",e[e.wordWrapBreakAfterCharacters=119]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=120]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=121]="wordWrapColumn",e[e.wordWrapOverride1=122]="wordWrapOverride1",e[e.wordWrapOverride2=123]="wordWrapOverride2",e[e.wrappingIndent=124]="wrappingIndent",e[e.wrappingStrategy=125]="wrappingStrategy",e[e.showDeprecated=126]="showDeprecated",e[e.inlayHints=127]="inlayHints",e[e.editorClassName=128]="editorClassName",e[e.pixelRatio=129]="pixelRatio",e[e.tabFocusMode=130]="tabFocusMode",e[e.layoutInfo=131]="layoutInfo",e[e.wrappingInfo=132]="wrappingInfo"}(Kn||(Kn={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(jn||(jn={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(Un||(Un={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(Bn||(Bn={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}($n||($n={})),function(e){e[e.Other=0]="Other",e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(qn||(qn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(Wn||(Wn={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.MAX_VALUE=126]="MAX_VALUE"}(Hn||(Hn={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(zn||(zn={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(Gn||(Gn={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(Jn||(Jn={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(Xn||(Xn={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(Zn||(Zn={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Yn||(Yn={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None"}(Qn||(Qn={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(er||(er={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(tr||(tr={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(nr||(nr={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(rr||(rr={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ir||(ir={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(or||(or={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(ar||(ar={})),function(e){e[e.Deprecated=1]="Deprecated"}(sr||(sr={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(cr||(cr={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(lr||(lr={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ur||(ur={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(hr||(hr={}));class pr{static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function br(e,t,n,r,i){return function(e,t,n,r,i){if(0===r)return!0;const o=t.charCodeAt(r-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(i>0){const n=t.charCodeAt(r);if(0!==e.get(n))return!0}return!1}(e,t,0,r,i)&&function(e,t,n,r,i){if(r+i===n)return!0;const o=t.charCodeAt(r+i);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(i>0){const n=t.charCodeAt(r+i-1);if(0!==e.get(n))return!0}return!1}(e,t,n,r,i)}pr.CtrlCmd=2048,pr.Shift=1024,pr.Alt=512,pr.WinCtrl=256;class vr{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,i=n[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength){if(0===i){H(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||br(this._wordSeparators,e,t,r,i))return n}while(n);return null}}class yr{static computeUnicodeHighlights(e,t,n){const r=n?n.startLineNumber:1,i=n?n.endLineNumber:e.getLineCount(),o=new Cr(t),a=o.getCandidateCodePoints();let s;s="allNonBasicAscii"===a?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+`[${j(Array.from(a).map((e=>String.fromCodePoint(e))).join(""))}]`,"g");const c=new vr(null,s),l=[];let u,h=!1,f=0,d=0,m=0;e:for(let t=r,n=i;t<=n;t++){const n=e.getLineContent(t),r=n.length;c.reset(0);do{if(u=c.next(n),u){let e=u.index,i=u.index+u[0].length;if(e>0){W(n.charCodeAt(e-1))&&e--}if(i+1=n){h=!0;break e}l.push(new Qe(t,e+1,t,i+1))}}}while(u)}return{ranges:l,hasMore:h,ambiguousCharacterCount:f,invisibleCharacterCount:d,nonBasicAsciiCharacterCount:m}}static computeUnicodeHighlightReason(e,t){const n=new Cr(t);switch(n.shouldHighlightNonBasicASCII(e)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),i=n.ambiguousCharacters.getPrimaryConfusable(r),o=z.getLocales().filter((e=>!z.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r)));return{kind:0,confusableWith:String.fromCodePoint(i),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class Cr{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=z.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of G.codePoints)e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e){const t=e.codePointAt(0);if(this.allowedCodePoints.has(t))return 0;if(this.options.nonBasicASCII)return 1;if(this.options.invisibleCharacters){if(!(" "===e||"\n"===e||"\t"===e)&&G.isInvisibleCharacter(t))return 2}return this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(t)?3:0}}var wr=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class _r extends dt{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=pt(e.column,function(e){let t=mt;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}(t),this._lines[e.lineNumber-1],0);return n?new Qe(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,i="",o=0,a=[];return{*[Symbol.iterator](){for(;;)if(othis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}}class Sr{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new _r(Ue.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,t,n){return wr(this,void 0,void 0,(function*(){const r=this._getModel(e);return r?yr.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}))}computeDiff(e,t,n,r){return wr(this,void 0,void 0,(function*(){const i=this._getModel(e),o=this._getModel(t);if(!i||!o)return null;const a=i.getLinesContent(),s=o.getLinesContent(),c=new ot(a,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:r}).computeDiff(),l=!(c.changes.length>0)&&this._modelsAreIdentical(i,o);return{quitEarly:c.quitEarly,identical:l,changes:c.changes}}))}_modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++){if(e.getLineContent(r)!==t.getLineContent(r))return!1}return!0}computeMoreMinimalEdits(e,t){return wr(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const r=[];let i;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return Qe.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));for(let{range:e,text:o,eol:a}of t){if("number"==typeof a&&(i=a),Qe.isEmpty(e)&&!o)continue;const t=n.getValueInRange(e);if(o=o.replace(/\r\n|\n|\r/g,n.eol),t===o)continue;if(Math.max(o.length,t.length)>Sr._diffLimit){r.push({range:e,text:o});continue}const s=ce(t,o,!1),c=n.offsetAt(Qe.lift(e).getStartPosition());for(const e of s){const t=n.positionAt(c+e.originalStart),i=n.positionAt(c+e.originalStart+e.originalLength),a={text:o.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};n.getValueInRange(a.range)!==a.text&&r.push(a)}}return"number"==typeof i&&r.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}))}computeLinks(e){return wr(this,void 0,void 0,(function*(){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?St.computeLinks(e):[]}(t):null}))}textualSuggest(e,t,n,r){return wr(this,void 0,void 0,(function*(){const i=new M(!0),o=new RegExp(n,r),a=new Set;e:for(let n of e){const e=this._getModel(n);if(e)for(let n of e.words(o))if(n!==t&&isNaN(Number(n))&&(a.add(n),a.size>Sr._suggestionsLimit))break e}return{words:Array.from(a),duration:i.elapsed()}}))}computeWordRanges(e,t,n,r){return wr(this,void 0,void 0,(function*(){const i=this._getModel(e);if(!i)return Object.create(null);const o=new RegExp(n,r),a=Object.create(null);for(let e=t.startLineNumber;efunction(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)};let r={};for(const t of e)r[t]=n(t);return r}(n,((e,t)=>this._host.fhr(e,t))),i={host:r,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve(F(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}Sr._diffLimit=1e5,Sr._suggestionsLimit=1e4,"function"==typeof importScripts&&(S.monaco={editor:void 0,languages:void 0,CancellationTokenSource:kt,Emitter:V,KeyCode:Hn,KeyMod:pr,Position:Ye,Range:Qe,Selection:jt,SelectionDirection:ir,MarkerSeverity:zn,MarkerTag:Gn,Uri:Ue,Token:gr});let Ar=!1;function xr(e){if(Ar)return;Ar=!0;const t=new re((e=>{self.postMessage(e)}),(t=>new Sr(t,e)));self.onmessage=e=>{t.onmessage(e.data)}} /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.32.1(29a273516805a852aa8edc5e05059f119b13eff0) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ function Er(e,t){void 0===t&&(t=!1);var n=e.length,r=0,i="",o=0,a=16,s=0,c=0,l=0,u=0,h=0;function f(t,n){for(var i=0,o=0;i=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}r++,i++}return i=n)return o=n,a=17;var t=e.charCodeAt(r);if(Nr(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(Nr(t));return a=15}if(kr(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),s++,l=r,a=14;switch(t){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=function(){for(var t="",i=r;;){if(r>=n){t+=e.substring(i,r),h=2;break}var o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(kr(o)){t+=e.substring(i,r),h=2;break}h=6}r++}else{if(t+=e.substring(i,r),++r>=n){h=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var a=f(4,!0);a>=0?t+=String.fromCharCode(a):h=4;break;default:h=5}i=r}}return t}(),a=10;case 47:var d=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r=12&&e<=15);return e}:d,getToken:function(){return a},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return o-u},getTokenError:function(){return h}}}function Nr(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function kr(e){return 10===e||13===e||8232===e||8233===e}function Lr(e){return e>=48&&e<=57}function Or(e,t,n){var r,i,o,a,s;if(t){for(a=t.offset,s=a+t.length,o=a;o>0&&!Mr(e,o-1);)o--;for(var c=s;ca)||e.substring(r,i)===n||b.push({offset:r,length:i-r,content:n})}var y=p();if(17!==y){var C=d.getTokenOffset()+o;v(Tr(l,r),o,C)}for(;17!==y;){for(var w=d.getTokenOffset()+d.getTokenLength()+o,_=p(),S="",A=!1;!h&&(12===_||13===_);){v(" ",w,d.getTokenOffset()+o),w=d.getTokenOffset()+d.getTokenLength()+o,S=(A=12===_)?g():"",_=p()}if(2===_)1!==y&&(f--,S=g());else if(4===_)3!==y&&(f--,S=g());else{switch(y){case 3:case 1:f++,S=g();break;case 5:case 12:S=g();break;case 13:h?S=g():A||(S=" ");break;case 6:A||(S=" ");break;case 10:if(6===_){A||(S="");break}case 7:case 8:case 9:case 11:case 2:case 4:12===_||13===_?A||(S=" "):5!==_&&17!==_&&(m=!0);break;case 16:m=!0}!h||12!==_&&13!==_||(S=g())}17===_&&(S=n.insertFinalNewline?u:""),v(S,w,d.getTokenOffset()+o),y=_}return b}function Tr(e,t){for(var n="",r=0;r{Ar||xr(null)},(Ir||(Ir={})).DEFAULT={allowTrailingComma:!1};var Pr,Rr,Vr,Fr,Dr,Kr,jr,Ur,Br,$r,qr,Wr,Hr,zr,Gr,Jr,Xr,Zr,Yr,Qr,ei,ti,ni,ri,ii,oi,ai,si,ci,li,ui,hi,fi,di,mi,gi,pi,bi,vi,yi,Ci,wi,_i,Si,Ai,xi,Ei,Ni,ki,Li=Er,Oi=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=Ir.DEFAULT);var r=null,i=[],o=[];function a(e){Array.isArray(i)?i.push(e):null!==r&&(i[r]=e)}return function(e,t,n){void 0===n&&(n=Ir.DEFAULT);var r=Er(e,!1);function i(e){return e?function(){return e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function o(e){return e?function(t){return e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var a=i(t.onObjectBegin),s=o(t.onObjectProperty),c=i(t.onObjectEnd),l=i(t.onArrayBegin),u=i(t.onArrayEnd),h=o(t.onLiteralValue),f=o(t.onSeparator),d=i(t.onComment),m=o(t.onError),g=n&&n.disallowComments,p=n&&n.allowTrailingComma;function b(){for(;;){var e=r.scan();switch(r.getTokenError()){case 4:v(14);break;case 5:v(15);break;case 3:v(13);break;case 1:g||v(11);break;case 2:v(12);break;case 6:v(16)}switch(e){case 12:case 13:g?v(10):d();break;case 16:v(1);break;case 15:case 14:break;default:return e}}}function v(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),m(e),t.length+n.length>0)for(var i=r.getToken();17!==i;){if(-1!==t.indexOf(i)){b();break}if(-1!==n.indexOf(i))break;i=b()}}function y(e){var t=r.getTokenValue();return e?h(t):s(t),b(),!0}function C(){switch(r.getToken()){case 11:var e=r.getTokenValue(),t=Number(e);isNaN(t)&&(v(2),t=0),h(t);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return b(),!0}function w(){return 10!==r.getToken()?(v(3,[],[2,5]),!1):(y(!1),6===r.getToken()?(f(":"),b(),A()||v(4,[],[2,5])):v(5,[],[2,5]),!0)}function _(){a(),b();for(var e=!1;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||v(4,[],[]),f(","),b(),2===r.getToken()&&p)break}else e&&v(6,[],[]);w()||v(4,[],[2,5]),e=!0}return c(),2!==r.getToken()?v(7,[2],[]):b(),!0}function S(){l(),b();for(var e=!1;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||v(4,[],[]),f(","),b(),4===r.getToken()&&p)break}else e&&v(6,[],[]);A()||v(4,[],[4,5]),e=!0}return u(),4!==r.getToken()?v(8,[4],[]):b(),!0}function A(){switch(r.getToken()){case 3:return S();case 1:return _();case 10:return y(!0);default:return C()}}if(b(),17===r.getToken())return!!n.allowEmptyContent||(v(4,[],[]),!1);if(!A())return v(4,[],[]),!1;17!==r.getToken()&&v(9,[],[])}(e,{onObjectBegin:function(){var e={};a(e),o.push(i),i=e,r=null},onObjectProperty:function(e){r=e},onObjectEnd:function(){i=o.pop()},onArrayBegin:function(){var e=[];a(e),o.push(i),i=e,r=null},onArrayEnd:function(){i=o.pop()},onLiteralValue:a,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n),i[0]},Ti=function e(t,n,r){if(void 0===r&&(r=!1),function(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t0?e.lastIndexOf(t)===n:0===n&&e===t}function Ki(e){var t="";(function(e,t){if(e.length0&&(i.arguments=n),i},fi.is=function(e){var t=e;return jo.defined(t)&&jo.string(t.title)&&jo.string(t.command)},(mi=di||(di={})).replace=function(e,t){return{range:e,newText:t}},mi.insert=function(e,t){return{range:{start:e,end:e},newText:t}},mi.del=function(e){return{range:e,newText:""}},mi.is=function(e){var t=e;return jo.objectLiteral(t)&&jo.string(t.newText)&&jr.is(t.range)},(pi=gi||(gi={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},pi.is=function(e){var t=e;return void 0!==t&&jo.objectLiteral(t)&&jo.string(t.label)&&(jo.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(jo.string(t.description)||void 0===t.description)},(bi||(bi={})).is=function(e){return"string"==typeof e},(yi=vi||(vi={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},yi.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},yi.del=function(e,t){return{range:e,newText:"",annotationId:t}},yi.is=function(e){var t=e;return di.is(t)&&(gi.is(t.annotationId)||bi.is(t.annotationId))},(wi=Ci||(Ci={})).create=function(e,t){return{textDocument:e,edits:t}},wi.is=function(e){var t=e;return jo.defined(t)&&qi.is(t.textDocument)&&Array.isArray(t.edits)},(Si=_i||(_i={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},Si.is=function(e){var t=e;return t&&"create"===t.kind&&jo.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||jo.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||jo.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||bi.is(t.annotationId))},(xi=Ai||(Ai={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},xi.is=function(e){var t=e;return t&&"rename"===t.kind&&jo.string(t.oldUri)&&jo.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||jo.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||jo.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||bi.is(t.annotationId))},(Ni=Ei||(Ei={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},Ni.is=function(e){var t=e;return t&&"delete"===t.kind&&jo.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||jo.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||jo.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||bi.is(t.annotationId))},(ki||(ki={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return jo.string(e.kind)?_i.is(e)||Ai.is(e)||Ei.is(e):Ci.is(e)})))};var ji,Ui,Bi,$i,qi,Wi,Hi,zi,Gi,Ji,Xi,Zi,Yi,Qi,eo,to,no,ro,io,oo,ao,so,co,lo,uo,ho,fo,mo,go,po,bo,vo,yo,Co,wo,_o,So,Ao,xo,Eo,No,ko,Lo,Oo,To,Mo,Io,Po,Ro,Vo,Fo,Do=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=di.insert(e,t):bi.is(n)?(i=n,r=vi.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=vi.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=di.replace(e,t):bi.is(n)?(i=n,r=vi.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=vi.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=di.del(e):bi.is(t)?(r=t,n=vi.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=vi.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Ko=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(bi.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Ko(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Ci.is(e)){var n=new Do(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new Do(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(qi.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new Do(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new Do(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Ko,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(gi.is(t)||bi.is(t)?r=t:n=t,void 0===r?i=_i.create(e,n):(o=bi.is(r)?r:this._changeAnnotations.manage(r),i=_i.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(gi.is(n)||bi.is(n)?i=n:r=n,void 0===i?o=Ai.create(e,t,r):(a=bi.is(i)?i:this._changeAnnotations.manage(i),o=Ai.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(gi.is(t)||bi.is(t)?r=t:n=t,void 0===r?i=Ei.create(e,n):(o=bi.is(r)?r:this._changeAnnotations.manage(r),i=Ei.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),(Ui=ji||(ji={})).create=function(e){return{uri:e}},Ui.is=function(e){var t=e;return jo.defined(t)&&jo.string(t.uri)},($i=Bi||(Bi={})).create=function(e,t){return{uri:e,version:t}},$i.is=function(e){var t=e;return jo.defined(t)&&jo.string(t.uri)&&jo.integer(t.version)},(Wi=qi||(qi={})).create=function(e,t){return{uri:e,version:t}},Wi.is=function(e){var t=e;return jo.defined(t)&&jo.string(t.uri)&&(null===t.version||jo.integer(t.version))},(zi=Hi||(Hi={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},zi.is=function(e){var t=e;return jo.defined(t)&&jo.string(t.uri)&&jo.string(t.languageId)&&jo.integer(t.version)&&jo.string(t.text)},(Ji=Gi||(Gi={})).PlainText="plaintext",Ji.Markdown="markdown",function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(Gi||(Gi={})),(Xi||(Xi={})).is=function(e){var t=e;return jo.objectLiteral(e)&&Gi.is(t.kind)&&jo.string(t.value)},(Yi=Zi||(Zi={})).Text=1,Yi.Method=2,Yi.Function=3,Yi.Constructor=4,Yi.Field=5,Yi.Variable=6,Yi.Class=7,Yi.Interface=8,Yi.Module=9,Yi.Property=10,Yi.Unit=11,Yi.Value=12,Yi.Enum=13,Yi.Keyword=14,Yi.Snippet=15,Yi.Color=16,Yi.File=17,Yi.Reference=18,Yi.Folder=19,Yi.EnumMember=20,Yi.Constant=21,Yi.Struct=22,Yi.Event=23,Yi.Operator=24,Yi.TypeParameter=25,(eo=Qi||(Qi={})).PlainText=1,eo.Snippet=2,(to||(to={})).Deprecated=1,(ro=no||(no={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},ro.is=function(e){var t=e;return t&&jo.string(t.newText)&&jr.is(t.insert)&&jr.is(t.replace)},(oo=io||(io={})).asIs=1,oo.adjustIndentation=2,(ao||(ao={})).create=function(e){return{label:e}},(so||(so={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(lo=co||(co={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},lo.is=function(e){var t=e;return jo.string(t)||jo.objectLiteral(t)&&jo.string(t.language)&&jo.string(t.value)},(uo||(uo={})).is=function(e){var t=e;return!!t&&jo.objectLiteral(t)&&(Xi.is(t.contents)||co.is(t.contents)||jo.typedArray(t.contents,co.is))&&(void 0===e.range||jr.is(e.range))},(ho||(ho={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(fo||(fo={})).create=function(e,t){for(var n=[],r=2;r=0;a--){var s=i[a],c=e.offsetAt(s.range.start),l=e.offsetAt(s.range.end);if(!(l<=o))throw new Error("Overlapping edit");r=r.substring(0,c)+s.newText+r.substring(l,r.length),o=c}return r}}(Fo||(Fo={}));var jo,Uo,Bo,$o=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return Dr.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return Dr.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1e?r=i:n=i+1}let i=n-1;return{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Qo(e){const t=Yo(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function ea(e,t,...n){return function(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{let r=n[0];return void 0!==t[r]?t[r]:e})),n}(t,n)}function ta(e){return ea}(Wo=qo||(qo={})).create=function(e,t,n,r){return new Jo(e,t,n,r)},Wo.update=function(e,t,n){if(e instanceof Jo)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},Wo.applyEdits=function(e,t){let n=e.getText(),r=Xo(t.map(Qo),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=0;const o=[];for(const t of r){let r=e.offsetAt(t.range.start);if(ri&&o.push(n.substring(i,r)),t.newText.length&&o.push(t.newText),i=e.offsetAt(t.range.end)}return o.push(n.substr(i)),o.join("")},(zo=Ho||(Ho={}))[zo.Undefined=0]="Undefined",zo[zo.EnumValueMismatch=1]="EnumValueMismatch",zo[zo.Deprecated=2]="Deprecated",zo[zo.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",zo[zo.UnexpectedEndOfString=258]="UnexpectedEndOfString",zo[zo.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",zo[zo.InvalidUnicode=260]="InvalidUnicode",zo[zo.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",zo[zo.InvalidCharacter=262]="InvalidCharacter",zo[zo.PropertyExpected=513]="PropertyExpected",zo[zo.CommaExpected=514]="CommaExpected",zo[zo.ColonExpected=515]="ColonExpected",zo[zo.ValueExpected=516]="ValueExpected",zo[zo.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",zo[zo.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",zo[zo.TrailingComma=519]="TrailingComma",zo[zo.DuplicateKey=520]="DuplicateKey",zo[zo.CommentNotPermitted=521]="CommentNotPermitted",zo[zo.SchemaResolveError=768]="SchemaResolveError",(Go||(Go={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Gi.Markdown,Gi.PlainText],commitCharactersSupport:!0}}}};var na,ra,ia,oa=(na=function(e,t){return(na=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}na(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),aa=ta(),sa={"color-hex":{errorMessage:aa("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:aa("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:aa("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:aa("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:aa("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))$/},hostname:{errorMessage:aa("hostnameFormatWarning","String is not a hostname."),pattern:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i},ipv4:{errorMessage:aa("ipv4FormatWarning","String is not an IPv4 address."),pattern:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/},ipv6:{errorMessage:aa("ipv6FormatWarning","String is not an IPv6 address."),pattern:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i}},ca=function(){function e(e,t,n){void 0===n&&(n=0),this.offset=t,this.length=n,this.parent=e}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),la=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="null",r.value=null,r}return oa(t,e),t}(ca),ua=function(e){function t(t,n,r){var i=e.call(this,t,r)||this;return i.type="boolean",i.value=n,i}return oa(t,e),t}(ca),ha=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="array",r.items=[],r}return oa(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t}(ca),fa=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="number",r.isInteger=!0,r.value=Number.NaN,r}return oa(t,e),t}(ca),da=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="string",i.value="",i}return oa(t,e),t}(ca),ma=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.type="property",i.colonOffset=-1,i.keyNode=r,i}return oa(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t}(ca),ga=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="object",r.properties=[],r}return oa(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t}(ca);function pa(e){return Fi(e)?e?{}:{not:{}}:e}(ia=ra||(ra={}))[ia.Key=0]="Key",ia[ia.Enum=1]="Enum";var ba=function(){function e(e,t){void 0===e&&(e=-1),this.focusOffset=e,this.exclude=t,this.schemas=[]}return e.prototype.add=function(e){this.schemas.push(e)},e.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},e.prototype.include=function(e){return(-1===this.focusOffset||_a(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),va=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(e){},e.prototype.merge=function(e){},e.prototype.include=function(e){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),ya=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(e){for(var t=0,n=e;t=e.offset&&t=0;)o.splice(t,1),t=o.indexOf(e)};if(t.properties)for(var d=0,m=Object.keys(t.properties);d0)for(var N=0,k=o;Nt.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:aa("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)});Ri(t.minProperties)&&e.properties.length=i.length&&n.propertiesValueMatches++}if(e.items.length>i.length)if("object"==typeof t.additionalItems)for(var c=i.length;ct.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:aa("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)});if(!0===t.uniqueItems){var m=Ca(e);m.some((function(e,t){return t!==m.lastIndexOf(e)}))&&n.problems.push({location:{offset:e.offset,length:e.length},message:aa("uniqueItemsWarning","Array has duplicate items.")})}}(i,t,n,r);break;case"string":!function(e,t,n){Ri(t.minLength)&&e.value.lengtht.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:aa("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)});if(i=t.pattern,"string"==typeof i){var r=Ki(t.pattern);(null==r?void 0:r.test(e.value))||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||aa("patternWarning",'String does not match the pattern of "{0}".',t.pattern)})}var i;if(t.format)switch(t.format){case"uri":case"uri-reference":var o=void 0;if(e.value){var a=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);a?a[2]||"uri"!==t.format||(o=aa("uriSchemeMissing","URI with a scheme is expected.")):o=aa("uriMissing","URI is expected.")}else o=aa("uriEmpty","URI expected.");o&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||aa("uriFormatWarning","String is not a URI: {0}",o)});break;case"color-hex":case"date-time":case"date":case"time":case"email":case"hostname":case"ipv4":case"ipv6":var s=sa[t.format];e.value&&s.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||s.errorMessage})}}(i,t,n);break;case"number":!function(e,t,n){var r=e.value;function i(e){var t,n=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return n&&{value:Number(n[1]+(n[2]||"")),multiplier:((null===(t=n[2])||void 0===t?void 0:t.length)||0)-(parseInt(n[3])||0)}}if(Ri(t.multipleOf)){var o=-1;if(Number.isInteger(t.multipleOf))o=r%t.multipleOf;else{var a=i(t.multipleOf),s=i(r);if(a&&s){var c=Math.pow(10,Math.abs(s.multiplier-a.multiplier));s.multiplier=f&&n.problems.push({location:{offset:e.offset,length:e.length},message:aa("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",f)});var d=u(t.minimum,t.exclusiveMinimum);Ri(d)&&rm&&n.problems.push({location:{offset:e.offset,length:e.length},message:aa("maximumWarning","Value is above the maximum of {0}.",m)})}(i,t,n);break;case"property":return Aa(i.valueNode,t,n,r)}!function(){function e(e){return i.type===e||"integer"===e&&"number"===i.type&&i.isInteger}Array.isArray(t.type)?t.type.some(e)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||aa("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||aa("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)}));if(Array.isArray(t.allOf))for(var o=0,a=t.allOf;o0?a={schema:l,validationResult:u,matchingSchemas:h}:0===f&&(a.matchingSchemas.merge(h),a.validationResult.mergeEnumValues(u))}else a.matchingSchemas.merge(h),a.validationResult.propertiesMatches+=u.propertiesMatches,a.validationResult.propertiesValueMatches+=u.propertiesValueMatches;else a={schema:l,validationResult:u,matchingSchemas:h}}return o.length>1&&t&&n.problems.push({location:{offset:i.offset,length:1},message:aa("oneOfWarning","Matches multiple schemas when only one must validate.")}),a&&(n.merge(a.validationResult),n.propertiesMatches+=a.validationResult.propertiesMatches,n.propertiesValueMatches+=a.validationResult.propertiesValueMatches,r.merge(a.matchingSchemas)),o.length};Array.isArray(t.anyOf)&&m(t.anyOf,!1);Array.isArray(t.oneOf)&&m(t.oneOf,!0);var g=function(e){var t=new ya,o=r.newSub();Aa(i,pa(e),t,o),n.merge(t),n.propertiesMatches+=t.propertiesMatches,n.propertiesValueMatches+=t.propertiesValueMatches,r.merge(o)},p=pa(t.if);p&&(b=p,v=pa(t.then),y=pa(t.else),C=pa(b),w=new ya,_=r.newSub(),Aa(i,C,w,_),r.merge(_),w.hasProblems()?y&&g(y):v&&g(v));var b,v,y,C,w,_;if(Array.isArray(t.enum)){for(var S=Ca(i),A=!1,x=0,E=t.enum;x0){for(l--;l>0&&/\s/.test(i.charAt(l));)l--;u=l+1}if(c(e,t,l,u),n&&h(n,!1),r.length+a.length>0)for(var f=o.getToken();17!==f;){if(-1!==r.indexOf(f)){s();break}if(-1!==a.indexOf(f))break;f=s()}return n}function u(){switch(o.getTokenError()){case 4:return l(aa("InvalidUnicode","Invalid unicode sequence in string."),Ho.InvalidUnicode),!0;case 5:return l(aa("InvalidEscapeCharacter","Invalid escape character in string."),Ho.InvalidEscapeCharacter),!0;case 3:return l(aa("UnexpectedEndOfNumber","Unexpected end of number."),Ho.UnexpectedEndOfNumber),!0;case 1:return l(aa("UnexpectedEndOfComment","Unexpected end of comment."),Ho.UnexpectedEndOfComment),!0;case 2:return l(aa("UnexpectedEndOfString","Unexpected end of string."),Ho.UnexpectedEndOfString),!0;case 6:return l(aa("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),Ho.InvalidCharacter),!0}return!1}function h(e,t){return e.length=o.getTokenOffset()+o.getTokenLength()-e.offset,t&&s(),e}var f=new da(void 0,0,0);function d(t,n){var r=new ma(t,o.getTokenOffset(),f),i=m(r);if(!i){if(16!==o.getToken())return;l(aa("DoubleQuotesExpected","Property keys must be doublequoted"),Ho.Undefined);var a=new da(r,o.getTokenOffset(),o.getTokenLength());a.value=o.getTokenValue(),i=a,s()}r.keyNode=i;var u=n[i.value];if(u?(c(aa("DuplicateKeyWarning","Duplicate object key"),Ho.DuplicateKey,r.keyNode.offset,r.keyNode.offset+r.keyNode.length,ii.Warning),"object"==typeof u&&c(aa("DuplicateKeyWarning","Duplicate object key"),Ho.DuplicateKey,u.keyNode.offset,u.keyNode.offset+u.keyNode.length,ii.Warning),n[i.value]=!0):n[i.value]=r,6===o.getToken())r.colonOffset=o.getTokenOffset(),s();else if(l(aa("ColonExpected","Colon expected"),Ho.ColonExpected),10===o.getToken()&&e.positionAt(i.offset+i.length).line=0;t--){var n=this.contributions[t].resolveCompletion;if(n){var r=n(e);if(r)return r}}return this.promiseConstructor.resolve(e)},e.prototype.doComplete=function(e,t,n){var r=this,i={items:[],isIncomplete:!1},o=e.getText(),a=e.offsetAt(t),s=n.getNodeFromOffset(a,!0);if(this.isInComment(e,s?s.offset:0,a))return Promise.resolve(i);if(s&&a===s.offset+s.length&&a>0){var c=o[a-1];("object"===s.type&&"}"===c||"array"===s.type&&"]"===c)&&(s=s.parent)}var l,u=this.getCurrentWord(e,a);if(!s||"string"!==s.type&&"number"!==s.type&&"boolean"!==s.type&&"null"!==s.type){var h=a-u.length;h>0&&'"'===o[h-1]&&h--,l=jr.create(e.positionAt(h),t)}else l=jr.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length));var f={},d={add:function(e){var t=e.label,n=f[t];if(n)n.documentation||(n.documentation=e.documentation),n.detail||(n.detail=e.detail);else{if((t=t.replace(/[\n]/g,"↵")).length>60){var r=t.substr(0,57).trim()+"...";f[r]||(t=r)}l&&void 0!==e.insertText&&(e.textEdit=di.replace(l,e.insertText)),e.label=t,f[t]=e,i.items.push(e)}},setAsIncomplete:function(){i.isIncomplete=!0},error:function(e){console.error(e)},log:function(e){console.log(e)},getNumberOfProposals:function(){return i.items.length}};return this.schemaService.getSchemaForResource(e.uri,n).then((function(t){var c=[],h=!0,m="",g=void 0;if(s&&"string"===s.type){var p=s.parent;p&&"property"===p.type&&p.keyNode===s&&(h=!p.valueNode,g=p,m=o.substr(s.offset+1,s.length-2),p&&(s=p.parent))}if(s&&"object"===s.type){if(s.offset===a)return i;s.properties.forEach((function(e){g&&g===e||(f[e.keyNode.value]=ao.create("__"))}));var b="";h&&(b=r.evaluateSeparatorAfter(e,e.offsetAt(l.end))),t?r.getPropertyCompletions(t,n,s,h,b,d):r.getSchemaLessPropertyCompletions(n,s,m,d);var v=wa(s);r.contributions.forEach((function(t){var n=t.collectPropertyCompletions(e.uri,v,u,h,""===b,d);n&&c.push(n)})),!t&&u.length>0&&'"'!==o.charAt(a-u.length-1)&&(d.add({kind:Zi.Property,label:r.getLabelForValue(u),insertText:r.getInsertTextForProperty(u,void 0,!1,b),insertTextFormat:Qi.Snippet,documentation:""}),d.setAsIncomplete())}var y={};return t?r.getValueCompletions(t,n,s,a,e,d,y):r.getSchemaLessValueCompletions(n,s,a,e,d),r.contributions.length>0&&r.getContributedValueCompletions(n,s,a,e,d,c),r.promiseConstructor.all(c).then((function(){if(0===d.getNumberOfProposals()){var t=a;!s||"string"!==s.type&&"number"!==s.type&&"boolean"!==s.type&&"null"!==s.type||(t=s.offset+s.length);var n=r.evaluateSeparatorAfter(e,t);r.addFillerValueCompletions(y,n,d)}return i}))}))},e.prototype.getPropertyCompletions=function(e,t,n,r,i,o){var a=this;t.getMatchingSchemas(e.schema,n.offset).forEach((function(e){if(e.node===n&&!e.inverted){var t=e.schema.properties;t&&Object.keys(t).forEach((function(e){var n=t[e];if("object"==typeof n&&!n.deprecationMessage&&!n.doNotSuggest){var s={kind:Zi.Property,label:e,insertText:a.getInsertTextForProperty(e,n,r,i),insertTextFormat:Qi.Snippet,filterText:a.getFilterTextForValue(e),documentation:a.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(s.sortText=n.suggestSortText),s.insertText&&Di(s.insertText,"$1".concat(i))&&(s.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(s)}}));var s=e.schema.propertyNames;if("object"==typeof s&&!s.deprecationMessage&&!s.doNotSuggest){var c=function(e,t){void 0===t&&(t=void 0);var n={kind:Zi.Property,label:e,insertText:a.getInsertTextForProperty(e,void 0,r,i),insertTextFormat:Qi.Snippet,filterText:a.getFilterTextForValue(e),documentation:t||a.fromMarkup(s.markdownDescription)||s.description||""};void 0!==s.suggestSortText&&(n.sortText=s.suggestSortText),n.insertText&&Di(n.insertText,"$1".concat(i))&&(n.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(n)};if(s.enum)for(var l=0;l(t.colonOffset||0)){var l=t.valueNode;if(l&&(n>l.offset+l.length||"object"===l.type||"array"===l.type))return;var u=t.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===u&&e.valueNode&&c(e.valueNode),!0})),"$schema"===u&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(s,i)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){var h=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===h&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(c),!0}))}else t.items.forEach(c)},e.prototype.getValueCompletions=function(e,t,n,r,i,o,a){var s=r,c=void 0,l=void 0;if(!n||"string"!==n.type&&"number"!==n.type&&"boolean"!==n.type&&"null"!==n.type||(s=n.offset+n.length,l=n,n=n.parent),n){if("property"===n.type&&r>(n.colonOffset||0)){var u=n.valueNode;if(u&&r>u.offset+u.length)return;c=n.keyNode.value,n=n.parent}if(n&&(void 0!==c||"array"===n.type)){for(var h=this.evaluateSeparatorAfter(i,s),f=0,d=t.getMatchingSchemas(e.schema,n.offset,l);f(t.colonOffset||0)){var a=t.keyNode.value,s=t.valueNode;if((!s||n<=s.offset+s.length)&&t.parent){var c=wa(t.parent);this.contributions.forEach((function(e){var t=e.collectValueCompletions(r.uri,c,a,i);t&&o.push(t)}))}}}else this.contributions.forEach((function(e){var t=e.collectDefaultCompletions(r.uri,i);t&&o.push(t)}))},e.prototype.addSchemaValueCompletions=function(e,t,n,r){var i=this;"object"==typeof e&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.anyOf)&&e.anyOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.oneOf)&&e.oneOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})))},e.prototype.addDefaultValueCompletions=function(e,t,n,r){var i=this;void 0===r&&(r=0);var o=!1;if(Vi(e.default)){for(var a=e.type,s=e.default,c=r;c>0;c--)s=[s],a="array";n.add({kind:this.getSuggestionKind(a),label:this.getLabelForValue(s),insertText:this.getInsertTextForValue(s,t),insertTextFormat:Qi.Snippet,detail:Na("json.suggest.default","Default value")}),o=!0}Array.isArray(e.examples)&&e.examples.forEach((function(a){for(var s=e.type,c=a,l=r;l>0;l--)c=[c],s="array";n.add({kind:i.getSuggestionKind(s),label:i.getLabelForValue(c),insertText:i.getInsertTextForValue(c,t),insertTextFormat:Qi.Snippet}),o=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((function(a){var s,c,l=e.type,u=a.body,h=a.label;if(Vi(u)){e.type;for(var f=r;f>0;f--)u=[u];s=i.getInsertTextForSnippetValue(u,t),c=i.getFilterTextForSnippetValue(u),h=h||i.getLabelForSnippetValue(u)}else{if("string"!=typeof a.bodyText)return;var d="",m="",g="";for(f=r;f>0;f--)d=d+g+"[\n",m=m+"\n"+g+"]",g+="\t",l="array";s=d+g+a.bodyText.split("\n").join("\n"+g)+m+t,h=h||s,c=s.replace(/[\n]/g,"")}n.add({kind:i.getSuggestionKind(l),label:h,documentation:i.fromMarkup(a.markdownDescription)||a.description,insertText:s,insertTextFormat:Qi.Snippet,filterText:c}),o=!0})),!o&&"object"==typeof e.items&&!Array.isArray(e.items)&&r<5&&this.addDefaultValueCompletions(e.items,t,n,r+1)},e.prototype.addEnumValueCompletions=function(e,t,n){if(Vi(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:Qi.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(var r=0,i=e.enum.length;r0?t[0]:void 0}if(!e)return Zi.Value;switch(e){case"string":default:return Zi.Value;case"object":return Zi.Module;case"property":return Zi.Property}},e.prototype.getLabelTextForMatchingNode=function(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}},e.prototype.getInsertTextForMatchingNode=function(e,t,n){switch(e.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:var r=t.getText().substr(e.offset,e.length)+n;return this.getInsertTextForPlainText(r)}},e.prototype.getInsertTextForProperty=function(e,t,n,r){var i=this.getInsertTextForValue(e,"");if(!n)return i;var o,a=i+": ",s=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){var c=t.defaultSnippets[0].body;Vi(c)&&(o=this.getInsertTextForSnippetValue(c,""))}s+=t.defaultSnippets.length}if(t.enum&&(o||1!==t.enum.length||(o=this.getInsertTextForGuessedValue(t.enum[0],"")),s+=t.enum.length),Vi(t.default)&&(o||(o=this.getInsertTextForGuessedValue(t.default,"")),s++),Array.isArray(t.examples)&&t.examples.length&&(o||(o=this.getInsertTextForGuessedValue(t.examples[0],"")),s+=t.examples.length),0===s){var l=Array.isArray(t.type)?t.type[0]:t.type;switch(l||(t.properties?l="object":t.items&&(l="array")),l){case"boolean":o="$1";break;case"string":o='"$1"';break;case"object":o="{$1}";break;case"array":o="[$1]";break;case"number":case"integer":o="${1:0}";break;case"null":o="${1:null}";break;default:return i}}}return(!o||s>1)&&(o="$1"),a+o+r},e.prototype.getCurrentWord=function(e,t){for(var n=t-1,r=e.getText();n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)},e.prototype.evaluateSeparatorAfter=function(e,t){var n=Li(e.getText(),!0);switch(n.setPosition(t),n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(e,t,n){for(var r=Li(t.getText(),!0),i=e.items,o=i.length-1;o>=0;o--){var a=i[o];if(n>a.offset+a.length)return r.setPosition(a.offset+a.length),5===r.scan()&&n>=r.getTokenOffset()+r.getTokenLength()?o+1:o;if(n>=a.offset)return o}return 0},e.prototype.isInComment=function(e,t,n){var r=Li(e.getText(),!1);r.setPosition(t);for(var i=r.scan();17!==i&&r.getTokenOffset()+r.getTokenLength()i.offset+1&&r=0;u--){var h=this.contributions[u].getInfoContribution(e.uri,l);if(h)return h.then((function(e){return c(e)}))}return this.schemaService.getSchemaForResource(e.uri,n).then((function(e){if(e&&i){var t=n.getMatchingSchemas(e.schema,i.offset),r=void 0,o=void 0,a=void 0,s=void 0;t.every((function(e){if(e.node===i&&!e.inverted&&e.schema&&(r=r||e.schema.title,o=o||e.schema.markdownDescription||Oa(e.schema.description),e.schema.enum)){var t=e.schema.enum.indexOf(Ca(i));e.schema.markdownEnumDescriptions?a=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(a=Oa(e.schema.enumDescriptions[t])),a&&"string"!=typeof(s=e.schema.enum[t])&&(s=JSON.stringify(s))}return!0}));var l="";return r&&(l=Oa(r)),o&&(l.length>0&&(l+="\n\n"),l+=o),a&&(l.length>0&&(l+="\n\n"),l+="`".concat(function(e){if(-1!==e.indexOf("`"))return"`` "+e+" ``";return e}(s),"`: ").concat(a)),c([l])}return null}))},e}();function Oa(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}var Ta=ta(),Ma=function(){function e(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}return e.prototype.configure=function(e){e&&(this.validationEnabled=!1!==e.validate,this.commentSeverity=e.allowComments?void 0:ii.Error)},e.prototype.doValidation=function(e,t,n,r){var i=this;if(!this.validationEnabled)return this.promise.resolve([]);var o=[],a={},s=function(e){var t=e.range.start.line+" "+e.range.start.character+" "+e.message;a[t]||(a[t]=!0,o.push(e))},c=function(r){var a=(null==n?void 0:n.trailingCommas)?Va(n.trailingCommas):ii.Error,c=(null==n?void 0:n.comments)?Va(n.comments):i.commentSeverity,l=(null==n?void 0:n.schemaValidation)?Va(n.schemaValidation):ii.Warning,u=(null==n?void 0:n.schemaRequest)?Va(n.schemaRequest):ii.Warning;if(r){if(r.errors.length&&t.root&&u){var h=t.root,f="object"===h.type?h.properties[0]:void 0;if(f&&"$schema"===f.keyNode.value){var d=f.valueNode||f,m=jr.create(e.positionAt(d.offset),e.positionAt(d.offset+d.length));s(li.create(m,r.errors[0],u,Ho.SchemaResolveError))}else{m=jr.create(e.positionAt(h.offset),e.positionAt(h.offset+1));s(li.create(m,r.errors[0],u,Ho.SchemaResolveError))}}else if(l){var g=t.validate(e,r.schema,l);g&&g.forEach(s)}Pa(r.schema)&&(c=void 0),Ra(r.schema)&&(a=void 0)}for(var p=0,b=t.syntaxErrors;p=ja&&e<=Ua?e-ja+10:0)}function $a(e){if("#"===e[0])switch(e.length){case 4:return{red:17*Ba(e.charCodeAt(1))/255,green:17*Ba(e.charCodeAt(2))/255,blue:17*Ba(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Ba(e.charCodeAt(1))/255,green:17*Ba(e.charCodeAt(2))/255,blue:17*Ba(e.charCodeAt(3))/255,alpha:17*Ba(e.charCodeAt(4))/255};case 7:return{red:(16*Ba(e.charCodeAt(1))+Ba(e.charCodeAt(2)))/255,green:(16*Ba(e.charCodeAt(3))+Ba(e.charCodeAt(4)))/255,blue:(16*Ba(e.charCodeAt(5))+Ba(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Ba(e.charCodeAt(1))+Ba(e.charCodeAt(2)))/255,green:(16*Ba(e.charCodeAt(3))+Ba(e.charCodeAt(4)))/255,blue:(16*Ba(e.charCodeAt(5))+Ba(e.charCodeAt(6)))/255,alpha:(16*Ba(e.charCodeAt(7))+Ba(e.charCodeAt(8)))/255}}}var qa=function(){function e(e){this.schemaService=e}return e.prototype.findDocumentSymbols=function(e,t,n){var r=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var o=n.resultLimit||Number.MAX_VALUE,a=e.uri;if(("vscode://defaultsettings/keybindings.json"===a||Di(a.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var s=[],c=0,l=i.items;c0){o--;var a=Br.create(e.uri,Wa(e,t)),s=n?n+"."+t.keyNode.value:t.keyNode.value;v.push({name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),location:a,containerName:n}),g.push({node:i,containerName:s})}else b=!0}))};p0){o--;var a=Wa(e,t),s=a,c={name:String(i),kind:r.getSymbolKind(t.type),range:a,selectionRange:s,children:[]};n.push(c),b.push({result:c.children,node:t})}else y=!0})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(o>0){o--;var a=Wa(e,t),s=Wa(e,t.keyNode),c=[],l={name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),range:a,selectionRange:s,children:c,detail:r.getDetail(i)};n.push(l),b.push({result:c,node:i})}else y=!0}))};v{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a;o>=0?a=arguments[o]:(void 0===e&&(e=process.cwd()),a=e),t(a),0!==a.length&&(r=a+"/"+r,i=47===a.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;il){if(47===n.charCodeAt(s+h))return n.slice(s+h+1);if(0===h)return n.slice(s+h)}else a>l&&(47===e.charCodeAt(i+h)?u=h:0===h&&(u=0));break}var f=e.charCodeAt(i+h);if(f!==n.charCodeAt(s+h))break;47===f&&(u=h)}var d="";for(h=i+u+1;h<=o;++h)h!==o&&47!==e.charCodeAt(h)||(0===d.length?d+="..":d+="/..");return d.length>0?d+n.slice(s+u):(s+=u,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!a){i=r+1;break}}else-1===c&&(a=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=c))}return i===o?o=c:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===i&&(o=!1,i=s+1),46===c?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){r=s+1;break}}return-1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return n=(t=e).dir||t.root,r=t.base||(t.name||"")+(t.ext||""),n?n===t.root?n+r:n+"/"+r:r;var t,n,r},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var a=-1,s=0,c=-1,l=!0,u=e.length-1,h=0;u>=r;--u)if(47!==(i=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===i?-1===a?a=u:1!==h&&(h=1):-1!==a&&(h=-1);else if(!l){s=u+1;break}return-1===a||-1===c||0===h||1===h&&a===c-1&&a===s+1?-1!==c&&(n.base=n.name=0===s&&o?e.slice(1,c):e.slice(s,c)):(0===s&&o?(n.name=e.slice(1,a),n.base=e.slice(1,c)):(n.name=e.slice(s,a),n.base=e.slice(s,c)),n.ext=e.slice(a,c)),s>0?n.dir=e.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},447:(e,t,n)=>{var r;if(n.r(t),n.d(t,{URI:()=>g,Utils:()=>E}),"object"==typeof process)r="win32"===process.platform;else if("object"==typeof navigator){var i=navigator.userAgent;r=i.indexOf("Windows")>=0}var o,a,s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=/^\w[\w\d+.-]*$/,l=/^\//,u=/^\/\//;function h(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!l.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(u.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}var f="",d="/",m=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,g=function(){function e(e,t,n,r,i,o){var a,s;void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||f,this.authority=e.authority||f,this.path=e.path||f,this.query=e.query||f,this.fragment=e.fragment||f):(this.scheme=(s=o,(a=e)||s?a:"file"),this.authority=t||f,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,n||f),this.query=r||f,this.fragment=i||f,h(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"string"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return w(this,!1)},enumerable:!1,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=f),void 0===n?n=this.authority:null===n&&(n=f),void 0===r?r=this.path:null===r&&(r=f),void 0===i?i=this.query:null===i&&(i=f),void 0===o?o=this.fragment:null===o&&(o=f),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new b(t,n,r,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=m.exec(e);return n?new b(n[2]||f,x(n[4]||f),x(n[5]||f),x(n[7]||f),x(n[9]||f),t):new b(f,f,f,f,f)},e.file=function(e){var t=f;if(r&&(e=e.replace(/\\/g,d)),e[0]===d&&e[1]===d){var n=e.indexOf(d,2);-1===n?(t=e.substring(2),e=d):(t=e.substring(2,n),e=e.substring(n)||d)}return new b("file",t,e,f,f)},e.from=function(e){var t=new b(e.scheme,e.authority,e.path,e.query,e.fragment);return h(t,!0),t},e.prototype.toString=function(e){return void 0===e&&(e=!1),_(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new b(t);return n._formatted=t.external,n._fsPath=t._sep===p?t.fsPath:null,n}return t},e}(),p=r?1:void 0,b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return s(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=w(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=p),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(g),v=((a={})[58]="%3A",a[47]="%2F",a[63]="%3F",a[35]="%23",a[91]="%5B",a[93]="%5D",a[64]="%40",a[33]="%21",a[36]="%24",a[38]="%26",a[39]="%27",a[40]="%28",a[41]="%29",a[42]="%2A",a[43]="%2B",a[44]="%2C",a[59]="%3B",a[61]="%3D",a[32]="%20",a);function y(e,t){for(var n=void 0,r=-1,i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var a=v[o];void 0!==a?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=a):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function C(e){for(var t=void 0,n=0;n1&&"file"===e.scheme?"//".concat(e.authority).concat(e.path):47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r&&(n=n.replace(/\//g,"\\")),n}function _(e,t){var n=t?C:y,r="",i=e.scheme,o=e.authority,a=e.path,s=e.query,c=e.fragment;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=d,r+=d),o){var l=o.indexOf("@");if(-1!==l){var u=o.substr(0,l);o=o.substr(l+1),-1===(l=u.indexOf(":"))?r+=n(u,!1):(r+=n(u.substr(0,l),!1),r+=":",r+=n(u.substr(l+1),!1)),r+="@"}-1===(l=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,l),!1),r+=o.substr(l))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2))(h=a.charCodeAt(1))>=65&&h<=90&&(a="/".concat(String.fromCharCode(h+32),":").concat(a.substr(3)));else if(a.length>=2&&58===a.charCodeAt(1)){var h;(h=a.charCodeAt(0))>=65&&h<=90&&(a="".concat(String.fromCharCode(h+32),":").concat(a.substr(2)))}r+=n(a,!0)}return s&&(r+="?",r+=n(s,!1)),c&&(r+="#",r+=t?c:y(c,!1)),r}function S(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+S(e.substr(3)):e}}var A=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(e){return e.match(A)?e.replace(A,(function(e){return S(e)})):e}var E,N,k=n(470),L=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(447)})();var{URI:ts,Utils:ns}=Za;function rs(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),i="",o=!!t&&!!t.extended,a=!!t&&!!t.globstar,s=!1,c=t&&"string"==typeof t.flags?t.flags:"",l=0,u=r.length;l1&&("/"===h||void 0===h||"{"===h||","===h)&&("/"===d||void 0===d||","===d||"}"===d)?("/"===d?l++:"/"===h&&i.endsWith("\\/")&&(i=i.substr(0,i.length-2)),i+="((?:[^/]*(?:/|$))*)"):i+="([^/]*)";else i+=".*";break;default:i+=n}return c&&~c.indexOf("g")||(i="^"+i+"$"),new RegExp(i,c)}var is,os=ta(),as=function(){function e(e,t){this.globWrappers=[];try{for(var n=0,r=e;n0&&("/"===i[0]&&(i=i.substring(1)),this.globWrappers.push({regexp:rs("**/"+i,{extended:!0,globstar:!0}),include:o}))}this.uris=t}catch(e){this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,n=0,r=this.globWrappers;n0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(e){var t=this;this.cachedSchemaForResource=void 0;for(var n=!1,r=[e=fs(e)],i=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));r.length;)for(var o=r.pop(),a=0;a1&&(n=r[1]),Di(n,".")&&(n=n.substr(0,n.length-1)),new cs({},[os("json.schema.nocontent","Unable to load schema from '{0}': {1}.",ds(e),n)])}))},e.prototype.resolveSchemaContent=function(e,t){var n=this,r=e.errors.slice(0),i=e.schema;if(i.$schema){var o=fs(i.$schema);if("http://json-schema.org/draft-03/schema"===o)return this.promise.resolve(new ls({},[os("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===o?r.push(os("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported.")):"https://json-schema.org/draft/2020-12/schema"===o&&r.push(os("json.schema.draft202012.notsupported","Draft 2020-12 schemas are not yet fully supported."))}var a=this.contextService,s=function(e,t,n,i){var o,a,s,c;void 0===i||0===i.length?o=t:"/"===i.charAt(0)?o=function(e,t){t=decodeURIComponent(t);var n=e;return"/"===t[0]&&(t=t.substring(1)),t.split("/").some((function(e){return e=e.replace(/~1/g,"/").replace(/~0/g,"~"),!(n=n[e])})),n}(t,i):(a=t,c=i,(s=n).anchors||(s.anchors=u(a)),o=s.anchors.get(c)),o?function(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&"id"!==n&&"$id"!==n&&(e[n]=t[n])}(e,o):r.push(os("json.schema.invalidid","$ref '{0}' in '{1}' can not be resolved.",i,n.uri))},c=function(e,t,i,o){a&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=a.resolveRelativePath(t,o.uri)),t=fs(t);var c=n.getOrAddSchemaHandle(t);return c.getUnresolvedSchema().then((function(n){if(o.dependencies.add(t),n.errors.length){var a=i?t+"#"+i:t;r.push(os("json.schema.problemloadingref","Problems loading reference '{0}': {1}",a,n.errors[0]))}return s(e,n.schema,c,i),l(e,n.schema,c)}))},l=function(e,t,r){var i=[];return n.traverseNodes(e,(function(e){for(var n=new Set;e.$ref;){var o=e.$ref,a=o.split("#",2);if(delete e.$ref,a[0].length>0)return void i.push(c(e,a[0],a[1],r));if(!n.has(o)){var l=a[1];s(e,t,r,l),n.add(o)}}})),n.promise.all(i)},u=function(e){var t=new Map;return n.traverseNodes(e,(function(e){var n=e.$id||e.id;if("string"==typeof n&&"#"===n.charAt(0)){var i=n.substring(1);t.has(i)?r.push(os("json.schema.duplicateid","Duplicate id declaration: '{0}'",n)):t.set(i,e)}})),t};return l(i,i,t).then((function(e){return new ls(i,r)}))},e.prototype.traverseNodes=function(e,t){if(!e||"object"!=typeof e)return Promise.resolve(null);for(var n=new Set,r=function(){for(var e=[],t=0;t0?this.createCombinedSchema(e,i).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:o},o},e.prototype.createCombinedSchema=function(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map((function(e){return{$ref:e}}))};return this.addSchemaHandle(n,r)},e.prototype.getMatchingSchemas=function(e,t,n){if(n){var r=n.id||"schemaservice://untitled/matchingSchemas/"+hs++;return this.addSchemaHandle(r,n).getResolvedSchema().then((function(e){return t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted}))}))}return this.getSchemaForResource(e.uri,t).then((function(e){return e?t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted})):[]}))},e}(),hs=0;function fs(e){try{return ts.parse(e).toString()}catch(t){return e}}function ds(e){try{var t=ts.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}function ms(e,t){var n=[],r=[],i=[],o=-1,a=Li(e.getText(),!1),s=a.scan();function c(e){n.push(e),r.push(i.length)}for(;17!==s;){switch(s){case 1:case 3:var l={startLine:f=e.positionAt(a.getTokenOffset()).line,endLine:f,kind:1===s?"object":"array"};i.push(l);break;case 2:case 4:var u=2===s?"object":"array";if(i.length>0&&i[i.length-1].kind===u){l=i.pop();var h=e.positionAt(a.getTokenOffset()).line;l&&h>l.startLine+1&&o!==l.startLine&&(l.endLine=h-1,c(l),o=l.startLine)}break;case 13:var f=e.positionAt(a.getTokenOffset()).line,d=e.positionAt(a.getTokenOffset()+a.getTokenLength()).line;1===a.getTokenError()&&f+1=0&&i[g].kind!==Yr.Region;)g--;if(g>=0){l=i[g];i.length=g,h>l.startLine&&o!==l.startLine&&(l.endLine=h,c(l),o=l.startLine)}}}}s=a.scan()}var p=t&&t.rangeLimit;if("number"!=typeof p||n.length<=p)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);for(var b=[],v=0,y=r;vp){w=g;break}C+=_}}var S=[];for(g=0;g=c&&i<=l&&s.push(r(c,l)),s.push(r(a.offset,a.offset+a.length));break;case"number":case"boolean":case"null":case"property":s.push(r(a.offset,a.offset+a.length))}if("property"===a.type||a.parent&&"array"===a.parent.type){var u=o(a.offset+a.length,5);-1!==u&&s.push(r(a.offset,u))}a=a.parent}for(var h=void 0,f=s.length-1;f>=0;f--)h=Ro.create(s[f],h);return h||(h=Ro.create(jr.create(t,t))),h}))}function ps(e,t){var n=[];return t.visit((function(r){var i;if("property"===r.type&&"$ref"===r.keyNode.value&&"string"===(null===(i=r.valueNode)||void 0===i?void 0:i.type)){var o=r.valueNode.value,a=function(e,t){var n=function(e){if("#"===e)return[];if("#"!==e[0]||"/"!==e[1])return null;return e.substring(2).split(/\//).map(ys)}(t);if(!n)return null;return vs(n,e.root)}(t,o);if(a){var s=e.positionAt(a.offset);n.push({target:"".concat(e.uri,"#").concat(s.line+1,",").concat(s.character+1),range:bs(e,r.valueNode)})}}return!0})),Promise.resolve(n)}function bs(e,t){return jr.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function vs(e,t){if(!t)return null;if(0===e.length)return t;var n=e.shift();if(t&&"object"===t.type){var r=t.properties.find((function(e){return e.keyNode.value===n}));return r?vs(e,r.valueNode):null}if(t&&"array"===t.type&&n.match(/^(0|[1-9][0-9]*)$/)){var i=Number.parseInt(n),o=t.items[i];return o?vs(e,o):null}return null}function ys(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Cs(e){var t=e.promiseConstructor||Promise,n=new us(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(Qa);var r=new ka(n,e.contributions,t,e.clientCapabilities),i=new La(n,e.contributions,t),o=new qa(n),a=new Ma(n,t);return{configure:function(e){n.clearExternalSchemas(),e.schemas&&e.schemas.forEach((function(e){n.registerExternalSchema(e.uri,e.fileMatch,e.schema)})),a.configure(e)},resetSchema:function(e){return n.onResourceChange(e)},doValidation:a.doValidation.bind(a),getLanguageStatus:a.getLanguageStatus.bind(a),parseJSONDocument:function(e){return xa(e,{collectComments:!0})},newJSONDocument:function(e,t){return function(e,t){return void 0===t&&(t=[]),new Sa(e,t,[])}(e,t)},getMatchingSchemas:n.getMatchingSchemas.bind(n),doResolve:r.doResolve.bind(r),doComplete:r.doComplete.bind(r),findDocumentSymbols:o.findDocumentSymbols.bind(o),findDocumentSymbols2:o.findDocumentSymbols2.bind(o),findDocumentColors:o.findDocumentColors.bind(o),getColorPresentations:o.getColorPresentations.bind(o),doHover:i.doHover.bind(i),getFoldingRanges:ms,getSelectionRanges:gs,findDefinition:function(){return Promise.resolve([])},findLinks:ps,format:function(e,t,n){var r=void 0;if(t){var i=e.offsetAt(t.start);r={offset:i,length:e.offsetAt(t.end)-i}}var o={tabSize:n?n.tabSize:4,insertSpaces:!0===(null==n?void 0:n.insertSpaces),insertFinalNewline:!0===(null==n?void 0:n.insertFinalNewline),eol:"\n"};return function(e,t,n){return Or(e,t,n)}(e.getText(),r,o).map((function(t){return di.replace(jr.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length)),t.content)}))}}}"undefined"!=typeof fetch&&(is=function(e){return fetch(e).then((e=>e.text()))});var ws=class{_ctx;_languageService;_languageSettings;_languageId;constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId,this._languageService=Cs({workspaceContext:{resolveRelativePath:(e,t)=>function(e,t){if(function(e){return e.charCodeAt(0)===_s}(t)){const n=ts.parse(e),r=t.split("/");return n.with({path:As(r)}).toString()}return function(e,...t){const n=ts.parse(e),r=n.path.split("/");for(let e of t)r.push(...e.split("/"));return n.with({path:As(r)}).toString()}(e,t)}(t.substr(0,t.lastIndexOf("/")+1),e)},schemaRequestService:t.enableSchemaRequest?is:void 0}),this._languageService.configure(this._languageSettings)}async doValidation(e){let t=this._getTextDocument(e);if(t){let e=this._languageService.parseJSONDocument(t);return this._languageService.doValidation(t,e,this._languageSettings)}return Promise.resolve([])}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doComplete(n,t,r)}async doResolve(e){return this._languageService.doResolve(e)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doHover(n,t,r)}async format(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.format(r,t,n);return Promise.resolve(i)}async resetSchema(e){return Promise.resolve(this._languageService.resetSchema(e))}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentSymbols(t,n);return Promise.resolve(r)}async findDocumentColors(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentColors(t,n);return Promise.resolve(r)}async getColorPresentations(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.parseJSONDocument(r),o=this._languageService.getColorPresentations(r,i,t,n);return Promise.resolve(o)}async getFoldingRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.getFoldingRanges(n,t);return Promise.resolve(r)}async getSelectionRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.parseJSONDocument(n),i=this._languageService.getSelectionRanges(n,t,r);return Promise.resolve(i)}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return qo.create(e,this._languageId,n.version,n.getValue());return null}},_s="/".charCodeAt(0),Ss=".".charCodeAt(0);function As(e){const t=[];for(const n of e)0===n.length||1===n.length&&n.charCodeAt(0)===Ss||(2===n.length&&n.charCodeAt(0)===Ss&&n.charCodeAt(1)===Ss?t.pop():t.push(n));e.length>1&&0===e[e.length-1].length&&t.push("");let n=t.join("/");return 0===e[0].length&&(n="/"+n),n}self.onmessage=()=>{xr(((e,t)=>new ws(e,t)))}}();