/*!----------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04) * Released under the MIT license * https://github.com/microsoft/vscode/blob/main/LICENSE.txt *-----------------------------------------------------------*/(function(){var Y=["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/assert","vs/base/common/event","vs/editor/common/core/lineRange","vs/base/common/arraysFind","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/map","vs/base/common/stopwatch","vs/base/common/diff/diff","vs/base/common/types","vs/base/common/codiconsUtil","vs/base/common/uint","vs/editor/common/core/characterClassifier","vs/editor/common/core/textLength","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/cancellation","vs/base/common/hash","vs/base/common/codiconsLibrary","vs/base/common/codicons","vs/editor/common/core/selection","vs/editor/common/core/positionToOffset","vs/editor/common/core/textEdit","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/findSectionHeaders","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 r=[],n=0,x=q.length;n=0?!0:typeof process<"u"?process.platform==="win32":!1}}q.Environment=r})(ue||(ue={}));var ue;(function(q){class r{constructor(b,f,v){this.type=b,this.detail=f,this.timestamp=v}}q.LoaderEvent=r;class n{constructor(b){this._events=[new r(1,"",b)]}record(b,f){this._events.push(new r(b,f,q.Utilities.getHighPerformanceTimestamp()))}getEvents(){return this._events}}q.LoaderEventRecorder=n;class x{record(b,f){}getEvents(){return[]}}x.INSTANCE=new x,q.NullLoaderEventRecorder=x})(ue||(ue={}));var ue;(function(q){class r{static fileUriToFilePath(x,R){if(R=decodeURI(R).replace(/%23/g,"#"),x){if(/^file:\/\/\//.test(R))return R.substr(8);if(/^file:\/\//.test(R))return R.substr(5)}else if(/^file:\/\//.test(R))return R.substr(7);return R}static startsWith(x,R){return x.length>=R.length&&x.substr(0,R.length)===R}static endsWith(x,R){return x.length>=R.length&&x.substr(x.length-R.length)===R}static containsQueryString(x){return/^[^\#]*\?/gi.test(x)}static isAbsolutePath(x){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(x)}static forEachProperty(x,R){if(x){let b;for(b in x)x.hasOwnProperty(b)&&R(b,x[b])}}static isEmpty(x){let R=!0;return r.forEachProperty(x,()=>{R=!1}),R}static recursiveClone(x){if(!x||typeof x!="object"||x instanceof RegExp||!Array.isArray(x)&&Object.getPrototypeOf(x)!==Object.prototype)return x;let R=Array.isArray(x)?[]:{};return r.forEachProperty(x,(b,f)=>{f&&typeof f=="object"?R[b]=r.recursiveClone(f):R[b]=f}),R}static generateAnonymousModule(){return"===anonymous"+r.NEXT_ANONYMOUS_ID+++"==="}static isAnonymousModule(x){return r.startsWith(x,"===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()}}r.NEXT_ANONYMOUS_ID=1,r.PERFORMANCE_NOW_PROBED=!1,r.HAS_PERFORMANCE_NOW=!1,q.Utilities=r})(ue||(ue={}));var ue;(function(q){function r(R){if(R instanceof Error)return R;const b=new Error(R.message||String(R)||"Unknown Error");return R.stack&&(b.stack=R.stack),b}q.ensureError=r;class n{static validateConfigurationOptions(b){function f(v){if(v.phase==="loading"){console.error('Loading "'+v.moduleId+'" failed'),console.error(v),console.error("Here are the modules that depend on it:"),console.error(v.neededBy);return}if(v.phase==="factory"){console.error('The factory function of "'+v.moduleId+'" has thrown an exception'),console.error(v),console.error("Here are the modules that depend on it:"),console.error(v.neededBy);return}}if(b=b||{},typeof b.baseUrl!="string"&&(b.baseUrl=""),typeof b.isBuild!="boolean"&&(b.isBuild=!1),typeof b.paths!="object"&&(b.paths={}),typeof b.config!="object"&&(b.config={}),typeof b.catchError>"u"&&(b.catchError=!1),typeof b.recordStats>"u"&&(b.recordStats=!1),typeof b.urlArgs!="string"&&(b.urlArgs=""),typeof b.onError!="function"&&(b.onError=f),Array.isArray(b.ignoreDuplicateModules)||(b.ignoreDuplicateModules=[]),b.baseUrl.length>0&&(q.Utilities.endsWith(b.baseUrl,"/")||(b.baseUrl+="/")),typeof b.cspNonce!="string"&&(b.cspNonce=""),typeof b.preferScriptTags>"u"&&(b.preferScriptTags=!1),b.nodeCachedData&&typeof b.nodeCachedData=="object"&&(typeof b.nodeCachedData.seed!="string"&&(b.nodeCachedData.seed="seed"),(typeof b.nodeCachedData.writeDelay!="number"||b.nodeCachedData.writeDelay<0)&&(b.nodeCachedData.writeDelay=1e3*7),!b.nodeCachedData.path||typeof b.nodeCachedData.path!="string")){const v=r(new Error("INVALID cached data configuration, 'path' MUST be set"));v.phase="configuration",b.onError(v),b.nodeCachedData=void 0}return b}static mergeConfigurationOptions(b=null,f=null){let v=q.Utilities.recursiveClone(f||{});return q.Utilities.forEachProperty(b,(o,a)=>{o==="ignoreDuplicateModules"&&typeof v.ignoreDuplicateModules<"u"?v.ignoreDuplicateModules=v.ignoreDuplicateModules.concat(a):o==="paths"&&typeof v.paths<"u"?q.Utilities.forEachProperty(a,(m,e)=>v.paths[m]=e):o==="config"&&typeof v.config<"u"?q.Utilities.forEachProperty(a,(m,e)=>v.config[m]=e):v[o]=q.Utilities.recursiveClone(a)}),n.validateConfigurationOptions(v)}}q.ConfigurationOptionsUtil=n;class x{constructor(b,f){if(this._env=b,this.options=n.mergeConfigurationOptions(f),this._createIgnoreDuplicateModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""&&this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){let v=this.options.nodeRequire.main.filename,o=Math.max(v.lastIndexOf("/"),v.lastIndexOf("\\"));this.options.baseUrl=v.substring(0,o+1)}}_createIgnoreDuplicateModulesMap(){this.ignoreDuplicateModulesMap={};for(let b=0;b{Array.isArray(f)?this.sortedPathsRules.push({from:b,to:f}):this.sortedPathsRules.push({from:b,to:[f]})}),this.sortedPathsRules.sort((b,f)=>f.from.length-b.from.length)}cloneAndMerge(b){return new x(this._env,n.mergeConfigurationOptions(b,this.options))}getOptionsLiteral(){return this.options}_applyPaths(b){let f;for(let v=0,o=this.sortedPathsRules.length;vthis.triggerCallback(m),u=>this.triggerErrorback(m,u))}triggerCallback(a){let m=this._callbackMap[a];delete this._callbackMap[a];for(let e=0;e{a.removeEventListener("load",s),a.removeEventListener("error",u)},s=d=>{c(),m()},u=d=>{c(),e(d)};a.addEventListener("load",s),a.addEventListener("error",u)}load(a,m,e,c){if(/^node\|/.test(m)){let s=a.getConfig().getOptionsLiteral(),u=f(a.getRecorder(),s.nodeRequire||q.global.nodeRequire),d=m.split("|"),h=null;try{h=u(d[1])}catch(S){c(S);return}a.enqueueDefineAnonymousModule([],()=>h),e()}else{let s=document.createElement("script");s.setAttribute("async","async"),s.setAttribute("type","text/javascript"),this.attachListeners(s,e,c);const{trustedTypesPolicy:u}=a.getConfig().getOptionsLiteral();u&&(m=u.createScriptURL(m)),s.setAttribute("src",m);const{cspNonce:d}=a.getConfig().getOptionsLiteral();d&&s.setAttribute("nonce",d),document.getElementsByTagName("head")[0].appendChild(s)}}}function x(o){const{trustedTypesPolicy:a}=o.getConfig().getOptionsLiteral();try{return(a?self.eval(a.createScript("","true")):new Function("true")).call(self),!0}catch{return!1}}class R{constructor(){this._cachedCanUseEval=null}_canUseEval(a){return this._cachedCanUseEval===null&&(this._cachedCanUseEval=x(a)),this._cachedCanUseEval}load(a,m,e,c){if(/^node\|/.test(m)){const s=a.getConfig().getOptionsLiteral(),u=f(a.getRecorder(),s.nodeRequire||q.global.nodeRequire),d=m.split("|");let h=null;try{h=u(d[1])}catch(S){c(S);return}a.enqueueDefineAnonymousModule([],function(){return h}),e()}else{const{trustedTypesPolicy:s}=a.getConfig().getOptionsLiteral();if(!(/^((http:)|(https:)|(file:))/.test(m)&&m.substring(0,self.origin.length)!==self.origin)&&this._canUseEval(a)){fetch(m).then(d=>{if(d.status!==200)throw new Error(d.statusText);return d.text()}).then(d=>{d=`${d} //# sourceURL=${m}`,(s?self.eval(s.createScript("",d)):new Function(d)).call(self),e()}).then(void 0,c);return}try{s&&(m=s.createScriptURL(m)),importScripts(m),e()}catch(d){c(d)}}}}class b{constructor(a){this._env=a,this._didInitialize=!1,this._didPatchNodeRequire=!1}_init(a){this._didInitialize||(this._didInitialize=!0,this._fs=a("fs"),this._vm=a("vm"),this._path=a("path"),this._crypto=a("crypto"))}_initNodeRequire(a,m){const{nodeCachedData:e}=m.getConfig().getOptionsLiteral();if(!e||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;const c=this,s=a("module");function u(d){const h=d.constructor;let S=function(y){try{return d.require(y)}finally{}};return S.resolve=function(y,A){return h._resolveFilename(y,d,!1,A)},S.resolve.paths=function(y){return h._resolveLookupPaths(y,d)},S.main=process.mainModule,S.extensions=h._extensions,S.cache=h._cache,S}s.prototype._compile=function(d,h){const S=s.wrap(d.replace(/^#!.*/,"")),C=m.getRecorder(),y=c._getCachedDataPath(e,h),A={filename:h};let p;try{const N=c._fs.readFileSync(y);p=N.slice(0,16),A.cachedData=N.slice(16),C.record(60,y)}catch{C.record(61,y)}const i=new c._vm.Script(S,A),l=i.runInThisContext(A),g=c._path.dirname(h),w=u(this),_=[this.exports,w,this,h,g,process,Ae,Buffer],E=l.apply(this.exports,_);return c._handleCachedData(i,S,y,!A.cachedData,m),c._verifyCachedData(i,S,y,p,m),E}}load(a,m,e,c){const s=a.getConfig().getOptionsLiteral(),u=f(a.getRecorder(),s.nodeRequire||q.global.nodeRequire),d=s.nodeInstrumenter||function(S){return S};this._init(u),this._initNodeRequire(u,a);let h=a.getRecorder();if(/^node\|/.test(m)){let S=m.split("|"),C=null;try{C=u(S[1])}catch(y){c(y);return}a.enqueueDefineAnonymousModule([],()=>C),e()}else{m=q.Utilities.fileUriToFilePath(this._env.isWindows,m);const S=this._path.normalize(m),C=this._getElectronRendererScriptPathOrUri(S),y=!!s.nodeCachedData,A=y?this._getCachedDataPath(s.nodeCachedData,m):void 0;this._readSourceAndCachedData(S,A,h,(p,i,l,g)=>{if(p){c(p);return}let w;i.charCodeAt(0)===b._BOM?w=b._PREFIX+i.substring(1)+b._SUFFIX:w=b._PREFIX+i+b._SUFFIX,w=d(w,S);const _={filename:C,cachedData:l},E=this._createAndEvalScript(a,w,_,e,c);this._handleCachedData(E,w,A,y&&!l,a),this._verifyCachedData(E,w,A,g,a)})}}_createAndEvalScript(a,m,e,c,s){const u=a.getRecorder();u.record(31,e.filename);const d=new this._vm.Script(m,e),h=d.runInThisContext(e),S=a.getGlobalAMDDefineFunc();let C=!1;const y=function(){return C=!0,S.apply(null,arguments)};return y.amd=S.amd,h.call(q.global,a.getGlobalAMDRequireFunc(),y,e.filename,this._path.dirname(e.filename)),u.record(32,e.filename),C?c():s(new Error(`Didn't receive define call in ${e.filename}!`)),d}_getElectronRendererScriptPathOrUri(a){if(!this._env.isElectronRenderer)return a;let m=a.match(/^([a-z])\:(.*)/i);return m?`file:///${(m[1].toUpperCase()+":"+m[2]).replace(/\\/g,"/")}`:`file://${a}`}_getCachedDataPath(a,m){const e=this._crypto.createHash("md5").update(m,"utf8").update(a.seed,"utf8").update(process.arch,"").digest("hex"),c=this._path.basename(m).replace(/\.js$/,"");return this._path.join(a.path,`${c}-${e}.code`)}_handleCachedData(a,m,e,c,s){a.cachedDataRejected?this._fs.unlink(e,u=>{s.getRecorder().record(62,e),this._createAndWriteCachedData(a,m,e,s),u&&s.getConfig().onError(u)}):c&&this._createAndWriteCachedData(a,m,e,s)}_createAndWriteCachedData(a,m,e,c){let s=Math.ceil(c.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),u=-1,d=0,h;const S=()=>{setTimeout(()=>{h||(h=this._crypto.createHash("md5").update(m,"utf8").digest());const C=a.createCachedData();if(!(C.length===0||C.length===u||d>=5)){if(C.length{y&&c.getConfig().onError(y),c.getRecorder().record(63,e),S()})}},s*Math.pow(4,d++))};S()}_readSourceAndCachedData(a,m,e,c){if(!m)this._fs.readFile(a,{encoding:"utf8"},c);else{let s,u,d,h=2;const S=C=>{C?c(C):--h===0&&c(void 0,s,u,d)};this._fs.readFile(a,{encoding:"utf8"},(C,y)=>{s=y,S(C)}),this._fs.readFile(m,(C,y)=>{!C&&y&&y.length>0?(d=y.slice(0,16),u=y.slice(16),e.record(60,m)):e.record(61,m),S()})}}_verifyCachedData(a,m,e,c,s){c&&(a.cachedDataRejected||setTimeout(()=>{const u=this._crypto.createHash("md5").update(m,"utf8").digest();c.equals(u)||(s.getConfig().onError(new Error(`FAILED TO VERIFY CACHED DATA, deleting stale '${e}' now, but a RESTART IS REQUIRED`)),this._fs.unlink(e,d=>{d&&s.getConfig().onError(d)}))},Math.ceil(5e3*(1+Math.random()))))}}b._BOM=65279,b._PREFIX="(function (require, define, __filename, __dirname) { ",b._SUFFIX=` });`;function f(o,a){if(a.__$__isRecorded)return a;const m=function(c){o.record(33,c);try{return a(c)}finally{o.record(34,c)}};return m.__$__isRecorded=!0,m}q.ensureRecordedNodeRequire=f;function v(o){return new r(o)}q.createScriptLoader=v})(ue||(ue={}));var ue;(function(q){class r{constructor(o){let a=o.lastIndexOf("/");a!==-1?this.fromModulePath=o.substr(0,a+1):this.fromModulePath=""}static _normalizeModuleId(o){let a=o,m;for(m=/\/\.\//;m.test(a);)a=a.replace(m,"/");for(a=a.replace(/^\.\//g,""),m=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;m.test(a);)a=a.replace(m,"/");return a=a.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),a}resolveModule(o){let a=o;return q.Utilities.isAbsolutePath(a)||(q.Utilities.startsWith(a,"./")||q.Utilities.startsWith(a,"../"))&&(a=r._normalizeModuleId(this.fromModulePath+a)),a}}r.ROOT=new r(""),q.ModuleIdResolver=r;class n{constructor(o,a,m,e,c,s){this.id=o,this.strId=a,this.dependencies=m,this._callback=e,this._errorback=c,this.moduleIdResolver=s,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}static _safeInvokeFunction(o,a){try{return{returnedValue:o.apply(q.global,a),producedError:null}}catch(m){return{returnedValue:null,producedError:m}}}static _invokeFactory(o,a,m,e){return o.shouldInvokeFactory(a)?o.shouldCatchError()?this._safeInvokeFunction(m,e):{returnedValue:m.apply(q.global,e),producedError:null}:{returnedValue:null,producedError:null}}complete(o,a,m,e){this._isComplete=!0;let c=null;if(this._callback)if(typeof this._callback=="function"){o.record(21,this.strId);let s=n._invokeFactory(a,this.strId,this._callback,m);c=s.producedError,o.record(22,this.strId),!c&&typeof s.returnedValue<"u"&&(!this.exportsPassedIn||q.Utilities.isEmpty(this.exports))&&(this.exports=s.returnedValue)}else this.exports=this._callback;if(c){let s=q.ensureError(c);s.phase="factory",s.moduleId=this.strId,s.neededBy=e(this.id),this.error=s,a.onError(s)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null}onDependencyError(o){return this._isComplete=!0,this.error=o,this._errorback?(this._errorback(o),!0):!1}isComplete(){return this._isComplete}}q.Module=n;class x{constructor(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}getMaxModuleId(){return this._nextId}getModuleId(o){let a=this._strModuleIdToIntModuleId.get(o);return typeof a>"u"&&(a=this._nextId++,this._strModuleIdToIntModuleId.set(o,a),this._intModuleIdToStrModuleId[a]=o),a}getStrModuleId(o){return this._intModuleIdToStrModuleId[o]}}class R{constructor(o){this.id=o}}R.EXPORTS=new R(0),R.MODULE=new R(1),R.REQUIRE=new R(2),q.RegularDependency=R;class b{constructor(o,a,m){this.id=o,this.pluginId=a,this.pluginParam=m}}q.PluginDependency=b;class f{constructor(o,a,m,e,c=0){this._env=o,this._scriptLoader=a,this._loaderAvailableTimestamp=c,this._defineFunc=m,this._requireFunc=e,this._moduleIdProvider=new x,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 f(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)}getGlobalAMDDefineFunc(){return this._defineFunc}getGlobalAMDRequireFunc(){return this._requireFunc}static _findRelevantLocationInStack(o,a){let m=s=>s.replace(/\\/g,"/"),e=m(o),c=a.split(/\n/);for(let s=0;sthis._moduleIdProvider.getStrModuleId(h.id))),this._resolve(d)}_normalizeDependency(o,a){if(o==="exports")return R.EXPORTS;if(o==="module")return R.MODULE;if(o==="require")return R.REQUIRE;let m=o.indexOf("!");if(m>=0){let e=a.resolveModule(o.substr(0,m)),c=a.resolveModule(o.substr(m+1)),s=this._moduleIdProvider.getModuleId(e+"!"+c),u=this._moduleIdProvider.getModuleId(e);return new b(s,u,c)}return new R(this._moduleIdProvider.getModuleId(a.resolveModule(o)))}_normalizeDependencies(o,a){let m=[],e=0;for(let c=0,s=o.length;cthis._moduleIdProvider.getStrModuleId(s));const c=q.ensureError(a);return c.phase="loading",c.moduleId=m,c.neededBy=e,c}_onLoadError(o,a){const m=this._createLoadError(o,a);this._modules2[o]||(this._modules2[o]=new n(o,this._moduleIdProvider.getStrModuleId(o),[],()=>{},null,null));let e=[];for(let u=0,d=this._moduleIdProvider.getMaxModuleId();u0;){let u=s.shift(),d=this._modules2[u];d&&(c=d.onDependencyError(m)||c);let h=this._inverseDependencies2[u];if(h)for(let S=0,C=h.length;S0;){let u=c.shift().dependencies;if(u)for(let d=0,h=u.length;dthis._relativeRequire(o,m,e,c);return a.toUrl=m=>this._config.requireToUrl(o.resolveModule(m)),a.getStats=()=>this.getLoaderEvents(),a.hasDependencyCycle=()=>this._hasDependencyCycle,a.config=(m,e=!1)=>{this.configure(m,e)},a.__$__nodeRequire=q.global.nodeRequire,a}_loadModule(o){if(this._modules2[o]||this._knownModules2[o])return;this._knownModules2[o]=!0;let a=this._moduleIdProvider.getStrModuleId(o),m=this._config.moduleIdToPaths(a),e=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(a.indexOf("/")===-1||e.test(a))&&m.push("node|"+a);let c=-1,s=u=>{if(c++,c>=m.length)this._onLoadError(o,u);else{let d=m[c],h=this.getRecorder();if(this._config.isBuild()&&d==="empty:"){this._buildInfoPath[o]=d,this.defineModule(this._moduleIdProvider.getStrModuleId(o),[],null,null,null),this._onLoad(o);return}h.record(10,d),this._scriptLoader.load(this,d,()=>{this._config.isBuild()&&(this._buildInfoPath[o]=d),h.record(11,d),this._onLoad(o)},S=>{h.record(12,d),s(S)})}};s(null)}_loadPluginDependency(o,a){if(this._modules2[a.id]||this._knownModules2[a.id])return;this._knownModules2[a.id]=!0;let m=e=>{this.defineModule(this._moduleIdProvider.getStrModuleId(a.id),[],e,null,null)};m.error=e=>{this._config.onError(this._createLoadError(a.id,e))},o.load(a.pluginParam,this._createRequire(r.ROOT),m,this._config.getOptionsLiteral())}_resolve(o){let a=o.dependencies;if(a)for(let m=0,e=a.length;mthis._moduleIdProvider.getStrModuleId(d)).join(` => `)),o.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[c.id]=this._inverseDependencies2[c.id]||[],this._inverseDependencies2[c.id].push(o.id),c instanceof b){let u=this._modules2[c.pluginId];if(u&&u.isComplete()){this._loadPluginDependency(u.exports,c);continue}let d=this._inversePluginDependencies2.get(c.pluginId);d||(d=[],this._inversePluginDependencies2.set(c.pluginId,d)),d.push(c),this._loadModule(c.pluginId);continue}this._loadModule(c.id)}o.unresolvedDependenciesCount===0&&this._onModuleComplete(o)}_onModuleComplete(o){let a=this.getRecorder();if(o.isComplete())return;let m=o.dependencies,e=[];if(m)for(let d=0,h=m.length;dthis._config.getConfigForModule(o.strId)};continue}if(S===R.REQUIRE){e[d]=this._createRequire(o.moduleIdResolver);continue}let C=this._modules2[S.id];if(C){e[d]=C.exports;continue}e[d]=null}const c=d=>(this._inverseDependencies2[d]||[]).map(h=>this._moduleIdProvider.getStrModuleId(h));o.complete(a,this._config,e,c);let s=this._inverseDependencies2[o.id];if(this._inverseDependencies2[o.id]=null,s)for(let d=0,h=s.length;d"u"&&f())})(ue||(ue={})),X(Y[19],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.localize=m,r.localize2=e,r.getConfiguredDefaultLocale=c,r.setPseudoTranslation=s,r.create=u,r.load=d;let n=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const x="i-default";function R(h,S){let C;return S.length===0?C=h:C=h.replace(/\{(\d+)\}/g,(y,A)=>{const p=A[0],i=S[p];let l=y;return typeof i=="string"?l=i:(typeof i=="number"||typeof i=="boolean"||i===void 0||i===null)&&(l=String(i)),l}),n&&(C="\uFF3B"+C.replace(/[aouei]/g,"$&$&")+"\uFF3D"),C}function b(h,S){let C=h[S];return C||(C=h["*"],C)?C:null}function f(h){return h.charAt(h.length-1)==="/"?h:h+"/"}async function v(h,S,C){const y=f(h)+f(S)+"vscode/"+f(C),A=await fetch(y);if(A.ok)return await A.json();throw new Error(`${A.status} - ${A.statusText}`)}function o(h){return function(S,C){const y=Array.prototype.slice.call(arguments,2);return R(h[S],y)}}function a(h){return(S,C,...y)=>({value:R(h[S],y),original:R(C,y)})}function m(h,S,...C){return R(S,C)}function e(h,S,...C){const y=R(S,C);return{value:y,original:y}}function c(h){}function s(h){n=h}function u(h,S){var C;return{localize:o(S[h]),localize2:a(S[h]),getConfiguredDefaultLocale:(C=S.getConfiguredDefaultLocale)!==null&&C!==void 0?C:y=>{}}}function d(h,S,C,y){var A;const p=(A=y["vs/nls"])!==null&&A!==void 0?A:{};if(!h||h.length===0)return C({localize:m,localize2:e,getConfiguredDefaultLocale:()=>{var _;return(_=p.availableLanguages)===null||_===void 0?void 0:_["*"]}});const i=p.availableLanguages?b(p.availableLanguages,h):null,l=i===null||i===x;let g=".nls";l||(g=g+"."+i);const w=_=>{Array.isArray(_)?(_.localize=o(_),_.localize2=a(_)):(_.localize=o(_[h]),_.localize2=a(_[h])),_.getConfiguredDefaultLocale=()=>{var E;return(E=p.availableLanguages)===null||E===void 0?void 0:E["*"]},C(_)};typeof p.loadBundle=="function"?p.loadBundle(h,i,(_,E)=>{_?S([h+".nls"],w):w(E)}):p.translationServiceUrl&&!l?(async()=>{var _;try{const E=await v(p.translationServiceUrl,i,h);return w(E)}catch(E){if(!i.includes("-"))return console.error(E),S([h+".nls"],w);try{const N=i.split("-")[0],L=await v(p.translationServiceUrl,N,h);return(_=p.availableLanguages)!==null&&_!==void 0||(p.availableLanguages={}),p.availableLanguages["*"]=N,w(L)}catch(N){return console.error(N),S([h+".nls"],w)}}})():S([h+g],w,_=>{if(g===".nls"){console.error("Failed trying to load default language strings",_);return}console.error(`Failed to load message bundle for language ${i}. Falling back to the default language:`,_),S([h+".nls"],w)})}}),function(){const q=globalThis.MonacoEnvironment,r=q&&q.baseUrl?q.baseUrl:"../../../";function n(m,e){var c;if(q?.createTrustedTypesPolicy)try{return q.createTrustedTypesPolicy(m,e)}catch(s){console.warn(s);return}try{return(c=self.trustedTypes)===null||c===void 0?void 0:c.createPolicy(m,e)}catch(s){console.warn(s);return}}const x=n("amdLoader",{createScriptURL:m=>m,createScript:(m,...e)=>{const c=e.slice(0,-1).join(","),s=e.pop().toString();return`(function anonymous(${c}) { ${s} })`}});function R(){try{return(x?globalThis.eval(x.createScript("","true")):new Function("true")).call(globalThis),!0}catch{return!1}}function b(){return new Promise((m,e)=>{if(typeof globalThis.define=="function"&&globalThis.define.amd)return m();const c=r+"vs/loader.js";if(!(/^((http:)|(https:)|(file:))/.test(c)&&c.substring(0,globalThis.origin.length)!==globalThis.origin)&&R()){fetch(c).then(u=>{if(u.status!==200)throw new Error(u.statusText);return u.text()}).then(u=>{u=`${u} //# sourceURL=${c}`,(x?globalThis.eval(x.createScript("",u)):new Function(u)).call(globalThis),m()}).then(void 0,e);return}x?importScripts(x.createScriptURL(c)):importScripts(c),m()})}function f(){require.config({baseUrl:r,catchError:!0,trustedTypesPolicy:x,amdModulesPattern:/^vs\//})}function v(m){b().then(()=>{f(),require([m],function(e){setTimeout(function(){const c=e.create((s,u)=>{globalThis.postMessage(s,u)},null);for(globalThis.onmessage=s=>c.onmessage(s.data,s.ports);a.length>0;){const s=a.shift();c.onmessage(s.data,s.ports)}},0)})})}typeof globalThis.define=="function"&&globalThis.define.amd&&f();let o=!0;const a=[];globalThis.onmessage=m=>{if(!o){a.push(m);return}o=!1,v(m.data)}}(),X(Y[7],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Permutation=r.CallbackIterable=r.ArrayQueue=r.booleanComparator=r.numberComparator=r.CompareResult=void 0,r.tail=n,r.tail2=x,r.equals=R,r.removeFastWithoutKeepingOrder=b,r.binarySearch=f,r.binarySearch2=v,r.quickSelect=o,r.groupBy=a,r.groupAdjacentBy=m,r.forEachAdjacent=e,r.forEachWithNeighbors=c,r.coalesce=s,r.coalesceInPlace=u,r.isFalsyOrEmpty=d,r.isNonEmptyArray=h,r.distinct=S,r.firstOrDefault=C,r.range=y,r.arrayInsert=A,r.pushToStart=p,r.pushToEnd=i,r.pushMany=l,r.asArray=g,r.insertInto=w,r.splice=_,r.compareBy=L,r.tieBreakComparators=M,r.reverseOrder=k;function n(T,I=0){return T[T.length-(1+I)]}function x(T){if(T.length===0)throw new Error("Invalid tail call");return[T.slice(0,T.length-1),T[T.length-1]]}function R(T,I,W=(V,H)=>V===H){if(T===I)return!0;if(!T||!I||T.length!==I.length)return!1;for(let V=0,H=T.length;VW(T[V],I))}function v(T,I){let W=0,V=T-1;for(;W<=V;){const H=(W+V)/2|0,U=I(H);if(U<0)W=H+1;else if(U>0)V=H-1;else return H}return-(W+1)}function o(T,I,W){if(T=T|0,T>=I.length)throw new TypeError("invalid index");const V=I[Math.floor(I.length*Math.random())],H=[],U=[],se=[];for(const he of I){const de=W(he,V);de<0?H.push(he):de>0?U.push(he):se.push(he)}return T!!I)}function u(T){let I=0;for(let W=0;W0}function S(T,I=W=>W){const W=new Set;return T.filter(V=>{const H=I(V);return W.has(H)?!1:(W.add(H),!0)})}function C(T,I){return T.length>0?T[0]:I}function y(T,I){let W=typeof I=="number"?T:0;typeof I=="number"?W=T:(W=0,I=T);const V=[];if(W<=I)for(let H=W;HI;H--)V.push(H);return V}function A(T,I,W){const V=T.slice(0,I),H=T.slice(I);return V.concat(W,H)}function p(T,I){const W=T.indexOf(I);W>-1&&(T.splice(W,1),T.unshift(I))}function i(T,I){const W=T.indexOf(I);W>-1&&(T.splice(W,1),T.push(I))}function l(T,I){for(const W of I)T.push(W)}function g(T){return Array.isArray(T)?T:[T]}function w(T,I,W){const V=E(T,I),H=T.length,U=W.length;T.length=H+U;for(let se=H-1;se>=V;se--)T[se+U]=T[se];for(let se=0;se0}T.isGreaterThan=V;function H(U){return U===0}T.isNeitherLessOrGreaterThan=H,T.greaterThan=1,T.lessThan=-1,T.neitherLessOrGreaterThan=0})(N||(r.CompareResult=N={}));function L(T,I){return(W,V)=>I(T(W),T(V))}function M(...T){return(I,W)=>{for(const V of T){const H=V(I,W);if(!N.isNeitherLessOrGreaterThan(H))return H}return N.neitherLessOrGreaterThan}}const D=(T,I)=>T-I;r.numberComparator=D;const F=(T,I)=>(0,r.numberComparator)(T?1:0,I?1:0);r.booleanComparator=F;function k(T){return(I,W)=>-T(I,W)}class O{constructor(I){this.items=I,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(I){let W=this.firstIdx;for(;W=0&&I(this.items[W]);)W--;const V=W===this.lastIdx?null:this.items.slice(W+1,this.lastIdx+1);return this.lastIdx=W,V}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const I=this.items[this.firstIdx];return this.firstIdx++,I}takeCount(I){const W=this.items.slice(this.firstIdx,this.firstIdx+I);return this.firstIdx+=I,W}}r.ArrayQueue=O;class z{constructor(I){this.iterate=I}toArray(){const I=[];return this.iterate(W=>(I.push(W),!0)),I}filter(I){return new z(W=>this.iterate(V=>I(V)?W(V):!0))}map(I){return new z(W=>this.iterate(V=>W(I(V))))}findLast(I){let W;return this.iterate(V=>(I(V)&&(W=V),!0)),W}findLastMaxBy(I){let W,V=!0;return this.iterate(H=>((V||N.isGreaterThan(I(H,W)))&&(V=!1,W=H),!0)),W}}r.CallbackIterable=z,z.empty=new z(T=>{});class Q{constructor(I){this._indexMap=I}static createSortPermutation(I,W){const V=Array.from(I.keys()).sort((H,U)=>W(I[H],I[U]));return new Q(V)}apply(I){return I.map((W,V)=>I[this._indexMap[V]])}inverse(){const I=this._indexMap.slice();for(let W=0;W=0;S--){const C=u[S];if(d(C))return S}return-1}function R(u,d){const h=b(u,d);return h===-1?void 0:u[h]}function b(u,d,h=0,S=u.length){let C=h,y=S;for(;C0&&(h=C)}return h}function m(u,d){if(u.length===0)return;let h=u[0];for(let S=1;S=0&&(h=C)}return h}function e(u,d){return a(u,(h,S)=>-d(h,S))}function c(u,d){if(u.length===0)return-1;let h=0;for(let S=1;S0&&(h=S)}return h}function s(u,d){for(const h of u){const S=d(h);if(S!==void 0)return S}}}),X(Y[35],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CachedFunction=r.LRUCachedFunction=void 0,r.identity=n;function n(b){return b}class x{constructor(f,v){this.lastCache=void 0,this.lastArgKey=void 0,typeof f=="function"?(this._fn=f,this._computeKey=n):(this._fn=v,this._computeKey=f.getCacheKey)}get(f){const v=this._computeKey(f);return this.lastArgKey!==v&&(this.lastArgKey=v,this.lastCache=this._fn(f)),this.lastCache}}r.LRUCachedFunction=x;class R{get cachedValues(){return this._map}constructor(f,v){this._map=new Map,this._map2=new Map,typeof f=="function"?(this._fn=f,this._computeKey=n):(this._fn=v,this._computeKey=f.getCacheKey)}get(f){const v=this._computeKey(f);if(this._map2.has(v))return this._map2.get(v);const o=this._fn(f);return this._map.set(f,o),this._map2.set(v,o),o}}r.CachedFunction=R}),X(Y[36],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Color=r.HSVA=r.HSLA=r.RGBA=void 0;function n(v,o){const a=Math.pow(10,o);return Math.round(v*a)/a}class x{constructor(o,a,m,e=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,o))|0,this.g=Math.min(255,Math.max(0,a))|0,this.b=Math.min(255,Math.max(0,m))|0,this.a=n(Math.max(Math.min(1,e),0),3)}static equals(o,a){return o.r===a.r&&o.g===a.g&&o.b===a.b&&o.a===a.a}}r.RGBA=x;class R{constructor(o,a,m,e){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,o),0)|0,this.s=n(Math.max(Math.min(1,a),0),3),this.l=n(Math.max(Math.min(1,m),0),3),this.a=n(Math.max(Math.min(1,e),0),3)}static equals(o,a){return o.h===a.h&&o.s===a.s&&o.l===a.l&&o.a===a.a}static fromRGBA(o){const a=o.r/255,m=o.g/255,e=o.b/255,c=o.a,s=Math.max(a,m,e),u=Math.min(a,m,e);let d=0,h=0;const S=(u+s)/2,C=s-u;if(C>0){switch(h=Math.min(S<=.5?C/(2*S):C/(2-2*S),1),s){case a:d=(m-e)/C+(m1&&(m-=1),m<1/6?o+(a-o)*6*m:m<1/2?a:m<2/3?o+(a-o)*(2/3-m)*6:o}static toRGBA(o){const a=o.h/360,{s:m,l:e,a:c}=o;let s,u,d;if(m===0)s=u=d=e;else{const h=e<.5?e*(1+m):e+m-e*m,S=2*e-h;s=R._hue2rgb(S,h,a+1/3),u=R._hue2rgb(S,h,a),d=R._hue2rgb(S,h,a-1/3)}return new x(Math.round(s*255),Math.round(u*255),Math.round(d*255),c)}}r.HSLA=R;class b{constructor(o,a,m,e){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,o),0)|0,this.s=n(Math.max(Math.min(1,a),0),3),this.v=n(Math.max(Math.min(1,m),0),3),this.a=n(Math.max(Math.min(1,e),0),3)}static equals(o,a){return o.h===a.h&&o.s===a.s&&o.v===a.v&&o.a===a.a}static fromRGBA(o){const a=o.r/255,m=o.g/255,e=o.b/255,c=Math.max(a,m,e),s=Math.min(a,m,e),u=c-s,d=c===0?0:u/c;let h;return u===0?h=0:c===a?h=((m-e)/u%6+6)%6:c===m?h=(e-a)/u+2:h=(a-m)/u+4,new b(Math.round(h*60),d,c,o.a)}static toRGBA(o){const{h:a,s:m,v:e,a:c}=o,s=e*m,u=s*(1-Math.abs(a/60%2-1)),d=e-s;let[h,S,C]=[0,0,0];return a<60?(h=s,S=u):a<120?(h=u,S=s):a<180?(S=s,C=u):a<240?(S=u,C=s):a<300?(h=u,C=s):a<=360&&(h=s,C=u),h=Math.round((h+d)*255),S=Math.round((S+d)*255),C=Math.round((C+d)*255),new x(h,S,C,c)}}r.HSVA=b;class f{static fromHex(o){return f.Format.CSS.parseHex(o)||f.red}static equals(o,a){return!o&&!a?!0:!o||!a?!1:o.equals(a)}get hsla(){return this._hsla?this._hsla:R.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:b.fromRGBA(this.rgba)}constructor(o){if(o)if(o instanceof x)this.rgba=o;else if(o instanceof R)this._hsla=o,this.rgba=R.toRGBA(o);else if(o instanceof b)this._hsva=o,this.rgba=b.toRGBA(o);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(o){return!!o&&x.equals(this.rgba,o.rgba)&&R.equals(this.hsla,o.hsla)&&b.equals(this.hsva,o.hsva)}getRelativeLuminance(){const o=f._relativeLuminanceForComponent(this.rgba.r),a=f._relativeLuminanceForComponent(this.rgba.g),m=f._relativeLuminanceForComponent(this.rgba.b),e=.2126*o+.7152*a+.0722*m;return n(e,4)}static _relativeLuminanceForComponent(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(o){const a=this.getRelativeLuminance(),m=o.getRelativeLuminance();return a>m}isDarkerThan(o){const a=this.getRelativeLuminance(),m=o.getRelativeLuminance();return a{throw h.stack?s.isErrorNoTelemetry(h)?new s(h.message+` `+h.stack):new Error(h.message+` `+h.stack):h},0)}}emit(h){this.listeners.forEach(S=>{S(h)})}onUnexpectedError(h){this.unexpectedErrorHandler(h),this.emit(h)}onUnexpectedExternalError(h){this.unexpectedErrorHandler(h)}}r.ErrorHandler=n,r.errorHandler=new n;function x(d){v(d)||r.errorHandler.onUnexpectedError(d)}function R(d){v(d)||r.errorHandler.onUnexpectedExternalError(d)}function b(d){if(d instanceof Error){const{name:h,message:S}=d,C=d.stacktrace||d.stack;return{$isError:!0,name:h,message:S,stack:C,noTelemetry:s.isErrorNoTelemetry(d)}}return d}const f="Canceled";function v(d){return d instanceof o?!0:d instanceof Error&&d.name===f&&d.message===f}class o extends Error{constructor(){super(f),this.name=this.message}}r.CancellationError=o;function a(){const d=new Error(f);return d.name=d.message,d}function m(d){return d?new Error(`Illegal argument: ${d}`):new Error("Illegal argument")}function e(d){return d?new Error(`Illegal state: ${d}`):new Error("Illegal state")}class c extends Error{constructor(h){super("NotSupported"),h&&(this.message=h)}}r.NotSupportedError=c;class s extends Error{constructor(h){super(h),this.name="CodeExpectedError"}static fromError(h){if(h instanceof s)return h;const S=new s;return S.message=h.message,S.stack=h.stack,S}static isErrorNoTelemetry(h){return h.name==="CodeExpectedError"}}r.ErrorNoTelemetry=s;class u extends Error{constructor(h){super(h||"An unexpected bug occurred."),Object.setPrototypeOf(this,u.prototype)}}r.BugIndicatingError=u}),X(Y[9],J([0,1,5]),function(q,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ok=x,r.assertNever=R,r.softAssert=b,r.assertFn=f,r.checkAdjacentItems=v;function x(o,a){if(!o)throw new Error(a?`Assertion failed (${a})`:"Assertion Failed")}function R(o,a="Unreachable"){throw new Error(a)}function b(o){o||(0,n.onUnexpectedError)(new n.BugIndicatingError("Soft Assertion Failed"))}function f(o){if(!o()){debugger;o(),(0,n.onUnexpectedError)(new n.BugIndicatingError("Assertion Failed"))}}function v(o,a){let m=0;for(;m=0;l--)yield i[l]}x.reverse=m;function e(i){return!i||i[Symbol.iterator]().next().done===!0}x.isEmpty=e;function c(i){return i[Symbol.iterator]().next().value}x.first=c;function s(i,l){for(const g of i)if(l(g))return!0;return!1}x.some=s;function u(i,l){for(const g of i)if(l(g))return g}x.find=u;function*d(i,l){for(const g of i)l(g)&&(yield g)}x.filter=d;function*h(i,l){let g=0;for(const w of i)yield l(w,g++)}x.map=h;function*S(...i){for(const l of i)yield*l}x.concat=S;function C(i,l,g){let w=g;for(const _ of i)w=l(w,_);return w}x.reduce=C;function*y(i,l,g=i.length){for(l<0&&(l+=i.length),g<0?g+=i.length:g>i.length&&(g=i.length);l=98&&C<=113)return null;switch(C){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return x.keyCodeToStr(C)}e.toElectronAccelerator=S})(a||(r.KeyCodeUtils=a={}));function m(e,c){const s=(c&65535)<<16>>>0;return(e|s)>>>0}}),X(Y[39],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Lazy=void 0;class n{constructor(R){this.executor=R,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(R){this._error=R}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}r.Lazy=n}),X(Y[13],J([0,1,20,21]),function(q,r,n,x){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DisposableMap=r.ImmortalReference=r.RefCountedDisposable=r.MutableDisposable=r.Disposable=r.DisposableStore=void 0,r.setDisposableTracker=f,r.trackDisposable=v,r.markAsDisposed=o,r.markAsSingleton=e,r.isDisposable=c,r.dispose=s,r.combinedDisposable=u,r.toDisposable=d;const R=!1;let b=null;function f(i){b=i}if(R){const i="__is_disposable_tracked__";f(new class{trackDisposable(l){const g=new Error("Potentially leaked disposable").stack;setTimeout(()=>{l[i]||console.log(g)},3e3)}setParent(l,g){if(l&&l!==S.None)try{l[i]=!0}catch{}}markAsDisposed(l){if(l&&l!==S.None)try{l[i]=!0}catch{}}markAsSingleton(l){}})}function v(i){return b?.trackDisposable(i),i}function o(i){b?.markAsDisposed(i)}function a(i,l){b?.setParent(i,l)}function m(i,l){if(b)for(const g of i)b.setParent(g,l)}function e(i){return b?.markAsSingleton(i),i}function c(i){return typeof i=="object"&&i!==null&&typeof i.dispose=="function"&&i.dispose.length===0}function s(i){if(x.Iterable.is(i)){const l=[];for(const g of i)if(g)try{g.dispose()}catch(w){l.push(w)}if(l.length===1)throw l[0];if(l.length>1)throw new AggregateError(l,"Encountered errors while disposing of store");return Array.isArray(i)?[]:i}else if(i)return i.dispose(),i}function u(...i){const l=d(()=>s(i));return m(i,l),l}function d(i){const l=v({dispose:(0,n.createSingleCallFunction)(()=>{o(l),i()})});return l}class h{constructor(){this._toDispose=new Set,this._isDisposed=!1,v(this)}dispose(){this._isDisposed||(o(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{s(this._toDispose)}finally{this._toDispose.clear()}}add(l){if(!l)return l;if(l===this)throw new Error("Cannot register a disposable on itself!");return a(l,this),this._isDisposed?h.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(l),l}deleteAndLeak(l){l&&this._toDispose.has(l)&&(this._toDispose.delete(l),a(l,null))}}r.DisposableStore=h,h.DISABLE_DISPOSED_WARNING=!1;class S{constructor(){this._store=new h,v(this),a(this._store,this)}dispose(){o(this),this._store.dispose()}_register(l){if(l===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(l)}}r.Disposable=S,S.None=Object.freeze({dispose(){}});class C{constructor(){this._isDisposed=!1,v(this)}get value(){return this._isDisposed?void 0:this._value}set value(l){var g;this._isDisposed||l===this._value||((g=this._value)===null||g===void 0||g.dispose(),l&&a(l,this),this._value=l)}clear(){this.value=void 0}dispose(){var l;this._isDisposed=!0,o(this),(l=this._value)===null||l===void 0||l.dispose(),this._value=void 0}}r.MutableDisposable=C;class y{constructor(l){this._disposable=l,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}r.RefCountedDisposable=y;class A{constructor(l){this.object=l}dispose(){}}r.ImmortalReference=A;class p{constructor(){this._store=new Map,this._isDisposed=!1,v(this)}dispose(){o(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{s(this._store.values())}finally{this._store.clear()}}get(l){return this._store.get(l)}set(l,g,w=!1){var _;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),w||(_=this._store.get(l))===null||_===void 0||_.dispose(),this._store.set(l,g)}deleteAndDispose(l){var g;(g=this._store.get(l))===null||g===void 0||g.dispose(),this._store.delete(l)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}r.DisposableMap=p}),X(Y[22],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LinkedList=void 0;class n{constructor(b){this.element=b,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class x{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let b=this._first;for(;b!==n.Undefined;){const f=b.next;b.prev=n.Undefined,b.next=n.Undefined,b=f}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(b){return this._insert(b,!1)}push(b){return this._insert(b,!0)}_insert(b,f){const v=new n(b);if(this._first===n.Undefined)this._first=v,this._last=v;else if(f){const a=this._last;this._last=v,v.prev=a,a.next=v}else{const a=this._first;this._first=v,v.next=a,a.prev=v}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(v))}}shift(){if(this._first!==n.Undefined){const b=this._first.element;return this._remove(this._first),b}}pop(){if(this._last!==n.Undefined){const b=this._last.element;return this._remove(this._last),b}}_remove(b){if(b.prev!==n.Undefined&&b.next!==n.Undefined){const f=b.prev;f.next=b.next,b.next.prev=f}else b.prev===n.Undefined&&b.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):b.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):b.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let b=this._first;for(;b!==n.Undefined;)yield b.element,b=b.next}}r.LinkedList=x}),X(Y[23],J([0,1]),function(q,r){"use strict";var n,x;Object.defineProperty(r,"__esModule",{value:!0}),r.SetMap=r.BidirectionalMap=r.LRUCache=r.LinkedMap=r.ResourceMap=void 0;class R{constructor(s,u){this.uri=s,this.value=u}}function b(c){return Array.isArray(c)}class f{constructor(s,u){if(this[n]="ResourceMap",s instanceof f)this.map=new Map(s.map),this.toKey=u??f.defaultToKey;else if(b(s)){this.map=new Map,this.toKey=u??f.defaultToKey;for(const[d,h]of s)this.set(d,h)}else this.map=new Map,this.toKey=s??f.defaultToKey}set(s,u){return this.map.set(this.toKey(s),new R(s,u)),this}get(s){var u;return(u=this.map.get(this.toKey(s)))===null||u===void 0?void 0:u.value}has(s){return this.map.has(this.toKey(s))}get size(){return this.map.size}clear(){this.map.clear()}delete(s){return this.map.delete(this.toKey(s))}forEach(s,u){typeof u<"u"&&(s=s.bind(u));for(const[d,h]of this.map)s(h.value,h.uri,this)}*values(){for(const s of this.map.values())yield s.value}*keys(){for(const s of this.map.values())yield s.uri}*entries(){for(const s of this.map.values())yield[s.uri,s.value]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(const[,s]of this.map)yield[s.uri,s.value]}}r.ResourceMap=f,f.defaultToKey=c=>c.toString();class v{constructor(){this[x]="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 s;return(s=this._head)===null||s===void 0?void 0:s.value}get last(){var s;return(s=this._tail)===null||s===void 0?void 0:s.value}has(s){return this._map.has(s)}get(s,u=0){const d=this._map.get(s);if(d)return u!==0&&this.touch(d,u),d.value}set(s,u,d=0){let h=this._map.get(s);if(h)h.value=u,d!==0&&this.touch(h,d);else{switch(h={key:s,value:u,next:void 0,previous:void 0},d){case 0:this.addItemLast(h);break;case 1:this.addItemFirst(h);break;case 2:this.addItemLast(h);break;default:this.addItemLast(h);break}this._map.set(s,h),this._size++}return this}delete(s){return!!this.remove(s)}remove(s){const u=this._map.get(s);if(u)return this._map.delete(s),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 s=this._head;return this._map.delete(s.key),this.removeItem(s),this._size--,s.value}forEach(s,u){const d=this._state;let h=this._head;for(;h;){if(u?s.bind(u)(h.value,h.key,this):s(h.value,h.key,this),this._state!==d)throw new Error("LinkedMap got modified during iteration.");h=h.next}}keys(){const s=this,u=this._state;let d=this._head;const h={[Symbol.iterator](){return h},next(){if(s._state!==u)throw new Error("LinkedMap got modified during iteration.");if(d){const S={value:d.key,done:!1};return d=d.next,S}else return{value:void 0,done:!0}}};return h}values(){const s=this,u=this._state;let d=this._head;const h={[Symbol.iterator](){return h},next(){if(s._state!==u)throw new Error("LinkedMap got modified during iteration.");if(d){const S={value:d.value,done:!1};return d=d.next,S}else return{value:void 0,done:!0}}};return h}entries(){const s=this,u=this._state;let d=this._head;const h={[Symbol.iterator](){return h},next(){if(s._state!==u)throw new Error("LinkedMap got modified during iteration.");if(d){const S={value:[d.key,d.value],done:!1};return d=d.next,S}else return{value:void 0,done:!0}}};return h}[(x=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(s){if(s>=this.size)return;if(s===0){this.clear();return}let u=this._head,d=this.size;for(;u&&d>s;)this._map.delete(u.key),u=u.next,d--;this._head=u,this._size=d,u&&(u.previous=void 0),this._state++}trimNew(s){if(s>=this.size)return;if(s===0){this.clear();return}let u=this._tail,d=this.size;for(;u&&d>s;)this._map.delete(u.key),u=u.previous,d--;this._tail=u,this._size=d,u&&(u.next=void 0),this._state++}addItemFirst(s){if(!this._head&&!this._tail)this._tail=s;else if(this._head)s.next=this._head,this._head.previous=s;else throw new Error("Invalid list");this._head=s,this._state++}addItemLast(s){if(!this._head&&!this._tail)this._head=s;else if(this._tail)s.previous=this._tail,this._tail.next=s;else throw new Error("Invalid list");this._tail=s,this._state++}removeItem(s){if(s===this._head&&s===this._tail)this._head=void 0,this._tail=void 0;else if(s===this._head){if(!s.next)throw new Error("Invalid list");s.next.previous=void 0,this._head=s.next}else if(s===this._tail){if(!s.previous)throw new Error("Invalid list");s.previous.next=void 0,this._tail=s.previous}else{const u=s.next,d=s.previous;if(!u||!d)throw new Error("Invalid list");u.previous=d,d.next=u}s.next=void 0,s.previous=void 0,this._state++}touch(s,u){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(u!==1&&u!==2)){if(u===1){if(s===this._head)return;const d=s.next,h=s.previous;s===this._tail?(h.next=void 0,this._tail=h):(d.previous=h,h.next=d),s.previous=void 0,s.next=this._head,this._head.previous=s,this._head=s,this._state++}else if(u===2){if(s===this._tail)return;const d=s.next,h=s.previous;s===this._head?(d.previous=void 0,this._head=d):(d.previous=h,h.next=d),s.next=void 0,s.previous=this._tail,this._tail.next=s,this._tail=s,this._state++}}}toJSON(){const s=[];return this.forEach((u,d)=>{s.push([d,u])}),s}fromJSON(s){this.clear();for(const[u,d]of s)this.set(u,d)}}r.LinkedMap=v;class o extends v{constructor(s,u=1){super(),this._limit=s,this._ratio=Math.min(Math.max(0,u),1)}get limit(){return this._limit}set limit(s){this._limit=s,this.checkTrim()}get(s,u=2){return super.get(s,u)}peek(s){return super.get(s,0)}set(s,u){return super.set(s,u,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class a extends o{constructor(s,u=1){super(s,u)}trim(s){this.trimOld(s)}set(s,u){return super.set(s,u),this.checkTrim(),this}}r.LRUCache=a;class m{constructor(s){if(this._m1=new Map,this._m2=new Map,s)for(const[u,d]of s)this.set(u,d)}clear(){this._m1.clear(),this._m2.clear()}set(s,u){this._m1.set(s,u),this._m2.set(u,s)}get(s){return this._m1.get(s)}getKey(s){return this._m2.get(s)}delete(s){const u=this._m1.get(s);return u===void 0?!1:(this._m1.delete(s),this._m2.delete(u),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}r.BidirectionalMap=m;class e{constructor(){this.map=new Map}add(s,u){let d=this.map.get(s);d||(d=new Set,this.map.set(s,d)),d.add(u)}delete(s,u){const d=this.map.get(s);d&&(d.delete(u),d.size===0&&this.map.delete(s))}forEach(s,u){const d=this.map.get(s);d&&d.forEach(u)}get(s){const u=this.map.get(s);return u||new Set}}r.SetMap=e}),X(Y[24],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.StopWatch=void 0;const n=globalThis.performance&&typeof globalThis.performance.now=="function";class x{static create(b){return new x(b)}constructor(b){this._now=n&&b===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}r.StopWatch=x}),X(Y[10],J([0,1,5,20,13,22,24]),function(q,r,n,x,R,b,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Relay=r.EventBufferer=r.EventMultiplexer=r.MicrotaskEmitter=r.DebounceEmitter=r.PauseableEmitter=r.createEventDeliveryQueue=r.Emitter=r.EventProfiling=r.Event=void 0;const v=!1,o=!1,a=!1;var m;(function(N){N.None=()=>R.Disposable.None;function L(K){if(a){const{onDidAddListener:$}=K,ee=u.create();let Z=0;K.onDidAddListener=()=>{++Z===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),ee.print()),$?.()}}}function M(K,$){return V(K,()=>{},0,void 0,!0,void 0,$)}N.defer=M;function D(K){return($,ee=null,Z)=>{let ne=!1,re;return re=K(ie=>{if(!ne)return re?re.dispose():ne=!0,$.call(ee,ie)},null,Z),ne&&re.dispose(),re}}N.once=D;function F(K,$,ee){return I((Z,ne=null,re)=>K(ie=>Z.call(ne,$(ie)),null,re),ee)}N.map=F;function k(K,$,ee){return I((Z,ne=null,re)=>K(ie=>{$(ie),Z.call(ne,ie)},null,re),ee)}N.forEach=k;function O(K,$,ee){return I((Z,ne=null,re)=>K(ie=>$(ie)&&Z.call(ne,ie),null,re),ee)}N.filter=O;function z(K){return K}N.signal=z;function Q(...K){return($,ee=null,Z)=>{const ne=(0,R.combinedDisposable)(...K.map(re=>re(ie=>$.call(ee,ie))));return W(ne,Z)}}N.any=Q;function T(K,$,ee,Z){let ne=ee;return F(K,re=>(ne=$(ne,re),ne),Z)}N.reduce=T;function I(K,$){let ee;const Z={onWillAddFirstListener(){ee=K(ne.fire,ne)},onDidRemoveLastListener(){ee?.dispose()}};$||L(Z);const ne=new y(Z);return $?.add(ne),ne.event}function W(K,$){return $ instanceof Array?$.push(K):$&&$.add(K),K}function V(K,$,ee=100,Z=!1,ne=!1,re,ie){let P,B,j,G=0,te;const ae={leakWarningThreshold:re,onWillAddFirstListener(){P=K(be=>{G++,B=$(B,be),Z&&!j&&(oe.fire(B),B=void 0),te=()=>{const fe=B;B=void 0,j=void 0,(!Z||G>1)&&oe.fire(fe),G=0},typeof ee=="number"?(clearTimeout(j),j=setTimeout(te,ee)):j===void 0&&(j=0,queueMicrotask(te))})},onWillRemoveListener(){ne&&G>0&&te?.()},onDidRemoveLastListener(){te=void 0,P.dispose()}};ie||L(ae);const oe=new y(ae);return ie?.add(oe),oe.event}N.debounce=V;function H(K,$=0,ee){return N.debounce(K,(Z,ne)=>Z?(Z.push(ne),Z):[ne],$,void 0,!0,void 0,ee)}N.accumulate=H;function U(K,$=(Z,ne)=>Z===ne,ee){let Z=!0,ne;return O(K,re=>{const ie=Z||!$(re,ne);return Z=!1,ne=re,ie},ee)}N.latch=U;function se(K,$,ee){return[N.filter(K,$,ee),N.filter(K,Z=>!$(Z),ee)]}N.split=se;function he(K,$=!1,ee=[],Z){let ne=ee.slice(),re=K(B=>{ne?ne.push(B):P.fire(B)});Z&&Z.add(re);const ie=()=>{ne?.forEach(B=>P.fire(B)),ne=null},P=new y({onWillAddFirstListener(){re||(re=K(B=>P.fire(B)),Z&&Z.add(re))},onDidAddFirstListener(){ne&&($?setTimeout(ie):ie())},onDidRemoveLastListener(){re&&re.dispose(),re=null}});return Z&&Z.add(P),P.event}N.buffer=he;function de(K,$){return(Z,ne,re)=>{const ie=$(new ve);return K(function(P){const B=ie.evaluate(P);B!==me&&Z.call(ne,B)},void 0,re)}}N.chain=de;const me=Symbol("HaltChainable");class ve{constructor(){this.steps=[]}map($){return this.steps.push($),this}forEach($){return this.steps.push(ee=>($(ee),ee)),this}filter($){return this.steps.push(ee=>$(ee)?ee:me),this}reduce($,ee){let Z=ee;return this.steps.push(ne=>(Z=$(Z,ne),Z)),this}latch($=(ee,Z)=>ee===Z){let ee=!0,Z;return this.steps.push(ne=>{const re=ee||!$(ne,Z);return ee=!1,Z=ne,re?ne:me}),this}evaluate($){for(const ee of this.steps)if($=ee($),$===me)break;return $}}function t(K,$,ee=Z=>Z){const Z=(...P)=>ie.fire(ee(...P)),ne=()=>K.on($,Z),re=()=>K.removeListener($,Z),ie=new y({onWillAddFirstListener:ne,onDidRemoveLastListener:re});return ie.event}N.fromNodeEventEmitter=t;function Ce(K,$,ee=Z=>Z){const Z=(...P)=>ie.fire(ee(...P)),ne=()=>K.addEventListener($,Z),re=()=>K.removeEventListener($,Z),ie=new y({onWillAddFirstListener:ne,onDidRemoveLastListener:re});return ie.event}N.fromDOMEventEmitter=Ce;function _e(K){return new Promise($=>D(K)($))}N.toPromise=_e;function pe(K){const $=new y;return K.then(ee=>{$.fire(ee)},()=>{$.fire(void 0)}).finally(()=>{$.dispose()}),$.event}N.fromPromise=pe;function Se(K,$,ee){return $(ee),K(Z=>$(Z))}N.runAndSubscribe=Se;class ye{constructor($,ee){this._observable=$,this._counter=0,this._hasChanged=!1;const Z={onWillAddFirstListener:()=>{$.addObserver(this)},onDidRemoveLastListener:()=>{$.removeObserver(this)}};ee||L(Z),this.emitter=new y(Z),ee&&ee.add(this.emitter)}beginUpdate($){this._counter++}handlePossibleChange($){}handleChange($,ee){this._hasChanged=!0}endUpdate($){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Ne(K,$){return new ye(K,$).emitter.event}N.fromObservable=Ne;function Le(K){return($,ee,Z)=>{let ne=0,re=!1;const ie={beginUpdate(){ne++},endUpdate(){ne--,ne===0&&(K.reportChanges(),re&&(re=!1,$.call(ee)))},handlePossibleChange(){},handleChange(){re=!0}};K.addObserver(ie),K.reportChanges();const P={dispose(){K.removeObserver(ie)}};return Z instanceof R.DisposableStore?Z.add(P):Array.isArray(Z)&&Z.push(P),P}}N.fromObservableLight=Le})(m||(r.Event=m={}));class e{constructor(L){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${L}_${e._idPool++}`,e.all.add(this)}start(L){this._stopWatch=new f.StopWatch,this.listenerCount=L}stop(){if(this._stopWatch){const L=this._stopWatch.elapsed();this.durations.push(L),this.elapsedOverall+=L,this.invocationCount+=1,this._stopWatch=void 0}}}r.EventProfiling=e,e.all=new Set,e._idPool=0;let c=-1;class s{constructor(L,M=Math.random().toString(18).slice(2,5)){this.threshold=L,this.name=M,this._warnCountdown=0}dispose(){var L;(L=this._stacks)===null||L===void 0||L.clear()}check(L,M){const D=this.threshold;if(D<=0||M{const k=this._stacks.get(L.value)||0;this._stacks.set(L.value,k-1)}}}class u{static create(){var L;return new u((L=new Error().stack)!==null&&L!==void 0?L:"")}constructor(L){this.value=L}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class d{constructor(L){this.value=L}}const h=2,S=(N,L)=>{if(N instanceof d)L(N);else for(let M=0;M{typeof N=="string"&&(console.warn("[LEAKING LISTENER] GC'ed a listener that was NOT yet disposed. This is where is was created:"),console.warn(N))}):void 0;class y{constructor(L){var M,D,F,k,O;this._size=0,this._options=L,this._leakageMon=c>0||!((M=this._options)===null||M===void 0)&&M.leakWarningThreshold?new s((F=(D=this._options)===null||D===void 0?void 0:D.leakWarningThreshold)!==null&&F!==void 0?F:c):void 0,this._perfMon=!((k=this._options)===null||k===void 0)&&k._profName?new e(this._options._profName):void 0,this._deliveryQueue=(O=this._options)===null||O===void 0?void 0:O.deliveryQueue}dispose(){var L,M,D,F;if(!this._disposed){if(this._disposed=!0,((L=this._deliveryQueue)===null||L===void 0?void 0:L.current)===this&&this._deliveryQueue.reset(),this._listeners){if(o){const k=this._listeners;queueMicrotask(()=>{S(k,O=>{var z;return(z=O.stack)===null||z===void 0?void 0:z.print()})})}this._listeners=void 0,this._size=0}(D=(M=this._options)===null||M===void 0?void 0:M.onDidRemoveLastListener)===null||D===void 0||D.call(M),(F=this._leakageMon)===null||F===void 0||F.dispose()}}get event(){var L;return(L=this._event)!==null&&L!==void 0||(this._event=(M,D,F)=>{var k,O,z,Q,T;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`),R.Disposable.None;if(this._disposed)return R.Disposable.None;D&&(M=M.bind(D));const I=new d(M);let W,V;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(I.stack=u.create(),W=this._leakageMon.check(I.stack,this._size+1)),o&&(I.stack=V??u.create()),this._listeners?this._listeners instanceof d?((T=this._deliveryQueue)!==null&&T!==void 0||(this._deliveryQueue=new p),this._listeners=[this._listeners,I]):this._listeners.push(I):((O=(k=this._options)===null||k===void 0?void 0:k.onWillAddFirstListener)===null||O===void 0||O.call(k,this),this._listeners=I,(Q=(z=this._options)===null||z===void 0?void 0:z.onDidAddFirstListener)===null||Q===void 0||Q.call(z,this)),this._size++;const H=(0,R.toDisposable)(()=>{C?.unregister(H),W?.(),this._removeListener(I)});if(F instanceof R.DisposableStore?F.add(H):Array.isArray(F)&&F.push(H),C){const U=new Error().stack.split(` `).slice(2).join(` `).trim();C.register(H,U,H)}return H}),this._event}_removeListener(L){var M,D,F,k;if((D=(M=this._options)===null||M===void 0?void 0:M.onWillRemoveListener)===null||D===void 0||D.call(M,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(k=(F=this._options)===null||F===void 0?void 0:F.onDidRemoveLastListener)===null||k===void 0||k.call(F,this),this._size=0;return}const O=this._listeners,z=O.indexOf(L);if(z===-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--,O[z]=void 0;const Q=this._deliveryQueue.current===this;if(this._size*h<=O.length){let T=0;for(let I=0;I0}}r.Emitter=y;const A=()=>new p;r.createEventDeliveryQueue=A;class p{constructor(){this.i=-1,this.end=0}enqueue(L,M,D){this.i=0,this.end=D,this.current=L,this.value=M}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class i extends y{constructor(L){super(L),this._isPaused=0,this._eventQueue=new b.LinkedList,this._mergeFn=L?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const L=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(L))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(L){this._size&&(this._isPaused!==0?this._eventQueue.push(L):super.fire(L))}}r.PauseableEmitter=i;class l extends i{constructor(L){var M;super(L),this._delay=(M=L.delay)!==null&&M!==void 0?M:100}fire(L){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(L)}}r.DebounceEmitter=l;class g extends y{constructor(L){super(L),this._queuedEvents=[],this._mergeFn=L?.merge}fire(L){this.hasListeners()&&(this._queuedEvents.push(L),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(M=>super.fire(M)),this._queuedEvents=[]}))}}r.MicrotaskEmitter=g;class w{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new y({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(L){const M={event:L,listener:null};this.events.push(M),this.hasListeners&&this.hook(M);const D=()=>{this.hasListeners&&this.unhook(M);const F=this.events.indexOf(M);this.events.splice(F,1)};return(0,R.toDisposable)((0,x.createSingleCallFunction)(D))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(L=>this.hook(L))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(L=>this.unhook(L))}hook(L){L.listener=L.event(M=>this.emitter.fire(M))}unhook(L){var M;(M=L.listener)===null||M===void 0||M.dispose(),L.listener=null}dispose(){var L;this.emitter.dispose();for(const M of this.events)(L=M.listener)===null||L===void 0||L.dispose();this.events=[]}}r.EventMultiplexer=w;class _{constructor(){this.buffers=[]}wrapEvent(L){return(M,D,F)=>L(k=>{const O=this.buffers[this.buffers.length-1];O?O.push(()=>M.call(D,k)):M.call(D,k)},void 0,F)}bufferEvents(L){const M=[];this.buffers.push(M);const D=L();return this.buffers.pop(),M.forEach(F=>F()),D}}r.EventBufferer=_;class E{constructor(){this.listening=!1,this.inputEvent=m.None,this.inputEventListener=R.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(L){this.inputEvent=L,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=L(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}r.Relay=E}),X(Y[40],J([0,1,10]),function(q,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CancellationTokenSource=r.CancellationToken=void 0,r.cancelOnDispose=v;const x=Object.freeze(function(o,a){const m=setTimeout(o.bind(a),0);return{dispose(){clearTimeout(m)}}});var R;(function(o){function a(m){return m===o.None||m===o.Cancelled||m instanceof b?!0:!m||typeof m!="object"?!1:typeof m.isCancellationRequested=="boolean"&&typeof m.onCancellationRequested=="function"}o.isCancellationToken=a,o.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),o.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:x})})(R||(r.CancellationToken=R={}));class b{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?x:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class f{constructor(a){this._token=void 0,this._parentListener=void 0,this._parentListener=a&&a.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new b),this._token}cancel(){this._token?this._token instanceof b&&this._token.cancel():this._token=R.Cancelled}dispose(a=!1){var m;a&&this.cancel(),(m=this._parentListener)===null||m===void 0||m.dispose(),this._token?this._token instanceof b&&this._token.dispose():this._token=R.None}}r.CancellationTokenSource=f;function v(o){const a=new f;return o.add({dispose(){a.cancel()}}),a.token}}),X(Y[6],J([0,1,35,39]),function(q,r,n,x){"use strict";var R;Object.defineProperty(r,"__esModule",{value:!0}),r.InvisibleCharacters=r.AmbiguousCharacters=r.noBreakWhitespace=r.UTF8_BOM_CHARACTER=r.UNUSUAL_LINE_TERMINATORS=r.GraphemeIterator=r.CodePointIterator=void 0,r.isFalsyOrWhitespace=b,r.format=v,r.htmlAttributeEncodeValue=o,r.escape=a,r.escapeRegExpCharacters=m,r.trim=e,r.ltrim=c,r.rtrim=s,r.convertSimple2RegExpPattern=u,r.stripWildcards=d,r.createRegExp=h,r.regExpLeadsToEndlessLoop=S,r.splitLines=C,r.splitLinesIncludeSeparators=y,r.firstNonWhitespaceIndex=A,r.getLeadingWhitespace=p,r.lastNonWhitespaceIndex=i,r.compare=l,r.compareSubstring=g,r.compareIgnoreCase=w,r.compareSubstringIgnoreCase=_,r.isAsciiDigit=E,r.isLowerAsciiLetter=N,r.isUpperAsciiLetter=L,r.equalsIgnoreCase=M,r.startsWithIgnoreCase=D,r.commonPrefixLength=F,r.commonSuffixLength=k,r.isHighSurrogate=O,r.isLowSurrogate=z,r.computeCodePoint=Q,r.getNextCodePoint=T,r.nextCharLength=H,r.prevCharLength=U,r.getCharContainingOffset=se,r.containsRTL=me,r.isBasicASCII=t,r.containsUnusualLineTerminators=Ce,r.isFullWidthCharacter=_e,r.isEmojiImprecise=pe,r.startsWithUTF8BOM=Se,r.containsUppercaseCharacter=ye,r.singleLetterHash=Ne,r.getLeftDeleteOffset=ee;function b(P){return!P||typeof P!="string"?!0:P.trim().length===0}const f=/{(\d+)}/g;function v(P,...B){return B.length===0?P:P.replace(f,function(j,G){const te=parseInt(G,10);return isNaN(te)||te<0||te>=B.length?j:B[te]})}function o(P){return P.replace(/[<>"'&]/g,B=>{switch(B){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return B})}function a(P){return P.replace(/[<>&]/g,function(B){switch(B){case"<":return"<";case">":return">";case"&":return"&";default:return B}})}function m(P){return P.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function e(P,B=" "){const j=c(P,B);return s(j,B)}function c(P,B){if(!P||!B)return P;const j=B.length;if(j===0||P.length===0)return P;let G=0;for(;P.indexOf(B,G)===G;)G=G+j;return P.substring(G)}function s(P,B){if(!P||!B)return P;const j=B.length,G=P.length;if(j===0||G===0)return P;let te=G,ae=-1;for(;ae=P.lastIndexOf(B,te-1),!(ae===-1||ae+j!==te);){if(ae===0)return"";te=ae}return P.substring(0,te)}function u(P){return P.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(P){return P.replace(/\*/g,"")}function h(P,B,j={}){if(!P)throw new Error("Cannot create regex from empty string");B||(P=m(P)),j.wholeWord&&(/\B/.test(P.charAt(0))||(P="\\b"+P),/\B/.test(P.charAt(P.length-1))||(P=P+"\\b"));let G="";return j.global&&(G+="g"),j.matchCase||(G+="i"),j.multiline&&(G+="m"),j.unicode&&(G+="u"),new RegExp(P,G)}function S(P){return P.source==="^"||P.source==="^$"||P.source==="$"||P.source==="^\\s*$"?!1:!!(P.exec("")&&P.lastIndex===0)}function C(P){return P.split(/\r\n|\r|\n/)}function y(P){var B;const j=[],G=P.split(/(\r\n|\r|\n)/);for(let te=0;te=0;j--){const G=P.charCodeAt(j);if(G!==32&&G!==9)return j}return-1}function l(P,B){return PB?1:0}function g(P,B,j=0,G=P.length,te=0,ae=B.length){for(;jle)return 1}const oe=G-j,be=ae-te;return oebe?1:0}function w(P,B){return _(P,B,0,P.length,0,B.length)}function _(P,B,j=0,G=P.length,te=0,ae=B.length){for(;j=128||le>=128)return g(P.toLowerCase(),B.toLowerCase(),j,G,te,ae);N(fe)&&(fe-=32),N(le)&&(le-=32);const ce=fe-le;if(ce!==0)return ce}const oe=G-j,be=ae-te;return oebe?1:0}function E(P){return P>=48&&P<=57}function N(P){return P>=97&&P<=122}function L(P){return P>=65&&P<=90}function M(P,B){return P.length===B.length&&_(P,B)===0}function D(P,B){const j=B.length;return B.length>P.length?!1:_(P,B,0,j)===0}function F(P,B){const j=Math.min(P.length,B.length);let G;for(G=0;G1){const G=P.charCodeAt(B-2);if(O(G))return Q(G,j)}return j}class W{get offset(){return this._offset}constructor(B,j=0){this._str=B,this._len=B.length,this._offset=j}setOffset(B){this._offset=B}prevCodePoint(){const B=I(this._str,this._offset);return this._offset-=B>=65536?2:1,B}nextCodePoint(){const B=T(this._str,this._len,this._offset);return this._offset+=B>=65536?2:1,B}eol(){return this._offset>=this._len}}r.CodePointIterator=W;class V{get offset(){return this._iterator.offset}constructor(B,j=0){this._iterator=new W(B,j)}nextGraphemeLength(){const B=K.getInstance(),j=this._iterator,G=j.offset;let te=B.getGraphemeBreakType(j.nextCodePoint());for(;!j.eol();){const ae=j.offset,oe=B.getGraphemeBreakType(j.nextCodePoint());if(Le(te,oe)){j.setOffset(ae);break}te=oe}return j.offset-G}prevGraphemeLength(){const B=K.getInstance(),j=this._iterator,G=j.offset;let te=B.getGraphemeBreakType(j.prevCodePoint());for(;j.offset>0;){const ae=j.offset,oe=B.getGraphemeBreakType(j.prevCodePoint());if(Le(oe,te)){j.setOffset(ae);break}te=oe}return G-j.offset}eol(){return this._iterator.eol()}}r.GraphemeIterator=V;function H(P,B){return new V(P,B).nextGraphemeLength()}function U(P,B){return new V(P,B).prevGraphemeLength()}function se(P,B){B>0&&z(P.charCodeAt(B))&&B--;const j=B+H(P,B);return[j-U(P,j),j]}let he;function de(){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 he||(he=de()),he.test(P)}const ve=/^[\t\n\r\x20-\x7E]*$/;function t(P){return ve.test(P)}r.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function Ce(P){return r.UNUSUAL_LINE_TERMINATORS.test(P)}function _e(P){return P>=11904&&P<=55215||P>=63744&&P<=64255||P>=65281&&P<=65374}function pe(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}r.UTF8_BOM_CHARACTER="\uFEFF";function Se(P){return!!(P&&P.length>0&&P.charCodeAt(0)===65279)}function ye(P,B=!1){return P?(B&&(P=P.replace(/\\./g,"")),P.toLowerCase()!==P):!1}function Ne(P){return P=P%(2*26),P<26?String.fromCharCode(97+P):String.fromCharCode(65+P-26)}function Le(P,B){return P===0?B!==5&&B!==7:P===2&&B===3?!1:P===4||P===2||P===3||B===4||B===2||B===3?!0:!(P===8&&(B===8||B===9||B===11||B===12)||(P===11||P===9)&&(B===9||B===10)||(P===12||P===10)&&B===10||B===5||B===13||B===7||P===1||P===13&&B===14||P===6&&B===6)}class K{static getInstance(){return K._INSTANCE||(K._INSTANCE=new K),K._INSTANCE}constructor(){this._data=$()}getGraphemeBreakType(B){if(B<32)return B===10?3:B===13?2:4;if(B<127)return 0;const j=this._data,G=j.length/3;let te=1;for(;te<=G;)if(Bj[3*te+1])te=2*te+1;else return j[3*te+2];return 0}}K._INSTANCE=null;function $(){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 ee(P,B){if(P===0)return 0;const j=Z(P,B);if(j!==void 0)return j;const G=new W(B,P);return G.prevCodePoint(),G.offset}function Z(P,B){const j=new W(B,P);let G=j.prevCodePoint();for(;ne(G)||G===65039||G===8419;){if(j.offset===0)return;G=j.prevCodePoint()}if(!pe(G))return;let te=j.offset;return te>0&&j.prevCodePoint()===8205&&(te=j.offset),te}function ne(P){return 127995<=P&&P<=127999}r.noBreakWhitespace="\xA0";class re{static getInstance(B){return R.cache.get(Array.from(B))}static getLocales(){return R._locales.value}constructor(B){this.confusableDictionary=B}isAmbiguous(B){return this.confusableDictionary.has(B)}getPrimaryConfusable(B){return this.confusableDictionary.get(B)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}r.AmbiguousCharacters=re,R=re,re.ambiguousCharacterData=new x.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]}')),re.cache=new n.LRUCachedFunction({getCacheKey:JSON.stringify},P=>{function B(le){const ce=new Map;for(let ge=0;ge!le.startsWith("_")&&le in te);ae.length===0&&(ae=["_default"]);let oe;for(const le of ae){const ce=B(te[le]);oe=G(oe,ce)}const be=B(te._common),fe=j(be,oe);return new R(fe)}),re._locales=new x.Lazy(()=>Object.keys(R.ambiguousCharacterData.value).filter(P=>!P.startsWith("_")));class ie{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(ie.getRawData())),this._data}static isInvisibleCharacter(B){return ie.getData().has(B)}static get codePoints(){return ie.getData()}}r.InvisibleCharacters=ie,ie._data=void 0}),X(Y[41],J([0,1,6]),function(q,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.StringSHA1=void 0,r.hash=x,r.doHash=R,r.numberHash=b,r.stringHash=v,r.toHexString=s;function x(d){return R(d,0)}function R(d,h){switch(typeof d){case"object":return d===null?b(349,h):Array.isArray(d)?o(d,h):a(d,h);case"string":return v(d,h);case"boolean":return f(d,h);case"number":return b(d,h);case"undefined":return b(937,h);default:return b(617,h)}}function b(d,h){return(h<<5)-h+d|0}function f(d,h){return b(d?433:863,h)}function v(d,h){h=b(149417,h);for(let S=0,C=d.length;SR(C,S),h)}function a(d,h){return h=b(181387,h),Object.keys(d).sort().reduce((S,C)=>(S=v(C,S),R(d[C],S)),h)}function m(d,h,S=32){const C=S-h,y=~((1<>>C)>>>0}function e(d,h=0,S=d.byteLength,C=0){for(let y=0;yS.toString(16).padStart(2,"0")).join(""):c((d>>>0).toString(16),h/4)}class u{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(h){const S=h.length;if(S===0)return;const C=this._buff;let y=this._buffLen,A=this._leftoverHighSurrogate,p,i;for(A!==0?(p=A,i=-1,A=0):(p=h.charCodeAt(0),i=0);;){let l=p;if(n.isHighSurrogate(p))if(i+1>>6,h[S++]=128|(C&63)>>>0):C<65536?(h[S++]=224|(C&61440)>>>12,h[S++]=128|(C&4032)>>>6,h[S++]=128|(C&63)>>>0):(h[S++]=240|(C&1835008)>>>18,h[S++]=128|(C&258048)>>>12,h[S++]=128|(C&4032)>>>6,h[S++]=128|(C&63)>>>0),S>=64&&(this._step(),S-=64,this._totalLen+=64,h[0]=h[64],h[1]=h[65],h[2]=h[66]),S}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()),s(this._h0)+s(this._h1)+s(this._h2)+s(this._h3)+s(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,e(this._buff,this._buffLen),this._buffLen>56&&(this._step(),e(this._buff));const h=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(h/4294967296),!1),this._buffDV.setUint32(60,h%4294967296,!1),this._step()}_step(){const h=u._bigBlock32,S=this._buffDV;for(let _=0;_<64;_+=4)h.setUint32(_,S.getUint32(_,!1),!1);for(let _=64;_<320;_+=4)h.setUint32(_,m(h.getUint32(_-12,!1)^h.getUint32(_-32,!1)^h.getUint32(_-56,!1)^h.getUint32(_-64,!1),1),!1);let C=this._h0,y=this._h1,A=this._h2,p=this._h3,i=this._h4,l,g,w;for(let _=0;_<80;_++)_<20?(l=y&A|~y&p,g=1518500249):_<40?(l=y^A^p,g=1859775393):_<60?(l=y&A|y&p|A&p,g=2400959708):(l=y^A^p,g=3395469782),w=m(C,5)+l+i+g+h.getUint32(_*4,!1)&4294967295,i=p,p=A,A=m(y,30),y=C,C=w;this._h0=this._h0+C&4294967295,this._h1=this._h1+y&4294967295,this._h2=this._h2+A&4294967295,this._h3=this._h3+p&4294967295,this._h4=this._h4+i&4294967295}}r.StringSHA1=u,u._bigBlock32=new DataView(new ArrayBuffer(320))}),X(Y[25],J([0,1,37,41]),function(q,r,n,x){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LcsDiff=r.StringDiffSequence=void 0,r.stringDiff=b;class R{constructor(e){this.source=e}getElements(){const e=this.source,c=new Int32Array(e.length);for(let s=0,u=e.length;s0||this.m_modifiedCount>0)&&this.m_changes.push(new n.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,c){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,c),this.m_originalCount++}AddModifiedElement(e,c){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,c),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 a{constructor(e,c,s=null){this.ContinueProcessingPredicate=s,this._originalSequence=e,this._modifiedSequence=c;const[u,d,h]=a._getElements(e),[S,C,y]=a._getElements(c);this._hasStrings=h&&y,this._originalStringElements=u,this._originalElementsOrHash=d,this._modifiedStringElements=S,this._modifiedElementsOrHash=C,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const c=e.getElements();if(a._isStringArray(c)){const s=new Int32Array(c.length);for(let u=0,d=c.length;u=e&&u>=s&&this.ElementsAreEqual(c,u);)c--,u--;if(e>c||s>u){let p;return s<=u?(f.Assert(e===c+1,"originalStart should only be one more than originalEnd"),p=[new n.DiffChange(e,0,s,u-s+1)]):e<=c?(f.Assert(s===u+1,"modifiedStart should only be one more than modifiedEnd"),p=[new n.DiffChange(e,c-e+1,s,0)]):(f.Assert(e===c+1,"originalStart should only be one more than originalEnd"),f.Assert(s===u+1,"modifiedStart should only be one more than modifiedEnd"),p=[]),p}const h=[0],S=[0],C=this.ComputeRecursionPoint(e,c,s,u,h,S,d),y=h[0],A=S[0];if(C!==null)return C;if(!d[0]){const p=this.ComputeDiffRecursive(e,y,s,A,d);let i=[];return d[0]?i=[new n.DiffChange(y+1,c-(y+1)+1,A+1,u-(A+1)+1)]:i=this.ComputeDiffRecursive(y+1,c,A+1,u,d),this.ConcatenateChanges(p,i)}return[new n.DiffChange(e,c-e+1,s,u-s+1)]}WALKTRACE(e,c,s,u,d,h,S,C,y,A,p,i,l,g,w,_,E,N){let L=null,M=null,D=new o,F=c,k=s,O=l[0]-_[0]-u,z=-1073741824,Q=this.m_forwardHistory.length-1;do{const T=O+e;T===F||T=0&&(y=this.m_forwardHistory[Q],e=y[0],F=1,k=y.length-1)}while(--Q>=-1);if(L=D.getReverseChanges(),N[0]){let T=l[0]+1,I=_[0]+1;if(L!==null&&L.length>0){const W=L[L.length-1];T=Math.max(T,W.getOriginalEnd()),I=Math.max(I,W.getModifiedEnd())}M=[new n.DiffChange(T,i-T+1,I,w-I+1)]}else{D=new o,F=h,k=S,O=l[0]-_[0]-C,z=1073741824,Q=E?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const T=O+d;T===F||T=A[T+1]?(p=A[T+1]-1,g=p-O-C,p>z&&D.MarkNextChange(),z=p+1,D.AddOriginalElement(p+1,g+1),O=T+1-d):(p=A[T-1],g=p-O-C,p>z&&D.MarkNextChange(),z=p,D.AddModifiedElement(p+1,g+1),O=T-1-d),Q>=0&&(A=this.m_reverseHistory[Q],d=A[0],F=1,k=A.length-1)}while(--Q>=-1);M=D.getChanges()}return this.ConcatenateChanges(L,M)}ComputeRecursionPoint(e,c,s,u,d,h,S){let C=0,y=0,A=0,p=0,i=0,l=0;e--,s--,d[0]=0,h[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=c-e+(u-s),w=g+1,_=new Int32Array(w),E=new Int32Array(w),N=u-s,L=c-e,M=e-s,D=c-u,k=(L-N)%2===0;_[N]=e,E[L]=c,S[0]=!1;for(let O=1;O<=g/2+1;O++){let z=0,Q=0;A=this.ClipDiagonalBound(N-O,O,N,w),p=this.ClipDiagonalBound(N+O,O,N,w);for(let I=A;I<=p;I+=2){I===A||Iz+Q&&(z=C,Q=y),!k&&Math.abs(I-L)<=O-1&&C>=E[I])return d[0]=C,h[0]=y,W<=E[I]&&1447>0&&O<=1448?this.WALKTRACE(N,A,p,M,L,i,l,D,_,E,C,c,d,y,u,h,k,S):null}const T=(z-e+(Q-s)-O)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(z,T))return S[0]=!0,d[0]=z,h[0]=Q,T>0&&1447>0&&O<=1448?this.WALKTRACE(N,A,p,M,L,i,l,D,_,E,C,c,d,y,u,h,k,S):(e++,s++,[new n.DiffChange(e,c-e+1,s,u-s+1)]);i=this.ClipDiagonalBound(L-O,O,L,w),l=this.ClipDiagonalBound(L+O,O,L,w);for(let I=i;I<=l;I+=2){I===i||I=E[I+1]?C=E[I+1]-1:C=E[I-1],y=C-(I-L)-D;const W=C;for(;C>e&&y>s&&this.ElementsAreEqual(C,y);)C--,y--;if(E[I]=C,k&&Math.abs(I-N)<=O&&C<=_[I])return d[0]=C,h[0]=y,W>=_[I]&&1447>0&&O<=1448?this.WALKTRACE(N,A,p,M,L,i,l,D,_,E,C,c,d,y,u,h,k,S):null}if(O<=1447){let I=new Int32Array(p-A+2);I[0]=N-A+1,v.Copy2(_,A,I,1,p-A+1),this.m_forwardHistory.push(I),I=new Int32Array(l-i+2),I[0]=L-i+1,v.Copy2(E,i,I,1,l-i+1),this.m_reverseHistory.push(I)}}return this.WALKTRACE(N,A,p,M,L,i,l,D,_,E,C,c,d,y,u,h,k,S)}PrettifyChanges(e){for(let c=0;c0,S=s.modifiedLength>0;for(;s.originalStart+s.originalLength=0;c--){const s=e[c];let u=0,d=0;if(c>0){const p=e[c-1];u=p.originalStart+p.originalLength,d=p.modifiedStart+p.modifiedLength}const h=s.originalLength>0,S=s.modifiedLength>0;let C=0,y=this._boundaryScore(s.originalStart,s.originalLength,s.modifiedStart,s.modifiedLength);for(let p=1;;p++){const i=s.originalStart-p,l=s.modifiedStart-p;if(iy&&(y=w,C=p)}s.originalStart-=C,s.modifiedStart-=C;const A=[null];if(c>0&&this.ChangesOverlap(e[c-1],e[c],A)){e[c-1]=A[0],e.splice(c,1),c++;continue}}if(this._hasStrings)for(let c=1,s=e.length;c0&&l>C&&(C=l,y=p,A=i)}return C>0?[y,A]:null}_contiguousSequenceScore(e,c,s){let u=0;for(let d=0;d=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,c){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(c>0){const s=e+c;if(this._OriginalIsBoundary(s-1)||this._OriginalIsBoundary(s))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,c){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(c>0){const s=e+c;if(this._ModifiedIsBoundary(s-1)||this._ModifiedIsBoundary(s))return!0}return!1}_boundaryScore(e,c,s,u){const d=this._OriginalRegionIsBoundary(e,c)?1:0,h=this._ModifiedRegionIsBoundary(s,u)?1:0;return d+h}ConcatenateChanges(e,c){const s=[];if(e.length===0||c.length===0)return c.length>0?c:e;if(this.ChangesOverlap(e[e.length-1],c[0],s)){const u=new Array(e.length+c.length-1);return v.Copy(e,0,u,0,e.length-1),u[e.length-1]=s[0],v.Copy(c,1,u,e.length,c.length-1),u}else{const u=new Array(e.length+c.length);return v.Copy(e,0,u,0,e.length),v.Copy(c,0,u,e.length,c.length),u}}ChangesOverlap(e,c,s){if(f.Assert(e.originalStart<=c.originalStart,"Left change is not less than or equal to right change"),f.Assert(e.modifiedStart<=c.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=c.originalStart||e.modifiedStart+e.modifiedLength>=c.modifiedStart){const u=e.originalStart;let d=e.originalLength;const h=e.modifiedStart;let S=e.modifiedLength;return e.originalStart+e.originalLength>=c.originalStart&&(d=c.originalStart+c.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=c.modifiedStart&&(S=c.modifiedStart+c.modifiedLength-e.modifiedStart),s[0]=new n.DiffChange(u,d,h,S),!0}else return s[0]=null,!1}ClipDiagonalBound(e,c,s,u){if(e>=0&&e"u"}function a(h){return!m(h)}function m(h){return o(h)||h===null}function e(h,S){if(!h)throw new Error(S?`Unexpected type, expected '${S}'`:"Unexpected type")}function c(h){if(m(h))throw new Error("Assertion Failed: argument is undefined or null");return h}function s(h){return typeof h=="function"}function u(h,S){const C=Math.min(h.length,S.length);for(let y=0;y{u[d]=h&&typeof h=="object"?x(h):h}),u}function R(s){if(!s||typeof s!="object")return s;const u=[s];for(;u.length>0;){const d=u.shift();Object.freeze(d);for(const h in d)if(b.call(d,h)){const S=d[h];typeof S=="object"&&!Object.isFrozen(S)&&!(0,n.isTypedArray)(S)&&u.push(S)}}return s}const b=Object.prototype.hasOwnProperty;function f(s,u){return v(s,u,new Set)}function v(s,u,d){if((0,n.isUndefinedOrNull)(s))return s;const h=u(s);if(typeof h<"u")return h;if(Array.isArray(s)){const S=[];for(const C of s)S.push(v(C,u,d));return S}if((0,n.isObject)(s)){if(d.has(s))throw new Error("Cannot clone recursive data-structure");d.add(s);const S={};for(const C in s)b.call(s,C)&&(S[C]=v(s[C],u,d));return d.delete(s),S}return s}function o(s,u,d=!0){return(0,n.isObject)(s)?((0,n.isObject)(u)&&Object.keys(u).forEach(h=>{h in s?d&&((0,n.isObject)(s[h])&&(0,n.isObject)(u[h])?o(s[h],u[h],d):s[h]=u[h]):s[h]=u[h]}),s):u}function a(s,u){if(s===u)return!0;if(s==null||u===null||u===void 0||typeof s!=typeof u||typeof s!="object"||Array.isArray(s)!==Array.isArray(u))return!1;let d,h;if(Array.isArray(s)){if(s.length!==u.length)return!1;for(d=0;dfunction(){const C=Array.prototype.slice.call(arguments,0);return u(S,C)},h={};for(const S of s)h[S]=d(S);return h}}),X(Y[28],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toUint8=n,r.toUint32=x;function n(R){return R<0?0:R>255?255:R|0}function x(R){return R<0?0:R>4294967295?4294967295:R|0}}),X(Y[29],J([0,1,28]),function(q,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CharacterSet=r.CharacterClassifier=void 0;class x{constructor(f){const v=(0,n.toUint8)(f);this._defaultValue=v,this._asciiMap=x._createAsciiMap(v),this._map=new Map}static _createAsciiMap(f){const v=new Uint8Array(256);return v.fill(f),v}set(f,v){const o=(0,n.toUint8)(v);f>=0&&f<256?this._asciiMap[f]=o:this._map.set(f,o)}get(f){return f>=0&&f<256?this._asciiMap[f]:this._map.get(f)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}r.CharacterClassifier=x;class R{constructor(){this._actual=new x(0)}add(f){this._actual.set(f,1)}has(f){return this._actual.get(f)===1}clear(){return this._actual.clear()}}r.CharacterSet=R}),X(Y[3],J([0,1,5]),function(q,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.OffsetRangeSet=r.OffsetRange=void 0;class x{static addRange(f,v){let o=0;for(;ov))return new x(f,v)}static ofLength(f){return new x(0,f)}static ofStartAndLength(f,v){return new x(f,f+v)}constructor(f,v){if(this.start=f,this.endExclusive=v,f>v)throw new n.BugIndicatingError(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(f){return new x(this.start+f,this.endExclusive+f)}deltaStart(f){return new x(this.start+f,this.endExclusive)}deltaEnd(f){return new x(this.start,this.endExclusive+f)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(f){return this.start<=f&&f=f.endExclusive}slice(f){return f.slice(this.start,this.endExclusive)}substring(f){return f.substring(this.start,this.endExclusive)}clip(f){if(this.isEmpty)throw new n.BugIndicatingError(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,f))}clipCyclic(f){if(this.isEmpty)throw new n.BugIndicatingError(`Invalid clipping range: ${this.toString()}`);return f=this.endExclusive?this.start+(f-this.start)%this.length:f}forEach(f){for(let v=this.start;vf.toString()).join(", ")}intersectsStrict(f){let v=0;for(;vf+v.length,0)}}r.OffsetRangeSet=R}),X(Y[4],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Position=void 0;class n{constructor(R,b){this.lineNumber=R,this.column=b}with(R=this.lineNumber,b=this.column){return R===this.lineNumber&&b===this.column?this:new n(R,b)}delta(R=0,b=0){return this.with(this.lineNumber+R,this.column+b)}equals(R){return n.equals(this,R)}static equals(R,b){return!R&&!b?!0:!!R&&!!b&&R.lineNumber===b.lineNumber&&R.column===b.column}isBefore(R){return n.isBefore(this,R)}static isBefore(R,b){return R.lineNumberv||b===v&&f>o?(this.startLineNumber=v,this.startColumn=o,this.endLineNumber=b,this.endColumn=f):(this.startLineNumber=b,this.startColumn=f,this.endLineNumber=v,this.endColumn=o)}isEmpty(){return x.isEmpty(this)}static isEmpty(b){return b.startLineNumber===b.endLineNumber&&b.startColumn===b.endColumn}containsPosition(b){return x.containsPosition(this,b)}static containsPosition(b,f){return!(f.lineNumberb.endLineNumber||f.lineNumber===b.startLineNumber&&f.columnb.endColumn)}static strictContainsPosition(b,f){return!(f.lineNumberb.endLineNumber||f.lineNumber===b.startLineNumber&&f.column<=b.startColumn||f.lineNumber===b.endLineNumber&&f.column>=b.endColumn)}containsRange(b){return x.containsRange(this,b)}static containsRange(b,f){return!(f.startLineNumberb.endLineNumber||f.endLineNumber>b.endLineNumber||f.startLineNumber===b.startLineNumber&&f.startColumnb.endColumn)}strictContainsRange(b){return x.strictContainsRange(this,b)}static strictContainsRange(b,f){return!(f.startLineNumberb.endLineNumber||f.endLineNumber>b.endLineNumber||f.startLineNumber===b.startLineNumber&&f.startColumn<=b.startColumn||f.endLineNumber===b.endLineNumber&&f.endColumn>=b.endColumn)}plusRange(b){return x.plusRange(this,b)}static plusRange(b,f){let v,o,a,m;return f.startLineNumberb.endLineNumber?(a=f.endLineNumber,m=f.endColumn):f.endLineNumber===b.endLineNumber?(a=f.endLineNumber,m=Math.max(f.endColumn,b.endColumn)):(a=b.endLineNumber,m=b.endColumn),new x(v,o,a,m)}intersectRanges(b){return x.intersectRanges(this,b)}static intersectRanges(b,f){let v=b.startLineNumber,o=b.startColumn,a=b.endLineNumber,m=b.endColumn;const e=f.startLineNumber,c=f.startColumn,s=f.endLineNumber,u=f.endColumn;return vs?(a=s,m=u):a===s&&(m=Math.min(m,u)),v>a||v===a&&o>m?null:new x(v,o,a,m)}equalsRange(b){return x.equalsRange(this,b)}static equalsRange(b,f){return!b&&!f?!0:!!b&&!!f&&b.startLineNumber===f.startLineNumber&&b.startColumn===f.startColumn&&b.endLineNumber===f.endLineNumber&&b.endColumn===f.endColumn}getEndPosition(){return x.getEndPosition(this)}static getEndPosition(b){return new n.Position(b.endLineNumber,b.endColumn)}getStartPosition(){return x.getStartPosition(this)}static getStartPosition(b){return new n.Position(b.startLineNumber,b.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(b,f){return new x(this.startLineNumber,this.startColumn,b,f)}setStartPosition(b,f){return new x(b,f,this.endLineNumber,this.endColumn)}collapseToStart(){return x.collapseToStart(this)}static collapseToStart(b){return new x(b.startLineNumber,b.startColumn,b.startLineNumber,b.startColumn)}collapseToEnd(){return x.collapseToEnd(this)}static collapseToEnd(b){return new x(b.endLineNumber,b.endColumn,b.endLineNumber,b.endColumn)}delta(b){return new x(this.startLineNumber+b,this.startColumn,this.endLineNumber+b,this.endColumn)}static fromPositions(b,f=b){return new x(b.lineNumber,b.column,f.lineNumber,f.column)}static lift(b){return b?new x(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):null}static isIRange(b){return b&&typeof b.startLineNumber=="number"&&typeof b.startColumn=="number"&&typeof b.endLineNumber=="number"&&typeof b.endColumn=="number"}static areIntersectingOrTouching(b,f){return!(b.endLineNumberb.startLineNumber}toJSON(){return this}}r.Range=x}),X(Y[11],J([0,1,5,3,2,12]),function(q,r,n,x,R,b){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LineRangeSet=r.LineRange=void 0;class f{static fromRangeInclusive(a){return new f(a.startLineNumber,a.endLineNumber+1)}static joinMany(a){if(a.length===0)return[];let m=new v(a[0].slice());for(let e=1;em)throw new n.BugIndicatingError(`startLineNumber ${a} cannot be after endLineNumberExclusive ${m}`);this.startLineNumber=a,this.endLineNumberExclusive=m}contains(a){return this.startLineNumber<=a&&ac.endLineNumberExclusive>=a.startLineNumber),e=(0,b.findLastIdxMonotonous)(this._normalizedRanges,c=>c.startLineNumber<=a.endLineNumberExclusive)+1;if(m===e)this._normalizedRanges.splice(m,0,a);else if(m===e-1){const c=this._normalizedRanges[m];this._normalizedRanges[m]=c.join(a)}else{const c=this._normalizedRanges[m].join(this._normalizedRanges[e-1]).join(a);this._normalizedRanges.splice(m,e-m,c)}}contains(a){const m=(0,b.findLastMonotonous)(this._normalizedRanges,e=>e.startLineNumber<=a);return!!m&&m.endLineNumberExclusive>a}intersects(a){const m=(0,b.findLastMonotonous)(this._normalizedRanges,e=>e.startLineNumbera.startLineNumber}getUnion(a){if(this._normalizedRanges.length===0)return a;if(a._normalizedRanges.length===0)return this;const m=[];let e=0,c=0,s=null;for(;e=u.startLineNumber?s=new f(s.startLineNumber,Math.max(s.endLineNumberExclusive,u.endLineNumberExclusive)):(m.push(s),s=u)}return s!==null&&m.push(s),new v(m)}subtractFrom(a){const m=(0,b.findFirstIdxMonotonousOrArrLen)(this._normalizedRanges,u=>u.endLineNumberExclusive>=a.startLineNumber),e=(0,b.findLastIdxMonotonous)(this._normalizedRanges,u=>u.startLineNumber<=a.endLineNumberExclusive)+1;if(m===e)return new v([a]);const c=[];let s=a.startLineNumber;for(let u=m;us&&c.push(new f(s,d.startLineNumber)),s=d.endLineNumberExclusive}return sa.toString()).join(", ")}getIntersection(a){const m=[];let e=0,c=0;for(;em.delta(a)))}}r.LineRangeSet=v}),X(Y[44],J([0,1,4,2]),function(q,r,n,x){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Selection=void 0;class R extends x.Range{constructor(f,v,o,a){super(f,v,o,a),this.selectionStartLineNumber=f,this.selectionStartColumn=v,this.positionLineNumber=o,this.positionColumn=a}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(f){return R.selectionsEqual(this,f)}static selectionsEqual(f,v){return f.selectionStartLineNumber===v.selectionStartLineNumber&&f.selectionStartColumn===v.selectionStartColumn&&f.positionLineNumber===v.positionLineNumber&&f.positionColumn===v.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(f,v){return this.getDirection()===0?new R(this.startLineNumber,this.startColumn,f,v):new R(f,v,this.startLineNumber,this.startColumn)}getPosition(){return new n.Position(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new n.Position(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(f,v){return this.getDirection()===0?new R(f,v,this.endLineNumber,this.endColumn):new R(this.endLineNumber,this.endColumn,f,v)}static fromPositions(f,v=f){return new R(f.lineNumber,f.column,v.lineNumber,v.column)}static fromRange(f,v){return v===0?new R(f.startLineNumber,f.startColumn,f.endLineNumber,f.endColumn):new R(f.endLineNumber,f.endColumn,f.startLineNumber,f.startColumn)}static liftSelection(f){return new R(f.selectionStartLineNumber,f.selectionStartColumn,f.positionLineNumber,f.positionColumn)}static selectionsArrEqual(f,v){if(f&&!v||!f&&v)return!1;if(!f&&!v)return!0;if(f.length!==v.length)return!1;for(let o=0,a=f.length;of.lineCount:this.columnCount>=f.columnCount}createRange(f){return this.lineCount===0?new x.Range(f.lineNumber,f.column,f.lineNumber,f.column+this.columnCount):new x.Range(f.lineNumber,f.column,f.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(f){return this.lineCount===0?new n.Position(f.lineNumber,f.column+this.columnCount):new n.Position(f.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}r.TextLength=R,R.zero=new R(0,0)}),X(Y[45],J([0,1,3,30]),function(q,r,n,x){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.PositionOffsetTransformer=void 0;class R{constructor(f){this.text=f,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let v=0;v(0,n.checkAdjacentItems)(u,(d,h)=>d.range.getEndPosition().isBeforeOrEqual(h.range.getStartPosition())))}apply(u){let d="",h=new R.Position(1,1);for(const C of this.edits){const y=C.range,A=y.getStartPosition(),p=y.getEndPosition(),i=m(h,A);i.isEmpty()||(d+=u.getValueOfRange(i)),d+=C.text,h=p}const S=m(h,u.endPositionExclusive);return S.isEmpty()||(d+=u.getValueOfRange(S)),d}applyToString(u){const d=new c(u);return this.apply(d)}getNewRanges(){const u=[];let d=0,h=0,S=0;for(const C of this.edits){const y=v.TextLength.ofText(C.text),A=R.Position.lift({lineNumber:C.range.startLineNumber+h,column:C.range.startColumn+(C.range.startLineNumber===d?S:0)}),p=y.createRange(A);u.push(p),h=p.endLineNumber-C.range.endLineNumber,S=p.endColumn-C.range.endColumn,d=C.range.endLineNumber}return u}}r.TextEdit=o;class a{constructor(u,d){this.range=u,this.text=d}}r.SingleTextEdit=a;function m(s,u){if(s.lineNumber===u.lineNumber&&s.column===Number.MAX_SAFE_INTEGER)return f.Range.fromPositions(u,u);if(!s.isBeforeOrEqual(u))throw new x.BugIndicatingError("start must be before end");return new f.Range(s.lineNumber,s.column,u.lineNumber,u.column)}class e{get endPositionExclusive(){return this.length.addToPosition(new R.Position(1,1))}}r.AbstractText=e;class c extends e{constructor(u){super(),this.value=u,this._t=new b.PositionOffsetTransformer(this.value)}getValueOfRange(u){return this._t.getOffsetRange(u).substring(this.value)}get length(){return this._t.textLength}}r.StringText=c}),X(Y[47],J([0,1,23,29]),function(q,r,n,x){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.WordCharacterClassifier=void 0,r.getMapForWordSeparators=f;class R extends x.CharacterClassifier{constructor(o,a){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=a,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let m=0,e=o.length;ma)break;m=e}return m}findNextIntlWordAtOrAfterOffset(o,a){for(const m of this._getIntlSegmenterWordsOnLine(o))if(!(m.index/?";function R(a=""){let m="(-?\\d*\\.\\d\\w*)|([^";for(const e of r.USUAL_WORD_SEPARATORS)a.indexOf(e)>=0||(m+="\\"+e);return m+="\\s]+)",new RegExp(m,"g")}r.DEFAULT_WORD_REGEXP=R();function b(a){let m=r.DEFAULT_WORD_REGEXP;if(a&&a instanceof RegExp)if(a.global)m=a;else{let e="g";a.ignoreCase&&(e+="i"),a.multiline&&(e+="m"),a.unicode&&(e+="u"),m=new RegExp(a.source,e)}return m.lastIndex=0,m}const f=new x.LinkedList;f.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function v(a,m,e,c,s){if(m=b(m),s||(s=n.Iterable.first(f)),e.length>s.maxLen){let C=a-s.maxLen/2;return C<0?C=0:c+=C,e=e.substring(C,a+s.maxLen/2),v(a,m,e,c,s)}const u=Date.now(),d=a-1-c;let h=-1,S=null;for(let C=1;!(Date.now()-u>=s.timeBudget);C++){const y=d-s.windowSize*C;m.lastIndex=Math.max(0,y);const A=o(m,e,d,h);if(!A&&S||(S=A,y<=0))break;h=y}if(S){const C={word:S[0],startColumn:c+1+S.index,endColumn:c+1+S.index+S[0].length};return m.lastIndex=0,C}return null}function o(a,m,e,c){let s;for(;s=a.exec(m);){const u=s.index||0;if(u<=e&&a.lastIndex>=e)return s;if(c>0&&u>c)return null}return null}}),X(Y[8],J([0,1,7,5,3]),function(q,r,n,x,R){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DateTimeout=r.InfiniteTimeout=r.OffsetPair=r.SequenceDiff=r.DiffAlgorithmResult=void 0;class b{static trivial(e,c){return new b([new f(R.OffsetRange.ofLength(e.length),R.OffsetRange.ofLength(c.length))],!1)}static trivialTimedOut(e,c){return new b([new f(R.OffsetRange.ofLength(e.length),R.OffsetRange.ofLength(c.length))],!0)}constructor(e,c){this.diffs=e,this.hitTimeout=c}}r.DiffAlgorithmResult=b;class f{static invert(e,c){const s=[];return(0,n.forEachAdjacent)(e,(u,d)=>{s.push(f.fromOffsetPairs(u?u.getEndExclusives():v.zero,d?d.getStarts():new v(c,(u?u.seq2Range.endExclusive-u.seq1Range.endExclusive:0)+c)))}),s}static fromOffsetPairs(e,c){return new f(new R.OffsetRange(e.offset1,c.offset1),new R.OffsetRange(e.offset2,c.offset2))}constructor(e,c){this.seq1Range=e,this.seq2Range=c}swap(){return new f(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new f(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new f(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return e===0?this:new f(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return e===0?this:new f(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const c=this.seq1Range.intersect(e.seq1Range),s=this.seq2Range.intersect(e.seq2Range);if(!(!c||!s))return new f(c,s)}getStarts(){return new v(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new v(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}r.SequenceDiff=f;class v{constructor(e,c){this.offset1=e,this.offset2=c}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return e===0?this:new v(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}r.OffsetPair=v,v.zero=new v(0,0),v.max=new v(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class o{isValid(){return!0}}r.InfiniteTimeout=o,o.instance=new o;class a{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new x.BugIndicatingError("timeout must be positive")}isValid(){if(!(Date.now()-this.startTimec.length||L>s.length)continue;const M=u(N,L);h.set(C,M);const D=N===_?S.get(C+1):S.get(C-1);if(S.set(C,M!==N?new b(D,N,L,M-N):D),h.get(C)===c.length&&h.get(C)-C===s.length)break e}}let y=S.get(C);const A=[];let p=c.length,i=s.length;for(;;){const l=y?y.x+y.length:0,g=y?y.y+y.length:0;if((l!==p||g!==i)&&A.push(new x.SequenceDiff(new n.OffsetRange(l,p),new n.OffsetRange(g,i))),!y)break;p=y.x,i=y.y,y=y.prev}return A.reverse(),new x.DiffAlgorithmResult(A,!1)}}r.MyersDiffAlgorithm=R;class b{constructor(a,m,e,c){this.prev=a,this.x=m,this.y=e,this.length=c}}class f{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(a){return a<0?(a=-a-1,this.negativeArr[a]):this.positiveArr[a]}set(a,m){if(a<0){if(a=-a-1,a>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(e.length*2),this.negativeArr.set(e)}this.negativeArr[a]=m}else{if(a>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(e.length*2),this.positiveArr.set(e)}this.positiveArr[a]=m}}}class v{constructor(){this.positiveArr=[],this.negativeArr=[]}get(a){return a<0?(a=-a-1,this.negativeArr[a]):this.positiveArr[a]}set(a,m){a<0?(a=-a-1,this.negativeArr[a]=m):this.positiveArr[a]=m}}}),X(Y[48],J([0,1,7,3,8]),function(q,r,n,x,R){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.optimizeSequenceDiffs=b,r.removeShortMatches=a,r.extendDiffsToEntireWordIfAppropriate=m,r.removeVeryShortMatchingLinesBetweenDiffs=c,r.removeVeryShortMatchingTextBetweenLongDiffs=s;function b(u,d,h){let S=h;return S=f(u,d,S),S=f(u,d,S),S=v(u,d,S),S}function f(u,d,h){if(h.length===0)return h;const S=[];S.push(h[0]);for(let y=1;y0&&(p=p.delta(l))}C.push(p)}return S.length>0&&C.push(S[S.length-1]),C}function v(u,d,h){if(!u.getBoundaryScore||!d.getBoundaryScore)return h;for(let S=0;S0?h[S-1]:void 0,y=h[S],A=S+1=S.start&&u.seq2Range.start-A>=C.start&&h.isStronglyEqual(u.seq2Range.start-A,u.seq2Range.endExclusive-A)&&A<100;)A++;A--;let p=0;for(;u.seq1Range.start+pl&&(l=N,i=g)}return u.delta(i)}function a(u,d,h){const S=[];for(const C of h){const y=S[S.length-1];if(!y){S.push(C);continue}C.seq1Range.start-y.seq1Range.endExclusive<=2||C.seq2Range.start-y.seq2Range.endExclusive<=2?S[S.length-1]=new R.SequenceDiff(y.seq1Range.join(C.seq1Range),y.seq2Range.join(C.seq2Range)):S.push(C)}return S}function m(u,d,h){const S=R.SequenceDiff.invert(h,u.length),C=[];let y=new R.OffsetPair(0,0);function A(i,l){if(i.offset10;){const M=S[0];if(!(M.seq1Range.intersects(_.seq1Range)||M.seq2Range.intersects(_.seq2Range)))break;const F=u.findWordContaining(M.seq1Range.start),k=d.findWordContaining(M.seq2Range.start),O=new R.SequenceDiff(F,k),z=O.intersect(M);if(N+=z.seq1Range.length,L+=z.seq2Range.length,_=_.join(O),_.seq1Range.endExclusive>=M.seq1Range.endExclusive)S.shift();else break}N+L<(_.seq1Range.length+_.seq2Range.length)*2/3&&C.push(_),y=_.getEndExclusives()}for(;S.length>0;){const i=S.shift();i.seq1Range.isEmpty||(A(i.getStarts(),i),A(i.getEndExclusives().delta(-1),i))}return e(h,C)}function e(u,d){const h=[];for(;u.length>0||d.length>0;){const S=u[0],C=d[0];let y;S&&(!C||S.seq1Range.start0&&h[h.length-1].seq1Range.endExclusive>=y.seq1Range.start?h[h.length-1]=h[h.length-1].join(y):h.push(y)}return h}function c(u,d,h){let S=h;if(S.length===0)return S;let C=0,y;do{y=!1;const A=[S[0]];for(let p=1;p5||E.seq1Range.length+E.seq2Range.length>5)};const i=S[p],l=A[A.length-1];g(l,i)?(y=!0,A[A.length-1]=A[A.length-1].join(i)):A.push(i)}S=A}while(C++<10&&y);return S}function s(u,d,h){let S=h;if(S.length===0)return S;let C=0,y;do{y=!1;const p=[S[0]];for(let i=1;i5||L.length>500)return!1;const D=u.getText(L).trim();if(D.length>20||D.split(/\r\n|\r|\n/).length>1)return!1;const F=u.countLinesIn(E.seq1Range),k=E.seq1Range.length,O=d.countLinesIn(E.seq2Range),z=E.seq2Range.length,Q=u.countLinesIn(N.seq1Range),T=N.seq1Range.length,I=d.countLinesIn(N.seq2Range),W=N.seq2Range.length,V=2*40+50;function H(U){return Math.min(U,V)}return Math.pow(Math.pow(H(F*40+k),1.5)+Math.pow(H(O*40+z),1.5),1.5)+Math.pow(Math.pow(H(Q*40+T),1.5)+Math.pow(H(I*40+W),1.5),1.5)>(V**1.5)**1.5*1.3};const l=S[i],g=p[p.length-1];w(g,l)?(y=!0,p[p.length-1]=p[p.length-1].join(l)):p.push(l)}S=p}while(C++<10&&y);const A=[];return(0,n.forEachWithNeighbors)(S,(p,i,l)=>{let g=i;function w(D){return D.length>0&&D.trim().length<=3&&i.seq1Range.length+i.seq2Range.length>100}const _=u.extendToFullLines(i.seq1Range),E=u.getText(new x.OffsetRange(_.start,i.seq1Range.start));w(E)&&(g=g.deltaStart(-E.length));const N=u.getText(new x.OffsetRange(i.seq1Range.endExclusive,_.endExclusive));w(N)&&(g=g.deltaEnd(N.length));const L=R.SequenceDiff.fromOffsetPairs(p?p.getEndExclusives():R.OffsetPair.zero,l?l.getStarts():R.OffsetPair.max),M=g.intersect(L);A.length>0&&M.getStarts().equals(A[A.length-1].getEndExclusives())?A[A.length-1]=A[A.length-1].join(M):A.push(M)}),A}}),X(Y[49],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LineSequence=void 0;class n{constructor(b,f){this.trimmedHash=b,this.lines=f}getElement(b){return this.trimmedHash[b]}get length(){return this.trimmedHash.length}getBoundaryScore(b){const f=b===0?0:x(this.lines[b-1]),v=b===this.lines.length?0:x(this.lines[b]);return 1e3-(f+v)}getText(b){return this.lines.slice(b.start,b.endExclusive).join(` `)}isStronglyEqual(b,f){return this.lines[b]===this.lines[f]}}r.LineSequence=n;function x(R){let b=0;for(;b0&&p>0&&c.get(A-1,p-1)===3&&(g+=s.get(A-1,p-1)),g+=m?m(A,p):1):g=-1;const w=Math.max(i,l,g);if(w===g){const _=A>0&&p>0?s.get(A-1,p-1):0;s.set(A,p,_+1),c.set(A,p,3)}else w===i?(s.set(A,p,0),c.set(A,p,1)):w===l&&(s.set(A,p,0),c.set(A,p,2));e.set(A,p,w)}const u=[];let d=v.length,h=o.length;function S(A,p){(A+1!==d||p+1!==h)&&u.push(new x.SequenceDiff(new n.OffsetRange(A+1,d),new n.OffsetRange(p+1,h))),d=A,h=p}let C=v.length-1,y=o.length-1;for(;C>=0&&y>=0;)c.get(C,y)===3?(S(C,y),C--,y--):c.get(C,y)===1?C--:y--;return S(-1,-1),u.reverse(),new x.DiffAlgorithmResult(u,!1)}}r.DynamicProgrammingDiffing=b}),X(Y[33],J([0,1,12,3,4,2,15]),function(q,r,n,x,R,b,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LinesSliceCharSequence=void 0;class v{constructor(s,u,d){this.lines=s,this.considerWhitespaceChanges=d,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let h=!1;u.start>0&&u.endExclusive>=s.length&&(u=new x.OffsetRange(u.start-1,u.endExclusive),h=!0),this.lineRange=u,this.firstCharOffsetByLine[0]=0;for(let S=this.lineRange.start;SString.fromCharCode(u)).join("")}getElement(s){return this.elements[s]}get length(){return this.elements.length}getBoundaryScore(s){const u=e(s>0?this.elements[s-1]:-1),d=e(sd<=s);return new R.Position(this.lineRange.start+u+1,s-this.firstCharOffsetByLine[u]+this.additionalOffsetByLine[u]+1)}translateRange(s){return b.Range.fromPositions(this.translateOffset(s.start),this.translateOffset(s.endExclusive))}findWordContaining(s){if(s<0||s>=this.elements.length||!o(this.elements[s]))return;let u=s;for(;u>0&&o(this.elements[u-1]);)u--;let d=s;for(;dC<=s.start))!==null&&u!==void 0?u:0,S=(d=(0,n.findFirstMonotonous)(this.firstCharOffsetByLine,C=>s.endExclusive<=C))!==null&&d!==void 0?d:this.elements.length;return new x.OffsetRange(h,S)}}r.LinesSliceCharSequence=v;function o(c){return c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57}const a={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function m(c){return a[c]}function e(c){return c===10?8:c===13?7:(0,f.isSpace)(c)?6:c>=97&&c<=122?0:c>=65&&c<=90?1:c>=48&&c<=57?2:c===-1?3:c===44||c===59?5:4}}),X(Y[34],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.MovedText=r.LinesDiff=void 0;class n{constructor(b,f,v){this.changes=b,this.moves=f,this.hitTimeout=v}}r.LinesDiff=n;class x{constructor(b,f){this.lineRangeMapping=b,this.changes=f}}r.MovedText=x}),X(Y[16],J([0,1,5,11,2,46]),function(q,r,n,x,R,b){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RangeMapping=r.DetailedLineRangeMapping=r.LineRangeMapping=void 0;class f{static inverse(m,e,c){const s=[];let u=1,d=1;for(const S of m){const C=new f(new x.LineRange(u,S.original.startLineNumber),new x.LineRange(d,S.modified.startLineNumber));C.modified.isEmpty||s.push(C),u=S.original.endLineNumberExclusive,d=S.modified.endLineNumberExclusive}const h=new f(new x.LineRange(u,e+1),new x.LineRange(d,c+1));return h.modified.isEmpty||s.push(h),s}static clip(m,e,c){const s=[];for(const u of m){const d=u.original.intersect(e),h=u.modified.intersect(c);d&&!d.isEmpty&&h&&!h.isEmpty&&s.push(new f(d,h))}return s}constructor(m,e){this.original=m,this.modified=e}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new f(this.modified,this.original)}join(m){return new f(this.original.join(m.original),this.modified.join(m.modified))}toRangeMapping(){const m=this.original.toInclusiveRange(),e=this.modified.toInclusiveRange();if(m&&e)return new o(m,e);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new n.BugIndicatingError("not a valid diff");return new o(new R.Range(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new R.Range(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new o(new R.Range(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new R.Range(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}}r.LineRangeMapping=f;class v extends f{static fromRangeMappings(m){const e=x.LineRange.join(m.map(s=>x.LineRange.fromRangeInclusive(s.originalRange))),c=x.LineRange.join(m.map(s=>x.LineRange.fromRangeInclusive(s.modifiedRange)));return new v(e,c,m)}constructor(m,e,c){super(m,e),this.innerChanges=c}flip(){var m;return new v(this.modified,this.original,(m=this.innerChanges)===null||m===void 0?void 0:m.map(e=>e.flip()))}withInnerChangesFromLineRanges(){return new v(this.original,this.modified,[this.toRangeMapping()])}}r.DetailedLineRangeMapping=v;class o{constructor(m,e){this.originalRange=m,this.modifiedRange=e}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new o(this.modifiedRange,this.originalRange)}toTextEdit(m){const e=m.getValueOfRange(this.modifiedRange);return new b.SingleTextEdit(this.originalRange,e)}}r.RangeMapping=o}),X(Y[51],J([0,1,8,16,7,12,23,11,3,33,15,32]),function(q,r,n,x,R,b,f,v,o,a,m,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.computeMovedLines=c;function c(y,A,p,i,l,g){let{moves:w,excludedChanges:_}=u(y,A,p,g);if(!g.isValid())return[];const E=y.filter(L=>!_.has(L)),N=d(E,i,l,A,p,g);return(0,R.pushMany)(w,N),w=S(w),w=w.filter(L=>{const M=L.original.toOffsetRange().slice(A).map(F=>F.trim());return M.join(` `).length>=15&&s(M,F=>F.length>=2)>=2}),w=C(y,w),w}function s(y,A){let p=0;for(const i of y)A(i)&&p++;return p}function u(y,A,p,i){const l=[],g=y.filter(E=>E.modified.isEmpty&&E.original.length>=3).map(E=>new m.LineRangeFragment(E.original,A,E)),w=new Set(y.filter(E=>E.original.isEmpty&&E.modified.length>=3).map(E=>new m.LineRangeFragment(E.modified,p,E))),_=new Set;for(const E of g){let N=-1,L;for(const M of w){const D=E.computeSimilarity(M);D>N&&(N=D,L=M)}if(N>.9&&L&&(w.delete(L),l.push(new x.LineRangeMapping(E.range,L.range)),_.add(E.source),_.add(L.source)),!i.isValid())return{moves:l,excludedChanges:_}}return{moves:l,excludedChanges:_}}function d(y,A,p,i,l,g){const w=[],_=new f.SetMap;for(const D of y)for(let F=D.original.startLineNumber;FD.modified.startLineNumber,R.numberComparator));for(const D of y){let F=[];for(let k=D.modified.startLineNumber;k{for(const W of F)if(W.originalLineRange.endLineNumberExclusive+1===T.endLineNumberExclusive&&W.modifiedLineRange.endLineNumberExclusive+1===z.endLineNumberExclusive){W.originalLineRange=new v.LineRange(W.originalLineRange.startLineNumber,T.endLineNumberExclusive),W.modifiedLineRange=new v.LineRange(W.modifiedLineRange.startLineNumber,z.endLineNumberExclusive),Q.push(W);return}const I={modifiedLineRange:z,originalLineRange:T};E.push(I),Q.push(I)}),F=Q}if(!g.isValid())return[]}E.sort((0,R.reverseOrder)((0,R.compareBy)(D=>D.modifiedLineRange.length,R.numberComparator)));const N=new v.LineRangeSet,L=new v.LineRangeSet;for(const D of E){const F=D.modifiedLineRange.startLineNumber-D.originalLineRange.startLineNumber,k=N.subtractFrom(D.modifiedLineRange),O=L.subtractFrom(D.originalLineRange).getWithDelta(F),z=k.getIntersection(O);for(const Q of z.ranges){if(Q.length<3)continue;const T=Q,I=Q.delta(-F);w.push(new x.LineRangeMapping(I,T)),N.addRange(T),L.addRange(I)}}w.sort((0,R.compareBy)(D=>D.original.startLineNumber,R.numberComparator));const M=new b.MonotonousArray(y);for(let D=0;DH.original.startLineNumber<=F.original.startLineNumber),O=(0,b.findLastMonotonous)(y,H=>H.modified.startLineNumber<=F.modified.startLineNumber),z=Math.max(F.original.startLineNumber-k.original.startLineNumber,F.modified.startLineNumber-O.modified.startLineNumber),Q=M.findLastMonotonous(H=>H.original.startLineNumberH.modified.startLineNumberi.length||U>l.length||N.contains(U)||L.contains(H)||!h(i[H-1],l[U-1],g))break}W>0&&(L.addRange(new v.LineRange(F.original.startLineNumber-W,F.original.startLineNumber)),N.addRange(new v.LineRange(F.modified.startLineNumber-W,F.modified.startLineNumber)));let V;for(V=0;Vi.length||U>l.length||N.contains(U)||L.contains(H)||!h(i[H-1],l[U-1],g))break}V>0&&(L.addRange(new v.LineRange(F.original.endLineNumberExclusive,F.original.endLineNumberExclusive+V)),N.addRange(new v.LineRange(F.modified.endLineNumberExclusive,F.modified.endLineNumberExclusive+V))),(W>0||V>0)&&(w[D]=new x.LineRangeMapping(new v.LineRange(F.original.startLineNumber-W,F.original.endLineNumberExclusive+V),new v.LineRange(F.modified.startLineNumber-W,F.modified.endLineNumberExclusive+V)))}return w}function h(y,A,p){if(y.trim()===A.trim())return!0;if(y.length>300&&A.length>300)return!1;const l=new e.MyersDiffAlgorithm().compute(new a.LinesSliceCharSequence([y],new o.OffsetRange(0,1),!1),new a.LinesSliceCharSequence([A],new o.OffsetRange(0,1),!1),p);let g=0;const w=n.SequenceDiff.invert(l.diffs,y.length);for(const L of w)L.seq1Range.forEach(M=>{(0,m.isSpace)(y.charCodeAt(M))||g++});function _(L){let M=0;for(let D=0;DA.length?y:A);return g/E>.6&&E>10}function S(y){if(y.length===0)return y;y.sort((0,R.compareBy)(p=>p.original.startLineNumber,R.numberComparator));const A=[y[0]];for(let p=1;p=0&&w>=0&&g+w<=2){A[A.length-1]=i.join(l);continue}A.push(l)}return A}function C(y,A){const p=new b.MonotonousArray(y);return A=A.filter(i=>{const l=p.findLastMonotonous(_=>_.original.startLineNumber_.modified.startLineNumberV===H))return new u.LinesDiff([],[],!1);if(A.length===1&&A[0].length===0||p.length===1&&p[0].length===0)return new u.LinesDiff([new d.DetailedLineRangeMapping(new R.LineRange(1,A.length+1),new R.LineRange(1,p.length+1),[new d.RangeMapping(new f.Range(1,1,A.length,A[A.length-1].length+1),new f.Range(1,1,p.length,p[p.length-1].length+1))])],[],!1);const l=i.maxComputationTimeMs===0?v.InfiniteTimeout.instance:new v.DateTimeout(i.maxComputationTimeMs),g=!i.ignoreTrimWhitespace,w=new Map;function _(V){let H=w.get(V);return H===void 0&&(H=w.size,w.set(V,H)),H}const E=A.map(V=>_(V.trim())),N=p.map(V=>_(V.trim())),L=new c.LineSequence(E,A),M=new c.LineSequence(N,p),D=L.length+M.length<1700?this.dynamicProgrammingDiffing.compute(L,M,l,(V,H)=>A[V]===p[H]?p[H].length===0?.1:1+Math.log(1+p[H].length):.99):this.myersDiffingAlgorithm.compute(L,M);let F=D.diffs,k=D.hitTimeout;F=(0,e.optimizeSequenceDiffs)(L,M,F),F=(0,e.removeVeryShortMatchingLinesBetweenDiffs)(L,M,F);const O=[],z=V=>{if(g)for(let H=0;HV.seq1Range.start-Q===V.seq2Range.start-T);const H=V.seq1Range.start-Q;z(H),Q=V.seq1Range.endExclusive,T=V.seq2Range.endExclusive;const U=this.refineDiff(A,p,V,l,g);U.hitTimeout&&(k=!0);for(const se of U.mappings)O.push(se)}z(A.length-Q);const I=S(O,A,p);let W=[];return i.computeMoves&&(W=this.computeMoves(I,A,p,E,N,l,g)),(0,x.assertFn)(()=>{function V(U,se){if(U.lineNumber<1||U.lineNumber>se.length)return!1;const he=se[U.lineNumber-1];return!(U.column<1||U.column>he.length+1)}function H(U,se){return!(U.startLineNumber<1||U.startLineNumber>se.length+1||U.endLineNumberExclusive<1||U.endLineNumberExclusive>se.length+1)}for(const U of I){if(!U.innerChanges)return!1;for(const se of U.innerChanges)if(!(V(se.modifiedRange.getStartPosition(),p)&&V(se.modifiedRange.getEndPosition(),p)&&V(se.originalRange.getStartPosition(),A)&&V(se.originalRange.getEndPosition(),A)))return!1;if(!H(U.modified,p)||!H(U.original,A))return!1}return!0}),new u.LinesDiff(I,W,k)}computeMoves(A,p,i,l,g,w,_){return(0,m.computeMovedLines)(A,p,i,l,g,w).map(L=>{const M=this.refineDiff(p,i,new v.SequenceDiff(L.original.toOffsetRange(),L.modified.toOffsetRange()),w,_),D=S(M.mappings,p,i,!0);return new u.MovedText(L,D)})}refineDiff(A,p,i,l,g){const w=new s.LinesSliceCharSequence(A,i.seq1Range,g),_=new s.LinesSliceCharSequence(p,i.seq2Range,g),E=w.length+_.length<500?this.dynamicProgrammingDiffing.compute(w,_,l):this.myersDiffingAlgorithm.compute(w,_,l);let N=E.diffs;return N=(0,e.optimizeSequenceDiffs)(w,_,N),N=(0,e.extendDiffsToEntireWordIfAppropriate)(w,_,N),N=(0,e.removeShortMatches)(w,_,N),N=(0,e.removeVeryShortMatchingTextBetweenLongDiffs)(w,_,N),{mappings:N.map(M=>new d.RangeMapping(w.translateRange(M.seq1Range),_.translateRange(M.seq2Range))),hitTimeout:E.hitTimeout}}}r.DefaultLinesDiffComputer=h;function S(y,A,p,i=!1){const l=[];for(const g of(0,n.groupAdjacentBy)(y.map(w=>C(w,A,p)),(w,_)=>w.original.overlapOrTouch(_.original)||w.modified.overlapOrTouch(_.modified))){const w=g[0],_=g[g.length-1];l.push(new d.DetailedLineRangeMapping(w.original.join(_.original),w.modified.join(_.modified),g.map(E=>E.innerChanges[0])))}return(0,x.assertFn)(()=>!i&&l.length>0&&(l[0].modified.startLineNumber!==l[0].original.startLineNumber||p.length-l[l.length-1].modified.endLineNumberExclusive!==A.length-l[l.length-1].original.endLineNumberExclusive)?!1:(0,x.checkAdjacentItems)(l,(g,w)=>w.original.startLineNumber-g.original.endLineNumberExclusive===w.modified.startLineNumber-g.modified.endLineNumberExclusive&&g.original.endLineNumberExclusive=p[y.modifiedRange.startLineNumber-1].length&&y.originalRange.startColumn-1>=A[y.originalRange.startLineNumber-1].length&&y.originalRange.startLineNumber<=y.originalRange.endLineNumber+l&&y.modifiedRange.startLineNumber<=y.modifiedRange.endLineNumber+l&&(i=1);const g=new R.LineRange(y.originalRange.startLineNumber+i,y.originalRange.endLineNumber+1+l),w=new R.LineRange(y.modifiedRange.startLineNumber+i,y.modifiedRange.endLineNumber+1+l);return new d.DetailedLineRangeMapping(g,w,[y])}}),X(Y[53],J([0,1,25,34,16,6,2,9,11]),function(q,r,n,x,R,b,f,v,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DiffComputer=r.LegacyLinesDiffComputer=void 0;const a=3;class m{computeDiff(i,l,g){var w;const E=new S(i,l,{maxComputationTime:g.maxComputationTimeMs,shouldIgnoreTrimWhitespace:g.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),N=[];let L=null;for(const M of E.changes){let D;M.originalEndLineNumber===0?D=new o.LineRange(M.originalStartLineNumber+1,M.originalStartLineNumber+1):D=new o.LineRange(M.originalStartLineNumber,M.originalEndLineNumber+1);let F;M.modifiedEndLineNumber===0?F=new o.LineRange(M.modifiedStartLineNumber+1,M.modifiedStartLineNumber+1):F=new o.LineRange(M.modifiedStartLineNumber,M.modifiedEndLineNumber+1);let k=new R.DetailedLineRangeMapping(D,F,(w=M.charChanges)===null||w===void 0?void 0:w.map(O=>new R.RangeMapping(new f.Range(O.originalStartLineNumber,O.originalStartColumn,O.originalEndLineNumber,O.originalEndColumn),new f.Range(O.modifiedStartLineNumber,O.modifiedStartColumn,O.modifiedEndLineNumber,O.modifiedEndColumn))));L&&(L.modified.endLineNumberExclusive===k.modified.startLineNumber||L.original.endLineNumberExclusive===k.original.startLineNumber)&&(k=new R.DetailedLineRangeMapping(L.original.join(k.original),L.modified.join(k.modified),L.innerChanges&&k.innerChanges?L.innerChanges.concat(k.innerChanges):void 0),N.pop()),N.push(k),L=k}return(0,v.assertFn)(()=>(0,v.checkAdjacentItems)(N,(M,D)=>D.original.startLineNumber-M.original.endLineNumberExclusive===D.modified.startLineNumber-M.modified.endLineNumberExclusive&&M.original.endLineNumberExclusive(i===10?"\\n":String.fromCharCode(i))+`-(${this._lineNumbers[l]},${this._columns[l]})`).join(", ")+"]"}_assertIndex(i,l){if(i<0||i>=l.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(i){return i>0&&i===this._lineNumbers.length?this.getEndLineNumber(i-1):(this._assertIndex(i,this._lineNumbers),this._lineNumbers[i])}getEndLineNumber(i){return i===-1?this.getStartLineNumber(i+1):(this._assertIndex(i,this._lineNumbers),this._charCodes[i]===10?this._lineNumbers[i]+1:this._lineNumbers[i])}getStartColumn(i){return i>0&&i===this._columns.length?this.getEndColumn(i-1):(this._assertIndex(i,this._columns),this._columns[i])}getEndColumn(i){return i===-1?this.getStartColumn(i+1):(this._assertIndex(i,this._columns),this._charCodes[i]===10?1:this._columns[i]+1)}}class u{constructor(i,l,g,w,_,E,N,L){this.originalStartLineNumber=i,this.originalStartColumn=l,this.originalEndLineNumber=g,this.originalEndColumn=w,this.modifiedStartLineNumber=_,this.modifiedStartColumn=E,this.modifiedEndLineNumber=N,this.modifiedEndColumn=L}static createFromDiffChange(i,l,g){const w=l.getStartLineNumber(i.originalStart),_=l.getStartColumn(i.originalStart),E=l.getEndLineNumber(i.originalStart+i.originalLength-1),N=l.getEndColumn(i.originalStart+i.originalLength-1),L=g.getStartLineNumber(i.modifiedStart),M=g.getStartColumn(i.modifiedStart),D=g.getEndLineNumber(i.modifiedStart+i.modifiedLength-1),F=g.getEndColumn(i.modifiedStart+i.modifiedLength-1);return new u(w,_,E,N,L,M,D,F)}}function d(p){if(p.length<=1)return p;const i=[p[0]];let l=i[0];for(let g=1,w=p.length;g0&&l.originalLength<20&&l.modifiedLength>0&&l.modifiedLength<20&&_()){const O=g.createCharSequence(i,l.originalStart,l.originalStart+l.originalLength-1),z=w.createCharSequence(i,l.modifiedStart,l.modifiedStart+l.modifiedLength-1);if(O.getElements().length>0&&z.getElements().length>0){let Q=e(O,z,_,!0).changes;N&&(Q=d(Q)),k=[];for(let T=0,I=Q.length;T1&&Q>1;){const T=k.charCodeAt(z-2),I=O.charCodeAt(Q-2);if(T!==I)break;z--,Q--}(z>1||Q>1)&&this._pushTrimWhitespaceCharChange(w,_+1,1,z,E+1,1,Q)}{let z=y(k,1),Q=y(O,1);const T=k.length+1,I=O.length+1;for(;z!0;const i=Date.now();return()=>Date.now()-inew n.LegacyLinesDiffComputer,getDefault:()=>new x.DefaultLinesDiffComputer}}),X(Y[55],J([0,1,36]),function(q,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.computeDefaultDocumentColors=e;function x(c){const s=[];for(const u of c){const d=Number(u);(d||d===0&&u.replace(/\s/g,"")!=="")&&s.push(d)}return s}function R(c,s,u,d){return{red:c/255,blue:u/255,green:s/255,alpha:d}}function b(c,s){const u=s.index,d=s[0].length;if(!u)return;const h=c.positionAt(u);return{startLineNumber:h.lineNumber,startColumn:h.column,endLineNumber:h.lineNumber,endColumn:h.column+d}}function f(c,s){if(!c)return;const u=n.Color.Format.CSS.parseHex(s);if(u)return{range:c,color:R(u.rgba.r,u.rgba.g,u.rgba.b,u.rgba.a)}}function v(c,s,u){if(!c||s.length!==1)return;const h=s[0].values(),S=x(h);return{range:c,color:R(S[0],S[1],S[2],u?S[3]:1)}}function o(c,s,u){if(!c||s.length!==1)return;const h=s[0].values(),S=x(h),C=new n.Color(new n.HSLA(S[0],S[1]/100,S[2]/100,u?S[3]:1));return{range:c,color:R(C.rgba.r,C.rgba.g,C.rgba.b,C.rgba.a)}}function a(c,s){return typeof c=="string"?[...c.matchAll(s)]:c.findMatches(s)}function m(c){const s=[],d=a(c,/\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(d.length>0)for(const h of d){const S=h.filter(p=>p!==void 0),C=S[1],y=S[2];if(!y)continue;let A;if(C==="rgb"){const p=/^\(\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;A=v(b(c,h),a(y,p),!1)}else if(C==="rgba"){const p=/^\(\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;A=v(b(c,h),a(y,p),!0)}else if(C==="hsl"){const p=/^\(\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;A=o(b(c,h),a(y,p),!1)}else if(C==="hsla"){const p=/^\(\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;A=o(b(c,h),a(y,p),!0)}else C==="#"&&(A=f(b(c,h),C+y));A&&s.push(A)}return s}function e(c){return!c||typeof c.getValue!="function"||typeof c.positionAt!="function"?[]:m(c)}}),X(Y[56],J([0,1,29]),function(q,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LinkComputer=r.StateMachine=void 0,r.computeLinks=m;class x{constructor(c,s,u){const d=new Uint8Array(c*s);for(let h=0,S=c*s;hs&&(s=y),C>u&&(u=C),A>u&&(u=A)}s++,u++;const d=new x(u,s,0);for(let h=0,S=c.length;h=this._maxCharCode?0:this._states.get(c,s)}}r.StateMachine=R;let b=null;function f(){return b===null&&(b=new R([[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]])),b}let v=null;function o(){if(v===null){v=new n.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 s=0;sd);if(d>0){const C=s.charCodeAt(d-1),y=s.charCodeAt(S);(C===40&&y===41||C===91&&y===93||C===123&&y===125)&&S--}return{range:{startLineNumber:u,startColumn:d+1,endLineNumber:u,endColumn:S+2},url:s.substring(d,S+1)}}static computeLinks(c,s=f()){const u=o(),d=[];for(let h=1,S=c.getLineCount();h<=S;h++){const C=c.getLineContent(h),y=C.length;let A=0,p=0,i=0,l=1,g=!1,w=!1,_=!1,E=!1;for(;A=0?(v+=f?1:-1,v<0?v=R.length-1:v%=R.length,R[v]):null}}r.BasicInplaceReplace=n,n.INSTANCE=new n}),X(Y[58],J([0,1,14]),function(q,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ApplyEditsResult=r.SearchData=r.ValidAnnotatedEditOperation=r.FindMatch=r.TextModelResolvedOptions=r.InjectedTextCursorStops=r.GlyphMarginLane=r.OverviewRulerLane=void 0,r.isITextSnapshot=o,r.shouldSynchronizeModel=c;var x;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=4]="Right",s[s.Full=7]="Full"})(x||(r.OverviewRulerLane=x={}));var R;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=3]="Right"})(R||(r.GlyphMarginLane=R={}));var b;(function(s){s[s.Both=0]="Both",s[s.Right=1]="Right",s[s.Left=2]="Left",s[s.None=3]="None"})(b||(r.InjectedTextCursorStops=b={}));class f{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(u){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,u.tabSize|0),u.indentSize==="tabSize"?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,u.indentSize|0),this._indentSizeIsTabSize=!1),this.insertSpaces=!!u.insertSpaces,this.defaultEOL=u.defaultEOL|0,this.trimAutoWhitespace=!!u.trimAutoWhitespace,this.bracketPairColorizationOptions=u.bracketPairColorizationOptions}equals(u){return this.tabSize===u.tabSize&&this._indentSizeIsTabSize===u._indentSizeIsTabSize&&this.indentSize===u.indentSize&&this.insertSpaces===u.insertSpaces&&this.defaultEOL===u.defaultEOL&&this.trimAutoWhitespace===u.trimAutoWhitespace&&(0,n.equals)(this.bracketPairColorizationOptions,u.bracketPairColorizationOptions)}createChangeEvent(u){return{tabSize:this.tabSize!==u.tabSize,indentSize:this.indentSize!==u.indentSize,insertSpaces:this.insertSpaces!==u.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==u.trimAutoWhitespace}}}r.TextModelResolvedOptions=f;class v{constructor(u,d){this._findMatchBrand=void 0,this.range=u,this.matches=d}}r.FindMatch=v;function o(s){return s&&typeof s.read=="function"}class a{constructor(u,d,h,S,C,y){this.identifier=u,this.range=d,this.text=h,this.forceMoveMarkers=S,this.isAutoWhitespaceEdit=C,this._isTracked=y}}r.ValidAnnotatedEditOperation=a;class m{constructor(u,d,h){this.regex=u,this.wordSeparators=d,this.simpleSearch=h}}r.SearchData=m;class e{constructor(u,d,h){this.reverseEdits=u,this.changes=d,this.trimAutoWhitespaceLineNumbers=h}}r.ApplyEditsResult=e;function c(s){return!s.isTooLargeForSyncing()&&!s.isForSimpleWidget}}),X(Y[59],J([0,1,7,28]),function(q,r,n,x){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.PrefixSumIndexOfResult=r.ConstantTimePrefixSumComputer=r.PrefixSumComputer=void 0;class R{constructor(o){this.values=o,this.prefixSum=new Uint32Array(o.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(o,a){o=(0,x.toUint32)(o);const m=this.values,e=this.prefixSum,c=a.length;return c===0?!1:(this.values=new Uint32Array(m.length+c),this.values.set(m.subarray(0,o),0),this.values.set(m.subarray(o),o+c),this.values.set(a,o),o-1=0&&this.prefixSum.set(e.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(o,a){return o=(0,x.toUint32)(o),a=(0,x.toUint32)(a),this.values[o]===a?!1:(this.values[o]=a,o-1=m.length)return!1;const c=m.length-o;return a>=c&&(a=c),a===0?!1:(this.values=new Uint32Array(m.length-a),this.values.set(m.subarray(0,o),0),this.values.set(m.subarray(o+a),o),this.prefixSum=new Uint32Array(this.values.length),o-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(o){return o<0?0:(o=(0,x.toUint32)(o),this._getPrefixSum(o))}_getPrefixSum(o){if(o<=this.prefixSumValidIndex[0])return this.prefixSum[o];let a=this.prefixSumValidIndex[0]+1;a===0&&(this.prefixSum[0]=this.values[0],a++),o>=this.values.length&&(o=this.values.length-1);for(let m=a;m<=o;m++)this.prefixSum[m]=this.prefixSum[m-1]+this.values[m];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],o),this.prefixSum[o]}getIndexOf(o){o=Math.floor(o),this.getTotalSum();let a=0,m=this.values.length-1,e=0,c=0,s=0;for(;a<=m;)if(e=a+(m-a)/2|0,c=this.prefixSum[e],s=c-this.values[e],o=c)a=e+1;else break;return new f(e,o-s)}}r.PrefixSumComputer=R;class b{constructor(o){this._values=o,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(o){return this._ensureValid(),o===0?0:this._prefixSum[o-1]}getIndexOf(o){this._ensureValid();const a=this._indexBySum[o],m=a>0?this._prefixSum[a-1]:0;return new f(a,o-m)}removeValues(o,a){this._values.splice(o,a),this._invalidate(o)}insertValues(o,a){this._values=(0,n.arrayInsert)(this._values,o,a),this._invalidate(o)}_invalidate(o){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,o-1)}_ensureValid(){if(!this._isValid){for(let o=this._validEndIndex+1,a=this._values.length;o0?this._prefixSum[o-1]:0;this._prefixSum[o]=e+m;for(let c=0;c=0;let y=null;try{y=n.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:C,global:!0,unicode:!0})}catch{return null}if(!y)return null;let A=!this.isRegex&&!C;return A&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(A=this.matchCase),new f.SearchData(y,this.wordSeparators?(0,x.getMapForWordSeparators)(this.wordSeparators,[]):null,A?this.searchString:null)}}r.SearchParams=o;function a(S){if(!S||S.length===0)return!1;for(let C=0,y=S.length;C=y)break;const p=S.charCodeAt(C);if(p===110||p===114||p===87)return!0}}return!1}function m(S,C,y){if(!y)return new f.FindMatch(S,null);const A=[];for(let p=0,i=C.length;p>0);y[i]>=C?p=i-1:y[i+1]>=C?(A=i,p=i):A=i+1}return A+1}}class c{static findMatches(C,y,A,p,i){const l=y.parseSearchRequest();return l?l.regex.multiline?this._doFindMatchesMultiline(C,A,new h(l.wordSeparators,l.regex),p,i):this._doFindMatchesLineByLine(C,A,l,p,i):[]}static _getMultilineMatchRange(C,y,A,p,i,l){let g,w=0;p?(w=p.findLineFeedCountBeforeOffset(i),g=y+i+w):g=y+i;let _;if(p){const M=p.findLineFeedCountBeforeOffset(i+l.length)-w;_=g+l.length+M}else _=g+l.length;const E=C.getPositionAt(g),N=C.getPositionAt(_);return new b.Range(E.lineNumber,E.column,N.lineNumber,N.column)}static _doFindMatchesMultiline(C,y,A,p,i){const l=C.getOffsetAt(y.getStartPosition()),g=C.getValueInRange(y,1),w=C.getEOL()===`\r `?new e(g):null,_=[];let E=0,N;for(A.reset(0);N=A.next(g);)if(_[E++]=m(this._getMultilineMatchRange(C,l,g,w,N.index,N[0]),N,p),E>=i)return _;return _}static _doFindMatchesLineByLine(C,y,A,p,i){const l=[];let g=0;if(y.startLineNumber===y.endLineNumber){const _=C.getLineContent(y.startLineNumber).substring(y.startColumn-1,y.endColumn-1);return g=this._findMatchesInLine(A,_,y.startLineNumber,y.startColumn-1,g,l,p,i),l}const w=C.getLineContent(y.startLineNumber).substring(y.startColumn-1);g=this._findMatchesInLine(A,w,y.startLineNumber,y.startColumn-1,g,l,p,i);for(let _=y.startLineNumber+1;_=w))return i;return i}const E=new h(C.wordSeparators,C.regex);let N;E.reset(0);do if(N=E.next(y),N&&(l[i++]=m(new b.Range(A,N.index+1+p,A,N.index+1+N[0].length+p),N,g),i>=w))return i;while(N);return i}static findNextMatch(C,y,A,p){const i=y.parseSearchRequest();if(!i)return null;const l=new h(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindNextMatchMultiline(C,A,l,p):this._doFindNextMatchLineByLine(C,A,l,p)}static _doFindNextMatchMultiline(C,y,A,p){const i=new R.Position(y.lineNumber,1),l=C.getOffsetAt(i),g=C.getLineCount(),w=C.getValueInRange(new b.Range(i.lineNumber,i.column,g,C.getLineMaxColumn(g)),1),_=C.getEOL()===`\r `?new e(w):null;A.reset(y.column-1);const E=A.next(w);return E?m(this._getMultilineMatchRange(C,l,w,_,E.index,E[0]),E,p):y.lineNumber!==1||y.column!==1?this._doFindNextMatchMultiline(C,new R.Position(1,1),A,p):null}static _doFindNextMatchLineByLine(C,y,A,p){const i=C.getLineCount(),l=y.lineNumber,g=C.getLineContent(l),w=this._findFirstMatchInLine(A,g,l,y.column,p);if(w)return w;for(let _=1;_<=i;_++){const E=(l+_-1)%i,N=C.getLineContent(E+1),L=this._findFirstMatchInLine(A,N,E+1,1,p);if(L)return L}return null}static _findFirstMatchInLine(C,y,A,p,i){C.reset(p-1);const l=C.next(y);return l?m(new b.Range(A,l.index+1,A,l.index+1+l[0].length),l,i):null}static findPreviousMatch(C,y,A,p){const i=y.parseSearchRequest();if(!i)return null;const l=new h(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindPreviousMatchMultiline(C,A,l,p):this._doFindPreviousMatchLineByLine(C,A,l,p)}static _doFindPreviousMatchMultiline(C,y,A,p){const i=this._doFindMatchesMultiline(C,new b.Range(1,1,y.lineNumber,y.column),A,p,10*v);if(i.length>0)return i[i.length-1];const l=C.getLineCount();return y.lineNumber!==l||y.column!==C.getLineMaxColumn(l)?this._doFindPreviousMatchMultiline(C,new R.Position(l,C.getLineMaxColumn(l)),A,p):null}static _doFindPreviousMatchLineByLine(C,y,A,p){const i=C.getLineCount(),l=y.lineNumber,g=C.getLineContent(l).substring(0,y.column-1),w=this._findLastMatchInLine(A,g,l,p);if(w)return w;for(let _=1;_<=i;_++){const E=(i+l-_-1)%i,N=C.getLineContent(E+1),L=this._findLastMatchInLine(A,N,E+1,p);if(L)return L}return null}static _findLastMatchInLine(C,y,A,p){let i=null,l;for(C.reset(0);l=C.next(y);)i=m(new b.Range(A,l.index+1,A,l.index+1+l[0].length),l,p);return i}}r.TextModelSearch=c;function s(S,C,y,A,p){if(A===0)return!0;const i=C.charCodeAt(A-1);if(S.get(i)!==0||i===13||i===10)return!0;if(p>0){const l=C.charCodeAt(A);if(S.get(l)!==0)return!0}return!1}function u(S,C,y,A,p){if(A+p===y)return!0;const i=C.charCodeAt(A+p);if(S.get(i)!==0||i===13||i===10)return!0;if(p>0){const l=C.charCodeAt(A+p-1);if(S.get(l)!==0)return!0}return!1}function d(S,C,y,A,p){return s(S,C,y,A,p)&&u(S,C,y,A,p)}class h{constructor(C,y){this._wordSeparators=C,this._searchRegex=y,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(C){this._searchRegex.lastIndex=C,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(C){const y=C.length;let A;do{if(this._prevMatchStartIndex+this._prevMatchLength===y||(A=this._searchRegex.exec(C),!A))return null;const p=A.index,i=A[0].length;if(p===this._prevMatchStartIndex&&i===this._prevMatchLength){if(i===0){n.getNextCodePoint(C,y,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=p,this._prevMatchLength=i,!this._wordSeparators||d(this._wordSeparators,C,y,p,i))return A}while(A);return null}}r.Searcher=h}),X(Y[62],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.findSectionHeaders=R;const n=/\bMARK:\s*(.*)$/d,x=/^-+|-+$/g;function R(a,m){var e;let c=[];if(m.findRegionSectionHeaders&&(!((e=m.foldingRules)===null||e===void 0)&&e.markers)){const s=b(a,m);c=c.concat(s)}if(m.findMarkSectionHeaders){const s=f(a);c=c.concat(s)}return c}function b(a,m){const e=[],c=a.getLineCount();for(let s=1;s<=c;s++){const u=a.getLineContent(s),d=u.match(m.foldingRules.markers.start);if(d){const h={startLineNumber:s,startColumn:d[0].length+1,endLineNumber:s,endColumn:u.length+1};if(h.endColumn>h.startColumn){const S={range:h,...o(u.substring(d[0].length)),shouldBeInComments:!1};(S.text||S.hasSeparatorLine)&&e.push(S)}}}return e}function f(a){const m=[],e=a.getLineCount();for(let c=1;c<=e;c++){const s=a.getLineContent(c);v(s,c,m)}return m}function v(a,m,e){n.lastIndex=0;const c=n.exec(a);if(c){const s=c.indices[1][0]+1,u=c.indices[1][1]+1,d={startLineNumber:m,startColumn:s,endLineNumber:m,endColumn:u};if(d.endColumn>d.startColumn){const h={range:d,...o(c[1]),shouldBeInComments:!0};(h.text||h.hasSeparatorLine)&&e.push(h)}}}function o(a){a=a.trim();const m=a.startsWith("-");return a=a.replace(x,""),{text:a,hasSeparatorLine:m}}}),X(Y[63],J([0,1,2,61,6,9,31]),function(q,r,n,x,R,b,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeTextModelHighlighter=void 0;class v{static computeUnicodeHighlights(c,s,u){const d=u?u.startLineNumber:1,h=u?u.endLineNumber:c.getLineCount(),S=new a(s),C=S.getCandidateCodePoints();let y;C==="allNonBasicAscii"?y=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):y=new RegExp(`${o(Array.from(C))}`,"g");const A=new x.Searcher(null,y),p=[];let i=!1,l,g=0,w=0,_=0;e:for(let E=d,N=h;E<=N;E++){const L=c.getLineContent(E),M=L.length;A.reset(0);do if(l=A.next(L),l){let D=l.index,F=l.index+l[0].length;if(D>0){const Q=L.charCodeAt(D-1);R.isHighSurrogate(Q)&&D--}if(F+1=1e3){i=!0;break e}p.push(new n.Range(E,D+1,E,F+1))}}while(l)}return{ranges:p,hasMore:i,ambiguousCharacterCount:g,invisibleCharacterCount:w,nonBasicAsciiCharacterCount:_}}static computeUnicodeHighlightReason(c,s){const u=new a(s);switch(u.shouldHighlightNonBasicASCII(c,null)){case 0:return null;case 2:return{kind:1};case 3:{const h=c.codePointAt(0),S=u.ambiguousCharacters.getPrimaryConfusable(h),C=R.AmbiguousCharacters.getLocales().filter(y=>!R.AmbiguousCharacters.getInstance(new Set([...s.allowedLocales,y])).isAmbiguous(h));return{kind:0,confusableWith:String.fromCodePoint(S),notAmbiguousInLocales:C}}case 1:return{kind:2}}}}r.UnicodeTextModelHighlighter=v;function o(e,c){return`[${R.escapeRegExpCharacters(e.map(u=>String.fromCodePoint(u)).join(""))}]`}class a{constructor(c){this.options=c,this.allowedCodePoints=new Set(c.allowedCodePoints),this.ambiguousCharacters=R.AmbiguousCharacters.getInstance(new Set(c.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const c=new Set;if(this.options.invisibleCharacters)for(const s of R.InvisibleCharacters.codePoints)m(String.fromCodePoint(s))||c.add(s);if(this.options.ambiguousCharacters)for(const s of this.ambiguousCharacters.getConfusableCodePoints())c.add(s);for(const s of this.allowedCodePoints)c.delete(s);return c}shouldHighlightNonBasicASCII(c,s){const u=c.codePointAt(0);if(this.allowedCodePoints.has(u))return 0;if(this.options.nonBasicASCII)return 1;let d=!1,h=!1;if(s)for(const S of s){const C=S.codePointAt(0),y=R.isBasicASCII(S);d=d||y,!y&&!this.ambiguousCharacters.isAmbiguous(C)&&!R.InvisibleCharacters.isInvisibleCharacter(C)&&(h=!0)}return!d&&h?0:this.options.invisibleCharacters&&!m(c)&&R.InvisibleCharacters.isInvisibleCharacter(u)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(u)?3:0}}function m(e){return e===" "||e===` `||e===" "}}),X(Y[64],J([0,1]),function(q,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.WrappingIndent=r.TrackedRangeStickiness=r.TextEditorCursorStyle=r.TextEditorCursorBlinkingStyle=r.SymbolTag=r.SymbolKind=r.SignatureHelpTriggerKind=r.ShowLightbulbIconMode=r.SelectionDirection=r.ScrollbarVisibility=r.ScrollType=r.RenderMinimap=r.RenderLineNumbersType=r.PositionAffinity=r.PartialAcceptTriggerKind=r.OverviewRulerLane=r.OverlayWidgetPositionPreference=r.NewSymbolNameTriggerKind=r.NewSymbolNameTag=r.MouseTargetType=r.MinimapSectionHeaderStyle=r.MinimapPosition=r.MarkerTag=r.MarkerSeverity=r.KeyCode=r.InlineEditTriggerKind=r.InlineCompletionTriggerKind=r.InlayHintKind=r.InjectedTextCursorStops=r.IndentAction=r.HoverVerbosityAction=r.GlyphMarginLane=r.EndOfLineSequence=r.EndOfLinePreference=r.EditorOption=r.EditorAutoIndentStrategy=r.DocumentHighlightKind=r.DefaultEndOfLine=r.CursorChangeReason=r.ContentWidgetPositionPreference=r.CompletionTriggerKind=r.CompletionItemTag=r.CompletionItemKind=r.CompletionItemInsertTextRule=r.CodeActionTriggerType=r.AccessibilitySupport=void 0;var n;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(n||(r.AccessibilitySupport=n={}));var x;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(x||(r.CodeActionTriggerType=x={}));var R;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(R||(r.CompletionItemInsertTextRule=R={}));var b;(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"})(b||(r.CompletionItemKind=b={}));var f;(function(t){t[t.Deprecated=1]="Deprecated"})(f||(r.CompletionItemTag=f={}));var v;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(v||(r.CompletionTriggerKind=v={}));var o;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(o||(r.ContentWidgetPositionPreference=o={}));var a;(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"})(a||(r.CursorChangeReason=a={}));var m;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(m||(r.DefaultEndOfLine=m={}));var e;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(e||(r.DocumentHighlightKind=e={}));var c;(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"})(c||(r.EditorAutoIndentStrategy=c={}));var s;(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.inlineEdit=63]="inlineEdit",t[t.letterSpacing=64]="letterSpacing",t[t.lightbulb=65]="lightbulb",t[t.lineDecorationsWidth=66]="lineDecorationsWidth",t[t.lineHeight=67]="lineHeight",t[t.lineNumbers=68]="lineNumbers",t[t.lineNumbersMinChars=69]="lineNumbersMinChars",t[t.linkedEditing=70]="linkedEditing",t[t.links=71]="links",t[t.matchBrackets=72]="matchBrackets",t[t.minimap=73]="minimap",t[t.mouseStyle=74]="mouseStyle",t[t.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=76]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",t[t.multiCursorModifier=78]="multiCursorModifier",t[t.multiCursorPaste=79]="multiCursorPaste",t[t.multiCursorLimit=80]="multiCursorLimit",t[t.occurrencesHighlight=81]="occurrencesHighlight",t[t.overviewRulerBorder=82]="overviewRulerBorder",t[t.overviewRulerLanes=83]="overviewRulerLanes",t[t.padding=84]="padding",t[t.pasteAs=85]="pasteAs",t[t.parameterHints=86]="parameterHints",t[t.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",t[t.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",t[t.quickSuggestions=89]="quickSuggestions",t[t.quickSuggestionsDelay=90]="quickSuggestionsDelay",t[t.readOnly=91]="readOnly",t[t.readOnlyMessage=92]="readOnlyMessage",t[t.renameOnType=93]="renameOnType",t[t.renderControlCharacters=94]="renderControlCharacters",t[t.renderFinalNewline=95]="renderFinalNewline",t[t.renderLineHighlight=96]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=98]="renderValidationDecorations",t[t.renderWhitespace=99]="renderWhitespace",t[t.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",t[t.roundedSelection=101]="roundedSelection",t[t.rulers=102]="rulers",t[t.scrollbar=103]="scrollbar",t[t.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=105]="scrollBeyondLastLine",t[t.scrollPredominantAxis=106]="scrollPredominantAxis",t[t.selectionClipboard=107]="selectionClipboard",t[t.selectionHighlight=108]="selectionHighlight",t[t.selectOnLineNumbers=109]="selectOnLineNumbers",t[t.showFoldingControls=110]="showFoldingControls",t[t.showUnused=111]="showUnused",t[t.snippetSuggestions=112]="snippetSuggestions",t[t.smartSelect=113]="smartSelect",t[t.smoothScrolling=114]="smoothScrolling",t[t.stickyScroll=115]="stickyScroll",t[t.stickyTabStops=116]="stickyTabStops",t[t.stopRenderingLineAfter=117]="stopRenderingLineAfter",t[t.suggest=118]="suggest",t[t.suggestFontSize=119]="suggestFontSize",t[t.suggestLineHeight=120]="suggestLineHeight",t[t.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",t[t.suggestSelection=122]="suggestSelection",t[t.tabCompletion=123]="tabCompletion",t[t.tabIndex=124]="tabIndex",t[t.unicodeHighlighting=125]="unicodeHighlighting",t[t.unusualLineTerminators=126]="unusualLineTerminators",t[t.useShadowDOM=127]="useShadowDOM",t[t.useTabStops=128]="useTabStops",t[t.wordBreak=129]="wordBreak",t[t.wordSegmenterLocales=130]="wordSegmenterLocales",t[t.wordSeparators=131]="wordSeparators",t[t.wordWrap=132]="wordWrap",t[t.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=135]="wordWrapColumn",t[t.wordWrapOverride1=136]="wordWrapOverride1",t[t.wordWrapOverride2=137]="wordWrapOverride2",t[t.wrappingIndent=138]="wrappingIndent",t[t.wrappingStrategy=139]="wrappingStrategy",t[t.showDeprecated=140]="showDeprecated",t[t.inlayHints=141]="inlayHints",t[t.editorClassName=142]="editorClassName",t[t.pixelRatio=143]="pixelRatio",t[t.tabFocusMode=144]="tabFocusMode",t[t.layoutInfo=145]="layoutInfo",t[t.wrappingInfo=146]="wrappingInfo",t[t.defaultColorDecorators=147]="defaultColorDecorators",t[t.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",t[t.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(s||(r.EditorOption=s={}));var u;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(u||(r.EndOfLinePreference=u={}));var d;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(d||(r.EndOfLineSequence=d={}));var h;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(h||(r.GlyphMarginLane=h={}));var S;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(S||(r.HoverVerbosityAction=S={}));var C;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(C||(r.IndentAction=C={}));var y;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(y||(r.InjectedTextCursorStops=y={}));var A;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(A||(r.InlayHintKind=A={}));var p;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(p||(r.InlineCompletionTriggerKind=p={}));var i;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(i||(r.InlineEditTriggerKind=i={}));var l;(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"})(l||(r.KeyCode=l={}));var g;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})(g||(r.MarkerSeverity=g={}));var w;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(w||(r.MarkerTag=w={}));var _;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(_||(r.MinimapPosition=_={}));var E;(function(t){t[t.Normal=1]="Normal",t[t.Underlined=2]="Underlined"})(E||(r.MinimapSectionHeaderStyle=E={}));var N;(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||(r.MouseTargetType=N={}));var L;(function(t){t[t.AIGenerated=1]="AIGenerated"})(L||(r.NewSymbolNameTag=L={}));var M;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(M||(r.NewSymbolNameTriggerKind=M={}));var D;(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"})(D||(r.OverlayWidgetPositionPreference=D={}));var F;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(F||(r.OverviewRulerLane=F={}));var k;(function(t){t[t.Word=0]="Word",t[t.Line=1]="Line",t[t.Suggest=2]="Suggest"})(k||(r.PartialAcceptTriggerKind=k={}));var O;(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"})(O||(r.PositionAffinity=O={}));var z;(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"})(z||(r.RenderLineNumbersType=z={}));var Q;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(Q||(r.RenderMinimap=Q={}));var T;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(T||(r.ScrollType=T={}));var I;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(I||(r.ScrollbarVisibility=I={}));var W;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(W||(r.SelectionDirection=W={}));var V;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(V||(r.ShowLightbulbIconMode=V={}));var H;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(H||(r.SignatureHelpTriggerKind=H={}));var U;(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"})(U||(r.SymbolKind=U={}));var se;(function(t){t[t.Deprecated=1]="Deprecated"})(se||(r.SymbolTag=se={}));var he;(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"})(he||(r.TextEditorCursorBlinkingStyle=he={}));var de;(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"})(de||(r.TextEditorCursorStyle=de={}));var me;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(me||(r.TrackedRangeStickiness=me={}));var ve;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(ve||(r.WrappingIndent=ve={}))}),X(Y[65],J([0,1,10,13]),function(q,r,n,x){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TokenizationRegistry=void 0;class R{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new n.Emitter,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(v){this._onDidChange.fire({changedLanguages:v,changedColorMap:!1})}register(v,o){return this._tokenizationSupports.set(v,o),this.handleChange([v]),(0,x.toDisposable)(()=>{this._tokenizationSupports.get(v)===o&&(this._tokenizationSupports.delete(v),this.handleChange([v]))})}get(v){return this._tokenizationSupports.get(v)||null}registerFactory(v,o){var a;(a=this._factories.get(v))===null||a===void 0||a.dispose();const m=new b(this,v,o);return this._factories.set(v,m),(0,x.toDisposable)(()=>{const e=this._factories.get(v);!e||e!==m||(this._factories.delete(v),e.dispose())})}async getOrCreate(v){const o=this.get(v);if(o)return o;const a=this._factories.get(v);return!a||a.isResolved?null:(await a.resolve(),this.get(v))}isResolved(v){if(this.get(v))return!0;const a=this._factories.get(v);return!!(!a||a.isResolved)}setColorMap(v){this._colorMap=v,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}}r.TokenizationRegistry=R;class b extends x.Disposable{get isResolved(){return this._isResolved}constructor(v,o,a){super(),this._registry=v,this._languageId=o,this._factory=a,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 v=await this._factory.tokenizationSupport;this._isResolved=!0,v&&!this._isDisposed&&this._register(this._registry.register(this._languageId,v))}}}),X(Y[66],J([19,67]),function(q,r){return q.create("vs/base/common/platform",r)}),X(Y[17],J([0,1,66]),function(q,r,n){"use strict";var x,R;Object.defineProperty(r,"__esModule",{value:!0}),r.isAndroid=r.isEdge=r.isSafari=r.isFirefox=r.isChrome=r.OS=r.setTimeout0=r.setTimeout0IsFaster=r.language=r.userAgent=r.isMobile=r.isIOS=r.webWorkerOrigin=r.isWebWorker=r.isWeb=r.isNative=r.isLinux=r.isMacintosh=r.isWindows=r.LANGUAGE_DEFAULT=void 0,r.isLittleEndian=E,r.LANGUAGE_DEFAULT="en";let b=!1,f=!1,v=!1,o=!1,a=!1,m=!1,e=!1,c=!1,s=!1,u=!1,d,h=r.LANGUAGE_DEFAULT,S=r.LANGUAGE_DEFAULT,C,y;const A=globalThis;let p;typeof A.vscode<"u"&&typeof A.vscode.process<"u"?p=A.vscode.process:typeof process<"u"&&typeof((x=process==null?void 0:process.versions)===null||x===void 0?void 0:x.node)=="string"&&(p=process);const i=typeof((R=p?.versions)===null||R===void 0?void 0:R.electron)=="string",l=i&&p?.type==="renderer";if(typeof p=="object"){b=p.platform==="win32",f=p.platform==="darwin",v=p.platform==="linux",o=v&&!!p.env.SNAP&&!!p.env.SNAP_REVISION,e=i,s=!!p.env.CI||!!p.env.BUILD_ARTIFACTSTAGINGDIRECTORY,d=r.LANGUAGE_DEFAULT,h=r.LANGUAGE_DEFAULT;const N=p.env.VSCODE_NLS_CONFIG;if(N)try{const L=JSON.parse(N),M=L.availableLanguages["*"];d=L.locale,S=L.osLocale,h=M||r.LANGUAGE_DEFAULT,C=L._translationsConfigFile}catch{}a=!0}else typeof navigator=="object"&&!l?(y=navigator.userAgent,b=y.indexOf("Windows")>=0,f=y.indexOf("Macintosh")>=0,c=(y.indexOf("Macintosh")>=0||y.indexOf("iPad")>=0||y.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,v=y.indexOf("Linux")>=0,u=y?.indexOf("Mobi")>=0,m=!0,d=n.getConfiguredDefaultLocale(n.localize(0,null))||r.LANGUAGE_DEFAULT,h=d,S=navigator.language):console.error("Unable to resolve platform.");let g=0;f?g=1:b?g=3:v&&(g=2),r.isWindows=b,r.isMacintosh=f,r.isLinux=v,r.isNative=a,r.isWeb=m,r.isWebWorker=m&&typeof A.importScripts=="function",r.webWorkerOrigin=r.isWebWorker?A.origin:void 0,r.isIOS=c,r.isMobile=u,r.userAgent=y,r.language=h,r.setTimeout0IsFaster=typeof A.postMessage=="function"&&!A.importScripts,r.setTimeout0=(()=>{if(r.setTimeout0IsFaster){const N=[];A.addEventListener("message",M=>{if(M.data&&M.data.vscodeScheduleAsyncWork)for(let D=0,F=N.length;D{const D=++L;N.push({id:D,callback:M}),A.postMessage({vscodeScheduleAsyncWork:D},"*")}}return N=>setTimeout(N)})(),r.OS=f||c?2:b?1:3;let w=!0,_=!1;function E(){if(!_){_=!0;const N=new Uint8Array(2);N[0]=1,N[1]=2,w=new Uint16Array(N.buffer)[0]===513}return w}r.isChrome=!!(r.userAgent&&r.userAgent.indexOf("Chrome")>=0),r.isFirefox=!!(r.userAgent&&r.userAgent.indexOf("Firefox")>=0),r.isSafari=!!(!r.isChrome&&r.userAgent&&r.userAgent.indexOf("Safari")>=0),r.isEdge=!!(r.userAgent&&r.userAgent.indexOf("Edg/")>=0),r.isAndroid=!!(r.userAgent&&r.userAgent.indexOf("Android")>=0)}),X(Y[68],J([0,1,17]),function(q,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.platform=r.env=r.cwd=void 0;let x;const R=globalThis.vscode;if(typeof R<"u"&&typeof R.process<"u"){const b=R.process;x={get platform(){return b.platform},get arch(){return b.arch},get env(){return b.env},cwd(){return b.cwd()}}}else typeof process<"u"?x={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:x={get platform(){return n.isWindows?"win32":n.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};r.cwd=x.cwd,r.env=x.env,r.platform=x.platform}),X(Y[69],J([0,1,68]),function(q,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.sep=r.extname=r.basename=r.dirname=r.relative=r.resolve=r.normalize=r.posix=r.win32=void 0;const x=65,R=97,b=90,f=122,v=46,o=47,a=92,m=58,e=63;class c extends Error{constructor(l,g,w){let _;typeof g=="string"&&g.indexOf("not ")===0?(_="must not be",g=g.replace(/^not /,"")):_="must be";const E=l.indexOf(".")!==-1?"property":"argument";let N=`The "${l}" ${E} ${_} of type ${g}`;N+=`. Received type ${typeof w}`,super(N),this.code="ERR_INVALID_ARG_TYPE"}}function s(i,l){if(i===null||typeof i!="object")throw new c(l,"Object",i)}function u(i,l){if(typeof i!="string")throw new c(l,"string",i)}const d=n.platform==="win32";function h(i){return i===o||i===a}function S(i){return i===o}function C(i){return i>=x&&i<=b||i>=R&&i<=f}function y(i,l,g,w){let _="",E=0,N=-1,L=0,M=0;for(let D=0;D<=i.length;++D){if(D2){const F=_.lastIndexOf(g);F===-1?(_="",E=0):(_=_.slice(0,F),E=_.length-1-_.lastIndexOf(g)),N=D,L=0;continue}else if(_.length!==0){_="",E=0,N=D,L=0;continue}}l&&(_+=_.length>0?`${g}..`:"..",E=2)}else _.length>0?_+=`${g}${i.slice(N+1,D)}`:_=i.slice(N+1,D),E=D-N-1;N=D,L=0}else M===v&&L!==-1?++L:L=-1}return _}function A(i,l){s(l,"pathObject");const g=l.dir||l.root,w=l.base||`${l.name||""}${l.ext||""}`;return g?g===l.root?`${g}${w}`:`${g}${i}${w}`:w}r.win32={resolve(...i){let l="",g="",w=!1;for(let _=i.length-1;_>=-1;_--){let E;if(_>=0){if(E=i[_],u(E,"path"),E.length===0)continue}else l.length===0?E=n.cwd():(E=n.env[`=${l}`]||n.cwd(),(E===void 0||E.slice(0,2).toLowerCase()!==l.toLowerCase()&&E.charCodeAt(2)===a)&&(E=`${l}\\`));const N=E.length;let L=0,M="",D=!1;const F=E.charCodeAt(0);if(N===1)h(F)&&(L=1,D=!0);else if(h(F))if(D=!0,h(E.charCodeAt(1))){let k=2,O=k;for(;k2&&h(E.charCodeAt(2))&&(D=!0,L=3));if(M.length>0)if(l.length>0){if(M.toLowerCase()!==l.toLowerCase())continue}else l=M;if(w){if(l.length>0)break}else if(g=`${E.slice(L)}\\${g}`,w=D,D&&l.length>0)break}return g=y(g,!w,"\\",h),w?`${l}\\${g}`:`${l}${g}`||"."},normalize(i){u(i,"path");const l=i.length;if(l===0)return".";let g=0,w,_=!1;const E=i.charCodeAt(0);if(l===1)return S(E)?"\\":i;if(h(E))if(_=!0,h(i.charCodeAt(1))){let L=2,M=L;for(;L2&&h(i.charCodeAt(2))&&(_=!0,g=3));let N=g0&&h(i.charCodeAt(l-1))&&(N+="\\"),w===void 0?_?`\\${N}`:N:_?`${w}\\${N}`:`${w}${N}`},isAbsolute(i){u(i,"path");const l=i.length;if(l===0)return!1;const g=i.charCodeAt(0);return h(g)||l>2&&C(g)&&i.charCodeAt(1)===m&&h(i.charCodeAt(2))},join(...i){if(i.length===0)return".";let l,g;for(let E=0;E0&&(l===void 0?l=g=N:l+=`\\${N}`)}if(l===void 0)return".";let w=!0,_=0;if(typeof g=="string"&&h(g.charCodeAt(0))){++_;const E=g.length;E>1&&h(g.charCodeAt(1))&&(++_,E>2&&(h(g.charCodeAt(2))?++_:w=!1))}if(w){for(;_=2&&(l=`\\${l.slice(_)}`)}return r.win32.normalize(l)},relative(i,l){if(u(i,"from"),u(l,"to"),i===l)return"";const g=r.win32.resolve(i),w=r.win32.resolve(l);if(g===w||(i=g.toLowerCase(),l=w.toLowerCase(),i===l))return"";let _=0;for(;__&&i.charCodeAt(E-1)===a;)E--;const N=E-_;let L=0;for(;LL&&l.charCodeAt(M-1)===a;)M--;const D=M-L,F=NF){if(l.charCodeAt(L+O)===a)return w.slice(L+O+1);if(O===2)return w.slice(L+O)}N>F&&(i.charCodeAt(_+O)===a?k=O:O===2&&(k=3)),k===-1&&(k=0)}let z="";for(O=_+k+1;O<=E;++O)(O===E||i.charCodeAt(O)===a)&&(z+=z.length===0?"..":"\\..");return L+=k,z.length>0?`${z}${w.slice(L,M)}`:(w.charCodeAt(L)===a&&++L,w.slice(L,M))},toNamespacedPath(i){if(typeof i!="string"||i.length===0)return i;const l=r.win32.resolve(i);if(l.length<=2)return i;if(l.charCodeAt(0)===a){if(l.charCodeAt(1)===a){const g=l.charCodeAt(2);if(g!==e&&g!==v)return`\\\\?\\UNC\\${l.slice(2)}`}}else if(C(l.charCodeAt(0))&&l.charCodeAt(1)===m&&l.charCodeAt(2)===a)return`\\\\?\\${l}`;return i},dirname(i){u(i,"path");const l=i.length;if(l===0)return".";let g=-1,w=0;const _=i.charCodeAt(0);if(l===1)return h(_)?i:".";if(h(_)){if(g=w=1,h(i.charCodeAt(1))){let L=2,M=L;for(;L2&&h(i.charCodeAt(2))?3:2,w=g);let E=-1,N=!0;for(let L=l-1;L>=w;--L)if(h(i.charCodeAt(L))){if(!N){E=L;break}}else N=!1;if(E===-1){if(g===-1)return".";E=g}return i.slice(0,E)},basename(i,l){l!==void 0&&u(l,"ext"),u(i,"path");let g=0,w=-1,_=!0,E;if(i.length>=2&&C(i.charCodeAt(0))&&i.charCodeAt(1)===m&&(g=2),l!==void 0&&l.length>0&&l.length<=i.length){if(l===i)return"";let N=l.length-1,L=-1;for(E=i.length-1;E>=g;--E){const M=i.charCodeAt(E);if(h(M)){if(!_){g=E+1;break}}else L===-1&&(_=!1,L=E+1),N>=0&&(M===l.charCodeAt(N)?--N===-1&&(w=E):(N=-1,w=L))}return g===w?w=L:w===-1&&(w=i.length),i.slice(g,w)}for(E=i.length-1;E>=g;--E)if(h(i.charCodeAt(E))){if(!_){g=E+1;break}}else w===-1&&(_=!1,w=E+1);return w===-1?"":i.slice(g,w)},extname(i){u(i,"path");let l=0,g=-1,w=0,_=-1,E=!0,N=0;i.length>=2&&i.charCodeAt(1)===m&&C(i.charCodeAt(0))&&(l=w=2);for(let L=i.length-1;L>=l;--L){const M=i.charCodeAt(L);if(h(M)){if(!E){w=L+1;break}continue}_===-1&&(E=!1,_=L+1),M===v?g===-1?g=L:N!==1&&(N=1):g!==-1&&(N=-1)}return g===-1||_===-1||N===0||N===1&&g===_-1&&g===w+1?"":i.slice(g,_)},format:A.bind(null,"\\"),parse(i){u(i,"path");const l={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return l;const g=i.length;let w=0,_=i.charCodeAt(0);if(g===1)return h(_)?(l.root=l.dir=i,l):(l.base=l.name=i,l);if(h(_)){if(w=1,h(i.charCodeAt(1))){let k=2,O=k;for(;k0&&(l.root=i.slice(0,w));let E=-1,N=w,L=-1,M=!0,D=i.length-1,F=0;for(;D>=w;--D){if(_=i.charCodeAt(D),h(_)){if(!M){N=D+1;break}continue}L===-1&&(M=!1,L=D+1),_===v?E===-1?E=D:F!==1&&(F=1):E!==-1&&(F=-1)}return L!==-1&&(E===-1||F===0||F===1&&E===L-1&&E===N+1?l.base=l.name=i.slice(N,L):(l.name=i.slice(N,E),l.base=i.slice(N,L),l.ext=i.slice(E,L))),N>0&&N!==w?l.dir=i.slice(0,N-1):l.dir=l.root,l},sep:"\\",delimiter:";",win32:null,posix:null};const p=(()=>{if(d){const i=/\\/g;return()=>{const l=n.cwd().replace(i,"/");return l.slice(l.indexOf("/"))}}return()=>n.cwd()})();r.posix={resolve(...i){let l="",g=!1;for(let w=i.length-1;w>=-1&&!g;w--){const _=w>=0?i[w]:p();u(_,"path"),_.length!==0&&(l=`${_}/${l}`,g=_.charCodeAt(0)===o)}return l=y(l,!g,"/",S),g?`/${l}`:l.length>0?l:"."},normalize(i){if(u(i,"path"),i.length===0)return".";const l=i.charCodeAt(0)===o,g=i.charCodeAt(i.length-1)===o;return i=y(i,!l,"/",S),i.length===0?l?"/":g?"./":".":(g&&(i+="/"),l?`/${i}`:i)},isAbsolute(i){return u(i,"path"),i.length>0&&i.charCodeAt(0)===o},join(...i){if(i.length===0)return".";let l;for(let g=0;g0&&(l===void 0?l=w:l+=`/${w}`)}return l===void 0?".":r.posix.normalize(l)},relative(i,l){if(u(i,"from"),u(l,"to"),i===l||(i=r.posix.resolve(i),l=r.posix.resolve(l),i===l))return"";const g=1,w=i.length,_=w-g,E=1,N=l.length-E,L=_L){if(l.charCodeAt(E+D)===o)return l.slice(E+D+1);if(D===0)return l.slice(E+D)}else _>L&&(i.charCodeAt(g+D)===o?M=D:D===0&&(M=0));let F="";for(D=g+M+1;D<=w;++D)(D===w||i.charCodeAt(D)===o)&&(F+=F.length===0?"..":"/..");return`${F}${l.slice(E+M)}`},toNamespacedPath(i){return i},dirname(i){if(u(i,"path"),i.length===0)return".";const l=i.charCodeAt(0)===o;let g=-1,w=!0;for(let _=i.length-1;_>=1;--_)if(i.charCodeAt(_)===o){if(!w){g=_;break}}else w=!1;return g===-1?l?"/":".":l&&g===1?"//":i.slice(0,g)},basename(i,l){l!==void 0&&u(l,"ext"),u(i,"path");let g=0,w=-1,_=!0,E;if(l!==void 0&&l.length>0&&l.length<=i.length){if(l===i)return"";let N=l.length-1,L=-1;for(E=i.length-1;E>=0;--E){const M=i.charCodeAt(E);if(M===o){if(!_){g=E+1;break}}else L===-1&&(_=!1,L=E+1),N>=0&&(M===l.charCodeAt(N)?--N===-1&&(w=E):(N=-1,w=L))}return g===w?w=L:w===-1&&(w=i.length),i.slice(g,w)}for(E=i.length-1;E>=0;--E)if(i.charCodeAt(E)===o){if(!_){g=E+1;break}}else w===-1&&(_=!1,w=E+1);return w===-1?"":i.slice(g,w)},extname(i){u(i,"path");let l=-1,g=0,w=-1,_=!0,E=0;for(let N=i.length-1;N>=0;--N){const L=i.charCodeAt(N);if(L===o){if(!_){g=N+1;break}continue}w===-1&&(_=!1,w=N+1),L===v?l===-1?l=N:E!==1&&(E=1):l!==-1&&(E=-1)}return l===-1||w===-1||E===0||E===1&&l===w-1&&l===g+1?"":i.slice(l,w)},format:A.bind(null,"/"),parse(i){u(i,"path");const l={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return l;const g=i.charCodeAt(0)===o;let w;g?(l.root="/",w=1):w=0;let _=-1,E=0,N=-1,L=!0,M=i.length-1,D=0;for(;M>=w;--M){const F=i.charCodeAt(M);if(F===o){if(!L){E=M+1;break}continue}N===-1&&(L=!1,N=M+1),F===v?_===-1?_=M:D!==1&&(D=1):_!==-1&&(D=-1)}if(N!==-1){const F=E===0&&g?1:E;_===-1||D===0||D===1&&_===N-1&&_===E+1?l.base=l.name=i.slice(F,N):(l.name=i.slice(F,_),l.base=i.slice(F,N),l.ext=i.slice(_,N))}return E>0?l.dir=i.slice(0,E-1):g&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null},r.posix.win32=r.win32.win32=r.win32,r.posix.posix=r.win32.posix=r.posix,r.normalize=d?r.win32.normalize:r.posix.normalize,r.resolve=d?r.win32.resolve:r.posix.resolve,r.relative=d?r.win32.relative:r.posix.relative,r.dirname=d?r.win32.dirname:r.posix.dirname,r.basename=d?r.win32.basename:r.posix.basename,r.extname=d?r.win32.extname:r.posix.extname,r.sep=d?r.win32.sep:r.posix.sep}),X(Y[18],J([0,1,69,17]),function(q,r,n,x){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.URI=void 0,r.uriToFsPath=y;const R=/^\w[\w\d+.-]*$/,b=/^\//,f=/^\/\//;function v(g,w){if(!g.scheme&&w)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${g.authority}", path: "${g.path}", query: "${g.query}", fragment: "${g.fragment}"}`);if(g.scheme&&!R.test(g.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(g.path){if(g.authority){if(!b.test(g.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(f.test(g.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function o(g,w){return!g&&!w?"file":g}function a(g,w){switch(g){case"https":case"http":case"file":w?w[0]!==e&&(w=e+w):w=e;break}return w}const m="",e="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class s{static isUri(w){return w instanceof s?!0:w?typeof w.authority=="string"&&typeof w.fragment=="string"&&typeof w.path=="string"&&typeof w.query=="string"&&typeof w.scheme=="string"&&typeof w.fsPath=="string"&&typeof w.with=="function"&&typeof w.toString=="function":!1}constructor(w,_,E,N,L,M=!1){typeof w=="object"?(this.scheme=w.scheme||m,this.authority=w.authority||m,this.path=w.path||m,this.query=w.query||m,this.fragment=w.fragment||m):(this.scheme=o(w,M),this.authority=_||m,this.path=a(this.scheme,E||m),this.query=N||m,this.fragment=L||m,v(this,M))}get fsPath(){return y(this,!1)}with(w){if(!w)return this;let{scheme:_,authority:E,path:N,query:L,fragment:M}=w;return _===void 0?_=this.scheme:_===null&&(_=m),E===void 0?E=this.authority:E===null&&(E=m),N===void 0?N=this.path:N===null&&(N=m),L===void 0?L=this.query:L===null&&(L=m),M===void 0?M=this.fragment:M===null&&(M=m),_===this.scheme&&E===this.authority&&N===this.path&&L===this.query&&M===this.fragment?this:new d(_,E,N,L,M)}static parse(w,_=!1){const E=c.exec(w);return E?new d(E[2]||m,l(E[4]||m),l(E[5]||m),l(E[7]||m),l(E[9]||m),_):new d(m,m,m,m,m)}static file(w){let _=m;if(x.isWindows&&(w=w.replace(/\\/g,e)),w[0]===e&&w[1]===e){const E=w.indexOf(e,2);E===-1?(_=w.substring(2),w=e):(_=w.substring(2,E),w=w.substring(E)||e)}return new d("file",_,w,m,m)}static from(w,_){return new d(w.scheme,w.authority,w.path,w.query,w.fragment,_)}static joinPath(w,..._){if(!w.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let E;return x.isWindows&&w.scheme==="file"?E=s.file(n.win32.join(y(w,!0),..._)).path:E=n.posix.join(w.path,..._),w.with({path:E})}toString(w=!1){return A(this,w)}toJSON(){return this}static revive(w){var _,E;if(w){if(w instanceof s)return w;{const N=new d(w);return N._formatted=(_=w.external)!==null&&_!==void 0?_:null,N._fsPath=w._sep===u&&(E=w.fsPath)!==null&&E!==void 0?E:null,N}}else return w}}r.URI=s;const u=x.isWindows?1:void 0;class d extends s{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=y(this,!1)),this._fsPath}toString(w=!1){return w?A(this,!0):(this._formatted||(this._formatted=A(this,!1)),this._formatted)}toJSON(){const w={$mid:1};return this._fsPath&&(w.fsPath=this._fsPath,w._sep=u),this._formatted&&(w.external=this._formatted),this.path&&(w.path=this.path),this.scheme&&(w.scheme=this.scheme),this.authority&&(w.authority=this.authority),this.query&&(w.query=this.query),this.fragment&&(w.fragment=this.fragment),w}}const h={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 S(g,w,_){let E,N=-1;for(let L=0;L=97&&M<=122||M>=65&&M<=90||M>=48&&M<=57||M===45||M===46||M===95||M===126||w&&M===47||_&&M===91||_&&M===93||_&&M===58)N!==-1&&(E+=encodeURIComponent(g.substring(N,L)),N=-1),E!==void 0&&(E+=g.charAt(L));else{E===void 0&&(E=g.substr(0,L));const D=h[M];D!==void 0?(N!==-1&&(E+=encodeURIComponent(g.substring(N,L)),N=-1),E+=D):N===-1&&(N=L)}}return N!==-1&&(E+=encodeURIComponent(g.substring(N))),E!==void 0?E:g}function C(g){let w;for(let _=0;_1&&g.scheme==="file"?_=`//${g.authority}${g.path}`:g.path.charCodeAt(0)===47&&(g.path.charCodeAt(1)>=65&&g.path.charCodeAt(1)<=90||g.path.charCodeAt(1)>=97&&g.path.charCodeAt(1)<=122)&&g.path.charCodeAt(2)===58?w?_=g.path.substr(1):_=g.path[1].toLowerCase()+g.path.substr(2):_=g.path,x.isWindows&&(_=_.replace(/\//g,"\\")),_}function A(g,w){const _=w?C:S;let E="",{scheme:N,authority:L,path:M,query:D,fragment:F}=g;if(N&&(E+=N,E+=":"),(L||N==="file")&&(E+=e,E+=e),L){let k=L.indexOf("@");if(k!==-1){const O=L.substr(0,k);L=L.substr(k+1),k=O.lastIndexOf(":"),k===-1?E+=_(O,!1,!1):(E+=_(O.substr(0,k),!1,!1),E+=":",E+=_(O.substr(k+1),!1,!0)),E+="@"}L=L.toLowerCase(),k=L.lastIndexOf(":"),k===-1?E+=_(L,!1,!0):(E+=_(L.substr(0,k),!1,!0),E+=L.substr(k))}if(M){if(M.length>=3&&M.charCodeAt(0)===47&&M.charCodeAt(2)===58){const k=M.charCodeAt(1);k>=65&&k<=90&&(M=`/${String.fromCharCode(k+32)}:${M.substr(3)}`)}else if(M.length>=2&&M.charCodeAt(1)===58){const k=M.charCodeAt(0);k>=65&&k<=90&&(M=`${String.fromCharCode(k+32)}:${M.substr(2)}`)}E+=_(M,!0,!1)}return D&&(E+="?",E+=_(D,!1,!1)),F&&(E+="#",E+=w?F:S(F,!1,!1)),E}function p(g){try{return decodeURIComponent(g)}catch{return g.length>3?g.substr(0,3)+p(g.substr(3)):g}}const i=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function l(g){return g.match(i)?g.replace(i,w=>p(w)):g}}),X(Y[73],J([0,1,5,10,13,14,17,6]),function(q,r,n,x,R,b,f,v){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SimpleWorkerServer=r.SimpleWorkerClient=void 0,r.logOnceWebWorkerWarning=m,r.create=i;const o="$initialize";let a=!1;function m(l){f.isWeb&&(a||(a=!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(l.message))}class e{constructor(g,w,_,E){this.vsWorker=g,this.req=w,this.method=_,this.args=E,this.type=0}}class c{constructor(g,w,_,E){this.vsWorker=g,this.seq=w,this.res=_,this.err=E,this.type=1}}class s{constructor(g,w,_,E){this.vsWorker=g,this.req=w,this.eventName=_,this.arg=E,this.type=2}}class u{constructor(g,w,_){this.vsWorker=g,this.req=w,this.event=_,this.type=3}}class d{constructor(g,w){this.vsWorker=g,this.req=w,this.type=4}}class h{constructor(g){this._workerId=-1,this._handler=g,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(g){this._workerId=g}sendMessage(g,w){const _=String(++this._lastSentReq);return new Promise((E,N)=>{this._pendingReplies[_]={resolve:E,reject:N},this._send(new e(this._workerId,_,g,w))})}listen(g,w){let _=null;const E=new x.Emitter({onWillAddFirstListener:()=>{_=String(++this._lastSentReq),this._pendingEmitters.set(_,E),this._send(new s(this._workerId,_,g,w))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(_),this._send(new d(this._workerId,_)),_=null}});return E.event}handleMessage(g){!g||!g.vsWorker||this._workerId!==-1&&g.vsWorker!==this._workerId||this._handleMessage(g)}_handleMessage(g){switch(g.type){case 1:return this._handleReplyMessage(g);case 0:return this._handleRequestMessage(g);case 2:return this._handleSubscribeEventMessage(g);case 3:return this._handleEventMessage(g);case 4:return this._handleUnsubscribeEventMessage(g)}}_handleReplyMessage(g){if(!this._pendingReplies[g.seq]){console.warn("Got reply to unknown seq");return}const w=this._pendingReplies[g.seq];if(delete this._pendingReplies[g.seq],g.err){let _=g.err;g.err.$isError&&(_=new Error,_.name=g.err.name,_.message=g.err.message,_.stack=g.err.stack),w.reject(_);return}w.resolve(g.res)}_handleRequestMessage(g){const w=g.req;this._handler.handleMessage(g.method,g.args).then(E=>{this._send(new c(this._workerId,w,E,void 0))},E=>{E.detail instanceof Error&&(E.detail=(0,n.transformErrorForSerialization)(E.detail)),this._send(new c(this._workerId,w,void 0,(0,n.transformErrorForSerialization)(E)))})}_handleSubscribeEventMessage(g){const w=g.req,_=this._handler.handleEvent(g.eventName,g.arg)(E=>{this._send(new u(this._workerId,w,E))});this._pendingEvents.set(w,_)}_handleEventMessage(g){if(!this._pendingEmitters.has(g.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(g.req).fire(g.event)}_handleUnsubscribeEventMessage(g){if(!this._pendingEvents.has(g.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(g.req).dispose(),this._pendingEvents.delete(g.req)}_send(g){const w=[];if(g.type===0)for(let _=0;_{this._protocol.handleMessage(k)},k=>{E?.(k)})),this._protocol=new h({sendMessage:(k,O)=>{this._worker.postMessage(k,O)},handleMessage:(k,O)=>{if(typeof _[k]!="function")return Promise.reject(new Error("Missing method "+k+" on main thread host."));try{return Promise.resolve(_[k].apply(_,O))}catch(z){return Promise.reject(z)}},handleEvent:(k,O)=>{if(y(k)){const z=_[k].call(_,O);if(typeof z!="function")throw new Error(`Missing dynamic event ${k} on main thread host.`);return z}if(C(k)){const z=_[k];if(typeof z!="function")throw new Error(`Missing event ${k} on main thread host.`);return z}throw new Error(`Malformed event name ${k}`)}}),this._protocol.setWorkerId(this._worker.getId());let N=null;const L=globalThis.require;typeof L<"u"&&typeof L.getConfig=="function"?N=L.getConfig():typeof globalThis.requirejs<"u"&&(N=globalThis.requirejs.s.contexts._.config);const M=(0,b.getAllMethodNames)(_);this._onModuleLoaded=this._protocol.sendMessage(o,[this._worker.getId(),JSON.parse(JSON.stringify(N)),w,M]);const D=(k,O)=>this._request(k,O),F=(k,O)=>this._protocol.listen(k,O);this._lazyProxy=new Promise((k,O)=>{E=O,this._onModuleLoaded.then(z=>{k(A(z,D,F))},z=>{O(z),this._onError("Worker failed to load "+w,z)})})}getProxyObject(){return this._lazyProxy}_request(g,w){return new Promise((_,E)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(g,w).then(_,E)},E)})}_onError(g,w){console.error(g),console.info(w)}}r.SimpleWorkerClient=S;function C(l){return l[0]==="o"&&l[1]==="n"&&v.isUpperAsciiLetter(l.charCodeAt(2))}function y(l){return/^onDynamic/.test(l)&&v.isUpperAsciiLetter(l.charCodeAt(9))}function A(l,g,w){const _=L=>function(){const M=Array.prototype.slice.call(arguments,0);return g(L,M)},E=L=>function(M){return w(L,M)},N={};for(const L of l){if(y(L)){N[L]=E(L);continue}if(C(L)){N[L]=w(L,void 0);continue}N[L]=_(L)}return N}class p{constructor(g,w){this._requestHandlerFactory=w,this._requestHandler=null,this._protocol=new h({sendMessage:(_,E)=>{g(_,E)},handleMessage:(_,E)=>this._handleMessage(_,E),handleEvent:(_,E)=>this._handleEvent(_,E)})}onmessage(g){this._protocol.handleMessage(g)}_handleMessage(g,w){if(g===o)return this.initialize(w[0],w[1],w[2],w[3]);if(!this._requestHandler||typeof this._requestHandler[g]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+g));try{return Promise.resolve(this._requestHandler[g].apply(this._requestHandler,w))}catch(_){return Promise.reject(_)}}_handleEvent(g,w){if(!this._requestHandler)throw new Error("Missing requestHandler");if(y(g)){const _=this._requestHandler[g].call(this._requestHandler,w);if(typeof _!="function")throw new Error(`Missing dynamic event ${g} on request handler.`);return _}if(C(g)){const _=this._requestHandler[g];if(typeof _!="function")throw new Error(`Missing event ${g} on request handler.`);return _}throw new Error(`Malformed event name ${g}`)}initialize(g,w,_,E){this._protocol.setWorkerId(g);const M=A(E,(D,F)=>this._protocol.sendMessage(D,F),(D,F)=>this._protocol.listen(D,F));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(M),Promise.resolve((0,b.getAllMethodNames)(this._requestHandler))):(w&&(typeof w.baseUrl<"u"&&delete w.baseUrl,typeof w.paths<"u"&&typeof w.paths.vs<"u"&&delete w.paths.vs,typeof w.trustedTypesPolicy<"u"&&delete w.trustedTypesPolicy,w.catchError=!0,globalThis.require.config(w)),new Promise((D,F)=>{(globalThis.require||q)([_],O=>{if(this._requestHandler=O.create(M),!this._requestHandler){F(new Error("No RequestHandler!"));return}D((0,b.getAllMethodNames)(this._requestHandler))},F)}))}}r.SimpleWorkerServer=p;function i(l){return new p(l,null)}}),X(Y[70],J([19,67]),function(q,r){return q.create("vs/editor/common/languages",r)}),X(Y[71],J([0,1,43,18,2,65,70]),function(q,r,n,x,R,b,f){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InlineEditTriggerKind=r.TokenizationRegistry=r.LazyTokenizationSupport=r.InlayHintKind=r.Command=r.NewSymbolNameTriggerKind=r.NewSymbolNameTag=r.FoldingRangeKind=r.TextEdit=r.SymbolKinds=r.symbolKindNames=r.DocumentHighlightKind=r.SignatureHelpTriggerKind=r.DocumentPasteTriggerKind=r.SelectedSuggestionInfo=r.InlineCompletionTriggerKind=r.CompletionItemKinds=r.HoverVerbosityAction=r.EncodedTokenizationResult=r.TokenizationResult=r.Token=void 0,r.isLocationLink=S,r.getAriaLabelForSymbol=C;class v{constructor(L,M,D){this.offset=L,this.type=M,this.language=D,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}r.Token=v;class o{constructor(L,M){this.tokens=L,this.endState=M,this._tokenizationResultBrand=void 0}}r.TokenizationResult=o;class a{constructor(L,M){this.tokens=L,this.endState=M,this._encodedTokenizationResultBrand=void 0}}r.EncodedTokenizationResult=a;var m;(function(N){N[N.Increase=0]="Increase",N[N.Decrease=1]="Decrease"})(m||(r.HoverVerbosityAction=m={}));var e;(function(N){const L=new Map;L.set(0,n.Codicon.symbolMethod),L.set(1,n.Codicon.symbolFunction),L.set(2,n.Codicon.symbolConstructor),L.set(3,n.Codicon.symbolField),L.set(4,n.Codicon.symbolVariable),L.set(5,n.Codicon.symbolClass),L.set(6,n.Codicon.symbolStruct),L.set(7,n.Codicon.symbolInterface),L.set(8,n.Codicon.symbolModule),L.set(9,n.Codicon.symbolProperty),L.set(10,n.Codicon.symbolEvent),L.set(11,n.Codicon.symbolOperator),L.set(12,n.Codicon.symbolUnit),L.set(13,n.Codicon.symbolValue),L.set(15,n.Codicon.symbolEnum),L.set(14,n.Codicon.symbolConstant),L.set(15,n.Codicon.symbolEnum),L.set(16,n.Codicon.symbolEnumMember),L.set(17,n.Codicon.symbolKeyword),L.set(27,n.Codicon.symbolSnippet),L.set(18,n.Codicon.symbolText),L.set(19,n.Codicon.symbolColor),L.set(20,n.Codicon.symbolFile),L.set(21,n.Codicon.symbolReference),L.set(22,n.Codicon.symbolCustomColor),L.set(23,n.Codicon.symbolFolder),L.set(24,n.Codicon.symbolTypeParameter),L.set(25,n.Codicon.account),L.set(26,n.Codicon.issues);function M(k){let O=L.get(k);return O||(console.info("No codicon found for CompletionItemKind "+k),O=n.Codicon.symbolProperty),O}N.toIcon=M;const D=new Map;D.set("method",0),D.set("function",1),D.set("constructor",2),D.set("field",3),D.set("variable",4),D.set("class",5),D.set("struct",6),D.set("interface",7),D.set("module",8),D.set("property",9),D.set("event",10),D.set("operator",11),D.set("unit",12),D.set("value",13),D.set("constant",14),D.set("enum",15),D.set("enum-member",16),D.set("enumMember",16),D.set("keyword",17),D.set("snippet",27),D.set("text",18),D.set("color",19),D.set("file",20),D.set("reference",21),D.set("customcolor",22),D.set("folder",23),D.set("type-parameter",24),D.set("typeParameter",24),D.set("account",25),D.set("issue",26);function F(k,O){let z=D.get(k);return typeof z>"u"&&!O&&(z=9),z}N.fromString=F})(e||(r.CompletionItemKinds=e={}));var c;(function(N){N[N.Automatic=0]="Automatic",N[N.Explicit=1]="Explicit"})(c||(r.InlineCompletionTriggerKind=c={}));class s{constructor(L,M,D,F){this.range=L,this.text=M,this.completionKind=D,this.isSnippetText=F}equals(L){return R.Range.lift(this.range).equalsRange(L.range)&&this.text===L.text&&this.completionKind===L.completionKind&&this.isSnippetText===L.isSnippetText}}r.SelectedSuggestionInfo=s;var u;(function(N){N[N.Automatic=0]="Automatic",N[N.PasteAs=1]="PasteAs"})(u||(r.DocumentPasteTriggerKind=u={}));var d;(function(N){N[N.Invoke=1]="Invoke",N[N.TriggerCharacter=2]="TriggerCharacter",N[N.ContentChange=3]="ContentChange"})(d||(r.SignatureHelpTriggerKind=d={}));var h;(function(N){N[N.Text=0]="Text",N[N.Read=1]="Read",N[N.Write=2]="Write"})(h||(r.DocumentHighlightKind=h={}));function S(N){return N&&x.URI.isUri(N.uri)&&R.Range.isIRange(N.range)&&(R.Range.isIRange(N.originSelectionRange)||R.Range.isIRange(N.targetSelectionRange))}r.symbolKindNames={17:(0,f.localize)(0,null),16:(0,f.localize)(1,null),4:(0,f.localize)(2,null),13:(0,f.localize)(3,null),8:(0,f.localize)(4,null),9:(0,f.localize)(5,null),21:(0,f.localize)(6,null),23:(0,f.localize)(7,null),7:(0,f.localize)(8,null),0:(0,f.localize)(9,null),11:(0,f.localize)(10,null),10:(0,f.localize)(11,null),19:(0,f.localize)(12,null),5:(0,f.localize)(13,null),1:(0,f.localize)(14,null),2:(0,f.localize)(15,null),20:(0,f.localize)(16,null),15:(0,f.localize)(17,null),18:(0,f.localize)(18,null),24:(0,f.localize)(19,null),3:(0,f.localize)(20,null),6:(0,f.localize)(21,null),14:(0,f.localize)(22,null),22:(0,f.localize)(23,null),25:(0,f.localize)(24,null),12:(0,f.localize)(25,null)};function C(N,L){return(0,f.localize)(26,null,N,r.symbolKindNames[L])}var y;(function(N){const L=new Map;L.set(0,n.Codicon.symbolFile),L.set(1,n.Codicon.symbolModule),L.set(2,n.Codicon.symbolNamespace),L.set(3,n.Codicon.symbolPackage),L.set(4,n.Codicon.symbolClass),L.set(5,n.Codicon.symbolMethod),L.set(6,n.Codicon.symbolProperty),L.set(7,n.Codicon.symbolField),L.set(8,n.Codicon.symbolConstructor),L.set(9,n.Codicon.symbolEnum),L.set(10,n.Codicon.symbolInterface),L.set(11,n.Codicon.symbolFunction),L.set(12,n.Codicon.symbolVariable),L.set(13,n.Codicon.symbolConstant),L.set(14,n.Codicon.symbolString),L.set(15,n.Codicon.symbolNumber),L.set(16,n.Codicon.symbolBoolean),L.set(17,n.Codicon.symbolArray),L.set(18,n.Codicon.symbolObject),L.set(19,n.Codicon.symbolKey),L.set(20,n.Codicon.symbolNull),L.set(21,n.Codicon.symbolEnumMember),L.set(22,n.Codicon.symbolStruct),L.set(23,n.Codicon.symbolEvent),L.set(24,n.Codicon.symbolOperator),L.set(25,n.Codicon.symbolTypeParameter);function M(D){let F=L.get(D);return F||(console.info("No codicon found for SymbolKind "+D),F=n.Codicon.symbolProperty),F}N.toIcon=M})(y||(r.SymbolKinds=y={}));class A{}r.TextEdit=A;class p{static fromValue(L){switch(L){case"comment":return p.Comment;case"imports":return p.Imports;case"region":return p.Region}return new p(L)}constructor(L){this.value=L}}r.FoldingRangeKind=p,p.Comment=new p("comment"),p.Imports=new p("imports"),p.Region=new p("region");var i;(function(N){N[N.AIGenerated=1]="AIGenerated"})(i||(r.NewSymbolNameTag=i={}));var l;(function(N){N[N.Invoke=0]="Invoke",N[N.Automatic=1]="Automatic"})(l||(r.NewSymbolNameTriggerKind=l={}));var g;(function(N){function L(M){return!M||typeof M!="object"?!1:typeof M.id=="string"&&typeof M.title=="string"}N.is=L})(g||(r.Command=g={}));var w;(function(N){N[N.Type=1]="Type",N[N.Parameter=2]="Parameter"})(w||(r.InlayHintKind=w={}));class _{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}}r.LazyTokenizationSupport=_,r.TokenizationRegistry=new b.TokenizationRegistry;var E;(function(N){N[N.Invoke=0]="Invoke",N[N.Automatic=1]="Automatic"})(E||(r.InlineEditTriggerKind=E={}))}),X(Y[72],J([0,1,40,10,38,18,4,2,44,71,64]),function(q,r,n,x,R,b,f,v,o,a,m){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.KeyMod=void 0,r.createMonacoBaseAPI=c;class e{static chord(u,d){return(0,R.KeyChord)(u,d)}}r.KeyMod=e,e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256;function c(){return{editor:void 0,languages:void 0,CancellationTokenSource:n.CancellationTokenSource,Emitter:x.Emitter,KeyCode:m.KeyCode,KeyMod:e,Position:f.Position,Range:v.Range,Selection:o.Selection,SelectionDirection:m.SelectionDirection,MarkerSeverity:m.MarkerSeverity,MarkerTag:m.MarkerTag,Uri:b.URI,Token:a.Token}}}),X(Y[74],J([0,1,25,18,4,2,60,31,56,57,72,24,63,54,14,55,62]),function(q,r,n,x,R,b,f,v,o,a,m,e,c,s,u,d,h){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.EditorSimpleWorker=void 0,r.create=y;class S extends f.MirrorTextModel{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(p){const i=[];for(let l=0;lthis._lines.length)i=this._lines.length,l=this._lines[i-1].length+1,g=!0;else{const w=this._lines[i-1].length+1;l<1?(l=1,g=!0):l>w&&(l=w,g=!0)}return g?{lineNumber:i,column:l}:p}}class C{constructor(p,i){this._host=p,this._models=Object.create(null),this._foreignModuleFactory=i,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(p){return this._models[p]}_getModels(){const p=[];return Object.keys(this._models).forEach(i=>p.push(this._models[i])),p}acceptNewModel(p){this._models[p.url]=new S(x.URI.parse(p.url),p.lines,p.EOL,p.versionId)}acceptModelChanged(p,i){if(!this._models[p])return;this._models[p].onEvents(i)}acceptRemovedModel(p){this._models[p]&&delete this._models[p]}async computeUnicodeHighlights(p,i,l){const g=this._getModel(p);return g?c.UnicodeTextModelHighlighter.computeUnicodeHighlights(g,i,l):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(p,i){const l=this._getModel(p);return l?(0,h.findSectionHeaders)(l,i):[]}async computeDiff(p,i,l,g){const w=this._getModel(p),_=this._getModel(i);return!w||!_?null:C.computeDiff(w,_,l,g)}static computeDiff(p,i,l,g){const w=g==="advanced"?s.linesDiffComputers.getDefault():s.linesDiffComputers.getLegacy(),_=p.getLinesContent(),E=i.getLinesContent(),N=w.computeDiff(_,E,l),L=N.changes.length>0?!1:this._modelsAreIdentical(p,i);function M(D){return D.map(F=>{var k;return[F.original.startLineNumber,F.original.endLineNumberExclusive,F.modified.startLineNumber,F.modified.endLineNumberExclusive,(k=F.innerChanges)===null||k===void 0?void 0:k.map(O=>[O.originalRange.startLineNumber,O.originalRange.startColumn,O.originalRange.endLineNumber,O.originalRange.endColumn,O.modifiedRange.startLineNumber,O.modifiedRange.startColumn,O.modifiedRange.endLineNumber,O.modifiedRange.endColumn])]})}return{identical:L,quitEarly:N.hitTimeout,changes:M(N.changes),moves:N.moves.map(D=>[D.lineRangeMapping.original.startLineNumber,D.lineRangeMapping.original.endLineNumberExclusive,D.lineRangeMapping.modified.startLineNumber,D.lineRangeMapping.modified.endLineNumberExclusive,M(D.changes)])}}static _modelsAreIdentical(p,i){const l=p.getLineCount(),g=i.getLineCount();if(l!==g)return!1;for(let w=1;w<=l;w++){const _=p.getLineContent(w),E=i.getLineContent(w);if(_!==E)return!1}return!0}async computeMoreMinimalEdits(p,i,l){const g=this._getModel(p);if(!g)return i;const w=[];let _;i=i.slice(0).sort((N,L)=>{if(N.range&&L.range)return b.Range.compareRangesUsingStarts(N.range,L.range);const M=N.range?0:1,D=L.range?0:1;return M-D});let E=0;for(let N=1;NC._diffLimit){w.push({range:N,text:L});continue}const F=(0,n.stringDiff)(D,L,l),k=g.offsetAt(b.Range.lift(N).getStartPosition());for(const O of F){const z=g.positionAt(k+O.originalStart),Q=g.positionAt(k+O.originalStart+O.originalLength),T={text:L.substr(O.modifiedStart,O.modifiedLength),range:{startLineNumber:z.lineNumber,startColumn:z.column,endLineNumber:Q.lineNumber,endColumn:Q.column}};g.getValueInRange(T.range)!==T.text&&w.push(T)}}return typeof _=="number"&&w.push({eol:_,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),w}async computeLinks(p){const i=this._getModel(p);return i?(0,o.computeLinks)(i):null}async computeDefaultDocumentColors(p){const i=this._getModel(p);return i?(0,d.computeDefaultDocumentColors)(i):null}async textualSuggest(p,i,l,g){const w=new e.StopWatch,_=new RegExp(l,g),E=new Set;e:for(const N of p){const L=this._getModel(N);if(L){for(const M of L.words(_))if(!(M===i||!isNaN(Number(M)))&&(E.add(M),E.size>C._suggestionsLimit))break e}}return{words:Array.from(E),duration:w.elapsed()}}async computeWordRanges(p,i,l,g){const w=this._getModel(p);if(!w)return Object.create(null);const _=new RegExp(l,g),E=Object.create(null);for(let N=i.startLineNumber;Nthis._host.fhr(E,N),_={host:(0,u.createProxyObject)(l,g),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(_,i),Promise.resolve((0,u.getAllMethodNames)(this._foreignModule))):new Promise((E,N)=>{q([p],L=>{this._foreignModule=L.create(_,i),E((0,u.getAllMethodNames)(this._foreignModule))},N)})}fmr(p,i){if(!this._foreignModule||typeof this._foreignModule[p]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+p));try{return Promise.resolve(this._foreignModule[p].apply(this._foreignModule,i))}catch(l){return Promise.reject(l)}}}r.EditorSimpleWorker=C,C._diffLimit=1e5,C._suggestionsLimit=1e4;function y(A){return new C(A,null)}typeof importScripts=="function"&&(globalThis.monaco=(0,m.createMonacoBaseAPI)())})}).call(this); //# sourceMappingURL=../../../../min-maps/vs/base/worker/workerMain.js.map