/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){var e=["exports","require","vs/base/common/path","vs/base/common/platform","vs/base/common/extpath","vs/base/common/strings","vs/base/common/uri","vs/base/common/map","vs/base/common/network","vs/base/common/async","vs/base/common/resources","vs/base/common/glob","vs/base/common/process","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 s=[],r=0,i=t.length;r<i;r++)s[r]=e[t[r]];return s},s=this&&this.__awaiter||function(e,t,s,r){return new(s||(s=Promise))(function(i,n){function o(e){try{h(r.next(e))}catch(e){n(e)}}function a(e){try{h(r.throw(e))}catch(e){n(e)}}function h(e){e.done?i(e.value):new s(function(t){t(e.value)}).then(o,a)}h((r=r.apply(e,t||[])).next())})};define(e[9],t([1,0,18,16,14,13]),function(e,t,r,i,n,o){"use strict";function a(e){return e&&"function"==typeof e.then}
function h(e){const t=new r.CancellationTokenSource,s=e(t.token),n=new Promise((e,r)=>{t.token.onCancellationRequested(()=>{r(i.canceled())}),Promise.resolve(s).then(s=>{t.dispose(),e(s)},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((s,r)=>{const n=setTimeout(s,e);t.onCancellationRequested(()=>{clearTimeout(n),r(i.canceled())})}):h(t=>l(e,t))}function c(e){function t(n){void 0!==n&&null!==n&&s.push(n);const o=r<i?e[r++]():null;return o?o.then(t):Promise.resolve(s)}const s=[];let r=0;const i=e.length;return Promise.resolve(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=a,t.createCancelablePromise=h,t.asPromise=function(e){return new Promise((t,s)=>{const r=e();a(r)?r.then(t,s):t(r)})};class u{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=u;class f{constructor(){this.current=Promise.resolve(null)}queue(e){return this.current=this.current.then(()=>e())}}t.Sequencer=f;class d{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(i.canceled()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancelTimeout()}}t.Delayer=d;class m{constructor(e){this.delayer=new d(e),this.throttler=new u}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=m;class p{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=p,t.timeout=l,t.disposableTimeout=function(e,t=0){const s=setTimeout(e,t);return o.toDisposable(()=>clearTimeout(s))},t.ignoreErrors=function(e){
return e.then(void 0,e=>void 0)},t.sequence=c,t.first=function(e,t=(e=>!!e),s=null){let r=0;const i=e.length,n=()=>{if(r>=i)return Promise.resolve(s);const o=e[r++];return Promise.resolve(o()).then(e=>t(e)?Promise.resolve(e):n())};return n()};class g{constructor(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new n.Emitter}get onFinished(){return this._onFinished.event}get size(){return this._size}queue(e){return this._size++,new Promise((t,s)=>{this.outstandingPromises.push({factory:e,c:t,e:s}),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=g;class v extends g{
constructor(){super(1)}}t.Queue=v;class _{constructor(){this.queues=Object.create(null)}queueFor(e){const t=e.toString();if(!this.queues[t]){const e=new v;e.onFinished(()=>{e.dispose(),delete this.queues[t]}),this.queues[t]=e}return this.queues[t]}}t.ResourceQueue=_;class w extends o.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=w;class x extends o.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=x;class C{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=C;class b extends C{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,function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){const e=Object.freeze({didTimeout:!0,timeRemaining:()=>15});t.runWhenIdle=(t=>{const s=setTimeout(()=>t(e));let r=!1;return{dispose(){r||(r=!0,clearTimeout(s))}}})}else t.runWhenIdle=((e,t)=>{const s=requestIdleCallback(e,"number"==typeof t?{
timeout:t}:void 0);let r=!1;return{dispose(){r||(r=!0,cancelIdleCallback(s))}}})}();class A{constructor(e){this._didRun=!1,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=A,t.retry=function(e,t,r){return s(this,void 0,void 0,function*(){let s;for(let i=0;i<r;i++)try{return yield e()}catch(e){s=e,yield l(t)}return Promise.reject(s)})}}),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",e.vscodeRemote="vscode-remote"}(t.Schemas||(t.Schemas={}))}),
define(e[12],t([1,0,3]),function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r="undefined"==typeof process?{cwd:()=>"/",env:Object.create(null),get platform(){return s.isWindows?"win32":s.isMacintosh?"darwin":"linux"},nextTick:e=>s.setImmediate(e)}:process;t.cwd=r.cwd,t.env=r.env,t.platform=r.platform,t.nextTick=r.nextTick}),define(e[2],t([1,0,12]),function(e,t,s){"use strict";function r(e,t){if("string"!=typeof e)throw new g(t,"string",e)}function i(e){return e===m||e===p}function n(e){return e===m}function o(e){return e>=l&&e<=u||e>=c&&e<=f}function a(e,t,s,r){let i,n="",o=0,a=-1,h=0;for(let l=0;l<=e.length;++l){if(l<e.length)i=e.charCodeAt(l);else{if(r(i))break;i=m}if(r(i)){if(a===l-1||1===h);else if(a!==l-1&&2===h){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(s);-1===e?(n="",o=0):o=(n=n.slice(0,e)).length-1-n.lastIndexOf(s),a=l,h=0;continue}if(2===n.length||1===n.length){n="",o=0,a=l,h=0;continue}}
t&&(n.length>0?n+=`${s}..`:n="..",o=2)}else n.length>0?n+=s+e.slice(a+1,l):n=e.slice(a+1,l),o=l-a-1;a=l,h=0}else i===d&&-1!==h?++h:h=-1}return n}function h(e,t){const s=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return s?s===t.root?s+r:s+e+r:r}Object.defineProperty(t,"__esModule",{value:!0});const l=65,c=97,u=90,f=122,d=46,m=47,p=92;class g extends Error{constructor(e,t,s){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";let i=`The "${e}" ${-1!==e.indexOf(".")?"property":"argument"} ${r} of type ${t}`;super(i+=`. Received type ${typeof s}`)}}t.win32={resolve(...e){let t="",n="",h=!1;for(let a=e.length-1;a>=-1;a--){let l;if(a>=0?l=e[a]:t?void 0!==(l=s.env["="+t]||s.cwd())&&l.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(l=t+"\\"):l=s.cwd(),r(l,"path"),0===l.length)continue;const c=l.length;let u=0,f="",d=!1;const m=l.charCodeAt(0);if(c>1)if(i(m))if(d=!0,i(l.charCodeAt(1))){let e=2,t=e;for(;e<c&&!i(l.charCodeAt(e));++e);if(e<c&&e!==t){
const s=l.slice(t,e);for(t=e;e<c&&i(l.charCodeAt(e));++e);if(e<c&&e!==t){for(t=e;e<c&&!i(l.charCodeAt(e));++e);e===c?(f="\\\\"+s+"\\"+l.slice(t),u=e):e!==t&&(f="\\\\"+s+"\\"+l.slice(t,e),u=e)}}}else u=1;else o(m)&&58===l.charCodeAt(1)&&(f=l.slice(0,2),u=2,c>2&&i(l.charCodeAt(2))&&(d=!0,u=3));else i(m)&&(u=1,d=!0);if(!(f.length>0&&t.length>0&&f.toLowerCase()!==t.toLowerCase())&&(0===t.length&&f.length>0&&(t=f),h||(n=l.slice(u)+"\\"+n,h=d),t.length>0&&h))break}return n=a(n,!h,"\\",i),t+(h?"\\":"")+n||"."},normalize(e){r(e,"path");const t=e.length;if(0===t)return".";let s,n=0,h=!1;const l=e.charCodeAt(0);if(t>1)if(i(l))if(h=!0,i(e.charCodeAt(1))){let r=2,o=r;for(;r<t&&!i(e.charCodeAt(r));++r);if(r<t&&r!==o){const a=e.slice(o,r);for(o=r;r<t&&i(e.charCodeAt(r));++r);if(r<t&&r!==o){for(o=r;r<t&&!i(e.charCodeAt(r));++r);if(r===t)return"\\\\"+a+"\\"+e.slice(o)+"\\";r!==o&&(s="\\\\"+a+"\\"+e.slice(o,r),n=r)}}}else n=1;else o(l)&&58===e.charCodeAt(1)&&(s=e.slice(0,2),n=2,t>2&&i(e.charCodeAt(2))&&(h=!0,
n=3));else if(i(l))return"\\";let c;return 0!==(c=n<t?a(e.slice(n),!h,"\\",i):"").length||h||(c="."),c.length>0&&i(e.charCodeAt(t-1))&&(c+="\\"),void 0===s?h?c.length>0?"\\"+c:"\\":c.length>0?c:"":h?c.length>0?s+"\\"+c:s+"\\":c.length>0?s+c:s},isAbsolute(e){r(e,"path");const t=e.length;if(0===t)return!1;const s=e.charCodeAt(0);return!!i(s)||!!(o(s)&&t>2&&58===e.charCodeAt(1)&&i(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let s,n;for(let t=0;t<e.length;++t){const i=e[t];r(i,"path"),i.length>0&&(void 0===s?s=n=i:s+="\\"+i)}if(void 0===s)return".";let o=!0,a=0;if("string"==typeof n&&i(n.charCodeAt(0))){++a;const e=n.length;e>1&&i(n.charCodeAt(1))&&(++a,e>2&&(i(n.charCodeAt(2))?++a:o=!1))}if(o){for(;a<s.length&&i(s.charCodeAt(a));++a);a>=2&&(s="\\"+s.slice(a))}return t.win32.normalize(s)},relative(e,s){if(r(e,"from"),r(s,"to"),e===s)return"";const i=t.win32.resolve(e),n=t.win32.resolve(s);if(i===n)return"";if(e=i.toLowerCase(),s=n.toLowerCase(),e===s)return"";let o=0
;for(;o<e.length&&e.charCodeAt(o)===p;++o);let a=e.length;for(;a-1>o&&e.charCodeAt(a-1)===p;--a);const h=a-o;let l=0;for(;l<s.length&&s.charCodeAt(l)===p;++l);let c=s.length;for(;c-1>l&&s.charCodeAt(c-1)===p;--c);const u=c-l,f=h<u?h:u;let d=-1,m=0;for(;m<=f;++m){if(m===f){if(u>f){if(s.charCodeAt(l+m)===p)return n.slice(l+m+1);if(2===m)return n.slice(l+m)}h>f&&(e.charCodeAt(o+m)===p?d=m:2===m&&(d=3));break}const t=e.charCodeAt(o+m);if(t!==s.charCodeAt(l+m))break;t===p&&(d=m)}if(m!==f&&-1===d)return n;let g="";for(-1===d&&(d=0),m=o+d+1;m<=a;++m)m!==a&&e.charCodeAt(m)!==p||(0===g.length?g+="..":g+="\\..");return g.length>0?g+n.slice(l+d,c):(l+=d,n.charCodeAt(l)===p&&++l,n.slice(l,c))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const s=t.win32.resolve(e);if(s.length>=3)if(s.charCodeAt(0)===p){if(s.charCodeAt(1)===p){const e=s.charCodeAt(2);if(63!==e&&e!==d)return"\\\\?\\UNC\\"+s.slice(2)}}else if(o(s.charCodeAt(0))&&58===s.charCodeAt(1)&&s.charCodeAt(2)===p)return"\\\\?\\"+s
;return e},dirname(e){r(e,"path");const t=e.length;if(0===t)return".";let s=-1,n=-1,a=!0,h=0;const l=e.charCodeAt(0);if(t>1)if(i(l)){if(s=h=1,i(e.charCodeAt(1))){let r=2,n=r;for(;r<t&&!i(e.charCodeAt(r));++r);if(r<t&&r!==n){for(n=r;r<t&&i(e.charCodeAt(r));++r);if(r<t&&r!==n){for(n=r;r<t&&!i(e.charCodeAt(r));++r);if(r===t)return e;r!==n&&(s=h=r+1)}}}}else o(l)&&58===e.charCodeAt(1)&&(s=h=2,t>2&&i(e.charCodeAt(2))&&(s=h=3));else if(i(l))return e;for(let s=t-1;s>=h;--s)if(i(e.charCodeAt(s))){if(!a){n=s;break}}else a=!1;if(-1===n){if(-1===s)return".";n=s}return e.slice(0,n)},basename(e,t){void 0!==t&&r(t,"ext"),r(e,"path");let s,n=0,a=-1,h=!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 r=t.length-1,o=-1;for(s=e.length-1;s>=n;--s){const l=e.charCodeAt(s);if(i(l)){if(!h){n=s+1;break}}else-1===o&&(h=!1,o=s+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(a=s):(r=-1,a=o))}return n===a?a=o:-1===a&&(a=e.length),
e.slice(n,a)}for(s=e.length-1;s>=n;--s)if(i(e.charCodeAt(s))){if(!h){n=s+1;break}}else-1===a&&(h=!1,a=s+1);return-1===a?"":e.slice(n,a)},extname(e){r(e,"path");let t=0,s=-1,n=0,a=-1,h=!0,l=0;e.length>=2&&58===e.charCodeAt(1)&&o(e.charCodeAt(0))&&(t=n=2);for(let r=e.length-1;r>=t;--r){const t=e.charCodeAt(r);if(i(t)){if(!h){n=r+1;break}}else-1===a&&(h=!1,a=r+1),t===d?-1===s?s=r:1!==l&&(l=1):-1!==s&&(l=-1)}return-1===s||-1===a||0===l||1===l&&s===a-1&&s===n+1?"":e.slice(s,a)},format(e){if(null===e||"object"!=typeof e)throw new g("pathObject","Object",e);return h("\\",e)},parse(e){r(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const s=e.length;let n=0,a=e.charCodeAt(0);if(s>1){if(i(a)){if(n=1,i(e.charCodeAt(1))){let t=2,r=t;for(;t<s&&!i(e.charCodeAt(t));++t);if(t<s&&t!==r){for(r=t;t<s&&i(e.charCodeAt(t));++t);if(t<s&&t!==r){for(r=t;t<s&&!i(e.charCodeAt(t));++t);t===s?n=t:t!==r&&(n=t+1)}}}}else if(o(a)&&58===e.charCodeAt(1)){if(n=2,!(s>2))return t.root=t.dir=e,t
;if(i(e.charCodeAt(2))){if(3===s)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 h=-1,l=n,c=-1,u=!0,f=e.length-1,m=0;for(;f>=n;--f)if(a=e.charCodeAt(f),i(a)){if(!u){l=f+1;break}}else-1===c&&(u=!1,c=f+1),a===d?-1===h?h=f:1!==m&&(m=1):-1!==h&&(m=-1);return-1===h||-1===c||0===m||1===m&&h===c-1&&h===l+1?-1!==c&&(t.base=t.name=e.slice(l,c)):(t.name=e.slice(l,h),t.base=e.slice(l,c),t.ext=e.slice(h,c)),t.dir=l>0&&l!==n?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},t.posix={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){let o;r(o=n>=0?e[n]:s.cwd(),"path"),0!==o.length&&(t=o+"/"+t,i=o.charCodeAt(0)===m)}return t=a(t,!i,"/",n),i?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(r(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===m,s=e.charCodeAt(e.length-1)===m;return 0!==(e=a(e,!t,"/",n)).length||t||(e="."),e.length>0&&s&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(r(e,"path"),e.length>0&&e.charCodeAt(0)===m),join(...e){
if(0===e.length)return".";let s;for(let t=0;t<e.length;++t){const e=arguments[t];r(e,"path"),e.length>0&&(void 0===s?s=e:s+="/"+e)}return void 0===s?".":t.posix.normalize(s)},relative(e,s){if(r(e,"from"),r(s,"to"),e===s)return"";if(e=t.posix.resolve(e),s=t.posix.resolve(s),e===s)return"";let i=1;for(;i<e.length&&e.charCodeAt(i)===m;++i);const n=e.length,o=n-i;let a=1;for(;a<s.length&&s.charCodeAt(a)===m;++a);const h=s.length-a,l=o<h?o:h;let c=-1,u=0;for(;u<=l;++u){if(u===l){if(h>l){if(s.charCodeAt(a+u)===m)return s.slice(a+u+1);if(0===u)return s.slice(a+u)}else o>l&&(e.charCodeAt(i+u)===m?c=u:0===u&&(c=0));break}const t=e.charCodeAt(i+u);if(t!==s.charCodeAt(a+u))break;t===m&&(c=u)}let f="";for(u=i+c+1;u<=n;++u)u!==n&&e.charCodeAt(u)!==m||(0===f.length?f+="..":f+="/..");return f.length>0?f+s.slice(a+c):(a+=c,s.charCodeAt(a)===m&&++a,s.slice(a))},toNamespacedPath:e=>e,dirname(e){if(r(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===m;let s=-1,i=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===m){
if(!i){s=t;break}}else i=!1;return-1===s?t?"/":".":t&&1===s?"//":e.slice(0,s)},basename(e,t){void 0!==t&&r(t,"ext"),r(e,"path");let s,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 r=t.length-1,a=-1;for(s=e.length-1;s>=0;--s){const h=e.charCodeAt(s);if(h===m){if(!o){i=s+1;break}}else-1===a&&(o=!1,a=s+1),r>=0&&(h===t.charCodeAt(r)?-1==--r&&(n=s):(r=-1,n=a))}return i===n?n=a:-1===n&&(n=e.length),e.slice(i,n)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===m){if(!o){i=s+1;break}}else-1===n&&(o=!1,n=s+1);return-1===n?"":e.slice(i,n)},extname(e){r(e,"path");let t=-1,s=0,i=-1,n=!0,o=0;for(let r=e.length-1;r>=0;--r){const a=e.charCodeAt(r);if(a!==m)-1===i&&(n=!1,i=r+1),a===d?-1===t?t=r:1!==o&&(o=1):-1!==t&&(o=-1);else if(!n){s=r+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===s+1?"":e.slice(t,i)},format(e){if(null===e||"object"!=typeof e)throw new g("pathObject","Object",e);return h("/",e)},parse(e){r(e,"path");const t={root:"",dir:"",base:"",ext:"",
name:""};if(0===e.length)return t;const s=e.charCodeAt(0)===m;let i;s?(t.root="/",i=1):i=0;let n=-1,o=0,a=-1,h=!0,l=e.length-1,c=0;for(;l>=i;--l){const t=e.charCodeAt(l);if(t!==m)-1===a&&(h=!1,a=l+1),t===d?-1===n?n=l:1!==c&&(c=1):-1!==n&&(c=-1);else if(!h){o=l+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&&s?e.slice(1,a):e.slice(o,a)):(0===o&&s?(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):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},t.posix.win32=t.win32.win32=t.win32,t.posix.posix=t.win32.posix=t.posix,t.normalize="win32"===s.platform?t.win32.normalize:t.posix.normalize,t.isAbsolute="win32"===s.platform?t.win32.isAbsolute:t.posix.isAbsolute,t.join="win32"===s.platform?t.win32.join:t.posix.join,t.resolve="win32"===s.platform?t.win32.resolve:t.posix.resolve,t.relative="win32"===s.platform?t.win32.relative:t.posix.relative,
t.dirname="win32"===s.platform?t.win32.dirname:t.posix.dirname,t.basename="win32"===s.platform?t.win32.basename:t.posix.basename,t.extname="win32"===s.platform?t.win32.extname:t.posix.extname,t.format="win32"===s.platform?t.win32.format:t.posix.format,t.parse="win32"===s.platform?t.win32.parse:t.posix.parse,t.toNamespacedPath="win32"===s.platform?t.win32.toNamespacedPath:t.posix.toNamespacedPath,t.sep="win32"===s.platform?t.win32.sep:t.posix.sep,t.delimiter="win32"===s.platform?t.win32.delimiter:t.posix.delimiter}),define(e[4],t([1,0,3,5,2]),function(e,t,s,r,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,i.posix.sep)},t.getRoot=function(e,t=i.posix.sep){if(!e)return"";const s=e.length,r=e.charCodeAt(0);if(n(r)){if(n(e.charCodeAt(1))&&!n(e.charCodeAt(2))){let r=3;const i=r;for(;r<s&&!n(e.charCodeAt(r));r++);
if(i!==r&&!n(e.charCodeAt(r+1)))for(r+=1;r<s;r++)if(n(e.charCodeAt(r)))return e.slice(0,r+1).replace(/[\\/]/g,t)}return t}if(o(r)&&58===e.charCodeAt(1))return n(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let a=e.indexOf("://");if(-1!==a)for(a+=3;a<s;a++)if(n(e.charCodeAt(a)))return e.slice(0,a+1);return""},t.isUNC=function(e){if(!s.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 r=2;const i=r;for(;r<e.length&&92!==(t=e.charCodeAt(r));r++);return i!==r&&(t=e.charCodeAt(r+1),!isNaN(t)&&92!==t)};const a=s.isWindows?/[\\/:\*\?"<>\|]/g:/[\\/]/g,h=/^(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)||s.isWindows&&h.test(e)||"."===e||".."===e||s.isWindows&&"."===e[e.length-1]||s.isWindows&&e.length!==e.trim().length||e.length>255))},t.isEqual=function(e,t,s){const i=e===t;return!s||i?i:!(!e||!t)&&r.equalsIgnoreCase(e,t)},
t.isEqualOrParent=function(e,t,s,n=i.sep){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(s){if(!r.startsWithIgnoreCase(e,t))return!1;if(t.length===e.length)return!0;let s=t.length;return t.charAt(t.length-1)===n&&s--,e.charAt(s)===n}return t.charAt(t.length-1)!==n&&(t+=n),0===e.indexOf(t)},t.isWindowsDriveLetter=o,t.sanitizeFilePath=function(e,t){return s.isWindows&&r.endsWith(e,":")&&(e+=i.sep),i.isAbsolute(e)||(e=i.join(t,e)),e=i.normalize(e),s.isWindows?(e=r.rtrim(e,i.sep),r.endsWith(e,":")&&(e+=i.sep)):(e=r.rtrim(e,i.sep))||(e=i.sep),e},t.isRootOrDriveLetter=function(e){const t=i.normalize(e);return s.isWindows?!(e.length>3)&&o(t.charCodeAt(0))&&58===t.charCodeAt(1)&&(2===e.length||92===t.charCodeAt(2)):t===i.posix.sep}}),define(e[7],t([1,0,6,15]),function(e,t,s,r){"use strict";function i(e){const t=[];return e.forEach(e=>t.push(e)),t}function n(e){const t=[];return e.forEach((e,s)=>t.push(s)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.values=i,t.keys=n,
t.getOrSet=function(e,t,s){let r=e.get(t);return void 0===r&&(r=s,e.set(t,r)),r},t.mapToString=function(e){const t=[];return e.forEach((e,s)=>{t.push(`${s} => ${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,s)=>{t.push([s,e])}),t},t.serializableToMap=function(e){const t=new Map;for(const[s,r]of e)t.set(s,r);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;const s=e.length;let r=this._from;for(;t<s&&r<this._to;){const s=e.charCodeAt(t)-this._value.charCodeAt(r);if(0!==s)return s;t+=1,r+=1}return s===this._to-this._from?0:t<s?-1:1}value(){return this._value.substring(this._from,this._to)}}t.PathIterator=a;class h{isEmpty(){return!(this.left||this.mid||this.right||this.value)}}class l{constructor(e){this._iter=e}static forPaths(){return new l(new a)}static forStrings(){return new l(new o)}clear(){this._root=void 0}set(e,t){const s=this._iter.reset(e);let r;for(this._root||(this._root=new h,this._root.segment=s.value()),r=this._root;;){const e=s.cmp(r.segment);if(e>0)r.left||(r.left=new h,r.left.segment=s.value()),r=r.left;else if(e<0)r.right||(r.right=new h,r.right.segment=s.value()),r=r.right;else{if(!s.hasNext())break;s.next(),r.mid||(r.mid=new h,r.mid.segment=s.value()),r=r.mid}}const i=r.value;return r.value=t,r.key=e,i}get(e){
const t=this._iter.reset(e);let s=this._root;for(;s;){const e=t.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!t.hasNext())break;t.next(),s=s.mid}}return s?s.value:void 0}delete(e){const t=this._iter.reset(e),s=[];let r=this._root;for(;r;){const e=t.cmp(r.segment);if(e>0)s.push([1,r]),r=r.left;else if(e<0)s.push([-1,r]),r=r.right;else{if(!t.hasNext()){for(r.value=void 0;s.length>0&&r.isEmpty();){let[e,t]=s.pop();switch(e){case 1:t.left=void 0;break;case 0:t.mid=void 0;break;case-1:t.right=void 0}r=t}break}t.next(),s.push([0,r]),r=r.mid}}}findSubstr(e){const t=this._iter.reset(e);let s=this._root,r=void 0;for(;s;){const e=t.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!t.hasNext())break;t.next(),r=s.value||r,s=s.mid}}return s&&s.value||r}findSuperstr(e){const t=this._iter.reset(e);let s=this._root;for(;s;){const e=t.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!t.hasNext())return s.mid?this._nodeIterator(s.mid):void 0;t.next(),s=s.mid}}}_nodeIterator(e){let t,s,i
;return{next:()=>(i||(i=[],s=0,this._forEach(e,e=>i.push(e))),s>=i.length?r.FIN:(t?t.value=i[s++]:t={done:!1,value:i[s++]},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=l;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=>s.URI.parse(e))}clone(){const e=new c;return this.map.forEach((t,s)=>e.map.set(s,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 s=this._map.get(e);if(s)return 0!==t&&this.touch(s,t),s.value}set(e,t,s=0){let r=this._map.get(e);if(r)r.value=t,0!==s&&this.touch(r,s);else{switch(r={key:e,value:t,next:void 0,previous:void 0},s){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:default:this.addItemLast(r)}this._map.set(e,r),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 s=this._head;for(;s;)t?e.bind(t)(s.value,s.key,this):e(s.value,s.key,this),s=s.next}values(){const e=[]
;let t=this._head;for(;t;)e.push(t.value),t=t.next;return e}keys(){const e=[];let 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,s=this.size;for(;t&&s>e;)this._map.delete(t.key),t=t.next,s--;this._head=t,this._size=s,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,s=e.previous
;if(!t||!s)throw new Error("Invalid list");t.previous=s,s.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,s=e.previous;e===this._tail?(s.next=void 0,this._tail=s):(t.previous=s,s.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,s=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=s,s.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}}toJSON(){const e=[];return this.forEach((t,s)=>{e.push([s,t])}),e}fromJSON(e){this.clear();for(const[t,s]of e)this.set(t,s)}}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[11],t([1,0,17,5,4,2,7,9]),function(e,t,s,r,i,n,o,a){"use strict";function h(e){switch(e){case 0:return"";case 1:return`${b}*?`;default:return`(?:${C}|${b}+${C}|${C}${b}+)*?`}}function l(e,t){if(!e)return[];const s=[];let r=!1,i=!1,n="";for(const o of e){switch(o){case t:if(!r&&!i){s.push(n),n="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":i=!0;break;case"]":i=!1}n+=o}return n&&s.push(n),s}function c(e){if(!e)return"";let t="";const s=l(e,x);if(s.every(e=>e===w))t=".*";else{let e=!1;s.forEach((i,n)=>{if(i===w)return void(e||(t+=h(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"}":const s=`(?:${l(a,",").map(e=>c(e)).join("|")})`;t+=s,o=!1,a="";break;case"]":t+="["+f+"]",u=!1,f="";break
;case"?":t+=b;continue;case"*":t+=h(1);continue;default:t+=r.escapeRegExpCharacters(e)}else{let t;f+=t="-"===e?e:"^"!==e&&"!"!==e||f?e===x?"":r.escapeRegExpCharacters(e):"^"}n<s.length-1&&(s[n+1]!==w||n+2<s.length)&&(t+=C),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(y.test(i)){const e=i.substr(4);o=function(t,s){return"string"==typeof t&&r.endsWith(t,e)?i:null}}else o=(a=P.exec(d(i,t)))?function(e,t){const s=`/${e}`,i=`\\${e}`,n=function(n,o){return"string"!=typeof n?null:o?o===e?t:null:n===e||r.endsWith(n,s)||r.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 r=_(e.slice(1,-1).split(",").map(e=>u(e,t)).filter(e=>e!==R),e),i=r.length;if(!i)return R;if(1===i)return r[0];const n=function(t,s){for(let i=0,n=r.length;i<n;i++)if(r[i](t,s))return e;return null
},o=s.first(r,e=>!!e.allBasenames);o&&(n.allBasenames=o.allBasenames);const a=r.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(s,r){return t.lastIndex=0,"string"==typeof s&&t.test(s)?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(s,r){return i.isEqualOrParent(s,t.base)?e(n.relative(t.base,s),r):null}}function d(e,t){return t.trimForExclusions&&r.endsWith(e,"/**")?e.substr(0,e.length-2):e}function m(e,t,s){const i=n.sep!==n.posix.sep?e.replace(A,n.sep):e,o=n.sep+i,a=s?function(e,s){return"string"!=typeof e||e!==i&&!r.endsWith(e,o)?null:t}:function(e,s){return"string"==typeof e&&e===i?t:null};return a.allPaths=[(s?"*/":"./")+e],a}function p(e,t={}){if(!e)return O;if("string"==typeof e||v(e)){const s=u(e,t);if(s===R)return O;const r=function(e,t){return!!s(e,t)}
;return s.allBasenames&&(r.allBasenames=s.allBasenames),s.allPaths&&(r.allPaths=s.allPaths),r}return function(e,t){const r=_(Object.getOwnPropertyNames(e).map(s=>(function(e,t,s){if(!1===t)return R;const r=u(e,s);if(r===R)return R;if("boolean"==typeof t)return r;if(t){const s=t.when;if("string"==typeof s){const t=(t,i,n,o)=>{if(!o||!r(t,i))return null;const h=s.replace("$(basename)",n),l=o(h);return a.isThenable(l)?l.then(t=>t?e:null):l?e:null};return t.requiresSiblings=!0,t}}return r})(s,e[s],t)).filter(e=>e!==R)),i=r.length;if(!i)return R;if(!r.some(e=>!!e.requiresSiblings)){if(1===i)return r[0];const e=function(e,t){for(let s=0,i=r.length;s<i;s++){const i=r[s](e,t);if(i)return i}return null},t=s.first(r,e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const n=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return n.length&&(e.allPaths=n),e}const o=function(e,t,s){let i=void 0;for(let o=0,a=r.length;o<a;o++){const a=r[o];a.requiresSiblings&&s&&(t||(t=n.basename(e)),
i||(i=t.substr(0,t.length-n.extname(e).length)));const h=a(e,t,i,s);if(h)return h}return null},h=s.first(r,e=>!!e.allBasenames);h&&(o.allBasenames=h.allBasenames);const l=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);l.length&&(o.allPaths=l);return o}(e,t)}function g(e){const t={};for(const s of e)t[s]=!0;return t}function v(e){const t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}function _(e,t){const s=e.filter(e=>!!e.basenames);if(s.length<2)return e;const r=s.reduce((e,t)=>{const s=t.basenames;return s?e.concat(s):e},[]);let i;if(t){i=[];for(let e=0,s=r.length;e<s;e++)i.push(t)}else i=s.reduce((e,t)=>{const s=t.patterns;return s?e.concat(s):e},[]);const n=function(e,t){if("string"!=typeof e)return null;if(!t){let s;for(s=e.length;s>0;s--){const t=e.charCodeAt(s-1);if(47===t||92===t)break}t=e.substr(s)}const s=r.indexOf(t);return-1!==s?i[s]:null};n.basenames=r,n.patterns=i,n.allBasenames=r;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 w="**",x="/",C="[/\\\\]",b="[^/\\\\]",A=/\//g;t.splitGlobAware=l;const y=/^\*\*\/\*\.[\w\.-]+$/,P=/^\*\*\/([\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,s){return!(!e||"string"!=typeof t)&&p(e)(t,void 0,s)},t.parse=p,t.hasSiblingPromiseFn=function(e){if(!e)return;let t;return s=>(t||(t=(e()||Promise.resolve([])).then(e=>e?g(e):{})),t.then(e=>!!e[s]))},t.hasSiblingFn=function(e){if(!e)return;let t;return s=>{if(!t){const s=e();t=s?g(s):{}}return!!t[s]}},t.isRelativePattern=v,t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}}),define(e[10],t([1,0,4,2,6,5,8,3,11,7]),function(e,t,s,r,i,n,o,a,h,l){"use strict"
;function c(e){return!e||e.scheme!==o.Schemas.file||!a.isLinux}function u(e,t,r=c(e)){if(e.scheme===t.scheme){if(e.scheme===o.Schemas.file)return s.isEqualOrParent(m(e),m(t),r);if(f(e.authority,t.authority))return s.isEqualOrParent(e.path,t.path,r,"/")}return!1}function f(e,t){return e===t||n.equalsIgnoreCase(e,t)}function d(e){return r.posix.basename(e.path)}function m(e){let t;const r=e.path;return t=e.authority&&r.length>1&&e.scheme===o.Schemas.file?`//${e.authority}${r}`:a.isWindows&&47===r.charCodeAt(0)&&s.isWindowsDriveLetter(r.charCodeAt(1))&&58===r.charCodeAt(2)?r.substr(1):r,a.isWindows&&(t=t.replace(/\//g,"\\")),t}function p(e){if(e.scheme===o.Schemas.file){const t=m(e);return t.length>s.getRoot(t).length&&t[t.length-1]===r.sep}{const 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=r.relative(e.path,t.path);return a.isWindows?s.toSlashes(i):i}
return r.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,s=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 r=e.path||"/",i=t.path||"/";return r===i||s&&n.equalsIgnoreCase(r||"/",i||"/")},t.basename=d,t.extname=function(e){return r.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(r.dirname(m(e)));let t=r.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 s;return s=e.scheme===o.Schemas.file?i.URI.file(r.join(m(e),...t)).path:r.posix.join(e.path||"/",...t),e.with({
path:s})},t.normalizePath=function(e){if(!e.path.length)return e;let t;return t=e.scheme===o.Schemas.file?i.URI.file(r.normalize(m(e))).path:r.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){if(e.scheme===o.Schemas.file){const s=i.URI.file(r.resolve(m(e),t));return e.with({authority:s.authority,path:s.path})}return e.with({path:r.posix.resolve(e.path,t)})},t.distinctParents=function(e,t){const s=[];for(let r=0;r<e.length;r++){const i=t(e[r]);e.some((e,s)=>s!==r&&u(i,t(e)))||s.push(e[r])}return s};!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 s=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(e=>{
const[t,r]=e.split(":");t&&r&&s.set(t,r)});const r=t.path.substring(0,t.path.indexOf(";"));return r&&s.set(e.META_DATA_MIME,r),s}}(t.DataUri||(t.DataUri={}));class v{constructor(e,t){this.expressionsByRoot=l.TernarySearchTree.forPaths(),this.globalExpression=h.parse(e);for(const e of t)this.expressionsByRoot.set(e.root.toString(),{root:e.root,expression:h.parse(e.expression)})}matches(e){const t=this.expressionsByRoot.findSubstr(e.toString());if(t){const s=g(t.root,e);if(s&&t.expression(s))return!0}return!!this.globalExpression(e.path)}}t.ResourceGlobMatcher=v,t.toLocalResource=function(e,t){if(t){let s=e.path;return s&&s[0]!==r.posix.sep&&(s=r.posix.sep+s),e.with({scheme:o.Schemas.vscodeRemote,authority:t,path:s})}return e.with({scheme:o.Schemas.file})}}),define(e[19],t([1,0,6,4,10,5,20,3,8]),function(e,t,s,r,i,n,o,a,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class l{constructor(e,t){this.ctx=e,this.patterns=new Map,this.computePatterns(t)}computePatterns(e){
e.workspaceFolders.map(e=>s.URI.parse(e)).forEach(e=>{const t=l.createPatterns(e);this.patterns.set(e,t)})}getModel(e){const t=this.ctx.getMirrorModels();for(const s of t)if(s.uri.toString()===e)return s;return null}computeLinks(e){const t=this.getModel(e);if(!t)return Promise.resolve([]);const s=[],r=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=r.length;t<i;t++)s.push(...l.detectLinks(r[t],t+1,e,n))}),Promise.resolve(s)}static createPatterns(e){const t=[],s=e.scheme===h.Schemas.file?e.fsPath:e.path,i=[s];return a.isWindows&&e.scheme===h.Schemas.file&&i.push(r.toSlashes(s)),i.forEach(e=>{const s='(?:[^\\s\\(\\):<>"]| [^\\s\\(\\):<>"])+\\.[^\\s\\(\\):<>"]+';t.push(new RegExp(n.escapeRegExpCharacters(e)+`(${s}) on line ((\\d+)(, column (\\d+))?)`,"gi")),t.push(new RegExp(n.escapeRegExpCharacters(e)+`(${s}):line ((\\d+)(, column (\\d+))?)`,"gi")),
t.push(new RegExp(n.escapeRegExpCharacters(e)+`(${s})(\\s?\\((\\d+)(,(\\d+))?)\\)`,"gi")),t.push(new RegExp(n.escapeRegExpCharacters(e)+'([^\\s\\(\\):<>"]+)(:(\\d+))?(:(\\d+))?',"gi"))}),t}static detectLinks(e,t,s,r){const i=[];return s.forEach(s=>{s.lastIndex=0;let a,h=0;for(;null!==(a=s.exec(e));){const s=n.rtrim(a[1],".").replace(/\\/g,"/");let l;try{const e=r.toResource(s);e&&(l=e.toString())}catch(e){continue}if(a[3]){const e=a[3];if(a[5]){const t=a[5];l=n.format("{0}#{1},{2}",l,e,t)}else l=n.format("{0}#{1}",l,e)}const c=n.rtrim(a[0],"."),u=e.indexOf(c,h);h+=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:l})}}),i}}t.OutputLinkComputer=l,t.create=function(e,t){return new l(e,t)}})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/a622c65b2c713c890fcf4fbf07cf34049d5fe758/core/vs/workbench/contrib/output/common/outputLinkComputer.js.map
