/*!----------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f) * Released under the MIT license * https://github.com/microsoft/vscode/blob/main/LICENSE.txt *-----------------------------------------------------------*/(function(){var X=["require","exports","vs/editor/common/core/range","vs/editor/common/core/offsetRange","vs/editor/common/core/position","vs/base/common/errors","vs/base/common/strings","vs/base/common/arrays","vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm","vs/base/common/event","vs/editor/common/core/lineRange","vs/base/common/arraysFind","vs/base/common/assert","vs/base/common/lifecycle","vs/base/common/objects","vs/editor/common/diff/defaultLinesDiffComputer/utils","vs/editor/common/diff/rangeMapping","vs/base/common/platform","vs/base/common/uri","vs/nls","vs/base/common/functional","vs/base/common/iterator","vs/base/common/linkedList","vs/base/common/stopwatch","vs/base/common/diff/diff","vs/base/common/types","vs/base/common/uint","vs/editor/common/core/characterClassifier","vs/editor/common/core/wordHelper","vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm","vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence","vs/editor/common/diff/linesDiffComputer","vs/base/common/cache","vs/base/common/color","vs/base/common/diff/diffChange","vs/base/common/keyCodes","vs/base/common/lazy","vs/base/common/map","vs/base/common/cancellation","vs/base/common/hash","vs/base/common/codicons","vs/editor/common/core/selection","vs/editor/common/core/wordCharacterClassifier","vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations","vs/editor/common/diff/defaultLinesDiffComputer/lineSequence","vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing","vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines","vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer","vs/editor/common/diff/legacyLinesDiffComputer","vs/editor/common/diff/linesDiffComputers","vs/editor/common/languages/defaultDocumentColorsComputer","vs/editor/common/languages/linkComputer","vs/editor/common/languages/supports/inplaceReplaceSupport","vs/editor/common/model","vs/editor/common/model/prefixSumComputer","vs/editor/common/model/mirrorTextModel","vs/editor/common/model/textModelSearch","vs/editor/common/services/unicodeTextModelHighlighter","vs/editor/common/standalone/standaloneEnums","vs/editor/common/tokenizationRegistry","vs/nls!vs/base/common/platform","vs/nls!vs/base/common/worker/simpleWorker","vs/base/common/process","vs/base/common/path","vs/nls!vs/editor/common/languages","vs/editor/common/languages","vs/editor/common/services/editorBaseApi","vs/base/common/worker/simpleWorker","vs/editor/common/services/editorSimpleWorker"],J=function(q){for(var n=[],M=0,A=q.length;M=0?!0:typeof process<"u"?process.platform==="win32":!1}}q.Environment=n})(le||(le={}));var le;(function(q){class n{constructor(d,b,p){this.type=d,this.detail=b,this.timestamp=p}}q.LoaderEvent=n;class M{constructor(d){this._events=[new n(1,"",d)]}record(d,b){this._events.push(new n(d,b,q.Utilities.getHighPerformanceTimestamp()))}getEvents(){return this._events}}q.LoaderEventRecorder=M;class A{record(d,b){}getEvents(){return[]}}A.INSTANCE=new A,q.NullLoaderEventRecorder=A})(le||(le={}));var le;(function(q){class n{static fileUriToFilePath(A,i){if(i=decodeURI(i).replace(/%23/g,"#"),A){if(/^file:\/\/\//.test(i))return i.substr(8);if(/^file:\/\//.test(i))return i.substr(5)}else if(/^file:\/\//.test(i))return i.substr(7);return i}static startsWith(A,i){return A.length>=i.length&&A.substr(0,i.length)===i}static endsWith(A,i){return A.length>=i.length&&A.substr(A.length-i.length)===i}static containsQueryString(A){return/^[^\#]*\?/gi.test(A)}static isAbsolutePath(A){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(A)}static forEachProperty(A,i){if(A){let d;for(d in A)A.hasOwnProperty(d)&&i(d,A[d])}}static isEmpty(A){let i=!0;return n.forEachProperty(A,()=>{i=!1}),i}static recursiveClone(A){if(!A||typeof A!="object"||A instanceof RegExp||!Array.isArray(A)&&Object.getPrototypeOf(A)!==Object.prototype)return A;let i=Array.isArray(A)?[]:{};return n.forEachProperty(A,(d,b)=>{b&&typeof b=="object"?i[d]=n.recursiveClone(b):i[d]=b}),i}static generateAnonymousModule(){return"===anonymous"+n.NEXT_ANONYMOUS_ID+++"==="}static isAnonymousModule(A){return n.startsWith(A,"===anonymous")}static getHighPerformanceTimestamp(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=q.global.performance&&typeof q.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?q.global.performance.now():Date.now()}}n.NEXT_ANONYMOUS_ID=1,n.PERFORMANCE_NOW_PROBED=!1,n.HAS_PERFORMANCE_NOW=!1,q.Utilities=n})(le||(le={}));var le;(function(q){function n(i){if(i instanceof Error)return i;const d=new Error(i.message||String(i)||"Unknown Error");return i.stack&&(d.stack=i.stack),d}q.ensureError=n;class M{static validateConfigurationOptions(d){function b(p){if(p.phase==="loading"){console.error('Loading "'+p.moduleId+'" failed'),console.error(p),console.error("Here are the modules that depend on it:"),console.error(p.neededBy);return}if(p.phase==="factory"){console.error('The factory function of "'+p.moduleId+'" has thrown an exception'),console.error(p),console.error("Here are the modules that depend on it:"),console.error(p.neededBy);return}}if(d=d||{},typeof d.baseUrl!="string"&&(d.baseUrl=""),typeof d.isBuild!="boolean"&&(d.isBuild=!1),typeof d.paths!="object"&&(d.paths={}),typeof d.config!="object"&&(d.config={}),typeof d.catchError>"u"&&(d.catchError=!1),typeof d.recordStats>"u"&&(d.recordStats=!1),typeof d.urlArgs!="string"&&(d.urlArgs=""),typeof d.onError!="function"&&(d.onError=b),Array.isArray(d.ignoreDuplicateModules)||(d.ignoreDuplicateModules=[]),d.baseUrl.length>0&&(q.Utilities.endsWith(d.baseUrl,"/")||(d.baseUrl+="/")),typeof d.cspNonce!="string"&&(d.cspNonce=""),typeof d.preferScriptTags>"u"&&(d.preferScriptTags=!1),d.nodeCachedData&&typeof d.nodeCachedData=="object"&&(typeof d.nodeCachedData.seed!="string"&&(d.nodeCachedData.seed="seed"),(typeof d.nodeCachedData.writeDelay!="number"||d.nodeCachedData.writeDelay<0)&&(d.nodeCachedData.writeDelay=1e3*7),!d.nodeCachedData.path||typeof d.nodeCachedData.path!="string")){const p=n(new Error("INVALID cached data configuration, 'path' MUST be set"));p.phase="configuration",d.onError(p),d.nodeCachedData=void 0}return d}static mergeConfigurationOptions(d=null,b=null){let p=q.Utilities.recursiveClone(b||{});return q.Utilities.forEachProperty(d,(h,o)=>{h==="ignoreDuplicateModules"&&typeof p.ignoreDuplicateModules<"u"?p.ignoreDuplicateModules=p.ignoreDuplicateModules.concat(o):h==="paths"&&typeof p.paths<"u"?q.Utilities.forEachProperty(o,(L,e)=>p.paths[L]=e):h==="config"&&typeof p.config<"u"?q.Utilities.forEachProperty(o,(L,e)=>p.config[L]=e):p[h]=q.Utilities.recursiveClone(o)}),M.validateConfigurationOptions(p)}}q.ConfigurationOptionsUtil=M;class A{constructor(d,b){if(this._env=d,this.options=M.mergeConfigurationOptions(b),this._createIgnoreDuplicateModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""&&this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){let p=this.options.nodeRequire.main.filename,h=Math.max(p.lastIndexOf("/"),p.lastIndexOf("\\"));this.options.baseUrl=p.substring(0,h+1)}}_createIgnoreDuplicateModulesMap(){this.ignoreDuplicateModulesMap={};for(let d=0;d{Array.isArray(b)?this.sortedPathsRules.push({from:d,to:b}):this.sortedPathsRules.push({from:d,to:[b]})}),this.sortedPathsRules.sort((d,b)=>b.from.length-d.from.length)}cloneAndMerge(d){return new A(this._env,M.mergeConfigurationOptions(d,this.options))}getOptionsLiteral(){return this.options}_applyPaths(d){let b;for(let p=0,h=this.sortedPathsRules.length;pthis.triggerCallback(L),c=>this.triggerErrorback(L,c))}triggerCallback(o){let L=this._callbackMap[o];delete this._callbackMap[o];for(let e=0;e{o.removeEventListener("load",u),o.removeEventListener("error",c)},u=m=>{a(),L()},c=m=>{a(),e(m)};o.addEventListener("load",u),o.addEventListener("error",c)}load(o,L,e,a){if(/^node\|/.test(L)){let u=o.getConfig().getOptionsLiteral(),c=b(o.getRecorder(),u.nodeRequire||q.global.nodeRequire),m=L.split("|"),f=null;try{f=c(m[1])}catch(y){a(y);return}o.enqueueDefineAnonymousModule([],()=>f),e()}else{let u=document.createElement("script");u.setAttribute("async","async"),u.setAttribute("type","text/javascript"),this.attachListeners(u,e,a);const{trustedTypesPolicy:c}=o.getConfig().getOptionsLiteral();c&&(L=c.createScriptURL(L)),u.setAttribute("src",L);const{cspNonce:m}=o.getConfig().getOptionsLiteral();m&&u.setAttribute("nonce",m),document.getElementsByTagName("head")[0].appendChild(u)}}}function A(h){const{trustedTypesPolicy:o}=h.getConfig().getOptionsLiteral();try{return(o?self.eval(o.createScript("","true")):new Function("true")).call(self),!0}catch{return!1}}class i{constructor(){this._cachedCanUseEval=null}_canUseEval(o){return this._cachedCanUseEval===null&&(this._cachedCanUseEval=A(o)),this._cachedCanUseEval}load(o,L,e,a){if(/^node\|/.test(L)){const u=o.getConfig().getOptionsLiteral(),c=b(o.getRecorder(),u.nodeRequire||q.global.nodeRequire),m=L.split("|");let f=null;try{f=c(m[1])}catch(y){a(y);return}o.enqueueDefineAnonymousModule([],function(){return f}),e()}else{const{trustedTypesPolicy:u}=o.getConfig().getOptionsLiteral();if(!(/^((http:)|(https:)|(file:))/.test(L)&&L.substring(0,self.origin.length)!==self.origin)&&this._canUseEval(o)){fetch(L).then(m=>{if(m.status!==200)throw new Error(m.statusText);return m.text()}).then(m=>{m=`${m} //# sourceURL=${L}`,(u?self.eval(u.createScript("",m)):new Function(m)).call(self),e()}).then(void 0,a);return}try{u&&(L=u.createScriptURL(L)),importScripts(L),e()}catch(m){a(m)}}}}class d{constructor(o){this._env=o,this._didInitialize=!1,this._didPatchNodeRequire=!1}_init(o){this._didInitialize||(this._didInitialize=!0,this._fs=o("fs"),this._vm=o("vm"),this._path=o("path"),this._crypto=o("crypto"))}_initNodeRequire(o,L){const{nodeCachedData:e}=L.getConfig().getOptionsLiteral();if(!e||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;const a=this,u=o("module");function c(m){const f=m.constructor;let y=function(E){try{return m.require(E)}finally{}};return y.resolve=function(E,S){return f._resolveFilename(E,m,!1,S)},y.resolve.paths=function(E){return f._resolveLookupPaths(E,m)},y.main=process.mainModule,y.extensions=f._extensions,y.cache=f._cache,y}u.prototype._compile=function(m,f){const y=u.wrap(m.replace(/^#!.*/,"")),w=L.getRecorder(),E=a._getCachedDataPath(e,f),S={filename:f};let C;try{const R=a._fs.readFileSync(E);C=R.slice(0,16),S.cachedData=R.slice(16),w.record(60,E)}catch{w.record(61,E)}const r=new a._vm.Script(y,S),s=r.runInThisContext(S),l=a._path.dirname(f),_=c(this),g=[this.exports,_,this,f,l,process,Re,Buffer],v=s.apply(this.exports,g);return a._handleCachedData(r,y,E,!S.cachedData,L),a._verifyCachedData(r,y,E,C,L),v}}load(o,L,e,a){const u=o.getConfig().getOptionsLiteral(),c=b(o.getRecorder(),u.nodeRequire||q.global.nodeRequire),m=u.nodeInstrumenter||function(y){return y};this._init(c),this._initNodeRequire(c,o);let f=o.getRecorder();if(/^node\|/.test(L)){let y=L.split("|"),w=null;try{w=c(y[1])}catch(E){a(E);return}o.enqueueDefineAnonymousModule([],()=>w),e()}else{L=q.Utilities.fileUriToFilePath(this._env.isWindows,L);const y=this._path.normalize(L),w=this._getElectronRendererScriptPathOrUri(y),E=!!u.nodeCachedData,S=E?this._getCachedDataPath(u.nodeCachedData,L):void 0;this._readSourceAndCachedData(y,S,f,(C,r,s,l)=>{if(C){a(C);return}let _;r.charCodeAt(0)===d._BOM?_=d._PREFIX+r.substring(1)+d._SUFFIX:_=d._PREFIX+r+d._SUFFIX,_=m(_,y);const g={filename:w,cachedData:s},v=this._createAndEvalScript(o,_,g,e,a);this._handleCachedData(v,_,S,E&&!s,o),this._verifyCachedData(v,_,S,l,o)})}}_createAndEvalScript(o,L,e,a,u){const c=o.getRecorder();c.record(31,e.filename);const m=new this._vm.Script(L,e),f=m.runInThisContext(e),y=o.getGlobalAMDDefineFunc();let w=!1;const E=function(){return w=!0,y.apply(null,arguments)};return E.amd=y.amd,f.call(q.global,o.getGlobalAMDRequireFunc(),E,e.filename,this._path.dirname(e.filename)),c.record(32,e.filename),w?a():u(new Error(`Didn't receive define call in ${e.filename}!`)),m}_getElectronRendererScriptPathOrUri(o){if(!this._env.isElectronRenderer)return o;let L=o.match(/^([a-z])\:(.*)/i);return L?`file:///${(L[1].toUpperCase()+":"+L[2]).replace(/\\/g,"/")}`:`file://${o}`}_getCachedDataPath(o,L){const e=this._crypto.createHash("md5").update(L,"utf8").update(o.seed,"utf8").update(process.arch,"").digest("hex"),a=this._path.basename(L).replace(/\.js$/,"");return this._path.join(o.path,`${a}-${e}.code`)}_handleCachedData(o,L,e,a,u){o.cachedDataRejected?this._fs.unlink(e,c=>{u.getRecorder().record(62,e),this._createAndWriteCachedData(o,L,e,u),c&&u.getConfig().onError(c)}):a&&this._createAndWriteCachedData(o,L,e,u)}_createAndWriteCachedData(o,L,e,a){let u=Math.ceil(a.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),c=-1,m=0,f;const y=()=>{setTimeout(()=>{f||(f=this._crypto.createHash("md5").update(L,"utf8").digest());const w=o.createCachedData();if(!(w.length===0||w.length===c||m>=5)){if(w.length{E&&a.getConfig().onError(E),a.getRecorder().record(63,e),y()})}},u*Math.pow(4,m++))};y()}_readSourceAndCachedData(o,L,e,a){if(!L)this._fs.readFile(o,{encoding:"utf8"},a);else{let u,c,m,f=2;const y=w=>{w?a(w):--f===0&&a(void 0,u,c,m)};this._fs.readFile(o,{encoding:"utf8"},(w,E)=>{u=E,y(w)}),this._fs.readFile(L,(w,E)=>{!w&&E&&E.length>0?(m=E.slice(0,16),c=E.slice(16),e.record(60,L)):e.record(61,L),y()})}}_verifyCachedData(o,L,e,a,u){a&&(o.cachedDataRejected||setTimeout(()=>{const c=this._crypto.createHash("md5").update(L,"utf8").digest();a.equals(c)||(u.getConfig().onError(new Error(`FAILED TO VERIFY CACHED DATA, deleting stale '${e}' now, but a RESTART IS REQUIRED`)),this._fs.unlink(e,m=>{m&&u.getConfig().onError(m)}))},Math.ceil(5e3*(1+Math.random()))))}}d._BOM=65279,d._PREFIX="(function (require, define, __filename, __dirname) { ",d._SUFFIX=` });`;function b(h,o){if(o.__$__isRecorded)return o;const L=function(a){h.record(33,a);try{return o(a)}finally{h.record(34,a)}};return L.__$__isRecorded=!0,L}q.ensureRecordedNodeRequire=b;function p(h){return new n(h)}q.createScriptLoader=p})(le||(le={}));var le;(function(q){class n{constructor(h){let o=h.lastIndexOf("/");o!==-1?this.fromModulePath=h.substr(0,o+1):this.fromModulePath=""}static _normalizeModuleId(h){let o=h,L;for(L=/\/\.\//;L.test(o);)o=o.replace(L,"/");for(o=o.replace(/^\.\//g,""),L=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;L.test(o);)o=o.replace(L,"/");return o=o.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),o}resolveModule(h){let o=h;return q.Utilities.isAbsolutePath(o)||(q.Utilities.startsWith(o,"./")||q.Utilities.startsWith(o,"../"))&&(o=n._normalizeModuleId(this.fromModulePath+o)),o}}n.ROOT=new n(""),q.ModuleIdResolver=n;class M{constructor(h,o,L,e,a,u){this.id=h,this.strId=o,this.dependencies=L,this._callback=e,this._errorback=a,this.moduleIdResolver=u,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}static _safeInvokeFunction(h,o){try{return{returnedValue:h.apply(q.global,o),producedError:null}}catch(L){return{returnedValue:null,producedError:L}}}static _invokeFactory(h,o,L,e){return h.shouldInvokeFactory(o)?h.shouldCatchError()?this._safeInvokeFunction(L,e):{returnedValue:L.apply(q.global,e),producedError:null}:{returnedValue:null,producedError:null}}complete(h,o,L,e){this._isComplete=!0;let a=null;if(this._callback)if(typeof this._callback=="function"){h.record(21,this.strId);let u=M._invokeFactory(o,this.strId,this._callback,L);a=u.producedError,h.record(22,this.strId),!a&&typeof u.returnedValue<"u"&&(!this.exportsPassedIn||q.Utilities.isEmpty(this.exports))&&(this.exports=u.returnedValue)}else this.exports=this._callback;if(a){let u=q.ensureError(a);u.phase="factory",u.moduleId=this.strId,u.neededBy=e(this.id),this.error=u,o.onError(u)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null}onDependencyError(h){return this._isComplete=!0,this.error=h,this._errorback?(this._errorback(h),!0):!1}isComplete(){return this._isComplete}}q.Module=M;class A{constructor(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}getMaxModuleId(){return this._nextId}getModuleId(h){let o=this._strModuleIdToIntModuleId.get(h);return typeof o>"u"&&(o=this._nextId++,this._strModuleIdToIntModuleId.set(h,o),this._intModuleIdToStrModuleId[o]=h),o}getStrModuleId(h){return this._intModuleIdToStrModuleId[h]}}class i{constructor(h){this.id=h}}i.EXPORTS=new i(0),i.MODULE=new i(1),i.REQUIRE=new i(2),q.RegularDependency=i;class d{constructor(h,o,L){this.id=h,this.pluginId=o,this.pluginParam=L}}q.PluginDependency=d;class b{constructor(h,o,L,e,a=0){this._env=h,this._scriptLoader=o,this._loaderAvailableTimestamp=a,this._defineFunc=L,this._requireFunc=e,this._moduleIdProvider=new A,this._config=new q.Configuration(this._env),this._hasDependencyCycle=!1,this._modules2=[],this._knownModules2=[],this._inverseDependencies2=[],this._inversePluginDependencies2=new Map,this._currentAnonymousDefineCall=null,this._recorder=null,this._buildInfoPath=[],this._buildInfoDefineStack=[],this._buildInfoDependencies=[],this._requireFunc.moduleManager=this}reset(){return new b(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)}getGlobalAMDDefineFunc(){return this._defineFunc}getGlobalAMDRequireFunc(){return this._requireFunc}static _findRelevantLocationInStack(h,o){let L=u=>u.replace(/\\/g,"/"),e=L(h),a=o.split(/\n/);for(let u=0;uthis._moduleIdProvider.getStrModuleId(f.id))),this._resolve(m)}_normalizeDependency(h,o){if(h==="exports")return i.EXPORTS;if(h==="module")return i.MODULE;if(h==="require")return i.REQUIRE;let L=h.indexOf("!");if(L>=0){let e=o.resolveModule(h.substr(0,L)),a=o.resolveModule(h.substr(L+1)),u=this._moduleIdProvider.getModuleId(e+"!"+a),c=this._moduleIdProvider.getModuleId(e);return new d(u,c,a)}return new i(this._moduleIdProvider.getModuleId(o.resolveModule(h)))}_normalizeDependencies(h,o){let L=[],e=0;for(let a=0,u=h.length;athis._moduleIdProvider.getStrModuleId(u));const a=q.ensureError(o);return a.phase="loading",a.moduleId=L,a.neededBy=e,a}_onLoadError(h,o){const L=this._createLoadError(h,o);this._modules2[h]||(this._modules2[h]=new M(h,this._moduleIdProvider.getStrModuleId(h),[],()=>{},null,null));let e=[];for(let c=0,m=this._moduleIdProvider.getMaxModuleId();c0;){let c=u.shift(),m=this._modules2[c];m&&(a=m.onDependencyError(L)||a);let f=this._inverseDependencies2[c];if(f)for(let y=0,w=f.length;y0;){let c=a.shift().dependencies;if(c)for(let m=0,f=c.length;mthis._relativeRequire(h,L,e,a);return o.toUrl=L=>this._config.requireToUrl(h.resolveModule(L)),o.getStats=()=>this.getLoaderEvents(),o.hasDependencyCycle=()=>this._hasDependencyCycle,o.config=(L,e=!1)=>{this.configure(L,e)},o.__$__nodeRequire=q.global.nodeRequire,o}_loadModule(h){if(this._modules2[h]||this._knownModules2[h])return;this._knownModules2[h]=!0;let o=this._moduleIdProvider.getStrModuleId(h),L=this._config.moduleIdToPaths(o),e=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(o.indexOf("/")===-1||e.test(o))&&L.push("node|"+o);let a=-1,u=c=>{if(a++,a>=L.length)this._onLoadError(h,c);else{let m=L[a],f=this.getRecorder();if(this._config.isBuild()&&m==="empty:"){this._buildInfoPath[h]=m,this.defineModule(this._moduleIdProvider.getStrModuleId(h),[],null,null,null),this._onLoad(h);return}f.record(10,m),this._scriptLoader.load(this,m,()=>{this._config.isBuild()&&(this._buildInfoPath[h]=m),f.record(11,m),this._onLoad(h)},y=>{f.record(12,m),u(y)})}};u(null)}_loadPluginDependency(h,o){if(this._modules2[o.id]||this._knownModules2[o.id])return;this._knownModules2[o.id]=!0;let L=e=>{this.defineModule(this._moduleIdProvider.getStrModuleId(o.id),[],e,null,null)};L.error=e=>{this._config.onError(this._createLoadError(o.id,e))},h.load(o.pluginParam,this._createRequire(n.ROOT),L,this._config.getOptionsLiteral())}_resolve(h){let o=h.dependencies;if(o)for(let L=0,e=o.length;Lthis._moduleIdProvider.getStrModuleId(m)).join(` => `)),h.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[a.id]=this._inverseDependencies2[a.id]||[],this._inverseDependencies2[a.id].push(h.id),a instanceof d){let c=this._modules2[a.pluginId];if(c&&c.isComplete()){this._loadPluginDependency(c.exports,a);continue}let m=this._inversePluginDependencies2.get(a.pluginId);m||(m=[],this._inversePluginDependencies2.set(a.pluginId,m)),m.push(a),this._loadModule(a.pluginId);continue}this._loadModule(a.id)}h.unresolvedDependenciesCount===0&&this._onModuleComplete(h)}_onModuleComplete(h){let o=this.getRecorder();if(h.isComplete())return;let L=h.dependencies,e=[];if(L)for(let m=0,f=L.length;mthis._config.getConfigForModule(h.strId)};continue}if(y===i.REQUIRE){e[m]=this._createRequire(h.moduleIdResolver);continue}let w=this._modules2[y.id];if(w){e[m]=w.exports;continue}e[m]=null}const a=m=>(this._inverseDependencies2[m]||[]).map(f=>this._moduleIdProvider.getStrModuleId(f));h.complete(o,this._config,e,a);let u=this._inverseDependencies2[h.id];if(this._inverseDependencies2[h.id]=null,u)for(let m=0,f=u.length;m"u"&&b())})(le||(le={})),Y(X[19],J([0,1]),function(q,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.load=n.create=n.setPseudoTranslation=n.getConfiguredDefaultLocale=n.localize2=n.localize=void 0;let M=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const A="i-default";function i(f,y){let w;return y.length===0?w=f:w=f.replace(/\{(\d+)\}/g,(E,S)=>{const C=S[0],r=y[C];let s=E;return typeof r=="string"?s=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(s=String(r)),s}),M&&(w="\uFF3B"+w.replace(/[aouei]/g,"$&$&")+"\uFF3D"),w}function d(f,y){let w=f[y];return w||(w=f["*"],w)?w:null}function b(f){return f.charAt(f.length-1)==="/"?f:f+"/"}async function p(f,y,w){const E=b(f)+b(y)+"vscode/"+b(w),S=await fetch(E);if(S.ok)return await S.json();throw new Error(`${S.status} - ${S.statusText}`)}function h(f){return function(y,w){const E=Array.prototype.slice.call(arguments,2);return i(f[y],E)}}function o(f){return(y,w,...E)=>({value:i(f[y],E),original:i(w,E)})}function L(f,y,...w){return i(y,w)}n.localize=L;function e(f,y,...w){const E=i(y,w);return{value:E,original:E}}n.localize2=e;function a(f){}n.getConfiguredDefaultLocale=a;function u(f){M=f}n.setPseudoTranslation=u;function c(f,y){var w;return{localize:h(y[f]),localize2:o(y[f]),getConfiguredDefaultLocale:(w=y.getConfiguredDefaultLocale)!==null&&w!==void 0?w:E=>{}}}n.create=c;function m(f,y,w,E){var S;const C=(S=E["vs/nls"])!==null&&S!==void 0?S:{};if(!f||f.length===0)return w({localize:L,localize2:e,getConfiguredDefaultLocale:()=>{var g;return(g=C.availableLanguages)===null||g===void 0?void 0:g["*"]}});const r=C.availableLanguages?d(C.availableLanguages,f):null,s=r===null||r===A;let l=".nls";s||(l=l+"."+r);const _=g=>{Array.isArray(g)?(g.localize=h(g),g.localize2=o(g)):(g.localize=h(g[f]),g.localize2=o(g[f])),g.getConfiguredDefaultLocale=()=>{var v;return(v=C.availableLanguages)===null||v===void 0?void 0:v["*"]},w(g)};typeof C.loadBundle=="function"?C.loadBundle(f,r,(g,v)=>{g?y([f+".nls"],_):_(v)}):C.translationServiceUrl&&!s?(async()=>{var g;try{const v=await p(C.translationServiceUrl,r,f);return _(v)}catch(v){if(!r.includes("-"))return console.error(v),y([f+".nls"],_);try{const R=r.split("-")[0],N=await p(C.translationServiceUrl,R,f);return(g=C.availableLanguages)!==null&&g!==void 0||(C.availableLanguages={}),C.availableLanguages["*"]=R,_(N)}catch(R){return console.error(R),y([f+".nls"],_)}}})():y([f+l],_,g=>{if(l===".nls"){console.error("Failed trying to load default language strings",g);return}console.error(`Failed to load message bundle for language ${r}. Falling back to the default language:`,g),y([f+".nls"],_)})}n.load=m}),function(){const q=globalThis.MonacoEnvironment,n=q&&q.baseUrl?q.baseUrl:"../../../";function M(L,e){var a;if(q?.createTrustedTypesPolicy)try{return q.createTrustedTypesPolicy(L,e)}catch(u){console.warn(u);return}try{return(a=self.trustedTypes)===null||a===void 0?void 0:a.createPolicy(L,e)}catch(u){console.warn(u);return}}const A=M("amdLoader",{createScriptURL:L=>L,createScript:(L,...e)=>{const a=e.slice(0,-1).join(","),u=e.pop().toString();return`(function anonymous(${a}) { ${u} })`}});function i(){try{return(A?globalThis.eval(A.createScript("","true")):new Function("true")).call(globalThis),!0}catch{return!1}}function d(){return new Promise((L,e)=>{if(typeof globalThis.define=="function"&&globalThis.define.amd)return L();const a=n+"vs/loader.js";if(!(/^((http:)|(https:)|(file:))/.test(a)&&a.substring(0,globalThis.origin.length)!==globalThis.origin)&&i()){fetch(a).then(c=>{if(c.status!==200)throw new Error(c.statusText);return c.text()}).then(c=>{c=`${c} //# sourceURL=${a}`,(A?globalThis.eval(A.createScript("",c)):new Function(c)).call(globalThis),L()}).then(void 0,e);return}A?importScripts(A.createScriptURL(a)):importScripts(a),L()})}function b(){require.config({baseUrl:n,catchError:!0,trustedTypesPolicy:A,amdModulesPattern:/^vs\//})}function p(L){d().then(()=>{b(),require([L],function(e){setTimeout(function(){const a=e.create((u,c)=>{globalThis.postMessage(u,c)},null);for(globalThis.onmessage=u=>a.onmessage(u.data,u.ports);o.length>0;){const u=o.shift();a.onmessage(u.data,u.ports)}},0)})})}typeof globalThis.define=="function"&&globalThis.define.amd&&b();let h=!0;const o=[];globalThis.onmessage=L=>{if(!h){o.push(L);return}h=!1,p(L.data)}}(),Y(X[7],J([0,1]),function(q,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CallbackIterable=n.ArrayQueue=n.reverseOrder=n.booleanComparator=n.numberComparator=n.tieBreakComparators=n.compareBy=n.CompareResult=n.splice=n.insertInto=n.asArray=n.pushMany=n.pushToEnd=n.pushToStart=n.arrayInsert=n.range=n.firstOrDefault=n.distinct=n.isNonEmptyArray=n.isFalsyOrEmpty=n.coalesceInPlace=n.coalesce=n.forEachWithNeighbors=n.forEachAdjacent=n.groupAdjacentBy=n.groupBy=n.quickSelect=n.binarySearch2=n.binarySearch=n.removeFastWithoutKeepingOrder=n.equals=n.tail2=n.tail=void 0;function M(k,O=0){return k[k.length-(1+O)]}n.tail=M;function A(k){if(k.length===0)throw new Error("Invalid tail call");return[k.slice(0,k.length-1),k[k.length-1]]}n.tail2=A;function i(k,O,I=(W,z)=>W===z){if(k===O)return!0;if(!k||!O||k.length!==O.length)return!1;for(let W=0,z=k.length;WI(k[W],O))}n.binarySearch=b;function p(k,O){let I=0,W=k-1;for(;I<=W;){const z=(I+W)/2|0,G=O(z);if(G<0)I=z+1;else if(G>0)W=z-1;else return z}return-(I+1)}n.binarySearch2=p;function h(k,O,I){if(k=k|0,k>=O.length)throw new TypeError("invalid index");const W=O[Math.floor(O.length*Math.random())],z=[],G=[],t=[];for(const se of O){const ce=I(se,W);ce<0?z.push(se):ce>0?G.push(se):t.push(se)}return k!!O)}n.coalesce=u;function c(k){let O=0;for(let I=0;I0}n.isNonEmptyArray=f;function y(k,O=I=>I){const I=new Set;return k.filter(W=>{const z=O(W);return I.has(z)?!1:(I.add(z),!0)})}n.distinct=y;function w(k,O){return k.length>0?k[0]:O}n.firstOrDefault=w;function E(k,O){let I=typeof O=="number"?k:0;typeof O=="number"?I=k:(I=0,O=k);const W=[];if(I<=O)for(let z=I;zO;z--)W.push(z);return W}n.range=E;function S(k,O,I){const W=k.slice(0,O),z=k.slice(O);return W.concat(I,z)}n.arrayInsert=S;function C(k,O){const I=k.indexOf(O);I>-1&&(k.splice(I,1),k.unshift(O))}n.pushToStart=C;function r(k,O){const I=k.indexOf(O);I>-1&&(k.splice(I,1),k.push(O))}n.pushToEnd=r;function s(k,O){for(const I of O)k.push(I)}n.pushMany=s;function l(k){return Array.isArray(k)?k:[k]}n.asArray=l;function _(k,O,I){const W=v(k,O),z=k.length,G=I.length;k.length=z+G;for(let t=z-1;t>=W;t--)k[t+G]=k[t];for(let t=0;t0}k.isGreaterThan=W;function z(G){return G===0}k.isNeitherLessOrGreaterThan=z,k.greaterThan=1,k.lessThan=-1,k.neitherLessOrGreaterThan=0})(R||(n.CompareResult=R={}));function N(k,O){return(I,W)=>O(k(I),k(W))}n.compareBy=N;function D(...k){return(O,I)=>{for(const W of k){const z=W(O,I);if(!R.isNeitherLessOrGreaterThan(z))return z}return R.neitherLessOrGreaterThan}}n.tieBreakComparators=D;const x=(k,O)=>k-O;n.numberComparator=x;const T=(k,O)=>(0,n.numberComparator)(k?1:0,O?1:0);n.booleanComparator=T;function F(k){return(O,I)=>-k(O,I)}n.reverseOrder=F;class B{constructor(O){this.items=O,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(O){let I=this.firstIdx;for(;I=0&&O(this.items[I]);)I--;const W=I===this.lastIdx?null:this.items.slice(I+1,this.lastIdx+1);return this.lastIdx=I,W}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const O=this.items[this.firstIdx];return this.firstIdx++,O}takeCount(O){const I=this.items.slice(this.firstIdx,this.firstIdx+O);return this.firstIdx+=O,I}}n.ArrayQueue=B;class V{constructor(O){this.iterate=O}toArray(){const O=[];return this.iterate(I=>(O.push(I),!0)),O}filter(O){return new V(I=>this.iterate(W=>O(W)?I(W):!0))}map(O){return new V(I=>this.iterate(W=>I(O(W))))}findLast(O){let I;return this.iterate(W=>(O(W)&&(I=W),!0)),I}findLastMaxBy(O){let I,W=!0;return this.iterate(z=>((W||R.isGreaterThan(O(z,I)))&&(W=!1,I=z),!0)),I}}n.CallbackIterable=V,V.empty=new V(k=>{})}),Y(X[11],J([0,1]),function(q,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.mapFindFirst=n.findMaxIdxBy=n.findFirstMinBy=n.findLastMaxBy=n.findFirstMaxBy=n.MonotonousArray=n.findFirstIdxMonotonousOrArrLen=n.findFirstMonotonous=n.findLastIdxMonotonous=n.findLastMonotonous=n.findLastIdx=n.findLast=void 0;function M(c,m,f){const y=A(c,m);if(y!==-1)return c[y]}n.findLast=M;function A(c,m,f=c.length-1){for(let y=f;y>=0;y--){const w=c[y];if(m(w))return y}return-1}n.findLastIdx=A;function i(c,m){const f=d(c,m);return f===-1?void 0:c[f]}n.findLastMonotonous=i;function d(c,m,f=0,y=c.length){let w=f,E=y;for(;w0&&(f=w)}return f}n.findFirstMaxBy=o;function L(c,m){if(c.length===0)return;let f=c[0];for(let y=1;y=0&&(f=w)}return f}n.findLastMaxBy=L;function e(c,m){return o(c,(f,y)=>-m(f,y))}n.findFirstMinBy=e;function a(c,m){if(c.length===0)return-1;let f=0;for(let y=1;y0&&(f=y)}return f}n.findMaxIdxBy=a;function u(c,m){for(const f of c){const y=m(f);if(y!==void 0)return y}}n.mapFindFirst=u}),Y(X[32],J([0,1]),function(q,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CachedFunction=n.LRUCachedFunction=void 0;class M{constructor(d){this.fn=d,this.lastCache=void 0,this.lastArgKey=void 0}get(d){const b=JSON.stringify(d);return this.lastArgKey!==b&&(this.lastArgKey=b,this.lastCache=this.fn(d)),this.lastCache}}n.LRUCachedFunction=M;class A{get cachedValues(){return this._map}constructor(d){this.fn=d,this._map=new Map}get(d){if(this._map.has(d))return this._map.get(d);const b=this.fn(d);return this._map.set(d,b),b}}n.CachedFunction=A}),Y(X[33],J([0,1]),function(q,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Color=n.HSVA=n.HSLA=n.RGBA=void 0;function M(p,h){const o=Math.pow(10,h);return Math.round(p*o)/o}class A{constructor(h,o,L,e=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,h))|0,this.g=Math.min(255,Math.max(0,o))|0,this.b=Math.min(255,Math.max(0,L))|0,this.a=M(Math.max(Math.min(1,e),0),3)}static equals(h,o){return h.r===o.r&&h.g===o.g&&h.b===o.b&&h.a===o.a}}n.RGBA=A;class i{constructor(h,o,L,e){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,h),0)|0,this.s=M(Math.max(Math.min(1,o),0),3),this.l=M(Math.max(Math.min(1,L),0),3),this.a=M(Math.max(Math.min(1,e),0),3)}static equals(h,o){return h.h===o.h&&h.s===o.s&&h.l===o.l&&h.a===o.a}static fromRGBA(h){const o=h.r/255,L=h.g/255,e=h.b/255,a=h.a,u=Math.max(o,L,e),c=Math.min(o,L,e);let m=0,f=0;const y=(c+u)/2,w=u-c;if(w>0){switch(f=Math.min(y<=.5?w/(2*y):w/(2-2*y),1),u){case o:m=(L-e)/w+(L1&&(L-=1),L<1/6?h+(o-h)*6*L:L<1/2?o:L<2/3?h+(o-h)*(2/3-L)*6:h}static toRGBA(h){const o=h.h/360,{s:L,l:e,a}=h;let u,c,m;if(L===0)u=c=m=e;else{const f=e<.5?e*(1+L):e+L-e*L,y=2*e-f;u=i._hue2rgb(y,f,o+1/3),c=i._hue2rgb(y,f,o),m=i._hue2rgb(y,f,o-1/3)}return new A(Math.round(u*255),Math.round(c*255),Math.round(m*255),a)}}n.HSLA=i;class d{constructor(h,o,L,e){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,h),0)|0,this.s=M(Math.max(Math.min(1,o),0),3),this.v=M(Math.max(Math.min(1,L),0),3),this.a=M(Math.max(Math.min(1,e),0),3)}static equals(h,o){return h.h===o.h&&h.s===o.s&&h.v===o.v&&h.a===o.a}static fromRGBA(h){const o=h.r/255,L=h.g/255,e=h.b/255,a=Math.max(o,L,e),u=Math.min(o,L,e),c=a-u,m=a===0?0:c/a;let f;return c===0?f=0:a===o?f=((L-e)/c%6+6)%6:a===L?f=(e-o)/c+2:f=(o-L)/c+4,new d(Math.round(f*60),m,a,h.a)}static toRGBA(h){const{h:o,s:L,v:e,a}=h,u=e*L,c=u*(1-Math.abs(o/60%2-1)),m=e-u;let[f,y,w]=[0,0,0];return o<60?(f=u,y=c):o<120?(f=c,y=u):o<180?(y=u,w=c):o<240?(y=c,w=u):o<300?(f=c,w=u):o<=360&&(f=u,w=c),f=Math.round((f+m)*255),y=Math.round((y+m)*255),w=Math.round((w+m)*255),new A(f,y,w,a)}}n.HSVA=d;class b{static fromHex(h){return b.Format.CSS.parseHex(h)||b.red}static equals(h,o){return!h&&!o?!0:!h||!o?!1:h.equals(o)}get hsla(){return this._hsla?this._hsla:i.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:d.fromRGBA(this.rgba)}constructor(h){if(h)if(h instanceof A)this.rgba=h;else if(h instanceof i)this._hsla=h,this.rgba=i.toRGBA(h);else if(h instanceof d)this._hsva=h,this.rgba=d.toRGBA(h);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(h){return!!h&&A.equals(this.rgba,h.rgba)&&i.equals(this.hsla,h.hsla)&&d.equals(this.hsva,h.hsva)}getRelativeLuminance(){const h=b._relativeLuminanceForComponent(this.rgba.r),o=b._relativeLuminanceForComponent(this.rgba.g),L=b._relativeLuminanceForComponent(this.rgba.b),e=.2126*h+.7152*o+.0722*L;return M(e,4)}static _relativeLuminanceForComponent(h){const o=h/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(h){const o=this.getRelativeLuminance(),L=h.getRelativeLuminance();return o>L}isDarkerThan(h){const o=this.getRelativeLuminance(),L=h.getRelativeLuminance();return o{throw f.stack?u.isErrorNoTelemetry(f)?new u(f.message+` `+f.stack):new Error(f.message+` `+f.stack):f},0)}}emit(f){this.listeners.forEach(y=>{y(f)})}onUnexpectedError(f){this.unexpectedErrorHandler(f),this.emit(f)}onUnexpectedExternalError(f){this.unexpectedErrorHandler(f)}}n.ErrorHandler=M,n.errorHandler=new M;function A(m){p(m)||n.errorHandler.onUnexpectedError(m)}n.onUnexpectedError=A;function i(m){p(m)||n.errorHandler.onUnexpectedExternalError(m)}n.onUnexpectedExternalError=i;function d(m){if(m instanceof Error){const{name:f,message:y}=m,w=m.stacktrace||m.stack;return{$isError:!0,name:f,message:y,stack:w,noTelemetry:u.isErrorNoTelemetry(m)}}return m}n.transformErrorForSerialization=d;const b="Canceled";function p(m){return m instanceof h?!0:m instanceof Error&&m.name===b&&m.message===b}n.isCancellationError=p;class h extends Error{constructor(){super(b),this.name=this.message}}n.CancellationError=h;function o(){const m=new Error(b);return m.name=m.message,m}n.canceled=o;function L(m){return m?new Error(`Illegal argument: ${m}`):new Error("Illegal argument")}n.illegalArgument=L;function e(m){return m?new Error(`Illegal state: ${m}`):new Error("Illegal state")}n.illegalState=e;class a extends Error{constructor(f){super("NotSupported"),f&&(this.message=f)}}n.NotSupportedError=a;class u extends Error{constructor(f){super(f),this.name="CodeExpectedError"}static fromError(f){if(f instanceof u)return f;const y=new u;return y.message=f.message,y.stack=f.stack,y}static isErrorNoTelemetry(f){return f.name==="CodeExpectedError"}}n.ErrorNoTelemetry=u;class c extends Error{constructor(f){super(f||"An unexpected bug occurred."),Object.setPrototypeOf(this,c.prototype)}}n.BugIndicatingError=c}),Y(X[12],J([0,1,5]),function(q,n,M){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkAdjacentItems=n.assertFn=n.softAssert=n.assertNever=n.ok=void 0;function A(h,o){if(!h)throw new Error(o?`Assertion failed (${o})`:"Assertion Failed")}n.ok=A;function i(h,o="Unreachable"){throw new Error(o)}n.assertNever=i;function d(h){h||(0,M.onUnexpectedError)(new M.BugIndicatingError("Assertion Failed"))}n.softAssert=d;function b(h){if(!h()){debugger;h(),(0,M.onUnexpectedError)(new M.BugIndicatingError("Assertion Failed"))}}n.assertFn=b;function p(h,o){let L=0;for(;L=0;s--)yield r[s]}A.reverse=L;function e(r){return!r||r[Symbol.iterator]().next().done===!0}A.isEmpty=e;function a(r){return r[Symbol.iterator]().next().value}A.first=a;function u(r,s){for(const l of r)if(s(l))return!0;return!1}A.some=u;function c(r,s){for(const l of r)if(s(l))return l}A.find=c;function*m(r,s){for(const l of r)s(l)&&(yield l)}A.filter=m;function*f(r,s){let l=0;for(const _ of r)yield s(_,l++)}A.map=f;function*y(...r){for(const s of r)yield*s}A.concat=y;function w(r,s,l){let _=l;for(const g of r)_=s(_,g);return _}A.reduce=w;function*E(r,s,l=r.length){for(s<0&&(s+=r.length),l<0?l+=r.length:l>r.length&&(l=r.length);s=98&&w<=113)return null;switch(w){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return A.keyCodeToStr(w)}e.toElectronAccelerator=y})(o||(n.KeyCodeUtils=o={}));function L(e,a){const u=(a&65535)<<16>>>0;return(e|u)>>>0}n.KeyChord=L}),Y(X[36],J([0,1]),function(q,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Lazy=void 0;class M{constructor(i){this.executor=i,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(i){this._error=i}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}n.Lazy=M}),Y(X[13],J([0,1,20,21]),function(q,n,M,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DisposableMap=n.ImmortalReference=n.RefCountedDisposable=n.MutableDisposable=n.Disposable=n.DisposableStore=n.toDisposable=n.combinedDisposable=n.dispose=n.isDisposable=n.markAsSingleton=n.markAsDisposed=n.trackDisposable=n.setDisposableTracker=void 0;const i=!1;let d=null;function b(r){d=r}if(n.setDisposableTracker=b,i){const r="__is_disposable_tracked__";b(new class{trackDisposable(s){const l=new Error("Potentially leaked disposable").stack;setTimeout(()=>{s[r]||console.log(l)},3e3)}setParent(s,l){if(s&&s!==y.None)try{s[r]=!0}catch{}}markAsDisposed(s){if(s&&s!==y.None)try{s[r]=!0}catch{}}markAsSingleton(s){}})}function p(r){return d?.trackDisposable(r),r}n.trackDisposable=p;function h(r){d?.markAsDisposed(r)}n.markAsDisposed=h;function o(r,s){d?.setParent(r,s)}function L(r,s){if(d)for(const l of r)d.setParent(l,s)}function e(r){return d?.markAsSingleton(r),r}n.markAsSingleton=e;function a(r){return typeof r.dispose=="function"&&r.dispose.length===0}n.isDisposable=a;function u(r){if(A.Iterable.is(r)){const s=[];for(const l of r)if(l)try{l.dispose()}catch(_){s.push(_)}if(s.length===1)throw s[0];if(s.length>1)throw new AggregateError(s,"Encountered errors while disposing of store");return Array.isArray(r)?[]:r}else if(r)return r.dispose(),r}n.dispose=u;function c(...r){const s=m(()=>u(r));return L(r,s),s}n.combinedDisposable=c;function m(r){const s=p({dispose:(0,M.createSingleCallFunction)(()=>{h(s),r()})});return s}n.toDisposable=m;class f{constructor(){this._toDispose=new Set,this._isDisposed=!1,p(this)}dispose(){this._isDisposed||(h(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{u(this._toDispose)}finally{this._toDispose.clear()}}add(s){if(!s)return s;if(s===this)throw new Error("Cannot register a disposable on itself!");return o(s,this),this._isDisposed?f.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(s),s}deleteAndLeak(s){s&&this._toDispose.has(s)&&(this._toDispose.delete(s),o(s,null))}}n.DisposableStore=f,f.DISABLE_DISPOSED_WARNING=!1;class y{constructor(){this._store=new f,p(this),o(this._store,this)}dispose(){h(this),this._store.dispose()}_register(s){if(s===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(s)}}n.Disposable=y,y.None=Object.freeze({dispose(){}});class w{constructor(){this._isDisposed=!1,p(this)}get value(){return this._isDisposed?void 0:this._value}set value(s){var l;this._isDisposed||s===this._value||((l=this._value)===null||l===void 0||l.dispose(),s&&o(s,this),this._value=s)}clear(){this.value=void 0}dispose(){var s;this._isDisposed=!0,h(this),(s=this._value)===null||s===void 0||s.dispose(),this._value=void 0}}n.MutableDisposable=w;class E{constructor(s){this._disposable=s,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}n.RefCountedDisposable=E;class S{constructor(s){this.object=s}dispose(){}}n.ImmortalReference=S;class C{constructor(){this._store=new Map,this._isDisposed=!1,p(this)}dispose(){h(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{u(this._store.values())}finally{this._store.clear()}}get(s){return this._store.get(s)}set(s,l,_=!1){var g;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),_||(g=this._store.get(s))===null||g===void 0||g.dispose(),this._store.set(s,l)}deleteAndDispose(s){var l;(l=this._store.get(s))===null||l===void 0||l.dispose(),this._store.delete(s)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}n.DisposableMap=C}),Y(X[22],J([0,1]),function(q,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinkedList=void 0;class M{constructor(d){this.element=d,this.next=M.Undefined,this.prev=M.Undefined}}M.Undefined=new M(void 0);class A{constructor(){this._first=M.Undefined,this._last=M.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===M.Undefined}clear(){let d=this._first;for(;d!==M.Undefined;){const b=d.next;d.prev=M.Undefined,d.next=M.Undefined,d=b}this._first=M.Undefined,this._last=M.Undefined,this._size=0}unshift(d){return this._insert(d,!1)}push(d){return this._insert(d,!0)}_insert(d,b){const p=new M(d);if(this._first===M.Undefined)this._first=p,this._last=p;else if(b){const o=this._last;this._last=p,p.prev=o,o.next=p}else{const o=this._first;this._first=p,p.next=o,o.prev=p}this._size+=1;let h=!1;return()=>{h||(h=!0,this._remove(p))}}shift(){if(this._first!==M.Undefined){const d=this._first.element;return this._remove(this._first),d}}pop(){if(this._last!==M.Undefined){const d=this._last.element;return this._remove(this._last),d}}_remove(d){if(d.prev!==M.Undefined&&d.next!==M.Undefined){const b=d.prev;b.next=d.next,d.next.prev=b}else d.prev===M.Undefined&&d.next===M.Undefined?(this._first=M.Undefined,this._last=M.Undefined):d.next===M.Undefined?(this._last=this._last.prev,this._last.next=M.Undefined):d.prev===M.Undefined&&(this._first=this._first.next,this._first.prev=M.Undefined);this._size-=1}*[Symbol.iterator](){let d=this._first;for(;d!==M.Undefined;)yield d.element,d=d.next}}n.LinkedList=A}),Y(X[37],J([0,1]),function(q,n){"use strict";var M,A;Object.defineProperty(n,"__esModule",{value:!0}),n.SetMap=n.BidirectionalMap=n.LRUCache=n.LinkedMap=n.ResourceMap=void 0;class i{constructor(a,u){this.uri=a,this.value=u}}function d(e){return Array.isArray(e)}class b{constructor(a,u){if(this[M]="ResourceMap",a instanceof b)this.map=new Map(a.map),this.toKey=u??b.defaultToKey;else if(d(a)){this.map=new Map,this.toKey=u??b.defaultToKey;for(const[c,m]of a)this.set(c,m)}else this.map=new Map,this.toKey=a??b.defaultToKey}set(a,u){return this.map.set(this.toKey(a),new i(a,u)),this}get(a){var u;return(u=this.map.get(this.toKey(a)))===null||u===void 0?void 0:u.value}has(a){return this.map.has(this.toKey(a))}get size(){return this.map.size}clear(){this.map.clear()}delete(a){return this.map.delete(this.toKey(a))}forEach(a,u){typeof u<"u"&&(a=a.bind(u));for(const[c,m]of this.map)a(m.value,m.uri,this)}*values(){for(const a of this.map.values())yield a.value}*keys(){for(const a of this.map.values())yield a.uri}*entries(){for(const a of this.map.values())yield[a.uri,a.value]}*[(M=Symbol.toStringTag,Symbol.iterator)](){for(const[,a]of this.map)yield[a.uri,a.value]}}n.ResourceMap=b,b.defaultToKey=e=>e.toString();class p{constructor(){this[A]="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 a;return(a=this._head)===null||a===void 0?void 0:a.value}get last(){var a;return(a=this._tail)===null||a===void 0?void 0:a.value}has(a){return this._map.has(a)}get(a,u=0){const c=this._map.get(a);if(c)return u!==0&&this.touch(c,u),c.value}set(a,u,c=0){let m=this._map.get(a);if(m)m.value=u,c!==0&&this.touch(m,c);else{switch(m={key:a,value:u,next:void 0,previous:void 0},c){case 0:this.addItemLast(m);break;case 1:this.addItemFirst(m);break;case 2:this.addItemLast(m);break;default:this.addItemLast(m);break}this._map.set(a,m),this._size++}return this}delete(a){return!!this.remove(a)}remove(a){const u=this._map.get(a);if(u)return this._map.delete(a),this.removeItem(u),this._size--,u.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const a=this._head;return this._map.delete(a.key),this.removeItem(a),this._size--,a.value}forEach(a,u){const c=this._state;let m=this._head;for(;m;){if(u?a.bind(u)(m.value,m.key,this):a(m.value,m.key,this),this._state!==c)throw new Error("LinkedMap got modified during iteration.");m=m.next}}keys(){const a=this,u=this._state;let c=this._head;const m={[Symbol.iterator](){return m},next(){if(a._state!==u)throw new Error("LinkedMap got modified during iteration.");if(c){const f={value:c.key,done:!1};return c=c.next,f}else return{value:void 0,done:!0}}};return m}values(){const a=this,u=this._state;let c=this._head;const m={[Symbol.iterator](){return m},next(){if(a._state!==u)throw new Error("LinkedMap got modified during iteration.");if(c){const f={value:c.value,done:!1};return c=c.next,f}else return{value:void 0,done:!0}}};return m}entries(){const a=this,u=this._state;let c=this._head;const m={[Symbol.iterator](){return m},next(){if(a._state!==u)throw new Error("LinkedMap got modified during iteration.");if(c){const f={value:[c.key,c.value],done:!1};return c=c.next,f}else return{value:void 0,done:!0}}};return m}[(A=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(a){if(a>=this.size)return;if(a===0){this.clear();return}let u=this._head,c=this.size;for(;u&&c>a;)this._map.delete(u.key),u=u.next,c--;this._head=u,this._size=c,u&&(u.previous=void 0),this._state++}addItemFirst(a){if(!this._head&&!this._tail)this._tail=a;else if(this._head)a.next=this._head,this._head.previous=a;else throw new Error("Invalid list");this._head=a,this._state++}addItemLast(a){if(!this._head&&!this._tail)this._head=a;else if(this._tail)a.previous=this._tail,this._tail.next=a;else throw new Error("Invalid list");this._tail=a,this._state++}removeItem(a){if(a===this._head&&a===this._tail)this._head=void 0,this._tail=void 0;else if(a===this._head){if(!a.next)throw new Error("Invalid list");a.next.previous=void 0,this._head=a.next}else if(a===this._tail){if(!a.previous)throw new Error("Invalid list");a.previous.next=void 0,this._tail=a.previous}else{const u=a.next,c=a.previous;if(!u||!c)throw new Error("Invalid list");u.previous=c,c.next=u}a.next=void 0,a.previous=void 0,this._state++}touch(a,u){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(u!==1&&u!==2)){if(u===1){if(a===this._head)return;const c=a.next,m=a.previous;a===this._tail?(m.next=void 0,this._tail=m):(c.previous=m,m.next=c),a.previous=void 0,a.next=this._head,this._head.previous=a,this._head=a,this._state++}else if(u===2){if(a===this._tail)return;const c=a.next,m=a.previous;a===this._head?(c.previous=void 0,this._head=c):(c.previous=m,m.next=c),a.next=void 0,a.previous=this._tail,this._tail.next=a,this._tail=a,this._state++}}}toJSON(){const a=[];return this.forEach((u,c)=>{a.push([c,u])}),a}fromJSON(a){this.clear();for(const[u,c]of a)this.set(u,c)}}n.LinkedMap=p;class h extends p{constructor(a,u=1){super(),this._limit=a,this._ratio=Math.min(Math.max(0,u),1)}get limit(){return this._limit}set limit(a){this._limit=a,this.checkTrim()}get(a,u=2){return super.get(a,u)}peek(a){return super.get(a,0)}set(a,u){return super.set(a,u,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}n.LRUCache=h;class o{constructor(a){if(this._m1=new Map,this._m2=new Map,a)for(const[u,c]of a)this.set(u,c)}clear(){this._m1.clear(),this._m2.clear()}set(a,u){this._m1.set(a,u),this._m2.set(u,a)}get(a){return this._m1.get(a)}getKey(a){return this._m2.get(a)}delete(a){const u=this._m1.get(a);return u===void 0?!1:(this._m1.delete(a),this._m2.delete(u),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}n.BidirectionalMap=o;class L{constructor(){this.map=new Map}add(a,u){let c=this.map.get(a);c||(c=new Set,this.map.set(a,c)),c.add(u)}delete(a,u){const c=this.map.get(a);c&&(c.delete(u),c.size===0&&this.map.delete(a))}forEach(a,u){const c=this.map.get(a);c&&c.forEach(u)}get(a){const u=this.map.get(a);return u||new Set}}n.SetMap=L}),Y(X[23],J([0,1]),function(q,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.StopWatch=void 0;const M=globalThis.performance&&typeof globalThis.performance.now=="function";class A{static create(d){return new A(d)}constructor(d){this._now=M&&d===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}n.StopWatch=A}),Y(X[9],J([0,1,5,20,13,22,23]),function(q,n,M,A,i,d,b){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Relay=n.EventBufferer=n.EventMultiplexer=n.MicrotaskEmitter=n.DebounceEmitter=n.PauseableEmitter=n.createEventDeliveryQueue=n.Emitter=n.EventProfiling=n.Event=void 0;const p=!1,h=!1;var o;(function(g){g.None=()=>i.Disposable.None;function v(K){if(h){const{onDidAddListener:j}=K,Z=u.create();let Q=0;K.onDidAddListener=()=>{++Q===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),Z.print()),j?.()}}}function R(K,j){return I(K,()=>{},0,void 0,!0,void 0,j)}g.defer=R;function N(K){return(j,Z=null,Q)=>{let ee=!1,ne;return ne=K(ie=>{if(!ee)return ne?ne.dispose():ee=!0,j.call(Z,ie)},null,Q),ee&&ne.dispose(),ne}}g.once=N;function D(K,j,Z){return k((Q,ee=null,ne)=>K(ie=>Q.call(ee,j(ie)),null,ne),Z)}g.map=D;function x(K,j,Z){return k((Q,ee=null,ne)=>K(ie=>{j(ie),Q.call(ee,ie)},null,ne),Z)}g.forEach=x;function T(K,j,Z){return k((Q,ee=null,ne)=>K(ie=>j(ie)&&Q.call(ee,ie),null,ne),Z)}g.filter=T;function F(K){return K}g.signal=F;function B(...K){return(j,Z=null,Q)=>{const ee=(0,i.combinedDisposable)(...K.map(ne=>ne(ie=>j.call(Z,ie))));return O(ee,Q)}}g.any=B;function V(K,j,Z,Q){let ee=Z;return D(K,ne=>(ee=j(ee,ne),ee),Q)}g.reduce=V;function k(K,j){let Z;const Q={onWillAddFirstListener(){Z=K(ee.fire,ee)},onDidRemoveLastListener(){Z?.dispose()}};j||v(Q);const ee=new y(Q);return j?.add(ee),ee.event}function O(K,j){return j instanceof Array?j.push(K):j&&j.add(K),K}function I(K,j,Z=100,Q=!1,ee=!1,ne,ie){let ae,P,U,H=0,$;const te={leakWarningThreshold:ne,onWillAddFirstListener(){ae=K(ue=>{H++,P=j(P,ue),Q&&!U&&(re.fire(P),P=void 0),$=()=>{const ge=P;P=void 0,U=void 0,(!Q||H>1)&&re.fire(ge),H=0},typeof Z=="number"?(clearTimeout(U),U=setTimeout($,Z)):U===void 0&&(U=0,queueMicrotask($))})},onWillRemoveListener(){ee&&H>0&&$?.()},onDidRemoveLastListener(){$=void 0,ae.dispose()}};ie||v(te);const re=new y(te);return ie?.add(re),re.event}g.debounce=I;function W(K,j=0,Z){return g.debounce(K,(Q,ee)=>Q?(Q.push(ee),Q):[ee],j,void 0,!0,void 0,Z)}g.accumulate=W;function z(K,j=(Q,ee)=>Q===ee,Z){let Q=!0,ee;return T(K,ne=>{const ie=Q||!j(ne,ee);return Q=!1,ee=ne,ie},Z)}g.latch=z;function G(K,j,Z){return[g.filter(K,j,Z),g.filter(K,Q=>!j(Q),Z)]}g.split=G;function t(K,j=!1,Z=[],Q){let ee=Z.slice(),ne=K(P=>{ee?ee.push(P):ae.fire(P)});Q&&Q.add(ne);const ie=()=>{ee?.forEach(P=>ae.fire(P)),ee=null},ae=new y({onWillAddFirstListener(){ne||(ne=K(P=>ae.fire(P)),Q&&Q.add(ne))},onDidAddFirstListener(){ee&&(j?setTimeout(ie):ie())},onDidRemoveLastListener(){ne&&ne.dispose(),ne=null}});return Q&&Q.add(ae),ae.event}g.buffer=t;function se(K,j){return(Q,ee,ne)=>{const ie=j(new me);return K(function(ae){const P=ie.evaluate(ae);P!==ce&&Q.call(ee,P)},void 0,ne)}}g.chain=se;const ce=Symbol("HaltChainable");class me{constructor(){this.steps=[]}map(j){return this.steps.push(j),this}forEach(j){return this.steps.push(Z=>(j(Z),Z)),this}filter(j){return this.steps.push(Z=>j(Z)?Z:ce),this}reduce(j,Z){let Q=Z;return this.steps.push(ee=>(Q=j(Q,ee),Q)),this}latch(j=(Z,Q)=>Z===Q){let Z=!0,Q;return this.steps.push(ee=>{const ne=Z||!j(ee,Q);return Z=!1,Q=ee,ne?ee:ce}),this}evaluate(j){for(const Z of this.steps)if(j=Z(j),j===ce)break;return j}}function ve(K,j,Z=Q=>Q){const Q=(...ae)=>ie.fire(Z(...ae)),ee=()=>K.on(j,Q),ne=()=>K.removeListener(j,Q),ie=new y({onWillAddFirstListener:ee,onDidRemoveLastListener:ne});return ie.event}g.fromNodeEventEmitter=ve;function pe(K,j,Z=Q=>Q){const Q=(...ae)=>ie.fire(Z(...ae)),ee=()=>K.addEventListener(j,Q),ne=()=>K.removeEventListener(j,Q),ie=new y({onWillAddFirstListener:ee,onDidRemoveLastListener:ne});return ie.event}g.fromDOMEventEmitter=pe;function Le(K){return new Promise(j=>N(K)(j))}g.toPromise=Le;function we(K){const j=new y;return K.then(Z=>{j.fire(Z)},()=>{j.fire(void 0)}).finally(()=>{j.dispose()}),j.event}g.fromPromise=we;function be(K,j,Z){return j(Z),K(Q=>j(Q))}g.runAndSubscribe=be;class Ce{constructor(j,Z){this._observable=j,this._counter=0,this._hasChanged=!1;const Q={onWillAddFirstListener:()=>{j.addObserver(this)},onDidRemoveLastListener:()=>{j.removeObserver(this)}};Z||v(Q),this.emitter=new y(Q),Z&&Z.add(this.emitter)}beginUpdate(j){this._counter++}handlePossibleChange(j){}handleChange(j,Z){this._hasChanged=!0}endUpdate(j){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Se(K,j){return new Ce(K,j).emitter.event}g.fromObservable=Se;function ye(K){return(j,Z,Q)=>{let ee=0,ne=!1;const ie={beginUpdate(){ee++},endUpdate(){ee--,ee===0&&(K.reportChanges(),ne&&(ne=!1,j.call(Z)))},handlePossibleChange(){},handleChange(){ne=!0}};K.addObserver(ie),K.reportChanges();const ae={dispose(){K.removeObserver(ie)}};return Q instanceof i.DisposableStore?Q.add(ae):Array.isArray(Q)&&Q.push(ae),ae}}g.fromObservableLight=ye})(o||(n.Event=o={}));class L{constructor(v){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${v}_${L._idPool++}`,L.all.add(this)}start(v){this._stopWatch=new b.StopWatch,this.listenerCount=v}stop(){if(this._stopWatch){const v=this._stopWatch.elapsed();this.durations.push(v),this.elapsedOverall+=v,this.invocationCount+=1,this._stopWatch=void 0}}}n.EventProfiling=L,L.all=new Set,L._idPool=0;let e=-1;class a{constructor(v,R=Math.random().toString(18).slice(2,5)){this.threshold=v,this.name=R,this._warnCountdown=0}dispose(){var v;(v=this._stacks)===null||v===void 0||v.clear()}check(v,R){const N=this.threshold;if(N<=0||R{const x=this._stacks.get(v.value)||0;this._stacks.set(v.value,x-1)}}}class u{static create(){var v;return new u((v=new Error().stack)!==null&&v!==void 0?v:"")}constructor(v){this.value=v}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class c{constructor(v){this.value=v}}const m=2,f=(g,v)=>{if(g instanceof c)v(g);else for(let R=0;R0||!((R=this._options)===null||R===void 0)&&R.leakWarningThreshold?new a((D=(N=this._options)===null||N===void 0?void 0:N.leakWarningThreshold)!==null&&D!==void 0?D:e):void 0,this._perfMon=!((x=this._options)===null||x===void 0)&&x._profName?new L(this._options._profName):void 0,this._deliveryQueue=(T=this._options)===null||T===void 0?void 0:T.deliveryQueue}dispose(){var v,R,N,D;if(!this._disposed){if(this._disposed=!0,((v=this._deliveryQueue)===null||v===void 0?void 0:v.current)===this&&this._deliveryQueue.reset(),this._listeners){if(p){const x=this._listeners;queueMicrotask(()=>{f(x,T=>{var F;return(F=T.stack)===null||F===void 0?void 0:F.print()})})}this._listeners=void 0,this._size=0}(N=(R=this._options)===null||R===void 0?void 0:R.onDidRemoveLastListener)===null||N===void 0||N.call(R),(D=this._leakageMon)===null||D===void 0||D.dispose()}}get event(){var v;return(v=this._event)!==null&&v!==void 0||(this._event=(R,N,D)=>{var x,T,F,B,V;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),i.Disposable.None;if(this._disposed)return i.Disposable.None;N&&(R=R.bind(N));const k=new c(R);let O,I;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(k.stack=u.create(),O=this._leakageMon.check(k.stack,this._size+1)),p&&(k.stack=I??u.create()),this._listeners?this._listeners instanceof c?((V=this._deliveryQueue)!==null&&V!==void 0||(this._deliveryQueue=new E),this._listeners=[this._listeners,k]):this._listeners.push(k):((T=(x=this._options)===null||x===void 0?void 0:x.onWillAddFirstListener)===null||T===void 0||T.call(x,this),this._listeners=k,(B=(F=this._options)===null||F===void 0?void 0:F.onDidAddFirstListener)===null||B===void 0||B.call(F,this)),this._size++;const W=(0,i.toDisposable)(()=>{O?.(),this._removeListener(k)});return D instanceof i.DisposableStore?D.add(W):Array.isArray(D)&&D.push(W),W}),this._event}_removeListener(v){var R,N,D,x;if((N=(R=this._options)===null||R===void 0?void 0:R.onWillRemoveListener)===null||N===void 0||N.call(R,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(x=(D=this._options)===null||D===void 0?void 0:D.onDidRemoveLastListener)===null||x===void 0||x.call(D,this),this._size=0;return}const T=this._listeners,F=T.indexOf(v);if(F===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,T[F]=void 0;const B=this._deliveryQueue.current===this;if(this._size*m<=T.length){let V=0;for(let k=0;k0}}n.Emitter=y;const w=()=>new E;n.createEventDeliveryQueue=w;class E{constructor(){this.i=-1,this.end=0}enqueue(v,R,N){this.i=0,this.end=N,this.current=v,this.value=R}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class S extends y{constructor(v){super(v),this._isPaused=0,this._eventQueue=new d.LinkedList,this._mergeFn=v?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const v=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(v))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(v){this._size&&(this._isPaused!==0?this._eventQueue.push(v):super.fire(v))}}n.PauseableEmitter=S;class C extends S{constructor(v){var R;super(v),this._delay=(R=v.delay)!==null&&R!==void 0?R:100}fire(v){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(v)}}n.DebounceEmitter=C;class r extends y{constructor(v){super(v),this._queuedEvents=[],this._mergeFn=v?.merge}fire(v){this.hasListeners()&&(this._queuedEvents.push(v),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(R=>super.fire(R)),this._queuedEvents=[]}))}}n.MicrotaskEmitter=r;class s{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new y({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(v){const R={event:v,listener:null};this.events.push(R),this.hasListeners&&this.hook(R);const N=()=>{this.hasListeners&&this.unhook(R);const D=this.events.indexOf(R);this.events.splice(D,1)};return(0,i.toDisposable)((0,A.createSingleCallFunction)(N))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(v=>this.hook(v))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(v=>this.unhook(v))}hook(v){v.listener=v.event(R=>this.emitter.fire(R))}unhook(v){v.listener&&v.listener.dispose(),v.listener=null}dispose(){this.emitter.dispose()}}n.EventMultiplexer=s;class l{constructor(){this.buffers=[]}wrapEvent(v){return(R,N,D)=>v(x=>{const T=this.buffers[this.buffers.length-1];T?T.push(()=>R.call(N,x)):R.call(N,x)},void 0,D)}bufferEvents(v){const R=[];this.buffers.push(R);const N=v();return this.buffers.pop(),R.forEach(D=>D()),N}}n.EventBufferer=l;class _{constructor(){this.listening=!1,this.inputEvent=o.None,this.inputEventListener=i.Disposable.None,this.emitter=new y({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(v){this.inputEvent=v,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=v(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}n.Relay=_}),Y(X[38],J([0,1,9]),function(q,n,M){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CancellationTokenSource=n.CancellationToken=void 0;const A=Object.freeze(function(p,h){const o=setTimeout(p.bind(h),0);return{dispose(){clearTimeout(o)}}});var i;(function(p){function h(o){return o===p.None||o===p.Cancelled||o instanceof d?!0:!o||typeof o!="object"?!1:typeof o.isCancellationRequested=="boolean"&&typeof o.onCancellationRequested=="function"}p.isCancellationToken=h,p.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:M.Event.None}),p.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:A})})(i||(n.CancellationToken=i={}));class d{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?A:(this._emitter||(this._emitter=new M.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class b{constructor(h){this._token=void 0,this._parentListener=void 0,this._parentListener=h&&h.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new d),this._token}cancel(){this._token?this._token instanceof d&&this._token.cancel():this._token=i.Cancelled}dispose(h=!1){var o;h&&this.cancel(),(o=this._parentListener)===null||o===void 0||o.dispose(),this._token?this._token instanceof d&&this._token.dispose():this._token=i.None}}n.CancellationTokenSource=b}),Y(X[6],J([0,1,32,36]),function(q,n,M,A){"use strict";var i;Object.defineProperty(n,"__esModule",{value:!0}),n.InvisibleCharacters=n.AmbiguousCharacters=n.noBreakWhitespace=n.getLeftDeleteOffset=n.singleLetterHash=n.containsUppercaseCharacter=n.startsWithUTF8BOM=n.UTF8_BOM_CHARACTER=n.isEmojiImprecise=n.isFullWidthCharacter=n.containsUnusualLineTerminators=n.UNUSUAL_LINE_TERMINATORS=n.isBasicASCII=n.containsRTL=n.getCharContainingOffset=n.prevCharLength=n.nextCharLength=n.GraphemeIterator=n.CodePointIterator=n.getNextCodePoint=n.computeCodePoint=n.isLowSurrogate=n.isHighSurrogate=n.commonSuffixLength=n.commonPrefixLength=n.startsWithIgnoreCase=n.equalsIgnoreCase=n.isUpperAsciiLetter=n.isLowerAsciiLetter=n.isAsciiDigit=n.compareSubstringIgnoreCase=n.compareIgnoreCase=n.compareSubstring=n.compare=n.lastNonWhitespaceIndex=n.getLeadingWhitespace=n.firstNonWhitespaceIndex=n.splitLines=n.regExpLeadsToEndlessLoop=n.createRegExp=n.stripWildcards=n.convertSimple2RegExpPattern=n.rtrim=n.ltrim=n.trim=n.escapeRegExpCharacters=n.escape=n.htmlAttributeEncodeValue=n.format=n.isFalsyOrWhitespace=void 0;function d(P){return!P||typeof P!="string"?!0:P.trim().length===0}n.isFalsyOrWhitespace=d;const b=/{(\d+)}/g;function p(P,...U){return U.length===0?P:P.replace(b,function(H,$){const te=parseInt($,10);return isNaN(te)||te<0||te>=U.length?H:U[te]})}n.format=p;function h(P){return P.replace(/[<>"'&]/g,U=>{switch(U){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return U})}n.htmlAttributeEncodeValue=h;function o(P){return P.replace(/[<>&]/g,function(U){switch(U){case"<":return"<";case">":return">";case"&":return"&";default:return U}})}n.escape=o;function L(P){return P.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}n.escapeRegExpCharacters=L;function e(P,U=" "){const H=a(P,U);return u(H,U)}n.trim=e;function a(P,U){if(!P||!U)return P;const H=U.length;if(H===0||P.length===0)return P;let $=0;for(;P.indexOf(U,$)===$;)$=$+H;return P.substring($)}n.ltrim=a;function u(P,U){if(!P||!U)return P;const H=U.length,$=P.length;if(H===0||$===0)return P;let te=$,re=-1;for(;re=P.lastIndexOf(U,te-1),!(re===-1||re+H!==te);){if(re===0)return"";te=re}return P.substring(0,te)}n.rtrim=u;function c(P){return P.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}n.convertSimple2RegExpPattern=c;function m(P){return P.replace(/\*/g,"")}n.stripWildcards=m;function f(P,U,H={}){if(!P)throw new Error("Cannot create regex from empty string");U||(P=L(P)),H.wholeWord&&(/\B/.test(P.charAt(0))||(P="\\b"+P),/\B/.test(P.charAt(P.length-1))||(P=P+"\\b"));let $="";return H.global&&($+="g"),H.matchCase||($+="i"),H.multiline&&($+="m"),H.unicode&&($+="u"),new RegExp(P,$)}n.createRegExp=f;function y(P){return P.source==="^"||P.source==="^$"||P.source==="$"||P.source==="^\\s*$"?!1:!!(P.exec("")&&P.lastIndex===0)}n.regExpLeadsToEndlessLoop=y;function w(P){return P.split(/\r\n|\r|\n/)}n.splitLines=w;function E(P){for(let U=0,H=P.length;U=0;H--){const $=P.charCodeAt(H);if($!==32&&$!==9)return H}return-1}n.lastNonWhitespaceIndex=C;function r(P,U){return PU?1:0}n.compare=r;function s(P,U,H=0,$=P.length,te=0,re=U.length){for(;H<$&&teoe)return 1}const ue=$-H,ge=re-te;return uege?1:0}n.compareSubstring=s;function l(P,U){return _(P,U,0,P.length,0,U.length)}n.compareIgnoreCase=l;function _(P,U,H=0,$=P.length,te=0,re=U.length){for(;H<$&&te=128||oe>=128)return s(P.toLowerCase(),U.toLowerCase(),H,$,te,re);v(fe)&&(fe-=32),v(oe)&&(oe-=32);const he=fe-oe;if(he!==0)return he}const ue=$-H,ge=re-te;return uege?1:0}n.compareSubstringIgnoreCase=_;function g(P){return P>=48&&P<=57}n.isAsciiDigit=g;function v(P){return P>=97&&P<=122}n.isLowerAsciiLetter=v;function R(P){return P>=65&&P<=90}n.isUpperAsciiLetter=R;function N(P,U){return P.length===U.length&&_(P,U)===0}n.equalsIgnoreCase=N;function D(P,U){const H=U.length;return U.length>P.length?!1:_(P,U,0,H)===0}n.startsWithIgnoreCase=D;function x(P,U){const H=Math.min(P.length,U.length);let $;for($=0;$1){const $=P.charCodeAt(U-2);if(F($))return V($,H)}return H}class I{get offset(){return this._offset}constructor(U,H=0){this._str=U,this._len=U.length,this._offset=H}setOffset(U){this._offset=U}prevCodePoint(){const U=O(this._str,this._offset);return this._offset-=U>=65536?2:1,U}nextCodePoint(){const U=k(this._str,this._len,this._offset);return this._offset+=U>=65536?2:1,U}eol(){return this._offset>=this._len}}n.CodePointIterator=I;class W{get offset(){return this._iterator.offset}constructor(U,H=0){this._iterator=new I(U,H)}nextGraphemeLength(){const U=j.getInstance(),H=this._iterator,$=H.offset;let te=U.getGraphemeBreakType(H.nextCodePoint());for(;!H.eol();){const re=H.offset,ue=U.getGraphemeBreakType(H.nextCodePoint());if(K(te,ue)){H.setOffset(re);break}te=ue}return H.offset-$}prevGraphemeLength(){const U=j.getInstance(),H=this._iterator,$=H.offset;let te=U.getGraphemeBreakType(H.prevCodePoint());for(;H.offset>0;){const re=H.offset,ue=U.getGraphemeBreakType(H.prevCodePoint());if(K(ue,te)){H.setOffset(re);break}te=ue}return $-H.offset}eol(){return this._iterator.eol()}}n.GraphemeIterator=W;function z(P,U){return new W(P,U).nextGraphemeLength()}n.nextCharLength=z;function G(P,U){return new W(P,U).prevGraphemeLength()}n.prevCharLength=G;function t(P,U){U>0&&B(P.charCodeAt(U))&&U--;const H=U+z(P,U);return[H-G(P,H),H]}n.getCharContainingOffset=t;let se;function ce(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function me(P){return se||(se=ce()),se.test(P)}n.containsRTL=me;const ve=/^[\t\n\r\x20-\x7E]*$/;function pe(P){return ve.test(P)}n.isBasicASCII=pe,n.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function Le(P){return n.UNUSUAL_LINE_TERMINATORS.test(P)}n.containsUnusualLineTerminators=Le;function we(P){return P>=11904&&P<=55215||P>=63744&&P<=64255||P>=65281&&P<=65374}n.isFullWidthCharacter=we;function be(P){return P>=127462&&P<=127487||P===8986||P===8987||P===9200||P===9203||P>=9728&&P<=10175||P===11088||P===11093||P>=127744&&P<=128591||P>=128640&&P<=128764||P>=128992&&P<=129008||P>=129280&&P<=129535||P>=129648&&P<=129782}n.isEmojiImprecise=be,n.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function Ce(P){return!!(P&&P.length>0&&P.charCodeAt(0)===65279)}n.startsWithUTF8BOM=Ce;function Se(P,U=!1){return P?(U&&(P=P.replace(/\\./g,"")),P.toLowerCase()!==P):!1}n.containsUppercaseCharacter=Se;function ye(P){return P=P%(2*26),P<26?String.fromCharCode(97+P):String.fromCharCode(65+P-26)}n.singleLetterHash=ye;function K(P,U){return P===0?U!==5&&U!==7:P===2&&U===3?!1:P===4||P===2||P===3||U===4||U===2||U===3?!0:!(P===8&&(U===8||U===9||U===11||U===12)||(P===11||P===9)&&(U===9||U===10)||(P===12||P===10)&&U===10||U===5||U===13||U===7||P===1||P===13&&U===14||P===6&&U===6)}class j{static getInstance(){return j._INSTANCE||(j._INSTANCE=new j),j._INSTANCE}constructor(){this._data=Z()}getGraphemeBreakType(U){if(U<32)return U===10?3:U===13?2:4;if(U<127)return 0;const H=this._data,$=H.length/3;let te=1;for(;te<=$;)if(UH[3*te+1])te=2*te+1;else return H[3*te+2];return 0}}j._INSTANCE=null;function Z(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function Q(P,U){if(P===0)return 0;const H=ee(P,U);if(H!==void 0)return H;const $=new I(U,P);return $.prevCodePoint(),$.offset}n.getLeftDeleteOffset=Q;function ee(P,U){const H=new I(U,P);let $=H.prevCodePoint();for(;ne($)||$===65039||$===8419;){if(H.offset===0)return;$=H.prevCodePoint()}if(!be($))return;let te=H.offset;return te>0&&H.prevCodePoint()===8205&&(te=H.offset),te}function ne(P){return 127995<=P&&P<=127999}n.noBreakWhitespace="\xA0";class ie{static getInstance(U){return i.cache.get(Array.from(U))}static getLocales(){return i._locales.value}constructor(U){this.confusableDictionary=U}isAmbiguous(U){return this.confusableDictionary.has(U)}getPrimaryConfusable(U){return this.confusableDictionary.get(U)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}n.AmbiguousCharacters=ie,i=ie,ie.ambiguousCharacterData=new A.Lazy(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),ie.cache=new M.LRUCachedFunction(P=>{function U(oe){const he=new Map;for(let de=0;de!oe.startsWith("_")&&oe in te);re.length===0&&(re=["_default"]);let ue;for(const oe of re){const he=U(te[oe]);ue=$(ue,he)}const ge=U(te._common),fe=H(ge,ue);return new i(fe)}),ie._locales=new A.Lazy(()=>Object.keys(i.ambiguousCharacterData.value).filter(P=>!P.startsWith("_")));class ae{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(ae.getRawData())),this._data}static isInvisibleCharacter(U){return ae.getData().has(U)}static get codePoints(){return ae.getData()}}n.InvisibleCharacters=ae,ae._data=void 0}),Y(X[39],J([0,1,6]),function(q,n,M){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.StringSHA1=n.toHexString=n.stringHash=n.numberHash=n.doHash=n.hash=void 0;function A(m){return i(m,0)}n.hash=A;function i(m,f){switch(typeof m){case"object":return m===null?d(349,f):Array.isArray(m)?h(m,f):o(m,f);case"string":return p(m,f);case"boolean":return b(m,f);case"number":return d(m,f);case"undefined":return d(937,f);default:return d(617,f)}}n.doHash=i;function d(m,f){return(f<<5)-f+m|0}n.numberHash=d;function b(m,f){return d(m?433:863,f)}function p(m,f){f=d(149417,f);for(let y=0,w=m.length;yi(w,y),f)}function o(m,f){return f=d(181387,f),Object.keys(m).sort().reduce((y,w)=>(y=p(w,y),i(m[w],y)),f)}function L(m,f,y=32){const w=y-f,E=~((1<>>w)>>>0}function e(m,f=0,y=m.byteLength,w=0){for(let E=0;Ey.toString(16).padStart(2,"0")).join(""):a((m>>>0).toString(16),f/4)}n.toHexString=u;class c{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(f){const y=f.length;if(y===0)return;const w=this._buff;let E=this._buffLen,S=this._leftoverHighSurrogate,C,r;for(S!==0?(C=S,r=-1,S=0):(C=f.charCodeAt(0),r=0);;){let s=C;if(M.isHighSurrogate(C))if(r+1>>6,f[y++]=128|(w&63)>>>0):w<65536?(f[y++]=224|(w&61440)>>>12,f[y++]=128|(w&4032)>>>6,f[y++]=128|(w&63)>>>0):(f[y++]=240|(w&1835008)>>>18,f[y++]=128|(w&258048)>>>12,f[y++]=128|(w&4032)>>>6,f[y++]=128|(w&63)>>>0),y>=64&&(this._step(),y-=64,this._totalLen+=64,f[0]=f[64+0],f[1]=f[64+1],f[2]=f[64+2]),y}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),u(this._h0)+u(this._h1)+u(this._h2)+u(this._h3)+u(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,e(this._buff,this._buffLen),this._buffLen>56&&(this._step(),e(this._buff));const f=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(f/4294967296),!1),this._buffDV.setUint32(60,f%4294967296,!1),this._step()}_step(){const f=c._bigBlock32,y=this._buffDV;for(let g=0;g<64;g+=4)f.setUint32(g,y.getUint32(g,!1),!1);for(let g=64;g<320;g+=4)f.setUint32(g,L(f.getUint32(g-12,!1)^f.getUint32(g-32,!1)^f.getUint32(g-56,!1)^f.getUint32(g-64,!1),1),!1);let w=this._h0,E=this._h1,S=this._h2,C=this._h3,r=this._h4,s,l,_;for(let g=0;g<80;g++)g<20?(s=E&S|~E&C,l=1518500249):g<40?(s=E^S^C,l=1859775393):g<60?(s=E&S|E&C|S&C,l=2400959708):(s=E^S^C,l=3395469782),_=L(w,5)+s+r+l+f.getUint32(g*4,!1)&4294967295,r=C,C=S,S=L(E,30),E=w,w=_;this._h0=this._h0+w&4294967295,this._h1=this._h1+E&4294967295,this._h2=this._h2+S&4294967295,this._h3=this._h3+C&4294967295,this._h4=this._h4+r&4294967295}}n.StringSHA1=c,c._bigBlock32=new DataView(new ArrayBuffer(320))}),Y(X[24],J([0,1,34,39]),function(q,n,M,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LcsDiff=n.stringDiff=n.StringDiffSequence=void 0;class i{constructor(e){this.source=e}getElements(){const e=this.source,a=new Int32Array(e.length);for(let u=0,c=e.length;u0||this.m_modifiedCount>0)&&this.m_changes.push(new M.DiffChange(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,a){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,a),this.m_originalCount++}AddModifiedElement(e,a){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,a),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 o{constructor(e,a,u=null){this.ContinueProcessingPredicate=u,this._originalSequence=e,this._modifiedSequence=a;const[c,m,f]=o._getElements(e),[y,w,E]=o._getElements(a);this._hasStrings=f&&E,this._originalStringElements=c,this._originalElementsOrHash=m,this._modifiedStringElements=y,this._modifiedElementsOrHash=w,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const a=e.getElements();if(o._isStringArray(a)){const u=new Int32Array(a.length);for(let c=0,m=a.length;c=e&&c>=u&&this.ElementsAreEqual(a,c);)a--,c--;if(e>a||u>c){let C;return u<=c?(b.Assert(e===a+1,"originalStart should only be one more than originalEnd"),C=[new M.DiffChange(e,0,u,c-u+1)]):e<=a?(b.Assert(u===c+1,"modifiedStart should only be one more than modifiedEnd"),C=[new M.DiffChange(e,a-e+1,u,0)]):(b.Assert(e===a+1,"originalStart should only be one more than originalEnd"),b.Assert(u===c+1,"modifiedStart should only be one more than modifiedEnd"),C=[]),C}const f=[0],y=[0],w=this.ComputeRecursionPoint(e,a,u,c,f,y,m),E=f[0],S=y[0];if(w!==null)return w;if(!m[0]){const C=this.ComputeDiffRecursive(e,E,u,S,m);let r=[];return m[0]?r=[new M.DiffChange(E+1,a-(E+1)+1,S+1,c-(S+1)+1)]:r=this.ComputeDiffRecursive(E+1,a,S+1,c,m),this.ConcatenateChanges(C,r)}return[new M.DiffChange(e,a-e+1,u,c-u+1)]}WALKTRACE(e,a,u,c,m,f,y,w,E,S,C,r,s,l,_,g,v,R){let N=null,D=null,x=new h,T=a,F=u,B=s[0]-g[0]-c,V=-1073741824,k=this.m_forwardHistory.length-1;do{const O=B+e;O===T||O=0&&(E=this.m_forwardHistory[k],e=E[0],T=1,F=E.length-1)}while(--k>=-1);if(N=x.getReverseChanges(),R[0]){let O=s[0]+1,I=g[0]+1;if(N!==null&&N.length>0){const W=N[N.length-1];O=Math.max(O,W.getOriginalEnd()),I=Math.max(I,W.getModifiedEnd())}D=[new M.DiffChange(O,r-O+1,I,_-I+1)]}else{x=new h,T=f,F=y,B=s[0]-g[0]-w,V=1073741824,k=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const O=B+m;O===T||O=S[O+1]?(C=S[O+1]-1,l=C-B-w,C>V&&x.MarkNextChange(),V=C+1,x.AddOriginalElement(C+1,l+1),B=O+1-m):(C=S[O-1],l=C-B-w,C>V&&x.MarkNextChange(),V=C,x.AddModifiedElement(C+1,l+1),B=O-1-m),k>=0&&(S=this.m_reverseHistory[k],m=S[0],T=1,F=S.length-1)}while(--k>=-1);D=x.getChanges()}return this.ConcatenateChanges(N,D)}ComputeRecursionPoint(e,a,u,c,m,f,y){let w=0,E=0,S=0,C=0,r=0,s=0;e--,u--,m[0]=0,f[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const l=a-e+(c-u),_=l+1,g=new Int32Array(_),v=new Int32Array(_),R=c-u,N=a-e,D=e-u,x=a-c,F=(N-R)%2===0;g[R]=e,v[N]=a,y[0]=!1;for(let B=1;B<=l/2+1;B++){let V=0,k=0;S=this.ClipDiagonalBound(R-B,B,R,_),C=this.ClipDiagonalBound(R+B,B,R,_);for(let I=S;I<=C;I+=2){I===S||IV+k&&(V=w,k=E),!F&&Math.abs(I-N)<=B-1&&w>=v[I])return m[0]=w,f[0]=E,W<=v[I]&&1447>0&&B<=1447+1?this.WALKTRACE(R,S,C,D,N,r,s,x,g,v,w,a,m,E,c,f,F,y):null}const O=(V-e+(k-u)-B)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(V,O))return y[0]=!0,m[0]=V,f[0]=k,O>0&&1447>0&&B<=1447+1?this.WALKTRACE(R,S,C,D,N,r,s,x,g,v,w,a,m,E,c,f,F,y):(e++,u++,[new M.DiffChange(e,a-e+1,u,c-u+1)]);r=this.ClipDiagonalBound(N-B,B,N,_),s=this.ClipDiagonalBound(N+B,B,N,_);for(let I=r;I<=s;I+=2){I===r||I=v[I+1]?w=v[I+1]-1:w=v[I-1],E=w-(I-N)-x;const W=w;for(;w>e&&E>u&&this.ElementsAreEqual(w,E);)w--,E--;if(v[I]=w,F&&Math.abs(I-R)<=B&&w<=g[I])return m[0]=w,f[0]=E,W>=g[I]&&1447>0&&B<=1447+1?this.WALKTRACE(R,S,C,D,N,r,s,x,g,v,w,a,m,E,c,f,F,y):null}if(B<=1447){let I=new Int32Array(C-S+2);I[0]=R-S+1,p.Copy2(g,S,I,1,C-S+1),this.m_forwardHistory.push(I),I=new Int32Array(s-r+2),I[0]=N-r+1,p.Copy2(v,r,I,1,s-r+1),this.m_reverseHistory.push(I)}}return this.WALKTRACE(R,S,C,D,N,r,s,x,g,v,w,a,m,E,c,f,F,y)}PrettifyChanges(e){for(let a=0;a0,y=u.modifiedLength>0;for(;u.originalStart+u.originalLength=0;a--){const u=e[a];let c=0,m=0;if(a>0){const C=e[a-1];c=C.originalStart+C.originalLength,m=C.modifiedStart+C.modifiedLength}const f=u.originalLength>0,y=u.modifiedLength>0;let w=0,E=this._boundaryScore(u.originalStart,u.originalLength,u.modifiedStart,u.modifiedLength);for(let C=1;;C++){const r=u.originalStart-C,s=u.modifiedStart-C;if(rE&&(E=_,w=C)}u.originalStart-=w,u.modifiedStart-=w;const S=[null];if(a>0&&this.ChangesOverlap(e[a-1],e[a],S)){e[a-1]=S[0],e.splice(a,1),a++;continue}}if(this._hasStrings)for(let a=1,u=e.length;a0&&s>w&&(w=s,E=C,S=r)}return w>0?[E,S]:null}_contiguousSequenceScore(e,a,u){let c=0;for(let m=0;m=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,a){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(a>0){const u=e+a;if(this._OriginalIsBoundary(u-1)||this._OriginalIsBoundary(u))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,a){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(a>0){const u=e+a;if(this._ModifiedIsBoundary(u-1)||this._ModifiedIsBoundary(u))return!0}return!1}_boundaryScore(e,a,u,c){const m=this._OriginalRegionIsBoundary(e,a)?1:0,f=this._ModifiedRegionIsBoundary(u,c)?1:0;return m+f}ConcatenateChanges(e,a){const u=[];if(e.length===0||a.length===0)return a.length>0?a:e;if(this.ChangesOverlap(e[e.length-1],a[0],u)){const c=new Array(e.length+a.length-1);return p.Copy(e,0,c,0,e.length-1),c[e.length-1]=u[0],p.Copy(a,1,c,e.length,a.length-1),c}else{const c=new Array(e.length+a.length);return p.Copy(e,0,c,0,e.length),p.Copy(a,0,c,e.length,a.length),c}}ChangesOverlap(e,a,u){if(b.Assert(e.originalStart<=a.originalStart,"Left change is not less than or equal to right change"),b.Assert(e.modifiedStart<=a.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=a.originalStart||e.modifiedStart+e.modifiedLength>=a.modifiedStart){const c=e.originalStart;let m=e.originalLength;const f=e.modifiedStart;let y=e.modifiedLength;return e.originalStart+e.originalLength>=a.originalStart&&(m=a.originalStart+a.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=a.modifiedStart&&(y=a.modifiedStart+a.modifiedLength-e.modifiedStart),u[0]=new M.DiffChange(c,m,f,y),!0}else return u[0]=null,!1}ClipDiagonalBound(e,a,u,c){if(e>=0&&e"u"}n.isUndefined=h;function o(f){return!L(f)}n.isDefined=o;function L(f){return h(f)||f===null}n.isUndefinedOrNull=L;function e(f,y){if(!f)throw new Error(y?`Unexpected type, expected '${y}'`:"Unexpected type")}n.assertType=e;function a(f){if(L(f))throw new Error("Assertion Failed: argument is undefined or null");return f}n.assertIsDefined=a;function u(f){return typeof f=="function"}n.isFunction=u;function c(f,y){const w=Math.min(f.length,y.length);for(let E=0;E{c[m]=f&&typeof f=="object"?A(f):f}),c}n.deepClone=A;function i(u){if(!u||typeof u!="object")return u;const c=[u];for(;c.length>0;){const m=c.shift();Object.freeze(m);for(const f in m)if(d.call(m,f)){const y=m[f];typeof y=="object"&&!Object.isFrozen(y)&&!(0,M.isTypedArray)(y)&&c.push(y)}}return u}n.deepFreeze=i;const d=Object.prototype.hasOwnProperty;function b(u,c){return p(u,c,new Set)}n.cloneAndChange=b;function p(u,c,m){if((0,M.isUndefinedOrNull)(u))return u;const f=c(u);if(typeof f<"u")return f;if(Array.isArray(u)){const y=[];for(const w of u)y.push(p(w,c,m));return y}if((0,M.isObject)(u)){if(m.has(u))throw new Error("Cannot clone recursive data-structure");m.add(u);const y={};for(const w in u)d.call(u,w)&&(y[w]=p(u[w],c,m));return m.delete(u),y}return u}function h(u,c,m=!0){return(0,M.isObject)(u)?((0,M.isObject)(c)&&Object.keys(c).forEach(f=>{f in u?m&&((0,M.isObject)(u[f])&&(0,M.isObject)(c[f])?h(u[f],c[f],m):u[f]=c[f]):u[f]=c[f]}),u):c}n.mixin=h;function o(u,c){if(u===c)return!0;if(u==null||c===null||c===void 0||typeof u!=typeof c||typeof u!="object"||Array.isArray(u)!==Array.isArray(c))return!1;let m,f;if(Array.isArray(u)){if(u.length!==c.length)return!1;for(m=0;mfunction(){const w=Array.prototype.slice.call(arguments,0);return c(y,w)},f={};for(const y of u)f[y]=m(y);return f}n.createProxyObject=a}),Y(X[26],J([0,1]),function(q,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.toUint32=n.toUint8=void 0;function M(i){return i<0?0:i>255?255:i|0}n.toUint8=M;function A(i){return i<0?0:i>4294967295?4294967295:i|0}n.toUint32=A}),Y(X[27],J([0,1,26]),function(q,n,M){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CharacterSet=n.CharacterClassifier=void 0;class A{constructor(b){const p=(0,M.toUint8)(b);this._defaultValue=p,this._asciiMap=A._createAsciiMap(p),this._map=new Map}static _createAsciiMap(b){const p=new Uint8Array(256);return p.fill(b),p}set(b,p){const h=(0,M.toUint8)(p);b>=0&&b<256?this._asciiMap[b]=h:this._map.set(b,h)}get(b){return b>=0&&b<256?this._asciiMap[b]:this._map.get(b)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}n.CharacterClassifier=A;class i{constructor(){this._actual=new A(0)}add(b){this._actual.set(b,1)}has(b){return this._actual.get(b)===1}clear(){return this._actual.clear()}}n.CharacterSet=i}),Y(X[3],J([0,1,5]),function(q,n,M){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.OffsetRangeSet=n.OffsetRange=void 0;class A{static addRange(b,p){let h=0;for(;hp)throw new M.BugIndicatingError(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(b){return new A(this.start+b,this.endExclusive+b)}deltaStart(b){return new A(this.start+b,this.endExclusive)}deltaEnd(b){return new A(this.start,this.endExclusive+b)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(b){return this.start<=b&&b=b.endExclusive}slice(b){return b.slice(this.start,this.endExclusive)}clip(b){if(this.isEmpty)throw new M.BugIndicatingError(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,b))}clipCyclic(b){if(this.isEmpty)throw new M.BugIndicatingError(`Invalid clipping range: ${this.toString()}`);return b=this.endExclusive?this.start+(b-this.start)%this.length:b}forEach(b){for(let p=this.start;pb.toString()).join(", ")}intersectsStrict(b){let p=0;for(;pb+p.length,0)}}n.OffsetRangeSet=i}),Y(X[4],J([0,1]),function(q,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Position=void 0;class M{constructor(i,d){this.lineNumber=i,this.column=d}with(i=this.lineNumber,d=this.column){return i===this.lineNumber&&d===this.column?this:new M(i,d)}delta(i=0,d=0){return this.with(this.lineNumber+i,this.column+d)}equals(i){return M.equals(this,i)}static equals(i,d){return!i&&!d?!0:!!i&&!!d&&i.lineNumber===d.lineNumber&&i.column===d.column}isBefore(i){return M.isBefore(this,i)}static isBefore(i,d){return i.lineNumberp||d===p&&b>h?(this.startLineNumber=p,this.startColumn=h,this.endLineNumber=d,this.endColumn=b):(this.startLineNumber=d,this.startColumn=b,this.endLineNumber=p,this.endColumn=h)}isEmpty(){return A.isEmpty(this)}static isEmpty(d){return d.startLineNumber===d.endLineNumber&&d.startColumn===d.endColumn}containsPosition(d){return A.containsPosition(this,d)}static containsPosition(d,b){return!(b.lineNumberd.endLineNumber||b.lineNumber===d.startLineNumber&&b.columnd.endColumn)}static strictContainsPosition(d,b){return!(b.lineNumberd.endLineNumber||b.lineNumber===d.startLineNumber&&b.column<=d.startColumn||b.lineNumber===d.endLineNumber&&b.column>=d.endColumn)}containsRange(d){return A.containsRange(this,d)}static containsRange(d,b){return!(b.startLineNumberd.endLineNumber||b.endLineNumber>d.endLineNumber||b.startLineNumber===d.startLineNumber&&b.startColumnd.endColumn)}strictContainsRange(d){return A.strictContainsRange(this,d)}static strictContainsRange(d,b){return!(b.startLineNumberd.endLineNumber||b.endLineNumber>d.endLineNumber||b.startLineNumber===d.startLineNumber&&b.startColumn<=d.startColumn||b.endLineNumber===d.endLineNumber&&b.endColumn>=d.endColumn)}plusRange(d){return A.plusRange(this,d)}static plusRange(d,b){let p,h,o,L;return b.startLineNumberd.endLineNumber?(o=b.endLineNumber,L=b.endColumn):b.endLineNumber===d.endLineNumber?(o=b.endLineNumber,L=Math.max(b.endColumn,d.endColumn)):(o=d.endLineNumber,L=d.endColumn),new A(p,h,o,L)}intersectRanges(d){return A.intersectRanges(this,d)}static intersectRanges(d,b){let p=d.startLineNumber,h=d.startColumn,o=d.endLineNumber,L=d.endColumn;const e=b.startLineNumber,a=b.startColumn,u=b.endLineNumber,c=b.endColumn;return pu?(o=u,L=c):o===u&&(L=Math.min(L,c)),p>o||p===o&&h>L?null:new A(p,h,o,L)}equalsRange(d){return A.equalsRange(this,d)}static equalsRange(d,b){return!d&&!b?!0:!!d&&!!b&&d.startLineNumber===b.startLineNumber&&d.startColumn===b.startColumn&&d.endLineNumber===b.endLineNumber&&d.endColumn===b.endColumn}getEndPosition(){return A.getEndPosition(this)}static getEndPosition(d){return new M.Position(d.endLineNumber,d.endColumn)}getStartPosition(){return A.getStartPosition(this)}static getStartPosition(d){return new M.Position(d.startLineNumber,d.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(d,b){return new A(this.startLineNumber,this.startColumn,d,b)}setStartPosition(d,b){return new A(d,b,this.endLineNumber,this.endColumn)}collapseToStart(){return A.collapseToStart(this)}static collapseToStart(d){return new A(d.startLineNumber,d.startColumn,d.startLineNumber,d.startColumn)}collapseToEnd(){return A.collapseToEnd(this)}static collapseToEnd(d){return new A(d.endLineNumber,d.endColumn,d.endLineNumber,d.endColumn)}delta(d){return new A(this.startLineNumber+d,this.startColumn,this.endLineNumber+d,this.endColumn)}static fromPositions(d,b=d){return new A(d.lineNumber,d.column,b.lineNumber,b.column)}static lift(d){return d?new A(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn):null}static isIRange(d){return d&&typeof d.startLineNumber=="number"&&typeof d.startColumn=="number"&&typeof d.endLineNumber=="number"&&typeof d.endColumn=="number"}static areIntersectingOrTouching(d,b){return!(d.endLineNumberd.startLineNumber}toJSON(){return this}}n.Range=A}),Y(X[10],J([0,1,5,3,2,11]),function(q,n,M,A,i,d){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LineRangeSet=n.LineRange=void 0;class b{static fromRangeInclusive(o){return new b(o.startLineNumber,o.endLineNumber+1)}static joinMany(o){if(o.length===0)return[];let L=new p(o[0].slice());for(let e=1;eL)throw new M.BugIndicatingError(`startLineNumber ${o} cannot be after endLineNumberExclusive ${L}`);this.startLineNumber=o,this.endLineNumberExclusive=L}contains(o){return this.startLineNumber<=o&&oa.endLineNumberExclusive>=o.startLineNumber),e=(0,d.findLastIdxMonotonous)(this._normalizedRanges,a=>a.startLineNumber<=o.endLineNumberExclusive)+1;if(L===e)this._normalizedRanges.splice(L,0,o);else if(L===e-1){const a=this._normalizedRanges[L];this._normalizedRanges[L]=a.join(o)}else{const a=this._normalizedRanges[L].join(this._normalizedRanges[e-1]).join(o);this._normalizedRanges.splice(L,e-L,a)}}contains(o){const L=(0,d.findLastMonotonous)(this._normalizedRanges,e=>e.startLineNumber<=o);return!!L&&L.endLineNumberExclusive>o}intersects(o){const L=(0,d.findLastMonotonous)(this._normalizedRanges,e=>e.startLineNumbero.startLineNumber}getUnion(o){if(this._normalizedRanges.length===0)return o;if(o._normalizedRanges.length===0)return this;const L=[];let e=0,a=0,u=null;for(;e=c.startLineNumber?u=new b(u.startLineNumber,Math.max(u.endLineNumberExclusive,c.endLineNumberExclusive)):(L.push(u),u=c)}return u!==null&&L.push(u),new p(L)}subtractFrom(o){const L=(0,d.findFirstIdxMonotonousOrArrLen)(this._normalizedRanges,c=>c.endLineNumberExclusive>=o.startLineNumber),e=(0,d.findLastIdxMonotonous)(this._normalizedRanges,c=>c.startLineNumber<=o.endLineNumberExclusive)+1;if(L===e)return new p([o]);const a=[];let u=o.startLineNumber;for(let c=L;cu&&a.push(new b(u,m.startLineNumber)),u=m.endLineNumberExclusive}return uo.toString()).join(", ")}getIntersection(o){const L=[];let e=0,a=0;for(;eL.delta(o)))}}n.LineRangeSet=p}),Y(X[41],J([0,1,4,2]),function(q,n,M,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Selection=void 0;class i extends A.Range{constructor(b,p,h,o){super(b,p,h,o),this.selectionStartLineNumber=b,this.selectionStartColumn=p,this.positionLineNumber=h,this.positionColumn=o}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(b){return i.selectionsEqual(this,b)}static selectionsEqual(b,p){return b.selectionStartLineNumber===p.selectionStartLineNumber&&b.selectionStartColumn===p.selectionStartColumn&&b.positionLineNumber===p.positionLineNumber&&b.positionColumn===p.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(b,p){return this.getDirection()===0?new i(this.startLineNumber,this.startColumn,b,p):new i(b,p,this.startLineNumber,this.startColumn)}getPosition(){return new M.Position(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new M.Position(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(b,p){return this.getDirection()===0?new i(b,p,this.endLineNumber,this.endColumn):new i(this.endLineNumber,this.endColumn,b,p)}static fromPositions(b,p=b){return new i(b.lineNumber,b.column,p.lineNumber,p.column)}static fromRange(b,p){return p===0?new i(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):new i(b.endLineNumber,b.endColumn,b.startLineNumber,b.startColumn)}static liftSelection(b){return new i(b.selectionStartLineNumber,b.selectionStartColumn,b.positionLineNumber,b.positionColumn)}static selectionsArrEqual(b,p){if(b&&!p||!b&&p)return!1;if(!b&&!p)return!0;if(b.length!==p.length)return!1;for(let h=0,o=b.length;h(b.hasOwnProperty(p)||(b[p]=d(p)),b[p])}n.getMapForWordSeparators=i(d=>new A(d))}),Y(X[28],J([0,1,21,22]),function(q,n,M,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getWordAtText=n.ensureValidWordDefinition=n.DEFAULT_WORD_REGEXP=n.USUAL_WORD_SEPARATORS=void 0,n.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function i(o=""){let L="(-?\\d*\\.\\d\\w*)|([^";for(const e of n.USUAL_WORD_SEPARATORS)o.indexOf(e)>=0||(L+="\\"+e);return L+="\\s]+)",new RegExp(L,"g")}n.DEFAULT_WORD_REGEXP=i();function d(o){let L=n.DEFAULT_WORD_REGEXP;if(o&&o instanceof RegExp)if(o.global)L=o;else{let e="g";o.ignoreCase&&(e+="i"),o.multiline&&(e+="m"),o.unicode&&(e+="u"),L=new RegExp(o.source,e)}return L.lastIndex=0,L}n.ensureValidWordDefinition=d;const b=new A.LinkedList;b.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function p(o,L,e,a,u){if(L=d(L),u||(u=M.Iterable.first(b)),e.length>u.maxLen){let w=o-u.maxLen/2;return w<0?w=0:a+=w,e=e.substring(w,o+u.maxLen/2),p(o,L,e,a,u)}const c=Date.now(),m=o-1-a;let f=-1,y=null;for(let w=1;!(Date.now()-c>=u.timeBudget);w++){const E=m-u.windowSize*w;L.lastIndex=Math.max(0,E);const S=h(L,e,m,f);if(!S&&y||(y=S,E<=0))break;f=E}if(y){const w={word:y[0],startColumn:a+1+y.index,endColumn:a+1+y.index+y[0].length};return L.lastIndex=0,w}return null}n.getWordAtText=p;function h(o,L,e,a){let u;for(;u=o.exec(L);){const c=u.index||0;if(c<=e&&o.lastIndex>=e)return u;if(a>0&&c>a)return null}return null}}),Y(X[8],J([0,1,7,5,3]),function(q,n,M,A,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DateTimeout=n.InfiniteTimeout=n.OffsetPair=n.SequenceDiff=n.DiffAlgorithmResult=void 0;class d{static trivial(e,a){return new d([new b(i.OffsetRange.ofLength(e.length),i.OffsetRange.ofLength(a.length))],!1)}static trivialTimedOut(e,a){return new d([new b(i.OffsetRange.ofLength(e.length),i.OffsetRange.ofLength(a.length))],!0)}constructor(e,a){this.diffs=e,this.hitTimeout=a}}n.DiffAlgorithmResult=d;class b{static invert(e,a){const u=[];return(0,M.forEachAdjacent)(e,(c,m)=>{u.push(b.fromOffsetPairs(c?c.getEndExclusives():p.zero,m?m.getStarts():new p(a,(c?c.seq2Range.endExclusive-c.seq1Range.endExclusive:0)+a)))}),u}static fromOffsetPairs(e,a){return new b(new i.OffsetRange(e.offset1,a.offset1),new i.OffsetRange(e.offset2,a.offset2))}constructor(e,a){this.seq1Range=e,this.seq2Range=a}swap(){return new b(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new b(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new b(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return e===0?this:new b(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return e===0?this:new b(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const a=this.seq1Range.intersect(e.seq1Range),u=this.seq2Range.intersect(e.seq2Range);if(!(!a||!u))return new b(a,u)}getStarts(){return new p(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new p(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}n.SequenceDiff=b;class p{constructor(e,a){this.offset1=e,this.offset2=a}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return e===0?this:new p(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}n.OffsetPair=p,p.zero=new p(0,0),p.max=new p(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class h{isValid(){return!0}}n.InfiniteTimeout=h,h.instance=new h;class o{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new A.BugIndicatingError("timeout must be positive")}isValid(){if(!(Date.now()-this.startTimea.length||N>u.length)continue;const D=c(R,N);f.set(w,D);const x=R===g?y.get(w+1):y.get(w-1);if(y.set(w,D!==R?new d(x,R,N,D-R):x),f.get(w)===a.length&&f.get(w)-w===u.length)break e}}let E=y.get(w);const S=[];let C=a.length,r=u.length;for(;;){const s=E?E.x+E.length:0,l=E?E.y+E.length:0;if((s!==C||l!==r)&&S.push(new A.SequenceDiff(new M.OffsetRange(s,C),new M.OffsetRange(l,r))),!E)break;C=E.x,r=E.y,E=E.prev}return S.reverse(),new A.DiffAlgorithmResult(S,!1)}}n.MyersDiffAlgorithm=i;class d{constructor(o,L,e,a){this.prev=o,this.x=L,this.y=e,this.length=a}}class b{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(o){return o<0?(o=-o-1,this.negativeArr[o]):this.positiveArr[o]}set(o,L){if(o<0){if(o=-o-1,o>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(e.length*2),this.negativeArr.set(e)}this.negativeArr[o]=L}else{if(o>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(e.length*2),this.positiveArr.set(e)}this.positiveArr[o]=L}}}class p{constructor(){this.positiveArr=[],this.negativeArr=[]}get(o){return o<0?(o=-o-1,this.negativeArr[o]):this.positiveArr[o]}set(o,L){o<0?(o=-o-1,this.negativeArr[o]=L):this.positiveArr[o]=L}}}),Y(X[43],J([0,1,7,3,8]),function(q,n,M,A,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.removeVeryShortMatchingTextBetweenLongDiffs=n.removeVeryShortMatchingLinesBetweenDiffs=n.extendDiffsToEntireWordIfAppropriate=n.removeShortMatches=n.optimizeSequenceDiffs=void 0;function d(c,m,f){let y=f;return y=b(c,m,y),y=b(c,m,y),y=p(c,m,y),y}n.optimizeSequenceDiffs=d;function b(c,m,f){if(f.length===0)return f;const y=[];y.push(f[0]);for(let E=1;E0&&(C=C.delta(s))}w.push(C)}return y.length>0&&w.push(y[y.length-1]),w}function p(c,m,f){if(!c.getBoundaryScore||!m.getBoundaryScore)return f;for(let y=0;y0?f[y-1]:void 0,E=f[y],S=y+1=y.start&&c.seq2Range.start-S>=w.start&&f.isStronglyEqual(c.seq2Range.start-S,c.seq2Range.endExclusive-S)&&S<100;)S++;S--;let C=0;for(;c.seq1Range.start+Cs&&(s=R,r=l)}return c.delta(r)}function o(c,m,f){const y=[];for(const w of f){const E=y[y.length-1];if(!E){y.push(w);continue}w.seq1Range.start-E.seq1Range.endExclusive<=2||w.seq2Range.start-E.seq2Range.endExclusive<=2?y[y.length-1]=new i.SequenceDiff(E.seq1Range.join(w.seq1Range),E.seq2Range.join(w.seq2Range)):y.push(w)}return y}n.removeShortMatches=o;function L(c,m,f){const y=i.SequenceDiff.invert(f,c.length),w=[];let E=new i.OffsetPair(0,0);function S(r,s){if(r.offset10;){const D=y[0];if(!(D.seq1Range.intersects(l)||D.seq2Range.intersects(_)))break;const T=c.findWordContaining(D.seq1Range.start),F=m.findWordContaining(D.seq2Range.start),B=new i.SequenceDiff(T,F),V=B.intersect(D);if(R+=V.seq1Range.length,N+=V.seq2Range.length,g=g.join(B),g.seq1Range.endExclusive>=D.seq1Range.endExclusive)y.shift();else break}R+N<(g.seq1Range.length+g.seq2Range.length)*2/3&&w.push(g),E=g.getEndExclusives()}for(;y.length>0;){const r=y.shift();r.seq1Range.isEmpty||(S(r.getStarts(),r),S(r.getEndExclusives().delta(-1),r))}return e(f,w)}n.extendDiffsToEntireWordIfAppropriate=L;function e(c,m){const f=[];for(;c.length>0||m.length>0;){const y=c[0],w=m[0];let E;y&&(!w||y.seq1Range.start0&&f[f.length-1].seq1Range.endExclusive>=E.seq1Range.start?f[f.length-1]=f[f.length-1].join(E):f.push(E)}return f}function a(c,m,f){let y=f;if(y.length===0)return y;let w=0,E;do{E=!1;const S=[y[0]];for(let C=1;C5||v.seq1Range.length+v.seq2Range.length>5)};const r=y[C],s=S[S.length-1];l(s,r)?(E=!0,S[S.length-1]=S[S.length-1].join(r)):S.push(r)}y=S}while(w++<10&&E);return y}n.removeVeryShortMatchingLinesBetweenDiffs=a;function u(c,m,f){let y=f;if(y.length===0)return y;let w=0,E;do{E=!1;const C=[y[0]];for(let r=1;r5||N.length>500)return!1;const x=c.getText(N).trim();if(x.length>20||x.split(/\r\n|\r|\n/).length>1)return!1;const T=c.countLinesIn(v.seq1Range),F=v.seq1Range.length,B=m.countLinesIn(v.seq2Range),V=v.seq2Range.length,k=c.countLinesIn(R.seq1Range),O=R.seq1Range.length,I=m.countLinesIn(R.seq2Range),W=R.seq2Range.length,z=2*40+50;function G(t){return Math.min(t,z)}return Math.pow(Math.pow(G(T*40+F),1.5)+Math.pow(G(B*40+V),1.5),1.5)+Math.pow(Math.pow(G(k*40+O),1.5)+Math.pow(G(I*40+W),1.5),1.5)>(z**1.5)**1.5*1.3};const s=y[r],l=C[C.length-1];_(l,s)?(E=!0,C[C.length-1]=C[C.length-1].join(s)):C.push(s)}y=C}while(w++<10&&E);const S=[];return(0,M.forEachWithNeighbors)(y,(C,r,s)=>{let l=r;function _(x){return x.length>0&&x.trim().length<=3&&r.seq1Range.length+r.seq2Range.length>100}const g=c.extendToFullLines(r.seq1Range),v=c.getText(new A.OffsetRange(g.start,r.seq1Range.start));_(v)&&(l=l.deltaStart(-v.length));const R=c.getText(new A.OffsetRange(r.seq1Range.endExclusive,g.endExclusive));_(R)&&(l=l.deltaEnd(R.length));const N=i.SequenceDiff.fromOffsetPairs(C?C.getEndExclusives():i.OffsetPair.zero,s?s.getStarts():i.OffsetPair.max),D=l.intersect(N);S.length>0&&D.getStarts().equals(S[S.length-1].getEndExclusives())?S[S.length-1]=S[S.length-1].join(D):S.push(D)}),S}n.removeVeryShortMatchingTextBetweenLongDiffs=u}),Y(X[44],J([0,1]),function(q,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LineSequence=void 0;class M{constructor(d,b){this.trimmedHash=d,this.lines=b}getElement(d){return this.trimmedHash[d]}get length(){return this.trimmedHash.length}getBoundaryScore(d){const b=d===0?0:A(this.lines[d-1]),p=d===this.lines.length?0:A(this.lines[d]);return 1e3-(b+p)}getText(d){return this.lines.slice(d.start,d.endExclusive).join(` `)}isStronglyEqual(d,b){return this.lines[d]===this.lines[b]}}n.LineSequence=M;function A(i){let d=0;for(;d0&&C>0&&a.get(S-1,C-1)===3&&(l+=u.get(S-1,C-1)),l+=L?L(S,C):1):l=-1;const _=Math.max(r,s,l);if(_===l){const g=S>0&&C>0?u.get(S-1,C-1):0;u.set(S,C,g+1),a.set(S,C,3)}else _===r?(u.set(S,C,0),a.set(S,C,1)):_===s&&(u.set(S,C,0),a.set(S,C,2));e.set(S,C,_)}const c=[];let m=p.length,f=h.length;function y(S,C){(S+1!==m||C+1!==f)&&c.push(new A.SequenceDiff(new M.OffsetRange(S+1,m),new M.OffsetRange(C+1,f))),m=S,f=C}let w=p.length-1,E=h.length-1;for(;w>=0&&E>=0;)a.get(w,E)===3?(y(w,E),w--,E--):a.get(w,E)===1?w--:E--;return y(-1,-1),c.reverse(),new A.DiffAlgorithmResult(c,!1)}}n.DynamicProgrammingDiffing=d}),Y(X[30],J([0,1,11,3,4,2,15]),function(q,n,M,A,i,d,b){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinesSliceCharSequence=void 0;class p{constructor(u,c,m){this.lines=u,this.considerWhitespaceChanges=m,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let f=!1;c.start>0&&c.endExclusive>=u.length&&(c=new A.OffsetRange(c.start-1,c.endExclusive),f=!0),this.lineRange=c,this.firstCharOffsetByLine[0]=0;for(let y=this.lineRange.start;yString.fromCharCode(c)).join("")}getElement(u){return this.elements[u]}get length(){return this.elements.length}getBoundaryScore(u){const c=e(u>0?this.elements[u-1]:-1),m=e(um<=u);return new i.Position(this.lineRange.start+c+1,u-this.firstCharOffsetByLine[c]+this.additionalOffsetByLine[c]+1)}translateRange(u){return d.Range.fromPositions(this.translateOffset(u.start),this.translateOffset(u.endExclusive))}findWordContaining(u){if(u<0||u>=this.elements.length||!h(this.elements[u]))return;let c=u;for(;c>0&&h(this.elements[c-1]);)c--;let m=u;for(;mw<=u.start))!==null&&c!==void 0?c:0,y=(m=(0,M.findFirstMonotonous)(this.firstCharOffsetByLine,w=>u.endExclusive<=w))!==null&&m!==void 0?m:this.elements.length;return new A.OffsetRange(f,y)}}n.LinesSliceCharSequence=p;function h(a){return a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57}const o={[0]:0,[1]:0,[2]:0,[3]:10,[4]:2,[5]:30,[6]:3,[7]:10,[8]:10};function L(a){return o[a]}function e(a){return a===10?8:a===13?7:(0,b.isSpace)(a)?6:a>=97&&a<=122?0:a>=65&&a<=90?1:a>=48&&a<=57?2:a===-1?3:a===44||a===59?5:4}}),Y(X[31],J([0,1]),function(q,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MovedText=n.LinesDiff=void 0;class M{constructor(d,b,p){this.changes=d,this.moves=b,this.hitTimeout=p}}n.LinesDiff=M;class A{constructor(d,b){this.lineRangeMapping=d,this.changes=b}}n.MovedText=A}),Y(X[16],J([0,1,10]),function(q,n,M){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.RangeMapping=n.DetailedLineRangeMapping=n.LineRangeMapping=void 0;class A{static inverse(p,h,o){const L=[];let e=1,a=1;for(const c of p){const m=new A(new M.LineRange(e,c.original.startLineNumber),new M.LineRange(a,c.modified.startLineNumber));m.modified.isEmpty||L.push(m),e=c.original.endLineNumberExclusive,a=c.modified.endLineNumberExclusive}const u=new A(new M.LineRange(e,h+1),new M.LineRange(a,o+1));return u.modified.isEmpty||L.push(u),L}static clip(p,h,o){const L=[];for(const e of p){const a=e.original.intersect(h),u=e.modified.intersect(o);a&&!a.isEmpty&&u&&!u.isEmpty&&L.push(new A(a,u))}return L}constructor(p,h){this.original=p,this.modified=h}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new A(this.modified,this.original)}join(p){return new A(this.original.join(p.original),this.modified.join(p.modified))}}n.LineRangeMapping=A;class i extends A{constructor(p,h,o){super(p,h),this.innerChanges=o}flip(){var p;return new i(this.modified,this.original,(p=this.innerChanges)===null||p===void 0?void 0:p.map(h=>h.flip()))}}n.DetailedLineRangeMapping=i;class d{constructor(p,h){this.originalRange=p,this.modifiedRange=h}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new d(this.modifiedRange,this.originalRange)}}n.RangeMapping=d}),Y(X[46],J([0,1,8,16,7,11,37,10,3,30,15,29]),function(q,n,M,A,i,d,b,p,h,o,L,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.computeMovedLines=void 0;function a(E,S,C,r,s,l){let{moves:_,excludedChanges:g}=c(E,S,C,l);if(!l.isValid())return[];const v=E.filter(N=>!g.has(N)),R=m(v,r,s,S,C,l);return(0,i.pushMany)(_,R),_=y(_),_=_.filter(N=>{const D=N.original.toOffsetRange().slice(S).map(T=>T.trim());return D.join(` `).length>=15&&u(D,T=>T.length>=2)>=2}),_=w(E,_),_}n.computeMovedLines=a;function u(E,S){let C=0;for(const r of E)S(r)&&C++;return C}function c(E,S,C,r){const s=[],l=E.filter(v=>v.modified.isEmpty&&v.original.length>=3).map(v=>new L.LineRangeFragment(v.original,S,v)),_=new Set(E.filter(v=>v.original.isEmpty&&v.modified.length>=3).map(v=>new L.LineRangeFragment(v.modified,C,v))),g=new Set;for(const v of l){let R=-1,N;for(const D of _){const x=v.computeSimilarity(D);x>R&&(R=x,N=D)}if(R>.9&&N&&(_.delete(N),s.push(new A.LineRangeMapping(v.range,N.range)),g.add(v.source),g.add(N.source)),!r.isValid())return{moves:s,excludedChanges:g}}return{moves:s,excludedChanges:g}}function m(E,S,C,r,s,l){const _=[],g=new b.SetMap;for(const x of E)for(let T=x.original.startLineNumber;Tx.modified.startLineNumber,i.numberComparator));for(const x of E){let T=[];for(let F=x.modified.startLineNumber;F{for(const W of T)if(W.originalLineRange.endLineNumberExclusive+1===O.endLineNumberExclusive&&W.modifiedLineRange.endLineNumberExclusive+1===V.endLineNumberExclusive){W.originalLineRange=new p.LineRange(W.originalLineRange.startLineNumber,O.endLineNumberExclusive),W.modifiedLineRange=new p.LineRange(W.modifiedLineRange.startLineNumber,V.endLineNumberExclusive),k.push(W);return}const I={modifiedLineRange:V,originalLineRange:O};v.push(I),k.push(I)}),T=k}if(!l.isValid())return[]}v.sort((0,i.reverseOrder)((0,i.compareBy)(x=>x.modifiedLineRange.length,i.numberComparator)));const R=new p.LineRangeSet,N=new p.LineRangeSet;for(const x of v){const T=x.modifiedLineRange.startLineNumber-x.originalLineRange.startLineNumber,F=R.subtractFrom(x.modifiedLineRange),B=N.subtractFrom(x.originalLineRange).getWithDelta(T),V=F.getIntersection(B);for(const k of V.ranges){if(k.length<3)continue;const O=k,I=k.delta(-T);_.push(new A.LineRangeMapping(I,O)),R.addRange(O),N.addRange(I)}}_.sort((0,i.compareBy)(x=>x.original.startLineNumber,i.numberComparator));const D=new d.MonotonousArray(E);for(let x=0;x<_.length;x++){const T=_[x],F=D.findLastMonotonous(G=>G.original.startLineNumber<=T.original.startLineNumber),B=(0,d.findLastMonotonous)(E,G=>G.modified.startLineNumber<=T.modified.startLineNumber),V=Math.max(T.original.startLineNumber-F.original.startLineNumber,T.modified.startLineNumber-B.modified.startLineNumber),k=D.findLastMonotonous(G=>G.original.startLineNumberG.modified.startLineNumberr.length||t>s.length||R.contains(t)||N.contains(G)||!f(r[G-1],s[t-1],l))break}W>0&&(N.addRange(new p.LineRange(T.original.startLineNumber-W,T.original.startLineNumber)),R.addRange(new p.LineRange(T.modified.startLineNumber-W,T.modified.startLineNumber)));let z;for(z=0;zr.length||t>s.length||R.contains(t)||N.contains(G)||!f(r[G-1],s[t-1],l))break}z>0&&(N.addRange(new p.LineRange(T.original.endLineNumberExclusive,T.original.endLineNumberExclusive+z)),R.addRange(new p.LineRange(T.modified.endLineNumberExclusive,T.modified.endLineNumberExclusive+z))),(W>0||z>0)&&(_[x]=new A.LineRangeMapping(new p.LineRange(T.original.startLineNumber-W,T.original.endLineNumberExclusive+z),new p.LineRange(T.modified.startLineNumber-W,T.modified.endLineNumberExclusive+z)))}return _}function f(E,S,C){if(E.trim()===S.trim())return!0;if(E.length>300&&S.length>300)return!1;const s=new e.MyersDiffAlgorithm().compute(new o.LinesSliceCharSequence([E],new h.OffsetRange(0,1),!1),new o.LinesSliceCharSequence([S],new h.OffsetRange(0,1),!1),C);let l=0;const _=M.SequenceDiff.invert(s.diffs,E.length);for(const N of _)N.seq1Range.forEach(D=>{(0,L.isSpace)(E.charCodeAt(D))||l++});function g(N){let D=0;for(let x=0;xS.length?E:S);return l/v>.6&&v>10}function y(E){if(E.length===0)return E;E.sort((0,i.compareBy)(C=>C.original.startLineNumber,i.numberComparator));const S=[E[0]];for(let C=1;C=0&&_>=0&&l+_<=2){S[S.length-1]=r.join(s);continue}S.push(s)}return S}function w(E,S){const C=new d.MonotonousArray(E);return S=S.filter(r=>{const s=C.findLastMonotonous(g=>g.original.startLineNumberg.modified.startLineNumberz===G))return new a.LinesDiff([],[],!1);if(S.length===1&&S[0].length===0||C.length===1&&C[0].length===0)return new a.LinesDiff([new u.DetailedLineRangeMapping(new i.LineRange(1,S.length+1),new i.LineRange(1,C.length+1),[new u.RangeMapping(new b.Range(1,1,S.length,S[0].length+1),new b.Range(1,1,C.length,C[0].length+1))])],[],!1);const s=r.maxComputationTimeMs===0?p.InfiniteTimeout.instance:new p.DateTimeout(r.maxComputationTimeMs),l=!r.ignoreTrimWhitespace,_=new Map;function g(z){let G=_.get(z);return G===void 0&&(G=_.size,_.set(z,G)),G}const v=S.map(z=>g(z.trim())),R=C.map(z=>g(z.trim())),N=new m.LineSequence(v,S),D=new m.LineSequence(R,C),x=(()=>N.length+D.length<1700?this.dynamicProgrammingDiffing.compute(N,D,s,(z,G)=>S[z]===C[G]?C[G].length===0?.1:1+Math.log(1+C[G].length):.99):this.myersDiffingAlgorithm.compute(N,D))();let T=x.diffs,F=x.hitTimeout;T=(0,e.optimizeSequenceDiffs)(N,D,T),T=(0,e.removeVeryShortMatchingLinesBetweenDiffs)(N,D,T);const B=[],V=z=>{if(l)for(let G=0;Gz.seq1Range.start-k===z.seq2Range.start-O);const G=z.seq1Range.start-k;V(G),k=z.seq1Range.endExclusive,O=z.seq2Range.endExclusive;const t=this.refineDiff(S,C,z,s,l);t.hitTimeout&&(F=!0);for(const se of t.mappings)B.push(se)}V(S.length-k);const I=y(B,S,C);let W=[];return r.computeMoves&&(W=this.computeMoves(I,S,C,v,R,s,l)),(0,A.assertFn)(()=>{function z(t,se){if(t.lineNumber<1||t.lineNumber>se.length)return!1;const ce=se[t.lineNumber-1];return!(t.column<1||t.column>ce.length+1)}function G(t,se){return!(t.startLineNumber<1||t.startLineNumber>se.length+1||t.endLineNumberExclusive<1||t.endLineNumberExclusive>se.length+1)}for(const t of I){if(!t.innerChanges)return!1;for(const se of t.innerChanges)if(!(z(se.modifiedRange.getStartPosition(),C)&&z(se.modifiedRange.getEndPosition(),C)&&z(se.originalRange.getStartPosition(),S)&&z(se.originalRange.getEndPosition(),S)))return!1;if(!G(t.modified,C)||!G(t.original,S))return!1}return!0}),new a.LinesDiff(I,W,F)}computeMoves(S,C,r,s,l,_,g){return(0,L.computeMovedLines)(S,C,r,s,l,_).map(N=>{const D=this.refineDiff(C,r,new p.SequenceDiff(N.original.toOffsetRange(),N.modified.toOffsetRange()),_,g),x=y(D.mappings,C,r,!0);return new a.MovedText(N,x)})}refineDiff(S,C,r,s,l){const _=new c.LinesSliceCharSequence(S,r.seq1Range,l),g=new c.LinesSliceCharSequence(C,r.seq2Range,l),v=_.length+g.length<500?this.dynamicProgrammingDiffing.compute(_,g,s):this.myersDiffingAlgorithm.compute(_,g,s);let R=v.diffs;return R=(0,e.optimizeSequenceDiffs)(_,g,R),R=(0,e.extendDiffsToEntireWordIfAppropriate)(_,g,R),R=(0,e.removeShortMatches)(_,g,R),R=(0,e.removeVeryShortMatchingTextBetweenLongDiffs)(_,g,R),{mappings:R.map(D=>new u.RangeMapping(_.translateRange(D.seq1Range),g.translateRange(D.seq2Range))),hitTimeout:v.hitTimeout}}}n.DefaultLinesDiffComputer=f;function y(E,S,C,r=!1){const s=[];for(const l of(0,M.groupAdjacentBy)(E.map(_=>w(_,S,C)),(_,g)=>_.original.overlapOrTouch(g.original)||_.modified.overlapOrTouch(g.modified))){const _=l[0],g=l[l.length-1];s.push(new u.DetailedLineRangeMapping(_.original.join(g.original),_.modified.join(g.modified),l.map(v=>v.innerChanges[0])))}return(0,A.assertFn)(()=>!r&&s.length>0&&s[0].original.startLineNumber!==s[0].modified.startLineNumber?!1:(0,A.checkAdjacentItems)(s,(l,_)=>_.original.startLineNumber-l.original.endLineNumberExclusive===_.modified.startLineNumber-l.modified.endLineNumberExclusive&&l.original.endLineNumberExclusive<_.original.startLineNumber&&l.modified.endLineNumberExclusive<_.modified.startLineNumber)),s}n.lineRangeMappingFromRangeMappings=y;function w(E,S,C){let r=0,s=0;E.modifiedRange.endColumn===1&&E.originalRange.endColumn===1&&E.originalRange.startLineNumber+r<=E.originalRange.endLineNumber&&E.modifiedRange.startLineNumber+r<=E.modifiedRange.endLineNumber&&(s=-1),E.modifiedRange.startColumn-1>=C[E.modifiedRange.startLineNumber-1].length&&E.originalRange.startColumn-1>=S[E.originalRange.startLineNumber-1].length&&E.originalRange.startLineNumber<=E.originalRange.endLineNumber+s&&E.modifiedRange.startLineNumber<=E.modifiedRange.endLineNumber+s&&(r=1);const l=new i.LineRange(E.originalRange.startLineNumber+r,E.originalRange.endLineNumber+1+s),_=new i.LineRange(E.modifiedRange.startLineNumber+r,E.modifiedRange.endLineNumber+1+s);return new u.DetailedLineRangeMapping(l,_,[E])}n.getLineRangeMapping=w}),Y(X[48],J([0,1,24,31,16,6,2,12,10]),function(q,n,M,A,i,d,b,p,h){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DiffComputer=n.LegacyLinesDiffComputer=void 0;const o=3;class L{computeDiff(r,s,l){var _;const v=new y(r,s,{maxComputationTime:l.maxComputationTimeMs,shouldIgnoreTrimWhitespace:l.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),R=[];let N=null;for(const D of v.changes){let x;D.originalEndLineNumber===0?x=new h.LineRange(D.originalStartLineNumber+1,D.originalStartLineNumber+1):x=new h.LineRange(D.originalStartLineNumber,D.originalEndLineNumber+1);let T;D.modifiedEndLineNumber===0?T=new h.LineRange(D.modifiedStartLineNumber+1,D.modifiedStartLineNumber+1):T=new h.LineRange(D.modifiedStartLineNumber,D.modifiedEndLineNumber+1);let F=new i.DetailedLineRangeMapping(x,T,(_=D.charChanges)===null||_===void 0?void 0:_.map(B=>new i.RangeMapping(new b.Range(B.originalStartLineNumber,B.originalStartColumn,B.originalEndLineNumber,B.originalEndColumn),new b.Range(B.modifiedStartLineNumber,B.modifiedStartColumn,B.modifiedEndLineNumber,B.modifiedEndColumn))));N&&(N.modified.endLineNumberExclusive===F.modified.startLineNumber||N.original.endLineNumberExclusive===F.original.startLineNumber)&&(F=new i.DetailedLineRangeMapping(N.original.join(F.original),N.modified.join(F.modified),N.innerChanges&&F.innerChanges?N.innerChanges.concat(F.innerChanges):void 0),R.pop()),R.push(F),N=F}return(0,p.assertFn)(()=>(0,p.checkAdjacentItems)(R,(D,x)=>x.original.startLineNumber-D.original.endLineNumberExclusive===x.modified.startLineNumber-D.modified.endLineNumberExclusive&&D.original.endLineNumberExclusive(r===10?"\\n":String.fromCharCode(r))+`-(${this._lineNumbers[s]},${this._columns[s]})`).join(", ")+"]"}_assertIndex(r,s){if(r<0||r>=s.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(r){return r>0&&r===this._lineNumbers.length?this.getEndLineNumber(r-1):(this._assertIndex(r,this._lineNumbers),this._lineNumbers[r])}getEndLineNumber(r){return r===-1?this.getStartLineNumber(r+1):(this._assertIndex(r,this._lineNumbers),this._charCodes[r]===10?this._lineNumbers[r]+1:this._lineNumbers[r])}getStartColumn(r){return r>0&&r===this._columns.length?this.getEndColumn(r-1):(this._assertIndex(r,this._columns),this._columns[r])}getEndColumn(r){return r===-1?this.getStartColumn(r+1):(this._assertIndex(r,this._columns),this._charCodes[r]===10?1:this._columns[r]+1)}}class c{constructor(r,s,l,_,g,v,R,N){this.originalStartLineNumber=r,this.originalStartColumn=s,this.originalEndLineNumber=l,this.originalEndColumn=_,this.modifiedStartLineNumber=g,this.modifiedStartColumn=v,this.modifiedEndLineNumber=R,this.modifiedEndColumn=N}static createFromDiffChange(r,s,l){const _=s.getStartLineNumber(r.originalStart),g=s.getStartColumn(r.originalStart),v=s.getEndLineNumber(r.originalStart+r.originalLength-1),R=s.getEndColumn(r.originalStart+r.originalLength-1),N=l.getStartLineNumber(r.modifiedStart),D=l.getStartColumn(r.modifiedStart),x=l.getEndLineNumber(r.modifiedStart+r.modifiedLength-1),T=l.getEndColumn(r.modifiedStart+r.modifiedLength-1);return new c(_,g,v,R,N,D,x,T)}}function m(C){if(C.length<=1)return C;const r=[C[0]];let s=r[0];for(let l=1,_=C.length;l<_;l++){const g=C[l],v=g.originalStart-(s.originalStart+s.originalLength),R=g.modifiedStart-(s.modifiedStart+s.modifiedLength);Math.min(v,R)0&&s.originalLength<20&&s.modifiedLength>0&&s.modifiedLength<20&&g()){const B=l.createCharSequence(r,s.originalStart,s.originalStart+s.originalLength-1),V=_.createCharSequence(r,s.modifiedStart,s.modifiedStart+s.modifiedLength-1);if(B.getElements().length>0&&V.getElements().length>0){let k=e(B,V,g,!0).changes;R&&(k=m(k)),F=[];for(let O=0,I=k.length;O1&&k>1;){const O=F.charCodeAt(V-2),I=B.charCodeAt(k-2);if(O!==I)break;V--,k--}(V>1||k>1)&&this._pushTrimWhitespaceCharChange(_,g+1,1,V,v+1,1,k)}{let V=E(F,1),k=E(B,1);const O=F.length+1,I=B.length+1;for(;V!0;const r=Date.now();return()=>Date.now()-rnew M.LegacyLinesDiffComputer,getDefault:()=>new A.DefaultLinesDiffComputer}}),Y(X[50],J([0,1,33]),function(q,n,M){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.computeDefaultDocumentColors=void 0;function A(a){const u=[];for(const c of a){const m=Number(c);(m||m===0&&c.replace(/\s/g,"")!=="")&&u.push(m)}return u}function i(a,u,c,m){return{red:a/255,blue:c/255,green:u/255,alpha:m}}function d(a,u){const c=u.index,m=u[0].length;if(!c)return;const f=a.positionAt(c);return{startLineNumber:f.lineNumber,startColumn:f.column,endLineNumber:f.lineNumber,endColumn:f.column+m}}function b(a,u){if(!a)return;const c=M.Color.Format.CSS.parseHex(u);if(c)return{range:a,color:i(c.rgba.r,c.rgba.g,c.rgba.b,c.rgba.a)}}function p(a,u,c){if(!a||u.length!==1)return;const f=u[0].values(),y=A(f);return{range:a,color:i(y[0],y[1],y[2],c?y[3]:1)}}function h(a,u,c){if(!a||u.length!==1)return;const f=u[0].values(),y=A(f),w=new M.Color(new M.HSLA(y[0],y[1]/100,y[2]/100,c?y[3]:1));return{range:a,color:i(w.rgba.r,w.rgba.g,w.rgba.b,w.rgba.a)}}function o(a,u){return typeof a=="string"?[...a.matchAll(u)]:a.findMatches(u)}function L(a){const u=[],m=o(a,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(m.length>0)for(const f of m){const y=f.filter(C=>C!==void 0),w=y[1],E=y[2];if(!E)continue;let S;if(w==="rgb"){const C=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;S=p(d(a,f),o(E,C),!1)}else if(w==="rgba"){const C=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;S=p(d(a,f),o(E,C),!0)}else if(w==="hsl"){const C=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;S=h(d(a,f),o(E,C),!1)}else if(w==="hsla"){const C=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;S=h(d(a,f),o(E,C),!0)}else w==="#"&&(S=b(d(a,f),w+E));S&&u.push(S)}return u}function e(a){return!a||typeof a.getValue!="function"||typeof a.positionAt!="function"?[]:L(a)}n.computeDefaultDocumentColors=e}),Y(X[51],J([0,1,27]),function(q,n,M){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.computeLinks=n.LinkComputer=n.StateMachine=void 0;class A{constructor(a,u,c){const m=new Uint8Array(a*u);for(let f=0,y=a*u;fu&&(u=E),w>c&&(c=w),S>c&&(c=S)}u++,c++;const m=new A(c,u,0);for(let f=0,y=a.length;f=this._maxCharCode?0:this._states.get(a,u)}}n.StateMachine=i;let d=null;function b(){return d===null&&(d=new i([[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]])),d}let p=null;function h(){if(p===null){p=new M.CharacterClassifier(0);const e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let u=0;um);if(m>0){const w=u.charCodeAt(m-1),E=u.charCodeAt(y);(w===40&&E===41||w===91&&E===93||w===123&&E===125)&&y--}return{range:{startLineNumber:c,startColumn:m+1,endLineNumber:c,endColumn:y+2},url:u.substring(m,y+1)}}static computeLinks(a,u=b()){const c=h(),m=[];for(let f=1,y=a.getLineCount();f<=y;f++){const w=a.getLineContent(f),E=w.length;let S=0,C=0,r=0,s=1,l=!1,_=!1,g=!1,v=!1;for(;S=0?(p+=b?1:-1,p<0?p=i.length-1:p%=i.length,i[p]):null}}n.BasicInplaceReplace=M,M.INSTANCE=new M}),Y(X[53],J([0,1,14]),function(q,n,M){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.shouldSynchronizeModel=n.ApplyEditsResult=n.SearchData=n.ValidAnnotatedEditOperation=n.isITextSnapshot=n.FindMatch=n.TextModelResolvedOptions=n.InjectedTextCursorStops=n.MinimapPosition=n.GlyphMarginLane=n.OverviewRulerLane=void 0;var A;(function(c){c[c.Left=1]="Left",c[c.Center=2]="Center",c[c.Right=4]="Right",c[c.Full=7]="Full"})(A||(n.OverviewRulerLane=A={}));var i;(function(c){c[c.Left=1]="Left",c[c.Center=2]="Center",c[c.Right=3]="Right"})(i||(n.GlyphMarginLane=i={}));var d;(function(c){c[c.Inline=1]="Inline",c[c.Gutter=2]="Gutter"})(d||(n.MinimapPosition=d={}));var b;(function(c){c[c.Both=0]="Both",c[c.Right=1]="Right",c[c.Left=2]="Left",c[c.None=3]="None"})(b||(n.InjectedTextCursorStops=b={}));class p{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(m){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,m.tabSize|0),m.indentSize==="tabSize"?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,m.indentSize|0),this._indentSizeIsTabSize=!1),this.insertSpaces=!!m.insertSpaces,this.defaultEOL=m.defaultEOL|0,this.trimAutoWhitespace=!!m.trimAutoWhitespace,this.bracketPairColorizationOptions=m.bracketPairColorizationOptions}equals(m){return this.tabSize===m.tabSize&&this._indentSizeIsTabSize===m._indentSizeIsTabSize&&this.indentSize===m.indentSize&&this.insertSpaces===m.insertSpaces&&this.defaultEOL===m.defaultEOL&&this.trimAutoWhitespace===m.trimAutoWhitespace&&(0,M.equals)(this.bracketPairColorizationOptions,m.bracketPairColorizationOptions)}createChangeEvent(m){return{tabSize:this.tabSize!==m.tabSize,indentSize:this.indentSize!==m.indentSize,insertSpaces:this.insertSpaces!==m.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==m.trimAutoWhitespace}}}n.TextModelResolvedOptions=p;class h{constructor(m,f){this._findMatchBrand=void 0,this.range=m,this.matches=f}}n.FindMatch=h;function o(c){return c&&typeof c.read=="function"}n.isITextSnapshot=o;class L{constructor(m,f,y,w,E,S){this.identifier=m,this.range=f,this.text=y,this.forceMoveMarkers=w,this.isAutoWhitespaceEdit=E,this._isTracked=S}}n.ValidAnnotatedEditOperation=L;class e{constructor(m,f,y){this.regex=m,this.wordSeparators=f,this.simpleSearch=y}}n.SearchData=e;class a{constructor(m,f,y){this.reverseEdits=m,this.changes=f,this.trimAutoWhitespaceLineNumbers=y}}n.ApplyEditsResult=a;function u(c){return!c.isTooLargeForSyncing()&&!c.isForSimpleWidget}n.shouldSynchronizeModel=u}),Y(X[54],J([0,1,7,26]),function(q,n,M,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PrefixSumIndexOfResult=n.ConstantTimePrefixSumComputer=n.PrefixSumComputer=void 0;class i{constructor(h){this.values=h,this.prefixSum=new Uint32Array(h.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(h,o){h=(0,A.toUint32)(h);const L=this.values,e=this.prefixSum,a=o.length;return a===0?!1:(this.values=new Uint32Array(L.length+a),this.values.set(L.subarray(0,h),0),this.values.set(L.subarray(h),h+a),this.values.set(o,h),h-1=0&&this.prefixSum.set(e.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(h,o){return h=(0,A.toUint32)(h),o=(0,A.toUint32)(o),this.values[h]===o?!1:(this.values[h]=o,h-1=L.length)return!1;const a=L.length-h;return o>=a&&(o=a),o===0?!1:(this.values=new Uint32Array(L.length-o),this.values.set(L.subarray(0,h),0),this.values.set(L.subarray(h+o),h),this.prefixSum=new Uint32Array(this.values.length),h-1=0&&this.prefixSum.set(e.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(h){return h<0?0:(h=(0,A.toUint32)(h),this._getPrefixSum(h))}_getPrefixSum(h){if(h<=this.prefixSumValidIndex[0])return this.prefixSum[h];let o=this.prefixSumValidIndex[0]+1;o===0&&(this.prefixSum[0]=this.values[0],o++),h>=this.values.length&&(h=this.values.length-1);for(let L=o;L<=h;L++)this.prefixSum[L]=this.prefixSum[L-1]+this.values[L];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],h),this.prefixSum[h]}getIndexOf(h){h=Math.floor(h),this.getTotalSum();let o=0,L=this.values.length-1,e=0,a=0,u=0;for(;o<=L;)if(e=o+(L-o)/2|0,a=this.prefixSum[e],u=a-this.values[e],h=a)o=e+1;else break;return new b(e,h-u)}}n.PrefixSumComputer=i;class d{constructor(h){this._values=h,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(h){return this._ensureValid(),h===0?0:this._prefixSum[h-1]}getIndexOf(h){this._ensureValid();const o=this._indexBySum[h],L=o>0?this._prefixSum[o-1]:0;return new b(o,h-L)}removeValues(h,o){this._values.splice(h,o),this._invalidate(h)}insertValues(h,o){this._values=(0,M.arrayInsert)(this._values,h,o),this._invalidate(h)}_invalidate(h){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,h-1)}_ensureValid(){if(!this._isValid){for(let h=this._validEndIndex+1,o=this._values.length;h0?this._prefixSum[h-1]:0;this._prefixSum[h]=e+L;for(let a=0;a=0;let E=null;try{E=M.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:w,global:!0,unicode:!0})}catch{return null}if(!E)return null;let S=!this.isRegex&&!w;return S&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(S=this.matchCase),new b.SearchData(E,this.wordSeparators?(0,A.getMapForWordSeparators)(this.wordSeparators):null,S?this.searchString:null)}}n.SearchParams=h;function o(y){if(!y||y.length===0)return!1;for(let w=0,E=y.length;w=E)break;const C=y.charCodeAt(w);if(C===110||C===114||C===87)return!0}}return!1}n.isMultilineRegexSource=o;function L(y,w,E){if(!E)return new b.FindMatch(y,null);const S=[];for(let C=0,r=w.length;C>0);E[r]>=w?C=r-1:E[r+1]>=w?(S=r,C=r):S=r+1}return S+1}}class a{static findMatches(w,E,S,C,r){const s=E.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(w,S,new f(s.wordSeparators,s.regex),C,r):this._doFindMatchesLineByLine(w,S,s,C,r):[]}static _getMultilineMatchRange(w,E,S,C,r,s){let l,_=0;C?(_=C.findLineFeedCountBeforeOffset(r),l=E+r+_):l=E+r;let g;if(C){const D=C.findLineFeedCountBeforeOffset(r+s.length)-_;g=l+s.length+D}else g=l+s.length;const v=w.getPositionAt(l),R=w.getPositionAt(g);return new d.Range(v.lineNumber,v.column,R.lineNumber,R.column)}static _doFindMatchesMultiline(w,E,S,C,r){const s=w.getOffsetAt(E.getStartPosition()),l=w.getValueInRange(E,1),_=w.getEOL()===`\r `?new e(l):null,g=[];let v=0,R;for(S.reset(0);R=S.next(l);)if(g[v++]=L(this._getMultilineMatchRange(w,s,l,_,R.index,R[0]),R,C),v>=r)return g;return g}static _doFindMatchesLineByLine(w,E,S,C,r){const s=[];let l=0;if(E.startLineNumber===E.endLineNumber){const g=w.getLineContent(E.startLineNumber).substring(E.startColumn-1,E.endColumn-1);return l=this._findMatchesInLine(S,g,E.startLineNumber,E.startColumn-1,l,s,C,r),s}const _=w.getLineContent(E.startLineNumber).substring(E.startColumn-1);l=this._findMatchesInLine(S,_,E.startLineNumber,E.startColumn-1,l,s,C,r);for(let g=E.startLineNumber+1;g=_))return r;return r}const v=new f(w.wordSeparators,w.regex);let R;v.reset(0);do if(R=v.next(E),R&&(s[r++]=L(new d.Range(S,R.index+1+C,S,R.index+1+R[0].length+C),R,l),r>=_))return r;while(R);return r}static findNextMatch(w,E,S,C){const r=E.parseSearchRequest();if(!r)return null;const s=new f(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(w,S,s,C):this._doFindNextMatchLineByLine(w,S,s,C)}static _doFindNextMatchMultiline(w,E,S,C){const r=new i.Position(E.lineNumber,1),s=w.getOffsetAt(r),l=w.getLineCount(),_=w.getValueInRange(new d.Range(r.lineNumber,r.column,l,w.getLineMaxColumn(l)),1),g=w.getEOL()===`\r `?new e(_):null;S.reset(E.column-1);const v=S.next(_);return v?L(this._getMultilineMatchRange(w,s,_,g,v.index,v[0]),v,C):E.lineNumber!==1||E.column!==1?this._doFindNextMatchMultiline(w,new i.Position(1,1),S,C):null}static _doFindNextMatchLineByLine(w,E,S,C){const r=w.getLineCount(),s=E.lineNumber,l=w.getLineContent(s),_=this._findFirstMatchInLine(S,l,s,E.column,C);if(_)return _;for(let g=1;g<=r;g++){const v=(s+g-1)%r,R=w.getLineContent(v+1),N=this._findFirstMatchInLine(S,R,v+1,1,C);if(N)return N}return null}static _findFirstMatchInLine(w,E,S,C,r){w.reset(C-1);const s=w.next(E);return s?L(new d.Range(S,s.index+1,S,s.index+1+s[0].length),s,r):null}static findPreviousMatch(w,E,S,C){const r=E.parseSearchRequest();if(!r)return null;const s=new f(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(w,S,s,C):this._doFindPreviousMatchLineByLine(w,S,s,C)}static _doFindPreviousMatchMultiline(w,E,S,C){const r=this._doFindMatchesMultiline(w,new d.Range(1,1,E.lineNumber,E.column),S,C,10*p);if(r.length>0)return r[r.length-1];const s=w.getLineCount();return E.lineNumber!==s||E.column!==w.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(w,new i.Position(s,w.getLineMaxColumn(s)),S,C):null}static _doFindPreviousMatchLineByLine(w,E,S,C){const r=w.getLineCount(),s=E.lineNumber,l=w.getLineContent(s).substring(0,E.column-1),_=this._findLastMatchInLine(S,l,s,C);if(_)return _;for(let g=1;g<=r;g++){const v=(r+s-g-1)%r,R=w.getLineContent(v+1),N=this._findLastMatchInLine(S,R,v+1,C);if(N)return N}return null}static _findLastMatchInLine(w,E,S,C){let r=null,s;for(w.reset(0);s=w.next(E);)r=L(new d.Range(S,s.index+1,S,s.index+1+s[0].length),s,C);return r}}n.TextModelSearch=a;function u(y,w,E,S,C){if(S===0)return!0;const r=w.charCodeAt(S-1);if(y.get(r)!==0||r===13||r===10)return!0;if(C>0){const s=w.charCodeAt(S);if(y.get(s)!==0)return!0}return!1}function c(y,w,E,S,C){if(S+C===E)return!0;const r=w.charCodeAt(S+C);if(y.get(r)!==0||r===13||r===10)return!0;if(C>0){const s=w.charCodeAt(S+C-1);if(y.get(s)!==0)return!0}return!1}function m(y,w,E,S,C){return u(y,w,E,S,C)&&c(y,w,E,S,C)}n.isValidMatch=m;class f{constructor(w,E){this._wordSeparators=w,this._searchRegex=E,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(w){this._searchRegex.lastIndex=w,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(w){const E=w.length;let S;do{if(this._prevMatchStartIndex+this._prevMatchLength===E||(S=this._searchRegex.exec(w),!S))return null;const C=S.index,r=S[0].length;if(C===this._prevMatchStartIndex&&r===this._prevMatchLength){if(r===0){M.getNextCodePoint(w,E,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=C,this._prevMatchLength=r,!this._wordSeparators||m(this._wordSeparators,w,E,C,r))return S}while(S);return null}}n.Searcher=f}),Y(X[57],J([0,1,2,56,6,12,28]),function(q,n,M,A,i,d,b){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UnicodeTextModelHighlighter=void 0;class p{static computeUnicodeHighlights(a,u,c){const m=c?c.startLineNumber:1,f=c?c.endLineNumber:a.getLineCount(),y=new o(u),w=y.getCandidateCodePoints();let E;w==="allNonBasicAscii"?E=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):E=new RegExp(`${h(Array.from(w))}`,"g");const S=new A.Searcher(null,E),C=[];let r=!1,s,l=0,_=0,g=0;e:for(let v=m,R=f;v<=R;v++){const N=a.getLineContent(v),D=N.length;S.reset(0);do if(s=S.next(N),s){let x=s.index,T=s.index+s[0].length;if(x>0){const k=N.charCodeAt(x-1);i.isHighSurrogate(k)&&x--}if(T+1=k){r=!0;break e}C.push(new M.Range(v,x+1,v,T+1))}}while(s)}return{ranges:C,hasMore:r,ambiguousCharacterCount:l,invisibleCharacterCount:_,nonBasicAsciiCharacterCount:g}}static computeUnicodeHighlightReason(a,u){const c=new o(u);switch(c.shouldHighlightNonBasicASCII(a,null)){case 0:return null;case 2:return{kind:1};case 3:{const f=a.codePointAt(0),y=c.ambiguousCharacters.getPrimaryConfusable(f),w=i.AmbiguousCharacters.getLocales().filter(E=>!i.AmbiguousCharacters.getInstance(new Set([...u.allowedLocales,E])).isAmbiguous(f));return{kind:0,confusableWith:String.fromCodePoint(y),notAmbiguousInLocales:w}}case 1:return{kind:2}}}}n.UnicodeTextModelHighlighter=p;function h(e,a){return`[${i.escapeRegExpCharacters(e.map(c=>String.fromCodePoint(c)).join(""))}]`}class o{constructor(a){this.options=a,this.allowedCodePoints=new Set(a.allowedCodePoints),this.ambiguousCharacters=i.AmbiguousCharacters.getInstance(new Set(a.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const a=new Set;if(this.options.invisibleCharacters)for(const u of i.InvisibleCharacters.codePoints)L(String.fromCodePoint(u))||a.add(u);if(this.options.ambiguousCharacters)for(const u of this.ambiguousCharacters.getConfusableCodePoints())a.add(u);for(const u of this.allowedCodePoints)a.delete(u);return a}shouldHighlightNonBasicASCII(a,u){const c=a.codePointAt(0);if(this.allowedCodePoints.has(c))return 0;if(this.options.nonBasicASCII)return 1;let m=!1,f=!1;if(u)for(const y of u){const w=y.codePointAt(0),E=i.isBasicASCII(y);m=m||E,!E&&!this.ambiguousCharacters.isAmbiguous(w)&&!i.InvisibleCharacters.isInvisibleCharacter(w)&&(f=!0)}return!m&&f?0:this.options.invisibleCharacters&&!L(a)&&i.InvisibleCharacters.isInvisibleCharacter(c)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(c)?3:0}}function L(e){return e===" "||e===` `||e===" "}}),Y(X[58],J([0,1]),function(q,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.WrappingIndent=n.TrackedRangeStickiness=n.TextEditorCursorStyle=n.TextEditorCursorBlinkingStyle=n.SymbolTag=n.SymbolKind=n.SignatureHelpTriggerKind=n.ShowLightbulbIconMode=n.SelectionDirection=n.ScrollbarVisibility=n.ScrollType=n.RenderMinimap=n.RenderLineNumbersType=n.PositionAffinity=n.OverviewRulerLane=n.OverlayWidgetPositionPreference=n.MouseTargetType=n.MinimapPosition=n.MarkerTag=n.MarkerSeverity=n.KeyCode=n.InlineCompletionTriggerKind=n.InlayHintKind=n.InjectedTextCursorStops=n.IndentAction=n.GlyphMarginLane=n.EndOfLineSequence=n.EndOfLinePreference=n.EditorOption=n.EditorAutoIndentStrategy=n.DocumentHighlightKind=n.DefaultEndOfLine=n.CursorChangeReason=n.ContentWidgetPositionPreference=n.CompletionTriggerKind=n.CompletionItemTag=n.CompletionItemKind=n.CompletionItemInsertTextRule=n.CodeActionTriggerType=n.AccessibilitySupport=void 0;var M;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(M||(n.AccessibilitySupport=M={}));var A;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(A||(n.CodeActionTriggerType=A={}));var i;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(i||(n.CompletionItemInsertTextRule=i={}));var d;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Snippet=27]="Snippet"})(d||(n.CompletionItemKind=d={}));var b;(function(t){t[t.Deprecated=1]="Deprecated"})(b||(n.CompletionItemTag=b={}));var p;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(p||(n.CompletionTriggerKind=p={}));var h;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(h||(n.ContentWidgetPositionPreference=h={}));var o;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(o||(n.CursorChangeReason=o={}));var L;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(L||(n.DefaultEndOfLine=L={}));var e;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(e||(n.DocumentHighlightKind=e={}));var a;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(a||(n.EditorAutoIndentStrategy=a={}));var u;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.ariaLabel=4]="ariaLabel",t[t.ariaRequired=5]="ariaRequired",t[t.autoClosingBrackets=6]="autoClosingBrackets",t[t.autoClosingComments=7]="autoClosingComments",t[t.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=9]="autoClosingDelete",t[t.autoClosingOvertype=10]="autoClosingOvertype",t[t.autoClosingQuotes=11]="autoClosingQuotes",t[t.autoIndent=12]="autoIndent",t[t.automaticLayout=13]="automaticLayout",t[t.autoSurround=14]="autoSurround",t[t.bracketPairColorization=15]="bracketPairColorization",t[t.guides=16]="guides",t[t.codeLens=17]="codeLens",t[t.codeLensFontFamily=18]="codeLensFontFamily",t[t.codeLensFontSize=19]="codeLensFontSize",t[t.colorDecorators=20]="colorDecorators",t[t.colorDecoratorsLimit=21]="colorDecoratorsLimit",t[t.columnSelection=22]="columnSelection",t[t.comments=23]="comments",t[t.contextmenu=24]="contextmenu",t[t.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",t[t.cursorBlinking=26]="cursorBlinking",t[t.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",t[t.cursorStyle=28]="cursorStyle",t[t.cursorSurroundingLines=29]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",t[t.cursorWidth=31]="cursorWidth",t[t.disableLayerHinting=32]="disableLayerHinting",t[t.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",t[t.domReadOnly=34]="domReadOnly",t[t.dragAndDrop=35]="dragAndDrop",t[t.dropIntoEditor=36]="dropIntoEditor",t[t.emptySelectionClipboard=37]="emptySelectionClipboard",t[t.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",t[t.extraEditorClassName=39]="extraEditorClassName",t[t.fastScrollSensitivity=40]="fastScrollSensitivity",t[t.find=41]="find",t[t.fixedOverflowWidgets=42]="fixedOverflowWidgets",t[t.folding=43]="folding",t[t.foldingStrategy=44]="foldingStrategy",t[t.foldingHighlight=45]="foldingHighlight",t[t.foldingImportsByDefault=46]="foldingImportsByDefault",t[t.foldingMaximumRegions=47]="foldingMaximumRegions",t[t.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=49]="fontFamily",t[t.fontInfo=50]="fontInfo",t[t.fontLigatures=51]="fontLigatures",t[t.fontSize=52]="fontSize",t[t.fontWeight=53]="fontWeight",t[t.fontVariations=54]="fontVariations",t[t.formatOnPaste=55]="formatOnPaste",t[t.formatOnType=56]="formatOnType",t[t.glyphMargin=57]="glyphMargin",t[t.gotoLocation=58]="gotoLocation",t[t.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",t[t.hover=60]="hover",t[t.inDiffEditor=61]="inDiffEditor",t[t.inlineSuggest=62]="inlineSuggest",t[t.letterSpacing=63]="letterSpacing",t[t.lightbulb=64]="lightbulb",t[t.lineDecorationsWidth=65]="lineDecorationsWidth",t[t.lineHeight=66]="lineHeight",t[t.lineNumbers=67]="lineNumbers",t[t.lineNumbersMinChars=68]="lineNumbersMinChars",t[t.linkedEditing=69]="linkedEditing",t[t.links=70]="links",t[t.matchBrackets=71]="matchBrackets",t[t.minimap=72]="minimap",t[t.mouseStyle=73]="mouseStyle",t[t.mouseWheelScrollSensitivity=74]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=75]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=76]="multiCursorMergeOverlapping",t[t.multiCursorModifier=77]="multiCursorModifier",t[t.multiCursorPaste=78]="multiCursorPaste",t[t.multiCursorLimit=79]="multiCursorLimit",t[t.occurrencesHighlight=80]="occurrencesHighlight",t[t.overviewRulerBorder=81]="overviewRulerBorder",t[t.overviewRulerLanes=82]="overviewRulerLanes",t[t.padding=83]="padding",t[t.pasteAs=84]="pasteAs",t[t.parameterHints=85]="parameterHints",t[t.peekWidgetDefaultFocus=86]="peekWidgetDefaultFocus",t[t.definitionLinkOpensInPeek=87]="definitionLinkOpensInPeek",t[t.quickSuggestions=88]="quickSuggestions",t[t.quickSuggestionsDelay=89]="quickSuggestionsDelay",t[t.readOnly=90]="readOnly",t[t.readOnlyMessage=91]="readOnlyMessage",t[t.renameOnType=92]="renameOnType",t[t.renderControlCharacters=93]="renderControlCharacters",t[t.renderFinalNewline=94]="renderFinalNewline",t[t.renderLineHighlight=95]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=96]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=97]="renderValidationDecorations",t[t.renderWhitespace=98]="renderWhitespace",t[t.revealHorizontalRightPadding=99]="revealHorizontalRightPadding",t[t.roundedSelection=100]="roundedSelection",t[t.rulers=101]="rulers",t[t.scrollbar=102]="scrollbar",t[t.scrollBeyondLastColumn=103]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=104]="scrollBeyondLastLine",t[t.scrollPredominantAxis=105]="scrollPredominantAxis",t[t.selectionClipboard=106]="selectionClipboard",t[t.selectionHighlight=107]="selectionHighlight",t[t.selectOnLineNumbers=108]="selectOnLineNumbers",t[t.showFoldingControls=109]="showFoldingControls",t[t.showUnused=110]="showUnused",t[t.snippetSuggestions=111]="snippetSuggestions",t[t.smartSelect=112]="smartSelect",t[t.smoothScrolling=113]="smoothScrolling",t[t.stickyScroll=114]="stickyScroll",t[t.stickyTabStops=115]="stickyTabStops",t[t.stopRenderingLineAfter=116]="stopRenderingLineAfter",t[t.suggest=117]="suggest",t[t.suggestFontSize=118]="suggestFontSize",t[t.suggestLineHeight=119]="suggestLineHeight",t[t.suggestOnTriggerCharacters=120]="suggestOnTriggerCharacters",t[t.suggestSelection=121]="suggestSelection",t[t.tabCompletion=122]="tabCompletion",t[t.tabIndex=123]="tabIndex",t[t.unicodeHighlighting=124]="unicodeHighlighting",t[t.unusualLineTerminators=125]="unusualLineTerminators",t[t.useShadowDOM=126]="useShadowDOM",t[t.useTabStops=127]="useTabStops",t[t.wordBreak=128]="wordBreak",t[t.wordSeparators=129]="wordSeparators",t[t.wordWrap=130]="wordWrap",t[t.wordWrapBreakAfterCharacters=131]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=132]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=133]="wordWrapColumn",t[t.wordWrapOverride1=134]="wordWrapOverride1",t[t.wordWrapOverride2=135]="wordWrapOverride2",t[t.wrappingIndent=136]="wrappingIndent",t[t.wrappingStrategy=137]="wrappingStrategy",t[t.showDeprecated=138]="showDeprecated",t[t.inlayHints=139]="inlayHints",t[t.editorClassName=140]="editorClassName",t[t.pixelRatio=141]="pixelRatio",t[t.tabFocusMode=142]="tabFocusMode",t[t.layoutInfo=143]="layoutInfo",t[t.wrappingInfo=144]="wrappingInfo",t[t.defaultColorDecorators=145]="defaultColorDecorators",t[t.colorDecoratorsActivatedOn=146]="colorDecoratorsActivatedOn",t[t.inlineCompletionsAccessibilityVerbose=147]="inlineCompletionsAccessibilityVerbose"})(u||(n.EditorOption=u={}));var c;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(c||(n.EndOfLinePreference=c={}));var m;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(m||(n.EndOfLineSequence=m={}));var f;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(f||(n.GlyphMarginLane=f={}));var y;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(y||(n.IndentAction=y={}));var w;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(w||(n.InjectedTextCursorStops=w={}));var E;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(E||(n.InlayHintKind=E={}));var S;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(S||(n.InlineCompletionTriggerKind=S={}));var C;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.F20=78]="F20",t[t.F21=79]="F21",t[t.F22=80]="F22",t[t.F23=81]="F23",t[t.F24=82]="F24",t[t.NumLock=83]="NumLock",t[t.ScrollLock=84]="ScrollLock",t[t.Semicolon=85]="Semicolon",t[t.Equal=86]="Equal",t[t.Comma=87]="Comma",t[t.Minus=88]="Minus",t[t.Period=89]="Period",t[t.Slash=90]="Slash",t[t.Backquote=91]="Backquote",t[t.BracketLeft=92]="BracketLeft",t[t.Backslash=93]="Backslash",t[t.BracketRight=94]="BracketRight",t[t.Quote=95]="Quote",t[t.OEM_8=96]="OEM_8",t[t.IntlBackslash=97]="IntlBackslash",t[t.Numpad0=98]="Numpad0",t[t.Numpad1=99]="Numpad1",t[t.Numpad2=100]="Numpad2",t[t.Numpad3=101]="Numpad3",t[t.Numpad4=102]="Numpad4",t[t.Numpad5=103]="Numpad5",t[t.Numpad6=104]="Numpad6",t[t.Numpad7=105]="Numpad7",t[t.Numpad8=106]="Numpad8",t[t.Numpad9=107]="Numpad9",t[t.NumpadMultiply=108]="NumpadMultiply",t[t.NumpadAdd=109]="NumpadAdd",t[t.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=111]="NumpadSubtract",t[t.NumpadDecimal=112]="NumpadDecimal",t[t.NumpadDivide=113]="NumpadDivide",t[t.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",t[t.ABNT_C1=115]="ABNT_C1",t[t.ABNT_C2=116]="ABNT_C2",t[t.AudioVolumeMute=117]="AudioVolumeMute",t[t.AudioVolumeUp=118]="AudioVolumeUp",t[t.AudioVolumeDown=119]="AudioVolumeDown",t[t.BrowserSearch=120]="BrowserSearch",t[t.BrowserHome=121]="BrowserHome",t[t.BrowserBack=122]="BrowserBack",t[t.BrowserForward=123]="BrowserForward",t[t.MediaTrackNext=124]="MediaTrackNext",t[t.MediaTrackPrevious=125]="MediaTrackPrevious",t[t.MediaStop=126]="MediaStop",t[t.MediaPlayPause=127]="MediaPlayPause",t[t.LaunchMediaPlayer=128]="LaunchMediaPlayer",t[t.LaunchMail=129]="LaunchMail",t[t.LaunchApp2=130]="LaunchApp2",t[t.Clear=131]="Clear",t[t.MAX_VALUE=132]="MAX_VALUE"})(C||(n.KeyCode=C={}));var r;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})(r||(n.MarkerSeverity=r={}));var s;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(s||(n.MarkerTag=s={}));var l;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(l||(n.MinimapPosition=l={}));var _;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(_||(n.MouseTargetType=_={}));var g;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(g||(n.OverlayWidgetPositionPreference=g={}));var v;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(v||(n.OverviewRulerLane=v={}));var R;(function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.None=2]="None",t[t.LeftOfInjectedText=3]="LeftOfInjectedText",t[t.RightOfInjectedText=4]="RightOfInjectedText"})(R||(n.PositionAffinity=R={}));var N;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(N||(n.RenderLineNumbersType=N={}));var D;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(D||(n.RenderMinimap=D={}));var x;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(x||(n.ScrollType=x={}));var T;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(T||(n.ScrollbarVisibility=T={}));var F;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(F||(n.SelectionDirection=F={}));var B;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(B||(n.ShowLightbulbIconMode=B={}));var V;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(V||(n.SignatureHelpTriggerKind=V={}));var k;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(k||(n.SymbolKind=k={}));var O;(function(t){t[t.Deprecated=1]="Deprecated"})(O||(n.SymbolTag=O={}));var I;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(I||(n.TextEditorCursorBlinkingStyle=I={}));var W;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(W||(n.TextEditorCursorStyle=W={}));var z;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(z||(n.TrackedRangeStickiness=z={}));var G;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(G||(n.WrappingIndent=G={}))}),Y(X[59],J([0,1,9,13]),function(q,n,M,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TokenizationRegistry=void 0;class i{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new M.Emitter,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(p){this._onDidChange.fire({changedLanguages:p,changedColorMap:!1})}register(p,h){return this._tokenizationSupports.set(p,h),this.handleChange([p]),(0,A.toDisposable)(()=>{this._tokenizationSupports.get(p)===h&&(this._tokenizationSupports.delete(p),this.handleChange([p]))})}get(p){return this._tokenizationSupports.get(p)||null}registerFactory(p,h){var o;(o=this._factories.get(p))===null||o===void 0||o.dispose();const L=new d(this,p,h);return this._factories.set(p,L),(0,A.toDisposable)(()=>{const e=this._factories.get(p);!e||e!==L||(this._factories.delete(p),e.dispose())})}async getOrCreate(p){const h=this.get(p);if(h)return h;const o=this._factories.get(p);return!o||o.isResolved?null:(await o.resolve(),this.get(p))}isResolved(p){if(this.get(p))return!0;const o=this._factories.get(p);return!!(!o||o.isResolved)}setColorMap(p){this._colorMap=p,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}n.TokenizationRegistry=i;class d extends A.Disposable{get isResolved(){return this._isResolved}constructor(p,h,o){super(),this._registry=p,this._languageId=h,this._factory=o,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const p=await this._factory.tokenizationSupport;this._isResolved=!0,p&&!this._isDisposed&&this._register(this._registry.register(this._languageId,p))}}}),Y(X[60],J([19,61]),function(q,n){return q.create("vs/base/common/platform",n)}),Y(X[17],J([0,1,60]),function(q,n,M){"use strict";var A;Object.defineProperty(n,"__esModule",{value:!0}),n.isAndroid=n.isEdge=n.isSafari=n.isFirefox=n.isChrome=n.isLittleEndian=n.OS=n.setTimeout0=n.setTimeout0IsFaster=n.language=n.userAgent=n.isMobile=n.isIOS=n.webWorkerOrigin=n.isWebWorker=n.isWeb=n.isNative=n.isLinux=n.isMacintosh=n.isWindows=n.LANGUAGE_DEFAULT=void 0,n.LANGUAGE_DEFAULT="en";let i=!1,d=!1,b=!1,p=!1,h=!1,o=!1,L=!1,e=!1,a=!1,u=!1,c,m=n.LANGUAGE_DEFAULT,f=n.LANGUAGE_DEFAULT,y,w;const E=globalThis;let S;typeof E.vscode<"u"&&typeof E.vscode.process<"u"?S=E.vscode.process:typeof process<"u"&&(S=process);const C=typeof((A=S?.versions)===null||A===void 0?void 0:A.electron)=="string",r=C&&S?.type==="renderer";if(typeof S=="object"){i=S.platform==="win32",d=S.platform==="darwin",b=S.platform==="linux",p=b&&!!S.env.SNAP&&!!S.env.SNAP_REVISION,L=C,a=!!S.env.CI||!!S.env.BUILD_ARTIFACTSTAGINGDIRECTORY,c=n.LANGUAGE_DEFAULT,m=n.LANGUAGE_DEFAULT;const v=S.env.VSCODE_NLS_CONFIG;if(v)try{const R=JSON.parse(v),N=R.availableLanguages["*"];c=R.locale,f=R.osLocale,m=N||n.LANGUAGE_DEFAULT,y=R._translationsConfigFile}catch{}h=!0}else typeof navigator=="object"&&!r?(w=navigator.userAgent,i=w.indexOf("Windows")>=0,d=w.indexOf("Macintosh")>=0,e=(w.indexOf("Macintosh")>=0||w.indexOf("iPad")>=0||w.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,b=w.indexOf("Linux")>=0,u=w?.indexOf("Mobi")>=0,o=!0,c=M.getConfiguredDefaultLocale(M.localize(0,null))||n.LANGUAGE_DEFAULT,m=c,f=navigator.language):console.error("Unable to resolve platform.");let s=0;d?s=1:i?s=3:b&&(s=2),n.isWindows=i,n.isMacintosh=d,n.isLinux=b,n.isNative=h,n.isWeb=o,n.isWebWorker=o&&typeof E.importScripts=="function",n.webWorkerOrigin=n.isWebWorker?E.origin:void 0,n.isIOS=e,n.isMobile=u,n.userAgent=w,n.language=m,n.setTimeout0IsFaster=typeof E.postMessage=="function"&&!E.importScripts,n.setTimeout0=(()=>{if(n.setTimeout0IsFaster){const v=[];E.addEventListener("message",N=>{if(N.data&&N.data.vscodeScheduleAsyncWork)for(let D=0,x=v.length;D{const D=++R;v.push({id:D,callback:N}),E.postMessage({vscodeScheduleAsyncWork:D},"*")}}return v=>setTimeout(v)})(),n.OS=d||e?2:i?1:3;let l=!0,_=!1;function g(){if(!_){_=!0;const v=new Uint8Array(2);v[0]=1,v[1]=2,l=new Uint16Array(v.buffer)[0]===(2<<8)+1}return l}n.isLittleEndian=g,n.isChrome=!!(n.userAgent&&n.userAgent.indexOf("Chrome")>=0),n.isFirefox=!!(n.userAgent&&n.userAgent.indexOf("Firefox")>=0),n.isSafari=!!(!n.isChrome&&n.userAgent&&n.userAgent.indexOf("Safari")>=0),n.isEdge=!!(n.userAgent&&n.userAgent.indexOf("Edg/")>=0),n.isAndroid=!!(n.userAgent&&n.userAgent.indexOf("Android")>=0)}),Y(X[62],J([0,1,17]),function(q,n,M){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.platform=n.env=n.cwd=void 0;let A;const i=globalThis.vscode;if(typeof i<"u"&&typeof i.process<"u"){const d=i.process;A={get platform(){return d.platform},get arch(){return d.arch},get env(){return d.env},cwd(){return d.cwd()}}}else typeof process<"u"?A={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:A={get platform(){return M.isWindows?"win32":M.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};n.cwd=A.cwd,n.env=A.env,n.platform=A.platform}),Y(X[63],J([0,1,62]),function(q,n,M){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sep=n.extname=n.basename=n.dirname=n.relative=n.resolve=n.normalize=n.posix=n.win32=void 0;const A=65,i=97,d=90,b=122,p=46,h=47,o=92,L=58,e=63;class a extends Error{constructor(s,l,_){let g;typeof l=="string"&&l.indexOf("not ")===0?(g="must not be",l=l.replace(/^not /,"")):g="must be";const v=s.indexOf(".")!==-1?"property":"argument";let R=`The "${s}" ${v} ${g} of type ${l}`;R+=`. Received type ${typeof _}`,super(R),this.code="ERR_INVALID_ARG_TYPE"}}function u(r,s){if(r===null||typeof r!="object")throw new a(s,"Object",r)}function c(r,s){if(typeof r!="string")throw new a(s,"string",r)}const m=M.platform==="win32";function f(r){return r===h||r===o}function y(r){return r===h}function w(r){return r>=A&&r<=d||r>=i&&r<=b}function E(r,s,l,_){let g="",v=0,R=-1,N=0,D=0;for(let x=0;x<=r.length;++x){if(x2){const T=g.lastIndexOf(l);T===-1?(g="",v=0):(g=g.slice(0,T),v=g.length-1-g.lastIndexOf(l)),R=x,N=0;continue}else if(g.length!==0){g="",v=0,R=x,N=0;continue}}s&&(g+=g.length>0?`${l}..`:"..",v=2)}else g.length>0?g+=`${l}${r.slice(R+1,x)}`:g=r.slice(R+1,x),v=x-R-1;R=x,N=0}else D===p&&N!==-1?++N:N=-1}return g}function S(r,s){u(s,"pathObject");const l=s.dir||s.root,_=s.base||`${s.name||""}${s.ext||""}`;return l?l===s.root?`${l}${_}`:`${l}${r}${_}`:_}n.win32={resolve(...r){let s="",l="",_=!1;for(let g=r.length-1;g>=-1;g--){let v;if(g>=0){if(v=r[g],c(v,"path"),v.length===0)continue}else s.length===0?v=M.cwd():(v=M.env[`=${s}`]||M.cwd(),(v===void 0||v.slice(0,2).toLowerCase()!==s.toLowerCase()&&v.charCodeAt(2)===o)&&(v=`${s}\\`));const R=v.length;let N=0,D="",x=!1;const T=v.charCodeAt(0);if(R===1)f(T)&&(N=1,x=!0);else if(f(T))if(x=!0,f(v.charCodeAt(1))){let F=2,B=F;for(;F2&&f(v.charCodeAt(2))&&(x=!0,N=3));if(D.length>0)if(s.length>0){if(D.toLowerCase()!==s.toLowerCase())continue}else s=D;if(_){if(s.length>0)break}else if(l=`${v.slice(N)}\\${l}`,_=x,x&&s.length>0)break}return l=E(l,!_,"\\",f),_?`${s}\\${l}`:`${s}${l}`||"."},normalize(r){c(r,"path");const s=r.length;if(s===0)return".";let l=0,_,g=!1;const v=r.charCodeAt(0);if(s===1)return y(v)?"\\":r;if(f(v))if(g=!0,f(r.charCodeAt(1))){let N=2,D=N;for(;N2&&f(r.charCodeAt(2))&&(g=!0,l=3));let R=l0&&f(r.charCodeAt(s-1))&&(R+="\\"),_===void 0?g?`\\${R}`:R:g?`${_}\\${R}`:`${_}${R}`},isAbsolute(r){c(r,"path");const s=r.length;if(s===0)return!1;const l=r.charCodeAt(0);return f(l)||s>2&&w(l)&&r.charCodeAt(1)===L&&f(r.charCodeAt(2))},join(...r){if(r.length===0)return".";let s,l;for(let v=0;v0&&(s===void 0?s=l=R:s+=`\\${R}`)}if(s===void 0)return".";let _=!0,g=0;if(typeof l=="string"&&f(l.charCodeAt(0))){++g;const v=l.length;v>1&&f(l.charCodeAt(1))&&(++g,v>2&&(f(l.charCodeAt(2))?++g:_=!1))}if(_){for(;g=2&&(s=`\\${s.slice(g)}`)}return n.win32.normalize(s)},relative(r,s){if(c(r,"from"),c(s,"to"),r===s)return"";const l=n.win32.resolve(r),_=n.win32.resolve(s);if(l===_||(r=l.toLowerCase(),s=_.toLowerCase(),r===s))return"";let g=0;for(;gg&&r.charCodeAt(v-1)===o;)v--;const R=v-g;let N=0;for(;NN&&s.charCodeAt(D-1)===o;)D--;const x=D-N,T=RT){if(s.charCodeAt(N+B)===o)return _.slice(N+B+1);if(B===2)return _.slice(N+B)}R>T&&(r.charCodeAt(g+B)===o?F=B:B===2&&(F=3)),F===-1&&(F=0)}let V="";for(B=g+F+1;B<=v;++B)(B===v||r.charCodeAt(B)===o)&&(V+=V.length===0?"..":"\\..");return N+=F,V.length>0?`${V}${_.slice(N,D)}`:(_.charCodeAt(N)===o&&++N,_.slice(N,D))},toNamespacedPath(r){if(typeof r!="string"||r.length===0)return r;const s=n.win32.resolve(r);if(s.length<=2)return r;if(s.charCodeAt(0)===o){if(s.charCodeAt(1)===o){const l=s.charCodeAt(2);if(l!==e&&l!==p)return`\\\\?\\UNC\\${s.slice(2)}`}}else if(w(s.charCodeAt(0))&&s.charCodeAt(1)===L&&s.charCodeAt(2)===o)return`\\\\?\\${s}`;return r},dirname(r){c(r,"path");const s=r.length;if(s===0)return".";let l=-1,_=0;const g=r.charCodeAt(0);if(s===1)return f(g)?r:".";if(f(g)){if(l=_=1,f(r.charCodeAt(1))){let N=2,D=N;for(;N2&&f(r.charCodeAt(2))?3:2,_=l);let v=-1,R=!0;for(let N=s-1;N>=_;--N)if(f(r.charCodeAt(N))){if(!R){v=N;break}}else R=!1;if(v===-1){if(l===-1)return".";v=l}return r.slice(0,v)},basename(r,s){s!==void 0&&c(s,"ext"),c(r,"path");let l=0,_=-1,g=!0,v;if(r.length>=2&&w(r.charCodeAt(0))&&r.charCodeAt(1)===L&&(l=2),s!==void 0&&s.length>0&&s.length<=r.length){if(s===r)return"";let R=s.length-1,N=-1;for(v=r.length-1;v>=l;--v){const D=r.charCodeAt(v);if(f(D)){if(!g){l=v+1;break}}else N===-1&&(g=!1,N=v+1),R>=0&&(D===s.charCodeAt(R)?--R===-1&&(_=v):(R=-1,_=N))}return l===_?_=N:_===-1&&(_=r.length),r.slice(l,_)}for(v=r.length-1;v>=l;--v)if(f(r.charCodeAt(v))){if(!g){l=v+1;break}}else _===-1&&(g=!1,_=v+1);return _===-1?"":r.slice(l,_)},extname(r){c(r,"path");let s=0,l=-1,_=0,g=-1,v=!0,R=0;r.length>=2&&r.charCodeAt(1)===L&&w(r.charCodeAt(0))&&(s=_=2);for(let N=r.length-1;N>=s;--N){const D=r.charCodeAt(N);if(f(D)){if(!v){_=N+1;break}continue}g===-1&&(v=!1,g=N+1),D===p?l===-1?l=N:R!==1&&(R=1):l!==-1&&(R=-1)}return l===-1||g===-1||R===0||R===1&&l===g-1&&l===_+1?"":r.slice(l,g)},format:S.bind(null,"\\"),parse(r){c(r,"path");const s={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return s;const l=r.length;let _=0,g=r.charCodeAt(0);if(l===1)return f(g)?(s.root=s.dir=r,s):(s.base=s.name=r,s);if(f(g)){if(_=1,f(r.charCodeAt(1))){let F=2,B=F;for(;F0&&(s.root=r.slice(0,_));let v=-1,R=_,N=-1,D=!0,x=r.length-1,T=0;for(;x>=_;--x){if(g=r.charCodeAt(x),f(g)){if(!D){R=x+1;break}continue}N===-1&&(D=!1,N=x+1),g===p?v===-1?v=x:T!==1&&(T=1):v!==-1&&(T=-1)}return N!==-1&&(v===-1||T===0||T===1&&v===N-1&&v===R+1?s.base=s.name=r.slice(R,N):(s.name=r.slice(R,v),s.base=r.slice(R,N),s.ext=r.slice(v,N))),R>0&&R!==_?s.dir=r.slice(0,R-1):s.dir=s.root,s},sep:"\\",delimiter:";",win32:null,posix:null};const C=(()=>{if(m){const r=/\\/g;return()=>{const s=M.cwd().replace(r,"/");return s.slice(s.indexOf("/"))}}return()=>M.cwd()})();n.posix={resolve(...r){let s="",l=!1;for(let _=r.length-1;_>=-1&&!l;_--){const g=_>=0?r[_]:C();c(g,"path"),g.length!==0&&(s=`${g}/${s}`,l=g.charCodeAt(0)===h)}return s=E(s,!l,"/",y),l?`/${s}`:s.length>0?s:"."},normalize(r){if(c(r,"path"),r.length===0)return".";const s=r.charCodeAt(0)===h,l=r.charCodeAt(r.length-1)===h;return r=E(r,!s,"/",y),r.length===0?s?"/":l?"./":".":(l&&(r+="/"),s?`/${r}`:r)},isAbsolute(r){return c(r,"path"),r.length>0&&r.charCodeAt(0)===h},join(...r){if(r.length===0)return".";let s;for(let l=0;l0&&(s===void 0?s=_:s+=`/${_}`)}return s===void 0?".":n.posix.normalize(s)},relative(r,s){if(c(r,"from"),c(s,"to"),r===s||(r=n.posix.resolve(r),s=n.posix.resolve(s),r===s))return"";const l=1,_=r.length,g=_-l,v=1,R=s.length-v,N=gN){if(s.charCodeAt(v+x)===h)return s.slice(v+x+1);if(x===0)return s.slice(v+x)}else g>N&&(r.charCodeAt(l+x)===h?D=x:x===0&&(D=0));let T="";for(x=l+D+1;x<=_;++x)(x===_||r.charCodeAt(x)===h)&&(T+=T.length===0?"..":"/..");return`${T}${s.slice(v+D)}`},toNamespacedPath(r){return r},dirname(r){if(c(r,"path"),r.length===0)return".";const s=r.charCodeAt(0)===h;let l=-1,_=!0;for(let g=r.length-1;g>=1;--g)if(r.charCodeAt(g)===h){if(!_){l=g;break}}else _=!1;return l===-1?s?"/":".":s&&l===1?"//":r.slice(0,l)},basename(r,s){s!==void 0&&c(s,"ext"),c(r,"path");let l=0,_=-1,g=!0,v;if(s!==void 0&&s.length>0&&s.length<=r.length){if(s===r)return"";let R=s.length-1,N=-1;for(v=r.length-1;v>=0;--v){const D=r.charCodeAt(v);if(D===h){if(!g){l=v+1;break}}else N===-1&&(g=!1,N=v+1),R>=0&&(D===s.charCodeAt(R)?--R===-1&&(_=v):(R=-1,_=N))}return l===_?_=N:_===-1&&(_=r.length),r.slice(l,_)}for(v=r.length-1;v>=0;--v)if(r.charCodeAt(v)===h){if(!g){l=v+1;break}}else _===-1&&(g=!1,_=v+1);return _===-1?"":r.slice(l,_)},extname(r){c(r,"path");let s=-1,l=0,_=-1,g=!0,v=0;for(let R=r.length-1;R>=0;--R){const N=r.charCodeAt(R);if(N===h){if(!g){l=R+1;break}continue}_===-1&&(g=!1,_=R+1),N===p?s===-1?s=R:v!==1&&(v=1):s!==-1&&(v=-1)}return s===-1||_===-1||v===0||v===1&&s===_-1&&s===l+1?"":r.slice(s,_)},format:S.bind(null,"/"),parse(r){c(r,"path");const s={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return s;const l=r.charCodeAt(0)===h;let _;l?(s.root="/",_=1):_=0;let g=-1,v=0,R=-1,N=!0,D=r.length-1,x=0;for(;D>=_;--D){const T=r.charCodeAt(D);if(T===h){if(!N){v=D+1;break}continue}R===-1&&(N=!1,R=D+1),T===p?g===-1?g=D:x!==1&&(x=1):g!==-1&&(x=-1)}if(R!==-1){const T=v===0&&l?1:v;g===-1||x===0||x===1&&g===R-1&&g===v+1?s.base=s.name=r.slice(T,R):(s.name=r.slice(T,g),s.base=r.slice(T,R),s.ext=r.slice(g,R))}return v>0?s.dir=r.slice(0,v-1):l&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null},n.posix.win32=n.win32.win32=n.win32,n.posix.posix=n.win32.posix=n.posix,n.normalize=m?n.win32.normalize:n.posix.normalize,n.resolve=m?n.win32.resolve:n.posix.resolve,n.relative=m?n.win32.relative:n.posix.relative,n.dirname=m?n.win32.dirname:n.posix.dirname,n.basename=m?n.win32.basename:n.posix.basename,n.extname=m?n.win32.extname:n.posix.extname,n.sep=m?n.win32.sep:n.posix.sep}),Y(X[18],J([0,1,63,17]),function(q,n,M,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.uriToFsPath=n.URI=void 0;const i=/^\w[\w\d+.-]*$/,d=/^\//,b=/^\/\//;function p(l,_){if(!l.scheme&&_)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${l.authority}", path: "${l.path}", query: "${l.query}", fragment: "${l.fragment}"}`);if(l.scheme&&!i.test(l.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(l.path){if(l.authority){if(!d.test(l.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(b.test(l.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function h(l,_){return!l&&!_?"file":l}function o(l,_){switch(l){case"https":case"http":case"file":_?_[0]!==e&&(_=e+_):_=e;break}return _}const L="",e="/",a=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(_){return _ instanceof u?!0:_?typeof _.authority=="string"&&typeof _.fragment=="string"&&typeof _.path=="string"&&typeof _.query=="string"&&typeof _.scheme=="string"&&typeof _.fsPath=="string"&&typeof _.with=="function"&&typeof _.toString=="function":!1}constructor(_,g,v,R,N,D=!1){typeof _=="object"?(this.scheme=_.scheme||L,this.authority=_.authority||L,this.path=_.path||L,this.query=_.query||L,this.fragment=_.fragment||L):(this.scheme=h(_,D),this.authority=g||L,this.path=o(this.scheme,v||L),this.query=R||L,this.fragment=N||L,p(this,D))}get fsPath(){return E(this,!1)}with(_){if(!_)return this;let{scheme:g,authority:v,path:R,query:N,fragment:D}=_;return g===void 0?g=this.scheme:g===null&&(g=L),v===void 0?v=this.authority:v===null&&(v=L),R===void 0?R=this.path:R===null&&(R=L),N===void 0?N=this.query:N===null&&(N=L),D===void 0?D=this.fragment:D===null&&(D=L),g===this.scheme&&v===this.authority&&R===this.path&&N===this.query&&D===this.fragment?this:new m(g,v,R,N,D)}static parse(_,g=!1){const v=a.exec(_);return v?new m(v[2]||L,s(v[4]||L),s(v[5]||L),s(v[7]||L),s(v[9]||L),g):new m(L,L,L,L,L)}static file(_){let g=L;if(A.isWindows&&(_=_.replace(/\\/g,e)),_[0]===e&&_[1]===e){const v=_.indexOf(e,2);v===-1?(g=_.substring(2),_=e):(g=_.substring(2,v),_=_.substring(v)||e)}return new m("file",g,_,L,L)}static from(_,g){return new m(_.scheme,_.authority,_.path,_.query,_.fragment,g)}static joinPath(_,...g){if(!_.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let v;return A.isWindows&&_.scheme==="file"?v=u.file(M.win32.join(E(_,!0),...g)).path:v=M.posix.join(_.path,...g),_.with({path:v})}toString(_=!1){return S(this,_)}toJSON(){return this}static revive(_){var g,v;if(_){if(_ instanceof u)return _;{const R=new m(_);return R._formatted=(g=_.external)!==null&&g!==void 0?g:null,R._fsPath=_._sep===c&&(v=_.fsPath)!==null&&v!==void 0?v:null,R}}else return _}}n.URI=u;const c=A.isWindows?1:void 0;class m extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=E(this,!1)),this._fsPath}toString(_=!1){return _?S(this,!0):(this._formatted||(this._formatted=S(this,!1)),this._formatted)}toJSON(){const _={$mid:1};return this._fsPath&&(_.fsPath=this._fsPath,_._sep=c),this._formatted&&(_.external=this._formatted),this.path&&(_.path=this.path),this.scheme&&(_.scheme=this.scheme),this.authority&&(_.authority=this.authority),this.query&&(_.query=this.query),this.fragment&&(_.fragment=this.fragment),_}}const f={[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 y(l,_,g){let v,R=-1;for(let N=0;N=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||_&&D===47||g&&D===91||g&&D===93||g&&D===58)R!==-1&&(v+=encodeURIComponent(l.substring(R,N)),R=-1),v!==void 0&&(v+=l.charAt(N));else{v===void 0&&(v=l.substr(0,N));const x=f[D];x!==void 0?(R!==-1&&(v+=encodeURIComponent(l.substring(R,N)),R=-1),v+=x):R===-1&&(R=N)}}return R!==-1&&(v+=encodeURIComponent(l.substring(R))),v!==void 0?v:l}function w(l){let _;for(let g=0;g1&&l.scheme==="file"?g=`//${l.authority}${l.path}`:l.path.charCodeAt(0)===47&&(l.path.charCodeAt(1)>=65&&l.path.charCodeAt(1)<=90||l.path.charCodeAt(1)>=97&&l.path.charCodeAt(1)<=122)&&l.path.charCodeAt(2)===58?_?g=l.path.substr(1):g=l.path[1].toLowerCase()+l.path.substr(2):g=l.path,A.isWindows&&(g=g.replace(/\//g,"\\")),g}n.uriToFsPath=E;function S(l,_){const g=_?w:y;let v="",{scheme:R,authority:N,path:D,query:x,fragment:T}=l;if(R&&(v+=R,v+=":"),(N||R==="file")&&(v+=e,v+=e),N){let F=N.indexOf("@");if(F!==-1){const B=N.substr(0,F);N=N.substr(F+1),F=B.lastIndexOf(":"),F===-1?v+=g(B,!1,!1):(v+=g(B.substr(0,F),!1,!1),v+=":",v+=g(B.substr(F+1),!1,!0)),v+="@"}N=N.toLowerCase(),F=N.lastIndexOf(":"),F===-1?v+=g(N,!1,!0):(v+=g(N.substr(0,F),!1,!0),v+=N.substr(F))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){const F=D.charCodeAt(1);F>=65&&F<=90&&(D=`/${String.fromCharCode(F+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){const F=D.charCodeAt(0);F>=65&&F<=90&&(D=`${String.fromCharCode(F+32)}:${D.substr(2)}`)}v+=g(D,!0,!1)}return x&&(v+="?",v+=g(x,!1,!1)),T&&(v+="#",v+=_?T:y(T,!1,!1)),v}function C(l){try{return decodeURIComponent(l)}catch{return l.length>3?l.substr(0,3)+C(l.substr(3)):l}}const r=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function s(l){return l.match(r)?l.replace(r,_=>C(_)):l}}),Y(X[67],J([0,1,5,9,13,14,17,6]),function(q,n,M,A,i,d,b,p){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.create=n.SimpleWorkerServer=n.SimpleWorkerClient=n.logOnceWebWorkerWarning=void 0;const h="$initialize";let o=!1;function L(s){b.isWeb&&(o||(o=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(s.message))}n.logOnceWebWorkerWarning=L;class e{constructor(l,_,g,v){this.vsWorker=l,this.req=_,this.method=g,this.args=v,this.type=0}}class a{constructor(l,_,g,v){this.vsWorker=l,this.seq=_,this.res=g,this.err=v,this.type=1}}class u{constructor(l,_,g,v){this.vsWorker=l,this.req=_,this.eventName=g,this.arg=v,this.type=2}}class c{constructor(l,_,g){this.vsWorker=l,this.req=_,this.event=g,this.type=3}}class m{constructor(l,_){this.vsWorker=l,this.req=_,this.type=4}}class f{constructor(l){this._workerId=-1,this._handler=l,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(l){this._workerId=l}sendMessage(l,_){const g=String(++this._lastSentReq);return new Promise((v,R)=>{this._pendingReplies[g]={resolve:v,reject:R},this._send(new e(this._workerId,g,l,_))})}listen(l,_){let g=null;const v=new A.Emitter({onWillAddFirstListener:()=>{g=String(++this._lastSentReq),this._pendingEmitters.set(g,v),this._send(new u(this._workerId,g,l,_))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(g),this._send(new m(this._workerId,g)),g=null}});return v.event}handleMessage(l){!l||!l.vsWorker||this._workerId!==-1&&l.vsWorker!==this._workerId||this._handleMessage(l)}_handleMessage(l){switch(l.type){case 1:return this._handleReplyMessage(l);case 0:return this._handleRequestMessage(l);case 2:return this._handleSubscribeEventMessage(l);case 3:return this._handleEventMessage(l);case 4:return this._handleUnsubscribeEventMessage(l)}}_handleReplyMessage(l){if(!this._pendingReplies[l.seq]){console.warn("Got reply to unknown seq");return}const _=this._pendingReplies[l.seq];if(delete this._pendingReplies[l.seq],l.err){let g=l.err;l.err.$isError&&(g=new Error,g.name=l.err.name,g.message=l.err.message,g.stack=l.err.stack),_.reject(g);return}_.resolve(l.res)}_handleRequestMessage(l){const _=l.req;this._handler.handleMessage(l.method,l.args).then(v=>{this._send(new a(this._workerId,_,v,void 0))},v=>{v.detail instanceof Error&&(v.detail=(0,M.transformErrorForSerialization)(v.detail)),this._send(new a(this._workerId,_,void 0,(0,M.transformErrorForSerialization)(v)))})}_handleSubscribeEventMessage(l){const _=l.req,g=this._handler.handleEvent(l.eventName,l.arg)(v=>{this._send(new c(this._workerId,_,v))});this._pendingEvents.set(_,g)}_handleEventMessage(l){if(!this._pendingEmitters.has(l.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(l.req).fire(l.event)}_handleUnsubscribeEventMessage(l){if(!this._pendingEvents.has(l.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(l.req).dispose(),this._pendingEvents.delete(l.req)}_send(l){const _=[];if(l.type===0)for(let g=0;g{this._protocol.handleMessage(F)},F=>{v?.(F)})),this._protocol=new f({sendMessage:(F,B)=>{this._worker.postMessage(F,B)},handleMessage:(F,B)=>{if(typeof g[F]!="function")return Promise.reject(new Error("Missing method "+F+" on main thread host."));try{return Promise.resolve(g[F].apply(g,B))}catch(V){return Promise.reject(V)}},handleEvent:(F,B)=>{if(E(F)){const V=g[F].call(g,B);if(typeof V!="function")throw new Error(`Missing dynamic event ${F} on main thread host.`);return V}if(w(F)){const V=g[F];if(typeof V!="function")throw new Error(`Missing event ${F} on main thread host.`);return V}throw new Error(`Malformed event name ${F}`)}}),this._protocol.setWorkerId(this._worker.getId());let R=null;const N=globalThis.require;typeof N<"u"&&typeof N.getConfig=="function"?R=N.getConfig():typeof globalThis.requirejs<"u"&&(R=globalThis.requirejs.s.contexts._.config);const D=(0,d.getAllMethodNames)(g);this._onModuleLoaded=this._protocol.sendMessage(h,[this._worker.getId(),JSON.parse(JSON.stringify(R)),_,D]);const x=(F,B)=>this._request(F,B),T=(F,B)=>this._protocol.listen(F,B);this._lazyProxy=new Promise((F,B)=>{v=B,this._onModuleLoaded.then(V=>{F(S(V,x,T))},V=>{B(V),this._onError("Worker failed to load "+_,V)})})}getProxyObject(){return this._lazyProxy}_request(l,_){return new Promise((g,v)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(l,_).then(g,v)},v)})}_onError(l,_){console.error(l),console.info(_)}}n.SimpleWorkerClient=y;function w(s){return s[0]==="o"&&s[1]==="n"&&p.isUpperAsciiLetter(s.charCodeAt(2))}function E(s){return/^onDynamic/.test(s)&&p.isUpperAsciiLetter(s.charCodeAt(9))}function S(s,l,_){const g=N=>function(){const D=Array.prototype.slice.call(arguments,0);return l(N,D)},v=N=>function(D){return _(N,D)},R={};for(const N of s){if(E(N)){R[N]=v(N);continue}if(w(N)){R[N]=_(N,void 0);continue}R[N]=g(N)}return R}class C{constructor(l,_){this._requestHandlerFactory=_,this._requestHandler=null,this._protocol=new f({sendMessage:(g,v)=>{l(g,v)},handleMessage:(g,v)=>this._handleMessage(g,v),handleEvent:(g,v)=>this._handleEvent(g,v)})}onmessage(l){this._protocol.handleMessage(l)}_handleMessage(l,_){if(l===h)return this.initialize(_[0],_[1],_[2],_[3]);if(!this._requestHandler||typeof this._requestHandler[l]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+l));try{return Promise.resolve(this._requestHandler[l].apply(this._requestHandler,_))}catch(g){return Promise.reject(g)}}_handleEvent(l,_){if(!this._requestHandler)throw new Error("Missing requestHandler");if(E(l)){const g=this._requestHandler[l].call(this._requestHandler,_);if(typeof g!="function")throw new Error(`Missing dynamic event ${l} on request handler.`);return g}if(w(l)){const g=this._requestHandler[l];if(typeof g!="function")throw new Error(`Missing event ${l} on request handler.`);return g}throw new Error(`Malformed event name ${l}`)}initialize(l,_,g,v){this._protocol.setWorkerId(l);const D=S(v,(x,T)=>this._protocol.sendMessage(x,T),(x,T)=>this._protocol.listen(x,T));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(D),Promise.resolve((0,d.getAllMethodNames)(this._requestHandler))):(_&&(typeof _.baseUrl<"u"&&delete _.baseUrl,typeof _.paths<"u"&&typeof _.paths.vs<"u"&&delete _.paths.vs,typeof _.trustedTypesPolicy<"u"&&delete _.trustedTypesPolicy,_.catchError=!0,globalThis.require.config(_)),new Promise((x,T)=>{(globalThis.require||q)([g],B=>{if(this._requestHandler=B.create(D),!this._requestHandler){T(new Error("No RequestHandler!"));return}x((0,d.getAllMethodNames)(this._requestHandler))},T)}))}}n.SimpleWorkerServer=C;function r(s){return new C(s,null)}n.create=r}),Y(X[64],J([19,61]),function(q,n){return q.create("vs/editor/common/languages",n)}),Y(X[65],J([0,1,40,18,2,59,64]),function(q,n,M,A,i,d,b){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TokenizationRegistry=n.LazyTokenizationSupport=n.InlayHintKind=n.Command=n.FoldingRangeKind=n.TextEdit=n.SymbolKinds=n.getAriaLabelForSymbol=n.symbolKindNames=n.isLocationLink=n.DocumentHighlightKind=n.SignatureHelpTriggerKind=n.SelectedSuggestionInfo=n.InlineCompletionTriggerKind=n.CompletionItemKinds=n.EncodedTokenizationResult=n.TokenizationResult=n.Token=void 0;class p{constructor(l,_,g){this.offset=l,this.type=_,this.language=g,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}n.Token=p;class h{constructor(l,_){this.tokens=l,this.endState=_,this._tokenizationResultBrand=void 0}}n.TokenizationResult=h;class o{constructor(l,_){this.tokens=l,this.endState=_,this._encodedTokenizationResultBrand=void 0}}n.EncodedTokenizationResult=o;var L;(function(s){const l=new Map;l.set(0,M.Codicon.symbolMethod),l.set(1,M.Codicon.symbolFunction),l.set(2,M.Codicon.symbolConstructor),l.set(3,M.Codicon.symbolField),l.set(4,M.Codicon.symbolVariable),l.set(5,M.Codicon.symbolClass),l.set(6,M.Codicon.symbolStruct),l.set(7,M.Codicon.symbolInterface),l.set(8,M.Codicon.symbolModule),l.set(9,M.Codicon.symbolProperty),l.set(10,M.Codicon.symbolEvent),l.set(11,M.Codicon.symbolOperator),l.set(12,M.Codicon.symbolUnit),l.set(13,M.Codicon.symbolValue),l.set(15,M.Codicon.symbolEnum),l.set(14,M.Codicon.symbolConstant),l.set(15,M.Codicon.symbolEnum),l.set(16,M.Codicon.symbolEnumMember),l.set(17,M.Codicon.symbolKeyword),l.set(27,M.Codicon.symbolSnippet),l.set(18,M.Codicon.symbolText),l.set(19,M.Codicon.symbolColor),l.set(20,M.Codicon.symbolFile),l.set(21,M.Codicon.symbolReference),l.set(22,M.Codicon.symbolCustomColor),l.set(23,M.Codicon.symbolFolder),l.set(24,M.Codicon.symbolTypeParameter),l.set(25,M.Codicon.account),l.set(26,M.Codicon.issues);function _(R){let N=l.get(R);return N||(console.info("No codicon found for CompletionItemKind "+R),N=M.Codicon.symbolProperty),N}s.toIcon=_;const g=new Map;g.set("method",0),g.set("function",1),g.set("constructor",2),g.set("field",3),g.set("variable",4),g.set("class",5),g.set("struct",6),g.set("interface",7),g.set("module",8),g.set("property",9),g.set("event",10),g.set("operator",11),g.set("unit",12),g.set("value",13),g.set("constant",14),g.set("enum",15),g.set("enum-member",16),g.set("enumMember",16),g.set("keyword",17),g.set("snippet",27),g.set("text",18),g.set("color",19),g.set("file",20),g.set("reference",21),g.set("customcolor",22),g.set("folder",23),g.set("type-parameter",24),g.set("typeParameter",24),g.set("account",25),g.set("issue",26);function v(R,N){let D=g.get(R);return typeof D>"u"&&!N&&(D=9),D}s.fromString=v})(L||(n.CompletionItemKinds=L={}));var e;(function(s){s[s.Automatic=0]="Automatic",s[s.Explicit=1]="Explicit"})(e||(n.InlineCompletionTriggerKind=e={}));class a{constructor(l,_,g,v){this.range=l,this.text=_,this.completionKind=g,this.isSnippetText=v}equals(l){return i.Range.lift(this.range).equalsRange(l.range)&&this.text===l.text&&this.completionKind===l.completionKind&&this.isSnippetText===l.isSnippetText}}n.SelectedSuggestionInfo=a;var u;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(u||(n.SignatureHelpTriggerKind=u={}));var c;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(c||(n.DocumentHighlightKind=c={}));function m(s){return s&&A.URI.isUri(s.uri)&&i.Range.isIRange(s.range)&&(i.Range.isIRange(s.originSelectionRange)||i.Range.isIRange(s.targetSelectionRange))}n.isLocationLink=m,n.symbolKindNames={[17]:(0,b.localize)(0,null),[16]:(0,b.localize)(1,null),[4]:(0,b.localize)(2,null),[13]:(0,b.localize)(3,null),[8]:(0,b.localize)(4,null),[9]:(0,b.localize)(5,null),[21]:(0,b.localize)(6,null),[23]:(0,b.localize)(7,null),[7]:(0,b.localize)(8,null),[0]:(0,b.localize)(9,null),[11]:(0,b.localize)(10,null),[10]:(0,b.localize)(11,null),[19]:(0,b.localize)(12,null),[5]:(0,b.localize)(13,null),[1]:(0,b.localize)(14,null),[2]:(0,b.localize)(15,null),[20]:(0,b.localize)(16,null),[15]:(0,b.localize)(17,null),[18]:(0,b.localize)(18,null),[24]:(0,b.localize)(19,null),[3]:(0,b.localize)(20,null),[6]:(0,b.localize)(21,null),[14]:(0,b.localize)(22,null),[22]:(0,b.localize)(23,null),[25]:(0,b.localize)(24,null),[12]:(0,b.localize)(25,null)};function f(s,l){return(0,b.localize)(26,null,s,n.symbolKindNames[l])}n.getAriaLabelForSymbol=f;var y;(function(s){const l=new Map;l.set(0,M.Codicon.symbolFile),l.set(1,M.Codicon.symbolModule),l.set(2,M.Codicon.symbolNamespace),l.set(3,M.Codicon.symbolPackage),l.set(4,M.Codicon.symbolClass),l.set(5,M.Codicon.symbolMethod),l.set(6,M.Codicon.symbolProperty),l.set(7,M.Codicon.symbolField),l.set(8,M.Codicon.symbolConstructor),l.set(9,M.Codicon.symbolEnum),l.set(10,M.Codicon.symbolInterface),l.set(11,M.Codicon.symbolFunction),l.set(12,M.Codicon.symbolVariable),l.set(13,M.Codicon.symbolConstant),l.set(14,M.Codicon.symbolString),l.set(15,M.Codicon.symbolNumber),l.set(16,M.Codicon.symbolBoolean),l.set(17,M.Codicon.symbolArray),l.set(18,M.Codicon.symbolObject),l.set(19,M.Codicon.symbolKey),l.set(20,M.Codicon.symbolNull),l.set(21,M.Codicon.symbolEnumMember),l.set(22,M.Codicon.symbolStruct),l.set(23,M.Codicon.symbolEvent),l.set(24,M.Codicon.symbolOperator),l.set(25,M.Codicon.symbolTypeParameter);function _(g){let v=l.get(g);return v||(console.info("No codicon found for SymbolKind "+g),v=M.Codicon.symbolProperty),v}s.toIcon=_})(y||(n.SymbolKinds=y={}));class w{}n.TextEdit=w;class E{static fromValue(l){switch(l){case"comment":return E.Comment;case"imports":return E.Imports;case"region":return E.Region}return new E(l)}constructor(l){this.value=l}}n.FoldingRangeKind=E,E.Comment=new E("comment"),E.Imports=new E("imports"),E.Region=new E("region");var S;(function(s){function l(_){return!_||typeof _!="object"?!1:typeof _.id=="string"&&typeof _.title=="string"}s.is=l})(S||(n.Command=S={}));var C;(function(s){s[s.Type=1]="Type",s[s.Parameter=2]="Parameter"})(C||(n.InlayHintKind=C={}));class r{constructor(l){this.createSupport=l,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(l=>{l&&l.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}n.LazyTokenizationSupport=r,n.TokenizationRegistry=new d.TokenizationRegistry}),Y(X[66],J([0,1,38,9,35,18,4,2,41,65,58]),function(q,n,M,A,i,d,b,p,h,o,L){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createMonacoBaseAPI=n.KeyMod=void 0;class e{static chord(c,m){return(0,i.KeyChord)(c,m)}}n.KeyMod=e,e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256;function a(){return{editor:void 0,languages:void 0,CancellationTokenSource:M.CancellationTokenSource,Emitter:A.Emitter,KeyCode:L.KeyCode,KeyMod:e,Position:b.Position,Range:p.Range,Selection:h.Selection,SelectionDirection:L.SelectionDirection,MarkerSeverity:L.MarkerSeverity,MarkerTag:L.MarkerTag,Uri:d.URI,Token:o.Token}}n.createMonacoBaseAPI=a}),Y(X[68],J([0,1,24,18,4,2,55,28,51,52,66,23,57,49,14,50]),function(q,n,M,A,i,d,b,p,h,o,L,e,a,u,c,m){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.create=n.EditorSimpleWorker=void 0;class f extends b.MirrorTextModel{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(S){const C=[];for(let r=0;rthis._lines.length)C=this._lines.length,r=this._lines[C-1].length+1,s=!0;else{const l=this._lines[C-1].length+1;r<1?(r=1,s=!0):r>l&&(r=l,s=!0)}return s?{lineNumber:C,column:r}:S}}class y{constructor(S,C){this._host=S,this._models=Object.create(null),this._foreignModuleFactory=C,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(S){return this._models[S]}_getModels(){const S=[];return Object.keys(this._models).forEach(C=>S.push(this._models[C])),S}acceptNewModel(S){this._models[S.url]=new f(A.URI.parse(S.url),S.lines,S.EOL,S.versionId)}acceptModelChanged(S,C){if(!this._models[S])return;this._models[S].onEvents(C)}acceptRemovedModel(S){this._models[S]&&delete this._models[S]}async computeUnicodeHighlights(S,C,r){const s=this._getModel(S);return s?a.UnicodeTextModelHighlighter.computeUnicodeHighlights(s,C,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async computeDiff(S,C,r,s){const l=this._getModel(S),_=this._getModel(C);return!l||!_?null:y.computeDiff(l,_,r,s)}static computeDiff(S,C,r,s){const l=s==="advanced"?u.linesDiffComputers.getDefault():u.linesDiffComputers.getLegacy(),_=S.getLinesContent(),g=C.getLinesContent(),v=l.computeDiff(_,g,r),R=v.changes.length>0?!1:this._modelsAreIdentical(S,C);function N(D){return D.map(x=>{var T;return[x.original.startLineNumber,x.original.endLineNumberExclusive,x.modified.startLineNumber,x.modified.endLineNumberExclusive,(T=x.innerChanges)===null||T===void 0?void 0:T.map(F=>[F.originalRange.startLineNumber,F.originalRange.startColumn,F.originalRange.endLineNumber,F.originalRange.endColumn,F.modifiedRange.startLineNumber,F.modifiedRange.startColumn,F.modifiedRange.endLineNumber,F.modifiedRange.endColumn])]})}return{identical:R,quitEarly:v.hitTimeout,changes:N(v.changes),moves:v.moves.map(D=>[D.lineRangeMapping.original.startLineNumber,D.lineRangeMapping.original.endLineNumberExclusive,D.lineRangeMapping.modified.startLineNumber,D.lineRangeMapping.modified.endLineNumberExclusive,N(D.changes)])}}static _modelsAreIdentical(S,C){const r=S.getLineCount(),s=C.getLineCount();if(r!==s)return!1;for(let l=1;l<=r;l++){const _=S.getLineContent(l),g=C.getLineContent(l);if(_!==g)return!1}return!0}async computeMoreMinimalEdits(S,C,r){const s=this._getModel(S);if(!s)return C;const l=[];let _;C=C.slice(0).sort((v,R)=>{if(v.range&&R.range)return d.Range.compareRangesUsingStarts(v.range,R.range);const N=v.range?0:1,D=R.range?0:1;return N-D});let g=0;for(let v=1;vy._diffLimit){l.push({range:v,text:R});continue}const x=(0,M.stringDiff)(D,R,r),T=s.offsetAt(d.Range.lift(v).getStartPosition());for(const F of x){const B=s.positionAt(T+F.originalStart),V=s.positionAt(T+F.originalStart+F.originalLength),k={text:R.substr(F.modifiedStart,F.modifiedLength),range:{startLineNumber:B.lineNumber,startColumn:B.column,endLineNumber:V.lineNumber,endColumn:V.column}};s.getValueInRange(k.range)!==k.text&&l.push(k)}}return typeof _=="number"&&l.push({eol:_,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),l}async computeLinks(S){const C=this._getModel(S);return C?(0,h.computeLinks)(C):null}async computeDefaultDocumentColors(S){const C=this._getModel(S);return C?(0,m.computeDefaultDocumentColors)(C):null}async textualSuggest(S,C,r,s){const l=new e.StopWatch,_=new RegExp(r,s),g=new Set;e:for(const v of S){const R=this._getModel(v);if(R){for(const N of R.words(_))if(!(N===C||!isNaN(Number(N)))&&(g.add(N),g.size>y._suggestionsLimit))break e}}return{words:Array.from(g),duration:l.elapsed()}}async computeWordRanges(S,C,r,s){const l=this._getModel(S);if(!l)return Object.create(null);const _=new RegExp(r,s),g=Object.create(null);for(let v=C.startLineNumber;vthis._host.fhr(g,v),_={host:(0,c.createProxyObject)(r,s),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(_,C),Promise.resolve((0,c.getAllMethodNames)(this._foreignModule))):new Promise((g,v)=>{q([S],R=>{this._foreignModule=R.create(_,C),g((0,c.getAllMethodNames)(this._foreignModule))},v)})}fmr(S,C){if(!this._foreignModule||typeof this._foreignModule[S]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+S));try{return Promise.resolve(this._foreignModule[S].apply(this._foreignModule,C))}catch(r){return Promise.reject(r)}}}n.EditorSimpleWorker=y,y._diffLimit=1e5,y._suggestionsLimit=1e4;function w(E){return new y(E,null)}n.create=w,typeof importScripts=="function"&&(globalThis.monaco=(0,L.createMonacoBaseAPI)())})}).call(this); //# sourceMappingURL=../../../../min-maps/vs/base/worker/workerMain.js.map