/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){var e=["exports","require","vs/base/common/extpath","vs/base/common/path","vs/base/common/platform","vs/base/common/strings","vs/base/common/uri","vs/base/common/map","vs/base/common/network","vs/base/common/resources","vs/base/common/glob","vs/base/common/async","vs/base/common/lifecycle","vs/base/common/event","vs/base/common/iterator","vs/base/common/errors","vs/base/common/arrays","vs/base/common/cancellation","vs/workbench/contrib/output/common/outputLinkComputer","vs/editor/common/core/range"],t=function(t){for(var r=[],s=0,i=t.length;s<i;s++)r[s]=e[t[s]];return r};define(e[11],t([1,0,17,15,13,12]),function(e,t,r,s,i,n){"use strict";function o(e){return e&&"function"==typeof e.then}function a(e){const t=new r.CancellationTokenSource,i=e(t.token),n=new Promise((e,r)=>{t.token.onCancellationRequested(()=>{r(s.canceled())}),Promise.resolve(i).then(r=>{t.dispose(),e(r)},e=>{t.dispose(),r(e)})});return new class{cancel(){t.cancel()}then(e,t){return n.then(e,t)}catch(e){return this.then(void 0,e)}
finally(e){return n.finally(e)}}}function l(e,t){return t?new Promise((r,i)=>{const n=setTimeout(r,e);t.onCancellationRequested(()=>{clearTimeout(n),i(s.canceled())})}):a(t=>l(e,t))}function h(e){function t(n){void 0!==n&&null!==n&&r.push(n);const o=s<i?e[s++]():null;return o?o.then(t):Promise.resolve(r)}const r=[];let s=0;const i=e.length;return Promise.resolve(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=o,t.createCancelablePromise=a,t.asPromise=function(e){return new Promise((t,r)=>{let s=e();o(s)?s.then(t,r):t(s)})};class c{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{this.queuedPromise=null;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}
return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{this.activePromise=null,t(e)})})}}t.Throttler=c;class u{constructor(){this.current=Promise.resolve(null)}queue(e){return this.current=this.current.then(()=>e())}}t.Sequencer=u;class f{constructor(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.task=null}trigger(e,t=this.defaultDelay){return this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{this.completionPromise=null,this.doResolve=null;const e=this.task;return this.task=null,e()})),this.timeout=setTimeout(()=>{this.timeout=null,this.doResolve(null)},t),this.completionPromise}isTriggered(){return null!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject(s.canceled()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}
dispose(){this.cancelTimeout()}}t.Delayer=f;class d{constructor(e){this.delayer=new f(e),this.throttler=new c}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}t.ThrottledDelayer=d;class m{constructor(){this._isOpen=!1,this._promise=new Promise((e,t)=>{this._completePromise=e})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}t.Barrier=m,t.timeout=l,t.disposableTimeout=function(e,t=0){const r=setTimeout(e,t);return n.toDisposable(()=>clearTimeout(r))},t.ignoreErrors=function(e){return e.then(void 0,e=>void 0)},t.sequence=h,t.first=function(e,t=(e=>!!e),r=null){let s=0;const i=e.length,n=()=>{if(s>=i)return Promise.resolve(r);const o=e[s++];return Promise.resolve(o()).then(e=>t(e)?Promise.resolve(e):n())};return n()};class p{constructor(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],
this.runningPromises=0,this._onFinished=new i.Emitter}get onFinished(){return this._onFinished.event}get size(){return this._size}queue(e){return this._size++,new Promise((t,r)=>{this.outstandingPromises.push({factory:e,c:t,e:r}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const e=this.outstandingPromises.shift();this.runningPromises++;const t=e.factory();t.then(e.c,e.e),t.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onFinished.fire()}dispose(){this._onFinished.dispose()}}t.Limiter=p;class g extends p{constructor(){super(1)}}t.Queue=g;class _{constructor(){this.queues=Object.create(null)}queueFor(e){const t=e.toString();if(!this.queues[t]){const e=new g;e.onFinished(()=>{e.dispose(),delete this.queues[t]}),this.queues[t]=e}return this.queues[t]}}t.ResourceQueue=_;class v extends n.Disposable{constructor(e,t){super(),this._token=-1,
"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel(),super.dispose()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}t.TimeoutTimer=v;class C extends n.Disposable{constructor(){super(),this._token=-1}dispose(){this.cancel(),super.dispose()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}t.IntervalTimer=C;class A{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}isScheduled(){return-1!==this.timeoutToken}onTimeout(){
this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}t.RunOnceScheduler=A;class b extends A{constructor(e,t){super(e,t),this.units=[]}work(e){this.units.push(e),this.isScheduled()||this.schedule()}doRun(){const e=this.units;this.units=[],this.runner&&this.runner(e)}dispose(){this.units=[],super.dispose()}}t.RunOnceWorker=b,t.nfcall=function(e,...t){return new Promise((r,s)=>e(...t,(e,t)=>e?s(e):r(t)))},t.ninvoke=function(e,t,...r){return new Promise((s,i)=>t.call(e,...r,(e,t)=>e?i(e):s(t)))},function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){let e=Object.freeze({didTimeout:!0,timeRemaining:()=>15});t.runWhenIdle=(t=>{let r=setTimeout(()=>t(e)),s=!1;return{dispose(){s||(s=!0,clearTimeout(r))}}})}else t.runWhenIdle=((e,t)=>{let r=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),s=!1;return{dispose(){s||(s=!0,cancelIdleCallback(r))}}})}();class w{constructor(e){this._executor=(()=>{try{this._value=e()}catch(e){this._error=e
}finally{this._didRun=!0}}),this._handle=t.runWhenIdle(()=>this._executor())}dispose(){this._handle.dispose()}getValue(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}}t.IdleValue=w}),define(e[8],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command"}(t.Schemas||(t.Schemas={}))}),define(e[3],t([1,0,4]),function(e,t,r){"use strict";function s(e,t){if("string"!=typeof e)throw new _(t,"string",e)}function i(e){return e===m||e===p}function n(e){return e===m}function o(e){return e>=h&&e<=u||e>=c&&e<=f}function a(e,t,r,s){let i,n="",o=0,a=-1,l=0;for(let h=0;h<=e.length;++h){if(h<e.length)i=e.charCodeAt(h);else{if(s(i))break;i=m}if(s(i)){
if(a===h-1||1===l);else if(a!==h-1&&2===l){if(n.length<2||2!==o||n.charCodeAt(n.length-1)!==d||n.charCodeAt(n.length-2)!==d){if(n.length>2){const e=n.lastIndexOf(r);-1===e?(n="",o=0):o=(n=n.slice(0,e)).length-1-n.lastIndexOf(r),a=h,l=0;continue}if(2===n.length||1===n.length){n="",o=0,a=h,l=0;continue}}t&&(n.length>0?n+=`${r}..`:n="..",o=2)}else n.length>0?n+=r+e.slice(a+1,h):n=e.slice(a+1,h),o=h-a-1;a=h,l=0}else i===d&&-1!==l?++l:l=-1}return n}function l(e,t){const r=t.dir||t.root,s=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+s:r+e+s:s}const h=65,c=97,u=90,f=122,d=46,m=47,p=92,g="undefined"==typeof process?{cwd:()=>"/",env:{},get platform(){return r.isWindows?"win32":"posix"}}:process;class _ extends Error{constructor(e,t,r){let s;"string"==typeof t&&0===t.indexOf("not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be";let i;i=`The "${e}" ${-1!==e.indexOf(".")?"property":"argument"} ${s} of type ${t}`,super(i+=`. Received type ${typeof r}`)}}const v={resolve(...e){let t="",r="",n=!1
;for(let a=e.length-1;a>=-1;a--){let l;if(a>=0?l=e[a]:t?void 0!==(l=g.env["="+t]||g.cwd())&&l.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(l=t+"\\"):l=g.cwd(),s(l,"path"),0===l.length)continue;let h=l.length,c=0,u="",f=!1;const d=l.charCodeAt(0);if(h>1)if(i(d))if(f=!0,i(l.charCodeAt(1))){let e=2,t=e;for(;e<h&&!i(l.charCodeAt(e));++e);if(e<h&&e!==t){const r=l.slice(t,e);for(t=e;e<h&&i(l.charCodeAt(e));++e);if(e<h&&e!==t){for(t=e;e<h&&!i(l.charCodeAt(e));++e);e===h?(u="\\\\"+r+"\\"+l.slice(t),c=e):e!==t&&(u="\\\\"+r+"\\"+l.slice(t,e),c=e)}}}else c=1;else o(d)&&58===l.charCodeAt(1)&&(u=l.slice(0,2),c=2,h>2&&i(l.charCodeAt(2))&&(f=!0,c=3));else i(d)&&(c=1,f=!0);if(!(u.length>0&&t.length>0&&u.toLowerCase()!==t.toLowerCase())&&(0===t.length&&u.length>0&&(t=u),n||(r=l.slice(c)+"\\"+r,n=f),t.length>0&&n))break}return r=a(r,!n,"\\",i),t+(n?"\\":"")+r||"."},normalize(e){s(e,"path");const t=e.length;if(0===t)return".";let r,n=0,l=!1;const h=e.charCodeAt(0);if(t>1)if(i(h))if(l=!0,i(e.charCodeAt(1))){let s=2,o=s
;for(;s<t&&!i(e.charCodeAt(s));++s);if(s<t&&s!==o){const a=e.slice(o,s);for(o=s;s<t&&i(e.charCodeAt(s));++s);if(s<t&&s!==o){for(o=s;s<t&&!i(e.charCodeAt(s));++s);if(s===t)return"\\\\"+a+"\\"+e.slice(o)+"\\";s!==o&&(r="\\\\"+a+"\\"+e.slice(o,s),n=s)}}}else n=1;else o(h)&&58===e.charCodeAt(1)&&(r=e.slice(0,2),n=2,t>2&&i(e.charCodeAt(2))&&(l=!0,n=3));else if(i(h))return"\\";let c;return 0!==(c=n<t?a(e.slice(n),!l,"\\",i):"").length||l||(c="."),c.length>0&&i(e.charCodeAt(t-1))&&(c+="\\"),void 0===r?l?c.length>0?"\\"+c:"\\":c.length>0?c:"":l?c.length>0?r+"\\"+c:r+"\\":c.length>0?r+c:r},isAbsolute(e){s(e,"path");const t=e.length;if(0===t)return!1;const r=e.charCodeAt(0);return!!i(r)||!!(o(r)&&t>2&&58===e.charCodeAt(1)&&i(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let t,r;for(let i=0;i<e.length;++i){let n=e[i];s(n,"path"),n.length>0&&(void 0===t?t=r=n:t+="\\"+n)}if(void 0===t)return".";let n=!0,o=0;if(i(r.charCodeAt(0))){++o;const e=r.length;e>1&&i(r.charCodeAt(1))&&(++o,
e>2&&(i(r.charCodeAt(2))?++o:n=!1))}if(n){for(;o<t.length&&i(t.charCodeAt(o));++o);o>=2&&(t="\\"+t.slice(o))}return v.normalize(t)},relative(e,t){if(s(e,"from"),s(t,"to"),e===t)return"";let r=v.resolve(e),i=v.resolve(t);if(r===i)return"";if(e=r.toLowerCase(),t=i.toLowerCase(),e===t)return"";let n=0;for(;n<e.length&&e.charCodeAt(n)===p;++n);let o=e.length;for(;o-1>n&&e.charCodeAt(o-1)===p;--o);let a=o-n,l=0;for(;l<t.length&&t.charCodeAt(l)===p;++l);let h=t.length;for(;h-1>l&&t.charCodeAt(h-1)===p;--h);let c=h-l,u=a<c?a:c,f=-1,d=0;for(;d<=u;++d){if(d===u){if(c>u){if(t.charCodeAt(l+d)===p)return i.slice(l+d+1);if(2===d)return i.slice(l+d)}a>u&&(e.charCodeAt(n+d)===p?f=d:2===d&&(f=3));break}let r=e.charCodeAt(n+d);if(r!==t.charCodeAt(l+d))break;r===p&&(f=d)}if(d!==u&&-1===f)return i;let m="";for(-1===f&&(f=0),d=n+f+1;d<=o;++d)d!==o&&e.charCodeAt(d)!==p||(0===m.length?m+="..":m+="\\..");return m.length>0?m+i.slice(l+f,h):(l+=f,i.charCodeAt(l)===p&&++l,i.slice(l,h))},toNamespacedPath(e){
if("string"!=typeof e)return e;if(0===e.length)return"";const t=v.resolve(e);if(t.length>=3)if(t.charCodeAt(0)===p){if(t.charCodeAt(1)===p){const e=t.charCodeAt(2);if(63!==e&&e!==d)return"\\\\?\\UNC\\"+t.slice(2)}}else if(o(t.charCodeAt(0))&&58===t.charCodeAt(1)&&t.charCodeAt(2)===p)return"\\\\?\\"+t;return e},dirname(e){s(e,"path");const t=e.length;if(0===t)return".";let r=-1,n=-1,a=!0,l=0;const h=e.charCodeAt(0);if(t>1)if(i(h)){if(r=l=1,i(e.charCodeAt(1))){let s=2,n=s;for(;s<t&&!i(e.charCodeAt(s));++s);if(s<t&&s!==n){for(n=s;s<t&&i(e.charCodeAt(s));++s);if(s<t&&s!==n){for(n=s;s<t&&!i(e.charCodeAt(s));++s);if(s===t)return e;s!==n&&(r=l=s+1)}}}}else o(h)&&58===e.charCodeAt(1)&&(r=l=2,t>2&&i(e.charCodeAt(2))&&(r=l=3));else if(i(h))return e;for(let r=t-1;r>=l;--r)if(i(e.charCodeAt(r))){if(!a){n=r;break}}else a=!1;if(-1===n){if(-1===r)return".";n=r}return e.slice(0,n)},basename(e,t){void 0!==t&&s(t,"ext"),s(e,"path");let r,n=0,a=-1,l=!0;if(e.length>=2){o(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2)}
if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,o=-1;for(r=e.length-1;r>=n;--r){const h=e.charCodeAt(r);if(i(h)){if(!l){n=r+1;break}}else-1===o&&(l=!1,o=r+1),s>=0&&(h===t.charCodeAt(s)?-1==--s&&(a=r):(s=-1,a=o))}return n===a?a=o:-1===a&&(a=e.length),e.slice(n,a)}for(r=e.length-1;r>=n;--r)if(i(e.charCodeAt(r))){if(!l){n=r+1;break}}else-1===a&&(l=!1,a=r+1);return-1===a?"":e.slice(n,a)},extname(e){s(e,"path");let t=0,r=-1,n=0,a=-1,l=!0,h=0;e.length>=2&&58===e.charCodeAt(1)&&o(e.charCodeAt(0))&&(t=n=2);for(let s=e.length-1;s>=t;--s){const t=e.charCodeAt(s);if(i(t)){if(!l){n=s+1;break}}else-1===a&&(l=!1,a=s+1),t===d?-1===r?r=s:1!==h&&(h=1):-1!==r&&(h=-1)}return-1===r||-1===a||0===h||1===h&&r===a-1&&r===n+1?"":e.slice(r,a)},format(e){if(null===e||"object"!=typeof e)throw new _("pathObject","Object",e);return l("\\",e)},parse(e){s(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let r=e.length,n=0,a=e.charCodeAt(0);if(r>1){
if(i(a)){if(n=1,i(e.charCodeAt(1))){let t=2,s=t;for(;t<r&&!i(e.charCodeAt(t));++t);if(t<r&&t!==s){for(s=t;t<r&&i(e.charCodeAt(t));++t);if(t<r&&t!==s){for(s=t;t<r&&!i(e.charCodeAt(t));++t);t===r?n=t:t!==s&&(n=t+1)}}}}else if(o(a)&&58===e.charCodeAt(1)){if(n=2,!(r>2))return t.root=t.dir=e,t;if(i(e.charCodeAt(2))){if(3===r)return t.root=t.dir=e,t;n=3}}}else if(i(a))return t.root=t.dir=e,t;n>0&&(t.root=e.slice(0,n));let l=-1,h=n,c=-1,u=!0,f=e.length-1,m=0;for(;f>=n;--f)if(a=e.charCodeAt(f),i(a)){if(!u){h=f+1;break}}else-1===c&&(u=!1,c=f+1),a===d?-1===l?l=f:1!==m&&(m=1):-1!==l&&(m=-1);return-1===l||-1===c||0===m||1===m&&l===c-1&&l===h+1?-1!==c&&(t.base=t.name=e.slice(h,c)):(t.name=e.slice(h,l),t.base=e.slice(h,c),t.ext=e.slice(l,c)),t.dir=h>0&&h!==n?e.slice(0,h-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},C={resolve(...e){let t="",r=!1;for(let i=e.length-1;i>=-1&&!r;i--){let n;s(n=i>=0?e[i]:g.cwd(),"path"),0!==n.length&&(t=n+"/"+t,r=n.charCodeAt(0)===m)}return t=a(t,!r,"/",n),
r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(s(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===m,r=e.charCodeAt(e.length-1)===m;return 0!==(e=a(e,!t,"/",n)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(s(e,"path"),e.length>0&&e.charCodeAt(0)===m),join(...e){if(0===e.length)return".";let t;for(let r=0;r<e.length;++r){let e=arguments[r];s(e,"path"),e.length>0&&(void 0===t?t=e:t+="/"+e)}return void 0===t?".":C.normalize(t)},relative(e,t){if(s(e,"from"),s(t,"to"),e===t)return"";if(e=C.resolve(e),t=C.resolve(t),e===t)return"";let r=1;for(;r<e.length&&e.charCodeAt(r)===m;++r);let i=e.length,n=i-r,o=1;for(;o<t.length&&t.charCodeAt(o)===m;++o);let a=t.length-o,l=n<a?n:a,h=-1,c=0;for(;c<=l;++c){if(c===l){if(a>l){if(t.charCodeAt(o+c)===m)return t.slice(o+c+1);if(0===c)return t.slice(o+c)}else n>l&&(e.charCodeAt(r+c)===m?h=c:0===c&&(h=0));break}let s=e.charCodeAt(r+c);if(s!==t.charCodeAt(o+c))break;s===m&&(h=c)}let u=""
;for(c=r+h+1;c<=i;++c)c!==i&&e.charCodeAt(c)!==m||(0===u.length?u+="..":u+="/..");return u.length>0?u+t.slice(o+h):(o+=h,t.charCodeAt(o)===m&&++o,t.slice(o))},toNamespacedPath:e=>e,dirname(e){if(s(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===m;let r=-1,i=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===m){if(!i){r=t;break}}else i=!1;return-1===r?t?"/":".":t&&1===r?"//":e.slice(0,r)},basename(e,t){void 0!==t&&s(t,"ext"),s(e,"path");let r,i=0,n=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,a=-1;for(r=e.length-1;r>=0;--r){const l=e.charCodeAt(r);if(l===m){if(!o){i=r+1;break}}else-1===a&&(o=!1,a=r+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(n=r):(s=-1,n=a))}return i===n?n=a:-1===n&&(n=e.length),e.slice(i,n)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===m){if(!o){i=r+1;break}}else-1===n&&(o=!1,n=r+1);return-1===n?"":e.slice(i,n)},extname(e){s(e,"path");let t=-1,r=0,i=-1,n=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s)
;if(a!==m)-1===i&&(n=!1,i=s+1),a===d?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!n){r=s+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?"":e.slice(t,i)},format(e){if(null===e||"object"!=typeof e)throw new _("pathObject","Object",e);return l("/",e)},parse(e){s(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let r,i=e.charCodeAt(0)===m;i?(t.root="/",r=1):r=0;let n=-1,o=0,a=-1,l=!0,h=e.length-1,c=0;for(;h>=r;--h){const t=e.charCodeAt(h);if(t!==m)-1===a&&(l=!1,a=h+1),t===d?-1===n?n=h:1!==c&&(c=1):-1!==n&&(c=-1);else if(!l){o=h+1;break}}return-1===n||-1===a||0===c||1===c&&n===a-1&&n===o+1?-1!==a&&(t.base=t.name=0===o&&i?e.slice(1,a):e.slice(o,a)):(0===o&&i?(t.name=e.slice(1,n),t.base=e.slice(1,a)):(t.name=e.slice(o,n),t.base=e.slice(o,a)),t.ext=e.slice(n,a)),o>0?t.dir=e.slice(0,o-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};C.win32=v.win32=v,C.posix=v.posix=C;return"win32"===g.platform?v:C}),define(e[2],t([1,0,4,5,3]),function(e,t,r,s,i){
"use strict";function n(e){return 47===e||92===e}function o(e){return e>=65&&e<=90||e>=97&&e<=122}Object.defineProperty(t,"__esModule",{value:!0}),t.toSlashes=function(e){return e.replace(/[\\/]/g,"/")},t.getRoot=function(e,t="/"){if(!e)return"";let r=e.length;const s=e.charCodeAt(0);if(n(s)){if(n(e.charCodeAt(1))&&!n(e.charCodeAt(2))){let s=3,i=s;for(;s<r&&!n(e.charCodeAt(s));s++);if(i!==s&&!n(e.charCodeAt(s+1)))for(s+=1;s<r;s++)if(n(e.charCodeAt(s)))return e.slice(0,s+1).replace(/[\\/]/g,t)}return t}if(o(s)&&58===e.charCodeAt(1))return n(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let i=e.indexOf("://");if(-1!==i)for(i+=3;i<r;i++)if(n(e.charCodeAt(i)))return e.slice(0,i+1);return""},t.isUNC=function(e){if(!r.isWindows)return!1;if(!e||e.length<5)return!1;let t=e.charCodeAt(0);if(92!==t)return!1;if(92!==(t=e.charCodeAt(1)))return!1;let s=2,i=s;for(;s<e.length&&92!==(t=e.charCodeAt(s));s++);return i!==s&&(t=e.charCodeAt(s+1),!isNaN(t)&&92!==t)}
;const a=r.isWindows?/[\\/:\*\?"<>\|]/g:/[\\/]/g,l=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e){return!(!e||0===e.length||/^\s+$/.test(e)||(a.lastIndex=0,a.test(e)||r.isWindows&&l.test(e)||"."===e||".."===e||r.isWindows&&"."===e[e.length-1]||r.isWindows&&e.length!==e.trim().length||e.length>255))},t.isEqual=function(e,t,r){const i=e===t;return!r||i?i:!(!e||!t)&&s.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,t,r,n=i.sep){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(r){if(!s.startsWithIgnoreCase(e,t))return!1;if(t.length===e.length)return!0;let r=t.length;return t.charAt(t.length-1)===n&&r--,e.charAt(r)===n}return t.charAt(t.length-1)!==n&&(t+=n),0===e.indexOf(t)},t.isWindowsDriveLetter=o}),define(e[7],t([1,0,6,14]),function(e,t,r,s){"use strict";function i(e){const t=[];return e.forEach(e=>t.push(e)),t}function n(e){const t=[];return e.forEach((e,r)=>t.push(r)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.values=i,t.keys=n,
t.getOrSet=function(e,t,r){let s=e.get(t);return void 0===s&&(s=r,e.set(t,s)),s},t.mapToString=function(e){const t=[];return e.forEach((e,r)=>{t.push(`${r} => ${e}`)}),`Map(${e.size}) {${t.join(", ")}}`},t.setToString=function(e){const t=[];return e.forEach(e=>{t.push(e)}),`Set(${e.size}) {${t.join(", ")}}`},t.mapToSerializable=function(e){const t=[];return e.forEach((e,r)=>{t.push([r,e])}),t},t.serializableToMap=function(e){const t=new Map;for(const[r,s]of e)t.set(r,s);return t};class o{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}t.StringIterator=o;class a{reset(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){
const t=this._value.charCodeAt(this._to);if(47===t||92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){let t=0,r=e.length,s=this._from;for(;t<r&&s<this._to;){let r=e.charCodeAt(t)-this._value.charCodeAt(s);if(0!==r)return r;t+=1,s+=1}return r===this._to-this._from?0:t<r?-1:1}value(){return this._value.substring(this._from,this._to)}}t.PathIterator=a;class l{isEmpty(){return!(this.left||this.mid||this.right||this.value)}}class h{constructor(e){this._iter=e}static forPaths(){return new h(new a)}static forStrings(){return new h(new o)}clear(){this._root=void 0}set(e,t){let r,s=this._iter.reset(e);for(this._root||(this._root=new l,this._root.segment=s.value()),r=this._root;;){let e=s.cmp(r.segment);if(e>0)r.left||(r.left=new l,r.left.segment=s.value()),r=r.left;else if(e<0)r.right||(r.right=new l,r.right.segment=s.value()),r=r.right;else{if(!s.hasNext())break;s.next(),r.mid||(r.mid=new l,r.mid.segment=s.value()),r=r.mid}}const i=r.value;return r.value=t,r.key=e,i}get(e){
let t=this._iter.reset(e),r=this._root;for(;r;){let e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())break;t.next(),r=r.mid}}return r?r.value:void 0}delete(e){let t=this._iter.reset(e),r=[],s=this._root;for(;s;){let e=t.cmp(s.segment);if(e>0)r.push([1,s]),s=s.left;else if(e<0)r.push([-1,s]),s=s.right;else{if(!t.hasNext()){for(s.value=void 0;r.length>0&&s.isEmpty();){let[e,t]=r.pop();switch(e){case 1:t.left=void 0;break;case 0:t.mid=void 0;break;case-1:t.right=void 0}s=t}break}t.next(),r.push([0,s]),s=s.mid}}}findSubstr(e){let t=this._iter.reset(e),r=this._root,s=void 0;for(;r;){let e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())break;t.next(),s=r.value||s,r=r.mid}}return r&&r.value||s}findSuperstr(e){let t=this._iter.reset(e),r=this._root;for(;r;){let e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())return r.mid?this._nodeIterator(r.mid):void 0;t.next(),r=r.mid}}}_nodeIterator(e){let t,r,i;return{next:()=>(i||(i=[],r=0,
this._forEach(e,e=>i.push(e))),r>=i.length?s.FIN:(t?t.value=i[r++]:t={done:!1,value:i[r++]},t))}}forEach(e){this._forEach(this._root,e)}_forEach(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))}}t.TernarySearchTree=h;class c{constructor(){this.map=new Map,this.ignoreCase=!1}set(e,t){this.map.set(this.toKey(e),t)}get(e){return this.map.get(this.toKey(e))}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e){this.map.forEach(e)}values(){return i(this.map)}toKey(e){let t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t}keys(){return n(this.map).map(e=>r.URI.parse(e))}clone(){const e=new c;return this.map.forEach((t,r)=>e.map.set(r,t)),e}}t.ResourceMap=c;!function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(t.Touch||(t.Touch={}));class u{constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}
clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}has(e){return this._map.has(e)}get(e,t=0){const r=this._map.get(e);if(r)return 0!==t&&this.touch(r,t),r.value}set(e,t,r=0){let s=this._map.get(e);if(s)s.value=t,0!==r&&this.touch(s,r);else{switch(s={key:e,value:t,next:void 0,previous:void 0},r){case 0:this.addItemLast(s);break;case 1:this.addItemFirst(s);break;case 2:default:this.addItemLast(s)}this._map.set(e,s),this._size++}}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){let r=this._head;for(;r;)t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),r=r.next}values(){let e=[],t=this._head;for(;t;)e.push(t.value),t=t.next
;return e}keys(){let e=[],t=this._head;for(;t;)e.push(t.key),t=t.next;return e}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0)}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}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}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,r=e.previous;if(!t||!r)throw new Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,
e.previous=void 0}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,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(t.previous=r,r.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;const t=e.next,r=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=r,r.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}}toJSON(){const e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){this.clear();for(const[t,r]of e)this.set(t,r)}}t.LinkedMap=u;class f extends u{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e){return super.get(e,2)}peek(e){return super.get(e,0)}set(e,t){super.set(e,t,2),
this.checkTrim()}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}t.LRUCache=f}),define(e[10],t([1,0,16,5,2,3,7,11]),function(e,t,r,s,i,n,o,a){"use strict";function l(e){switch(e){case 0:return"";case 1:return`${w}*?`;default:return`(?:${b}|${w}+${b}|${b}${w}+)*?`}}function h(e,t){if(!e)return[];let r=[],s=!1,i=!1,n="";for(const o of e){switch(o){case t:if(!s&&!i){r.push(n),n="";continue}break;case"{":s=!0;break;case"}":s=!1;break;case"[":i=!0;break;case"]":i=!1}n+=o}return n&&r.push(n),r}function c(e){if(!e)return"";let t="",r=h(e,A);if(r.every(e=>e===C))t=".*";else{let e=!1;r.forEach((i,n)=>{if(i===C)return void(e||(t+=l(2),e=!0));let o=!1,a="",u=!1,f="";for(const e of i)if("}"!==e&&o)a+=e;else if(!u||"]"===e&&f)switch(e){case"{":o=!0;continue;case"[":u=!0;continue;case"}":let r=`(?:${h(a,",").map(e=>c(e)).join("|")})`;t+=r,o=!1,a="";break;case"]":t+="["+f+"]",u=!1,f="";break;case"?":t+=w;continue;case"*":t+=l(1);continue;default:t+=s.escapeRegExpCharacters(e)}else{let t
;f+=t="-"===e?e:"^"!==e&&"!"!==e||f?e===A?"":s.escapeRegExpCharacters(e):"^"}n<r.length-1&&(r[n+1]!==C||n+2<r.length)&&(t+=b),e=!1})}return t}function u(e,t){if(!e)return R;let i;i="string"!=typeof e?e.pattern:e;const n=`${i=i.trim()}_${!!t.trimForExclusions}`;let o=I.get(n);if(o)return f(o,e);let a;if(P.test(i)){const e=i.substr(4);o=function(t,r){return"string"==typeof t&&s.endsWith(t,e)?i:null}}else o=(a=y.exec(d(i,t)))?function(e,t){const r=`/${e}`,i=`\\${e}`,n=function(n,o){return"string"!=typeof n?null:o?o===e?t:null:n===e||s.endsWith(n,r)||s.endsWith(n,i)?t:null},o=[e];return n.basenames=o,n.patterns=[t],n.allBasenames=o,n}(a[1],i):(t.trimForExclusions?T:k).test(i)?function(e,t){const s=v(e.slice(1,-1).split(",").map(e=>u(e,t)).filter(e=>e!==R),e),i=s.length;if(!i)return R;if(1===i)return s[0];const n=function(t,r){for(let i=0,n=s.length;i<n;i++)if(s[i](t,r))return e;return null},o=r.first(s,e=>!!e.allBasenames);o&&(n.allBasenames=o.allBasenames)
;const a=s.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);a.length&&(n.allPaths=a);return n}(i,t):(a=E.exec(d(i,t)))?m(a[1].substr(1),i,!0):(a=S.exec(d(i,t)))?m(a[1],i,!1):function(e){try{const t=new RegExp(`^${c(e)}$`);return function(r,s){return t.lastIndex=0,"string"==typeof r&&t.test(r)?e:null}}catch(e){return R}}(i);return I.set(n,o),f(o,e)}function f(e,t){return"string"==typeof t?e:function(r,s){return i.isEqualOrParent(r,t.base)?e(n.relative(t.base,r),s):null}}function d(e,t){return t.trimForExclusions&&s.endsWith(e,"/**")?e.substr(0,e.length-2):e}function m(e,t,r){const i=n.sep!==n.posix.sep?e.replace(x,n.sep):e,o=n.sep+i,a=r?function(e,r){return"string"!=typeof e||e!==i&&!s.endsWith(e,o)?null:t}:function(e,r){return"string"==typeof e&&e===i?t:null};return a.allPaths=[(r?"*/":"./")+e],a}function p(e,t={}){if(!e)return O;if("string"==typeof e||_(e)){const r=u(e,t);if(r===R)return O;const s=function(e,t){return!!r(e,t)};return r.allBasenames&&(s.allBasenames=r.allBasenames),
r.allPaths&&(s.allPaths=r.allPaths),s}return function(e,t){const s=v(Object.getOwnPropertyNames(e).map(r=>(function(e,t,r){if(!1===t)return R;const s=u(e,r);if(s===R)return R;if("boolean"==typeof t)return s;if(t){const r=t.when;if("string"==typeof r){const t=(t,i,n,o)=>{if(!o||!s(t,i))return null;const l=r.replace("$(basename)",n),h=o(l);return a.isThenable(h)?h.then(t=>t?e:null):h?e:null};return t.requiresSiblings=!0,t}}return s})(r,e[r],t)).filter(e=>e!==R)),i=s.length;if(!i)return R;if(!s.some(e=>!!e.requiresSiblings)){if(1===i)return s[0];const e=function(e,t){for(let r=0,i=s.length;r<i;r++){const i=s[r](e,t);if(i)return i}return null},t=r.first(s,e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const n=s.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return n.length&&(e.allPaths=n),e}const o=function(e,t,r){let i=void 0;for(let o=0,a=s.length;o<a;o++){const a=s[o];a.requiresSiblings&&r&&(t||(t=n.basename(e)),i||(i=t.substr(0,t.length-n.extname(e).length)));const l=a(e,t,i,r);if(l)return l}
return null},l=r.first(s,e=>!!e.allBasenames);l&&(o.allBasenames=l.allBasenames);const h=s.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);h.length&&(o.allPaths=h);return o}(e,t)}function g(e){const t={};for(const r of e)t[r]=!0;return t}function _(e){const t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}function v(e,t){const r=e.filter(e=>!!e.basenames);if(r.length<2)return e;const s=r.reduce((e,t)=>{const r=t.basenames;return r?e.concat(r):e},[]);let i;if(t){i=[];for(let e=0,r=s.length;e<r;e++)i.push(t)}else i=r.reduce((e,t)=>{const r=t.patterns;return r?e.concat(r):e},[]);const n=function(e,t){if("string"!=typeof e)return null;if(!t){let r;for(r=e.length;r>0;r--){const t=e.charCodeAt(r-1);if(47===t||92===t)break}t=e.substr(r)}const r=s.indexOf(t);return-1!==r?i[r]:null};n.basenames=s,n.patterns=i,n.allBasenames=s;const o=e.filter(e=>!e.basenames);return o.push(n),o}Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyExpression=function(){return Object.create(null)}
;const C="**",A="/",b="[/\\\\]",w="[^/\\\\]",x=/\//g;t.splitGlobAware=h;const P=/^\*\*\/\*\.[\w\.-]+$/,y=/^\*\*\/([\w\.-]+)\/?$/,k=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,T=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,E=/^\*\*((\/[\w\.-]+)+)\/?$/,S=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,I=new o.LRUCache(1e4),O=function(){return!1},R=function(){return null};t.match=function(e,t,r){return!(!e||"string"!=typeof t)&&p(e)(t,void 0,r)},t.parse=p,t.hasSiblingPromiseFn=function(e){if(!e)return;let t;return r=>(t||(t=(e()||Promise.resolve([])).then(e=>e?g(e):{})),t.then(e=>!!e[r]))},t.hasSiblingFn=function(e){if(!e)return;let t;return r=>{if(!t){const r=e();t=r?g(r):{}}return!!t[r]}},t.isRelativePattern=_,t.parseToAsync=function(e,t){const r=p(e,t);return(e,t,s)=>{const i=r(e,t,s);return a.isThenable(i)?i:Promise.resolve(i)}},t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}}),
define(e[9],t([1,0,2,3,6,5,8,4,10,7]),function(e,t,r,s,i,n,o,a,l,h){"use strict";function c(e){return!e||e.scheme!==o.Schemas.file||!a.isLinux}function u(e,t,s=c(e)){if(e.scheme===t.scheme){if(e.scheme===o.Schemas.file)return r.isEqualOrParent(m(e),m(t),s);if(f(e.authority,t.authority))return r.isEqualOrParent(e.path,t.path,s,"/")}return!1}function f(e,t){return e===t||n.equalsIgnoreCase(e,t)}function d(e){return s.posix.basename(e.path)}function m(e){let t;const s=e.path;return t=e.authority&&s.length>1&&"file"===e.scheme?`//${e.authority}${s}`:a.isWindows&&47===s.charCodeAt(0)&&r.isWindowsDriveLetter(s.charCodeAt(1))&&58===s.charCodeAt(2)?s.substr(1):s,a.isWindows&&(t=t.replace(/\//g,"\\")),t}function p(e){if(e.scheme===o.Schemas.file){const t=m(e);return t.length>r.getRoot(t).length&&t[t.length-1]===s.sep}{let t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)}}function g(e,t){if(e.scheme===t.scheme&&f(e.authority,t.authority)){if(e.scheme===o.Schemas.file){const i=s.relative(e.path,t.path)
;return a.isWindows?r.toSlashes(i):i}return s.posix.relative(e.path||"/",t.path||"/")}}Object.defineProperty(t,"__esModule",{value:!0}),t.getComparisonKey=function(e){return c(e)?e.toString().toLowerCase():e.toString()},t.hasToIgnoreCase=c,t.basenameOrAuthority=function(e){return d(e)||e.authority},t.isEqualOrParent=u,t.isEqualAuthority=f,t.isEqual=function(e,t,r=c(e)){if(e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!f(e.authority,t.authority))return!1;const s=e.path||"/",i=t.path||"/";return s===i||r&&n.equalsIgnoreCase(s||"/",i||"/")},t.basename=d,t.extname=function(e){return s.posix.extname(e.path)},t.dirname=function(e){if(0===e.path.length)return e;if(e.scheme===o.Schemas.file)return i.URI.file(s.dirname(m(e)));let t=s.posix.dirname(e.path);return e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/"),e.with({path:t})},t.joinPath=function(e,...t){let r
;return r=e.scheme===o.Schemas.file?i.URI.file(s.join(m(e),...t)).path:s.posix.join(e.path||"/",...t),e.with({path:r})},t.normalizePath=function(e){if(!e.path.length)return e;let t;return t=e.scheme===o.Schemas.file?i.URI.file(s.normalize(m(e))).path:s.posix.normalize(e.path),e.with({path:t})},t.originalFSPath=m,t.isAbsolutePath=function(e){return!!e.path&&"/"===e.path[0]},t.hasTrailingPathSeparator=p,t.removeTrailingPathSeparator=function(e){return p(e)?e.with({path:e.path.substr(0,e.path.length-1)}):e},t.relativePath=g,t.resolvePath=function(e,t){let r;return r=e.scheme===o.Schemas.file?i.URI.file(s.resolve(m(e),t)).path:s.posix.resolve(e.path,t),e.with({path:r})},t.distinctParents=function(e,t){const r=[];for(let s=0;s<e.length;s++){const i=t(e[s]);e.some((e,r)=>r!==s&&u(i,t(e)))||r.push(e[s])}return r},t.isMalformedFileUri=function(e){if(!e.scheme||a.isWindows&&e.scheme.match(/^[a-zA-Z]$/))return i.URI.file((e.scheme?e.scheme+":":"")+e.path)};!function(e){e.META_DATA_LABEL="label",
e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const r=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(e=>{const[t,s]=e.split(":");t&&s&&r.set(t,s)});const s=t.path.substring(0,t.path.indexOf(";"));return s&&r.set(e.META_DATA_MIME,s),r}}(t.DataUri||(t.DataUri={}));class _{constructor(e,t){this.expressionsByRoot=h.TernarySearchTree.forPaths(),this.globalExpression=l.parse(e);for(const e of t)this.expressionsByRoot.set(e.root.toString(),{root:e.root,expression:l.parse(e.expression)})}matches(e){const t=this.expressionsByRoot.findSubstr(e.toString());if(t){const r=g(t.root,e);if(r&&t.expression(r))return!0}return!!this.globalExpression(e.path)}}t.ResourceGlobMatcher=_}),define(e[18],t([1,0,6,2,9,5,19,4,8]),function(e,t,r,s,i,n,o,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class h{constructor(e,t){this.ctx=e,this.patterns=new Map,this.computePatterns(t)}computePatterns(e){
e.workspaceFolders.map(e=>r.URI.parse(e)).forEach(e=>{const t=h.createPatterns(e);this.patterns.set(e,t)})}getModel(e){const t=this.ctx.getMirrorModels();for(const r of t)if(r.uri.toString()===e)return r;return null}computeLinks(e){const t=this.getModel(e);if(!t)return Promise.resolve([]);const r=[],s=t.getValue().split(/\r\n|\r|\n/);return this.patterns.forEach((e,t)=>{const n={toResource:e=>"string"==typeof e?i.joinPath(t,e):null};for(let t=0,i=s.length;t<i;t++)r.push(...h.detectLinks(s[t],t+1,e,n))}),Promise.resolve(r)}static createPatterns(e){const t=[],r=e.scheme===l.Schemas.file?e.fsPath:e.path,i=[r];return a.isWindows&&e.scheme===l.Schemas.file&&i.push(s.toSlashes(r)),i.forEach(e=>{const r='(?:[^\\s\\(\\):<>"]| [^\\s\\(\\):<>"])+\\.[^\\s\\(\\):<>"]+';t.push(new RegExp(n.escapeRegExpCharacters(e)+`(${r}) on line ((\\d+)(, column (\\d+))?)`,"gi")),t.push(new RegExp(n.escapeRegExpCharacters(e)+`(${r}):line ((\\d+)(, column (\\d+))?)`,"gi")),
t.push(new RegExp(n.escapeRegExpCharacters(e)+`(${r})(\\s?\\((\\d+)(,(\\d+))?)\\)`,"gi")),t.push(new RegExp(n.escapeRegExpCharacters(e)+'([^\\s\\(\\):<>"]+)(:(\\d+))?(:(\\d+))?',"gi"))}),t}static detectLinks(e,t,r,s){const i=[];return r.forEach(r=>{r.lastIndex=0;let a,l=0;for(;null!==(a=r.exec(e));){const r=n.rtrim(a[1],".").replace(/\\/g,"/");let h;try{const e=s.toResource(r);e&&(h=e.toString())}catch(e){continue}if(a[3]){const e=a[3];if(a[5]){const t=a[5];h=n.format("{0}#{1},{2}",h,e,t)}else h=n.format("{0}#{1}",h,e)}const c=n.rtrim(a[0],"."),u=e.indexOf(c,l);l+=u+c.length;const f={startColumn:u+1,startLineNumber:t,endColumn:u+1+c.length,endLineNumber:t};if(i.some(e=>o.Range.areIntersectingOrTouching(e.range,f)))return;i.push({range:f,url:h})}}),i}}t.OutputLinkComputer=h,t.create=function(e,t){return new h(e,t)}})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/05f146c7a8f7f78e80261aa3b2a2e642586f9eb3/core/vs/workbench/contrib/output/common/outputLinkComputer.js.map
