astro-vscode 2.16.3 → 2.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +12 -0
- package/dist/node/server.js +14 -14
- package/package.json +1 -1
package/dist/node/server.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var Q2e=Object.create;var p1=Object.defineProperty;var X2e=Object.getOwnPropertyDescriptor;var Z2e=Object.getOwnPropertyNames;var exe=Object.getPrototypeOf,txe=Object.prototype.hasOwnProperty;var Ce=(t,e)=>()=>(t&&(e=t(t=0)),e);var I=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Qa=(t,e)=>{for(var n in e)p1(t,n,{get:e[n],enumerable:!0})},e7=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Z2e(e))!txe.call(t,i)&&i!==n&&p1(t,i,{get:()=>e[i],enumerable:!(r=X2e(e,i))||r.enumerable});return t};var Wr=(t,e,n)=>(n=t!=null?Q2e(exe(t)):{},e7(e||!t||!t.__esModule?p1(n,"default",{value:t,enumerable:!0}):n,t)),or=t=>e7(p1({},"__esModule",{value:!0}),t);var t7=I((jft,nxe)=>{nxe.exports={name:"@astrojs/language-server",version:"2.16.1",author:"withastro",license:"MIT",repository:{type:"git",url:"https://github.com/withastro/astro.git",directory:"packages/language-tools/language-server"},type:"commonjs",main:"dist/index.js",files:["bin","dist/**/*.js","dist/**/*.d.ts","types/**/*.d.ts"],bin:{"astro-ls":"./bin/nodeServer.js"},scripts:{build:"tsc",dev:"tsc --watch","sync-fixture":"pnpm --dir ./test/fixture sync",test:'pnpm sync-fixture && astro-scripts test "**/*.test.ts" --teardown-test ./test/misc/teardown.ts --tsx true',"test:match":"pnpm run test --match"},dependencies:{"@astrojs/compiler":"^2.10.3","@astrojs/yaml2ts":"^0.2.2","@jridgewell/sourcemap-codec":"^1.4.15","@volar/kit":"~2.4.23","@volar/language-core":"~2.4.23","@volar/language-server":"~2.4.23","@volar/language-service":"~2.4.23","fast-glob":"^3.2.12","muggle-string":"^0.4.1","volar-service-css":"0.0.66","volar-service-emmet":"0.0.66","volar-service-html":"0.0.66","volar-service-prettier":"0.0.66","volar-service-typescript":"0.0.66","volar-service-typescript-twoslash-queries":"0.0.66","volar-service-yaml":"0.0.66","vscode-html-languageservice":"^5.5.2","vscode-uri":"^3.1.0"},devDependencies:{"@types/node":"^20.9.0","@volar/test-utils":"~2.4.23","@volar/typescript":"~2.4.23",tsx:"^4.20.6",typescript:"^5.9.3","vscode-languageserver-protocol":"^3.17.5","vscode-languageserver-textdocument":"^1.0.11","astro-scripts":"workspace:*"},peerDependencies:{prettier:"^3.0.0","prettier-plugin-astro":">=0.11.0"},peerDependenciesMeta:{prettier:{optional:!0},"prettier-plugin-astro":{optional:!0}}}});var m1=I(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.thenable=Tr.typedArray=Tr.stringArray=Tr.array=Tr.func=Tr.error=Tr.number=Tr.string=Tr.boolean=void 0;function rxe(t){return t===!0||t===!1}Tr.boolean=rxe;function n7(t){return typeof t=="string"||t instanceof String}Tr.string=n7;function ixe(t){return typeof t=="number"||t instanceof Number}Tr.number=ixe;function sxe(t){return t instanceof Error}Tr.error=sxe;function r7(t){return typeof t=="function"}Tr.func=r7;function i7(t){return Array.isArray(t)}Tr.array=i7;function oxe(t){return i7(t)&&t.every(e=>n7(e))}Tr.stringArray=oxe;function axe(t,e){return Array.isArray(t)&&t.every(e)}Tr.typedArray=axe;function lxe(t){return t&&r7(t.then)}Tr.thenable=lxe});var rp=I(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.stringArray=Ai.array=Ai.func=Ai.error=Ai.number=Ai.string=Ai.boolean=void 0;function cxe(t){return t===!0||t===!1}Ai.boolean=cxe;function s7(t){return typeof t=="string"||t instanceof String}Ai.string=s7;function uxe(t){return typeof t=="number"||t instanceof Number}Ai.number=uxe;function dxe(t){return t instanceof Error}Ai.error=dxe;function hxe(t){return typeof t=="function"}Ai.func=hxe;function o7(t){return Array.isArray(t)}Ai.array=o7;function fxe(t){return o7(t)&&t.every(e=>s7(e))}Ai.stringArray=fxe});var lM=I(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.Message=Ge.NotificationType9=Ge.NotificationType8=Ge.NotificationType7=Ge.NotificationType6=Ge.NotificationType5=Ge.NotificationType4=Ge.NotificationType3=Ge.NotificationType2=Ge.NotificationType1=Ge.NotificationType0=Ge.NotificationType=Ge.RequestType9=Ge.RequestType8=Ge.RequestType7=Ge.RequestType6=Ge.RequestType5=Ge.RequestType4=Ge.RequestType3=Ge.RequestType2=Ge.RequestType1=Ge.RequestType=Ge.RequestType0=Ge.AbstractMessageSignature=Ge.ParameterStructures=Ge.ResponseError=Ge.ErrorCodes=void 0;var bh=rp(),$T;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3})($T||(Ge.ErrorCodes=$T={}));var xb=class extends Error{constructor(e,n,r){super(n),this.code=bh.number(e)?e:$T.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,xb.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};Ge.ResponseError=xb;var Xr=class{constructor(e){this.kind=e}static is(e){return e===Xr.auto||e===Xr.byName||e===Xr.byPosition}toString(){return this.kind}};Ge.ParameterStructures=Xr;Xr.auto=new Xr("auto");Xr.byPosition=new Xr("byPosition");Xr.byName=new Xr("byName");var jn=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return Xr.auto}};Ge.AbstractMessageSignature=jn;var zT=class extends jn{constructor(e){super(e,0)}};Ge.RequestType0=zT;var jT=class extends jn{constructor(e,n=Xr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ge.RequestType=jT;var WT=class extends jn{constructor(e,n=Xr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ge.RequestType1=WT;var UT=class extends jn{constructor(e){super(e,2)}};Ge.RequestType2=UT;var BT=class extends jn{constructor(e){super(e,3)}};Ge.RequestType3=BT;var HT=class extends jn{constructor(e){super(e,4)}};Ge.RequestType4=HT;var VT=class extends jn{constructor(e){super(e,5)}};Ge.RequestType5=VT;var KT=class extends jn{constructor(e){super(e,6)}};Ge.RequestType6=KT;var GT=class extends jn{constructor(e){super(e,7)}};Ge.RequestType7=GT;var JT=class extends jn{constructor(e){super(e,8)}};Ge.RequestType8=JT;var YT=class extends jn{constructor(e){super(e,9)}};Ge.RequestType9=YT;var QT=class extends jn{constructor(e,n=Xr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ge.NotificationType=QT;var XT=class extends jn{constructor(e){super(e,0)}};Ge.NotificationType0=XT;var ZT=class extends jn{constructor(e,n=Xr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ge.NotificationType1=ZT;var eM=class extends jn{constructor(e){super(e,2)}};Ge.NotificationType2=eM;var tM=class extends jn{constructor(e){super(e,3)}};Ge.NotificationType3=tM;var nM=class extends jn{constructor(e){super(e,4)}};Ge.NotificationType4=nM;var rM=class extends jn{constructor(e){super(e,5)}};Ge.NotificationType5=rM;var iM=class extends jn{constructor(e){super(e,6)}};Ge.NotificationType6=iM;var sM=class extends jn{constructor(e){super(e,7)}};Ge.NotificationType7=sM;var oM=class extends jn{constructor(e){super(e,8)}};Ge.NotificationType8=oM;var aM=class extends jn{constructor(e){super(e,9)}};Ge.NotificationType9=aM;var a7;(function(t){function e(i){let s=i;return s&&bh.string(s.method)&&(bh.string(s.id)||bh.number(s.id))}t.isRequest=e;function n(i){let s=i;return s&&bh.string(s.method)&&i.id===void 0}t.isNotification=n;function r(i){let s=i;return s&&(s.result!==void 0||!!s.error)&&(bh.string(s.id)||bh.number(s.id)||s.id===null)}t.isResponse=r})(a7||(Ge.Message=a7={}))});var uM=I(yu=>{"use strict";var l7;Object.defineProperty(yu,"__esModule",{value:!0});yu.LRUCache=yu.LinkedMap=yu.Touch=void 0;var Fi;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(Fi||(yu.Touch=Fi={}));var g1=class{constructor(){this[l7]="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(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,n=Fi.None){let r=this._map.get(e);if(r)return n!==Fi.None&&this.touch(r,n),r.value}set(e,n,r=Fi.None){let i=this._map.get(e);if(i)i.value=n,r!==Fi.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case Fi.None:this.addItemLast(i);break;case Fi.First:this.addItemFirst(i);break;case Fi.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){let r=this._state,i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(l7=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Fi.First&&n!==Fi.Last)){if(n===Fi.First){if(e===this._head)return;let r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===Fi.Last){if(e===this._tail)return;let r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(let[n,r]of e)this.set(n,r)}};yu.LinkedMap=g1;var cM=class extends g1{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,n=Fi.AsNew){return super.get(e,n)}peek(e){return super.get(e,Fi.None)}set(e,n){return super.set(e,n,Fi.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};yu.LRUCache=cM});var u7=I(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0});b1.Disposable=void 0;var c7;(function(t){function e(n){return{dispose:n}}t.create=e})(c7||(b1.Disposable=c7={}))});var vu=I(fM=>{"use strict";Object.defineProperty(fM,"__esModule",{value:!0});var dM;function hM(){if(dM===void 0)throw new Error("No runtime abstraction layer installed");return dM}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");dM=n}t.install=e})(hM||(hM={}));fM.default=hM});var op=I(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.Emitter=sp.Event=void 0;var pxe=vu(),d7;(function(t){let e={dispose(){}};t.None=function(){return e}})(d7||(sp.Event=d7={}));var pM=class{add(e,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i<s;i++)if(this._callbacks[i]===e)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let s=0,o=r.length;s<o;s++)try{n.push(r[s].apply(i[s],e))}catch(a){(0,pxe.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},ip=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new pM),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),i.dispose=ip._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};sp.Emitter=ip;ip._noop=function(){}});var w1=I(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.CancellationTokenSource=ap.CancellationToken=void 0;var mxe=vu(),gxe=rp(),mM=op(),y1;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:mM.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:mM.Event.None});function e(n){let r=n;return r&&(r===t.None||r===t.Cancelled||gxe.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})(y1||(ap.CancellationToken=y1={}));var bxe=Object.freeze(function(t,e){let n=(0,mxe.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),v1=class{constructor(){this._isCancelled=!1}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?bxe:(this._emitter||(this._emitter=new mM.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},gM=class{get token(){return this._token||(this._token=new v1),this._token}cancel(){this._token?this._token.cancel():this._token=y1.Cancelled}dispose(){this._token?this._token instanceof v1&&this._token.dispose():this._token=y1.None}};ap.CancellationTokenSource=gM});var h7=I(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.SharedArrayReceiverStrategy=lp.SharedArraySenderStrategy=void 0;var yxe=w1(),kb;(function(t){t.Continue=0,t.Cancelled=1})(kb||(kb={}));var bM=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=kb.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,kb.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};lp.SharedArraySenderStrategy=bM;var yM=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===kb.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},vM=class{constructor(e){this.token=new yM(e)}cancel(){}dispose(){}},wM=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new yxe.CancellationTokenSource:new vM(n)}};lp.SharedArrayReceiverStrategy=wM});var SM=I(_1=>{"use strict";Object.defineProperty(_1,"__esModule",{value:!0});_1.Semaphore=void 0;var vxe=vu(),_M=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((n,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,vxe.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=e.thunk();n instanceof Promise?n.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};_1.Semaphore=_M});var p7=I(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.ReadableStreamMessageReader=wu.AbstractMessageReader=wu.MessageReader=void 0;var xM=vu(),cp=rp(),CM=op(),wxe=SM(),f7;(function(t){function e(n){let r=n;return r&&cp.func(r.listen)&&cp.func(r.dispose)&&cp.func(r.onError)&&cp.func(r.onClose)&&cp.func(r.onPartialMessage)}t.is=e})(f7||(wu.MessageReader=f7={}));var S1=class{constructor(){this.errorEmitter=new CM.Emitter,this.closeEmitter=new CM.Emitter,this.partialMessageEmitter=new CM.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${cp.string(e.message)?e.message:"unknown"}`)}};wu.AbstractMessageReader=S1;var kM;(function(t){function e(n){let r,i,s,o=new Map,a,l=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(s=n.contentDecoder,o.set(s.name,s)),n.contentDecoders!==void 0)for(let c of n.contentDecoders)o.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,l.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)l.set(c.name,c)}return a===void 0&&(a=(0,xM.default)().applicationJson.decoder,l.set(a.name,a)),{charset:r,contentDecoder:s,contentDecoders:o,contentTypeDecoder:a,contentTypeDecoders:l}}t.fromOptions=e})(kM||(kM={}));var AM=class extends S1{constructor(e,n){super(),this.readable=e,this.options=kM.fromOptions(n),this.buffer=(0,xM.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new wxe.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
3
|
-
${JSON.stringify(Object.fromEntries(r))}`));return}let s=parseInt(i);if(isNaN(s)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=s}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,xM.default)().timer.setTimeout((e,n)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};wu.ReadableStreamMessageReader=AM});var
|
|
4
|
-
`,
|
|
2
|
+
var Q2e=Object.create;var p1=Object.defineProperty;var X2e=Object.getOwnPropertyDescriptor;var Z2e=Object.getOwnPropertyNames;var exe=Object.getPrototypeOf,txe=Object.prototype.hasOwnProperty;var Ce=(t,e)=>()=>(t&&(e=t(t=0)),e);var I=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Qa=(t,e)=>{for(var n in e)p1(t,n,{get:e[n],enumerable:!0})},eU=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Z2e(e))!txe.call(t,i)&&i!==n&&p1(t,i,{get:()=>e[i],enumerable:!(r=X2e(e,i))||r.enumerable});return t};var Wr=(t,e,n)=>(n=t!=null?Q2e(exe(t)):{},eU(e||!t||!t.__esModule?p1(n,"default",{value:t,enumerable:!0}):n,t)),or=t=>eU(p1({},"__esModule",{value:!0}),t);var tU=I((jft,nxe)=>{nxe.exports={name:"@astrojs/language-server",version:"2.16.2",author:"withastro",license:"MIT",repository:{type:"git",url:"https://github.com/withastro/astro.git",directory:"packages/language-tools/language-server"},type:"commonjs",main:"dist/index.js",files:["bin","dist/**/*.js","dist/**/*.d.ts","types/**/*.d.ts"],bin:{"astro-ls":"./bin/nodeServer.js"},scripts:{build:"tsc",dev:"tsc --watch","sync-fixture":"pnpm --dir ./test/fixture sync",test:'pnpm sync-fixture && astro-scripts test "**/*.test.ts" --teardown-test ./test/misc/teardown.ts --tsx true',"test:match":"pnpm run test --match"},dependencies:{"@astrojs/compiler":"^2.10.3","@astrojs/yaml2ts":"^0.2.2","@jridgewell/sourcemap-codec":"^1.4.15","@volar/kit":"~2.4.23","@volar/language-core":"~2.4.23","@volar/language-server":"~2.4.23","@volar/language-service":"~2.4.23","fast-glob":"^3.2.12","muggle-string":"^0.4.1","volar-service-css":"0.0.67","volar-service-emmet":"0.0.67","volar-service-html":"0.0.67","volar-service-prettier":"0.0.67","volar-service-typescript":"0.0.67","volar-service-typescript-twoslash-queries":"0.0.67","volar-service-yaml":"0.0.67","vscode-html-languageservice":"^5.5.2","vscode-uri":"^3.1.0"},devDependencies:{"@types/node":"^20.9.0","@volar/test-utils":"~2.4.23","@volar/typescript":"~2.4.23",tsx:"^4.20.6",typescript:"^5.9.3","vscode-languageserver-protocol":"^3.17.5","vscode-languageserver-textdocument":"^1.0.11","astro-scripts":"workspace:*"},peerDependencies:{prettier:"^3.0.0","prettier-plugin-astro":">=0.11.0"},peerDependenciesMeta:{prettier:{optional:!0},"prettier-plugin-astro":{optional:!0}}}});var m1=I(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.thenable=Tr.typedArray=Tr.stringArray=Tr.array=Tr.func=Tr.error=Tr.number=Tr.string=Tr.boolean=void 0;function rxe(t){return t===!0||t===!1}Tr.boolean=rxe;function nU(t){return typeof t=="string"||t instanceof String}Tr.string=nU;function ixe(t){return typeof t=="number"||t instanceof Number}Tr.number=ixe;function sxe(t){return t instanceof Error}Tr.error=sxe;function rU(t){return typeof t=="function"}Tr.func=rU;function iU(t){return Array.isArray(t)}Tr.array=iU;function oxe(t){return iU(t)&&t.every(e=>nU(e))}Tr.stringArray=oxe;function axe(t,e){return Array.isArray(t)&&t.every(e)}Tr.typedArray=axe;function lxe(t){return t&&rU(t.then)}Tr.thenable=lxe});var rp=I(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.stringArray=Ai.array=Ai.func=Ai.error=Ai.number=Ai.string=Ai.boolean=void 0;function cxe(t){return t===!0||t===!1}Ai.boolean=cxe;function sU(t){return typeof t=="string"||t instanceof String}Ai.string=sU;function uxe(t){return typeof t=="number"||t instanceof Number}Ai.number=uxe;function dxe(t){return t instanceof Error}Ai.error=dxe;function hxe(t){return typeof t=="function"}Ai.func=hxe;function oU(t){return Array.isArray(t)}Ai.array=oU;function fxe(t){return oU(t)&&t.every(e=>sU(e))}Ai.stringArray=fxe});var lM=I(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.Message=Ge.NotificationType9=Ge.NotificationType8=Ge.NotificationType7=Ge.NotificationType6=Ge.NotificationType5=Ge.NotificationType4=Ge.NotificationType3=Ge.NotificationType2=Ge.NotificationType1=Ge.NotificationType0=Ge.NotificationType=Ge.RequestType9=Ge.RequestType8=Ge.RequestType7=Ge.RequestType6=Ge.RequestType5=Ge.RequestType4=Ge.RequestType3=Ge.RequestType2=Ge.RequestType1=Ge.RequestType=Ge.RequestType0=Ge.AbstractMessageSignature=Ge.ParameterStructures=Ge.ResponseError=Ge.ErrorCodes=void 0;var bh=rp(),$T;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3})($T||(Ge.ErrorCodes=$T={}));var xb=class extends Error{constructor(e,n,r){super(n),this.code=bh.number(e)?e:$T.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,xb.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};Ge.ResponseError=xb;var Xr=class{constructor(e){this.kind=e}static is(e){return e===Xr.auto||e===Xr.byName||e===Xr.byPosition}toString(){return this.kind}};Ge.ParameterStructures=Xr;Xr.auto=new Xr("auto");Xr.byPosition=new Xr("byPosition");Xr.byName=new Xr("byName");var jn=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return Xr.auto}};Ge.AbstractMessageSignature=jn;var zT=class extends jn{constructor(e){super(e,0)}};Ge.RequestType0=zT;var jT=class extends jn{constructor(e,n=Xr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ge.RequestType=jT;var WT=class extends jn{constructor(e,n=Xr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ge.RequestType1=WT;var UT=class extends jn{constructor(e){super(e,2)}};Ge.RequestType2=UT;var BT=class extends jn{constructor(e){super(e,3)}};Ge.RequestType3=BT;var HT=class extends jn{constructor(e){super(e,4)}};Ge.RequestType4=HT;var VT=class extends jn{constructor(e){super(e,5)}};Ge.RequestType5=VT;var KT=class extends jn{constructor(e){super(e,6)}};Ge.RequestType6=KT;var GT=class extends jn{constructor(e){super(e,7)}};Ge.RequestType7=GT;var JT=class extends jn{constructor(e){super(e,8)}};Ge.RequestType8=JT;var YT=class extends jn{constructor(e){super(e,9)}};Ge.RequestType9=YT;var QT=class extends jn{constructor(e,n=Xr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ge.NotificationType=QT;var XT=class extends jn{constructor(e){super(e,0)}};Ge.NotificationType0=XT;var ZT=class extends jn{constructor(e,n=Xr.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Ge.NotificationType1=ZT;var eM=class extends jn{constructor(e){super(e,2)}};Ge.NotificationType2=eM;var tM=class extends jn{constructor(e){super(e,3)}};Ge.NotificationType3=tM;var nM=class extends jn{constructor(e){super(e,4)}};Ge.NotificationType4=nM;var rM=class extends jn{constructor(e){super(e,5)}};Ge.NotificationType5=rM;var iM=class extends jn{constructor(e){super(e,6)}};Ge.NotificationType6=iM;var sM=class extends jn{constructor(e){super(e,7)}};Ge.NotificationType7=sM;var oM=class extends jn{constructor(e){super(e,8)}};Ge.NotificationType8=oM;var aM=class extends jn{constructor(e){super(e,9)}};Ge.NotificationType9=aM;var aU;(function(t){function e(i){let s=i;return s&&bh.string(s.method)&&(bh.string(s.id)||bh.number(s.id))}t.isRequest=e;function n(i){let s=i;return s&&bh.string(s.method)&&i.id===void 0}t.isNotification=n;function r(i){let s=i;return s&&(s.result!==void 0||!!s.error)&&(bh.string(s.id)||bh.number(s.id)||s.id===null)}t.isResponse=r})(aU||(Ge.Message=aU={}))});var uM=I(yu=>{"use strict";var lU;Object.defineProperty(yu,"__esModule",{value:!0});yu.LRUCache=yu.LinkedMap=yu.Touch=void 0;var Fi;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(Fi||(yu.Touch=Fi={}));var g1=class{constructor(){this[lU]="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(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,n=Fi.None){let r=this._map.get(e);if(r)return n!==Fi.None&&this.touch(r,n),r.value}set(e,n,r=Fi.None){let i=this._map.get(e);if(i)i.value=n,r!==Fi.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case Fi.None:this.addItemLast(i);break;case Fi.First:this.addItemFirst(i);break;case Fi.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){let r=this._state,i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(lU=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Fi.First&&n!==Fi.Last)){if(n===Fi.First){if(e===this._head)return;let r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===Fi.Last){if(e===this._tail)return;let r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(let[n,r]of e)this.set(n,r)}};yu.LinkedMap=g1;var cM=class extends g1{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,n=Fi.AsNew){return super.get(e,n)}peek(e){return super.get(e,Fi.None)}set(e,n){return super.set(e,n,Fi.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};yu.LRUCache=cM});var uU=I(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0});b1.Disposable=void 0;var cU;(function(t){function e(n){return{dispose:n}}t.create=e})(cU||(b1.Disposable=cU={}))});var vu=I(fM=>{"use strict";Object.defineProperty(fM,"__esModule",{value:!0});var dM;function hM(){if(dM===void 0)throw new Error("No runtime abstraction layer installed");return dM}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");dM=n}t.install=e})(hM||(hM={}));fM.default=hM});var op=I(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.Emitter=sp.Event=void 0;var pxe=vu(),dU;(function(t){let e={dispose(){}};t.None=function(){return e}})(dU||(sp.Event=dU={}));var pM=class{add(e,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i<s;i++)if(this._callbacks[i]===e)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let s=0,o=r.length;s<o;s++)try{n.push(r[s].apply(i[s],e))}catch(a){(0,pxe.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},ip=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new pM),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),i.dispose=ip._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};sp.Emitter=ip;ip._noop=function(){}});var w1=I(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.CancellationTokenSource=ap.CancellationToken=void 0;var mxe=vu(),gxe=rp(),mM=op(),y1;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:mM.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:mM.Event.None});function e(n){let r=n;return r&&(r===t.None||r===t.Cancelled||gxe.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})(y1||(ap.CancellationToken=y1={}));var bxe=Object.freeze(function(t,e){let n=(0,mxe.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),v1=class{constructor(){this._isCancelled=!1}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?bxe:(this._emitter||(this._emitter=new mM.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},gM=class{get token(){return this._token||(this._token=new v1),this._token}cancel(){this._token?this._token.cancel():this._token=y1.Cancelled}dispose(){this._token?this._token instanceof v1&&this._token.dispose():this._token=y1.None}};ap.CancellationTokenSource=gM});var hU=I(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.SharedArrayReceiverStrategy=lp.SharedArraySenderStrategy=void 0;var yxe=w1(),kb;(function(t){t.Continue=0,t.Cancelled=1})(kb||(kb={}));var bM=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=kb.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,kb.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};lp.SharedArraySenderStrategy=bM;var yM=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===kb.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},vM=class{constructor(e){this.token=new yM(e)}cancel(){}dispose(){}},wM=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new yxe.CancellationTokenSource:new vM(n)}};lp.SharedArrayReceiverStrategy=wM});var SM=I(_1=>{"use strict";Object.defineProperty(_1,"__esModule",{value:!0});_1.Semaphore=void 0;var vxe=vu(),_M=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((n,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,vxe.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=e.thunk();n instanceof Promise?n.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};_1.Semaphore=_M});var pU=I(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.ReadableStreamMessageReader=wu.AbstractMessageReader=wu.MessageReader=void 0;var xM=vu(),cp=rp(),CM=op(),wxe=SM(),fU;(function(t){function e(n){let r=n;return r&&cp.func(r.listen)&&cp.func(r.dispose)&&cp.func(r.onError)&&cp.func(r.onClose)&&cp.func(r.onPartialMessage)}t.is=e})(fU||(wu.MessageReader=fU={}));var S1=class{constructor(){this.errorEmitter=new CM.Emitter,this.closeEmitter=new CM.Emitter,this.partialMessageEmitter=new CM.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${cp.string(e.message)?e.message:"unknown"}`)}};wu.AbstractMessageReader=S1;var kM;(function(t){function e(n){let r,i,s,o=new Map,a,l=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(s=n.contentDecoder,o.set(s.name,s)),n.contentDecoders!==void 0)for(let c of n.contentDecoders)o.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,l.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)l.set(c.name,c)}return a===void 0&&(a=(0,xM.default)().applicationJson.decoder,l.set(a.name,a)),{charset:r,contentDecoder:s,contentDecoders:o,contentTypeDecoder:a,contentTypeDecoders:l}}t.fromOptions=e})(kM||(kM={}));var AM=class extends S1{constructor(e,n){super(),this.readable=e,this.options=kM.fromOptions(n),this.buffer=(0,xM.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new wxe.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
3
|
+
${JSON.stringify(Object.fromEntries(r))}`));return}let s=parseInt(i);if(isNaN(s)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=s}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,xM.default)().timer.setTimeout((e,n)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};wu.ReadableStreamMessageReader=AM});var vU=I(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.WriteableStreamMessageWriter=_u.AbstractMessageWriter=_u.MessageWriter=void 0;var mU=vu(),Ab=rp(),_xe=SM(),gU=op(),Sxe="Content-Length: ",bU=`\r
|
|
4
|
+
`,yU;(function(t){function e(n){let r=n;return r&&Ab.func(r.dispose)&&Ab.func(r.onClose)&&Ab.func(r.onError)&&Ab.func(r.write)}t.is=e})(yU||(_u.MessageWriter=yU={}));var C1=class{constructor(){this.errorEmitter=new gU.Emitter,this.closeEmitter=new gU.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,r){this.errorEmitter.fire([this.asError(e),n,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${Ab.string(e.message)?e.message:"unknown"}`)}};_u.AbstractMessageWriter=C1;var FM;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,mU.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,mU.default)().applicationJson.encoder}}t.fromOptions=e})(FM||(FM={}));var EM=class extends C1{constructor(e,n){super(),this.writable=e,this.options=FM.fromOptions(n),this.errorCount=0,this.writeSemaphore=new _xe.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{let i=[];return i.push(Sxe,r.byteLength.toString(),bU),i.push(bU),this.doWrite(e,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(e,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}};_u.WriteableStreamMessageWriter=EM});var wU=I(x1=>{"use strict";Object.defineProperty(x1,"__esModule",{value:!0});x1.AbstractMessageBuffer=void 0;var Cxe=13,xxe=10,kxe=`\r
|
|
5
5
|
`,TM=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let n=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let n=0,r=0,i=0,s=0;e:for(;r<this._chunks.length;){let c=this._chunks[r];i=0;t:for(;i<c.length;){switch(c[i]){case Cxe:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case xxe:switch(n){case 1:n=2;break;case 3:n=4,i++;break e;default:n=0}break;default:n=0}i++}s+=c.byteLength,r++}if(n!==4)return;let o=this._read(s+i),a=new Map,l=this.toString(o,"ascii").split(kxe);if(l.length<2)return a;for(let c=0;c<l.length-2;c++){let u=l[c],d=u.indexOf(":");if(d===-1)throw new Error(`Message header must separate key and value using ':'
|
|
6
|
-
${u}`);let f=u.substr(0,d),m=u.substr(d+1).trim();a.set(e?f.toLowerCase():f,m)}return a}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let s=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(s)}if(this._chunks[0].byteLength>e){let s=this._chunks[0],o=this.asNative(s,e);return this._chunks[0]=s.slice(e),this._totalLength-=e,o}let n=this.allocNative(e),r=0,i=0;for(;e>0;){let s=this._chunks[i];if(s.byteLength>e){let o=s.slice(0,e);n.set(o,r),r+=e,this._chunks[i]=s.slice(e),this._totalLength-=e,e-=e}else n.set(s,r),r+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return n}};x1.AbstractMessageBuffer=TM});var
|
|
6
|
+
${u}`);let f=u.substr(0,d),m=u.substr(d+1).trim();a.set(e?f.toLowerCase():f,m)}return a}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let s=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(s)}if(this._chunks[0].byteLength>e){let s=this._chunks[0],o=this.asNative(s,e);return this._chunks[0]=s.slice(e),this._totalLength-=e,o}let n=this.allocNative(e),r=0,i=0;for(;e>0;){let s=this._chunks[i];if(s.byteLength>e){let o=s.slice(0,e);n.set(o,r),r+=e,this._chunks[i]=s.slice(e),this._totalLength-=e,e-=e}else n.set(s,r),r+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return n}};x1.AbstractMessageBuffer=TM});var kU=I(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.createMessageConnection=pt.ConnectionOptions=pt.MessageStrategy=pt.CancellationStrategy=pt.CancellationSenderStrategy=pt.CancellationReceiverStrategy=pt.RequestCancellationReceiverStrategy=pt.IdCancellationReceiverStrategy=pt.ConnectionStrategy=pt.ConnectionError=pt.ConnectionErrors=pt.LogTraceNotification=pt.SetTraceNotification=pt.TraceFormat=pt.TraceValues=pt.Trace=pt.NullLogger=pt.ProgressType=pt.ProgressToken=void 0;var _U=vu(),rr=rp(),nt=lM(),SU=uM(),Fb=op(),MM=w1(),Mb;(function(t){t.type=new nt.NotificationType("$/cancelRequest")})(Mb||(Mb={}));var DM;(function(t){function e(n){return typeof n=="string"||typeof n=="number"}t.is=e})(DM||(pt.ProgressToken=DM={}));var Eb;(function(t){t.type=new nt.NotificationType("$/progress")})(Eb||(Eb={}));var RM=class{constructor(){}};pt.ProgressType=RM;var IM;(function(t){function e(n){return rr.func(n)}t.is=e})(IM||(IM={}));pt.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var hn;(function(t){t[t.Off=0]="Off",t[t.Messages=1]="Messages",t[t.Compact=2]="Compact",t[t.Verbose=3]="Verbose"})(hn||(pt.Trace=hn={}));var CU;(function(t){t.Off="off",t.Messages="messages",t.Compact="compact",t.Verbose="verbose"})(CU||(pt.TraceValues=CU={}));(function(t){function e(r){if(!rr.string(r))return t.Off;switch(r=r.toLowerCase(),r){case"off":return t.Off;case"messages":return t.Messages;case"compact":return t.Compact;case"verbose":return t.Verbose;default:return t.Off}}t.fromString=e;function n(r){switch(r){case t.Off:return"off";case t.Messages:return"messages";case t.Compact:return"compact";case t.Verbose:return"verbose";default:return"off"}}t.toString=n})(hn||(pt.Trace=hn={}));var Ks;(function(t){t.Text="text",t.JSON="json"})(Ks||(pt.TraceFormat=Ks={}));(function(t){function e(n){return rr.string(n)?(n=n.toLowerCase(),n==="json"?t.JSON:t.Text):t.Text}t.fromString=e})(Ks||(pt.TraceFormat=Ks={}));var PM;(function(t){t.type=new nt.NotificationType("$/setTrace")})(PM||(pt.SetTraceNotification=PM={}));var k1;(function(t){t.type=new nt.NotificationType("$/logTrace")})(k1||(pt.LogTraceNotification=k1={}));var Tb;(function(t){t[t.Closed=1]="Closed",t[t.Disposed=2]="Disposed",t[t.AlreadyListening=3]="AlreadyListening"})(Tb||(pt.ConnectionErrors=Tb={}));var Su=class extends Error{constructor(e,n){super(n),this.code=e,Object.setPrototypeOf(this,Su.prototype)}};pt.ConnectionError=Su;var OM;(function(t){function e(n){let r=n;return r&&rr.func(r.cancelUndispatched)}t.is=e})(OM||(pt.ConnectionStrategy=OM={}));var A1;(function(t){function e(n){let r=n;return r&&(r.kind===void 0||r.kind==="id")&&rr.func(r.createCancellationTokenSource)&&(r.dispose===void 0||rr.func(r.dispose))}t.is=e})(A1||(pt.IdCancellationReceiverStrategy=A1={}));var NM;(function(t){function e(n){let r=n;return r&&r.kind==="request"&&rr.func(r.createCancellationTokenSource)&&(r.dispose===void 0||rr.func(r.dispose))}t.is=e})(NM||(pt.RequestCancellationReceiverStrategy=NM={}));var F1;(function(t){t.Message=Object.freeze({createCancellationTokenSource(n){return new MM.CancellationTokenSource}});function e(n){return A1.is(n)||NM.is(n)}t.is=e})(F1||(pt.CancellationReceiverStrategy=F1={}));var E1;(function(t){t.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Mb.type,{id:r})},cleanup(n){}});function e(n){let r=n;return r&&rr.func(r.sendCancellation)&&rr.func(r.cleanup)}t.is=e})(E1||(pt.CancellationSenderStrategy=E1={}));var T1;(function(t){t.Message=Object.freeze({receiver:F1.Message,sender:E1.Message});function e(n){let r=n;return r&&F1.is(r.receiver)&&E1.is(r.sender)}t.is=e})(T1||(pt.CancellationStrategy=T1={}));var M1;(function(t){function e(n){let r=n;return r&&rr.func(r.handleMessage)}t.is=e})(M1||(pt.MessageStrategy=M1={}));var xU;(function(t){function e(n){let r=n;return r&&(T1.is(r.cancellationStrategy)||OM.is(r.connectionStrategy)||M1.is(r.messageStrategy))}t.is=e})(xU||(pt.ConnectionOptions=xU={}));var ma;(function(t){t[t.New=1]="New",t[t.Listening=2]="Listening",t[t.Closed=3]="Closed",t[t.Disposed=4]="Disposed"})(ma||(ma={}));function Axe(t,e,n,r){let i=n!==void 0?n:pt.NullLogger,s=0,o=0,a=0,l="2.0",c,u=new Map,d,f=new Map,m=new Map,b,g=new SU.LinkedMap,w=new Map,_=new Set,S=new Map,v=hn.Off,T=Ks.Text,A,R=ma.New,k=new Fb.Emitter,y=new Fb.Emitter,C=new Fb.Emitter,M=new Fb.Emitter,E=new Fb.Emitter,D=r&&r.cancellationStrategy?r.cancellationStrategy:T1.Message;function N(Z){if(Z===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+Z.toString()}function $(Z){return Z===null?"res-unknown-"+(++a).toString():"res-"+Z.toString()}function F(){return"not-"+(++o).toString()}function P(Z,pe){nt.Message.isRequest(pe)?Z.set(N(pe.id),pe):nt.Message.isResponse(pe)?Z.set($(pe.id),pe):Z.set(F(),pe)}function L(Z){}function j(){return R===ma.Listening}function z(){return R===ma.Closed}function K(){return R===ma.Disposed}function X(){(R===ma.New||R===ma.Listening)&&(R=ma.Closed,y.fire(void 0))}function ee(Z){k.fire([Z,void 0,void 0])}function de(Z){k.fire(Z)}t.onClose(X),t.onError(ee),e.onClose(X),e.onError(de);function Se(){b||g.size===0||(b=(0,_U.default)().timer.setImmediate(()=>{b=void 0,ke()}))}function De(Z){nt.Message.isRequest(Z)?St(Z):nt.Message.isNotification(Z)?Ne(Z):nt.Message.isResponse(Z)?we(Z):me(Z)}function ke(){if(g.size===0)return;let Z=g.shift();try{let pe=r?.messageStrategy;M1.is(pe)?pe.handleMessage(Z,De):De(Z)}finally{Se()}}let Ye=Z=>{try{if(nt.Message.isNotification(Z)&&Z.method===Mb.type.method){let pe=Z.params.id,Te=N(pe),$e=g.get(Te);if(nt.Message.isRequest($e)){let Kt=r?.connectionStrategy,Sn=Kt&&Kt.cancelUndispatched?Kt.cancelUndispatched($e,L):void 0;if(Sn&&(Sn.error!==void 0||Sn.result!==void 0)){g.delete(Te),S.delete(pe),Sn.id=$e.id,lt(Sn,Z.method,Date.now()),e.write(Sn).catch(()=>i.error("Sending response for canceled message failed."));return}}let tn=S.get(pe);if(tn!==void 0){tn.cancel(),pr(Z);return}else _.add(pe)}P(g,Z)}finally{Se()}};function St(Z){if(K())return;function pe(At,Cn,zt){let $n={jsonrpc:l,id:Z.id};At instanceof nt.ResponseError?$n.error=At.toJson():$n.result=At===void 0?null:At,lt($n,Cn,zt),e.write($n).catch(()=>i.error("Sending response failed."))}function Te(At,Cn,zt){let $n={jsonrpc:l,id:Z.id,error:At.toJson()};lt($n,Cn,zt),e.write($n).catch(()=>i.error("Sending response failed."))}function $e(At,Cn,zt){At===void 0&&(At=null);let $n={jsonrpc:l,id:Z.id,result:At};lt($n,Cn,zt),e.write($n).catch(()=>i.error("Sending response failed."))}ri(Z);let tn=u.get(Z.method),Kt,Sn;tn&&(Kt=tn.type,Sn=tn.handler);let On=Date.now();if(Sn||c){let At=Z.id??String(Date.now()),Cn=A1.is(D.receiver)?D.receiver.createCancellationTokenSource(At):D.receiver.createCancellationTokenSource(Z);Z.id!==null&&_.has(Z.id)&&Cn.cancel(),Z.id!==null&&S.set(At,Cn);try{let zt;if(Sn)if(Z.params===void 0){if(Kt!==void 0&&Kt.numberOfParams!==0){Te(new nt.ResponseError(nt.ErrorCodes.InvalidParams,`Request ${Z.method} defines ${Kt.numberOfParams} params but received none.`),Z.method,On);return}zt=Sn(Cn.token)}else if(Array.isArray(Z.params)){if(Kt!==void 0&&Kt.parameterStructures===nt.ParameterStructures.byName){Te(new nt.ResponseError(nt.ErrorCodes.InvalidParams,`Request ${Z.method} defines parameters by name but received parameters by position`),Z.method,On);return}zt=Sn(...Z.params,Cn.token)}else{if(Kt!==void 0&&Kt.parameterStructures===nt.ParameterStructures.byPosition){Te(new nt.ResponseError(nt.ErrorCodes.InvalidParams,`Request ${Z.method} defines parameters by position but received parameters by name`),Z.method,On);return}zt=Sn(Z.params,Cn.token)}else c&&(zt=c(Z.method,Z.params,Cn.token));let $n=zt;zt?$n.then?$n.then(Er=>{S.delete(At),pe(Er,Z.method,On)},Er=>{S.delete(At),Er instanceof nt.ResponseError?Te(Er,Z.method,On):Er&&rr.string(Er.message)?Te(new nt.ResponseError(nt.ErrorCodes.InternalError,`Request ${Z.method} failed with message: ${Er.message}`),Z.method,On):Te(new nt.ResponseError(nt.ErrorCodes.InternalError,`Request ${Z.method} failed unexpectedly without providing any details.`),Z.method,On)}):(S.delete(At),pe(zt,Z.method,On)):(S.delete(At),$e(zt,Z.method,On))}catch(zt){S.delete(At),zt instanceof nt.ResponseError?pe(zt,Z.method,On):zt&&rr.string(zt.message)?Te(new nt.ResponseError(nt.ErrorCodes.InternalError,`Request ${Z.method} failed with message: ${zt.message}`),Z.method,On):Te(new nt.ResponseError(nt.ErrorCodes.InternalError,`Request ${Z.method} failed unexpectedly without providing any details.`),Z.method,On)}}else Te(new nt.ResponseError(nt.ErrorCodes.MethodNotFound,`Unhandled method ${Z.method}`),Z.method,On)}function we(Z){if(!K())if(Z.id===null)Z.error?i.error(`Received response message without id: Error is:
|
|
7
7
|
${JSON.stringify(Z.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let pe=Z.id,Te=w.get(pe);if(Gr(Z,Te),Te!==void 0){w.delete(pe);try{if(Z.error){let $e=Z.error;Te.reject(new nt.ResponseError($e.code,$e.message,$e.data))}else if(Z.result!==void 0)Te.resolve(Z.result);else throw new Error("Should never happen.")}catch($e){$e.message?i.error(`Response handler '${Te.method}' failed with message: ${$e.message}`):i.error(`Response handler '${Te.method}' failed unexpectedly.`)}}}}function Ne(Z){if(K())return;let pe,Te;if(Z.method===Mb.type.method){let $e=Z.params.id;_.delete($e),pr(Z);return}else{let $e=f.get(Z.method);$e&&(Te=$e.handler,pe=$e.type)}if(Te||d)try{if(pr(Z),Te)if(Z.params===void 0)pe!==void 0&&pe.numberOfParams!==0&&pe.parameterStructures!==nt.ParameterStructures.byName&&i.error(`Notification ${Z.method} defines ${pe.numberOfParams} params but received none.`),Te();else if(Array.isArray(Z.params)){let $e=Z.params;Z.method===Eb.type.method&&$e.length===2&&DM.is($e[0])?Te({token:$e[0],value:$e[1]}):(pe!==void 0&&(pe.parameterStructures===nt.ParameterStructures.byName&&i.error(`Notification ${Z.method} defines parameters by name but received parameters by position`),pe.numberOfParams!==Z.params.length&&i.error(`Notification ${Z.method} defines ${pe.numberOfParams} params but received ${$e.length} arguments`)),Te(...$e))}else pe!==void 0&&pe.parameterStructures===nt.ParameterStructures.byPosition&&i.error(`Notification ${Z.method} defines parameters by position but received parameters by name`),Te(Z.params);else d&&d(Z.method,Z.params)}catch($e){$e.message?i.error(`Notification handler '${Z.method}' failed with message: ${$e.message}`):i.error(`Notification handler '${Z.method}' failed unexpectedly.`)}else C.fire(Z)}function me(Z){if(!Z){i.error("Received empty message.");return}i.error(`Received message which is neither a response nor a notification message:
|
|
8
8
|
${JSON.stringify(Z,null,4)}`);let pe=Z;if(rr.string(pe.id)||rr.number(pe.id)){let Te=pe.id,$e=w.get(Te);$e&&$e.reject(new Error("The received response has neither a result nor an error property."))}}function Re(Z){if(Z!=null)switch(v){case hn.Verbose:return JSON.stringify(Z,null,4);case hn.Compact:return JSON.stringify(Z);default:return}}function it(Z){if(!(v===hn.Off||!A))if(T===Ks.Text){let pe;(v===hn.Verbose||v===hn.Compact)&&Z.params&&(pe=`Params: ${Re(Z.params)}
|
|
9
9
|
|
|
@@ -29,11 +29,11 @@ ${JSON.stringify(Z,null,4)}`);let pe=Z;if(rr.string(pe.id)||rr.number(pe.id)){le
|
|
|
29
29
|
|
|
30
30
|
`:Z.error===void 0&&(Te=`No result returned.
|
|
31
31
|
|
|
32
|
-
`)),pe){let $e=Z.error?` Request failed: ${Z.error.message} (${Z.error.code}).`:"";A.log(`Received response '${pe.method} - (${Z.id})' in ${Date.now()-pe.timerStart}ms.${$e}`,Te)}else A.log(`Received response ${Z.id} without active response promise.`,Te)}else Vt("receive-response",Z)}function Vt(Z,pe){if(!A||v===hn.Off)return;let Te={isLSPMessage:!0,type:Z,message:pe,timestamp:Date.now()};A.log(Te)}function mr(){if(z())throw new Su(Tb.Closed,"Connection is closed.");if(K())throw new Su(Tb.Disposed,"Connection is disposed.")}function Wi(){if(j())throw new Su(Tb.AlreadyListening,"Connection is already listening")}function ou(){if(!j())throw new Error("Call listen() first.")}function Jr(Z){return Z===void 0?null:Z}function ah(Z){if(Z!==null)return Z}function ca(Z){return Z!=null&&!Array.isArray(Z)&&typeof Z=="object"}function qs(Z,pe){switch(Z){case nt.ParameterStructures.auto:return ca(pe)?ah(pe):[Jr(pe)];case nt.ParameterStructures.byName:if(!ca(pe))throw new Error("Received parameters by name but param is not an object literal.");return ah(pe);case nt.ParameterStructures.byPosition:return[Jr(pe)];default:throw new Error(`Unknown parameter structure ${Z.toString()}`)}}function Jl(Z,pe){let Te,$e=Z.numberOfParams;switch($e){case 0:Te=void 0;break;case 1:Te=qs(Z.parameterStructures,pe[0]);break;default:Te=[];for(let tn=0;tn<pe.length&&tn<$e;tn++)Te.push(Jr(pe[tn]));if(pe.length<$e)for(let tn=pe.length;tn<$e;tn++)Te.push(null);break}return Te}let $s={sendNotification:(Z,...pe)=>{mr();let Te,$e;if(rr.string(Z)){Te=Z;let Kt=pe[0],Sn=0,On=nt.ParameterStructures.auto;nt.ParameterStructures.is(Kt)&&(Sn=1,On=Kt);let At=pe.length,Cn=At-Sn;switch(Cn){case 0:$e=void 0;break;case 1:$e=qs(On,pe[Sn]);break;default:if(On===nt.ParameterStructures.byName)throw new Error(`Received ${Cn} parameters for 'by Name' notification parameter structure.`);$e=pe.slice(Sn,At).map(zt=>Jr(zt));break}}else{let Kt=pe;Te=Z.method,$e=Jl(Z,Kt)}let tn={jsonrpc:l,method:Te,params:$e};return un(tn),e.write(tn).catch(Kt=>{throw i.error("Sending notification failed."),Kt})},onNotification:(Z,pe)=>{mr();let Te;return rr.func(Z)?d=Z:pe&&(rr.string(Z)?(Te=Z,f.set(Z,{type:void 0,handler:pe})):(Te=Z.method,f.set(Z.method,{type:Z,handler:pe}))),{dispose:()=>{Te!==void 0?f.delete(Te):d=void 0}}},onProgress:(Z,pe,Te)=>{if(m.has(pe))throw new Error(`Progress handler for token ${pe} already registered`);return m.set(pe,Te),{dispose:()=>{m.delete(pe)}}},sendProgress:(Z,pe,Te)=>$s.sendNotification(Eb.type,{token:pe,value:Te}),onUnhandledProgress:M.event,sendRequest:(Z,...pe)=>{mr(),ou();let Te,$e,tn;if(rr.string(Z)){Te=Z;let At=pe[0],Cn=pe[pe.length-1],zt=0,$n=nt.ParameterStructures.auto;nt.ParameterStructures.is(At)&&(zt=1,$n=At);let Er=pe.length;MM.CancellationToken.is(Cn)&&(Er=Er-1,tn=Cn);let Ui=Er-zt;switch(Ui){case 0:$e=void 0;break;case 1:$e=qs($n,pe[zt]);break;default:if($n===nt.ParameterStructures.byName)throw new Error(`Received ${Ui} parameters for 'by Name' request parameter structure.`);$e=pe.slice(zt,Er).map(Wf=>Jr(Wf));break}}else{let At=pe;Te=Z.method,$e=Jl(Z,At);let Cn=Z.numberOfParams;tn=MM.CancellationToken.is(At[Cn])?At[Cn]:void 0}let Kt=s++,Sn;tn&&(Sn=tn.onCancellationRequested(()=>{let At=D.sender.sendCancellation($s,Kt);return At===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${Kt}`),Promise.resolve()):At.catch(()=>{i.log(`Sending cancellation messages for id ${Kt} failed`)})}));let On={jsonrpc:l,id:Kt,method:Te,params:$e};return it(On),typeof D.sender.enableCancellation=="function"&&D.sender.enableCancellation(On),new Promise(async(At,Cn)=>{let zt=Ui=>{At(Ui),D.sender.cleanup(Kt),Sn?.dispose()},$n=Ui=>{Cn(Ui),D.sender.cleanup(Kt),Sn?.dispose()},Er={method:Te,timerStart:Date.now(),resolve:zt,reject:$n};try{await e.write(On),w.set(Kt,Er)}catch(Ui){throw i.error("Sending request failed."),Er.reject(new nt.ResponseError(nt.ErrorCodes.MessageWriteError,Ui.message?Ui.message:"Unknown reason")),Ui}})},onRequest:(Z,pe)=>{mr();let Te=null;return IM.is(Z)?(Te=void 0,c=Z):rr.string(Z)?(Te=null,pe!==void 0&&(Te=Z,u.set(Z,{handler:pe,type:void 0}))):pe!==void 0&&(Te=Z.method,u.set(Z.method,{type:Z,handler:pe})),{dispose:()=>{Te!==null&&(Te!==void 0?u.delete(Te):c=void 0)}}},hasPendingResponse:()=>w.size>0,trace:async(Z,pe,Te)=>{let $e=!1,tn=Ks.Text;Te!==void 0&&(rr.boolean(Te)?$e=Te:($e=Te.sendNotification||!1,tn=Te.traceFormat||Ks.Text)),v=Z,T=tn,v===hn.Off?A=void 0:A=pe,$e&&!z()&&!K()&&await $s.sendNotification(PM.type,{value:hn.toString(Z)})},onError:k.event,onClose:y.event,onUnhandledNotification:C.event,onDispose:E.event,end:()=>{e.end()},dispose:()=>{if(K())return;R=ma.Disposed,E.fire(void 0);let Z=new nt.ResponseError(nt.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let pe of w.values())pe.reject(Z);w=new Map,S=new Map,_=new Set,g=new S7.LinkedMap,rr.func(e.dispose)&&e.dispose(),rr.func(t.dispose)&&t.dispose()},listen:()=>{mr(),Wi(),R=ma.Listening,t.listen(Ye)},inspect:()=>{(0,_7.default)().console.log("inspect")}};return $s.onNotification(k1.type,Z=>{if(v===hn.Off||!A)return;let pe=v===hn.Verbose||v===hn.Compact;A.log(Z.message,pe?Z.verbose:void 0)}),$s.onNotification(Eb.type,Z=>{let pe=m.get(Z.token);pe?pe(Z.value):M.fire(Z)}),$s}pt.createMessageConnection=Axe});var D1=I(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.ProgressType=fe.ProgressToken=fe.createMessageConnection=fe.NullLogger=fe.ConnectionOptions=fe.ConnectionStrategy=fe.AbstractMessageBuffer=fe.WriteableStreamMessageWriter=fe.AbstractMessageWriter=fe.MessageWriter=fe.ReadableStreamMessageReader=fe.AbstractMessageReader=fe.MessageReader=fe.SharedArrayReceiverStrategy=fe.SharedArraySenderStrategy=fe.CancellationToken=fe.CancellationTokenSource=fe.Emitter=fe.Event=fe.Disposable=fe.LRUCache=fe.Touch=fe.LinkedMap=fe.ParameterStructures=fe.NotificationType9=fe.NotificationType8=fe.NotificationType7=fe.NotificationType6=fe.NotificationType5=fe.NotificationType4=fe.NotificationType3=fe.NotificationType2=fe.NotificationType1=fe.NotificationType0=fe.NotificationType=fe.ErrorCodes=fe.ResponseError=fe.RequestType9=fe.RequestType8=fe.RequestType7=fe.RequestType6=fe.RequestType5=fe.RequestType4=fe.RequestType3=fe.RequestType2=fe.RequestType1=fe.RequestType0=fe.RequestType=fe.Message=fe.RAL=void 0;fe.MessageStrategy=fe.CancellationStrategy=fe.CancellationSenderStrategy=fe.CancellationReceiverStrategy=fe.ConnectionError=fe.ConnectionErrors=fe.LogTraceNotification=fe.SetTraceNotification=fe.TraceFormat=fe.TraceValues=fe.Trace=void 0;var Ln=lM();Object.defineProperty(fe,"Message",{enumerable:!0,get:function(){return Ln.Message}});Object.defineProperty(fe,"RequestType",{enumerable:!0,get:function(){return Ln.RequestType}});Object.defineProperty(fe,"RequestType0",{enumerable:!0,get:function(){return Ln.RequestType0}});Object.defineProperty(fe,"RequestType1",{enumerable:!0,get:function(){return Ln.RequestType1}});Object.defineProperty(fe,"RequestType2",{enumerable:!0,get:function(){return Ln.RequestType2}});Object.defineProperty(fe,"RequestType3",{enumerable:!0,get:function(){return Ln.RequestType3}});Object.defineProperty(fe,"RequestType4",{enumerable:!0,get:function(){return Ln.RequestType4}});Object.defineProperty(fe,"RequestType5",{enumerable:!0,get:function(){return Ln.RequestType5}});Object.defineProperty(fe,"RequestType6",{enumerable:!0,get:function(){return Ln.RequestType6}});Object.defineProperty(fe,"RequestType7",{enumerable:!0,get:function(){return Ln.RequestType7}});Object.defineProperty(fe,"RequestType8",{enumerable:!0,get:function(){return Ln.RequestType8}});Object.defineProperty(fe,"RequestType9",{enumerable:!0,get:function(){return Ln.RequestType9}});Object.defineProperty(fe,"ResponseError",{enumerable:!0,get:function(){return Ln.ResponseError}});Object.defineProperty(fe,"ErrorCodes",{enumerable:!0,get:function(){return Ln.ErrorCodes}});Object.defineProperty(fe,"NotificationType",{enumerable:!0,get:function(){return Ln.NotificationType}});Object.defineProperty(fe,"NotificationType0",{enumerable:!0,get:function(){return Ln.NotificationType0}});Object.defineProperty(fe,"NotificationType1",{enumerable:!0,get:function(){return Ln.NotificationType1}});Object.defineProperty(fe,"NotificationType2",{enumerable:!0,get:function(){return Ln.NotificationType2}});Object.defineProperty(fe,"NotificationType3",{enumerable:!0,get:function(){return Ln.NotificationType3}});Object.defineProperty(fe,"NotificationType4",{enumerable:!0,get:function(){return Ln.NotificationType4}});Object.defineProperty(fe,"NotificationType5",{enumerable:!0,get:function(){return Ln.NotificationType5}});Object.defineProperty(fe,"NotificationType6",{enumerable:!0,get:function(){return Ln.NotificationType6}});Object.defineProperty(fe,"NotificationType7",{enumerable:!0,get:function(){return Ln.NotificationType7}});Object.defineProperty(fe,"NotificationType8",{enumerable:!0,get:function(){return Ln.NotificationType8}});Object.defineProperty(fe,"NotificationType9",{enumerable:!0,get:function(){return Ln.NotificationType9}});Object.defineProperty(fe,"ParameterStructures",{enumerable:!0,get:function(){return Ln.ParameterStructures}});var LM=uM();Object.defineProperty(fe,"LinkedMap",{enumerable:!0,get:function(){return LM.LinkedMap}});Object.defineProperty(fe,"LRUCache",{enumerable:!0,get:function(){return LM.LRUCache}});Object.defineProperty(fe,"Touch",{enumerable:!0,get:function(){return LM.Touch}});var Fxe=u7();Object.defineProperty(fe,"Disposable",{enumerable:!0,get:function(){return Fxe.Disposable}});var A7=op();Object.defineProperty(fe,"Event",{enumerable:!0,get:function(){return A7.Event}});Object.defineProperty(fe,"Emitter",{enumerable:!0,get:function(){return A7.Emitter}});var F7=w1();Object.defineProperty(fe,"CancellationTokenSource",{enumerable:!0,get:function(){return F7.CancellationTokenSource}});Object.defineProperty(fe,"CancellationToken",{enumerable:!0,get:function(){return F7.CancellationToken}});var E7=h7();Object.defineProperty(fe,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return E7.SharedArraySenderStrategy}});Object.defineProperty(fe,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return E7.SharedArrayReceiverStrategy}});var qM=p7();Object.defineProperty(fe,"MessageReader",{enumerable:!0,get:function(){return qM.MessageReader}});Object.defineProperty(fe,"AbstractMessageReader",{enumerable:!0,get:function(){return qM.AbstractMessageReader}});Object.defineProperty(fe,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return qM.ReadableStreamMessageReader}});var $M=v7();Object.defineProperty(fe,"MessageWriter",{enumerable:!0,get:function(){return $M.MessageWriter}});Object.defineProperty(fe,"AbstractMessageWriter",{enumerable:!0,get:function(){return $M.AbstractMessageWriter}});Object.defineProperty(fe,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return $M.WriteableStreamMessageWriter}});var Exe=w7();Object.defineProperty(fe,"AbstractMessageBuffer",{enumerable:!0,get:function(){return Exe.AbstractMessageBuffer}});var si=k7();Object.defineProperty(fe,"ConnectionStrategy",{enumerable:!0,get:function(){return si.ConnectionStrategy}});Object.defineProperty(fe,"ConnectionOptions",{enumerable:!0,get:function(){return si.ConnectionOptions}});Object.defineProperty(fe,"NullLogger",{enumerable:!0,get:function(){return si.NullLogger}});Object.defineProperty(fe,"createMessageConnection",{enumerable:!0,get:function(){return si.createMessageConnection}});Object.defineProperty(fe,"ProgressToken",{enumerable:!0,get:function(){return si.ProgressToken}});Object.defineProperty(fe,"ProgressType",{enumerable:!0,get:function(){return si.ProgressType}});Object.defineProperty(fe,"Trace",{enumerable:!0,get:function(){return si.Trace}});Object.defineProperty(fe,"TraceValues",{enumerable:!0,get:function(){return si.TraceValues}});Object.defineProperty(fe,"TraceFormat",{enumerable:!0,get:function(){return si.TraceFormat}});Object.defineProperty(fe,"SetTraceNotification",{enumerable:!0,get:function(){return si.SetTraceNotification}});Object.defineProperty(fe,"LogTraceNotification",{enumerable:!0,get:function(){return si.LogTraceNotification}});Object.defineProperty(fe,"ConnectionErrors",{enumerable:!0,get:function(){return si.ConnectionErrors}});Object.defineProperty(fe,"ConnectionError",{enumerable:!0,get:function(){return si.ConnectionError}});Object.defineProperty(fe,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return si.CancellationReceiverStrategy}});Object.defineProperty(fe,"CancellationSenderStrategy",{enumerable:!0,get:function(){return si.CancellationSenderStrategy}});Object.defineProperty(fe,"CancellationStrategy",{enumerable:!0,get:function(){return si.CancellationStrategy}});Object.defineProperty(fe,"MessageStrategy",{enumerable:!0,get:function(){return si.MessageStrategy}});var Txe=vu();fe.RAL=Txe.default});var D7=I(UM=>{"use strict";Object.defineProperty(UM,"__esModule",{value:!0});var T7=require("util"),sc=D1(),up=class extends sc.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return up.emptyBuffer}fromString(e,n){return Buffer.from(e,n)}toString(e,n){return e instanceof Buffer?e.toString(n):new T7.TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,n):Buffer.from(e,0,n)}allocNative(e){return Buffer.allocUnsafe(e)}};up.emptyBuffer=Buffer.allocUnsafe(0);var zM=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),sc.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),sc.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),sc.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),sc.Disposable.create(()=>this.stream.off("data",e))}},jM=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),sc.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),sc.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),sc.Disposable.create(()=>this.stream.off("end",e))}write(e,n){return new Promise((r,i)=>{let s=o=>{o==null?r():i(o)};typeof e=="string"?this.stream.write(e,n,s):this.stream.write(e,s)})}end(){this.stream.end()}},M7=Object.freeze({messageBuffer:Object.freeze({create:t=>new up(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(t,void 0,0),e.charset))}catch(n){return Promise.reject(n)}}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{try{return t instanceof Buffer?Promise.resolve(JSON.parse(t.toString(e.charset))):Promise.resolve(JSON.parse(new T7.TextDecoder(e.charset).decode(t)))}catch(n){return Promise.reject(n)}}})}),stream:Object.freeze({asReadableStream:t=>new zM(t),asWritableStream:t=>new jM(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){let r=setTimeout(t,e,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(t,...e){let n=setImmediate(t,...e);return{dispose:()=>clearImmediate(n)}},setInterval(t,e,...n){let r=setInterval(t,e,...n);return{dispose:()=>clearInterval(r)}}})});function WM(){return M7}(function(t){function e(){sc.RAL.install(M7)}t.install=e})(WM||(WM={}));UM.default=WM});var wh=I(Wt=>{"use strict";var Mxe=Wt&&Wt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Dxe=Wt&&Wt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Mxe(e,t,n)};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.createMessageConnection=Wt.createServerSocketTransport=Wt.createClientSocketTransport=Wt.createServerPipeTransport=Wt.createClientPipeTransport=Wt.generateRandomPipeName=Wt.StreamMessageWriter=Wt.StreamMessageReader=Wt.SocketMessageWriter=Wt.SocketMessageReader=Wt.PortMessageWriter=Wt.PortMessageReader=Wt.IPCMessageWriter=Wt.IPCMessageReader=void 0;var dp=D7();dp.default.install();var R7=require("path"),Rxe=require("os"),Ixe=require("crypto"),P1=require("net"),Gs=D1();Dxe(D1(),Wt);var BM=class extends Gs.AbstractMessageReader{constructor(e){super(),this.process=e;let n=this.process;n.on("error",r=>this.fireError(r)),n.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),Gs.Disposable.create(()=>this.process.off("message",e))}};Wt.IPCMessageReader=BM;var HM=class extends Gs.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let n=this.process;n.on("error",r=>this.fireError(r)),n.on("close",()=>this.fireClose)}write(e){try{return typeof this.process.send=="function"&&this.process.send(e,void 0,void 0,n=>{n?(this.errorCount++,this.handleError(n,e)):this.errorCount=0}),Promise.resolve()}catch(n){return this.handleError(n,e),Promise.reject(n)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){}};Wt.IPCMessageWriter=HM;var VM=class extends Gs.AbstractMessageReader{constructor(e){super(),this.onData=new Gs.Emitter,e.on("close",()=>this.fireClose),e.on("error",n=>this.fireError(n)),e.on("message",n=>{this.onData.fire(n)})}listen(e){return this.onData.event(e)}};Wt.PortMessageReader=VM;var KM=class extends Gs.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.on("close",()=>this.fireClose()),e.on("error",n=>this.fireError(n))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(n){return this.handleError(n,e),Promise.reject(n)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){}};Wt.PortMessageWriter=KM;var yh=class extends Gs.ReadableStreamMessageReader{constructor(e,n="utf-8"){super((0,dp.default)().stream.asReadableStream(e),n)}};Wt.SocketMessageReader=yh;var vh=class extends Gs.WriteableStreamMessageWriter{constructor(e,n){super((0,dp.default)().stream.asWritableStream(e),n),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};Wt.SocketMessageWriter=vh;var R1=class extends Gs.ReadableStreamMessageReader{constructor(e,n){super((0,dp.default)().stream.asReadableStream(e),n)}};Wt.StreamMessageReader=R1;var I1=class extends Gs.WriteableStreamMessageWriter{constructor(e,n){super((0,dp.default)().stream.asWritableStream(e),n)}};Wt.StreamMessageWriter=I1;var I7=process.env.XDG_RUNTIME_DIR,Pxe=new Map([["linux",107],["darwin",103]]);function Oxe(){let t=(0,Ixe.randomBytes)(21).toString("hex");if(process.platform==="win32")return`\\\\.\\pipe\\vscode-jsonrpc-${t}-sock`;let e;I7?e=R7.join(I7,`vscode-ipc-${t}.sock`):e=R7.join(Rxe.tmpdir(),`vscode-${t}.sock`);let n=Pxe.get(process.platform);return n!==void 0&&e.length>n&&(0,dp.default)().console.warn(`WARNING: IPC handle "${e}" is longer than ${n} characters.`),e}Wt.generateRandomPipeName=Oxe;function Nxe(t,e="utf-8"){let n,r=new Promise((i,s)=>{n=i});return new Promise((i,s)=>{let o=(0,P1.createServer)(a=>{o.close(),n([new yh(a,e),new vh(a,e)])});o.on("error",s),o.listen(t,()=>{o.removeListener("error",s),i({onConnected:()=>r})})})}Wt.createClientPipeTransport=Nxe;function Lxe(t,e="utf-8"){let n=(0,P1.createConnection)(t);return[new yh(n,e),new vh(n,e)]}Wt.createServerPipeTransport=Lxe;function qxe(t,e="utf-8"){let n,r=new Promise((i,s)=>{n=i});return new Promise((i,s)=>{let o=(0,P1.createServer)(a=>{o.close(),n([new yh(a,e),new vh(a,e)])});o.on("error",s),o.listen(t,"127.0.0.1",()=>{o.removeListener("error",s),i({onConnected:()=>r})})})}Wt.createClientSocketTransport=qxe;function $xe(t,e="utf-8"){let n=(0,P1.createConnection)(t,"127.0.0.1");return[new yh(n,e),new vh(n,e)]}Wt.createServerSocketTransport=$xe;function zxe(t){let e=t;return e.read!==void 0&&e.addListener!==void 0}function jxe(t){let e=t;return e.write!==void 0&&e.addListener!==void 0}function Wxe(t,e,n,r){n||(n=Gs.NullLogger);let i=zxe(t)?new R1(t):t,s=jxe(e)?new I1(e):e;return Gs.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Gs.createMessageConnection)(i,s,n,r)}Wt.createMessageConnection=Wxe});var GM=I((spt,P7)=>{"use strict";P7.exports=wh()});var yr=I((O7,O1)=>{(function(t){if(typeof O1=="object"&&typeof O1.exports=="object"){var e=t(require,O7);e!==void 0&&(O1.exports=e)}else typeof define=="function"&&define.amd&&define(["require","exports"],t)})(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDocument=e.EOL=e.WorkspaceFolder=e.InlineCompletionContext=e.SelectedCompletionInfo=e.InlineCompletionTriggerKind=e.InlineCompletionList=e.InlineCompletionItem=e.StringValue=e.InlayHint=e.InlayHintLabelPart=e.InlayHintKind=e.InlineValueContext=e.InlineValueEvaluatableExpression=e.InlineValueVariableLookup=e.InlineValueText=e.SemanticTokens=e.SemanticTokenModifiers=e.SemanticTokenTypes=e.SelectionRange=e.DocumentLink=e.FormattingOptions=e.CodeLens=e.CodeAction=e.CodeActionContext=e.CodeActionTriggerKind=e.CodeActionKind=e.DocumentSymbol=e.WorkspaceSymbol=e.SymbolInformation=e.SymbolTag=e.SymbolKind=e.DocumentHighlight=e.DocumentHighlightKind=e.SignatureInformation=e.ParameterInformation=e.Hover=e.MarkedString=e.CompletionList=e.CompletionItem=e.CompletionItemLabelDetails=e.InsertTextMode=e.InsertReplaceEdit=e.CompletionItemTag=e.InsertTextFormat=e.CompletionItemKind=e.MarkupContent=e.MarkupKind=e.TextDocumentItem=e.OptionalVersionedTextDocumentIdentifier=e.VersionedTextDocumentIdentifier=e.TextDocumentIdentifier=e.WorkspaceChange=e.WorkspaceEdit=e.DeleteFile=e.RenameFile=e.CreateFile=e.TextDocumentEdit=e.AnnotatedTextEdit=e.ChangeAnnotationIdentifier=e.ChangeAnnotation=e.TextEdit=e.Command=e.Diagnostic=e.CodeDescription=e.DiagnosticTag=e.DiagnosticSeverity=e.DiagnosticRelatedInformation=e.FoldingRange=e.FoldingRangeKind=e.ColorPresentation=e.ColorInformation=e.Color=e.LocationLink=e.Location=e.Range=e.Position=e.uinteger=e.integer=e.URI=e.DocumentUri=void 0;var n;(function(B){function te(re){return typeof re=="string"}B.is=te})(n||(e.DocumentUri=n={}));var r;(function(B){function te(re){return typeof re=="string"}B.is=te})(r||(e.URI=r={}));var i;(function(B){B.MIN_VALUE=-2147483648,B.MAX_VALUE=2147483647;function te(re){return typeof re=="number"&&B.MIN_VALUE<=re&&re<=B.MAX_VALUE}B.is=te})(i||(e.integer=i={}));var s;(function(B){B.MIN_VALUE=0,B.MAX_VALUE=2147483647;function te(re){return typeof re=="number"&&B.MIN_VALUE<=re&&re<=B.MAX_VALUE}B.is=te})(s||(e.uinteger=s={}));var o;(function(B){function te(G,U){return G===Number.MAX_VALUE&&(G=s.MAX_VALUE),U===Number.MAX_VALUE&&(U=s.MAX_VALUE),{line:G,character:U}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&ae.uinteger(U.line)&&ae.uinteger(U.character)}B.is=re})(o||(e.Position=o={}));var a;(function(B){function te(G,U,le,be){if(ae.uinteger(G)&&ae.uinteger(U)&&ae.uinteger(le)&&ae.uinteger(be))return{start:o.create(G,U),end:o.create(le,be)};if(o.is(G)&&o.is(U))return{start:G,end:U};throw new Error("Range#create called with invalid arguments[".concat(G,", ").concat(U,", ").concat(le,", ").concat(be,"]"))}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&o.is(U.start)&&o.is(U.end)}B.is=re})(a||(e.Range=a={}));var l;(function(B){function te(G,U){return{uri:G,range:U}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&a.is(U.range)&&(ae.string(U.uri)||ae.undefined(U.uri))}B.is=re})(l||(e.Location=l={}));var c;(function(B){function te(G,U,le,be){return{targetUri:G,targetRange:U,targetSelectionRange:le,originSelectionRange:be}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&a.is(U.targetRange)&&ae.string(U.targetUri)&&a.is(U.targetSelectionRange)&&(a.is(U.originSelectionRange)||ae.undefined(U.originSelectionRange))}B.is=re})(c||(e.LocationLink=c={}));var u;(function(B){function te(G,U,le,be){return{red:G,green:U,blue:le,alpha:be}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&ae.numberRange(U.red,0,1)&&ae.numberRange(U.green,0,1)&&ae.numberRange(U.blue,0,1)&&ae.numberRange(U.alpha,0,1)}B.is=re})(u||(e.Color=u={}));var d;(function(B){function te(G,U){return{range:G,color:U}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&a.is(U.range)&&u.is(U.color)}B.is=re})(d||(e.ColorInformation=d={}));var f;(function(B){function te(G,U,le){return{label:G,textEdit:U,additionalTextEdits:le}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&ae.string(U.label)&&(ae.undefined(U.textEdit)||A.is(U))&&(ae.undefined(U.additionalTextEdits)||ae.typedArray(U.additionalTextEdits,A.is))}B.is=re})(f||(e.ColorPresentation=f={}));var m;(function(B){B.Comment="comment",B.Imports="imports",B.Region="region"})(m||(e.FoldingRangeKind=m={}));var b;(function(B){function te(G,U,le,be,ct,Jn){var Fn={startLine:G,endLine:U};return ae.defined(le)&&(Fn.startCharacter=le),ae.defined(be)&&(Fn.endCharacter=be),ae.defined(ct)&&(Fn.kind=ct),ae.defined(Jn)&&(Fn.collapsedText=Jn),Fn}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&ae.uinteger(U.startLine)&&ae.uinteger(U.startLine)&&(ae.undefined(U.startCharacter)||ae.uinteger(U.startCharacter))&&(ae.undefined(U.endCharacter)||ae.uinteger(U.endCharacter))&&(ae.undefined(U.kind)||ae.string(U.kind))}B.is=re})(b||(e.FoldingRange=b={}));var g;(function(B){function te(G,U){return{location:G,message:U}}B.create=te;function re(G){var U=G;return ae.defined(U)&&l.is(U.location)&&ae.string(U.message)}B.is=re})(g||(e.DiagnosticRelatedInformation=g={}));var w;(function(B){B.Error=1,B.Warning=2,B.Information=3,B.Hint=4})(w||(e.DiagnosticSeverity=w={}));var _;(function(B){B.Unnecessary=1,B.Deprecated=2})(_||(e.DiagnosticTag=_={}));var S;(function(B){function te(re){var G=re;return ae.objectLiteral(G)&&ae.string(G.href)}B.is=te})(S||(e.CodeDescription=S={}));var v;(function(B){function te(G,U,le,be,ct,Jn){var Fn={range:G,message:U};return ae.defined(le)&&(Fn.severity=le),ae.defined(be)&&(Fn.code=be),ae.defined(ct)&&(Fn.source=ct),ae.defined(Jn)&&(Fn.relatedInformation=Jn),Fn}B.create=te;function re(G){var U,le=G;return ae.defined(le)&&a.is(le.range)&&ae.string(le.message)&&(ae.number(le.severity)||ae.undefined(le.severity))&&(ae.integer(le.code)||ae.string(le.code)||ae.undefined(le.code))&&(ae.undefined(le.codeDescription)||ae.string((U=le.codeDescription)===null||U===void 0?void 0:U.href))&&(ae.string(le.source)||ae.undefined(le.source))&&(ae.undefined(le.relatedInformation)||ae.typedArray(le.relatedInformation,g.is))}B.is=re})(v||(e.Diagnostic=v={}));var T;(function(B){function te(G,U){for(var le=[],be=2;be<arguments.length;be++)le[be-2]=arguments[be];var ct={title:G,command:U};return ae.defined(le)&&le.length>0&&(ct.arguments=le),ct}B.create=te;function re(G){var U=G;return ae.defined(U)&&ae.string(U.title)&&ae.string(U.command)}B.is=re})(T||(e.Command=T={}));var A;(function(B){function te(le,be){return{range:le,newText:be}}B.replace=te;function re(le,be){return{range:{start:le,end:le},newText:be}}B.insert=re;function G(le){return{range:le,newText:""}}B.del=G;function U(le){var be=le;return ae.objectLiteral(be)&&ae.string(be.newText)&&a.is(be.range)}B.is=U})(A||(e.TextEdit=A={}));var R;(function(B){function te(G,U,le){var be={label:G};return U!==void 0&&(be.needsConfirmation=U),le!==void 0&&(be.description=le),be}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&ae.string(U.label)&&(ae.boolean(U.needsConfirmation)||U.needsConfirmation===void 0)&&(ae.string(U.description)||U.description===void 0)}B.is=re})(R||(e.ChangeAnnotation=R={}));var k;(function(B){function te(re){var G=re;return ae.string(G)}B.is=te})(k||(e.ChangeAnnotationIdentifier=k={}));var y;(function(B){function te(le,be,ct){return{range:le,newText:be,annotationId:ct}}B.replace=te;function re(le,be,ct){return{range:{start:le,end:le},newText:be,annotationId:ct}}B.insert=re;function G(le,be){return{range:le,newText:"",annotationId:be}}B.del=G;function U(le){var be=le;return A.is(be)&&(R.is(be.annotationId)||k.is(be.annotationId))}B.is=U})(y||(e.AnnotatedTextEdit=y={}));var C;(function(B){function te(G,U){return{textDocument:G,edits:U}}B.create=te;function re(G){var U=G;return ae.defined(U)&&z.is(U.textDocument)&&Array.isArray(U.edits)}B.is=re})(C||(e.TextDocumentEdit=C={}));var M;(function(B){function te(G,U,le){var be={kind:"create",uri:G};return U!==void 0&&(U.overwrite!==void 0||U.ignoreIfExists!==void 0)&&(be.options=U),le!==void 0&&(be.annotationId=le),be}B.create=te;function re(G){var U=G;return U&&U.kind==="create"&&ae.string(U.uri)&&(U.options===void 0||(U.options.overwrite===void 0||ae.boolean(U.options.overwrite))&&(U.options.ignoreIfExists===void 0||ae.boolean(U.options.ignoreIfExists)))&&(U.annotationId===void 0||k.is(U.annotationId))}B.is=re})(M||(e.CreateFile=M={}));var E;(function(B){function te(G,U,le,be){var ct={kind:"rename",oldUri:G,newUri:U};return le!==void 0&&(le.overwrite!==void 0||le.ignoreIfExists!==void 0)&&(ct.options=le),be!==void 0&&(ct.annotationId=be),ct}B.create=te;function re(G){var U=G;return U&&U.kind==="rename"&&ae.string(U.oldUri)&&ae.string(U.newUri)&&(U.options===void 0||(U.options.overwrite===void 0||ae.boolean(U.options.overwrite))&&(U.options.ignoreIfExists===void 0||ae.boolean(U.options.ignoreIfExists)))&&(U.annotationId===void 0||k.is(U.annotationId))}B.is=re})(E||(e.RenameFile=E={}));var D;(function(B){function te(G,U,le){var be={kind:"delete",uri:G};return U!==void 0&&(U.recursive!==void 0||U.ignoreIfNotExists!==void 0)&&(be.options=U),le!==void 0&&(be.annotationId=le),be}B.create=te;function re(G){var U=G;return U&&U.kind==="delete"&&ae.string(U.uri)&&(U.options===void 0||(U.options.recursive===void 0||ae.boolean(U.options.recursive))&&(U.options.ignoreIfNotExists===void 0||ae.boolean(U.options.ignoreIfNotExists)))&&(U.annotationId===void 0||k.is(U.annotationId))}B.is=re})(D||(e.DeleteFile=D={}));var N;(function(B){function te(re){var G=re;return G&&(G.changes!==void 0||G.documentChanges!==void 0)&&(G.documentChanges===void 0||G.documentChanges.every(function(U){return ae.string(U.kind)?M.is(U)||E.is(U)||D.is(U):C.is(U)}))}B.is=te})(N||(e.WorkspaceEdit=N={}));var $=function(){function B(te,re){this.edits=te,this.changeAnnotations=re}return B.prototype.insert=function(te,re,G){var U,le;if(G===void 0?U=A.insert(te,re):k.is(G)?(le=G,U=y.insert(te,re,G)):(this.assertChangeAnnotations(this.changeAnnotations),le=this.changeAnnotations.manage(G),U=y.insert(te,re,le)),this.edits.push(U),le!==void 0)return le},B.prototype.replace=function(te,re,G){var U,le;if(G===void 0?U=A.replace(te,re):k.is(G)?(le=G,U=y.replace(te,re,G)):(this.assertChangeAnnotations(this.changeAnnotations),le=this.changeAnnotations.manage(G),U=y.replace(te,re,le)),this.edits.push(U),le!==void 0)return le},B.prototype.delete=function(te,re){var G,U;if(re===void 0?G=A.del(te):k.is(re)?(U=re,G=y.del(te,re)):(this.assertChangeAnnotations(this.changeAnnotations),U=this.changeAnnotations.manage(re),G=y.del(te,U)),this.edits.push(G),U!==void 0)return U},B.prototype.add=function(te){this.edits.push(te)},B.prototype.all=function(){return this.edits},B.prototype.clear=function(){this.edits.splice(0,this.edits.length)},B.prototype.assertChangeAnnotations=function(te){if(te===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},B}(),F=function(){function B(te){this._annotations=te===void 0?Object.create(null):te,this._counter=0,this._size=0}return B.prototype.all=function(){return this._annotations},Object.defineProperty(B.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),B.prototype.manage=function(te,re){var G;if(k.is(te)?G=te:(G=this.nextId(),re=te),this._annotations[G]!==void 0)throw new Error("Id ".concat(G," is already in use."));if(re===void 0)throw new Error("No annotation provided for id ".concat(G));return this._annotations[G]=re,this._size++,G},B.prototype.nextId=function(){return this._counter++,this._counter.toString()},B}(),P=function(){function B(te){var re=this;this._textEditChanges=Object.create(null),te!==void 0?(this._workspaceEdit=te,te.documentChanges?(this._changeAnnotations=new F(te.changeAnnotations),te.changeAnnotations=this._changeAnnotations.all(),te.documentChanges.forEach(function(G){if(C.is(G)){var U=new $(G.edits,re._changeAnnotations);re._textEditChanges[G.textDocument.uri]=U}})):te.changes&&Object.keys(te.changes).forEach(function(G){var U=new $(te.changes[G]);re._textEditChanges[G]=U})):this._workspaceEdit={}}return Object.defineProperty(B.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),B.prototype.getTextEditChange=function(te){if(z.is(te)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var re={uri:te.uri,version:te.version},G=this._textEditChanges[re.uri];if(!G){var U=[],le={textDocument:re,edits:U};this._workspaceEdit.documentChanges.push(le),G=new $(U,this._changeAnnotations),this._textEditChanges[re.uri]=G}return G}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var G=this._textEditChanges[te];if(!G){var U=[];this._workspaceEdit.changes[te]=U,G=new $(U),this._textEditChanges[te]=G}return G}},B.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new F,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},B.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},B.prototype.createFile=function(te,re,G){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var U;R.is(re)||k.is(re)?U=re:G=re;var le,be;if(U===void 0?le=M.create(te,G):(be=k.is(U)?U:this._changeAnnotations.manage(U),le=M.create(te,G,be)),this._workspaceEdit.documentChanges.push(le),be!==void 0)return be},B.prototype.renameFile=function(te,re,G,U){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var le;R.is(G)||k.is(G)?le=G:U=G;var be,ct;if(le===void 0?be=E.create(te,re,U):(ct=k.is(le)?le:this._changeAnnotations.manage(le),be=E.create(te,re,U,ct)),this._workspaceEdit.documentChanges.push(be),ct!==void 0)return ct},B.prototype.deleteFile=function(te,re,G){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var U;R.is(re)||k.is(re)?U=re:G=re;var le,be;if(U===void 0?le=D.create(te,G):(be=k.is(U)?U:this._changeAnnotations.manage(U),le=D.create(te,G,be)),this._workspaceEdit.documentChanges.push(le),be!==void 0)return be},B}();e.WorkspaceChange=P;var L;(function(B){function te(G){return{uri:G}}B.create=te;function re(G){var U=G;return ae.defined(U)&&ae.string(U.uri)}B.is=re})(L||(e.TextDocumentIdentifier=L={}));var j;(function(B){function te(G,U){return{uri:G,version:U}}B.create=te;function re(G){var U=G;return ae.defined(U)&&ae.string(U.uri)&&ae.integer(U.version)}B.is=re})(j||(e.VersionedTextDocumentIdentifier=j={}));var z;(function(B){function te(G,U){return{uri:G,version:U}}B.create=te;function re(G){var U=G;return ae.defined(U)&&ae.string(U.uri)&&(U.version===null||ae.integer(U.version))}B.is=re})(z||(e.OptionalVersionedTextDocumentIdentifier=z={}));var K;(function(B){function te(G,U,le,be){return{uri:G,languageId:U,version:le,text:be}}B.create=te;function re(G){var U=G;return ae.defined(U)&&ae.string(U.uri)&&ae.string(U.languageId)&&ae.integer(U.version)&&ae.string(U.text)}B.is=re})(K||(e.TextDocumentItem=K={}));var X;(function(B){B.PlainText="plaintext",B.Markdown="markdown";function te(re){var G=re;return G===B.PlainText||G===B.Markdown}B.is=te})(X||(e.MarkupKind=X={}));var ee;(function(B){function te(re){var G=re;return ae.objectLiteral(re)&&X.is(G.kind)&&ae.string(G.value)}B.is=te})(ee||(e.MarkupContent=ee={}));var de;(function(B){B.Text=1,B.Method=2,B.Function=3,B.Constructor=4,B.Field=5,B.Variable=6,B.Class=7,B.Interface=8,B.Module=9,B.Property=10,B.Unit=11,B.Value=12,B.Enum=13,B.Keyword=14,B.Snippet=15,B.Color=16,B.File=17,B.Reference=18,B.Folder=19,B.EnumMember=20,B.Constant=21,B.Struct=22,B.Event=23,B.Operator=24,B.TypeParameter=25})(de||(e.CompletionItemKind=de={}));var Se;(function(B){B.PlainText=1,B.Snippet=2})(Se||(e.InsertTextFormat=Se={}));var De;(function(B){B.Deprecated=1})(De||(e.CompletionItemTag=De={}));var ke;(function(B){function te(G,U,le){return{newText:G,insert:U,replace:le}}B.create=te;function re(G){var U=G;return U&&ae.string(U.newText)&&a.is(U.insert)&&a.is(U.replace)}B.is=re})(ke||(e.InsertReplaceEdit=ke={}));var Ye;(function(B){B.asIs=1,B.adjustIndentation=2})(Ye||(e.InsertTextMode=Ye={}));var St;(function(B){function te(re){var G=re;return G&&(ae.string(G.detail)||G.detail===void 0)&&(ae.string(G.description)||G.description===void 0)}B.is=te})(St||(e.CompletionItemLabelDetails=St={}));var we;(function(B){function te(re){return{label:re}}B.create=te})(we||(e.CompletionItem=we={}));var Ne;(function(B){function te(re,G){return{items:re||[],isIncomplete:!!G}}B.create=te})(Ne||(e.CompletionList=Ne={}));var me;(function(B){function te(G){return G.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}B.fromPlainText=te;function re(G){var U=G;return ae.string(U)||ae.objectLiteral(U)&&ae.string(U.language)&&ae.string(U.value)}B.is=re})(me||(e.MarkedString=me={}));var Re;(function(B){function te(re){var G=re;return!!G&&ae.objectLiteral(G)&&(ee.is(G.contents)||me.is(G.contents)||ae.typedArray(G.contents,me.is))&&(re.range===void 0||a.is(re.range))}B.is=te})(Re||(e.Hover=Re={}));var it;(function(B){function te(re,G){return G?{label:re,documentation:G}:{label:re}}B.create=te})(it||(e.ParameterInformation=it={}));var un;(function(B){function te(re,G){for(var U=[],le=2;le<arguments.length;le++)U[le-2]=arguments[le];var be={label:re};return ae.defined(G)&&(be.documentation=G),ae.defined(U)?be.parameters=U:be.parameters=[],be}B.create=te})(un||(e.SignatureInformation=un={}));var lt;(function(B){B.Text=1,B.Read=2,B.Write=3})(lt||(e.DocumentHighlightKind=lt={}));var ri;(function(B){function te(re,G){var U={range:re};return ae.number(G)&&(U.kind=G),U}B.create=te})(ri||(e.DocumentHighlight=ri={}));var pr;(function(B){B.File=1,B.Module=2,B.Namespace=3,B.Package=4,B.Class=5,B.Method=6,B.Property=7,B.Field=8,B.Constructor=9,B.Enum=10,B.Interface=11,B.Function=12,B.Variable=13,B.Constant=14,B.String=15,B.Number=16,B.Boolean=17,B.Array=18,B.Object=19,B.Key=20,B.Null=21,B.EnumMember=22,B.Struct=23,B.Event=24,B.Operator=25,B.TypeParameter=26})(pr||(e.SymbolKind=pr={}));var Gr;(function(B){B.Deprecated=1})(Gr||(e.SymbolTag=Gr={}));var Vt;(function(B){function te(re,G,U,le,be){var ct={name:re,kind:G,location:{uri:le,range:U}};return be&&(ct.containerName=be),ct}B.create=te})(Vt||(e.SymbolInformation=Vt={}));var mr;(function(B){function te(re,G,U,le){return le!==void 0?{name:re,kind:G,location:{uri:U,range:le}}:{name:re,kind:G,location:{uri:U}}}B.create=te})(mr||(e.WorkspaceSymbol=mr={}));var Wi;(function(B){function te(G,U,le,be,ct,Jn){var Fn={name:G,detail:U,kind:le,range:be,selectionRange:ct};return Jn!==void 0&&(Fn.children=Jn),Fn}B.create=te;function re(G){var U=G;return U&&ae.string(U.name)&&ae.number(U.kind)&&a.is(U.range)&&a.is(U.selectionRange)&&(U.detail===void 0||ae.string(U.detail))&&(U.deprecated===void 0||ae.boolean(U.deprecated))&&(U.children===void 0||Array.isArray(U.children))&&(U.tags===void 0||Array.isArray(U.tags))}B.is=re})(Wi||(e.DocumentSymbol=Wi={}));var ou;(function(B){B.Empty="",B.QuickFix="quickfix",B.Refactor="refactor",B.RefactorExtract="refactor.extract",B.RefactorInline="refactor.inline",B.RefactorRewrite="refactor.rewrite",B.Source="source",B.SourceOrganizeImports="source.organizeImports",B.SourceFixAll="source.fixAll"})(ou||(e.CodeActionKind=ou={}));var Jr;(function(B){B.Invoked=1,B.Automatic=2})(Jr||(e.CodeActionTriggerKind=Jr={}));var ah;(function(B){function te(G,U,le){var be={diagnostics:G};return U!=null&&(be.only=U),le!=null&&(be.triggerKind=le),be}B.create=te;function re(G){var U=G;return ae.defined(U)&&ae.typedArray(U.diagnostics,v.is)&&(U.only===void 0||ae.typedArray(U.only,ae.string))&&(U.triggerKind===void 0||U.triggerKind===Jr.Invoked||U.triggerKind===Jr.Automatic)}B.is=re})(ah||(e.CodeActionContext=ah={}));var ca;(function(B){function te(G,U,le){var be={title:G},ct=!0;return typeof U=="string"?(ct=!1,be.kind=U):T.is(U)?be.command=U:be.edit=U,ct&&le!==void 0&&(be.kind=le),be}B.create=te;function re(G){var U=G;return U&&ae.string(U.title)&&(U.diagnostics===void 0||ae.typedArray(U.diagnostics,v.is))&&(U.kind===void 0||ae.string(U.kind))&&(U.edit!==void 0||U.command!==void 0)&&(U.command===void 0||T.is(U.command))&&(U.isPreferred===void 0||ae.boolean(U.isPreferred))&&(U.edit===void 0||N.is(U.edit))}B.is=re})(ca||(e.CodeAction=ca={}));var qs;(function(B){function te(G,U){var le={range:G};return ae.defined(U)&&(le.data=U),le}B.create=te;function re(G){var U=G;return ae.defined(U)&&a.is(U.range)&&(ae.undefined(U.command)||T.is(U.command))}B.is=re})(qs||(e.CodeLens=qs={}));var Jl;(function(B){function te(G,U){return{tabSize:G,insertSpaces:U}}B.create=te;function re(G){var U=G;return ae.defined(U)&&ae.uinteger(U.tabSize)&&ae.boolean(U.insertSpaces)}B.is=re})(Jl||(e.FormattingOptions=Jl={}));var $s;(function(B){function te(G,U,le){return{range:G,target:U,data:le}}B.create=te;function re(G){var U=G;return ae.defined(U)&&a.is(U.range)&&(ae.undefined(U.target)||ae.string(U.target))}B.is=re})($s||(e.DocumentLink=$s={}));var Z;(function(B){function te(G,U){return{range:G,parent:U}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&a.is(U.range)&&(U.parent===void 0||B.is(U.parent))}B.is=re})(Z||(e.SelectionRange=Z={}));var pe;(function(B){B.namespace="namespace",B.type="type",B.class="class",B.enum="enum",B.interface="interface",B.struct="struct",B.typeParameter="typeParameter",B.parameter="parameter",B.variable="variable",B.property="property",B.enumMember="enumMember",B.event="event",B.function="function",B.method="method",B.macro="macro",B.keyword="keyword",B.modifier="modifier",B.comment="comment",B.string="string",B.number="number",B.regexp="regexp",B.operator="operator",B.decorator="decorator"})(pe||(e.SemanticTokenTypes=pe={}));var Te;(function(B){B.declaration="declaration",B.definition="definition",B.readonly="readonly",B.static="static",B.deprecated="deprecated",B.abstract="abstract",B.async="async",B.modification="modification",B.documentation="documentation",B.defaultLibrary="defaultLibrary"})(Te||(e.SemanticTokenModifiers=Te={}));var $e;(function(B){function te(re){var G=re;return ae.objectLiteral(G)&&(G.resultId===void 0||typeof G.resultId=="string")&&Array.isArray(G.data)&&(G.data.length===0||typeof G.data[0]=="number")}B.is=te})($e||(e.SemanticTokens=$e={}));var tn;(function(B){function te(G,U){return{range:G,text:U}}B.create=te;function re(G){var U=G;return U!=null&&a.is(U.range)&&ae.string(U.text)}B.is=re})(tn||(e.InlineValueText=tn={}));var Kt;(function(B){function te(G,U,le){return{range:G,variableName:U,caseSensitiveLookup:le}}B.create=te;function re(G){var U=G;return U!=null&&a.is(U.range)&&ae.boolean(U.caseSensitiveLookup)&&(ae.string(U.variableName)||U.variableName===void 0)}B.is=re})(Kt||(e.InlineValueVariableLookup=Kt={}));var Sn;(function(B){function te(G,U){return{range:G,expression:U}}B.create=te;function re(G){var U=G;return U!=null&&a.is(U.range)&&(ae.string(U.expression)||U.expression===void 0)}B.is=re})(Sn||(e.InlineValueEvaluatableExpression=Sn={}));var On;(function(B){function te(G,U){return{frameId:G,stoppedLocation:U}}B.create=te;function re(G){var U=G;return ae.defined(U)&&a.is(G.stoppedLocation)}B.is=re})(On||(e.InlineValueContext=On={}));var At;(function(B){B.Type=1,B.Parameter=2;function te(re){return re===1||re===2}B.is=te})(At||(e.InlayHintKind=At={}));var Cn;(function(B){function te(G){return{value:G}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&(U.tooltip===void 0||ae.string(U.tooltip)||ee.is(U.tooltip))&&(U.location===void 0||l.is(U.location))&&(U.command===void 0||T.is(U.command))}B.is=re})(Cn||(e.InlayHintLabelPart=Cn={}));var zt;(function(B){function te(G,U,le){var be={position:G,label:U};return le!==void 0&&(be.kind=le),be}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&o.is(U.position)&&(ae.string(U.label)||ae.typedArray(U.label,Cn.is))&&(U.kind===void 0||At.is(U.kind))&&U.textEdits===void 0||ae.typedArray(U.textEdits,A.is)&&(U.tooltip===void 0||ae.string(U.tooltip)||ee.is(U.tooltip))&&(U.paddingLeft===void 0||ae.boolean(U.paddingLeft))&&(U.paddingRight===void 0||ae.boolean(U.paddingRight))}B.is=re})(zt||(e.InlayHint=zt={}));var $n;(function(B){function te(re){return{kind:"snippet",value:re}}B.createSnippet=te})($n||(e.StringValue=$n={}));var Er;(function(B){function te(re,G,U,le){return{insertText:re,filterText:G,range:U,command:le}}B.create=te})(Er||(e.InlineCompletionItem=Er={}));var Ui;(function(B){function te(re){return{items:re}}B.create=te})(Ui||(e.InlineCompletionList=Ui={}));var Wf;(function(B){B.Invoked=0,B.Automatic=1})(Wf||(e.InlineCompletionTriggerKind=Wf={}));var S0;(function(B){function te(re,G){return{range:re,text:G}}B.create=te})(S0||(e.SelectedCompletionInfo=S0={}));var lb;(function(B){function te(re,G){return{triggerKind:re,selectedCompletionInfo:G}}B.create=te})(lb||(e.InlineCompletionContext=lb={}));var C0;(function(B){function te(re){var G=re;return ae.objectLiteral(G)&&r.is(G.uri)&&ae.string(G.name)}B.is=te})(C0||(e.WorkspaceFolder=C0={})),e.EOL=[`
|
|
32
|
+
`)),pe){let $e=Z.error?` Request failed: ${Z.error.message} (${Z.error.code}).`:"";A.log(`Received response '${pe.method} - (${Z.id})' in ${Date.now()-pe.timerStart}ms.${$e}`,Te)}else A.log(`Received response ${Z.id} without active response promise.`,Te)}else Vt("receive-response",Z)}function Vt(Z,pe){if(!A||v===hn.Off)return;let Te={isLSPMessage:!0,type:Z,message:pe,timestamp:Date.now()};A.log(Te)}function mr(){if(z())throw new Su(Tb.Closed,"Connection is closed.");if(K())throw new Su(Tb.Disposed,"Connection is disposed.")}function Wi(){if(j())throw new Su(Tb.AlreadyListening,"Connection is already listening")}function ou(){if(!j())throw new Error("Call listen() first.")}function Jr(Z){return Z===void 0?null:Z}function ah(Z){if(Z!==null)return Z}function ca(Z){return Z!=null&&!Array.isArray(Z)&&typeof Z=="object"}function qs(Z,pe){switch(Z){case nt.ParameterStructures.auto:return ca(pe)?ah(pe):[Jr(pe)];case nt.ParameterStructures.byName:if(!ca(pe))throw new Error("Received parameters by name but param is not an object literal.");return ah(pe);case nt.ParameterStructures.byPosition:return[Jr(pe)];default:throw new Error(`Unknown parameter structure ${Z.toString()}`)}}function Jl(Z,pe){let Te,$e=Z.numberOfParams;switch($e){case 0:Te=void 0;break;case 1:Te=qs(Z.parameterStructures,pe[0]);break;default:Te=[];for(let tn=0;tn<pe.length&&tn<$e;tn++)Te.push(Jr(pe[tn]));if(pe.length<$e)for(let tn=pe.length;tn<$e;tn++)Te.push(null);break}return Te}let $s={sendNotification:(Z,...pe)=>{mr();let Te,$e;if(rr.string(Z)){Te=Z;let Kt=pe[0],Sn=0,On=nt.ParameterStructures.auto;nt.ParameterStructures.is(Kt)&&(Sn=1,On=Kt);let At=pe.length,Cn=At-Sn;switch(Cn){case 0:$e=void 0;break;case 1:$e=qs(On,pe[Sn]);break;default:if(On===nt.ParameterStructures.byName)throw new Error(`Received ${Cn} parameters for 'by Name' notification parameter structure.`);$e=pe.slice(Sn,At).map(zt=>Jr(zt));break}}else{let Kt=pe;Te=Z.method,$e=Jl(Z,Kt)}let tn={jsonrpc:l,method:Te,params:$e};return un(tn),e.write(tn).catch(Kt=>{throw i.error("Sending notification failed."),Kt})},onNotification:(Z,pe)=>{mr();let Te;return rr.func(Z)?d=Z:pe&&(rr.string(Z)?(Te=Z,f.set(Z,{type:void 0,handler:pe})):(Te=Z.method,f.set(Z.method,{type:Z,handler:pe}))),{dispose:()=>{Te!==void 0?f.delete(Te):d=void 0}}},onProgress:(Z,pe,Te)=>{if(m.has(pe))throw new Error(`Progress handler for token ${pe} already registered`);return m.set(pe,Te),{dispose:()=>{m.delete(pe)}}},sendProgress:(Z,pe,Te)=>$s.sendNotification(Eb.type,{token:pe,value:Te}),onUnhandledProgress:M.event,sendRequest:(Z,...pe)=>{mr(),ou();let Te,$e,tn;if(rr.string(Z)){Te=Z;let At=pe[0],Cn=pe[pe.length-1],zt=0,$n=nt.ParameterStructures.auto;nt.ParameterStructures.is(At)&&(zt=1,$n=At);let Er=pe.length;MM.CancellationToken.is(Cn)&&(Er=Er-1,tn=Cn);let Ui=Er-zt;switch(Ui){case 0:$e=void 0;break;case 1:$e=qs($n,pe[zt]);break;default:if($n===nt.ParameterStructures.byName)throw new Error(`Received ${Ui} parameters for 'by Name' request parameter structure.`);$e=pe.slice(zt,Er).map(Wf=>Jr(Wf));break}}else{let At=pe;Te=Z.method,$e=Jl(Z,At);let Cn=Z.numberOfParams;tn=MM.CancellationToken.is(At[Cn])?At[Cn]:void 0}let Kt=s++,Sn;tn&&(Sn=tn.onCancellationRequested(()=>{let At=D.sender.sendCancellation($s,Kt);return At===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${Kt}`),Promise.resolve()):At.catch(()=>{i.log(`Sending cancellation messages for id ${Kt} failed`)})}));let On={jsonrpc:l,id:Kt,method:Te,params:$e};return it(On),typeof D.sender.enableCancellation=="function"&&D.sender.enableCancellation(On),new Promise(async(At,Cn)=>{let zt=Ui=>{At(Ui),D.sender.cleanup(Kt),Sn?.dispose()},$n=Ui=>{Cn(Ui),D.sender.cleanup(Kt),Sn?.dispose()},Er={method:Te,timerStart:Date.now(),resolve:zt,reject:$n};try{await e.write(On),w.set(Kt,Er)}catch(Ui){throw i.error("Sending request failed."),Er.reject(new nt.ResponseError(nt.ErrorCodes.MessageWriteError,Ui.message?Ui.message:"Unknown reason")),Ui}})},onRequest:(Z,pe)=>{mr();let Te=null;return IM.is(Z)?(Te=void 0,c=Z):rr.string(Z)?(Te=null,pe!==void 0&&(Te=Z,u.set(Z,{handler:pe,type:void 0}))):pe!==void 0&&(Te=Z.method,u.set(Z.method,{type:Z,handler:pe})),{dispose:()=>{Te!==null&&(Te!==void 0?u.delete(Te):c=void 0)}}},hasPendingResponse:()=>w.size>0,trace:async(Z,pe,Te)=>{let $e=!1,tn=Ks.Text;Te!==void 0&&(rr.boolean(Te)?$e=Te:($e=Te.sendNotification||!1,tn=Te.traceFormat||Ks.Text)),v=Z,T=tn,v===hn.Off?A=void 0:A=pe,$e&&!z()&&!K()&&await $s.sendNotification(PM.type,{value:hn.toString(Z)})},onError:k.event,onClose:y.event,onUnhandledNotification:C.event,onDispose:E.event,end:()=>{e.end()},dispose:()=>{if(K())return;R=ma.Disposed,E.fire(void 0);let Z=new nt.ResponseError(nt.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let pe of w.values())pe.reject(Z);w=new Map,S=new Map,_=new Set,g=new SU.LinkedMap,rr.func(e.dispose)&&e.dispose(),rr.func(t.dispose)&&t.dispose()},listen:()=>{mr(),Wi(),R=ma.Listening,t.listen(Ye)},inspect:()=>{(0,_U.default)().console.log("inspect")}};return $s.onNotification(k1.type,Z=>{if(v===hn.Off||!A)return;let pe=v===hn.Verbose||v===hn.Compact;A.log(Z.message,pe?Z.verbose:void 0)}),$s.onNotification(Eb.type,Z=>{let pe=m.get(Z.token);pe?pe(Z.value):M.fire(Z)}),$s}pt.createMessageConnection=Axe});var D1=I(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.ProgressType=fe.ProgressToken=fe.createMessageConnection=fe.NullLogger=fe.ConnectionOptions=fe.ConnectionStrategy=fe.AbstractMessageBuffer=fe.WriteableStreamMessageWriter=fe.AbstractMessageWriter=fe.MessageWriter=fe.ReadableStreamMessageReader=fe.AbstractMessageReader=fe.MessageReader=fe.SharedArrayReceiverStrategy=fe.SharedArraySenderStrategy=fe.CancellationToken=fe.CancellationTokenSource=fe.Emitter=fe.Event=fe.Disposable=fe.LRUCache=fe.Touch=fe.LinkedMap=fe.ParameterStructures=fe.NotificationType9=fe.NotificationType8=fe.NotificationType7=fe.NotificationType6=fe.NotificationType5=fe.NotificationType4=fe.NotificationType3=fe.NotificationType2=fe.NotificationType1=fe.NotificationType0=fe.NotificationType=fe.ErrorCodes=fe.ResponseError=fe.RequestType9=fe.RequestType8=fe.RequestType7=fe.RequestType6=fe.RequestType5=fe.RequestType4=fe.RequestType3=fe.RequestType2=fe.RequestType1=fe.RequestType0=fe.RequestType=fe.Message=fe.RAL=void 0;fe.MessageStrategy=fe.CancellationStrategy=fe.CancellationSenderStrategy=fe.CancellationReceiverStrategy=fe.ConnectionError=fe.ConnectionErrors=fe.LogTraceNotification=fe.SetTraceNotification=fe.TraceFormat=fe.TraceValues=fe.Trace=void 0;var Ln=lM();Object.defineProperty(fe,"Message",{enumerable:!0,get:function(){return Ln.Message}});Object.defineProperty(fe,"RequestType",{enumerable:!0,get:function(){return Ln.RequestType}});Object.defineProperty(fe,"RequestType0",{enumerable:!0,get:function(){return Ln.RequestType0}});Object.defineProperty(fe,"RequestType1",{enumerable:!0,get:function(){return Ln.RequestType1}});Object.defineProperty(fe,"RequestType2",{enumerable:!0,get:function(){return Ln.RequestType2}});Object.defineProperty(fe,"RequestType3",{enumerable:!0,get:function(){return Ln.RequestType3}});Object.defineProperty(fe,"RequestType4",{enumerable:!0,get:function(){return Ln.RequestType4}});Object.defineProperty(fe,"RequestType5",{enumerable:!0,get:function(){return Ln.RequestType5}});Object.defineProperty(fe,"RequestType6",{enumerable:!0,get:function(){return Ln.RequestType6}});Object.defineProperty(fe,"RequestType7",{enumerable:!0,get:function(){return Ln.RequestType7}});Object.defineProperty(fe,"RequestType8",{enumerable:!0,get:function(){return Ln.RequestType8}});Object.defineProperty(fe,"RequestType9",{enumerable:!0,get:function(){return Ln.RequestType9}});Object.defineProperty(fe,"ResponseError",{enumerable:!0,get:function(){return Ln.ResponseError}});Object.defineProperty(fe,"ErrorCodes",{enumerable:!0,get:function(){return Ln.ErrorCodes}});Object.defineProperty(fe,"NotificationType",{enumerable:!0,get:function(){return Ln.NotificationType}});Object.defineProperty(fe,"NotificationType0",{enumerable:!0,get:function(){return Ln.NotificationType0}});Object.defineProperty(fe,"NotificationType1",{enumerable:!0,get:function(){return Ln.NotificationType1}});Object.defineProperty(fe,"NotificationType2",{enumerable:!0,get:function(){return Ln.NotificationType2}});Object.defineProperty(fe,"NotificationType3",{enumerable:!0,get:function(){return Ln.NotificationType3}});Object.defineProperty(fe,"NotificationType4",{enumerable:!0,get:function(){return Ln.NotificationType4}});Object.defineProperty(fe,"NotificationType5",{enumerable:!0,get:function(){return Ln.NotificationType5}});Object.defineProperty(fe,"NotificationType6",{enumerable:!0,get:function(){return Ln.NotificationType6}});Object.defineProperty(fe,"NotificationType7",{enumerable:!0,get:function(){return Ln.NotificationType7}});Object.defineProperty(fe,"NotificationType8",{enumerable:!0,get:function(){return Ln.NotificationType8}});Object.defineProperty(fe,"NotificationType9",{enumerable:!0,get:function(){return Ln.NotificationType9}});Object.defineProperty(fe,"ParameterStructures",{enumerable:!0,get:function(){return Ln.ParameterStructures}});var LM=uM();Object.defineProperty(fe,"LinkedMap",{enumerable:!0,get:function(){return LM.LinkedMap}});Object.defineProperty(fe,"LRUCache",{enumerable:!0,get:function(){return LM.LRUCache}});Object.defineProperty(fe,"Touch",{enumerable:!0,get:function(){return LM.Touch}});var Fxe=uU();Object.defineProperty(fe,"Disposable",{enumerable:!0,get:function(){return Fxe.Disposable}});var AU=op();Object.defineProperty(fe,"Event",{enumerable:!0,get:function(){return AU.Event}});Object.defineProperty(fe,"Emitter",{enumerable:!0,get:function(){return AU.Emitter}});var FU=w1();Object.defineProperty(fe,"CancellationTokenSource",{enumerable:!0,get:function(){return FU.CancellationTokenSource}});Object.defineProperty(fe,"CancellationToken",{enumerable:!0,get:function(){return FU.CancellationToken}});var EU=hU();Object.defineProperty(fe,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return EU.SharedArraySenderStrategy}});Object.defineProperty(fe,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return EU.SharedArrayReceiverStrategy}});var qM=pU();Object.defineProperty(fe,"MessageReader",{enumerable:!0,get:function(){return qM.MessageReader}});Object.defineProperty(fe,"AbstractMessageReader",{enumerable:!0,get:function(){return qM.AbstractMessageReader}});Object.defineProperty(fe,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return qM.ReadableStreamMessageReader}});var $M=vU();Object.defineProperty(fe,"MessageWriter",{enumerable:!0,get:function(){return $M.MessageWriter}});Object.defineProperty(fe,"AbstractMessageWriter",{enumerable:!0,get:function(){return $M.AbstractMessageWriter}});Object.defineProperty(fe,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return $M.WriteableStreamMessageWriter}});var Exe=wU();Object.defineProperty(fe,"AbstractMessageBuffer",{enumerable:!0,get:function(){return Exe.AbstractMessageBuffer}});var si=kU();Object.defineProperty(fe,"ConnectionStrategy",{enumerable:!0,get:function(){return si.ConnectionStrategy}});Object.defineProperty(fe,"ConnectionOptions",{enumerable:!0,get:function(){return si.ConnectionOptions}});Object.defineProperty(fe,"NullLogger",{enumerable:!0,get:function(){return si.NullLogger}});Object.defineProperty(fe,"createMessageConnection",{enumerable:!0,get:function(){return si.createMessageConnection}});Object.defineProperty(fe,"ProgressToken",{enumerable:!0,get:function(){return si.ProgressToken}});Object.defineProperty(fe,"ProgressType",{enumerable:!0,get:function(){return si.ProgressType}});Object.defineProperty(fe,"Trace",{enumerable:!0,get:function(){return si.Trace}});Object.defineProperty(fe,"TraceValues",{enumerable:!0,get:function(){return si.TraceValues}});Object.defineProperty(fe,"TraceFormat",{enumerable:!0,get:function(){return si.TraceFormat}});Object.defineProperty(fe,"SetTraceNotification",{enumerable:!0,get:function(){return si.SetTraceNotification}});Object.defineProperty(fe,"LogTraceNotification",{enumerable:!0,get:function(){return si.LogTraceNotification}});Object.defineProperty(fe,"ConnectionErrors",{enumerable:!0,get:function(){return si.ConnectionErrors}});Object.defineProperty(fe,"ConnectionError",{enumerable:!0,get:function(){return si.ConnectionError}});Object.defineProperty(fe,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return si.CancellationReceiverStrategy}});Object.defineProperty(fe,"CancellationSenderStrategy",{enumerable:!0,get:function(){return si.CancellationSenderStrategy}});Object.defineProperty(fe,"CancellationStrategy",{enumerable:!0,get:function(){return si.CancellationStrategy}});Object.defineProperty(fe,"MessageStrategy",{enumerable:!0,get:function(){return si.MessageStrategy}});var Txe=vu();fe.RAL=Txe.default});var DU=I(UM=>{"use strict";Object.defineProperty(UM,"__esModule",{value:!0});var TU=require("util"),sc=D1(),up=class extends sc.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return up.emptyBuffer}fromString(e,n){return Buffer.from(e,n)}toString(e,n){return e instanceof Buffer?e.toString(n):new TU.TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,n):Buffer.from(e,0,n)}allocNative(e){return Buffer.allocUnsafe(e)}};up.emptyBuffer=Buffer.allocUnsafe(0);var zM=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),sc.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),sc.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),sc.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),sc.Disposable.create(()=>this.stream.off("data",e))}},jM=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),sc.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),sc.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),sc.Disposable.create(()=>this.stream.off("end",e))}write(e,n){return new Promise((r,i)=>{let s=o=>{o==null?r():i(o)};typeof e=="string"?this.stream.write(e,n,s):this.stream.write(e,s)})}end(){this.stream.end()}},MU=Object.freeze({messageBuffer:Object.freeze({create:t=>new up(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(t,void 0,0),e.charset))}catch(n){return Promise.reject(n)}}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{try{return t instanceof Buffer?Promise.resolve(JSON.parse(t.toString(e.charset))):Promise.resolve(JSON.parse(new TU.TextDecoder(e.charset).decode(t)))}catch(n){return Promise.reject(n)}}})}),stream:Object.freeze({asReadableStream:t=>new zM(t),asWritableStream:t=>new jM(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){let r=setTimeout(t,e,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(t,...e){let n=setImmediate(t,...e);return{dispose:()=>clearImmediate(n)}},setInterval(t,e,...n){let r=setInterval(t,e,...n);return{dispose:()=>clearInterval(r)}}})});function WM(){return MU}(function(t){function e(){sc.RAL.install(MU)}t.install=e})(WM||(WM={}));UM.default=WM});var wh=I(Wt=>{"use strict";var Mxe=Wt&&Wt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Dxe=Wt&&Wt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Mxe(e,t,n)};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.createMessageConnection=Wt.createServerSocketTransport=Wt.createClientSocketTransport=Wt.createServerPipeTransport=Wt.createClientPipeTransport=Wt.generateRandomPipeName=Wt.StreamMessageWriter=Wt.StreamMessageReader=Wt.SocketMessageWriter=Wt.SocketMessageReader=Wt.PortMessageWriter=Wt.PortMessageReader=Wt.IPCMessageWriter=Wt.IPCMessageReader=void 0;var dp=DU();dp.default.install();var RU=require("path"),Rxe=require("os"),Ixe=require("crypto"),P1=require("net"),Gs=D1();Dxe(D1(),Wt);var BM=class extends Gs.AbstractMessageReader{constructor(e){super(),this.process=e;let n=this.process;n.on("error",r=>this.fireError(r)),n.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),Gs.Disposable.create(()=>this.process.off("message",e))}};Wt.IPCMessageReader=BM;var HM=class extends Gs.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let n=this.process;n.on("error",r=>this.fireError(r)),n.on("close",()=>this.fireClose)}write(e){try{return typeof this.process.send=="function"&&this.process.send(e,void 0,void 0,n=>{n?(this.errorCount++,this.handleError(n,e)):this.errorCount=0}),Promise.resolve()}catch(n){return this.handleError(n,e),Promise.reject(n)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){}};Wt.IPCMessageWriter=HM;var VM=class extends Gs.AbstractMessageReader{constructor(e){super(),this.onData=new Gs.Emitter,e.on("close",()=>this.fireClose),e.on("error",n=>this.fireError(n)),e.on("message",n=>{this.onData.fire(n)})}listen(e){return this.onData.event(e)}};Wt.PortMessageReader=VM;var KM=class extends Gs.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.on("close",()=>this.fireClose()),e.on("error",n=>this.fireError(n))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(n){return this.handleError(n,e),Promise.reject(n)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){}};Wt.PortMessageWriter=KM;var yh=class extends Gs.ReadableStreamMessageReader{constructor(e,n="utf-8"){super((0,dp.default)().stream.asReadableStream(e),n)}};Wt.SocketMessageReader=yh;var vh=class extends Gs.WriteableStreamMessageWriter{constructor(e,n){super((0,dp.default)().stream.asWritableStream(e),n),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};Wt.SocketMessageWriter=vh;var R1=class extends Gs.ReadableStreamMessageReader{constructor(e,n){super((0,dp.default)().stream.asReadableStream(e),n)}};Wt.StreamMessageReader=R1;var I1=class extends Gs.WriteableStreamMessageWriter{constructor(e,n){super((0,dp.default)().stream.asWritableStream(e),n)}};Wt.StreamMessageWriter=I1;var IU=process.env.XDG_RUNTIME_DIR,Pxe=new Map([["linux",107],["darwin",103]]);function Oxe(){let t=(0,Ixe.randomBytes)(21).toString("hex");if(process.platform==="win32")return`\\\\.\\pipe\\vscode-jsonrpc-${t}-sock`;let e;IU?e=RU.join(IU,`vscode-ipc-${t}.sock`):e=RU.join(Rxe.tmpdir(),`vscode-${t}.sock`);let n=Pxe.get(process.platform);return n!==void 0&&e.length>n&&(0,dp.default)().console.warn(`WARNING: IPC handle "${e}" is longer than ${n} characters.`),e}Wt.generateRandomPipeName=Oxe;function Nxe(t,e="utf-8"){let n,r=new Promise((i,s)=>{n=i});return new Promise((i,s)=>{let o=(0,P1.createServer)(a=>{o.close(),n([new yh(a,e),new vh(a,e)])});o.on("error",s),o.listen(t,()=>{o.removeListener("error",s),i({onConnected:()=>r})})})}Wt.createClientPipeTransport=Nxe;function Lxe(t,e="utf-8"){let n=(0,P1.createConnection)(t);return[new yh(n,e),new vh(n,e)]}Wt.createServerPipeTransport=Lxe;function qxe(t,e="utf-8"){let n,r=new Promise((i,s)=>{n=i});return new Promise((i,s)=>{let o=(0,P1.createServer)(a=>{o.close(),n([new yh(a,e),new vh(a,e)])});o.on("error",s),o.listen(t,"127.0.0.1",()=>{o.removeListener("error",s),i({onConnected:()=>r})})})}Wt.createClientSocketTransport=qxe;function $xe(t,e="utf-8"){let n=(0,P1.createConnection)(t,"127.0.0.1");return[new yh(n,e),new vh(n,e)]}Wt.createServerSocketTransport=$xe;function zxe(t){let e=t;return e.read!==void 0&&e.addListener!==void 0}function jxe(t){let e=t;return e.write!==void 0&&e.addListener!==void 0}function Wxe(t,e,n,r){n||(n=Gs.NullLogger);let i=zxe(t)?new R1(t):t,s=jxe(e)?new I1(e):e;return Gs.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Gs.createMessageConnection)(i,s,n,r)}Wt.createMessageConnection=Wxe});var GM=I((spt,PU)=>{"use strict";PU.exports=wh()});var yr=I((OU,O1)=>{(function(t){if(typeof O1=="object"&&typeof O1.exports=="object"){var e=t(require,OU);e!==void 0&&(O1.exports=e)}else typeof define=="function"&&define.amd&&define(["require","exports"],t)})(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDocument=e.EOL=e.WorkspaceFolder=e.InlineCompletionContext=e.SelectedCompletionInfo=e.InlineCompletionTriggerKind=e.InlineCompletionList=e.InlineCompletionItem=e.StringValue=e.InlayHint=e.InlayHintLabelPart=e.InlayHintKind=e.InlineValueContext=e.InlineValueEvaluatableExpression=e.InlineValueVariableLookup=e.InlineValueText=e.SemanticTokens=e.SemanticTokenModifiers=e.SemanticTokenTypes=e.SelectionRange=e.DocumentLink=e.FormattingOptions=e.CodeLens=e.CodeAction=e.CodeActionContext=e.CodeActionTriggerKind=e.CodeActionKind=e.DocumentSymbol=e.WorkspaceSymbol=e.SymbolInformation=e.SymbolTag=e.SymbolKind=e.DocumentHighlight=e.DocumentHighlightKind=e.SignatureInformation=e.ParameterInformation=e.Hover=e.MarkedString=e.CompletionList=e.CompletionItem=e.CompletionItemLabelDetails=e.InsertTextMode=e.InsertReplaceEdit=e.CompletionItemTag=e.InsertTextFormat=e.CompletionItemKind=e.MarkupContent=e.MarkupKind=e.TextDocumentItem=e.OptionalVersionedTextDocumentIdentifier=e.VersionedTextDocumentIdentifier=e.TextDocumentIdentifier=e.WorkspaceChange=e.WorkspaceEdit=e.DeleteFile=e.RenameFile=e.CreateFile=e.TextDocumentEdit=e.AnnotatedTextEdit=e.ChangeAnnotationIdentifier=e.ChangeAnnotation=e.TextEdit=e.Command=e.Diagnostic=e.CodeDescription=e.DiagnosticTag=e.DiagnosticSeverity=e.DiagnosticRelatedInformation=e.FoldingRange=e.FoldingRangeKind=e.ColorPresentation=e.ColorInformation=e.Color=e.LocationLink=e.Location=e.Range=e.Position=e.uinteger=e.integer=e.URI=e.DocumentUri=void 0;var n;(function(B){function te(re){return typeof re=="string"}B.is=te})(n||(e.DocumentUri=n={}));var r;(function(B){function te(re){return typeof re=="string"}B.is=te})(r||(e.URI=r={}));var i;(function(B){B.MIN_VALUE=-2147483648,B.MAX_VALUE=2147483647;function te(re){return typeof re=="number"&&B.MIN_VALUE<=re&&re<=B.MAX_VALUE}B.is=te})(i||(e.integer=i={}));var s;(function(B){B.MIN_VALUE=0,B.MAX_VALUE=2147483647;function te(re){return typeof re=="number"&&B.MIN_VALUE<=re&&re<=B.MAX_VALUE}B.is=te})(s||(e.uinteger=s={}));var o;(function(B){function te(G,U){return G===Number.MAX_VALUE&&(G=s.MAX_VALUE),U===Number.MAX_VALUE&&(U=s.MAX_VALUE),{line:G,character:U}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&ae.uinteger(U.line)&&ae.uinteger(U.character)}B.is=re})(o||(e.Position=o={}));var a;(function(B){function te(G,U,le,be){if(ae.uinteger(G)&&ae.uinteger(U)&&ae.uinteger(le)&&ae.uinteger(be))return{start:o.create(G,U),end:o.create(le,be)};if(o.is(G)&&o.is(U))return{start:G,end:U};throw new Error("Range#create called with invalid arguments[".concat(G,", ").concat(U,", ").concat(le,", ").concat(be,"]"))}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&o.is(U.start)&&o.is(U.end)}B.is=re})(a||(e.Range=a={}));var l;(function(B){function te(G,U){return{uri:G,range:U}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&a.is(U.range)&&(ae.string(U.uri)||ae.undefined(U.uri))}B.is=re})(l||(e.Location=l={}));var c;(function(B){function te(G,U,le,be){return{targetUri:G,targetRange:U,targetSelectionRange:le,originSelectionRange:be}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&a.is(U.targetRange)&&ae.string(U.targetUri)&&a.is(U.targetSelectionRange)&&(a.is(U.originSelectionRange)||ae.undefined(U.originSelectionRange))}B.is=re})(c||(e.LocationLink=c={}));var u;(function(B){function te(G,U,le,be){return{red:G,green:U,blue:le,alpha:be}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&ae.numberRange(U.red,0,1)&&ae.numberRange(U.green,0,1)&&ae.numberRange(U.blue,0,1)&&ae.numberRange(U.alpha,0,1)}B.is=re})(u||(e.Color=u={}));var d;(function(B){function te(G,U){return{range:G,color:U}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&a.is(U.range)&&u.is(U.color)}B.is=re})(d||(e.ColorInformation=d={}));var f;(function(B){function te(G,U,le){return{label:G,textEdit:U,additionalTextEdits:le}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&ae.string(U.label)&&(ae.undefined(U.textEdit)||A.is(U))&&(ae.undefined(U.additionalTextEdits)||ae.typedArray(U.additionalTextEdits,A.is))}B.is=re})(f||(e.ColorPresentation=f={}));var m;(function(B){B.Comment="comment",B.Imports="imports",B.Region="region"})(m||(e.FoldingRangeKind=m={}));var b;(function(B){function te(G,U,le,be,ct,Jn){var Fn={startLine:G,endLine:U};return ae.defined(le)&&(Fn.startCharacter=le),ae.defined(be)&&(Fn.endCharacter=be),ae.defined(ct)&&(Fn.kind=ct),ae.defined(Jn)&&(Fn.collapsedText=Jn),Fn}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&ae.uinteger(U.startLine)&&ae.uinteger(U.startLine)&&(ae.undefined(U.startCharacter)||ae.uinteger(U.startCharacter))&&(ae.undefined(U.endCharacter)||ae.uinteger(U.endCharacter))&&(ae.undefined(U.kind)||ae.string(U.kind))}B.is=re})(b||(e.FoldingRange=b={}));var g;(function(B){function te(G,U){return{location:G,message:U}}B.create=te;function re(G){var U=G;return ae.defined(U)&&l.is(U.location)&&ae.string(U.message)}B.is=re})(g||(e.DiagnosticRelatedInformation=g={}));var w;(function(B){B.Error=1,B.Warning=2,B.Information=3,B.Hint=4})(w||(e.DiagnosticSeverity=w={}));var _;(function(B){B.Unnecessary=1,B.Deprecated=2})(_||(e.DiagnosticTag=_={}));var S;(function(B){function te(re){var G=re;return ae.objectLiteral(G)&&ae.string(G.href)}B.is=te})(S||(e.CodeDescription=S={}));var v;(function(B){function te(G,U,le,be,ct,Jn){var Fn={range:G,message:U};return ae.defined(le)&&(Fn.severity=le),ae.defined(be)&&(Fn.code=be),ae.defined(ct)&&(Fn.source=ct),ae.defined(Jn)&&(Fn.relatedInformation=Jn),Fn}B.create=te;function re(G){var U,le=G;return ae.defined(le)&&a.is(le.range)&&ae.string(le.message)&&(ae.number(le.severity)||ae.undefined(le.severity))&&(ae.integer(le.code)||ae.string(le.code)||ae.undefined(le.code))&&(ae.undefined(le.codeDescription)||ae.string((U=le.codeDescription)===null||U===void 0?void 0:U.href))&&(ae.string(le.source)||ae.undefined(le.source))&&(ae.undefined(le.relatedInformation)||ae.typedArray(le.relatedInformation,g.is))}B.is=re})(v||(e.Diagnostic=v={}));var T;(function(B){function te(G,U){for(var le=[],be=2;be<arguments.length;be++)le[be-2]=arguments[be];var ct={title:G,command:U};return ae.defined(le)&&le.length>0&&(ct.arguments=le),ct}B.create=te;function re(G){var U=G;return ae.defined(U)&&ae.string(U.title)&&ae.string(U.command)}B.is=re})(T||(e.Command=T={}));var A;(function(B){function te(le,be){return{range:le,newText:be}}B.replace=te;function re(le,be){return{range:{start:le,end:le},newText:be}}B.insert=re;function G(le){return{range:le,newText:""}}B.del=G;function U(le){var be=le;return ae.objectLiteral(be)&&ae.string(be.newText)&&a.is(be.range)}B.is=U})(A||(e.TextEdit=A={}));var R;(function(B){function te(G,U,le){var be={label:G};return U!==void 0&&(be.needsConfirmation=U),le!==void 0&&(be.description=le),be}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&ae.string(U.label)&&(ae.boolean(U.needsConfirmation)||U.needsConfirmation===void 0)&&(ae.string(U.description)||U.description===void 0)}B.is=re})(R||(e.ChangeAnnotation=R={}));var k;(function(B){function te(re){var G=re;return ae.string(G)}B.is=te})(k||(e.ChangeAnnotationIdentifier=k={}));var y;(function(B){function te(le,be,ct){return{range:le,newText:be,annotationId:ct}}B.replace=te;function re(le,be,ct){return{range:{start:le,end:le},newText:be,annotationId:ct}}B.insert=re;function G(le,be){return{range:le,newText:"",annotationId:be}}B.del=G;function U(le){var be=le;return A.is(be)&&(R.is(be.annotationId)||k.is(be.annotationId))}B.is=U})(y||(e.AnnotatedTextEdit=y={}));var C;(function(B){function te(G,U){return{textDocument:G,edits:U}}B.create=te;function re(G){var U=G;return ae.defined(U)&&z.is(U.textDocument)&&Array.isArray(U.edits)}B.is=re})(C||(e.TextDocumentEdit=C={}));var M;(function(B){function te(G,U,le){var be={kind:"create",uri:G};return U!==void 0&&(U.overwrite!==void 0||U.ignoreIfExists!==void 0)&&(be.options=U),le!==void 0&&(be.annotationId=le),be}B.create=te;function re(G){var U=G;return U&&U.kind==="create"&&ae.string(U.uri)&&(U.options===void 0||(U.options.overwrite===void 0||ae.boolean(U.options.overwrite))&&(U.options.ignoreIfExists===void 0||ae.boolean(U.options.ignoreIfExists)))&&(U.annotationId===void 0||k.is(U.annotationId))}B.is=re})(M||(e.CreateFile=M={}));var E;(function(B){function te(G,U,le,be){var ct={kind:"rename",oldUri:G,newUri:U};return le!==void 0&&(le.overwrite!==void 0||le.ignoreIfExists!==void 0)&&(ct.options=le),be!==void 0&&(ct.annotationId=be),ct}B.create=te;function re(G){var U=G;return U&&U.kind==="rename"&&ae.string(U.oldUri)&&ae.string(U.newUri)&&(U.options===void 0||(U.options.overwrite===void 0||ae.boolean(U.options.overwrite))&&(U.options.ignoreIfExists===void 0||ae.boolean(U.options.ignoreIfExists)))&&(U.annotationId===void 0||k.is(U.annotationId))}B.is=re})(E||(e.RenameFile=E={}));var D;(function(B){function te(G,U,le){var be={kind:"delete",uri:G};return U!==void 0&&(U.recursive!==void 0||U.ignoreIfNotExists!==void 0)&&(be.options=U),le!==void 0&&(be.annotationId=le),be}B.create=te;function re(G){var U=G;return U&&U.kind==="delete"&&ae.string(U.uri)&&(U.options===void 0||(U.options.recursive===void 0||ae.boolean(U.options.recursive))&&(U.options.ignoreIfNotExists===void 0||ae.boolean(U.options.ignoreIfNotExists)))&&(U.annotationId===void 0||k.is(U.annotationId))}B.is=re})(D||(e.DeleteFile=D={}));var N;(function(B){function te(re){var G=re;return G&&(G.changes!==void 0||G.documentChanges!==void 0)&&(G.documentChanges===void 0||G.documentChanges.every(function(U){return ae.string(U.kind)?M.is(U)||E.is(U)||D.is(U):C.is(U)}))}B.is=te})(N||(e.WorkspaceEdit=N={}));var $=function(){function B(te,re){this.edits=te,this.changeAnnotations=re}return B.prototype.insert=function(te,re,G){var U,le;if(G===void 0?U=A.insert(te,re):k.is(G)?(le=G,U=y.insert(te,re,G)):(this.assertChangeAnnotations(this.changeAnnotations),le=this.changeAnnotations.manage(G),U=y.insert(te,re,le)),this.edits.push(U),le!==void 0)return le},B.prototype.replace=function(te,re,G){var U,le;if(G===void 0?U=A.replace(te,re):k.is(G)?(le=G,U=y.replace(te,re,G)):(this.assertChangeAnnotations(this.changeAnnotations),le=this.changeAnnotations.manage(G),U=y.replace(te,re,le)),this.edits.push(U),le!==void 0)return le},B.prototype.delete=function(te,re){var G,U;if(re===void 0?G=A.del(te):k.is(re)?(U=re,G=y.del(te,re)):(this.assertChangeAnnotations(this.changeAnnotations),U=this.changeAnnotations.manage(re),G=y.del(te,U)),this.edits.push(G),U!==void 0)return U},B.prototype.add=function(te){this.edits.push(te)},B.prototype.all=function(){return this.edits},B.prototype.clear=function(){this.edits.splice(0,this.edits.length)},B.prototype.assertChangeAnnotations=function(te){if(te===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},B}(),F=function(){function B(te){this._annotations=te===void 0?Object.create(null):te,this._counter=0,this._size=0}return B.prototype.all=function(){return this._annotations},Object.defineProperty(B.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),B.prototype.manage=function(te,re){var G;if(k.is(te)?G=te:(G=this.nextId(),re=te),this._annotations[G]!==void 0)throw new Error("Id ".concat(G," is already in use."));if(re===void 0)throw new Error("No annotation provided for id ".concat(G));return this._annotations[G]=re,this._size++,G},B.prototype.nextId=function(){return this._counter++,this._counter.toString()},B}(),P=function(){function B(te){var re=this;this._textEditChanges=Object.create(null),te!==void 0?(this._workspaceEdit=te,te.documentChanges?(this._changeAnnotations=new F(te.changeAnnotations),te.changeAnnotations=this._changeAnnotations.all(),te.documentChanges.forEach(function(G){if(C.is(G)){var U=new $(G.edits,re._changeAnnotations);re._textEditChanges[G.textDocument.uri]=U}})):te.changes&&Object.keys(te.changes).forEach(function(G){var U=new $(te.changes[G]);re._textEditChanges[G]=U})):this._workspaceEdit={}}return Object.defineProperty(B.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),B.prototype.getTextEditChange=function(te){if(z.is(te)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var re={uri:te.uri,version:te.version},G=this._textEditChanges[re.uri];if(!G){var U=[],le={textDocument:re,edits:U};this._workspaceEdit.documentChanges.push(le),G=new $(U,this._changeAnnotations),this._textEditChanges[re.uri]=G}return G}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var G=this._textEditChanges[te];if(!G){var U=[];this._workspaceEdit.changes[te]=U,G=new $(U),this._textEditChanges[te]=G}return G}},B.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new F,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},B.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},B.prototype.createFile=function(te,re,G){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var U;R.is(re)||k.is(re)?U=re:G=re;var le,be;if(U===void 0?le=M.create(te,G):(be=k.is(U)?U:this._changeAnnotations.manage(U),le=M.create(te,G,be)),this._workspaceEdit.documentChanges.push(le),be!==void 0)return be},B.prototype.renameFile=function(te,re,G,U){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var le;R.is(G)||k.is(G)?le=G:U=G;var be,ct;if(le===void 0?be=E.create(te,re,U):(ct=k.is(le)?le:this._changeAnnotations.manage(le),be=E.create(te,re,U,ct)),this._workspaceEdit.documentChanges.push(be),ct!==void 0)return ct},B.prototype.deleteFile=function(te,re,G){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var U;R.is(re)||k.is(re)?U=re:G=re;var le,be;if(U===void 0?le=D.create(te,G):(be=k.is(U)?U:this._changeAnnotations.manage(U),le=D.create(te,G,be)),this._workspaceEdit.documentChanges.push(le),be!==void 0)return be},B}();e.WorkspaceChange=P;var L;(function(B){function te(G){return{uri:G}}B.create=te;function re(G){var U=G;return ae.defined(U)&&ae.string(U.uri)}B.is=re})(L||(e.TextDocumentIdentifier=L={}));var j;(function(B){function te(G,U){return{uri:G,version:U}}B.create=te;function re(G){var U=G;return ae.defined(U)&&ae.string(U.uri)&&ae.integer(U.version)}B.is=re})(j||(e.VersionedTextDocumentIdentifier=j={}));var z;(function(B){function te(G,U){return{uri:G,version:U}}B.create=te;function re(G){var U=G;return ae.defined(U)&&ae.string(U.uri)&&(U.version===null||ae.integer(U.version))}B.is=re})(z||(e.OptionalVersionedTextDocumentIdentifier=z={}));var K;(function(B){function te(G,U,le,be){return{uri:G,languageId:U,version:le,text:be}}B.create=te;function re(G){var U=G;return ae.defined(U)&&ae.string(U.uri)&&ae.string(U.languageId)&&ae.integer(U.version)&&ae.string(U.text)}B.is=re})(K||(e.TextDocumentItem=K={}));var X;(function(B){B.PlainText="plaintext",B.Markdown="markdown";function te(re){var G=re;return G===B.PlainText||G===B.Markdown}B.is=te})(X||(e.MarkupKind=X={}));var ee;(function(B){function te(re){var G=re;return ae.objectLiteral(re)&&X.is(G.kind)&&ae.string(G.value)}B.is=te})(ee||(e.MarkupContent=ee={}));var de;(function(B){B.Text=1,B.Method=2,B.Function=3,B.Constructor=4,B.Field=5,B.Variable=6,B.Class=7,B.Interface=8,B.Module=9,B.Property=10,B.Unit=11,B.Value=12,B.Enum=13,B.Keyword=14,B.Snippet=15,B.Color=16,B.File=17,B.Reference=18,B.Folder=19,B.EnumMember=20,B.Constant=21,B.Struct=22,B.Event=23,B.Operator=24,B.TypeParameter=25})(de||(e.CompletionItemKind=de={}));var Se;(function(B){B.PlainText=1,B.Snippet=2})(Se||(e.InsertTextFormat=Se={}));var De;(function(B){B.Deprecated=1})(De||(e.CompletionItemTag=De={}));var ke;(function(B){function te(G,U,le){return{newText:G,insert:U,replace:le}}B.create=te;function re(G){var U=G;return U&&ae.string(U.newText)&&a.is(U.insert)&&a.is(U.replace)}B.is=re})(ke||(e.InsertReplaceEdit=ke={}));var Ye;(function(B){B.asIs=1,B.adjustIndentation=2})(Ye||(e.InsertTextMode=Ye={}));var St;(function(B){function te(re){var G=re;return G&&(ae.string(G.detail)||G.detail===void 0)&&(ae.string(G.description)||G.description===void 0)}B.is=te})(St||(e.CompletionItemLabelDetails=St={}));var we;(function(B){function te(re){return{label:re}}B.create=te})(we||(e.CompletionItem=we={}));var Ne;(function(B){function te(re,G){return{items:re||[],isIncomplete:!!G}}B.create=te})(Ne||(e.CompletionList=Ne={}));var me;(function(B){function te(G){return G.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}B.fromPlainText=te;function re(G){var U=G;return ae.string(U)||ae.objectLiteral(U)&&ae.string(U.language)&&ae.string(U.value)}B.is=re})(me||(e.MarkedString=me={}));var Re;(function(B){function te(re){var G=re;return!!G&&ae.objectLiteral(G)&&(ee.is(G.contents)||me.is(G.contents)||ae.typedArray(G.contents,me.is))&&(re.range===void 0||a.is(re.range))}B.is=te})(Re||(e.Hover=Re={}));var it;(function(B){function te(re,G){return G?{label:re,documentation:G}:{label:re}}B.create=te})(it||(e.ParameterInformation=it={}));var un;(function(B){function te(re,G){for(var U=[],le=2;le<arguments.length;le++)U[le-2]=arguments[le];var be={label:re};return ae.defined(G)&&(be.documentation=G),ae.defined(U)?be.parameters=U:be.parameters=[],be}B.create=te})(un||(e.SignatureInformation=un={}));var lt;(function(B){B.Text=1,B.Read=2,B.Write=3})(lt||(e.DocumentHighlightKind=lt={}));var ri;(function(B){function te(re,G){var U={range:re};return ae.number(G)&&(U.kind=G),U}B.create=te})(ri||(e.DocumentHighlight=ri={}));var pr;(function(B){B.File=1,B.Module=2,B.Namespace=3,B.Package=4,B.Class=5,B.Method=6,B.Property=7,B.Field=8,B.Constructor=9,B.Enum=10,B.Interface=11,B.Function=12,B.Variable=13,B.Constant=14,B.String=15,B.Number=16,B.Boolean=17,B.Array=18,B.Object=19,B.Key=20,B.Null=21,B.EnumMember=22,B.Struct=23,B.Event=24,B.Operator=25,B.TypeParameter=26})(pr||(e.SymbolKind=pr={}));var Gr;(function(B){B.Deprecated=1})(Gr||(e.SymbolTag=Gr={}));var Vt;(function(B){function te(re,G,U,le,be){var ct={name:re,kind:G,location:{uri:le,range:U}};return be&&(ct.containerName=be),ct}B.create=te})(Vt||(e.SymbolInformation=Vt={}));var mr;(function(B){function te(re,G,U,le){return le!==void 0?{name:re,kind:G,location:{uri:U,range:le}}:{name:re,kind:G,location:{uri:U}}}B.create=te})(mr||(e.WorkspaceSymbol=mr={}));var Wi;(function(B){function te(G,U,le,be,ct,Jn){var Fn={name:G,detail:U,kind:le,range:be,selectionRange:ct};return Jn!==void 0&&(Fn.children=Jn),Fn}B.create=te;function re(G){var U=G;return U&&ae.string(U.name)&&ae.number(U.kind)&&a.is(U.range)&&a.is(U.selectionRange)&&(U.detail===void 0||ae.string(U.detail))&&(U.deprecated===void 0||ae.boolean(U.deprecated))&&(U.children===void 0||Array.isArray(U.children))&&(U.tags===void 0||Array.isArray(U.tags))}B.is=re})(Wi||(e.DocumentSymbol=Wi={}));var ou;(function(B){B.Empty="",B.QuickFix="quickfix",B.Refactor="refactor",B.RefactorExtract="refactor.extract",B.RefactorInline="refactor.inline",B.RefactorRewrite="refactor.rewrite",B.Source="source",B.SourceOrganizeImports="source.organizeImports",B.SourceFixAll="source.fixAll"})(ou||(e.CodeActionKind=ou={}));var Jr;(function(B){B.Invoked=1,B.Automatic=2})(Jr||(e.CodeActionTriggerKind=Jr={}));var ah;(function(B){function te(G,U,le){var be={diagnostics:G};return U!=null&&(be.only=U),le!=null&&(be.triggerKind=le),be}B.create=te;function re(G){var U=G;return ae.defined(U)&&ae.typedArray(U.diagnostics,v.is)&&(U.only===void 0||ae.typedArray(U.only,ae.string))&&(U.triggerKind===void 0||U.triggerKind===Jr.Invoked||U.triggerKind===Jr.Automatic)}B.is=re})(ah||(e.CodeActionContext=ah={}));var ca;(function(B){function te(G,U,le){var be={title:G},ct=!0;return typeof U=="string"?(ct=!1,be.kind=U):T.is(U)?be.command=U:be.edit=U,ct&&le!==void 0&&(be.kind=le),be}B.create=te;function re(G){var U=G;return U&&ae.string(U.title)&&(U.diagnostics===void 0||ae.typedArray(U.diagnostics,v.is))&&(U.kind===void 0||ae.string(U.kind))&&(U.edit!==void 0||U.command!==void 0)&&(U.command===void 0||T.is(U.command))&&(U.isPreferred===void 0||ae.boolean(U.isPreferred))&&(U.edit===void 0||N.is(U.edit))}B.is=re})(ca||(e.CodeAction=ca={}));var qs;(function(B){function te(G,U){var le={range:G};return ae.defined(U)&&(le.data=U),le}B.create=te;function re(G){var U=G;return ae.defined(U)&&a.is(U.range)&&(ae.undefined(U.command)||T.is(U.command))}B.is=re})(qs||(e.CodeLens=qs={}));var Jl;(function(B){function te(G,U){return{tabSize:G,insertSpaces:U}}B.create=te;function re(G){var U=G;return ae.defined(U)&&ae.uinteger(U.tabSize)&&ae.boolean(U.insertSpaces)}B.is=re})(Jl||(e.FormattingOptions=Jl={}));var $s;(function(B){function te(G,U,le){return{range:G,target:U,data:le}}B.create=te;function re(G){var U=G;return ae.defined(U)&&a.is(U.range)&&(ae.undefined(U.target)||ae.string(U.target))}B.is=re})($s||(e.DocumentLink=$s={}));var Z;(function(B){function te(G,U){return{range:G,parent:U}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&a.is(U.range)&&(U.parent===void 0||B.is(U.parent))}B.is=re})(Z||(e.SelectionRange=Z={}));var pe;(function(B){B.namespace="namespace",B.type="type",B.class="class",B.enum="enum",B.interface="interface",B.struct="struct",B.typeParameter="typeParameter",B.parameter="parameter",B.variable="variable",B.property="property",B.enumMember="enumMember",B.event="event",B.function="function",B.method="method",B.macro="macro",B.keyword="keyword",B.modifier="modifier",B.comment="comment",B.string="string",B.number="number",B.regexp="regexp",B.operator="operator",B.decorator="decorator"})(pe||(e.SemanticTokenTypes=pe={}));var Te;(function(B){B.declaration="declaration",B.definition="definition",B.readonly="readonly",B.static="static",B.deprecated="deprecated",B.abstract="abstract",B.async="async",B.modification="modification",B.documentation="documentation",B.defaultLibrary="defaultLibrary"})(Te||(e.SemanticTokenModifiers=Te={}));var $e;(function(B){function te(re){var G=re;return ae.objectLiteral(G)&&(G.resultId===void 0||typeof G.resultId=="string")&&Array.isArray(G.data)&&(G.data.length===0||typeof G.data[0]=="number")}B.is=te})($e||(e.SemanticTokens=$e={}));var tn;(function(B){function te(G,U){return{range:G,text:U}}B.create=te;function re(G){var U=G;return U!=null&&a.is(U.range)&&ae.string(U.text)}B.is=re})(tn||(e.InlineValueText=tn={}));var Kt;(function(B){function te(G,U,le){return{range:G,variableName:U,caseSensitiveLookup:le}}B.create=te;function re(G){var U=G;return U!=null&&a.is(U.range)&&ae.boolean(U.caseSensitiveLookup)&&(ae.string(U.variableName)||U.variableName===void 0)}B.is=re})(Kt||(e.InlineValueVariableLookup=Kt={}));var Sn;(function(B){function te(G,U){return{range:G,expression:U}}B.create=te;function re(G){var U=G;return U!=null&&a.is(U.range)&&(ae.string(U.expression)||U.expression===void 0)}B.is=re})(Sn||(e.InlineValueEvaluatableExpression=Sn={}));var On;(function(B){function te(G,U){return{frameId:G,stoppedLocation:U}}B.create=te;function re(G){var U=G;return ae.defined(U)&&a.is(G.stoppedLocation)}B.is=re})(On||(e.InlineValueContext=On={}));var At;(function(B){B.Type=1,B.Parameter=2;function te(re){return re===1||re===2}B.is=te})(At||(e.InlayHintKind=At={}));var Cn;(function(B){function te(G){return{value:G}}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&(U.tooltip===void 0||ae.string(U.tooltip)||ee.is(U.tooltip))&&(U.location===void 0||l.is(U.location))&&(U.command===void 0||T.is(U.command))}B.is=re})(Cn||(e.InlayHintLabelPart=Cn={}));var zt;(function(B){function te(G,U,le){var be={position:G,label:U};return le!==void 0&&(be.kind=le),be}B.create=te;function re(G){var U=G;return ae.objectLiteral(U)&&o.is(U.position)&&(ae.string(U.label)||ae.typedArray(U.label,Cn.is))&&(U.kind===void 0||At.is(U.kind))&&U.textEdits===void 0||ae.typedArray(U.textEdits,A.is)&&(U.tooltip===void 0||ae.string(U.tooltip)||ee.is(U.tooltip))&&(U.paddingLeft===void 0||ae.boolean(U.paddingLeft))&&(U.paddingRight===void 0||ae.boolean(U.paddingRight))}B.is=re})(zt||(e.InlayHint=zt={}));var $n;(function(B){function te(re){return{kind:"snippet",value:re}}B.createSnippet=te})($n||(e.StringValue=$n={}));var Er;(function(B){function te(re,G,U,le){return{insertText:re,filterText:G,range:U,command:le}}B.create=te})(Er||(e.InlineCompletionItem=Er={}));var Ui;(function(B){function te(re){return{items:re}}B.create=te})(Ui||(e.InlineCompletionList=Ui={}));var Wf;(function(B){B.Invoked=0,B.Automatic=1})(Wf||(e.InlineCompletionTriggerKind=Wf={}));var S0;(function(B){function te(re,G){return{range:re,text:G}}B.create=te})(S0||(e.SelectedCompletionInfo=S0={}));var lb;(function(B){function te(re,G){return{triggerKind:re,selectedCompletionInfo:G}}B.create=te})(lb||(e.InlineCompletionContext=lb={}));var C0;(function(B){function te(re){var G=re;return ae.objectLiteral(G)&&r.is(G.uri)&&ae.string(G.name)}B.is=te})(C0||(e.WorkspaceFolder=C0={})),e.EOL=[`
|
|
33
33
|
`,`\r
|
|
34
34
|
`,"\r"];var x0;(function(B){function te(le,be,ct,Jn){return new EE(le,be,ct,Jn)}B.create=te;function re(le){var be=le;return!!(ae.defined(be)&&ae.string(be.uri)&&(ae.undefined(be.languageId)||ae.string(be.languageId))&&ae.uinteger(be.lineCount)&&ae.func(be.getText)&&ae.func(be.positionAt)&&ae.func(be.offsetAt))}B.is=re;function G(le,be){for(var ct=le.getText(),Jn=U(be,function(au,Uf){var k0=au.range.start.line-Uf.range.start.line;return k0===0?au.range.start.character-Uf.range.start.character:k0}),Fn=ct.length,ls=Jn.length-1;ls>=0;ls--){var zs=Jn[ls],ua=le.offsetAt(zs.range.start),Pt=le.offsetAt(zs.range.end);if(Pt<=Fn)ct=ct.substring(0,ua)+zs.newText+ct.substring(Pt,ct.length);else throw new Error("Overlapping edit");Fn=ua}return ct}B.applyEdits=G;function U(le,be){if(le.length<=1)return le;var ct=le.length/2|0,Jn=le.slice(0,ct),Fn=le.slice(ct);U(Jn,be),U(Fn,be);for(var ls=0,zs=0,ua=0;ls<Jn.length&&zs<Fn.length;){var Pt=be(Jn[ls],Fn[zs]);Pt<=0?le[ua++]=Jn[ls++]:le[ua++]=Fn[zs++]}for(;ls<Jn.length;)le[ua++]=Jn[ls++];for(;zs<Fn.length;)le[ua++]=Fn[zs++];return le}})(x0||(e.TextDocument=x0={}));var EE=function(){function B(te,re,G,U){this._uri=te,this._languageId=re,this._version=G,this._content=U,this._lineOffsets=void 0}return Object.defineProperty(B.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),B.prototype.getText=function(te){if(te){var re=this.offsetAt(te.start),G=this.offsetAt(te.end);return this._content.substring(re,G)}return this._content},B.prototype.update=function(te,re){this._content=te.text,this._version=re,this._lineOffsets=void 0},B.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var te=[],re=this._content,G=!0,U=0;U<re.length;U++){G&&(te.push(U),G=!1);var le=re.charAt(U);G=le==="\r"||le===`
|
|
35
35
|
`,le==="\r"&&U+1<re.length&&re.charAt(U+1)===`
|
|
36
|
-
`&&U++}G&&re.length>0&&te.push(re.length),this._lineOffsets=te}return this._lineOffsets},B.prototype.positionAt=function(te){te=Math.max(Math.min(te,this._content.length),0);var re=this.getLineOffsets(),G=0,U=re.length;if(U===0)return o.create(0,te);for(;G<U;){var le=Math.floor((G+U)/2);re[le]>te?U=le:G=le+1}var be=G-1;return o.create(be,te-re[be])},B.prototype.offsetAt=function(te){var re=this.getLineOffsets();if(te.line>=re.length)return this._content.length;if(te.line<0)return 0;var G=re[te.line],U=te.line+1<re.length?re[te.line+1]:this._content.length;return Math.max(Math.min(G+te.character,U),G)},Object.defineProperty(B.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),B}(),ae;(function(B){var te=Object.prototype.toString;function re(Pt){return typeof Pt<"u"}B.defined=re;function G(Pt){return typeof Pt>"u"}B.undefined=G;function U(Pt){return Pt===!0||Pt===!1}B.boolean=U;function le(Pt){return te.call(Pt)==="[object String]"}B.string=le;function be(Pt){return te.call(Pt)==="[object Number]"}B.number=be;function ct(Pt,au,Uf){return te.call(Pt)==="[object Number]"&&au<=Pt&&Pt<=Uf}B.numberRange=ct;function Jn(Pt){return te.call(Pt)==="[object Number]"&&-2147483648<=Pt&&Pt<=2147483647}B.integer=Jn;function Fn(Pt){return te.call(Pt)==="[object Number]"&&0<=Pt&&Pt<=2147483647}B.uinteger=Fn;function ls(Pt){return te.call(Pt)==="[object Function]"}B.func=ls;function zs(Pt){return Pt!==null&&typeof Pt=="object"}B.objectLiteral=zs;function ua(Pt,au){return Array.isArray(Pt)&&Pt.every(au)}B.typedArray=ua})(ae||(ae={}))})});var Qn=I(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.ProtocolNotificationType=ps.ProtocolNotificationType0=ps.ProtocolRequestType=ps.ProtocolRequestType0=ps.RegistrationType=ps.MessageDirection=void 0;var hp=wh(),N7;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(N7||(ps.MessageDirection=N7={}));var JM=class{constructor(e){this.method=e}};ps.RegistrationType=JM;var YM=class extends hp.RequestType0{constructor(e){super(e)}};ps.ProtocolRequestType0=YM;var QM=class extends hp.RequestType{constructor(e){super(e,hp.ParameterStructures.byName)}};ps.ProtocolRequestType=QM;var XM=class extends hp.NotificationType0{constructor(e){super(e)}};ps.ProtocolNotificationType0=XM;var ZM=class extends hp.NotificationType{constructor(e){super(e,hp.ParameterStructures.byName)}};ps.ProtocolNotificationType=ZM});var N1=I(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.objectLiteral=Mr.typedArray=Mr.stringArray=Mr.array=Mr.func=Mr.error=Mr.number=Mr.string=Mr.boolean=void 0;function Uxe(t){return t===!0||t===!1}Mr.boolean=Uxe;function L7(t){return typeof t=="string"||t instanceof String}Mr.string=L7;function Bxe(t){return typeof t=="number"||t instanceof Number}Mr.number=Bxe;function Hxe(t){return t instanceof Error}Mr.error=Hxe;function Vxe(t){return typeof t=="function"}Mr.func=Vxe;function q7(t){return Array.isArray(t)}Mr.array=q7;function Kxe(t){return q7(t)&&t.every(e=>L7(e))}Mr.stringArray=Kxe;function Gxe(t,e){return Array.isArray(t)&&t.every(e)}Mr.typedArray=Gxe;function Jxe(t){return t!==null&&typeof t=="object"}Mr.objectLiteral=Jxe});var j7=I(L1=>{"use strict";Object.defineProperty(L1,"__esModule",{value:!0});L1.ImplementationRequest=void 0;var $7=Qn(),z7;(function(t){t.method="textDocument/implementation",t.messageDirection=$7.MessageDirection.clientToServer,t.type=new $7.ProtocolRequestType(t.method)})(z7||(L1.ImplementationRequest=z7={}))});var B7=I(q1=>{"use strict";Object.defineProperty(q1,"__esModule",{value:!0});q1.TypeDefinitionRequest=void 0;var W7=Qn(),U7;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=W7.MessageDirection.clientToServer,t.type=new W7.ProtocolRequestType(t.method)})(U7||(q1.TypeDefinitionRequest=U7={}))});var K7=I(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.DidChangeWorkspaceFoldersNotification=fp.WorkspaceFoldersRequest=void 0;var $1=Qn(),H7;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=$1.MessageDirection.serverToClient,t.type=new $1.ProtocolRequestType0(t.method)})(H7||(fp.WorkspaceFoldersRequest=H7={}));var V7;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=$1.MessageDirection.clientToServer,t.type=new $1.ProtocolNotificationType(t.method)})(V7||(fp.DidChangeWorkspaceFoldersNotification=V7={}))});var Y7=I(z1=>{"use strict";Object.defineProperty(z1,"__esModule",{value:!0});z1.ConfigurationRequest=void 0;var G7=Qn(),J7;(function(t){t.method="workspace/configuration",t.messageDirection=G7.MessageDirection.serverToClient,t.type=new G7.ProtocolRequestType(t.method)})(J7||(z1.ConfigurationRequest=J7={}))});var Z7=I(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.ColorPresentationRequest=pp.DocumentColorRequest=void 0;var j1=Qn(),Q7;(function(t){t.method="textDocument/documentColor",t.messageDirection=j1.MessageDirection.clientToServer,t.type=new j1.ProtocolRequestType(t.method)})(Q7||(pp.DocumentColorRequest=Q7={}));var X7;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=j1.MessageDirection.clientToServer,t.type=new j1.ProtocolRequestType(t.method)})(X7||(pp.ColorPresentationRequest=X7={}))});var n6=I(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.FoldingRangeRefreshRequest=mp.FoldingRangeRequest=void 0;var W1=Qn(),e6;(function(t){t.method="textDocument/foldingRange",t.messageDirection=W1.MessageDirection.clientToServer,t.type=new W1.ProtocolRequestType(t.method)})(e6||(mp.FoldingRangeRequest=e6={}));var t6;(function(t){t.method="workspace/foldingRange/refresh",t.messageDirection=W1.MessageDirection.serverToClient,t.type=new W1.ProtocolRequestType0(t.method)})(t6||(mp.FoldingRangeRefreshRequest=t6={}))});var s6=I(U1=>{"use strict";Object.defineProperty(U1,"__esModule",{value:!0});U1.DeclarationRequest=void 0;var r6=Qn(),i6;(function(t){t.method="textDocument/declaration",t.messageDirection=r6.MessageDirection.clientToServer,t.type=new r6.ProtocolRequestType(t.method)})(i6||(U1.DeclarationRequest=i6={}))});var l6=I(B1=>{"use strict";Object.defineProperty(B1,"__esModule",{value:!0});B1.SelectionRangeRequest=void 0;var o6=Qn(),a6;(function(t){t.method="textDocument/selectionRange",t.messageDirection=o6.MessageDirection.clientToServer,t.type=new o6.ProtocolRequestType(t.method)})(a6||(B1.SelectionRangeRequest=a6={}))});var h6=I(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.WorkDoneProgressCancelNotification=Cu.WorkDoneProgressCreateRequest=Cu.WorkDoneProgress=void 0;var Yxe=wh(),H1=Qn(),c6;(function(t){t.type=new Yxe.ProgressType;function e(n){return n===t.type}t.is=e})(c6||(Cu.WorkDoneProgress=c6={}));var u6;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=H1.MessageDirection.serverToClient,t.type=new H1.ProtocolRequestType(t.method)})(u6||(Cu.WorkDoneProgressCreateRequest=u6={}));var d6;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=H1.MessageDirection.clientToServer,t.type=new H1.ProtocolNotificationType(t.method)})(d6||(Cu.WorkDoneProgressCancelNotification=d6={}))});var g6=I(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.CallHierarchyOutgoingCallsRequest=xu.CallHierarchyIncomingCallsRequest=xu.CallHierarchyPrepareRequest=void 0;var gp=Qn(),f6;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=gp.MessageDirection.clientToServer,t.type=new gp.ProtocolRequestType(t.method)})(f6||(xu.CallHierarchyPrepareRequest=f6={}));var p6;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=gp.MessageDirection.clientToServer,t.type=new gp.ProtocolRequestType(t.method)})(p6||(xu.CallHierarchyIncomingCallsRequest=p6={}));var m6;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=gp.MessageDirection.clientToServer,t.type=new gp.ProtocolRequestType(t.method)})(m6||(xu.CallHierarchyOutgoingCallsRequest=m6={}))});var S6=I(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.SemanticTokensRefreshRequest=ms.SemanticTokensRangeRequest=ms.SemanticTokensDeltaRequest=ms.SemanticTokensRequest=ms.SemanticTokensRegistrationType=ms.TokenFormat=void 0;var oc=Qn(),b6;(function(t){t.Relative="relative"})(b6||(ms.TokenFormat=b6={}));var Db;(function(t){t.method="textDocument/semanticTokens",t.type=new oc.RegistrationType(t.method)})(Db||(ms.SemanticTokensRegistrationType=Db={}));var y6;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=oc.MessageDirection.clientToServer,t.type=new oc.ProtocolRequestType(t.method),t.registrationMethod=Db.method})(y6||(ms.SemanticTokensRequest=y6={}));var v6;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=oc.MessageDirection.clientToServer,t.type=new oc.ProtocolRequestType(t.method),t.registrationMethod=Db.method})(v6||(ms.SemanticTokensDeltaRequest=v6={}));var w6;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=oc.MessageDirection.clientToServer,t.type=new oc.ProtocolRequestType(t.method),t.registrationMethod=Db.method})(w6||(ms.SemanticTokensRangeRequest=w6={}));var _6;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=oc.MessageDirection.serverToClient,t.type=new oc.ProtocolRequestType0(t.method)})(_6||(ms.SemanticTokensRefreshRequest=_6={}))});var k6=I(V1=>{"use strict";Object.defineProperty(V1,"__esModule",{value:!0});V1.ShowDocumentRequest=void 0;var C6=Qn(),x6;(function(t){t.method="window/showDocument",t.messageDirection=C6.MessageDirection.serverToClient,t.type=new C6.ProtocolRequestType(t.method)})(x6||(V1.ShowDocumentRequest=x6={}))});var E6=I(K1=>{"use strict";Object.defineProperty(K1,"__esModule",{value:!0});K1.LinkedEditingRangeRequest=void 0;var A6=Qn(),F6;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=A6.MessageDirection.clientToServer,t.type=new A6.ProtocolRequestType(t.method)})(F6||(K1.LinkedEditingRangeRequest=F6={}))});var N6=I(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.WillDeleteFilesRequest=Ei.DidDeleteFilesNotification=Ei.DidRenameFilesNotification=Ei.WillRenameFilesRequest=Ei.DidCreateFilesNotification=Ei.WillCreateFilesRequest=Ei.FileOperationPatternKind=void 0;var xo=Qn(),T6;(function(t){t.file="file",t.folder="folder"})(T6||(Ei.FileOperationPatternKind=T6={}));var M6;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolRequestType(t.method)})(M6||(Ei.WillCreateFilesRequest=M6={}));var D6;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolNotificationType(t.method)})(D6||(Ei.DidCreateFilesNotification=D6={}));var R6;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolRequestType(t.method)})(R6||(Ei.WillRenameFilesRequest=R6={}));var I6;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolNotificationType(t.method)})(I6||(Ei.DidRenameFilesNotification=I6={}));var P6;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolNotificationType(t.method)})(P6||(Ei.DidDeleteFilesNotification=P6={}));var O6;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolRequestType(t.method)})(O6||(Ei.WillDeleteFilesRequest=O6={}))});var j6=I(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.MonikerRequest=ku.MonikerKind=ku.UniquenessLevel=void 0;var L6=Qn(),q6;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(q6||(ku.UniquenessLevel=q6={}));var $6;(function(t){t.$import="import",t.$export="export",t.local="local"})($6||(ku.MonikerKind=$6={}));var z6;(function(t){t.method="textDocument/moniker",t.messageDirection=L6.MessageDirection.clientToServer,t.type=new L6.ProtocolRequestType(t.method)})(z6||(ku.MonikerRequest=z6={}))});var H6=I(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.TypeHierarchySubtypesRequest=Au.TypeHierarchySupertypesRequest=Au.TypeHierarchyPrepareRequest=void 0;var bp=Qn(),W6;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=bp.MessageDirection.clientToServer,t.type=new bp.ProtocolRequestType(t.method)})(W6||(Au.TypeHierarchyPrepareRequest=W6={}));var U6;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=bp.MessageDirection.clientToServer,t.type=new bp.ProtocolRequestType(t.method)})(U6||(Au.TypeHierarchySupertypesRequest=U6={}));var B6;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=bp.MessageDirection.clientToServer,t.type=new bp.ProtocolRequestType(t.method)})(B6||(Au.TypeHierarchySubtypesRequest=B6={}))});var G6=I(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.InlineValueRefreshRequest=yp.InlineValueRequest=void 0;var G1=Qn(),V6;(function(t){t.method="textDocument/inlineValue",t.messageDirection=G1.MessageDirection.clientToServer,t.type=new G1.ProtocolRequestType(t.method)})(V6||(yp.InlineValueRequest=V6={}));var K6;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=G1.MessageDirection.serverToClient,t.type=new G1.ProtocolRequestType0(t.method)})(K6||(yp.InlineValueRefreshRequest=K6={}))});var X6=I(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.InlayHintRefreshRequest=Fu.InlayHintResolveRequest=Fu.InlayHintRequest=void 0;var vp=Qn(),J6;(function(t){t.method="textDocument/inlayHint",t.messageDirection=vp.MessageDirection.clientToServer,t.type=new vp.ProtocolRequestType(t.method)})(J6||(Fu.InlayHintRequest=J6={}));var Y6;(function(t){t.method="inlayHint/resolve",t.messageDirection=vp.MessageDirection.clientToServer,t.type=new vp.ProtocolRequestType(t.method)})(Y6||(Fu.InlayHintResolveRequest=Y6={}));var Q6;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=vp.MessageDirection.serverToClient,t.type=new vp.ProtocolRequestType0(t.method)})(Q6||(Fu.InlayHintRefreshRequest=Q6={}))});var sB=I(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.DiagnosticRefreshRequest=ko.WorkspaceDiagnosticRequest=ko.DocumentDiagnosticRequest=ko.DocumentDiagnosticReportKind=ko.DiagnosticServerCancellationData=void 0;var iB=wh(),Qxe=N1(),wp=Qn(),Z6;(function(t){function e(n){let r=n;return r&&Qxe.boolean(r.retriggerRequest)}t.is=e})(Z6||(ko.DiagnosticServerCancellationData=Z6={}));var eB;(function(t){t.Full="full",t.Unchanged="unchanged"})(eB||(ko.DocumentDiagnosticReportKind=eB={}));var tB;(function(t){t.method="textDocument/diagnostic",t.messageDirection=wp.MessageDirection.clientToServer,t.type=new wp.ProtocolRequestType(t.method),t.partialResult=new iB.ProgressType})(tB||(ko.DocumentDiagnosticRequest=tB={}));var nB;(function(t){t.method="workspace/diagnostic",t.messageDirection=wp.MessageDirection.clientToServer,t.type=new wp.ProtocolRequestType(t.method),t.partialResult=new iB.ProgressType})(nB||(ko.WorkspaceDiagnosticRequest=nB={}));var rB;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=wp.MessageDirection.serverToClient,t.type=new wp.ProtocolRequestType0(t.method)})(rB||(ko.DiagnosticRefreshRequest=rB={}))});var hB=I(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.DidCloseNotebookDocumentNotification=ar.DidSaveNotebookDocumentNotification=ar.DidChangeNotebookDocumentNotification=ar.NotebookCellArrayChange=ar.DidOpenNotebookDocumentNotification=ar.NotebookDocumentSyncRegistrationType=ar.NotebookDocument=ar.NotebookCell=ar.ExecutionSummary=ar.NotebookCellKind=void 0;var Rb=yr(),ga=N1(),Xa=Qn(),eD;(function(t){t.Markup=1,t.Code=2;function e(n){return n===1||n===2}t.is=e})(eD||(ar.NotebookCellKind=eD={}));var tD;(function(t){function e(i,s){let o={executionOrder:i};return(s===!0||s===!1)&&(o.success=s),o}t.create=e;function n(i){let s=i;return ga.objectLiteral(s)&&Rb.uinteger.is(s.executionOrder)&&(s.success===void 0||ga.boolean(s.success))}t.is=n;function r(i,s){return i===s?!0:i==null||s===null||s===void 0?!1:i.executionOrder===s.executionOrder&&i.success===s.success}t.equals=r})(tD||(ar.ExecutionSummary=tD={}));var J1;(function(t){function e(s,o){return{kind:s,document:o}}t.create=e;function n(s){let o=s;return ga.objectLiteral(o)&&eD.is(o.kind)&&Rb.DocumentUri.is(o.document)&&(o.metadata===void 0||ga.objectLiteral(o.metadata))}t.is=n;function r(s,o){let a=new Set;return s.document!==o.document&&a.add("document"),s.kind!==o.kind&&a.add("kind"),s.executionSummary!==o.executionSummary&&a.add("executionSummary"),(s.metadata!==void 0||o.metadata!==void 0)&&!i(s.metadata,o.metadata)&&a.add("metadata"),(s.executionSummary!==void 0||o.executionSummary!==void 0)&&!tD.equals(s.executionSummary,o.executionSummary)&&a.add("executionSummary"),a}t.diff=r;function i(s,o){if(s===o)return!0;if(s==null||o===null||o===void 0||typeof s!=typeof o||typeof s!="object")return!1;let a=Array.isArray(s),l=Array.isArray(o);if(a!==l)return!1;if(a&&l){if(s.length!==o.length)return!1;for(let c=0;c<s.length;c++)if(!i(s[c],o[c]))return!1}if(ga.objectLiteral(s)&&ga.objectLiteral(o)){let c=Object.keys(s),u=Object.keys(o);if(c.length!==u.length||(c.sort(),u.sort(),!i(c,u)))return!1;for(let d=0;d<c.length;d++){let f=c[d];if(!i(s[f],o[f]))return!1}}return!0}})(J1||(ar.NotebookCell=J1={}));var oB;(function(t){function e(r,i,s,o){return{uri:r,notebookType:i,version:s,cells:o}}t.create=e;function n(r){let i=r;return ga.objectLiteral(i)&&ga.string(i.uri)&&Rb.integer.is(i.version)&&ga.typedArray(i.cells,J1.is)}t.is=n})(oB||(ar.NotebookDocument=oB={}));var _p;(function(t){t.method="notebookDocument/sync",t.messageDirection=Xa.MessageDirection.clientToServer,t.type=new Xa.RegistrationType(t.method)})(_p||(ar.NotebookDocumentSyncRegistrationType=_p={}));var aB;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=Xa.MessageDirection.clientToServer,t.type=new Xa.ProtocolNotificationType(t.method),t.registrationMethod=_p.method})(aB||(ar.DidOpenNotebookDocumentNotification=aB={}));var lB;(function(t){function e(r){let i=r;return ga.objectLiteral(i)&&Rb.uinteger.is(i.start)&&Rb.uinteger.is(i.deleteCount)&&(i.cells===void 0||ga.typedArray(i.cells,J1.is))}t.is=e;function n(r,i,s){let o={start:r,deleteCount:i};return s!==void 0&&(o.cells=s),o}t.create=n})(lB||(ar.NotebookCellArrayChange=lB={}));var cB;(function(t){t.method="notebookDocument/didChange",t.messageDirection=Xa.MessageDirection.clientToServer,t.type=new Xa.ProtocolNotificationType(t.method),t.registrationMethod=_p.method})(cB||(ar.DidChangeNotebookDocumentNotification=cB={}));var uB;(function(t){t.method="notebookDocument/didSave",t.messageDirection=Xa.MessageDirection.clientToServer,t.type=new Xa.ProtocolNotificationType(t.method),t.registrationMethod=_p.method})(uB||(ar.DidSaveNotebookDocumentNotification=uB={}));var dB;(function(t){t.method="notebookDocument/didClose",t.messageDirection=Xa.MessageDirection.clientToServer,t.type=new Xa.ProtocolNotificationType(t.method),t.registrationMethod=_p.method})(dB||(ar.DidCloseNotebookDocumentNotification=dB={}))});var mB=I(Y1=>{"use strict";Object.defineProperty(Y1,"__esModule",{value:!0});Y1.InlineCompletionRequest=void 0;var fB=Qn(),pB;(function(t){t.method="textDocument/inlineCompletion",t.messageDirection=fB.MessageDirection.clientToServer,t.type=new fB.ProtocolRequestType(t.method)})(pB||(Y1.InlineCompletionRequest=pB={}))});var EH=I(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.WorkspaceSymbolRequest=J.CodeActionResolveRequest=J.CodeActionRequest=J.DocumentSymbolRequest=J.DocumentHighlightRequest=J.ReferencesRequest=J.DefinitionRequest=J.SignatureHelpRequest=J.SignatureHelpTriggerKind=J.HoverRequest=J.CompletionResolveRequest=J.CompletionRequest=J.CompletionTriggerKind=J.PublishDiagnosticsNotification=J.WatchKind=J.RelativePattern=J.FileChangeType=J.DidChangeWatchedFilesNotification=J.WillSaveTextDocumentWaitUntilRequest=J.WillSaveTextDocumentNotification=J.TextDocumentSaveReason=J.DidSaveTextDocumentNotification=J.DidCloseTextDocumentNotification=J.DidChangeTextDocumentNotification=J.TextDocumentContentChangeEvent=J.DidOpenTextDocumentNotification=J.TextDocumentSyncKind=J.TelemetryEventNotification=J.LogMessageNotification=J.ShowMessageRequest=J.ShowMessageNotification=J.MessageType=J.DidChangeConfigurationNotification=J.ExitNotification=J.ShutdownRequest=J.InitializedNotification=J.InitializeErrorCodes=J.InitializeRequest=J.WorkDoneProgressOptions=J.TextDocumentRegistrationOptions=J.StaticRegistrationOptions=J.PositionEncodingKind=J.FailureHandlingKind=J.ResourceOperationKind=J.UnregistrationRequest=J.RegistrationRequest=J.DocumentSelector=J.NotebookCellTextDocumentFilter=J.NotebookDocumentFilter=J.TextDocumentFilter=void 0;J.MonikerRequest=J.MonikerKind=J.UniquenessLevel=J.WillDeleteFilesRequest=J.DidDeleteFilesNotification=J.WillRenameFilesRequest=J.DidRenameFilesNotification=J.WillCreateFilesRequest=J.DidCreateFilesNotification=J.FileOperationPatternKind=J.LinkedEditingRangeRequest=J.ShowDocumentRequest=J.SemanticTokensRegistrationType=J.SemanticTokensRefreshRequest=J.SemanticTokensRangeRequest=J.SemanticTokensDeltaRequest=J.SemanticTokensRequest=J.TokenFormat=J.CallHierarchyPrepareRequest=J.CallHierarchyOutgoingCallsRequest=J.CallHierarchyIncomingCallsRequest=J.WorkDoneProgressCancelNotification=J.WorkDoneProgressCreateRequest=J.WorkDoneProgress=J.SelectionRangeRequest=J.DeclarationRequest=J.FoldingRangeRefreshRequest=J.FoldingRangeRequest=J.ColorPresentationRequest=J.DocumentColorRequest=J.ConfigurationRequest=J.DidChangeWorkspaceFoldersNotification=J.WorkspaceFoldersRequest=J.TypeDefinitionRequest=J.ImplementationRequest=J.ApplyWorkspaceEditRequest=J.ExecuteCommandRequest=J.PrepareRenameRequest=J.RenameRequest=J.PrepareSupportDefaultBehavior=J.DocumentOnTypeFormattingRequest=J.DocumentRangesFormattingRequest=J.DocumentRangeFormattingRequest=J.DocumentFormattingRequest=J.DocumentLinkResolveRequest=J.DocumentLinkRequest=J.CodeLensRefreshRequest=J.CodeLensResolveRequest=J.CodeLensRequest=J.WorkspaceSymbolResolveRequest=void 0;J.InlineCompletionRequest=J.DidCloseNotebookDocumentNotification=J.DidSaveNotebookDocumentNotification=J.DidChangeNotebookDocumentNotification=J.NotebookCellArrayChange=J.DidOpenNotebookDocumentNotification=J.NotebookDocumentSyncRegistrationType=J.NotebookDocument=J.NotebookCell=J.ExecutionSummary=J.NotebookCellKind=J.DiagnosticRefreshRequest=J.WorkspaceDiagnosticRequest=J.DocumentDiagnosticRequest=J.DocumentDiagnosticReportKind=J.DiagnosticServerCancellationData=J.InlayHintRefreshRequest=J.InlayHintResolveRequest=J.InlayHintRequest=J.InlineValueRefreshRequest=J.InlineValueRequest=J.TypeHierarchySupertypesRequest=J.TypeHierarchySubtypesRequest=J.TypeHierarchyPrepareRequest=void 0;var Ee=Qn(),gB=yr(),Zr=N1(),Xxe=j7();Object.defineProperty(J,"ImplementationRequest",{enumerable:!0,get:function(){return Xxe.ImplementationRequest}});var Zxe=B7();Object.defineProperty(J,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Zxe.TypeDefinitionRequest}});var xH=K7();Object.defineProperty(J,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return xH.WorkspaceFoldersRequest}});Object.defineProperty(J,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return xH.DidChangeWorkspaceFoldersNotification}});var eke=Y7();Object.defineProperty(J,"ConfigurationRequest",{enumerable:!0,get:function(){return eke.ConfigurationRequest}});var kH=Z7();Object.defineProperty(J,"DocumentColorRequest",{enumerable:!0,get:function(){return kH.DocumentColorRequest}});Object.defineProperty(J,"ColorPresentationRequest",{enumerable:!0,get:function(){return kH.ColorPresentationRequest}});var AH=n6();Object.defineProperty(J,"FoldingRangeRequest",{enumerable:!0,get:function(){return AH.FoldingRangeRequest}});Object.defineProperty(J,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return AH.FoldingRangeRefreshRequest}});var tke=s6();Object.defineProperty(J,"DeclarationRequest",{enumerable:!0,get:function(){return tke.DeclarationRequest}});var nke=l6();Object.defineProperty(J,"SelectionRangeRequest",{enumerable:!0,get:function(){return nke.SelectionRangeRequest}});var oD=h6();Object.defineProperty(J,"WorkDoneProgress",{enumerable:!0,get:function(){return oD.WorkDoneProgress}});Object.defineProperty(J,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return oD.WorkDoneProgressCreateRequest}});Object.defineProperty(J,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return oD.WorkDoneProgressCancelNotification}});var aD=g6();Object.defineProperty(J,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return aD.CallHierarchyIncomingCallsRequest}});Object.defineProperty(J,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return aD.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(J,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return aD.CallHierarchyPrepareRequest}});var Sp=S6();Object.defineProperty(J,"TokenFormat",{enumerable:!0,get:function(){return Sp.TokenFormat}});Object.defineProperty(J,"SemanticTokensRequest",{enumerable:!0,get:function(){return Sp.SemanticTokensRequest}});Object.defineProperty(J,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return Sp.SemanticTokensDeltaRequest}});Object.defineProperty(J,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return Sp.SemanticTokensRangeRequest}});Object.defineProperty(J,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return Sp.SemanticTokensRefreshRequest}});Object.defineProperty(J,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return Sp.SemanticTokensRegistrationType}});var rke=k6();Object.defineProperty(J,"ShowDocumentRequest",{enumerable:!0,get:function(){return rke.ShowDocumentRequest}});var ike=E6();Object.defineProperty(J,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return ike.LinkedEditingRangeRequest}});var _h=N6();Object.defineProperty(J,"FileOperationPatternKind",{enumerable:!0,get:function(){return _h.FileOperationPatternKind}});Object.defineProperty(J,"DidCreateFilesNotification",{enumerable:!0,get:function(){return _h.DidCreateFilesNotification}});Object.defineProperty(J,"WillCreateFilesRequest",{enumerable:!0,get:function(){return _h.WillCreateFilesRequest}});Object.defineProperty(J,"DidRenameFilesNotification",{enumerable:!0,get:function(){return _h.DidRenameFilesNotification}});Object.defineProperty(J,"WillRenameFilesRequest",{enumerable:!0,get:function(){return _h.WillRenameFilesRequest}});Object.defineProperty(J,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return _h.DidDeleteFilesNotification}});Object.defineProperty(J,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return _h.WillDeleteFilesRequest}});var lD=j6();Object.defineProperty(J,"UniquenessLevel",{enumerable:!0,get:function(){return lD.UniquenessLevel}});Object.defineProperty(J,"MonikerKind",{enumerable:!0,get:function(){return lD.MonikerKind}});Object.defineProperty(J,"MonikerRequest",{enumerable:!0,get:function(){return lD.MonikerRequest}});var cD=H6();Object.defineProperty(J,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return cD.TypeHierarchyPrepareRequest}});Object.defineProperty(J,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return cD.TypeHierarchySubtypesRequest}});Object.defineProperty(J,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return cD.TypeHierarchySupertypesRequest}});var FH=G6();Object.defineProperty(J,"InlineValueRequest",{enumerable:!0,get:function(){return FH.InlineValueRequest}});Object.defineProperty(J,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return FH.InlineValueRefreshRequest}});var uD=X6();Object.defineProperty(J,"InlayHintRequest",{enumerable:!0,get:function(){return uD.InlayHintRequest}});Object.defineProperty(J,"InlayHintResolveRequest",{enumerable:!0,get:function(){return uD.InlayHintResolveRequest}});Object.defineProperty(J,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return uD.InlayHintRefreshRequest}});var Ib=sB();Object.defineProperty(J,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Ib.DiagnosticServerCancellationData}});Object.defineProperty(J,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Ib.DocumentDiagnosticReportKind}});Object.defineProperty(J,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Ib.DocumentDiagnosticRequest}});Object.defineProperty(J,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Ib.WorkspaceDiagnosticRequest}});Object.defineProperty(J,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Ib.DiagnosticRefreshRequest}});var Za=hB();Object.defineProperty(J,"NotebookCellKind",{enumerable:!0,get:function(){return Za.NotebookCellKind}});Object.defineProperty(J,"ExecutionSummary",{enumerable:!0,get:function(){return Za.ExecutionSummary}});Object.defineProperty(J,"NotebookCell",{enumerable:!0,get:function(){return Za.NotebookCell}});Object.defineProperty(J,"NotebookDocument",{enumerable:!0,get:function(){return Za.NotebookDocument}});Object.defineProperty(J,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return Za.NotebookDocumentSyncRegistrationType}});Object.defineProperty(J,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return Za.DidOpenNotebookDocumentNotification}});Object.defineProperty(J,"NotebookCellArrayChange",{enumerable:!0,get:function(){return Za.NotebookCellArrayChange}});Object.defineProperty(J,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return Za.DidChangeNotebookDocumentNotification}});Object.defineProperty(J,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return Za.DidSaveNotebookDocumentNotification}});Object.defineProperty(J,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return Za.DidCloseNotebookDocumentNotification}});var ske=mB();Object.defineProperty(J,"InlineCompletionRequest",{enumerable:!0,get:function(){return ske.InlineCompletionRequest}});var nD;(function(t){function e(n){let r=n;return Zr.string(r)||Zr.string(r.language)||Zr.string(r.scheme)||Zr.string(r.pattern)}t.is=e})(nD||(J.TextDocumentFilter=nD={}));var rD;(function(t){function e(n){let r=n;return Zr.objectLiteral(r)&&(Zr.string(r.notebookType)||Zr.string(r.scheme)||Zr.string(r.pattern))}t.is=e})(rD||(J.NotebookDocumentFilter=rD={}));var iD;(function(t){function e(n){let r=n;return Zr.objectLiteral(r)&&(Zr.string(r.notebook)||rD.is(r.notebook))&&(r.language===void 0||Zr.string(r.language))}t.is=e})(iD||(J.NotebookCellTextDocumentFilter=iD={}));var sD;(function(t){function e(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Zr.string(r)&&!nD.is(r)&&!iD.is(r))return!1;return!0}t.is=e})(sD||(J.DocumentSelector=sD={}));var bB;(function(t){t.method="client/registerCapability",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolRequestType(t.method)})(bB||(J.RegistrationRequest=bB={}));var yB;(function(t){t.method="client/unregisterCapability",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolRequestType(t.method)})(yB||(J.UnregistrationRequest=yB={}));var vB;(function(t){t.Create="create",t.Rename="rename",t.Delete="delete"})(vB||(J.ResourceOperationKind=vB={}));var wB;(function(t){t.Abort="abort",t.Transactional="transactional",t.TextOnlyTransactional="textOnlyTransactional",t.Undo="undo"})(wB||(J.FailureHandlingKind=wB={}));var _B;(function(t){t.UTF8="utf-8",t.UTF16="utf-16",t.UTF32="utf-32"})(_B||(J.PositionEncodingKind=_B={}));var SB;(function(t){function e(n){let r=n;return r&&Zr.string(r.id)&&r.id.length>0}t.hasId=e})(SB||(J.StaticRegistrationOptions=SB={}));var CB;(function(t){function e(n){let r=n;return r&&(r.documentSelector===null||sD.is(r.documentSelector))}t.is=e})(CB||(J.TextDocumentRegistrationOptions=CB={}));var xB;(function(t){function e(r){let i=r;return Zr.objectLiteral(i)&&(i.workDoneProgress===void 0||Zr.boolean(i.workDoneProgress))}t.is=e;function n(r){let i=r;return i&&Zr.boolean(i.workDoneProgress)}t.hasWorkDoneProgress=n})(xB||(J.WorkDoneProgressOptions=xB={}));var kB;(function(t){t.method="initialize",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(kB||(J.InitializeRequest=kB={}));var AB;(function(t){t.unknownProtocolVersion=1})(AB||(J.InitializeErrorCodes=AB={}));var FB;(function(t){t.method="initialized",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})(FB||(J.InitializedNotification=FB={}));var EB;(function(t){t.method="shutdown",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType0(t.method)})(EB||(J.ShutdownRequest=EB={}));var TB;(function(t){t.method="exit",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType0(t.method)})(TB||(J.ExitNotification=TB={}));var MB;(function(t){t.method="workspace/didChangeConfiguration",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})(MB||(J.DidChangeConfigurationNotification=MB={}));var DB;(function(t){t.Error=1,t.Warning=2,t.Info=3,t.Log=4,t.Debug=5})(DB||(J.MessageType=DB={}));var RB;(function(t){t.method="window/showMessage",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolNotificationType(t.method)})(RB||(J.ShowMessageNotification=RB={}));var IB;(function(t){t.method="window/showMessageRequest",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolRequestType(t.method)})(IB||(J.ShowMessageRequest=IB={}));var PB;(function(t){t.method="window/logMessage",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolNotificationType(t.method)})(PB||(J.LogMessageNotification=PB={}));var OB;(function(t){t.method="telemetry/event",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolNotificationType(t.method)})(OB||(J.TelemetryEventNotification=OB={}));var NB;(function(t){t.None=0,t.Full=1,t.Incremental=2})(NB||(J.TextDocumentSyncKind=NB={}));var LB;(function(t){t.method="textDocument/didOpen",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})(LB||(J.DidOpenTextDocumentNotification=LB={}));var qB;(function(t){function e(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}t.isIncremental=e;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}t.isFull=n})(qB||(J.TextDocumentContentChangeEvent=qB={}));var $B;(function(t){t.method="textDocument/didChange",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})($B||(J.DidChangeTextDocumentNotification=$B={}));var zB;(function(t){t.method="textDocument/didClose",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})(zB||(J.DidCloseTextDocumentNotification=zB={}));var jB;(function(t){t.method="textDocument/didSave",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})(jB||(J.DidSaveTextDocumentNotification=jB={}));var WB;(function(t){t.Manual=1,t.AfterDelay=2,t.FocusOut=3})(WB||(J.TextDocumentSaveReason=WB={}));var UB;(function(t){t.method="textDocument/willSave",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})(UB||(J.WillSaveTextDocumentNotification=UB={}));var BB;(function(t){t.method="textDocument/willSaveWaitUntil",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(BB||(J.WillSaveTextDocumentWaitUntilRequest=BB={}));var HB;(function(t){t.method="workspace/didChangeWatchedFiles",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})(HB||(J.DidChangeWatchedFilesNotification=HB={}));var VB;(function(t){t.Created=1,t.Changed=2,t.Deleted=3})(VB||(J.FileChangeType=VB={}));var KB;(function(t){function e(n){let r=n;return Zr.objectLiteral(r)&&(gB.URI.is(r.baseUri)||gB.WorkspaceFolder.is(r.baseUri))&&Zr.string(r.pattern)}t.is=e})(KB||(J.RelativePattern=KB={}));var GB;(function(t){t.Create=1,t.Change=2,t.Delete=4})(GB||(J.WatchKind=GB={}));var JB;(function(t){t.method="textDocument/publishDiagnostics",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolNotificationType(t.method)})(JB||(J.PublishDiagnosticsNotification=JB={}));var YB;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.TriggerForIncompleteCompletions=3})(YB||(J.CompletionTriggerKind=YB={}));var QB;(function(t){t.method="textDocument/completion",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(QB||(J.CompletionRequest=QB={}));var XB;(function(t){t.method="completionItem/resolve",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(XB||(J.CompletionResolveRequest=XB={}));var ZB;(function(t){t.method="textDocument/hover",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(ZB||(J.HoverRequest=ZB={}));var eH;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.ContentChange=3})(eH||(J.SignatureHelpTriggerKind=eH={}));var tH;(function(t){t.method="textDocument/signatureHelp",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(tH||(J.SignatureHelpRequest=tH={}));var nH;(function(t){t.method="textDocument/definition",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(nH||(J.DefinitionRequest=nH={}));var rH;(function(t){t.method="textDocument/references",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(rH||(J.ReferencesRequest=rH={}));var iH;(function(t){t.method="textDocument/documentHighlight",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(iH||(J.DocumentHighlightRequest=iH={}));var sH;(function(t){t.method="textDocument/documentSymbol",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(sH||(J.DocumentSymbolRequest=sH={}));var oH;(function(t){t.method="textDocument/codeAction",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(oH||(J.CodeActionRequest=oH={}));var aH;(function(t){t.method="codeAction/resolve",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(aH||(J.CodeActionResolveRequest=aH={}));var lH;(function(t){t.method="workspace/symbol",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(lH||(J.WorkspaceSymbolRequest=lH={}));var cH;(function(t){t.method="workspaceSymbol/resolve",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(cH||(J.WorkspaceSymbolResolveRequest=cH={}));var uH;(function(t){t.method="textDocument/codeLens",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(uH||(J.CodeLensRequest=uH={}));var dH;(function(t){t.method="codeLens/resolve",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(dH||(J.CodeLensResolveRequest=dH={}));var hH;(function(t){t.method="workspace/codeLens/refresh",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolRequestType0(t.method)})(hH||(J.CodeLensRefreshRequest=hH={}));var fH;(function(t){t.method="textDocument/documentLink",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(fH||(J.DocumentLinkRequest=fH={}));var pH;(function(t){t.method="documentLink/resolve",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(pH||(J.DocumentLinkResolveRequest=pH={}));var mH;(function(t){t.method="textDocument/formatting",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(mH||(J.DocumentFormattingRequest=mH={}));var gH;(function(t){t.method="textDocument/rangeFormatting",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(gH||(J.DocumentRangeFormattingRequest=gH={}));var bH;(function(t){t.method="textDocument/rangesFormatting",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(bH||(J.DocumentRangesFormattingRequest=bH={}));var yH;(function(t){t.method="textDocument/onTypeFormatting",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(yH||(J.DocumentOnTypeFormattingRequest=yH={}));var vH;(function(t){t.Identifier=1})(vH||(J.PrepareSupportDefaultBehavior=vH={}));var wH;(function(t){t.method="textDocument/rename",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(wH||(J.RenameRequest=wH={}));var _H;(function(t){t.method="textDocument/prepareRename",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(_H||(J.PrepareRenameRequest=_H={}));var SH;(function(t){t.method="workspace/executeCommand",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(SH||(J.ExecuteCommandRequest=SH={}));var CH;(function(t){t.method="workspace/applyEdit",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolRequestType("workspace/applyEdit")})(CH||(J.ApplyWorkspaceEditRequest=CH={}))});var MH=I(Q1=>{"use strict";Object.defineProperty(Q1,"__esModule",{value:!0});Q1.createProtocolConnection=void 0;var TH=wh();function oke(t,e,n,r){return TH.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,TH.createMessageConnection)(t,e,n,r)}Q1.createProtocolConnection=oke});var RH=I(gs=>{"use strict";var ake=gs&&gs.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),X1=gs&&gs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&ake(e,t,n)};Object.defineProperty(gs,"__esModule",{value:!0});gs.LSPErrorCodes=gs.createProtocolConnection=void 0;X1(wh(),gs);X1(yr(),gs);X1(Qn(),gs);X1(EH(),gs);var lke=MH();Object.defineProperty(gs,"createProtocolConnection",{enumerable:!0,get:function(){return lke.createProtocolConnection}});var DH;(function(t){t.lspReservedErrorRangeStart=-32899,t.RequestFailed=-32803,t.ServerCancelled=-32802,t.ContentModified=-32801,t.RequestCancelled=-32800,t.lspReservedErrorRangeEnd=-32800})(DH||(gs.LSPErrorCodes=DH={}))});var ir=I(el=>{"use strict";var cke=el&&el.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),IH=el&&el.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&cke(e,t,n)};Object.defineProperty(el,"__esModule",{value:!0});el.createProtocolConnection=void 0;var uke=GM();IH(GM(),el);IH(RH(),el);function dke(t,e,n,r){return(0,uke.createMessageConnection)(t,e,n,r)}el.createProtocolConnection=dke});var dD=I(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.generateUuid=Ao.parse=Ao.isUUID=Ao.v4=Ao.empty=void 0;var Pb=class{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}},xt=class extends Pb{static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return xt._oneOf(xt._chars)}constructor(){super([xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),"-",xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),"-","4",xt._randomHex(),xt._randomHex(),xt._randomHex(),"-",xt._oneOf(xt._timeHighBits),xt._randomHex(),xt._randomHex(),xt._randomHex(),"-",xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex()].join(""))}};xt._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];xt._timeHighBits=["8","9","a","b"];Ao.empty=new Pb("00000000-0000-0000-0000-000000000000");function PH(){return new xt}Ao.v4=PH;var hke=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function OH(t){return hke.test(t)}Ao.isUUID=OH;function fke(t){if(!OH(t))throw new Error("invalid uuid");return new Pb(t)}Ao.parse=fke;function pke(){return PH().asHex()}Ao.generateUuid=pke});var NH=I(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.attachPartialResult=Tu.ProgressFeature=Tu.attachWorkDone=void 0;var Eu=ir(),mke=dD(),tl=class{constructor(e,n){this._connection=e,this._token=n,tl.Instances.set(this._token,this)}begin(e,n,r,i){let s={kind:"begin",title:e,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Eu.WorkDoneProgress.type,this._token,s)}report(e,n){let r={kind:"report"};typeof e=="number"?(r.percentage=e,n!==void 0&&(r.message=n)):r.message=e,this._connection.sendProgress(Eu.WorkDoneProgress.type,this._token,r)}done(){tl.Instances.delete(this._token),this._connection.sendProgress(Eu.WorkDoneProgress.type,this._token,{kind:"end"})}};tl.Instances=new Map;var Z1=class extends tl{constructor(e,n){super(e,n),this._source=new Eu.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Ob=class{constructor(){}begin(){}report(){}done(){}},e_=class extends Ob{constructor(){super(),this._source=new Eu.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function gke(t,e){if(e===void 0||e.workDoneToken===void 0)return new Ob;let n=e.workDoneToken;return delete e.workDoneToken,new tl(t,n)}Tu.attachWorkDone=gke;var bke=t=>class extends t{constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),e?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Eu.WorkDoneProgressCancelNotification.type,n=>{let r=tl.Instances.get(n.token);(r instanceof Z1||r instanceof e_)&&r.cancel()}))}attachWorkDoneProgress(e){return e===void 0?new Ob:new tl(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){let e=(0,mke.generateUuid)();return this.connection.sendRequest(Eu.WorkDoneProgressCreateRequest.type,{token:e}).then(()=>new Z1(this.connection,e))}else return Promise.resolve(new e_)}};Tu.ProgressFeature=bke;var hD;(function(t){t.type=new Eu.ProgressType})(hD||(hD={}));var fD=class{constructor(e,n){this._connection=e,this._token=n}report(e){this._connection.sendProgress(hD.type,this._token,e)}};function yke(t,e){if(e===void 0||e.partialResultToken===void 0)return;let n=e.partialResultToken;return delete e.partialResultToken,new fD(t,n)}Tu.attachPartialResult=yke});var LH=I(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0});t_.ConfigurationFeature=void 0;var vke=ir(),wke=m1(),_ke=t=>class extends t{getConfiguration(e){return e?wke.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let n={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(vke.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(e)?r:r[0]:Array.isArray(e)?[]:null)}};t_.ConfigurationFeature=_ke});var qH=I(r_=>{"use strict";Object.defineProperty(r_,"__esModule",{value:!0});r_.WorkspaceFoldersFeature=void 0;var n_=ir(),Ske=t=>class extends t{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);let n=e.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new n_.Emitter,this.connection.onNotification(n_.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(e){super.fillServerCapabilities(e);let n=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(n_.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(n_.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};r_.WorkspaceFoldersFeature=Ske});var $H=I(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0});i_.CallHierarchyFeature=void 0;var pD=ir(),Cke=t=>class extends t{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(pD.CallHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:e=>{let n=pD.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:e=>{let n=pD.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};i_.CallHierarchyFeature=Cke});var gD=I(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.SemanticTokensBuilder=Mu.SemanticTokensDiff=Mu.SemanticTokensFeature=void 0;var s_=ir(),xke=t=>class extends t{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(s_.SemanticTokensRefreshRequest.type),on:e=>{let n=s_.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:e=>{let n=s_.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:e=>{let n=s_.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Mu.SemanticTokensFeature=xke;var o_=class{constructor(e,n){this.originalSequence=e,this.modifiedSequence=n}computeDiff(){let e=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<e&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<e){let i=e-1,s=n-1;for(;i>=r&&s>=r&&this.originalSequence[i]===this.modifiedSequence[s];)i--,s--;(i<r||s<r)&&(i++,s++);let o=i-r+1,a=this.modifiedSequence.slice(r,s+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:o-1}]:[{start:r,deleteCount:o,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<e?[{start:r,deleteCount:e-r}]:[]}};Mu.SemanticTokensDiff=o_;var mD=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,n,r,i,s){let o=e,a=n;this._dataLen>0&&(o-=this._prevLine,o===0&&(a-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=s,this._prevLine=e,this._prevChar=n}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new o_(this._prevData,this._data).computeDiff()}:this.build()}};Mu.SemanticTokensBuilder=mD});var zH=I(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0});a_.ShowDocumentFeature=void 0;var kke=ir(),Ake=t=>class extends t{showDocument(e){return this.connection.sendRequest(kke.ShowDocumentRequest.type,e)}};a_.ShowDocumentFeature=Ake});var jH=I(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0});l_.FileOperationsFeature=void 0;var Cp=ir(),Fke=t=>class extends t{onDidCreateFiles(e){return this.connection.onNotification(Cp.DidCreateFilesNotification.type,n=>{e(n)})}onDidRenameFiles(e){return this.connection.onNotification(Cp.DidRenameFilesNotification.type,n=>{e(n)})}onDidDeleteFiles(e){return this.connection.onNotification(Cp.DidDeleteFilesNotification.type,n=>{e(n)})}onWillCreateFiles(e){return this.connection.onRequest(Cp.WillCreateFilesRequest.type,(n,r)=>e(n,r))}onWillRenameFiles(e){return this.connection.onRequest(Cp.WillRenameFilesRequest.type,(n,r)=>e(n,r))}onWillDeleteFiles(e){return this.connection.onRequest(Cp.WillDeleteFilesRequest.type,(n,r)=>e(n,r))}};l_.FileOperationsFeature=Fke});var WH=I(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0});c_.LinkedEditingRangeFeature=void 0;var Eke=ir(),Tke=t=>class extends t{onLinkedEditingRange(e){return this.connection.onRequest(Eke.LinkedEditingRangeRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0))}};c_.LinkedEditingRangeFeature=Tke});var UH=I(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});u_.TypeHierarchyFeature=void 0;var bD=ir(),Mke=t=>class extends t{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(bD.TypeHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:e=>{let n=bD.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:e=>{let n=bD.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};u_.TypeHierarchyFeature=Mke});var HH=I(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0});d_.InlineValueFeature=void 0;var BH=ir(),Dke=t=>class extends t{get inlineValue(){return{refresh:()=>this.connection.sendRequest(BH.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(BH.InlineValueRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n)))}}};d_.InlineValueFeature=Dke});var KH=I(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});h_.FoldingRangeFeature=void 0;var VH=ir(),Rke=t=>class extends t{get foldingRange(){return{refresh:()=>this.connection.sendRequest(VH.FoldingRangeRefreshRequest.type),on:e=>{let n=VH.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};h_.FoldingRangeFeature=Rke});var GH=I(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0});f_.InlayHintFeature=void 0;var yD=ir(),Ike=t=>class extends t{get inlayHint(){return{refresh:()=>this.connection.sendRequest(yD.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(yD.InlayHintRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n))),resolve:e=>this.connection.onRequest(yD.InlayHintResolveRequest.type,(n,r)=>e(n,r))}}};f_.InlayHintFeature=Ike});var JH=I(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0});p_.DiagnosticFeature=void 0;var Nb=ir(),Pke=t=>class extends t{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Nb.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(Nb.DocumentDiagnosticRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Nb.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:e=>this.connection.onRequest(Nb.WorkspaceDiagnosticRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Nb.WorkspaceDiagnosticRequest.partialResult,n)))}}};p_.DiagnosticFeature=Pke});var wD=I(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});m_.TextDocuments=void 0;var Sh=ir(),vD=class{constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new Sh.Emitter,this._onDidOpen=new Sh.Emitter,this._onDidClose=new Sh.Emitter,this._onDidSave=new Sh.Emitter,this._onWillSave=new Sh.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=Sh.TextDocumentSyncKind.Incremental;let n=[];return n.push(e.onDidOpenTextDocument(r=>{let i=r.textDocument,s=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,s);let o=Object.freeze({document:s});this._onDidOpen.fire(o),this._onDidChangeContent.fire(o)})),n.push(e.onDidChangeTextDocument(r=>{let i=r.textDocument,s=r.contentChanges;if(s.length===0)return;let{version:o}=i;if(o==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,s,o),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(e.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(e.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(e.onWillSaveTextDocumentWaitUntil((r,i)=>{let s=this._syncedDocuments.get(r.textDocument.uri);return s!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:s,reason:r.reason}),i):[]})),n.push(e.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),Sh.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};m_.TextDocuments=vD});var SD=I(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.NotebookDocuments=xp.NotebookSyncFeature=void 0;var Fo=ir(),YH=wD(),Oke=t=>class extends t{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(Fo.DidOpenNotebookDocumentNotification.type,n=>{e(n)}),onDidChangeNotebookDocument:e=>this.connection.onNotification(Fo.DidChangeNotebookDocumentNotification.type,n=>{e(n)}),onDidSaveNotebookDocument:e=>this.connection.onNotification(Fo.DidSaveNotebookDocumentNotification.type,n=>{e(n)}),onDidCloseNotebookDocument:e=>this.connection.onNotification(Fo.DidCloseNotebookDocumentNotification.type,n=>{e(n)})}}};xp.NotebookSyncFeature=Oke;var Du=class{onDidOpenTextDocument(e){return this.openHandler=e,Fo.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(e){this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,Fo.Disposable.create(()=>{this.changeHandler=e})}changeTextDocument(e){this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,Fo.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(e){this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return Du.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return Du.NULL_DISPOSE}onDidSaveTextDocument(){return Du.NULL_DISPOSE}};Du.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var _D=class{constructor(e){e instanceof YH.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new YH.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new Fo.Emitter,this._onDidChange=new Fo.Emitter,this._onDidSave=new Fo.Emitter,this._onDidClose=new Fo.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){let n=this.notebookCellMap.get(e);return n&&n[0]}findNotebookDocumentForCell(e){let n=typeof e=="string"?e:e.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){let n=new Du,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(e.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let s of i.cellTextDocuments)n.openTextDocument({textDocument:s});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(e.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let s=this.notebookDocuments.get(i.notebookDocument.uri);if(s===void 0)return;s.version=i.notebookDocument.version;let o=s.metadata,a=!1,l=i.change;l.metadata!==void 0&&(a=!0,s.metadata=l.metadata);let c=[],u=[],d=[],f=[];if(l.cells!==void 0){let _=l.cells;if(_.structure!==void 0){let S=_.structure.array;if(s.cells.splice(S.start,S.deleteCount,...S.cells!==void 0?S.cells:[]),_.structure.didOpen!==void 0)for(let v of _.structure.didOpen)n.openTextDocument({textDocument:v}),c.push(v.uri);if(_.structure.didClose)for(let v of _.structure.didClose)n.closeTextDocument({textDocument:v}),u.push(v.uri)}if(_.data!==void 0){let S=new Map(_.data.map(v=>[v.document,v]));for(let v=0;v<=s.cells.length;v++){let T=S.get(s.cells[v].document);if(T!==void 0){let A=s.cells.splice(v,1,T);if(d.push({old:A[0],new:T}),S.delete(T.document),S.size===0)break}}}if(_.textContent!==void 0)for(let S of _.textContent)n.changeTextDocument({textDocument:S.document,contentChanges:S.changes}),f.push(S.document.uri)}this.updateCellMap(s);let m={notebookDocument:s};a&&(m.metadata={old:o,new:s.metadata});let b=[];for(let _ of c)b.push(this.getNotebookCell(_));let g=[];for(let _ of u)g.push(this.getNotebookCell(_));let w=[];for(let _ of f)w.push(this.getNotebookCell(_));(b.length>0||g.length>0||d.length>0||w.length>0)&&(m.cells={added:b,removed:g,changed:{data:d,textContent:w}}),(m.metadata!==void 0||m.cells!==void 0)&&this._onDidChange.fire(m)})),r.push(e.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let s=this.notebookDocuments.get(i.notebookDocument.uri);s!==void 0&&this._onDidSave.fire(s)})),r.push(e.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let s=this.notebookDocuments.get(i.notebookDocument.uri);if(s!==void 0){this._onDidClose.fire(s);for(let o of i.cellTextDocuments)n.closeTextDocument({textDocument:o});this.notebookDocuments.delete(i.notebookDocument.uri);for(let o of s.cells)this.notebookCellMap.delete(o.document)}})),Fo.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(e){for(let n of e.cells)this.notebookCellMap.set(n.document,[n,e])}};xp.NotebookDocuments=_D});var QH=I(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_.MonikerFeature=void 0;var Nke=ir(),Lke=t=>class extends t{get moniker(){return{on:e=>{let n=Nke.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};g_.MonikerFeature=Lke});var ED=I(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.createConnection=nn.combineFeatures=nn.combineNotebooksFeatures=nn.combineLanguagesFeatures=nn.combineWorkspaceFeatures=nn.combineWindowFeatures=nn.combineClientFeatures=nn.combineTracerFeatures=nn.combineTelemetryFeatures=nn.combineConsoleFeatures=nn._NotebooksImpl=nn._LanguagesImpl=nn.BulkUnregistration=nn.BulkRegistration=nn.ErrorMessageTracker=void 0;var Ie=ir(),Eo=m1(),xD=dD(),dt=NH(),qke=LH(),$ke=qH(),zke=$H(),jke=gD(),Wke=zH(),Uke=jH(),Bke=WH(),Hke=UH(),Vke=HH(),Kke=KH(),Gke=GH(),Jke=JH(),Yke=SD(),Qke=QH();function CD(t){if(t!==null)return t}var kD=class{constructor(){this._messages=Object.create(null)}add(e){let n=this._messages[e];n||(n=0),n++,this._messages[e]=n}sendErrors(e){Object.keys(this._messages).forEach(n=>{e.window.showErrorMessage(n)})}};nn.ErrorMessageTracker=kD;var b_=class{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(Ie.MessageType.Error,e)}warn(e){this.send(Ie.MessageType.Warning,e)}info(e){this.send(Ie.MessageType.Info,e)}log(e){this.send(Ie.MessageType.Log,e)}debug(e){this.send(Ie.MessageType.Debug,e)}send(e,n){this._rawConnection&&this._rawConnection.sendNotification(Ie.LogMessageNotification.type,{type:e,message:n}).catch(()=>{(0,Ie.RAL)().console.error("Sending log message failed")})}},AD=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...n){let r={type:Ie.MessageType.Error,message:e,actions:n};return this.connection.sendRequest(Ie.ShowMessageRequest.type,r).then(CD)}showWarningMessage(e,...n){let r={type:Ie.MessageType.Warning,message:e,actions:n};return this.connection.sendRequest(Ie.ShowMessageRequest.type,r).then(CD)}showInformationMessage(e,...n){let r={type:Ie.MessageType.Info,message:e,actions:n};return this.connection.sendRequest(Ie.ShowMessageRequest.type,r).then(CD)}},XH=(0,Wke.ShowDocumentFeature)((0,dt.ProgressFeature)(AD)),ZH;(function(t){function e(){return new y_}t.create=e})(ZH||(nn.BulkRegistration=ZH={}));var y_=class{constructor(){this._registrations=[],this._registered=new Set}add(e,n){let r=Eo.string(e)?e:e.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=xD.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},eV;(function(t){function e(){return new Lb(void 0,[])}t.create=e})(eV||(nn.BulkUnregistration=eV={}));var Lb=class{constructor(e,n){this._connection=e,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let r of this._unregistrations.values())e.push(r);let n={unregisterations:e};this._connection.sendRequest(Ie.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(e){let n=Eo.string(e)?e:e.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(Ie.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},s=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},v_=class{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,n,r){return e instanceof y_?this.registerMany(e):e instanceof Lb?this.registerSingle1(e,n,r):this.registerSingle2(e,n)}registerSingle1(e,n,r){let i=Eo.string(n)?n:n.method,s=xD.generateUuid(),o={registrations:[{id:s,method:i,registerOptions:r||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(Ie.RegistrationRequest.type,o).then(a=>(e.add({id:s,method:i}),e),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(e,n){let r=Eo.string(e)?e:e.method,i=xD.generateUuid(),s={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(Ie.RegistrationRequest.type,s).then(o=>Ie.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),o=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(o)))}unregisterSingle(e,n){let r={unregisterations:[{id:e,method:n}]};return this.connection.sendRequest(Ie.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)})}registerMany(e){let n=e.asRegistrationParams();return this.connection.sendRequest(Ie.RegistrationRequest.type,n).then(()=>new Lb(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},FD=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){function n(i){return i&&!!i.edit}let r=n(e)?e:{edit:e};return this.connection.sendRequest(Ie.ApplyWorkspaceEditRequest.type,r)}},tV=(0,Uke.FileOperationsFeature)((0,$ke.WorkspaceFoldersFeature)((0,qke.ConfigurationFeature)(FD))),w_=class{constructor(){this._trace=Ie.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,n){this._trace!==Ie.Trace.Off&&this.connection.sendNotification(Ie.LogTraceNotification.type,{message:e,verbose:this._trace===Ie.Trace.Verbose?n:void 0}).catch(()=>{})}},__=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(Ie.TelemetryEventNotification.type,e).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},S_=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,dt.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,dt.attachPartialResult)(this.connection,n)}};nn._LanguagesImpl=S_;var nV=(0,Kke.FoldingRangeFeature)((0,Qke.MonikerFeature)((0,Jke.DiagnosticFeature)((0,Gke.InlayHintFeature)((0,Vke.InlineValueFeature)((0,Hke.TypeHierarchyFeature)((0,Bke.LinkedEditingRangeFeature)((0,jke.SemanticTokensFeature)((0,zke.CallHierarchyFeature)(S_))))))))),C_=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,dt.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,dt.attachPartialResult)(this.connection,n)}};nn._NotebooksImpl=C_;var rV=(0,Yke.NotebookSyncFeature)(C_);function iV(t,e){return function(n){return e(t(n))}}nn.combineConsoleFeatures=iV;function sV(t,e){return function(n){return e(t(n))}}nn.combineTelemetryFeatures=sV;function oV(t,e){return function(n){return e(t(n))}}nn.combineTracerFeatures=oV;function aV(t,e){return function(n){return e(t(n))}}nn.combineClientFeatures=aV;function lV(t,e){return function(n){return e(t(n))}}nn.combineWindowFeatures=lV;function cV(t,e){return function(n){return e(t(n))}}nn.combineWorkspaceFeatures=cV;function uV(t,e){return function(n){return e(t(n))}}nn.combineLanguagesFeatures=uV;function dV(t,e){return function(n){return e(t(n))}}nn.combineNotebooksFeatures=dV;function Xke(t,e){function n(i,s,o){return i&&s?o(i,s):i||s}return{__brand:"features",console:n(t.console,e.console,iV),tracer:n(t.tracer,e.tracer,oV),telemetry:n(t.telemetry,e.telemetry,sV),client:n(t.client,e.client,aV),window:n(t.window,e.window,lV),workspace:n(t.workspace,e.workspace,cV),languages:n(t.languages,e.languages,uV),notebooks:n(t.notebooks,e.notebooks,dV)}}nn.combineFeatures=Xke;function Zke(t,e,n){let r=n&&n.console?new(n.console(b_)):new b_,i=t(r);r.rawAttach(i);let s=n&&n.tracer?new(n.tracer(w_)):new w_,o=n&&n.telemetry?new(n.telemetry(__)):new __,a=n&&n.client?new(n.client(v_)):new v_,l=n&&n.window?new(n.window(XH)):new XH,c=n&&n.workspace?new(n.workspace(tV)):new tV,u=n&&n.languages?new(n.languages(nV)):new nV,d=n&&n.notebooks?new(n.notebooks(rV)):new rV,f=[r,s,o,a,l,c,u,d];function m(S){return S instanceof Promise?S:Eo.thenable(S)?new Promise((v,T)=>{S.then(A=>v(A),A=>T(A))}):Promise.resolve(S)}let b,g,w,_={listen:()=>i.listen(),sendRequest:(S,...v)=>i.sendRequest(Eo.string(S)?S:S.method,...v),onRequest:(S,v)=>i.onRequest(S,v),sendNotification:(S,v)=>{let T=Eo.string(S)?S:S.method;return i.sendNotification(T,v)},onNotification:(S,v)=>i.onNotification(S,v),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:S=>(g=S,{dispose:()=>{g=void 0}}),onInitialized:S=>i.onNotification(Ie.InitializedNotification.type,S),onShutdown:S=>(b=S,{dispose:()=>{b=void 0}}),onExit:S=>(w=S,{dispose:()=>{w=void 0}}),get console(){return r},get telemetry(){return o},get tracer(){return s},get client(){return a},get window(){return l},get workspace(){return c},get languages(){return u},get notebooks(){return d},onDidChangeConfiguration:S=>i.onNotification(Ie.DidChangeConfigurationNotification.type,S),onDidChangeWatchedFiles:S=>i.onNotification(Ie.DidChangeWatchedFilesNotification.type,S),__textDocumentSync:void 0,onDidOpenTextDocument:S=>i.onNotification(Ie.DidOpenTextDocumentNotification.type,S),onDidChangeTextDocument:S=>i.onNotification(Ie.DidChangeTextDocumentNotification.type,S),onDidCloseTextDocument:S=>i.onNotification(Ie.DidCloseTextDocumentNotification.type,S),onWillSaveTextDocument:S=>i.onNotification(Ie.WillSaveTextDocumentNotification.type,S),onWillSaveTextDocumentWaitUntil:S=>i.onRequest(Ie.WillSaveTextDocumentWaitUntilRequest.type,S),onDidSaveTextDocument:S=>i.onNotification(Ie.DidSaveTextDocumentNotification.type,S),sendDiagnostics:S=>i.sendNotification(Ie.PublishDiagnosticsNotification.type,S),onHover:S=>i.onRequest(Ie.HoverRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),void 0)),onCompletion:S=>i.onRequest(Ie.CompletionRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onCompletionResolve:S=>i.onRequest(Ie.CompletionResolveRequest.type,S),onSignatureHelp:S=>i.onRequest(Ie.SignatureHelpRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),void 0)),onDeclaration:S=>i.onRequest(Ie.DeclarationRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onDefinition:S=>i.onRequest(Ie.DefinitionRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onTypeDefinition:S=>i.onRequest(Ie.TypeDefinitionRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onImplementation:S=>i.onRequest(Ie.ImplementationRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onReferences:S=>i.onRequest(Ie.ReferencesRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onDocumentHighlight:S=>i.onRequest(Ie.DocumentHighlightRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onDocumentSymbol:S=>i.onRequest(Ie.DocumentSymbolRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onWorkspaceSymbol:S=>i.onRequest(Ie.WorkspaceSymbolRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onWorkspaceSymbolResolve:S=>i.onRequest(Ie.WorkspaceSymbolResolveRequest.type,S),onCodeAction:S=>i.onRequest(Ie.CodeActionRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onCodeActionResolve:S=>i.onRequest(Ie.CodeActionResolveRequest.type,(v,T)=>S(v,T)),onCodeLens:S=>i.onRequest(Ie.CodeLensRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onCodeLensResolve:S=>i.onRequest(Ie.CodeLensResolveRequest.type,(v,T)=>S(v,T)),onDocumentFormatting:S=>i.onRequest(Ie.DocumentFormattingRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),void 0)),onDocumentRangeFormatting:S=>i.onRequest(Ie.DocumentRangeFormattingRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),void 0)),onDocumentOnTypeFormatting:S=>i.onRequest(Ie.DocumentOnTypeFormattingRequest.type,(v,T)=>S(v,T)),onRenameRequest:S=>i.onRequest(Ie.RenameRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),void 0)),onPrepareRename:S=>i.onRequest(Ie.PrepareRenameRequest.type,(v,T)=>S(v,T)),onDocumentLinks:S=>i.onRequest(Ie.DocumentLinkRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onDocumentLinkResolve:S=>i.onRequest(Ie.DocumentLinkResolveRequest.type,(v,T)=>S(v,T)),onDocumentColor:S=>i.onRequest(Ie.DocumentColorRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onColorPresentation:S=>i.onRequest(Ie.ColorPresentationRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onFoldingRanges:S=>i.onRequest(Ie.FoldingRangeRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onSelectionRanges:S=>i.onRequest(Ie.SelectionRangeRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onExecuteCommand:S=>i.onRequest(Ie.ExecuteCommandRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),void 0)),dispose:()=>i.dispose()};for(let S of f)S.attach(_);return i.onRequest(Ie.InitializeRequest.type,S=>{e.initialize(S),Eo.string(S.trace)&&(s.trace=Ie.Trace.fromString(S.trace));for(let v of f)v.initialize(S.capabilities);if(g){let v=g(S,new Ie.CancellationTokenSource().token,(0,dt.attachWorkDone)(i,S),void 0);return m(v).then(T=>{if(T instanceof Ie.ResponseError)return T;let A=T;A||(A={capabilities:{}});let R=A.capabilities;R||(R={},A.capabilities=R),R.textDocumentSync===void 0||R.textDocumentSync===null?R.textDocumentSync=Eo.number(_.__textDocumentSync)?_.__textDocumentSync:Ie.TextDocumentSyncKind.None:!Eo.number(R.textDocumentSync)&&!Eo.number(R.textDocumentSync.change)&&(R.textDocumentSync.change=Eo.number(_.__textDocumentSync)?_.__textDocumentSync:Ie.TextDocumentSyncKind.None);for(let k of f)k.fillServerCapabilities(R);return A})}else{let v={capabilities:{textDocumentSync:Ie.TextDocumentSyncKind.None}};for(let T of f)T.fillServerCapabilities(v.capabilities);return v}}),i.onRequest(Ie.ShutdownRequest.type,()=>{if(e.shutdownReceived=!0,b)return b(new Ie.CancellationTokenSource().token)}),i.onNotification(Ie.ExitNotification.type,()=>{try{w&&w()}finally{e.shutdownReceived?e.exit(0):e.exit(1)}}),i.onNotification(Ie.SetTraceNotification.type,S=>{s.trace=Ie.Trace.fromString(S.value)}),_}nn.createConnection=Zke});var hV=I(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.resolveModulePath=bs.FileSystem=bs.resolveGlobalYarnPath=bs.resolveGlobalNodePath=bs.resolve=bs.uriToFilePath=void 0;var eAe=require("url"),ba=require("path"),TD=require("fs"),ID=require("child_process");function tAe(t){let e=eAe.parse(t);if(e.protocol!=="file:"||!e.path)return;let n=e.path.split("/");for(var r=0,i=n.length;r<i;r++)n[r]=decodeURIComponent(n[r]);if(process.platform==="win32"&&n.length>1){let s=n[0],o=n[1];s.length===0&&o.length>1&&o[1]===":"&&n.shift()}return ba.normalize(n.join("/"))}bs.uriToFilePath=tAe;function MD(){return process.platform==="win32"}function x_(t,e,n,r){let i="NODE_PATH",s=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise((o,a)=>{let l=process.env,c=Object.create(null);Object.keys(l).forEach(u=>c[u]=l[u]),e&&TD.existsSync(e)&&(c[i]?c[i]=e+ba.delimiter+c[i]:c[i]=e,r&&r(`NODE_PATH value is: ${c[i]}`)),c.ELECTRON_RUN_AS_NODE="1";try{let u=(0,ID.fork)("",[],{cwd:n,env:c,execArgv:["-e",s]});if(u.pid===void 0){a(new Error(`Starting process to resolve node module ${t} failed`));return}u.on("error",f=>{a(f)}),u.on("message",f=>{f.c==="r"&&(u.send({c:"e"}),f.s?o(f.r):a(new Error(`Failed to resolve module: ${t}`)))});let d={c:"rs",a:t};u.send(d)}catch(u){a(u)}})}bs.resolve=x_;function DD(t){let e="npm",n=Object.create(null);Object.keys(process.env).forEach(s=>n[s]=process.env[s]),n.NO_UPDATE_NOTIFIER="true";let r={encoding:"utf8",env:n};MD()&&(e="npm.cmd",r.shell=!0);let i=()=>{};try{process.on("SIGPIPE",i);let s=(0,ID.spawnSync)(e,["config","get","prefix"],r).stdout;if(!s){t&&t("'npm config get prefix' didn't return a value.");return}let o=s.trim();return t&&t(`'npm config get prefix' value is: ${o}`),o.length>0?MD()?ba.join(o,"node_modules"):ba.join(o,"lib","node_modules"):void 0}catch{return}finally{process.removeListener("SIGPIPE",i)}}bs.resolveGlobalNodePath=DD;function nAe(t){let e="yarn",n={encoding:"utf8"};MD()&&(e="yarn.cmd",n.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let i=(0,ID.spawnSync)(e,["global","dir","--json"],n),s=i.stdout;if(!s){t&&(t("'yarn global dir' didn't return a value."),i.stderr&&t(i.stderr));return}let o=s.trim().split(/\r?\n/);for(let a of o)try{let l=JSON.parse(a);if(l.type==="log")return ba.join(l.data,"node_modules")}catch{}return}catch{return}finally{process.removeListener("SIGPIPE",r)}}bs.resolveGlobalYarnPath=nAe;var RD;(function(t){let e;function n(){return e!==void 0||(process.platform==="win32"?e=!1:e=!TD.existsSync(__filename.toUpperCase())||!TD.existsSync(__filename.toLowerCase())),e}t.isCaseSensitive=n;function r(i,s){return n()?ba.normalize(s).indexOf(ba.normalize(i))===0:ba.normalize(s).toLowerCase().indexOf(ba.normalize(i).toLowerCase())===0}t.isParent=r})(RD||(bs.FileSystem=RD={}));function rAe(t,e,n,r){return n?(ba.isAbsolute(n)||(n=ba.join(t,n)),x_(e,n,n,r).then(i=>RD.isParent(n,i)?i:Promise.reject(new Error(`Failed to load ${e} from node path location.`))).then(void 0,i=>x_(e,DD(r),t,r))):x_(e,DD(r),t,r)}bs.resolveModulePath=rAe});var PD=I((fmt,fV)=>{"use strict";fV.exports=ir()});var pV=I(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});k_.InlineCompletionFeature=void 0;var iAe=ir(),sAe=t=>class extends t{get inlineCompletion(){return{on:e=>this.connection.onRequest(iAe.InlineCompletionRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n)))}}};k_.InlineCompletionFeature=sAe});var bV=I(Ti=>{"use strict";var oAe=Ti&&Ti.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),gV=Ti&&Ti.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&oAe(e,t,n)};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.ProposedFeatures=Ti.NotebookDocuments=Ti.TextDocuments=Ti.SemanticTokensBuilder=void 0;var aAe=gD();Object.defineProperty(Ti,"SemanticTokensBuilder",{enumerable:!0,get:function(){return aAe.SemanticTokensBuilder}});var lAe=pV();gV(ir(),Ti);var cAe=wD();Object.defineProperty(Ti,"TextDocuments",{enumerable:!0,get:function(){return cAe.TextDocuments}});var uAe=SD();Object.defineProperty(Ti,"NotebookDocuments",{enumerable:!0,get:function(){return uAe.NotebookDocuments}});gV(ED(),Ti);var mV;(function(t){t.all={__brand:"features",languages:lAe.InlineCompletionFeature}})(mV||(Ti.ProposedFeatures=mV={}))});var ya=I(To=>{"use strict";var dAe=To&&To.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),_V=To&&To.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&dAe(e,t,n)};Object.defineProperty(To,"__esModule",{value:!0});To.createConnection=To.Files=void 0;var yV=require("node:util"),OD=m1(),hAe=ED(),qb=hV(),Ch=PD();_V(PD(),To);_V(bV(),To);var vV;(function(t){t.uriToFilePath=qb.uriToFilePath,t.resolveGlobalNodePath=qb.resolveGlobalNodePath,t.resolveGlobalYarnPath=qb.resolveGlobalYarnPath,t.resolve=qb.resolve,t.resolveModulePath=qb.resolveModulePath})(vV||(To.Files=vV={}));var wV;function A_(){if(wV!==void 0)try{wV.end()}catch{}}var kp=!1,SV;function fAe(){let t="--clientProcessId";function e(n){try{let r=parseInt(n);isNaN(r)||(SV=setInterval(()=>{try{process.kill(r,0)}catch{A_(),process.exit(kp?0:1)}},3e3))}catch{}}for(let n=2;n<process.argv.length;n++){let r=process.argv[n];if(r===t&&n+1<process.argv.length){e(process.argv[n+1]);return}else{let i=r.split("=");i[0]===t&&e(i[1])}}}fAe();var pAe={initialize:t=>{let e=t.processId;OD.number(e)&&SV===void 0&&setInterval(()=>{try{process.kill(e,0)}catch{process.exit(kp?0:1)}},3e3)},get shutdownReceived(){return kp},set shutdownReceived(t){kp=t},exit:t=>{A_(),process.exit(t)}};function mAe(t,e,n,r){let i,s,o,a;return t!==void 0&&t.__brand==="features"&&(i=t,t=e,e=n,n=r),Ch.ConnectionStrategy.is(t)||Ch.ConnectionOptions.is(t)?a=t:(s=t,o=e,a=n),gAe(s,o,a,i)}To.createConnection=mAe;function gAe(t,e,n,r){let i=!1;if(!t&&!e&&process.argv.length>2){let l,c,u=process.argv.slice(2);for(let d=0;d<u.length;d++){let f=u[d];if(f==="--node-ipc"){t=new Ch.IPCMessageReader(process),e=new Ch.IPCMessageWriter(process);break}else if(f==="--stdio"){i=!0,t=process.stdin,e=process.stdout;break}else if(f==="--socket"){l=parseInt(u[d+1]);break}else if(f==="--pipe"){c=u[d+1];break}else{var s=f.split("=");if(s[0]==="--socket"){l=parseInt(s[1]);break}else if(s[0]==="--pipe"){c=s[1];break}}}if(l){let d=(0,Ch.createServerSocketTransport)(l);t=d[0],e=d[1]}else if(c){let d=(0,Ch.createServerPipeTransport)(c);t=d[0],e=d[1]}}var o="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!t)throw new Error("Connection input stream is not set. "+o);if(!e)throw new Error("Connection output stream is not set. "+o);if(OD.func(t.read)&&OD.func(t.on)){let l=t;l.on("end",()=>{A_(),process.exit(kp?0:1)}),l.on("close",()=>{A_(),process.exit(kp?0:1)})}let a=l=>{let c=(0,Ch.createProtocolConnection)(t,e,l,n);return i&&bAe(l),c};return(0,hAe.createConnection)(a,pAe,r)}function bAe(t){function e(r){return r.map(i=>typeof i=="string"?i:(0,yV.inspect)(i)).join(" ")}let n=new Map;console.assert=function(i,...s){if(!i)if(s.length===0)t.error("Assertion failed");else{let[o,...a]=s;t.error(`Assertion failed: ${o} ${e(a)}`)}},console.count=function(i="default"){let s=String(i),o=n.get(s)??0;o+=1,n.set(s,o),t.log(`${s}: ${s}`)},console.countReset=function(i){i===void 0?n.clear():n.delete(String(i))},console.debug=function(...i){t.log(e(i))},console.dir=function(i,s){t.log((0,yV.inspect)(i,s))},console.log=function(...i){t.log(e(i))},console.error=function(...i){t.error(e(i))},console.trace=function(...i){let s=new Error().stack.replace(/(.+\n){2}/,""),o="Trace";i.length!==0&&(o+=`: ${e(i)}`),t.log(`${o}
|
|
36
|
+
`&&U++}G&&re.length>0&&te.push(re.length),this._lineOffsets=te}return this._lineOffsets},B.prototype.positionAt=function(te){te=Math.max(Math.min(te,this._content.length),0);var re=this.getLineOffsets(),G=0,U=re.length;if(U===0)return o.create(0,te);for(;G<U;){var le=Math.floor((G+U)/2);re[le]>te?U=le:G=le+1}var be=G-1;return o.create(be,te-re[be])},B.prototype.offsetAt=function(te){var re=this.getLineOffsets();if(te.line>=re.length)return this._content.length;if(te.line<0)return 0;var G=re[te.line],U=te.line+1<re.length?re[te.line+1]:this._content.length;return Math.max(Math.min(G+te.character,U),G)},Object.defineProperty(B.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),B}(),ae;(function(B){var te=Object.prototype.toString;function re(Pt){return typeof Pt<"u"}B.defined=re;function G(Pt){return typeof Pt>"u"}B.undefined=G;function U(Pt){return Pt===!0||Pt===!1}B.boolean=U;function le(Pt){return te.call(Pt)==="[object String]"}B.string=le;function be(Pt){return te.call(Pt)==="[object Number]"}B.number=be;function ct(Pt,au,Uf){return te.call(Pt)==="[object Number]"&&au<=Pt&&Pt<=Uf}B.numberRange=ct;function Jn(Pt){return te.call(Pt)==="[object Number]"&&-2147483648<=Pt&&Pt<=2147483647}B.integer=Jn;function Fn(Pt){return te.call(Pt)==="[object Number]"&&0<=Pt&&Pt<=2147483647}B.uinteger=Fn;function ls(Pt){return te.call(Pt)==="[object Function]"}B.func=ls;function zs(Pt){return Pt!==null&&typeof Pt=="object"}B.objectLiteral=zs;function ua(Pt,au){return Array.isArray(Pt)&&Pt.every(au)}B.typedArray=ua})(ae||(ae={}))})});var Qn=I(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.ProtocolNotificationType=ps.ProtocolNotificationType0=ps.ProtocolRequestType=ps.ProtocolRequestType0=ps.RegistrationType=ps.MessageDirection=void 0;var hp=wh(),NU;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(NU||(ps.MessageDirection=NU={}));var JM=class{constructor(e){this.method=e}};ps.RegistrationType=JM;var YM=class extends hp.RequestType0{constructor(e){super(e)}};ps.ProtocolRequestType0=YM;var QM=class extends hp.RequestType{constructor(e){super(e,hp.ParameterStructures.byName)}};ps.ProtocolRequestType=QM;var XM=class extends hp.NotificationType0{constructor(e){super(e)}};ps.ProtocolNotificationType0=XM;var ZM=class extends hp.NotificationType{constructor(e){super(e,hp.ParameterStructures.byName)}};ps.ProtocolNotificationType=ZM});var N1=I(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.objectLiteral=Mr.typedArray=Mr.stringArray=Mr.array=Mr.func=Mr.error=Mr.number=Mr.string=Mr.boolean=void 0;function Uxe(t){return t===!0||t===!1}Mr.boolean=Uxe;function LU(t){return typeof t=="string"||t instanceof String}Mr.string=LU;function Bxe(t){return typeof t=="number"||t instanceof Number}Mr.number=Bxe;function Hxe(t){return t instanceof Error}Mr.error=Hxe;function Vxe(t){return typeof t=="function"}Mr.func=Vxe;function qU(t){return Array.isArray(t)}Mr.array=qU;function Kxe(t){return qU(t)&&t.every(e=>LU(e))}Mr.stringArray=Kxe;function Gxe(t,e){return Array.isArray(t)&&t.every(e)}Mr.typedArray=Gxe;function Jxe(t){return t!==null&&typeof t=="object"}Mr.objectLiteral=Jxe});var jU=I(L1=>{"use strict";Object.defineProperty(L1,"__esModule",{value:!0});L1.ImplementationRequest=void 0;var $U=Qn(),zU;(function(t){t.method="textDocument/implementation",t.messageDirection=$U.MessageDirection.clientToServer,t.type=new $U.ProtocolRequestType(t.method)})(zU||(L1.ImplementationRequest=zU={}))});var BU=I(q1=>{"use strict";Object.defineProperty(q1,"__esModule",{value:!0});q1.TypeDefinitionRequest=void 0;var WU=Qn(),UU;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=WU.MessageDirection.clientToServer,t.type=new WU.ProtocolRequestType(t.method)})(UU||(q1.TypeDefinitionRequest=UU={}))});var KU=I(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.DidChangeWorkspaceFoldersNotification=fp.WorkspaceFoldersRequest=void 0;var $1=Qn(),HU;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=$1.MessageDirection.serverToClient,t.type=new $1.ProtocolRequestType0(t.method)})(HU||(fp.WorkspaceFoldersRequest=HU={}));var VU;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=$1.MessageDirection.clientToServer,t.type=new $1.ProtocolNotificationType(t.method)})(VU||(fp.DidChangeWorkspaceFoldersNotification=VU={}))});var YU=I(z1=>{"use strict";Object.defineProperty(z1,"__esModule",{value:!0});z1.ConfigurationRequest=void 0;var GU=Qn(),JU;(function(t){t.method="workspace/configuration",t.messageDirection=GU.MessageDirection.serverToClient,t.type=new GU.ProtocolRequestType(t.method)})(JU||(z1.ConfigurationRequest=JU={}))});var ZU=I(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.ColorPresentationRequest=pp.DocumentColorRequest=void 0;var j1=Qn(),QU;(function(t){t.method="textDocument/documentColor",t.messageDirection=j1.MessageDirection.clientToServer,t.type=new j1.ProtocolRequestType(t.method)})(QU||(pp.DocumentColorRequest=QU={}));var XU;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=j1.MessageDirection.clientToServer,t.type=new j1.ProtocolRequestType(t.method)})(XU||(pp.ColorPresentationRequest=XU={}))});var n6=I(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.FoldingRangeRefreshRequest=mp.FoldingRangeRequest=void 0;var W1=Qn(),e6;(function(t){t.method="textDocument/foldingRange",t.messageDirection=W1.MessageDirection.clientToServer,t.type=new W1.ProtocolRequestType(t.method)})(e6||(mp.FoldingRangeRequest=e6={}));var t6;(function(t){t.method="workspace/foldingRange/refresh",t.messageDirection=W1.MessageDirection.serverToClient,t.type=new W1.ProtocolRequestType0(t.method)})(t6||(mp.FoldingRangeRefreshRequest=t6={}))});var s6=I(U1=>{"use strict";Object.defineProperty(U1,"__esModule",{value:!0});U1.DeclarationRequest=void 0;var r6=Qn(),i6;(function(t){t.method="textDocument/declaration",t.messageDirection=r6.MessageDirection.clientToServer,t.type=new r6.ProtocolRequestType(t.method)})(i6||(U1.DeclarationRequest=i6={}))});var l6=I(B1=>{"use strict";Object.defineProperty(B1,"__esModule",{value:!0});B1.SelectionRangeRequest=void 0;var o6=Qn(),a6;(function(t){t.method="textDocument/selectionRange",t.messageDirection=o6.MessageDirection.clientToServer,t.type=new o6.ProtocolRequestType(t.method)})(a6||(B1.SelectionRangeRequest=a6={}))});var h6=I(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.WorkDoneProgressCancelNotification=Cu.WorkDoneProgressCreateRequest=Cu.WorkDoneProgress=void 0;var Yxe=wh(),H1=Qn(),c6;(function(t){t.type=new Yxe.ProgressType;function e(n){return n===t.type}t.is=e})(c6||(Cu.WorkDoneProgress=c6={}));var u6;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=H1.MessageDirection.serverToClient,t.type=new H1.ProtocolRequestType(t.method)})(u6||(Cu.WorkDoneProgressCreateRequest=u6={}));var d6;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=H1.MessageDirection.clientToServer,t.type=new H1.ProtocolNotificationType(t.method)})(d6||(Cu.WorkDoneProgressCancelNotification=d6={}))});var g6=I(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.CallHierarchyOutgoingCallsRequest=xu.CallHierarchyIncomingCallsRequest=xu.CallHierarchyPrepareRequest=void 0;var gp=Qn(),f6;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=gp.MessageDirection.clientToServer,t.type=new gp.ProtocolRequestType(t.method)})(f6||(xu.CallHierarchyPrepareRequest=f6={}));var p6;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=gp.MessageDirection.clientToServer,t.type=new gp.ProtocolRequestType(t.method)})(p6||(xu.CallHierarchyIncomingCallsRequest=p6={}));var m6;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=gp.MessageDirection.clientToServer,t.type=new gp.ProtocolRequestType(t.method)})(m6||(xu.CallHierarchyOutgoingCallsRequest=m6={}))});var S6=I(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.SemanticTokensRefreshRequest=ms.SemanticTokensRangeRequest=ms.SemanticTokensDeltaRequest=ms.SemanticTokensRequest=ms.SemanticTokensRegistrationType=ms.TokenFormat=void 0;var oc=Qn(),b6;(function(t){t.Relative="relative"})(b6||(ms.TokenFormat=b6={}));var Db;(function(t){t.method="textDocument/semanticTokens",t.type=new oc.RegistrationType(t.method)})(Db||(ms.SemanticTokensRegistrationType=Db={}));var y6;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=oc.MessageDirection.clientToServer,t.type=new oc.ProtocolRequestType(t.method),t.registrationMethod=Db.method})(y6||(ms.SemanticTokensRequest=y6={}));var v6;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=oc.MessageDirection.clientToServer,t.type=new oc.ProtocolRequestType(t.method),t.registrationMethod=Db.method})(v6||(ms.SemanticTokensDeltaRequest=v6={}));var w6;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=oc.MessageDirection.clientToServer,t.type=new oc.ProtocolRequestType(t.method),t.registrationMethod=Db.method})(w6||(ms.SemanticTokensRangeRequest=w6={}));var _6;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=oc.MessageDirection.serverToClient,t.type=new oc.ProtocolRequestType0(t.method)})(_6||(ms.SemanticTokensRefreshRequest=_6={}))});var k6=I(V1=>{"use strict";Object.defineProperty(V1,"__esModule",{value:!0});V1.ShowDocumentRequest=void 0;var C6=Qn(),x6;(function(t){t.method="window/showDocument",t.messageDirection=C6.MessageDirection.serverToClient,t.type=new C6.ProtocolRequestType(t.method)})(x6||(V1.ShowDocumentRequest=x6={}))});var E6=I(K1=>{"use strict";Object.defineProperty(K1,"__esModule",{value:!0});K1.LinkedEditingRangeRequest=void 0;var A6=Qn(),F6;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=A6.MessageDirection.clientToServer,t.type=new A6.ProtocolRequestType(t.method)})(F6||(K1.LinkedEditingRangeRequest=F6={}))});var N6=I(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.WillDeleteFilesRequest=Ei.DidDeleteFilesNotification=Ei.DidRenameFilesNotification=Ei.WillRenameFilesRequest=Ei.DidCreateFilesNotification=Ei.WillCreateFilesRequest=Ei.FileOperationPatternKind=void 0;var xo=Qn(),T6;(function(t){t.file="file",t.folder="folder"})(T6||(Ei.FileOperationPatternKind=T6={}));var M6;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolRequestType(t.method)})(M6||(Ei.WillCreateFilesRequest=M6={}));var D6;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolNotificationType(t.method)})(D6||(Ei.DidCreateFilesNotification=D6={}));var R6;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolRequestType(t.method)})(R6||(Ei.WillRenameFilesRequest=R6={}));var I6;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolNotificationType(t.method)})(I6||(Ei.DidRenameFilesNotification=I6={}));var P6;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolNotificationType(t.method)})(P6||(Ei.DidDeleteFilesNotification=P6={}));var O6;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolRequestType(t.method)})(O6||(Ei.WillDeleteFilesRequest=O6={}))});var j6=I(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.MonikerRequest=ku.MonikerKind=ku.UniquenessLevel=void 0;var L6=Qn(),q6;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(q6||(ku.UniquenessLevel=q6={}));var $6;(function(t){t.$import="import",t.$export="export",t.local="local"})($6||(ku.MonikerKind=$6={}));var z6;(function(t){t.method="textDocument/moniker",t.messageDirection=L6.MessageDirection.clientToServer,t.type=new L6.ProtocolRequestType(t.method)})(z6||(ku.MonikerRequest=z6={}))});var H6=I(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.TypeHierarchySubtypesRequest=Au.TypeHierarchySupertypesRequest=Au.TypeHierarchyPrepareRequest=void 0;var bp=Qn(),W6;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=bp.MessageDirection.clientToServer,t.type=new bp.ProtocolRequestType(t.method)})(W6||(Au.TypeHierarchyPrepareRequest=W6={}));var U6;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=bp.MessageDirection.clientToServer,t.type=new bp.ProtocolRequestType(t.method)})(U6||(Au.TypeHierarchySupertypesRequest=U6={}));var B6;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=bp.MessageDirection.clientToServer,t.type=new bp.ProtocolRequestType(t.method)})(B6||(Au.TypeHierarchySubtypesRequest=B6={}))});var G6=I(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.InlineValueRefreshRequest=yp.InlineValueRequest=void 0;var G1=Qn(),V6;(function(t){t.method="textDocument/inlineValue",t.messageDirection=G1.MessageDirection.clientToServer,t.type=new G1.ProtocolRequestType(t.method)})(V6||(yp.InlineValueRequest=V6={}));var K6;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=G1.MessageDirection.serverToClient,t.type=new G1.ProtocolRequestType0(t.method)})(K6||(yp.InlineValueRefreshRequest=K6={}))});var X6=I(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.InlayHintRefreshRequest=Fu.InlayHintResolveRequest=Fu.InlayHintRequest=void 0;var vp=Qn(),J6;(function(t){t.method="textDocument/inlayHint",t.messageDirection=vp.MessageDirection.clientToServer,t.type=new vp.ProtocolRequestType(t.method)})(J6||(Fu.InlayHintRequest=J6={}));var Y6;(function(t){t.method="inlayHint/resolve",t.messageDirection=vp.MessageDirection.clientToServer,t.type=new vp.ProtocolRequestType(t.method)})(Y6||(Fu.InlayHintResolveRequest=Y6={}));var Q6;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=vp.MessageDirection.serverToClient,t.type=new vp.ProtocolRequestType0(t.method)})(Q6||(Fu.InlayHintRefreshRequest=Q6={}))});var sB=I(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.DiagnosticRefreshRequest=ko.WorkspaceDiagnosticRequest=ko.DocumentDiagnosticRequest=ko.DocumentDiagnosticReportKind=ko.DiagnosticServerCancellationData=void 0;var iB=wh(),Qxe=N1(),wp=Qn(),Z6;(function(t){function e(n){let r=n;return r&&Qxe.boolean(r.retriggerRequest)}t.is=e})(Z6||(ko.DiagnosticServerCancellationData=Z6={}));var eB;(function(t){t.Full="full",t.Unchanged="unchanged"})(eB||(ko.DocumentDiagnosticReportKind=eB={}));var tB;(function(t){t.method="textDocument/diagnostic",t.messageDirection=wp.MessageDirection.clientToServer,t.type=new wp.ProtocolRequestType(t.method),t.partialResult=new iB.ProgressType})(tB||(ko.DocumentDiagnosticRequest=tB={}));var nB;(function(t){t.method="workspace/diagnostic",t.messageDirection=wp.MessageDirection.clientToServer,t.type=new wp.ProtocolRequestType(t.method),t.partialResult=new iB.ProgressType})(nB||(ko.WorkspaceDiagnosticRequest=nB={}));var rB;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=wp.MessageDirection.serverToClient,t.type=new wp.ProtocolRequestType0(t.method)})(rB||(ko.DiagnosticRefreshRequest=rB={}))});var hB=I(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.DidCloseNotebookDocumentNotification=ar.DidSaveNotebookDocumentNotification=ar.DidChangeNotebookDocumentNotification=ar.NotebookCellArrayChange=ar.DidOpenNotebookDocumentNotification=ar.NotebookDocumentSyncRegistrationType=ar.NotebookDocument=ar.NotebookCell=ar.ExecutionSummary=ar.NotebookCellKind=void 0;var Rb=yr(),ga=N1(),Xa=Qn(),eD;(function(t){t.Markup=1,t.Code=2;function e(n){return n===1||n===2}t.is=e})(eD||(ar.NotebookCellKind=eD={}));var tD;(function(t){function e(i,s){let o={executionOrder:i};return(s===!0||s===!1)&&(o.success=s),o}t.create=e;function n(i){let s=i;return ga.objectLiteral(s)&&Rb.uinteger.is(s.executionOrder)&&(s.success===void 0||ga.boolean(s.success))}t.is=n;function r(i,s){return i===s?!0:i==null||s===null||s===void 0?!1:i.executionOrder===s.executionOrder&&i.success===s.success}t.equals=r})(tD||(ar.ExecutionSummary=tD={}));var J1;(function(t){function e(s,o){return{kind:s,document:o}}t.create=e;function n(s){let o=s;return ga.objectLiteral(o)&&eD.is(o.kind)&&Rb.DocumentUri.is(o.document)&&(o.metadata===void 0||ga.objectLiteral(o.metadata))}t.is=n;function r(s,o){let a=new Set;return s.document!==o.document&&a.add("document"),s.kind!==o.kind&&a.add("kind"),s.executionSummary!==o.executionSummary&&a.add("executionSummary"),(s.metadata!==void 0||o.metadata!==void 0)&&!i(s.metadata,o.metadata)&&a.add("metadata"),(s.executionSummary!==void 0||o.executionSummary!==void 0)&&!tD.equals(s.executionSummary,o.executionSummary)&&a.add("executionSummary"),a}t.diff=r;function i(s,o){if(s===o)return!0;if(s==null||o===null||o===void 0||typeof s!=typeof o||typeof s!="object")return!1;let a=Array.isArray(s),l=Array.isArray(o);if(a!==l)return!1;if(a&&l){if(s.length!==o.length)return!1;for(let c=0;c<s.length;c++)if(!i(s[c],o[c]))return!1}if(ga.objectLiteral(s)&&ga.objectLiteral(o)){let c=Object.keys(s),u=Object.keys(o);if(c.length!==u.length||(c.sort(),u.sort(),!i(c,u)))return!1;for(let d=0;d<c.length;d++){let f=c[d];if(!i(s[f],o[f]))return!1}}return!0}})(J1||(ar.NotebookCell=J1={}));var oB;(function(t){function e(r,i,s,o){return{uri:r,notebookType:i,version:s,cells:o}}t.create=e;function n(r){let i=r;return ga.objectLiteral(i)&&ga.string(i.uri)&&Rb.integer.is(i.version)&&ga.typedArray(i.cells,J1.is)}t.is=n})(oB||(ar.NotebookDocument=oB={}));var _p;(function(t){t.method="notebookDocument/sync",t.messageDirection=Xa.MessageDirection.clientToServer,t.type=new Xa.RegistrationType(t.method)})(_p||(ar.NotebookDocumentSyncRegistrationType=_p={}));var aB;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=Xa.MessageDirection.clientToServer,t.type=new Xa.ProtocolNotificationType(t.method),t.registrationMethod=_p.method})(aB||(ar.DidOpenNotebookDocumentNotification=aB={}));var lB;(function(t){function e(r){let i=r;return ga.objectLiteral(i)&&Rb.uinteger.is(i.start)&&Rb.uinteger.is(i.deleteCount)&&(i.cells===void 0||ga.typedArray(i.cells,J1.is))}t.is=e;function n(r,i,s){let o={start:r,deleteCount:i};return s!==void 0&&(o.cells=s),o}t.create=n})(lB||(ar.NotebookCellArrayChange=lB={}));var cB;(function(t){t.method="notebookDocument/didChange",t.messageDirection=Xa.MessageDirection.clientToServer,t.type=new Xa.ProtocolNotificationType(t.method),t.registrationMethod=_p.method})(cB||(ar.DidChangeNotebookDocumentNotification=cB={}));var uB;(function(t){t.method="notebookDocument/didSave",t.messageDirection=Xa.MessageDirection.clientToServer,t.type=new Xa.ProtocolNotificationType(t.method),t.registrationMethod=_p.method})(uB||(ar.DidSaveNotebookDocumentNotification=uB={}));var dB;(function(t){t.method="notebookDocument/didClose",t.messageDirection=Xa.MessageDirection.clientToServer,t.type=new Xa.ProtocolNotificationType(t.method),t.registrationMethod=_p.method})(dB||(ar.DidCloseNotebookDocumentNotification=dB={}))});var mB=I(Y1=>{"use strict";Object.defineProperty(Y1,"__esModule",{value:!0});Y1.InlineCompletionRequest=void 0;var fB=Qn(),pB;(function(t){t.method="textDocument/inlineCompletion",t.messageDirection=fB.MessageDirection.clientToServer,t.type=new fB.ProtocolRequestType(t.method)})(pB||(Y1.InlineCompletionRequest=pB={}))});var EH=I(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.WorkspaceSymbolRequest=J.CodeActionResolveRequest=J.CodeActionRequest=J.DocumentSymbolRequest=J.DocumentHighlightRequest=J.ReferencesRequest=J.DefinitionRequest=J.SignatureHelpRequest=J.SignatureHelpTriggerKind=J.HoverRequest=J.CompletionResolveRequest=J.CompletionRequest=J.CompletionTriggerKind=J.PublishDiagnosticsNotification=J.WatchKind=J.RelativePattern=J.FileChangeType=J.DidChangeWatchedFilesNotification=J.WillSaveTextDocumentWaitUntilRequest=J.WillSaveTextDocumentNotification=J.TextDocumentSaveReason=J.DidSaveTextDocumentNotification=J.DidCloseTextDocumentNotification=J.DidChangeTextDocumentNotification=J.TextDocumentContentChangeEvent=J.DidOpenTextDocumentNotification=J.TextDocumentSyncKind=J.TelemetryEventNotification=J.LogMessageNotification=J.ShowMessageRequest=J.ShowMessageNotification=J.MessageType=J.DidChangeConfigurationNotification=J.ExitNotification=J.ShutdownRequest=J.InitializedNotification=J.InitializeErrorCodes=J.InitializeRequest=J.WorkDoneProgressOptions=J.TextDocumentRegistrationOptions=J.StaticRegistrationOptions=J.PositionEncodingKind=J.FailureHandlingKind=J.ResourceOperationKind=J.UnregistrationRequest=J.RegistrationRequest=J.DocumentSelector=J.NotebookCellTextDocumentFilter=J.NotebookDocumentFilter=J.TextDocumentFilter=void 0;J.MonikerRequest=J.MonikerKind=J.UniquenessLevel=J.WillDeleteFilesRequest=J.DidDeleteFilesNotification=J.WillRenameFilesRequest=J.DidRenameFilesNotification=J.WillCreateFilesRequest=J.DidCreateFilesNotification=J.FileOperationPatternKind=J.LinkedEditingRangeRequest=J.ShowDocumentRequest=J.SemanticTokensRegistrationType=J.SemanticTokensRefreshRequest=J.SemanticTokensRangeRequest=J.SemanticTokensDeltaRequest=J.SemanticTokensRequest=J.TokenFormat=J.CallHierarchyPrepareRequest=J.CallHierarchyOutgoingCallsRequest=J.CallHierarchyIncomingCallsRequest=J.WorkDoneProgressCancelNotification=J.WorkDoneProgressCreateRequest=J.WorkDoneProgress=J.SelectionRangeRequest=J.DeclarationRequest=J.FoldingRangeRefreshRequest=J.FoldingRangeRequest=J.ColorPresentationRequest=J.DocumentColorRequest=J.ConfigurationRequest=J.DidChangeWorkspaceFoldersNotification=J.WorkspaceFoldersRequest=J.TypeDefinitionRequest=J.ImplementationRequest=J.ApplyWorkspaceEditRequest=J.ExecuteCommandRequest=J.PrepareRenameRequest=J.RenameRequest=J.PrepareSupportDefaultBehavior=J.DocumentOnTypeFormattingRequest=J.DocumentRangesFormattingRequest=J.DocumentRangeFormattingRequest=J.DocumentFormattingRequest=J.DocumentLinkResolveRequest=J.DocumentLinkRequest=J.CodeLensRefreshRequest=J.CodeLensResolveRequest=J.CodeLensRequest=J.WorkspaceSymbolResolveRequest=void 0;J.InlineCompletionRequest=J.DidCloseNotebookDocumentNotification=J.DidSaveNotebookDocumentNotification=J.DidChangeNotebookDocumentNotification=J.NotebookCellArrayChange=J.DidOpenNotebookDocumentNotification=J.NotebookDocumentSyncRegistrationType=J.NotebookDocument=J.NotebookCell=J.ExecutionSummary=J.NotebookCellKind=J.DiagnosticRefreshRequest=J.WorkspaceDiagnosticRequest=J.DocumentDiagnosticRequest=J.DocumentDiagnosticReportKind=J.DiagnosticServerCancellationData=J.InlayHintRefreshRequest=J.InlayHintResolveRequest=J.InlayHintRequest=J.InlineValueRefreshRequest=J.InlineValueRequest=J.TypeHierarchySupertypesRequest=J.TypeHierarchySubtypesRequest=J.TypeHierarchyPrepareRequest=void 0;var Ee=Qn(),gB=yr(),Zr=N1(),Xxe=jU();Object.defineProperty(J,"ImplementationRequest",{enumerable:!0,get:function(){return Xxe.ImplementationRequest}});var Zxe=BU();Object.defineProperty(J,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Zxe.TypeDefinitionRequest}});var xH=KU();Object.defineProperty(J,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return xH.WorkspaceFoldersRequest}});Object.defineProperty(J,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return xH.DidChangeWorkspaceFoldersNotification}});var eke=YU();Object.defineProperty(J,"ConfigurationRequest",{enumerable:!0,get:function(){return eke.ConfigurationRequest}});var kH=ZU();Object.defineProperty(J,"DocumentColorRequest",{enumerable:!0,get:function(){return kH.DocumentColorRequest}});Object.defineProperty(J,"ColorPresentationRequest",{enumerable:!0,get:function(){return kH.ColorPresentationRequest}});var AH=n6();Object.defineProperty(J,"FoldingRangeRequest",{enumerable:!0,get:function(){return AH.FoldingRangeRequest}});Object.defineProperty(J,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return AH.FoldingRangeRefreshRequest}});var tke=s6();Object.defineProperty(J,"DeclarationRequest",{enumerable:!0,get:function(){return tke.DeclarationRequest}});var nke=l6();Object.defineProperty(J,"SelectionRangeRequest",{enumerable:!0,get:function(){return nke.SelectionRangeRequest}});var oD=h6();Object.defineProperty(J,"WorkDoneProgress",{enumerable:!0,get:function(){return oD.WorkDoneProgress}});Object.defineProperty(J,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return oD.WorkDoneProgressCreateRequest}});Object.defineProperty(J,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return oD.WorkDoneProgressCancelNotification}});var aD=g6();Object.defineProperty(J,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return aD.CallHierarchyIncomingCallsRequest}});Object.defineProperty(J,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return aD.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(J,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return aD.CallHierarchyPrepareRequest}});var Sp=S6();Object.defineProperty(J,"TokenFormat",{enumerable:!0,get:function(){return Sp.TokenFormat}});Object.defineProperty(J,"SemanticTokensRequest",{enumerable:!0,get:function(){return Sp.SemanticTokensRequest}});Object.defineProperty(J,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return Sp.SemanticTokensDeltaRequest}});Object.defineProperty(J,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return Sp.SemanticTokensRangeRequest}});Object.defineProperty(J,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return Sp.SemanticTokensRefreshRequest}});Object.defineProperty(J,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return Sp.SemanticTokensRegistrationType}});var rke=k6();Object.defineProperty(J,"ShowDocumentRequest",{enumerable:!0,get:function(){return rke.ShowDocumentRequest}});var ike=E6();Object.defineProperty(J,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return ike.LinkedEditingRangeRequest}});var _h=N6();Object.defineProperty(J,"FileOperationPatternKind",{enumerable:!0,get:function(){return _h.FileOperationPatternKind}});Object.defineProperty(J,"DidCreateFilesNotification",{enumerable:!0,get:function(){return _h.DidCreateFilesNotification}});Object.defineProperty(J,"WillCreateFilesRequest",{enumerable:!0,get:function(){return _h.WillCreateFilesRequest}});Object.defineProperty(J,"DidRenameFilesNotification",{enumerable:!0,get:function(){return _h.DidRenameFilesNotification}});Object.defineProperty(J,"WillRenameFilesRequest",{enumerable:!0,get:function(){return _h.WillRenameFilesRequest}});Object.defineProperty(J,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return _h.DidDeleteFilesNotification}});Object.defineProperty(J,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return _h.WillDeleteFilesRequest}});var lD=j6();Object.defineProperty(J,"UniquenessLevel",{enumerable:!0,get:function(){return lD.UniquenessLevel}});Object.defineProperty(J,"MonikerKind",{enumerable:!0,get:function(){return lD.MonikerKind}});Object.defineProperty(J,"MonikerRequest",{enumerable:!0,get:function(){return lD.MonikerRequest}});var cD=H6();Object.defineProperty(J,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return cD.TypeHierarchyPrepareRequest}});Object.defineProperty(J,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return cD.TypeHierarchySubtypesRequest}});Object.defineProperty(J,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return cD.TypeHierarchySupertypesRequest}});var FH=G6();Object.defineProperty(J,"InlineValueRequest",{enumerable:!0,get:function(){return FH.InlineValueRequest}});Object.defineProperty(J,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return FH.InlineValueRefreshRequest}});var uD=X6();Object.defineProperty(J,"InlayHintRequest",{enumerable:!0,get:function(){return uD.InlayHintRequest}});Object.defineProperty(J,"InlayHintResolveRequest",{enumerable:!0,get:function(){return uD.InlayHintResolveRequest}});Object.defineProperty(J,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return uD.InlayHintRefreshRequest}});var Ib=sB();Object.defineProperty(J,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Ib.DiagnosticServerCancellationData}});Object.defineProperty(J,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Ib.DocumentDiagnosticReportKind}});Object.defineProperty(J,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Ib.DocumentDiagnosticRequest}});Object.defineProperty(J,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Ib.WorkspaceDiagnosticRequest}});Object.defineProperty(J,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Ib.DiagnosticRefreshRequest}});var Za=hB();Object.defineProperty(J,"NotebookCellKind",{enumerable:!0,get:function(){return Za.NotebookCellKind}});Object.defineProperty(J,"ExecutionSummary",{enumerable:!0,get:function(){return Za.ExecutionSummary}});Object.defineProperty(J,"NotebookCell",{enumerable:!0,get:function(){return Za.NotebookCell}});Object.defineProperty(J,"NotebookDocument",{enumerable:!0,get:function(){return Za.NotebookDocument}});Object.defineProperty(J,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return Za.NotebookDocumentSyncRegistrationType}});Object.defineProperty(J,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return Za.DidOpenNotebookDocumentNotification}});Object.defineProperty(J,"NotebookCellArrayChange",{enumerable:!0,get:function(){return Za.NotebookCellArrayChange}});Object.defineProperty(J,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return Za.DidChangeNotebookDocumentNotification}});Object.defineProperty(J,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return Za.DidSaveNotebookDocumentNotification}});Object.defineProperty(J,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return Za.DidCloseNotebookDocumentNotification}});var ske=mB();Object.defineProperty(J,"InlineCompletionRequest",{enumerable:!0,get:function(){return ske.InlineCompletionRequest}});var nD;(function(t){function e(n){let r=n;return Zr.string(r)||Zr.string(r.language)||Zr.string(r.scheme)||Zr.string(r.pattern)}t.is=e})(nD||(J.TextDocumentFilter=nD={}));var rD;(function(t){function e(n){let r=n;return Zr.objectLiteral(r)&&(Zr.string(r.notebookType)||Zr.string(r.scheme)||Zr.string(r.pattern))}t.is=e})(rD||(J.NotebookDocumentFilter=rD={}));var iD;(function(t){function e(n){let r=n;return Zr.objectLiteral(r)&&(Zr.string(r.notebook)||rD.is(r.notebook))&&(r.language===void 0||Zr.string(r.language))}t.is=e})(iD||(J.NotebookCellTextDocumentFilter=iD={}));var sD;(function(t){function e(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Zr.string(r)&&!nD.is(r)&&!iD.is(r))return!1;return!0}t.is=e})(sD||(J.DocumentSelector=sD={}));var bB;(function(t){t.method="client/registerCapability",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolRequestType(t.method)})(bB||(J.RegistrationRequest=bB={}));var yB;(function(t){t.method="client/unregisterCapability",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolRequestType(t.method)})(yB||(J.UnregistrationRequest=yB={}));var vB;(function(t){t.Create="create",t.Rename="rename",t.Delete="delete"})(vB||(J.ResourceOperationKind=vB={}));var wB;(function(t){t.Abort="abort",t.Transactional="transactional",t.TextOnlyTransactional="textOnlyTransactional",t.Undo="undo"})(wB||(J.FailureHandlingKind=wB={}));var _B;(function(t){t.UTF8="utf-8",t.UTF16="utf-16",t.UTF32="utf-32"})(_B||(J.PositionEncodingKind=_B={}));var SB;(function(t){function e(n){let r=n;return r&&Zr.string(r.id)&&r.id.length>0}t.hasId=e})(SB||(J.StaticRegistrationOptions=SB={}));var CB;(function(t){function e(n){let r=n;return r&&(r.documentSelector===null||sD.is(r.documentSelector))}t.is=e})(CB||(J.TextDocumentRegistrationOptions=CB={}));var xB;(function(t){function e(r){let i=r;return Zr.objectLiteral(i)&&(i.workDoneProgress===void 0||Zr.boolean(i.workDoneProgress))}t.is=e;function n(r){let i=r;return i&&Zr.boolean(i.workDoneProgress)}t.hasWorkDoneProgress=n})(xB||(J.WorkDoneProgressOptions=xB={}));var kB;(function(t){t.method="initialize",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(kB||(J.InitializeRequest=kB={}));var AB;(function(t){t.unknownProtocolVersion=1})(AB||(J.InitializeErrorCodes=AB={}));var FB;(function(t){t.method="initialized",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})(FB||(J.InitializedNotification=FB={}));var EB;(function(t){t.method="shutdown",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType0(t.method)})(EB||(J.ShutdownRequest=EB={}));var TB;(function(t){t.method="exit",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType0(t.method)})(TB||(J.ExitNotification=TB={}));var MB;(function(t){t.method="workspace/didChangeConfiguration",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})(MB||(J.DidChangeConfigurationNotification=MB={}));var DB;(function(t){t.Error=1,t.Warning=2,t.Info=3,t.Log=4,t.Debug=5})(DB||(J.MessageType=DB={}));var RB;(function(t){t.method="window/showMessage",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolNotificationType(t.method)})(RB||(J.ShowMessageNotification=RB={}));var IB;(function(t){t.method="window/showMessageRequest",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolRequestType(t.method)})(IB||(J.ShowMessageRequest=IB={}));var PB;(function(t){t.method="window/logMessage",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolNotificationType(t.method)})(PB||(J.LogMessageNotification=PB={}));var OB;(function(t){t.method="telemetry/event",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolNotificationType(t.method)})(OB||(J.TelemetryEventNotification=OB={}));var NB;(function(t){t.None=0,t.Full=1,t.Incremental=2})(NB||(J.TextDocumentSyncKind=NB={}));var LB;(function(t){t.method="textDocument/didOpen",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})(LB||(J.DidOpenTextDocumentNotification=LB={}));var qB;(function(t){function e(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}t.isIncremental=e;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}t.isFull=n})(qB||(J.TextDocumentContentChangeEvent=qB={}));var $B;(function(t){t.method="textDocument/didChange",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})($B||(J.DidChangeTextDocumentNotification=$B={}));var zB;(function(t){t.method="textDocument/didClose",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})(zB||(J.DidCloseTextDocumentNotification=zB={}));var jB;(function(t){t.method="textDocument/didSave",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})(jB||(J.DidSaveTextDocumentNotification=jB={}));var WB;(function(t){t.Manual=1,t.AfterDelay=2,t.FocusOut=3})(WB||(J.TextDocumentSaveReason=WB={}));var UB;(function(t){t.method="textDocument/willSave",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})(UB||(J.WillSaveTextDocumentNotification=UB={}));var BB;(function(t){t.method="textDocument/willSaveWaitUntil",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(BB||(J.WillSaveTextDocumentWaitUntilRequest=BB={}));var HB;(function(t){t.method="workspace/didChangeWatchedFiles",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolNotificationType(t.method)})(HB||(J.DidChangeWatchedFilesNotification=HB={}));var VB;(function(t){t.Created=1,t.Changed=2,t.Deleted=3})(VB||(J.FileChangeType=VB={}));var KB;(function(t){function e(n){let r=n;return Zr.objectLiteral(r)&&(gB.URI.is(r.baseUri)||gB.WorkspaceFolder.is(r.baseUri))&&Zr.string(r.pattern)}t.is=e})(KB||(J.RelativePattern=KB={}));var GB;(function(t){t.Create=1,t.Change=2,t.Delete=4})(GB||(J.WatchKind=GB={}));var JB;(function(t){t.method="textDocument/publishDiagnostics",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolNotificationType(t.method)})(JB||(J.PublishDiagnosticsNotification=JB={}));var YB;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.TriggerForIncompleteCompletions=3})(YB||(J.CompletionTriggerKind=YB={}));var QB;(function(t){t.method="textDocument/completion",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(QB||(J.CompletionRequest=QB={}));var XB;(function(t){t.method="completionItem/resolve",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(XB||(J.CompletionResolveRequest=XB={}));var ZB;(function(t){t.method="textDocument/hover",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(ZB||(J.HoverRequest=ZB={}));var eH;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.ContentChange=3})(eH||(J.SignatureHelpTriggerKind=eH={}));var tH;(function(t){t.method="textDocument/signatureHelp",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(tH||(J.SignatureHelpRequest=tH={}));var nH;(function(t){t.method="textDocument/definition",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(nH||(J.DefinitionRequest=nH={}));var rH;(function(t){t.method="textDocument/references",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(rH||(J.ReferencesRequest=rH={}));var iH;(function(t){t.method="textDocument/documentHighlight",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(iH||(J.DocumentHighlightRequest=iH={}));var sH;(function(t){t.method="textDocument/documentSymbol",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(sH||(J.DocumentSymbolRequest=sH={}));var oH;(function(t){t.method="textDocument/codeAction",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(oH||(J.CodeActionRequest=oH={}));var aH;(function(t){t.method="codeAction/resolve",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(aH||(J.CodeActionResolveRequest=aH={}));var lH;(function(t){t.method="workspace/symbol",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(lH||(J.WorkspaceSymbolRequest=lH={}));var cH;(function(t){t.method="workspaceSymbol/resolve",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(cH||(J.WorkspaceSymbolResolveRequest=cH={}));var uH;(function(t){t.method="textDocument/codeLens",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(uH||(J.CodeLensRequest=uH={}));var dH;(function(t){t.method="codeLens/resolve",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(dH||(J.CodeLensResolveRequest=dH={}));var hH;(function(t){t.method="workspace/codeLens/refresh",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolRequestType0(t.method)})(hH||(J.CodeLensRefreshRequest=hH={}));var fH;(function(t){t.method="textDocument/documentLink",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(fH||(J.DocumentLinkRequest=fH={}));var pH;(function(t){t.method="documentLink/resolve",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(pH||(J.DocumentLinkResolveRequest=pH={}));var mH;(function(t){t.method="textDocument/formatting",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(mH||(J.DocumentFormattingRequest=mH={}));var gH;(function(t){t.method="textDocument/rangeFormatting",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(gH||(J.DocumentRangeFormattingRequest=gH={}));var bH;(function(t){t.method="textDocument/rangesFormatting",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(bH||(J.DocumentRangesFormattingRequest=bH={}));var yH;(function(t){t.method="textDocument/onTypeFormatting",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(yH||(J.DocumentOnTypeFormattingRequest=yH={}));var vH;(function(t){t.Identifier=1})(vH||(J.PrepareSupportDefaultBehavior=vH={}));var wH;(function(t){t.method="textDocument/rename",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(wH||(J.RenameRequest=wH={}));var _H;(function(t){t.method="textDocument/prepareRename",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(_H||(J.PrepareRenameRequest=_H={}));var SH;(function(t){t.method="workspace/executeCommand",t.messageDirection=Ee.MessageDirection.clientToServer,t.type=new Ee.ProtocolRequestType(t.method)})(SH||(J.ExecuteCommandRequest=SH={}));var CH;(function(t){t.method="workspace/applyEdit",t.messageDirection=Ee.MessageDirection.serverToClient,t.type=new Ee.ProtocolRequestType("workspace/applyEdit")})(CH||(J.ApplyWorkspaceEditRequest=CH={}))});var MH=I(Q1=>{"use strict";Object.defineProperty(Q1,"__esModule",{value:!0});Q1.createProtocolConnection=void 0;var TH=wh();function oke(t,e,n,r){return TH.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,TH.createMessageConnection)(t,e,n,r)}Q1.createProtocolConnection=oke});var RH=I(gs=>{"use strict";var ake=gs&&gs.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),X1=gs&&gs.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&ake(e,t,n)};Object.defineProperty(gs,"__esModule",{value:!0});gs.LSPErrorCodes=gs.createProtocolConnection=void 0;X1(wh(),gs);X1(yr(),gs);X1(Qn(),gs);X1(EH(),gs);var lke=MH();Object.defineProperty(gs,"createProtocolConnection",{enumerable:!0,get:function(){return lke.createProtocolConnection}});var DH;(function(t){t.lspReservedErrorRangeStart=-32899,t.RequestFailed=-32803,t.ServerCancelled=-32802,t.ContentModified=-32801,t.RequestCancelled=-32800,t.lspReservedErrorRangeEnd=-32800})(DH||(gs.LSPErrorCodes=DH={}))});var ir=I(el=>{"use strict";var cke=el&&el.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),IH=el&&el.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&cke(e,t,n)};Object.defineProperty(el,"__esModule",{value:!0});el.createProtocolConnection=void 0;var uke=GM();IH(GM(),el);IH(RH(),el);function dke(t,e,n,r){return(0,uke.createMessageConnection)(t,e,n,r)}el.createProtocolConnection=dke});var dD=I(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.generateUuid=Ao.parse=Ao.isUUID=Ao.v4=Ao.empty=void 0;var Pb=class{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}},xt=class extends Pb{static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return xt._oneOf(xt._chars)}constructor(){super([xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),"-",xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),"-","4",xt._randomHex(),xt._randomHex(),xt._randomHex(),"-",xt._oneOf(xt._timeHighBits),xt._randomHex(),xt._randomHex(),xt._randomHex(),"-",xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex(),xt._randomHex()].join(""))}};xt._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];xt._timeHighBits=["8","9","a","b"];Ao.empty=new Pb("00000000-0000-0000-0000-000000000000");function PH(){return new xt}Ao.v4=PH;var hke=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function OH(t){return hke.test(t)}Ao.isUUID=OH;function fke(t){if(!OH(t))throw new Error("invalid uuid");return new Pb(t)}Ao.parse=fke;function pke(){return PH().asHex()}Ao.generateUuid=pke});var NH=I(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.attachPartialResult=Tu.ProgressFeature=Tu.attachWorkDone=void 0;var Eu=ir(),mke=dD(),tl=class{constructor(e,n){this._connection=e,this._token=n,tl.Instances.set(this._token,this)}begin(e,n,r,i){let s={kind:"begin",title:e,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Eu.WorkDoneProgress.type,this._token,s)}report(e,n){let r={kind:"report"};typeof e=="number"?(r.percentage=e,n!==void 0&&(r.message=n)):r.message=e,this._connection.sendProgress(Eu.WorkDoneProgress.type,this._token,r)}done(){tl.Instances.delete(this._token),this._connection.sendProgress(Eu.WorkDoneProgress.type,this._token,{kind:"end"})}};tl.Instances=new Map;var Z1=class extends tl{constructor(e,n){super(e,n),this._source=new Eu.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Ob=class{constructor(){}begin(){}report(){}done(){}},e_=class extends Ob{constructor(){super(),this._source=new Eu.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function gke(t,e){if(e===void 0||e.workDoneToken===void 0)return new Ob;let n=e.workDoneToken;return delete e.workDoneToken,new tl(t,n)}Tu.attachWorkDone=gke;var bke=t=>class extends t{constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),e?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Eu.WorkDoneProgressCancelNotification.type,n=>{let r=tl.Instances.get(n.token);(r instanceof Z1||r instanceof e_)&&r.cancel()}))}attachWorkDoneProgress(e){return e===void 0?new Ob:new tl(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){let e=(0,mke.generateUuid)();return this.connection.sendRequest(Eu.WorkDoneProgressCreateRequest.type,{token:e}).then(()=>new Z1(this.connection,e))}else return Promise.resolve(new e_)}};Tu.ProgressFeature=bke;var hD;(function(t){t.type=new Eu.ProgressType})(hD||(hD={}));var fD=class{constructor(e,n){this._connection=e,this._token=n}report(e){this._connection.sendProgress(hD.type,this._token,e)}};function yke(t,e){if(e===void 0||e.partialResultToken===void 0)return;let n=e.partialResultToken;return delete e.partialResultToken,new fD(t,n)}Tu.attachPartialResult=yke});var LH=I(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0});t_.ConfigurationFeature=void 0;var vke=ir(),wke=m1(),_ke=t=>class extends t{getConfiguration(e){return e?wke.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let n={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(vke.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(e)?r:r[0]:Array.isArray(e)?[]:null)}};t_.ConfigurationFeature=_ke});var qH=I(r_=>{"use strict";Object.defineProperty(r_,"__esModule",{value:!0});r_.WorkspaceFoldersFeature=void 0;var n_=ir(),Ske=t=>class extends t{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);let n=e.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new n_.Emitter,this.connection.onNotification(n_.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(e){super.fillServerCapabilities(e);let n=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(n_.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(n_.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};r_.WorkspaceFoldersFeature=Ske});var $H=I(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0});i_.CallHierarchyFeature=void 0;var pD=ir(),Cke=t=>class extends t{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(pD.CallHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:e=>{let n=pD.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:e=>{let n=pD.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};i_.CallHierarchyFeature=Cke});var gD=I(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.SemanticTokensBuilder=Mu.SemanticTokensDiff=Mu.SemanticTokensFeature=void 0;var s_=ir(),xke=t=>class extends t{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(s_.SemanticTokensRefreshRequest.type),on:e=>{let n=s_.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:e=>{let n=s_.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:e=>{let n=s_.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Mu.SemanticTokensFeature=xke;var o_=class{constructor(e,n){this.originalSequence=e,this.modifiedSequence=n}computeDiff(){let e=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<e&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<e){let i=e-1,s=n-1;for(;i>=r&&s>=r&&this.originalSequence[i]===this.modifiedSequence[s];)i--,s--;(i<r||s<r)&&(i++,s++);let o=i-r+1,a=this.modifiedSequence.slice(r,s+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:o-1}]:[{start:r,deleteCount:o,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<e?[{start:r,deleteCount:e-r}]:[]}};Mu.SemanticTokensDiff=o_;var mD=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,n,r,i,s){let o=e,a=n;this._dataLen>0&&(o-=this._prevLine,o===0&&(a-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=s,this._prevLine=e,this._prevChar=n}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new o_(this._prevData,this._data).computeDiff()}:this.build()}};Mu.SemanticTokensBuilder=mD});var zH=I(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0});a_.ShowDocumentFeature=void 0;var kke=ir(),Ake=t=>class extends t{showDocument(e){return this.connection.sendRequest(kke.ShowDocumentRequest.type,e)}};a_.ShowDocumentFeature=Ake});var jH=I(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0});l_.FileOperationsFeature=void 0;var Cp=ir(),Fke=t=>class extends t{onDidCreateFiles(e){return this.connection.onNotification(Cp.DidCreateFilesNotification.type,n=>{e(n)})}onDidRenameFiles(e){return this.connection.onNotification(Cp.DidRenameFilesNotification.type,n=>{e(n)})}onDidDeleteFiles(e){return this.connection.onNotification(Cp.DidDeleteFilesNotification.type,n=>{e(n)})}onWillCreateFiles(e){return this.connection.onRequest(Cp.WillCreateFilesRequest.type,(n,r)=>e(n,r))}onWillRenameFiles(e){return this.connection.onRequest(Cp.WillRenameFilesRequest.type,(n,r)=>e(n,r))}onWillDeleteFiles(e){return this.connection.onRequest(Cp.WillDeleteFilesRequest.type,(n,r)=>e(n,r))}};l_.FileOperationsFeature=Fke});var WH=I(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0});c_.LinkedEditingRangeFeature=void 0;var Eke=ir(),Tke=t=>class extends t{onLinkedEditingRange(e){return this.connection.onRequest(Eke.LinkedEditingRangeRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0))}};c_.LinkedEditingRangeFeature=Tke});var UH=I(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});u_.TypeHierarchyFeature=void 0;var bD=ir(),Mke=t=>class extends t{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(bD.TypeHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:e=>{let n=bD.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:e=>{let n=bD.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};u_.TypeHierarchyFeature=Mke});var HH=I(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0});d_.InlineValueFeature=void 0;var BH=ir(),Dke=t=>class extends t{get inlineValue(){return{refresh:()=>this.connection.sendRequest(BH.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(BH.InlineValueRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n)))}}};d_.InlineValueFeature=Dke});var KH=I(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});h_.FoldingRangeFeature=void 0;var VH=ir(),Rke=t=>class extends t{get foldingRange(){return{refresh:()=>this.connection.sendRequest(VH.FoldingRangeRefreshRequest.type),on:e=>{let n=VH.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};h_.FoldingRangeFeature=Rke});var GH=I(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0});f_.InlayHintFeature=void 0;var yD=ir(),Ike=t=>class extends t{get inlayHint(){return{refresh:()=>this.connection.sendRequest(yD.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(yD.InlayHintRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n))),resolve:e=>this.connection.onRequest(yD.InlayHintResolveRequest.type,(n,r)=>e(n,r))}}};f_.InlayHintFeature=Ike});var JH=I(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0});p_.DiagnosticFeature=void 0;var Nb=ir(),Pke=t=>class extends t{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Nb.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(Nb.DocumentDiagnosticRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Nb.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:e=>this.connection.onRequest(Nb.WorkspaceDiagnosticRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Nb.WorkspaceDiagnosticRequest.partialResult,n)))}}};p_.DiagnosticFeature=Pke});var wD=I(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});m_.TextDocuments=void 0;var Sh=ir(),vD=class{constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new Sh.Emitter,this._onDidOpen=new Sh.Emitter,this._onDidClose=new Sh.Emitter,this._onDidSave=new Sh.Emitter,this._onWillSave=new Sh.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=Sh.TextDocumentSyncKind.Incremental;let n=[];return n.push(e.onDidOpenTextDocument(r=>{let i=r.textDocument,s=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,s);let o=Object.freeze({document:s});this._onDidOpen.fire(o),this._onDidChangeContent.fire(o)})),n.push(e.onDidChangeTextDocument(r=>{let i=r.textDocument,s=r.contentChanges;if(s.length===0)return;let{version:o}=i;if(o==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,s,o),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(e.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(e.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(e.onWillSaveTextDocumentWaitUntil((r,i)=>{let s=this._syncedDocuments.get(r.textDocument.uri);return s!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:s,reason:r.reason}),i):[]})),n.push(e.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),Sh.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};m_.TextDocuments=vD});var SD=I(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.NotebookDocuments=xp.NotebookSyncFeature=void 0;var Fo=ir(),YH=wD(),Oke=t=>class extends t{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(Fo.DidOpenNotebookDocumentNotification.type,n=>{e(n)}),onDidChangeNotebookDocument:e=>this.connection.onNotification(Fo.DidChangeNotebookDocumentNotification.type,n=>{e(n)}),onDidSaveNotebookDocument:e=>this.connection.onNotification(Fo.DidSaveNotebookDocumentNotification.type,n=>{e(n)}),onDidCloseNotebookDocument:e=>this.connection.onNotification(Fo.DidCloseNotebookDocumentNotification.type,n=>{e(n)})}}};xp.NotebookSyncFeature=Oke;var Du=class{onDidOpenTextDocument(e){return this.openHandler=e,Fo.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(e){this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,Fo.Disposable.create(()=>{this.changeHandler=e})}changeTextDocument(e){this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,Fo.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(e){this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return Du.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return Du.NULL_DISPOSE}onDidSaveTextDocument(){return Du.NULL_DISPOSE}};Du.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var _D=class{constructor(e){e instanceof YH.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new YH.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new Fo.Emitter,this._onDidChange=new Fo.Emitter,this._onDidSave=new Fo.Emitter,this._onDidClose=new Fo.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){let n=this.notebookCellMap.get(e);return n&&n[0]}findNotebookDocumentForCell(e){let n=typeof e=="string"?e:e.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){let n=new Du,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(e.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let s of i.cellTextDocuments)n.openTextDocument({textDocument:s});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(e.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let s=this.notebookDocuments.get(i.notebookDocument.uri);if(s===void 0)return;s.version=i.notebookDocument.version;let o=s.metadata,a=!1,l=i.change;l.metadata!==void 0&&(a=!0,s.metadata=l.metadata);let c=[],u=[],d=[],f=[];if(l.cells!==void 0){let _=l.cells;if(_.structure!==void 0){let S=_.structure.array;if(s.cells.splice(S.start,S.deleteCount,...S.cells!==void 0?S.cells:[]),_.structure.didOpen!==void 0)for(let v of _.structure.didOpen)n.openTextDocument({textDocument:v}),c.push(v.uri);if(_.structure.didClose)for(let v of _.structure.didClose)n.closeTextDocument({textDocument:v}),u.push(v.uri)}if(_.data!==void 0){let S=new Map(_.data.map(v=>[v.document,v]));for(let v=0;v<=s.cells.length;v++){let T=S.get(s.cells[v].document);if(T!==void 0){let A=s.cells.splice(v,1,T);if(d.push({old:A[0],new:T}),S.delete(T.document),S.size===0)break}}}if(_.textContent!==void 0)for(let S of _.textContent)n.changeTextDocument({textDocument:S.document,contentChanges:S.changes}),f.push(S.document.uri)}this.updateCellMap(s);let m={notebookDocument:s};a&&(m.metadata={old:o,new:s.metadata});let b=[];for(let _ of c)b.push(this.getNotebookCell(_));let g=[];for(let _ of u)g.push(this.getNotebookCell(_));let w=[];for(let _ of f)w.push(this.getNotebookCell(_));(b.length>0||g.length>0||d.length>0||w.length>0)&&(m.cells={added:b,removed:g,changed:{data:d,textContent:w}}),(m.metadata!==void 0||m.cells!==void 0)&&this._onDidChange.fire(m)})),r.push(e.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let s=this.notebookDocuments.get(i.notebookDocument.uri);s!==void 0&&this._onDidSave.fire(s)})),r.push(e.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let s=this.notebookDocuments.get(i.notebookDocument.uri);if(s!==void 0){this._onDidClose.fire(s);for(let o of i.cellTextDocuments)n.closeTextDocument({textDocument:o});this.notebookDocuments.delete(i.notebookDocument.uri);for(let o of s.cells)this.notebookCellMap.delete(o.document)}})),Fo.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(e){for(let n of e.cells)this.notebookCellMap.set(n.document,[n,e])}};xp.NotebookDocuments=_D});var QH=I(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_.MonikerFeature=void 0;var Nke=ir(),Lke=t=>class extends t{get moniker(){return{on:e=>{let n=Nke.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};g_.MonikerFeature=Lke});var ED=I(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.createConnection=nn.combineFeatures=nn.combineNotebooksFeatures=nn.combineLanguagesFeatures=nn.combineWorkspaceFeatures=nn.combineWindowFeatures=nn.combineClientFeatures=nn.combineTracerFeatures=nn.combineTelemetryFeatures=nn.combineConsoleFeatures=nn._NotebooksImpl=nn._LanguagesImpl=nn.BulkUnregistration=nn.BulkRegistration=nn.ErrorMessageTracker=void 0;var Ie=ir(),Eo=m1(),xD=dD(),dt=NH(),qke=LH(),$ke=qH(),zke=$H(),jke=gD(),Wke=zH(),Uke=jH(),Bke=WH(),Hke=UH(),Vke=HH(),Kke=KH(),Gke=GH(),Jke=JH(),Yke=SD(),Qke=QH();function CD(t){if(t!==null)return t}var kD=class{constructor(){this._messages=Object.create(null)}add(e){let n=this._messages[e];n||(n=0),n++,this._messages[e]=n}sendErrors(e){Object.keys(this._messages).forEach(n=>{e.window.showErrorMessage(n)})}};nn.ErrorMessageTracker=kD;var b_=class{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(Ie.MessageType.Error,e)}warn(e){this.send(Ie.MessageType.Warning,e)}info(e){this.send(Ie.MessageType.Info,e)}log(e){this.send(Ie.MessageType.Log,e)}debug(e){this.send(Ie.MessageType.Debug,e)}send(e,n){this._rawConnection&&this._rawConnection.sendNotification(Ie.LogMessageNotification.type,{type:e,message:n}).catch(()=>{(0,Ie.RAL)().console.error("Sending log message failed")})}},AD=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...n){let r={type:Ie.MessageType.Error,message:e,actions:n};return this.connection.sendRequest(Ie.ShowMessageRequest.type,r).then(CD)}showWarningMessage(e,...n){let r={type:Ie.MessageType.Warning,message:e,actions:n};return this.connection.sendRequest(Ie.ShowMessageRequest.type,r).then(CD)}showInformationMessage(e,...n){let r={type:Ie.MessageType.Info,message:e,actions:n};return this.connection.sendRequest(Ie.ShowMessageRequest.type,r).then(CD)}},XH=(0,Wke.ShowDocumentFeature)((0,dt.ProgressFeature)(AD)),ZH;(function(t){function e(){return new y_}t.create=e})(ZH||(nn.BulkRegistration=ZH={}));var y_=class{constructor(){this._registrations=[],this._registered=new Set}add(e,n){let r=Eo.string(e)?e:e.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=xD.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},eV;(function(t){function e(){return new Lb(void 0,[])}t.create=e})(eV||(nn.BulkUnregistration=eV={}));var Lb=class{constructor(e,n){this._connection=e,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let r of this._unregistrations.values())e.push(r);let n={unregisterations:e};this._connection.sendRequest(Ie.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(e){let n=Eo.string(e)?e:e.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(Ie.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},s=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},v_=class{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,n,r){return e instanceof y_?this.registerMany(e):e instanceof Lb?this.registerSingle1(e,n,r):this.registerSingle2(e,n)}registerSingle1(e,n,r){let i=Eo.string(n)?n:n.method,s=xD.generateUuid(),o={registrations:[{id:s,method:i,registerOptions:r||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(Ie.RegistrationRequest.type,o).then(a=>(e.add({id:s,method:i}),e),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(e,n){let r=Eo.string(e)?e:e.method,i=xD.generateUuid(),s={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(Ie.RegistrationRequest.type,s).then(o=>Ie.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),o=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(o)))}unregisterSingle(e,n){let r={unregisterations:[{id:e,method:n}]};return this.connection.sendRequest(Ie.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)})}registerMany(e){let n=e.asRegistrationParams();return this.connection.sendRequest(Ie.RegistrationRequest.type,n).then(()=>new Lb(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},FD=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){function n(i){return i&&!!i.edit}let r=n(e)?e:{edit:e};return this.connection.sendRequest(Ie.ApplyWorkspaceEditRequest.type,r)}},tV=(0,Uke.FileOperationsFeature)((0,$ke.WorkspaceFoldersFeature)((0,qke.ConfigurationFeature)(FD))),w_=class{constructor(){this._trace=Ie.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,n){this._trace!==Ie.Trace.Off&&this.connection.sendNotification(Ie.LogTraceNotification.type,{message:e,verbose:this._trace===Ie.Trace.Verbose?n:void 0}).catch(()=>{})}},__=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(Ie.TelemetryEventNotification.type,e).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},S_=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,dt.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,dt.attachPartialResult)(this.connection,n)}};nn._LanguagesImpl=S_;var nV=(0,Kke.FoldingRangeFeature)((0,Qke.MonikerFeature)((0,Jke.DiagnosticFeature)((0,Gke.InlayHintFeature)((0,Vke.InlineValueFeature)((0,Hke.TypeHierarchyFeature)((0,Bke.LinkedEditingRangeFeature)((0,jke.SemanticTokensFeature)((0,zke.CallHierarchyFeature)(S_))))))))),C_=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,dt.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,dt.attachPartialResult)(this.connection,n)}};nn._NotebooksImpl=C_;var rV=(0,Yke.NotebookSyncFeature)(C_);function iV(t,e){return function(n){return e(t(n))}}nn.combineConsoleFeatures=iV;function sV(t,e){return function(n){return e(t(n))}}nn.combineTelemetryFeatures=sV;function oV(t,e){return function(n){return e(t(n))}}nn.combineTracerFeatures=oV;function aV(t,e){return function(n){return e(t(n))}}nn.combineClientFeatures=aV;function lV(t,e){return function(n){return e(t(n))}}nn.combineWindowFeatures=lV;function cV(t,e){return function(n){return e(t(n))}}nn.combineWorkspaceFeatures=cV;function uV(t,e){return function(n){return e(t(n))}}nn.combineLanguagesFeatures=uV;function dV(t,e){return function(n){return e(t(n))}}nn.combineNotebooksFeatures=dV;function Xke(t,e){function n(i,s,o){return i&&s?o(i,s):i||s}return{__brand:"features",console:n(t.console,e.console,iV),tracer:n(t.tracer,e.tracer,oV),telemetry:n(t.telemetry,e.telemetry,sV),client:n(t.client,e.client,aV),window:n(t.window,e.window,lV),workspace:n(t.workspace,e.workspace,cV),languages:n(t.languages,e.languages,uV),notebooks:n(t.notebooks,e.notebooks,dV)}}nn.combineFeatures=Xke;function Zke(t,e,n){let r=n&&n.console?new(n.console(b_)):new b_,i=t(r);r.rawAttach(i);let s=n&&n.tracer?new(n.tracer(w_)):new w_,o=n&&n.telemetry?new(n.telemetry(__)):new __,a=n&&n.client?new(n.client(v_)):new v_,l=n&&n.window?new(n.window(XH)):new XH,c=n&&n.workspace?new(n.workspace(tV)):new tV,u=n&&n.languages?new(n.languages(nV)):new nV,d=n&&n.notebooks?new(n.notebooks(rV)):new rV,f=[r,s,o,a,l,c,u,d];function m(S){return S instanceof Promise?S:Eo.thenable(S)?new Promise((v,T)=>{S.then(A=>v(A),A=>T(A))}):Promise.resolve(S)}let b,g,w,_={listen:()=>i.listen(),sendRequest:(S,...v)=>i.sendRequest(Eo.string(S)?S:S.method,...v),onRequest:(S,v)=>i.onRequest(S,v),sendNotification:(S,v)=>{let T=Eo.string(S)?S:S.method;return i.sendNotification(T,v)},onNotification:(S,v)=>i.onNotification(S,v),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:S=>(g=S,{dispose:()=>{g=void 0}}),onInitialized:S=>i.onNotification(Ie.InitializedNotification.type,S),onShutdown:S=>(b=S,{dispose:()=>{b=void 0}}),onExit:S=>(w=S,{dispose:()=>{w=void 0}}),get console(){return r},get telemetry(){return o},get tracer(){return s},get client(){return a},get window(){return l},get workspace(){return c},get languages(){return u},get notebooks(){return d},onDidChangeConfiguration:S=>i.onNotification(Ie.DidChangeConfigurationNotification.type,S),onDidChangeWatchedFiles:S=>i.onNotification(Ie.DidChangeWatchedFilesNotification.type,S),__textDocumentSync:void 0,onDidOpenTextDocument:S=>i.onNotification(Ie.DidOpenTextDocumentNotification.type,S),onDidChangeTextDocument:S=>i.onNotification(Ie.DidChangeTextDocumentNotification.type,S),onDidCloseTextDocument:S=>i.onNotification(Ie.DidCloseTextDocumentNotification.type,S),onWillSaveTextDocument:S=>i.onNotification(Ie.WillSaveTextDocumentNotification.type,S),onWillSaveTextDocumentWaitUntil:S=>i.onRequest(Ie.WillSaveTextDocumentWaitUntilRequest.type,S),onDidSaveTextDocument:S=>i.onNotification(Ie.DidSaveTextDocumentNotification.type,S),sendDiagnostics:S=>i.sendNotification(Ie.PublishDiagnosticsNotification.type,S),onHover:S=>i.onRequest(Ie.HoverRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),void 0)),onCompletion:S=>i.onRequest(Ie.CompletionRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onCompletionResolve:S=>i.onRequest(Ie.CompletionResolveRequest.type,S),onSignatureHelp:S=>i.onRequest(Ie.SignatureHelpRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),void 0)),onDeclaration:S=>i.onRequest(Ie.DeclarationRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onDefinition:S=>i.onRequest(Ie.DefinitionRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onTypeDefinition:S=>i.onRequest(Ie.TypeDefinitionRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onImplementation:S=>i.onRequest(Ie.ImplementationRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onReferences:S=>i.onRequest(Ie.ReferencesRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onDocumentHighlight:S=>i.onRequest(Ie.DocumentHighlightRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onDocumentSymbol:S=>i.onRequest(Ie.DocumentSymbolRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onWorkspaceSymbol:S=>i.onRequest(Ie.WorkspaceSymbolRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onWorkspaceSymbolResolve:S=>i.onRequest(Ie.WorkspaceSymbolResolveRequest.type,S),onCodeAction:S=>i.onRequest(Ie.CodeActionRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onCodeActionResolve:S=>i.onRequest(Ie.CodeActionResolveRequest.type,(v,T)=>S(v,T)),onCodeLens:S=>i.onRequest(Ie.CodeLensRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onCodeLensResolve:S=>i.onRequest(Ie.CodeLensResolveRequest.type,(v,T)=>S(v,T)),onDocumentFormatting:S=>i.onRequest(Ie.DocumentFormattingRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),void 0)),onDocumentRangeFormatting:S=>i.onRequest(Ie.DocumentRangeFormattingRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),void 0)),onDocumentOnTypeFormatting:S=>i.onRequest(Ie.DocumentOnTypeFormattingRequest.type,(v,T)=>S(v,T)),onRenameRequest:S=>i.onRequest(Ie.RenameRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),void 0)),onPrepareRename:S=>i.onRequest(Ie.PrepareRenameRequest.type,(v,T)=>S(v,T)),onDocumentLinks:S=>i.onRequest(Ie.DocumentLinkRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onDocumentLinkResolve:S=>i.onRequest(Ie.DocumentLinkResolveRequest.type,(v,T)=>S(v,T)),onDocumentColor:S=>i.onRequest(Ie.DocumentColorRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onColorPresentation:S=>i.onRequest(Ie.ColorPresentationRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onFoldingRanges:S=>i.onRequest(Ie.FoldingRangeRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onSelectionRanges:S=>i.onRequest(Ie.SelectionRangeRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),(0,dt.attachPartialResult)(i,v))),onExecuteCommand:S=>i.onRequest(Ie.ExecuteCommandRequest.type,(v,T)=>S(v,T,(0,dt.attachWorkDone)(i,v),void 0)),dispose:()=>i.dispose()};for(let S of f)S.attach(_);return i.onRequest(Ie.InitializeRequest.type,S=>{e.initialize(S),Eo.string(S.trace)&&(s.trace=Ie.Trace.fromString(S.trace));for(let v of f)v.initialize(S.capabilities);if(g){let v=g(S,new Ie.CancellationTokenSource().token,(0,dt.attachWorkDone)(i,S),void 0);return m(v).then(T=>{if(T instanceof Ie.ResponseError)return T;let A=T;A||(A={capabilities:{}});let R=A.capabilities;R||(R={},A.capabilities=R),R.textDocumentSync===void 0||R.textDocumentSync===null?R.textDocumentSync=Eo.number(_.__textDocumentSync)?_.__textDocumentSync:Ie.TextDocumentSyncKind.None:!Eo.number(R.textDocumentSync)&&!Eo.number(R.textDocumentSync.change)&&(R.textDocumentSync.change=Eo.number(_.__textDocumentSync)?_.__textDocumentSync:Ie.TextDocumentSyncKind.None);for(let k of f)k.fillServerCapabilities(R);return A})}else{let v={capabilities:{textDocumentSync:Ie.TextDocumentSyncKind.None}};for(let T of f)T.fillServerCapabilities(v.capabilities);return v}}),i.onRequest(Ie.ShutdownRequest.type,()=>{if(e.shutdownReceived=!0,b)return b(new Ie.CancellationTokenSource().token)}),i.onNotification(Ie.ExitNotification.type,()=>{try{w&&w()}finally{e.shutdownReceived?e.exit(0):e.exit(1)}}),i.onNotification(Ie.SetTraceNotification.type,S=>{s.trace=Ie.Trace.fromString(S.value)}),_}nn.createConnection=Zke});var hV=I(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.resolveModulePath=bs.FileSystem=bs.resolveGlobalYarnPath=bs.resolveGlobalNodePath=bs.resolve=bs.uriToFilePath=void 0;var eAe=require("url"),ba=require("path"),TD=require("fs"),ID=require("child_process");function tAe(t){let e=eAe.parse(t);if(e.protocol!=="file:"||!e.path)return;let n=e.path.split("/");for(var r=0,i=n.length;r<i;r++)n[r]=decodeURIComponent(n[r]);if(process.platform==="win32"&&n.length>1){let s=n[0],o=n[1];s.length===0&&o.length>1&&o[1]===":"&&n.shift()}return ba.normalize(n.join("/"))}bs.uriToFilePath=tAe;function MD(){return process.platform==="win32"}function x_(t,e,n,r){let i="NODE_PATH",s=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise((o,a)=>{let l=process.env,c=Object.create(null);Object.keys(l).forEach(u=>c[u]=l[u]),e&&TD.existsSync(e)&&(c[i]?c[i]=e+ba.delimiter+c[i]:c[i]=e,r&&r(`NODE_PATH value is: ${c[i]}`)),c.ELECTRON_RUN_AS_NODE="1";try{let u=(0,ID.fork)("",[],{cwd:n,env:c,execArgv:["-e",s]});if(u.pid===void 0){a(new Error(`Starting process to resolve node module ${t} failed`));return}u.on("error",f=>{a(f)}),u.on("message",f=>{f.c==="r"&&(u.send({c:"e"}),f.s?o(f.r):a(new Error(`Failed to resolve module: ${t}`)))});let d={c:"rs",a:t};u.send(d)}catch(u){a(u)}})}bs.resolve=x_;function DD(t){let e="npm",n=Object.create(null);Object.keys(process.env).forEach(s=>n[s]=process.env[s]),n.NO_UPDATE_NOTIFIER="true";let r={encoding:"utf8",env:n};MD()&&(e="npm.cmd",r.shell=!0);let i=()=>{};try{process.on("SIGPIPE",i);let s=(0,ID.spawnSync)(e,["config","get","prefix"],r).stdout;if(!s){t&&t("'npm config get prefix' didn't return a value.");return}let o=s.trim();return t&&t(`'npm config get prefix' value is: ${o}`),o.length>0?MD()?ba.join(o,"node_modules"):ba.join(o,"lib","node_modules"):void 0}catch{return}finally{process.removeListener("SIGPIPE",i)}}bs.resolveGlobalNodePath=DD;function nAe(t){let e="yarn",n={encoding:"utf8"};MD()&&(e="yarn.cmd",n.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let i=(0,ID.spawnSync)(e,["global","dir","--json"],n),s=i.stdout;if(!s){t&&(t("'yarn global dir' didn't return a value."),i.stderr&&t(i.stderr));return}let o=s.trim().split(/\r?\n/);for(let a of o)try{let l=JSON.parse(a);if(l.type==="log")return ba.join(l.data,"node_modules")}catch{}return}catch{return}finally{process.removeListener("SIGPIPE",r)}}bs.resolveGlobalYarnPath=nAe;var RD;(function(t){let e;function n(){return e!==void 0||(process.platform==="win32"?e=!1:e=!TD.existsSync(__filename.toUpperCase())||!TD.existsSync(__filename.toLowerCase())),e}t.isCaseSensitive=n;function r(i,s){return n()?ba.normalize(s).indexOf(ba.normalize(i))===0:ba.normalize(s).toLowerCase().indexOf(ba.normalize(i).toLowerCase())===0}t.isParent=r})(RD||(bs.FileSystem=RD={}));function rAe(t,e,n,r){return n?(ba.isAbsolute(n)||(n=ba.join(t,n)),x_(e,n,n,r).then(i=>RD.isParent(n,i)?i:Promise.reject(new Error(`Failed to load ${e} from node path location.`))).then(void 0,i=>x_(e,DD(r),t,r))):x_(e,DD(r),t,r)}bs.resolveModulePath=rAe});var PD=I((fmt,fV)=>{"use strict";fV.exports=ir()});var pV=I(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});k_.InlineCompletionFeature=void 0;var iAe=ir(),sAe=t=>class extends t{get inlineCompletion(){return{on:e=>this.connection.onRequest(iAe.InlineCompletionRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n)))}}};k_.InlineCompletionFeature=sAe});var bV=I(Ti=>{"use strict";var oAe=Ti&&Ti.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),gV=Ti&&Ti.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&oAe(e,t,n)};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.ProposedFeatures=Ti.NotebookDocuments=Ti.TextDocuments=Ti.SemanticTokensBuilder=void 0;var aAe=gD();Object.defineProperty(Ti,"SemanticTokensBuilder",{enumerable:!0,get:function(){return aAe.SemanticTokensBuilder}});var lAe=pV();gV(ir(),Ti);var cAe=wD();Object.defineProperty(Ti,"TextDocuments",{enumerable:!0,get:function(){return cAe.TextDocuments}});var uAe=SD();Object.defineProperty(Ti,"NotebookDocuments",{enumerable:!0,get:function(){return uAe.NotebookDocuments}});gV(ED(),Ti);var mV;(function(t){t.all={__brand:"features",languages:lAe.InlineCompletionFeature}})(mV||(Ti.ProposedFeatures=mV={}))});var ya=I(To=>{"use strict";var dAe=To&&To.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),_V=To&&To.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&dAe(e,t,n)};Object.defineProperty(To,"__esModule",{value:!0});To.createConnection=To.Files=void 0;var yV=require("node:util"),OD=m1(),hAe=ED(),qb=hV(),Ch=PD();_V(PD(),To);_V(bV(),To);var vV;(function(t){t.uriToFilePath=qb.uriToFilePath,t.resolveGlobalNodePath=qb.resolveGlobalNodePath,t.resolveGlobalYarnPath=qb.resolveGlobalYarnPath,t.resolve=qb.resolve,t.resolveModulePath=qb.resolveModulePath})(vV||(To.Files=vV={}));var wV;function A_(){if(wV!==void 0)try{wV.end()}catch{}}var kp=!1,SV;function fAe(){let t="--clientProcessId";function e(n){try{let r=parseInt(n);isNaN(r)||(SV=setInterval(()=>{try{process.kill(r,0)}catch{A_(),process.exit(kp?0:1)}},3e3))}catch{}}for(let n=2;n<process.argv.length;n++){let r=process.argv[n];if(r===t&&n+1<process.argv.length){e(process.argv[n+1]);return}else{let i=r.split("=");i[0]===t&&e(i[1])}}}fAe();var pAe={initialize:t=>{let e=t.processId;OD.number(e)&&SV===void 0&&setInterval(()=>{try{process.kill(e,0)}catch{process.exit(kp?0:1)}},3e3)},get shutdownReceived(){return kp},set shutdownReceived(t){kp=t},exit:t=>{A_(),process.exit(t)}};function mAe(t,e,n,r){let i,s,o,a;return t!==void 0&&t.__brand==="features"&&(i=t,t=e,e=n,n=r),Ch.ConnectionStrategy.is(t)||Ch.ConnectionOptions.is(t)?a=t:(s=t,o=e,a=n),gAe(s,o,a,i)}To.createConnection=mAe;function gAe(t,e,n,r){let i=!1;if(!t&&!e&&process.argv.length>2){let l,c,u=process.argv.slice(2);for(let d=0;d<u.length;d++){let f=u[d];if(f==="--node-ipc"){t=new Ch.IPCMessageReader(process),e=new Ch.IPCMessageWriter(process);break}else if(f==="--stdio"){i=!0,t=process.stdin,e=process.stdout;break}else if(f==="--socket"){l=parseInt(u[d+1]);break}else if(f==="--pipe"){c=u[d+1];break}else{var s=f.split("=");if(s[0]==="--socket"){l=parseInt(s[1]);break}else if(s[0]==="--pipe"){c=s[1];break}}}if(l){let d=(0,Ch.createServerSocketTransport)(l);t=d[0],e=d[1]}else if(c){let d=(0,Ch.createServerPipeTransport)(c);t=d[0],e=d[1]}}var o="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!t)throw new Error("Connection input stream is not set. "+o);if(!e)throw new Error("Connection output stream is not set. "+o);if(OD.func(t.read)&&OD.func(t.on)){let l=t;l.on("end",()=>{A_(),process.exit(kp?0:1)}),l.on("close",()=>{A_(),process.exit(kp?0:1)})}let a=l=>{let c=(0,Ch.createProtocolConnection)(t,e,l,n);return i&&bAe(l),c};return(0,hAe.createConnection)(a,pAe,r)}function bAe(t){function e(r){return r.map(i=>typeof i=="string"?i:(0,yV.inspect)(i)).join(" ")}let n=new Map;console.assert=function(i,...s){if(!i)if(s.length===0)t.error("Assertion failed");else{let[o,...a]=s;t.error(`Assertion failed: ${o} ${e(a)}`)}},console.count=function(i="default"){let s=String(i),o=n.get(s)??0;o+=1,n.set(s,o),t.log(`${s}: ${s}`)},console.countReset=function(i){i===void 0?n.clear():n.delete(String(i))},console.debug=function(...i){t.log(e(i))},console.dir=function(i,s){t.log((0,yV.inspect)(i,s))},console.log=function(...i){t.log(e(i))},console.error=function(...i){t.error(e(i))},console.trace=function(...i){let s=new Error().stack.replace(/(.+\n){2}/,""),o="Trace";i.length!==0&&(o+=`: ${e(i)}`),t.log(`${o}
|
|
37
37
|
${s}`)},console.warn=function(...i){t.warn(e(i))}}});var ND=I((ymt,CV)=>{"use strict";CV.exports=ya()});var xV=I(LD=>{"use strict";Object.defineProperty(LD,"__esModule",{value:!0});LD.binarySearch=yAe;function yAe(t,e){let n=0,r=t.length-1,i;for(;n<=r;){let a=Math.floor((n+r)/2),l=t[a];if(l<e)n=a+1;else if(l>e)r=a-1;else{n=a,r=a,i=a;break}}let s=Math.max(Math.min(n,r,t.length-1),0),o=Math.min(Math.max(n,r,0),t.length-1);return{low:s,high:o,match:i}}});var $D=I(qD=>{"use strict";Object.defineProperty(qD,"__esModule",{value:!0});qD.translateOffset=vAe;var kV=!1;function vAe(t,e,n,r,i=r){if(!e.every((l,c)=>c===0||e[c-1]<=l)){for(let l=0;l<e.length;l++){let c=e[l],u=r[l];if(t>=c&&t<=c+u){let d=i[l],f=n[l],m=Math.min(t-c,d);return f+m}}kV||(kV=!0,console.warn("fromOffsets should be sorted in ascending order"))}let o=0,a=e.length-1;for(;o<=a;){let l=Math.floor((o+a)/2),c=e[l],u=r[l];if(t>=c&&t<=c+u){let d=i[l],f=n[l],m=Math.min(t-c,d);return f+m}else t<c?a=l-1:o=l+1}}});var FV=I(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.SourceMap=void 0;var zD=xV(),AV=$D(),jD=class{constructor(e){this.mappings=e}toSourceRange(e,n,r,i){return this.findMatchingStartEnd(e,n,r,"generatedOffsets",i)}toGeneratedRange(e,n,r,i){return this.findMatchingStartEnd(e,n,r,"sourceOffsets",i)}toSourceLocation(e,n){return this.findMatchingOffsets(e,"generatedOffsets",n)}toGeneratedLocation(e,n){return this.findMatchingOffsets(e,"sourceOffsets",n)}*findMatchingOffsets(e,n,r){let i=this.getMemoBasedOnRange(n);if(i.offsets.length===0)return;let{low:s,high:o}=(0,zD.binarySearch)(i.offsets,e),a=new Set,l=n=="sourceOffsets"?"generatedOffsets":"sourceOffsets";for(let c=s;c<=o;c++)for(let u of i.mappings[c]){if(a.has(u)||(a.add(u),r&&!r(u.data)))continue;let d=(0,AV.translateOffset)(e,u[n],u[l],Ap(u,n),Ap(u,l));d!==void 0&&(yield[d,u])}}*findMatchingStartEnd(e,n,r,i,s){let o=i=="sourceOffsets"?"generatedOffsets":"sourceOffsets",a=[],l=!1;for(let[c,u]of this.findMatchingOffsets(e,i)){if(s&&!s(u.data))continue;a.push([c,u]);let d=(0,AV.translateOffset)(n,u[i],u[o],Ap(u,i),Ap(u,o));d!==void 0&&(l=!0,yield[c,d,u,u])}if(!l&&r){for(let[c,u]of a)for(let[d,f]of this.findMatchingOffsets(n,i))if(!(s&&!s(f.data)||d<c)){yield[c,d,u,f];break}}}getMemoBasedOnRange(e){return e==="sourceOffsets"?this.sourceCodeOffsetsMemo??=this.createMemo("sourceOffsets"):this.generatedCodeOffsetsMemo??=this.createMemo("generatedOffsets")}createMemo(e){let n=new Set;for(let s of this.mappings)for(let o=0;o<s[e].length;o++)n.add(s[e][o]),n.add(s[e][o]+Ap(s,e)[o]);let r=[...n].sort((s,o)=>s-o),i=r.map(()=>new Set);for(let s of this.mappings)for(let o=0;o<s[e].length;o++){let a=(0,zD.binarySearch)(r,s[e][o]).match,l=(0,zD.binarySearch)(r,s[e][o]+Ap(s,e)[o]).match;for(let c=a;c<=l;c++)i[c].add(s)}return{offsets:r,mappings:i}}};F_.SourceMap=jD;function Ap(t,e){return e=="sourceOffsets"?t.lengths:t.generatedLengths??t.lengths}});var E_=I(Ru=>{"use strict";var wAe=Ru&&Ru.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),EV=Ru&&Ru.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&wAe(e,t,n)};Object.defineProperty(Ru,"__esModule",{value:!0});EV(FV(),Ru);EV($D(),Ru)});var TV=I(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.isHoverEnabled=_Ae;rn.isInlayHintsEnabled=SAe;rn.isCodeLensEnabled=CAe;rn.isMonikerEnabled=xAe;rn.isInlineValueEnabled=kAe;rn.isSemanticTokensEnabled=AAe;rn.isCallHierarchyEnabled=FAe;rn.isTypeHierarchyEnabled=EAe;rn.isRenameEnabled=TAe;rn.isDefinitionEnabled=MAe;rn.isTypeDefinitionEnabled=DAe;rn.isReferencesEnabled=RAe;rn.isImplementationEnabled=IAe;rn.isHighlightEnabled=PAe;rn.isSymbolsEnabled=OAe;rn.isFoldingRangesEnabled=NAe;rn.isSelectionRangesEnabled=LAe;rn.isLinkedEditingEnabled=qAe;rn.isColorEnabled=$Ae;rn.isDocumentLinkEnabled=zAe;rn.isDiagnosticsEnabled=jAe;rn.isCodeActionsEnabled=WAe;rn.isFormattingEnabled=UAe;rn.isCompletionEnabled=BAe;rn.isAutoInsertEnabled=HAe;rn.isSignatureHelpEnabled=VAe;rn.shouldReportDiagnostics=KAe;rn.resolveRenameNewName=GAe;rn.resolveRenameEditText=JAe;rn.findOverlapCodeRange=YAe;function _Ae(t){return!!t.semantic}function SAe(t){return!!t.semantic}function CAe(t){return!!t.semantic}function xAe(t){return!!t.semantic}function kAe(t){return!!t.semantic}function AAe(t){return typeof t.semantic=="object"?t.semantic.shouldHighlight?.()??!0:!!t.semantic}function FAe(t){return!!t.navigation}function EAe(t){return!!t.navigation}function TAe(t){return typeof t.navigation=="object"?t.navigation.shouldRename?.()??!0:!!t.navigation}function MAe(t){return!!t.navigation}function DAe(t){return!!t.navigation}function RAe(t){return!!t.navigation}function IAe(t){return!!t.navigation}function PAe(t){return typeof t.navigation=="object"?t.navigation.shouldHighlight?.()??!0:!!t.navigation}function OAe(t){return!!t.structure}function NAe(t){return!!t.structure}function LAe(t){return!!t.structure}function qAe(t){return!!t.structure}function $Ae(t){return!!t.structure}function zAe(t){return!!t.structure}function jAe(t){return!!t.verification}function WAe(t){return!!t.verification}function UAe(t){return!!t.format}function BAe(t){return!!t.completion}function HAe(t){return!!t.completion}function VAe(t){return!!t.completion}function KAe(t,e,n){return typeof t.verification=="object"?t.verification.shouldReport?.(e,n)??!0:!!t.verification}function GAe(t,e){return typeof e.navigation=="object"?e.navigation.resolveRenameNewName?.(t)??t:t}function JAe(t,e){return typeof e.navigation=="object"?e.navigation.resolveRenameEditText?.(t)??t:t}function YAe(t,e,n,r){let i,s;for(let[o,a]of n.toGeneratedLocation(t))if(r(a.data)){i=o;break}for(let[o,a]of n.toGeneratedLocation(e))if(r(a.data)){s=o;break}if(i===void 0||s===void 0){for(let o of n.mappings)if(r(o.data)){let a=o.sourceOffsets[0],l=o.sourceOffsets[o.sourceOffsets.length-1]+o.lengths[o.lengths.length-1],c=QAe(t,e,a,l);if(c){let u=c.start-a+o.generatedOffsets[0],d=(o.generatedLengths??o.lengths)[o.generatedOffsets.length-1],f=Math.min(c.end-o.sourceOffsets[o.sourceOffsets.length-1],d),m=o.generatedOffsets[o.generatedOffsets.length-1]+f;i=i===void 0?u:Math.min(i,u),s=s===void 0?m:Math.max(s,m)}}}if(i!==void 0&&s!==void 0)return{start:i,end:s}}function QAe(t,e,n,r){let i=Math.max(t,n),s=Math.min(e,r);if(!(i>s))return{start:i,end:s}}});var UD=I(T_=>{"use strict";Object.defineProperty(T_,"__esModule",{value:!0});T_.LinkedCodeMap=void 0;var XAe=E_(),WD=class extends XAe.SourceMap{*getLinkedOffsets(e){for(let n of this.toGeneratedLocation(e))yield n[0];for(let n of this.toSourceLocation(e))yield n[0]}};T_.LinkedCodeMap=WD});var BD=I(MV=>{"use strict";Object.defineProperty(MV,"__esModule",{value:!0})});var DV=I(M_=>{"use strict";Object.defineProperty(M_,"__esModule",{value:!0});M_.FileMap=void 0;var HD=class extends Map{constructor(e){super(),this.caseSensitive=e,this.originalFileNames=new Map}keys(){return this.originalFileNames.values()}get(e){return super.get(this.normalizeId(e))}has(e){return super.has(this.normalizeId(e))}set(e,n){return this.originalFileNames.set(this.normalizeId(e),e),super.set(this.normalizeId(e),n)}delete(e){return this.originalFileNames.delete(this.normalizeId(e)),super.delete(this.normalizeId(e))}clear(){return this.originalFileNames.clear(),super.clear()}normalizeId(e){return this.caseSensitive?e:e.toLowerCase()}};M_.FileMap=HD});var Nt=I(oi=>{"use strict";var ZAe=oi&&oi.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),R_=oi&&oi.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&ZAe(e,t,n)};Object.defineProperty(oi,"__esModule",{value:!0});oi.defaultMapperFactory=oi.SourceMap=void 0;oi.createLanguage=iFe;oi.forEachEmbeddedCode=D_;var eFe=E_();Object.defineProperty(oi,"SourceMap",{enumerable:!0,get:function(){return eFe.SourceMap}});R_(TV(),oi);R_(UD(),oi);R_(BD(),oi);R_(DV(),oi);var tFe=E_(),nFe=UD(),rFe=t=>new tFe.SourceMap(t);oi.defaultMapperFactory=rFe;function iFe(t,e,n,r){let i=new WeakMap,s=new WeakMap,o=new WeakMap,a={mapperFactory:oi.defaultMapperFactory,plugins:t,scripts:{fromVirtualCode(u){return i.get(u)},get(u,d=!0,f=!1){n(u,d,f);let m=e.get(u);return m?.isAssociationDirty&&this.set(u,m.snapshot,m.languageId),e.get(u)},set(u,d,f,m=t){if(!f){for(let g of t)if(f=g.getLanguageId?.(u),f)break}if(!f){console.warn(`languageId not found for ${u}`);return}let b=!1;for(let g of t)if(g.isAssociatedFileOnly?.(u,f)){b=!0;break}if(e.has(u)){let g=e.get(u);if(g.languageId!==f||g.associatedOnly!==b)return this.delete(u),l(g),this.set(u,d,f);if(b)g.snapshot!==d&&(g.snapshot=d,l(g));else if(g.isAssociationDirty||g.snapshot!==d){g.snapshot!==d&&(g.snapshot=d,l(g));let w=c(g);if(g.generated){let{updateVirtualCode:_,createVirtualCode:S}=g.generated.languagePlugin,v=_?_(u,g.generated.root,d,w):S?.(u,f,d,w);if(v){g.generated.root=v,g.generated.embeddedCodes.clear();for(let T of D_(g.generated.root))i.set(T,g),g.generated.embeddedCodes.set(T.id,T);return g}else{this.delete(u);return}}}else return g}else{let g={id:u,languageId:f,snapshot:d,associatedIds:new Set,targetIds:new Set,associatedOnly:b};if(e.set(u,g),b)return g;for(let w of m){let _=w.createVirtualCode?.(u,f,d,c(g));if(_){g.generated={root:_,languagePlugin:w,embeddedCodes:new Map};for(let S of D_(_))i.set(S,g),g.generated.embeddedCodes.set(S.id,S);break}}return g}},delete(u){let d=e.get(u);d&&(d.generated?.languagePlugin.disposeVirtualCode?.(u,d.generated.root),e.delete(u),l(d))}},maps:{get(u,d){let f=s.get(u.snapshot);if(f||s.set(u.snapshot,f=new WeakMap),!f.has(d.snapshot)){let m=u.associatedScriptMappings?.get(d.id)??u.mappings;f.set(d.snapshot,a.mapperFactory(m))}return f.get(d.snapshot)},*forEach(u){let d=i.get(u);if(yield[d,this.get(u,d)],u.associatedScriptMappings)for(let[f]of u.associatedScriptMappings){let m=e.get(f);m&&(yield[m,this.get(u,m)])}}},linkedCodeMaps:{get(u){let d=i.get(u),f=o.get(u.snapshot);return f?.[0]!==d.snapshot&&o.set(u.snapshot,f=[d.snapshot,u.linkedCodeMappings?new nFe.LinkedCodeMap(u.linkedCodeMappings):void 0]),f[1]}}};return a;function l(u){u.targetIds.forEach(d=>{let f=e.get(d);f&&(f.isAssociationDirty=!0,r?.(f.id))})}function c(u){for(let d of u.associatedIds)e.get(d)?.targetIds.delete(u.id);return u.associatedIds.clear(),u.isAssociationDirty=!1,{getAssociatedScript(d){n(d,!0,!0);let f=e.get(d);return f&&(f.targetIds.add(u.id),u.associatedIds.add(f.id)),f}}}}function*D_(t){if(yield t,t.embeddedCodes)for(let e of t.embeddedCodes)yield*D_(e)}});var Fp={};Qa(Fp,{TextDocument:()=>ac});function VD(t,e){if(t.length<=1)return t;let n=t.length/2|0,r=t.slice(0,n),i=t.slice(n);VD(r,e),VD(i,e);let s=0,o=0,a=0;for(;s<r.length&&o<i.length;)e(r[s],i[o])<=0?t[a++]=r[s++]:t[a++]=i[o++];for(;s<r.length;)t[a++]=r[s++];for(;o<i.length;)t[a++]=i[o++];return t}function RV(t,e,n=0){let r=e?[n]:[];for(let i=0;i<t.length;i++){let s=t.charCodeAt(i);IV(s)&&(s===13&&i+1<t.length&&t.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function IV(t){return t===13||t===10}function PV(t){let e=t.start,n=t.end;return e.line>n.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function sFe(t){let e=PV(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var xh,ac,lc=Ce(()=>{"use strict";xh=class{constructor(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content}update(e,n){for(let r of e)if(xh.isIncremental(r)){let i=PV(r.range),s=this.offsetAt(i.start),o=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(o,this._content.length);let a=Math.max(i.start.line,0),l=Math.max(i.end.line,0),c=this._lineOffsets,u=RV(r.text,!1,s);if(l-a===u.length)for(let f=0,m=u.length;f<m;f++)c[f+a+1]=u[f];else u.length<1e4?c.splice(a+1,l-a,...u):this._lineOffsets=c=c.slice(0,a+1).concat(u,c.slice(l+1));let d=r.text.length-(o-s);if(d!==0)for(let f=a+1+u.length,m=c.length;f<m;f++)c[f]=c[f]+d}else if(xh.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=RV(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:e};for(;r<i;){let o=Math.floor((r+i)/2);n[o]>e?i=o:r=o+1}let s=r-1;return e=this.ensureBeforeEOL(e,n[s]),{line:s,character:e-n[s]}}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let r=n[e.line];if(e.character<=0)return r;let i=e.line+1<n.length?n[e.line+1]:this._content.length,s=Math.min(r+e.character,i);return this.ensureBeforeEOL(s,r)}ensureBeforeEOL(e,n){for(;e>n&&IV(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}};(function(t){function e(i,s,o,a){return new xh(i,s,o,a)}t.create=e;function n(i,s,o){if(i instanceof xh)return i.update(s,o),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=n;function r(i,s){let o=i.getText(),a=VD(s.map(sFe),(u,d)=>{let f=u.range.start.line-d.range.start.line;return f===0?u.range.start.character-d.range.start.character:f}),l=0,c=[];for(let u of a){let d=i.offsetAt(u.range.start);if(d<l)throw new Error("Overlapping edit");d>l&&c.push(o.substring(l,d)),u.newText.length&&c.push(u.newText),l=i.offsetAt(u.range.end)}return c.push(o.substr(l)),c.join("")}t.applyEdits=r})(ac||(ac={}))});var rt=I(($b,KD)=>{(function(t,e){if(typeof $b=="object"&&typeof KD=="object")KD.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var n=e();for(var r in n)(typeof $b=="object"?$b:t)[r]=n[r]}})($b,()=>(()=>{"use strict";var t={975:i=>{function s(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function o(l,c){for(var u,d="",f=0,m=-1,b=0,g=0;g<=l.length;++g){if(g<l.length)u=l.charCodeAt(g);else{if(u===47)break;u=47}if(u===47){if(!(m===g-1||b===1))if(m!==g-1&&b===2){if(d.length<2||f!==2||d.charCodeAt(d.length-1)!==46||d.charCodeAt(d.length-2)!==46){if(d.length>2){var w=d.lastIndexOf("/");if(w!==d.length-1){w===-1?(d="",f=0):f=(d=d.slice(0,w)).length-1-d.lastIndexOf("/"),m=g,b=0;continue}}else if(d.length===2||d.length===1){d="",f=0,m=g,b=0;continue}}c&&(d.length>0?d+="/..":d="..",f=2)}else d.length>0?d+="/"+l.slice(m+1,g):d=l.slice(m+1,g),f=g-m-1;m=g,b=0}else u===46&&b!==-1?++b:b=-1}return d}var a={resolve:function(){for(var l,c="",u=!1,d=arguments.length-1;d>=-1&&!u;d--){var f;d>=0?f=arguments[d]:(l===void 0&&(l=process.cwd()),f=l),s(f),f.length!==0&&(c=f+"/"+c,u=f.charCodeAt(0)===47)}return c=o(c,!u),u?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(l){if(s(l),l.length===0)return".";var c=l.charCodeAt(0)===47,u=l.charCodeAt(l.length-1)===47;return(l=o(l,!c)).length!==0||c||(l="."),l.length>0&&u&&(l+="/"),c?"/"+l:l},isAbsolute:function(l){return s(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,c=0;c<arguments.length;++c){var u=arguments[c];s(u),u.length>0&&(l===void 0?l=u:l+="/"+u)}return l===void 0?".":a.normalize(l)},relative:function(l,c){if(s(l),s(c),l===c||(l=a.resolve(l))===(c=a.resolve(c)))return"";for(var u=1;u<l.length&&l.charCodeAt(u)===47;++u);for(var d=l.length,f=d-u,m=1;m<c.length&&c.charCodeAt(m)===47;++m);for(var b=c.length-m,g=f<b?f:b,w=-1,_=0;_<=g;++_){if(_===g){if(b>g){if(c.charCodeAt(m+_)===47)return c.slice(m+_+1);if(_===0)return c.slice(m+_)}else f>g&&(l.charCodeAt(u+_)===47?w=_:_===0&&(w=0));break}var S=l.charCodeAt(u+_);if(S!==c.charCodeAt(m+_))break;S===47&&(w=_)}var v="";for(_=u+w+1;_<=d;++_)_!==d&&l.charCodeAt(_)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+c.slice(m+w):(m+=w,c.charCodeAt(m)===47&&++m,c.slice(m))},_makeLong:function(l){return l},dirname:function(l){if(s(l),l.length===0)return".";for(var c=l.charCodeAt(0),u=c===47,d=-1,f=!0,m=l.length-1;m>=1;--m)if((c=l.charCodeAt(m))===47){if(!f){d=m;break}}else f=!1;return d===-1?u?"/":".":u&&d===1?"//":l.slice(0,d)},basename:function(l,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');s(l);var u,d=0,f=-1,m=!0;if(c!==void 0&&c.length>0&&c.length<=l.length){if(c.length===l.length&&c===l)return"";var b=c.length-1,g=-1;for(u=l.length-1;u>=0;--u){var w=l.charCodeAt(u);if(w===47){if(!m){d=u+1;break}}else g===-1&&(m=!1,g=u+1),b>=0&&(w===c.charCodeAt(b)?--b==-1&&(f=u):(b=-1,f=g))}return d===f?f=g:f===-1&&(f=l.length),l.slice(d,f)}for(u=l.length-1;u>=0;--u)if(l.charCodeAt(u)===47){if(!m){d=u+1;break}}else f===-1&&(m=!1,f=u+1);return f===-1?"":l.slice(d,f)},extname:function(l){s(l);for(var c=-1,u=0,d=-1,f=!0,m=0,b=l.length-1;b>=0;--b){var g=l.charCodeAt(b);if(g!==47)d===-1&&(f=!1,d=b+1),g===46?c===-1?c=b:m!==1&&(m=1):c!==-1&&(m=-1);else if(!f){u=b+1;break}}return c===-1||d===-1||m===0||m===1&&c===d-1&&c===u+1?"":l.slice(c,d)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(c,u){var d=u.dir||u.root,f=u.base||(u.name||"")+(u.ext||"");return d?d===u.root?d+f:d+"/"+f:f}(0,l)},parse:function(l){s(l);var c={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return c;var u,d=l.charCodeAt(0),f=d===47;f?(c.root="/",u=1):u=0;for(var m=-1,b=0,g=-1,w=!0,_=l.length-1,S=0;_>=u;--_)if((d=l.charCodeAt(_))!==47)g===-1&&(w=!1,g=_+1),d===46?m===-1?m=_:S!==1&&(S=1):m!==-1&&(S=-1);else if(!w){b=_+1;break}return m===-1||g===-1||S===0||S===1&&m===g-1&&m===b+1?g!==-1&&(c.base=c.name=b===0&&f?l.slice(1,g):l.slice(b,g)):(b===0&&f?(c.name=l.slice(1,m),c.base=l.slice(1,g)):(c.name=l.slice(b,m),c.base=l.slice(b,g)),c.ext=l.slice(m,g)),b>0?c.dir=l.slice(0,b-1):f&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,i.exports=a},70:(i,s)=>{if(Object.defineProperty(s,"__esModule",{value:!0}),s.isWindows=void 0,typeof process=="object")s.isWindows=process.platform==="win32";else if(typeof navigator=="object"){let o=navigator.userAgent;s.isWindows=o.indexOf("Windows")>=0}},231:(i,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.uriToFsPath=s.URI=void 0;let a=o(70),l=/^\w[\w\d+.-]*$/,c=/^\//,u=/^\/\//;function d(M,E){if(!M.scheme&&E)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${M.authority}", path: "${M.path}", query: "${M.query}", fragment: "${M.fragment}"}`);if(M.scheme&&!l.test(M.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(M.path){if(M.authority){if(!c.test(M.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(u.test(M.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let f="",m="/",b=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class g{static isUri(E){return E instanceof g||!!E&&typeof E.authority=="string"&&typeof E.fragment=="string"&&typeof E.path=="string"&&typeof E.query=="string"&&typeof E.scheme=="string"&&typeof E.fsPath=="string"&&typeof E.with=="function"&&typeof E.toString=="function"}scheme;authority;path;query;fragment;constructor(E,D,N,$,F,P=!1){typeof E=="object"?(this.scheme=E.scheme||f,this.authority=E.authority||f,this.path=E.path||f,this.query=E.query||f,this.fragment=E.fragment||f):(this.scheme=function(L,j){return L||j?L:"file"}(E,P),this.authority=D||f,this.path=function(L,j){switch(L){case"https":case"http":case"file":j?j[0]!==m&&(j=m+j):j=m}return j}(this.scheme,N||f),this.query=$||f,this.fragment=F||f,d(this,P))}get fsPath(){return A(this,!1)}with(E){if(!E)return this;let{scheme:D,authority:N,path:$,query:F,fragment:P}=E;return D===void 0?D=this.scheme:D===null&&(D=f),N===void 0?N=this.authority:N===null&&(N=f),$===void 0?$=this.path:$===null&&($=f),F===void 0?F=this.query:F===null&&(F=f),P===void 0?P=this.fragment:P===null&&(P=f),D===this.scheme&&N===this.authority&&$===this.path&&F===this.query&&P===this.fragment?this:new _(D,N,$,F,P)}static parse(E,D=!1){let N=b.exec(E);return N?new _(N[2]||f,C(N[4]||f),C(N[5]||f),C(N[7]||f),C(N[9]||f),D):new _(f,f,f,f,f)}static file(E){let D=f;if(a.isWindows&&(E=E.replace(/\\/g,m)),E[0]===m&&E[1]===m){let N=E.indexOf(m,2);N===-1?(D=E.substring(2),E=m):(D=E.substring(2,N),E=E.substring(N)||m)}return new _("file",D,E,f,f)}static from(E){let D=new _(E.scheme,E.authority,E.path,E.query,E.fragment);return d(D,!0),D}toString(E=!1){return R(this,E)}toJSON(){return this}static revive(E){if(E){if(E instanceof g)return E;{let D=new _(E);return D._formatted=E.external,D._fsPath=E._sep===w?E.fsPath:null,D}}return E}}s.URI=g;let w=a.isWindows?1:void 0;class _ extends g{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=A(this,!1)),this._fsPath}toString(E=!1){return E?R(this,!0):(this._formatted||(this._formatted=R(this,!1)),this._formatted)}toJSON(){let E={$mid:1};return this._fsPath&&(E.fsPath=this._fsPath,E._sep=w),this._formatted&&(E.external=this._formatted),this.path&&(E.path=this.path),this.scheme&&(E.scheme=this.scheme),this.authority&&(E.authority=this.authority),this.query&&(E.query=this.query),this.fragment&&(E.fragment=this.fragment),E}}let S={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 v(M,E,D){let N,$=-1;for(let F=0;F<M.length;F++){let P=M.charCodeAt(F);if(P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===45||P===46||P===95||P===126||E&&P===47||D&&P===91||D&&P===93||D&&P===58)$!==-1&&(N+=encodeURIComponent(M.substring($,F)),$=-1),N!==void 0&&(N+=M.charAt(F));else{N===void 0&&(N=M.substr(0,F));let L=S[P];L!==void 0?($!==-1&&(N+=encodeURIComponent(M.substring($,F)),$=-1),N+=L):$===-1&&($=F)}}return $!==-1&&(N+=encodeURIComponent(M.substring($))),N!==void 0?N:M}function T(M){let E;for(let D=0;D<M.length;D++){let N=M.charCodeAt(D);N===35||N===63?(E===void 0&&(E=M.substr(0,D)),E+=S[N]):E!==void 0&&(E+=M[D])}return E!==void 0?E:M}function A(M,E){let D;return D=M.authority&&M.path.length>1&&M.scheme==="file"?`//${M.authority}${M.path}`:M.path.charCodeAt(0)===47&&(M.path.charCodeAt(1)>=65&&M.path.charCodeAt(1)<=90||M.path.charCodeAt(1)>=97&&M.path.charCodeAt(1)<=122)&&M.path.charCodeAt(2)===58?E?M.path.substr(1):M.path[1].toLowerCase()+M.path.substr(2):M.path,a.isWindows&&(D=D.replace(/\//g,"\\")),D}function R(M,E){let D=E?T:v,N="",{scheme:$,authority:F,path:P,query:L,fragment:j}=M;if($&&(N+=$,N+=":"),(F||$==="file")&&(N+=m,N+=m),F){let z=F.indexOf("@");if(z!==-1){let K=F.substr(0,z);F=F.substr(z+1),z=K.lastIndexOf(":"),z===-1?N+=D(K,!1,!1):(N+=D(K.substr(0,z),!1,!1),N+=":",N+=D(K.substr(z+1),!1,!0)),N+="@"}F=F.toLowerCase(),z=F.lastIndexOf(":"),z===-1?N+=D(F,!1,!0):(N+=D(F.substr(0,z),!1,!0),N+=F.substr(z))}if(P){if(P.length>=3&&P.charCodeAt(0)===47&&P.charCodeAt(2)===58){let z=P.charCodeAt(1);z>=65&&z<=90&&(P=`/${String.fromCharCode(z+32)}:${P.substr(3)}`)}else if(P.length>=2&&P.charCodeAt(1)===58){let z=P.charCodeAt(0);z>=65&&z<=90&&(P=`${String.fromCharCode(z+32)}:${P.substr(2)}`)}N+=D(P,!0,!1)}return L&&(N+="?",N+=D(L,!1,!1)),j&&(N+="#",N+=E?j:v(j,!1,!1)),N}function k(M){try{return decodeURIComponent(M)}catch{return M.length>3?M.substr(0,3)+k(M.substr(3)):M}}s.uriToFsPath=A;let y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(M){return M.match(y)?M.replace(y,E=>k(E)):M}},552:function(i,s,o){var a=this&&this.__createBinding||(Object.create?function(b,g,w,_){_===void 0&&(_=w);var S=Object.getOwnPropertyDescriptor(g,w);S&&!("get"in S?!g.__esModule:S.writable||S.configurable)||(S={enumerable:!0,get:function(){return g[w]}}),Object.defineProperty(b,_,S)}:function(b,g,w,_){_===void 0&&(_=w),b[_]=g[w]}),l=this&&this.__setModuleDefault||(Object.create?function(b,g){Object.defineProperty(b,"default",{enumerable:!0,value:g})}:function(b,g){b.default=g}),c=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var g={};if(b!=null)for(var w in b)w!=="default"&&Object.prototype.hasOwnProperty.call(b,w)&&a(g,b,w);return l(g,b),g};Object.defineProperty(s,"__esModule",{value:!0}),s.Utils=void 0;let u=c(o(975)),d=u.posix||u,f="/";var m;(function(b){b.joinPath=function(g,...w){return g.with({path:d.join(g.path,...w)})},b.resolvePath=function(g,...w){let _=g.path,S=!1;_[0]!==f&&(_=f+_,S=!0);let v=d.resolve(_,...w);return S&&v[0]===f&&!g.authority&&(v=v.substring(1)),g.with({path:v})},b.dirname=function(g){if(g.path.length===0||g.path===f)return g;let w=d.dirname(g.path);return w.length===1&&w.charCodeAt(0)===46&&(w=""),g.with({path:w})},b.basename=function(g){return d.basename(g.path)},b.extname=function(g){return d.extname(g.path)}})(m||(s.Utils=m={}))}},e={};function n(i){var s=e[i];if(s!==void 0)return s.exports;var o=e[i]={exports:{}};return t[i].call(o.exports,o,o.exports,n),o.exports}var r={};return(()=>{var i=r;Object.defineProperty(i,"__esModule",{value:!0}),i.Utils=i.URI=void 0;let s=n(231);Object.defineProperty(i,"URI",{enumerable:!0,get:function(){return s.URI}});let o=n(552);Object.defineProperty(i,"Utils",{enumerable:!0,get:function(){return o.Utils}})})(),r})())});var Dt=I(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.NoneCancellationToken=void 0;I_.NoneCancellationToken={isCancellationRequested:!1,onCancellationRequested:()=>({dispose:()=>{}})}});var fn=I(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.documentFeatureWorker=oFe;Js.languageFeatureWorker=OV;Js.safeCall=GD;Js.forEachEmbeddedDocument=JD;Js.getSourceRange=aFe;Js.getGeneratedRange=lFe;Js.getSourceRanges=NV;Js.getGeneratedRanges=LV;Js.getSourcePositions=cFe;Js.getGeneratedPositions=uFe;Js.getLinkedCodePositions=dFe;function oFe(t,e,n,r,i,s){return OV(t,e,()=>{},function*(o){n(o)&&(yield)},r,i,s)}async function OV(t,e,n,r,i,s,o){let a,l=t.decodeEmbeddedDocumentUri(e);if(l?a=t.language.scripts.get(l[0]):a=t.language.scripts.get(e),!a)return;let c=[];if(l){let d=a.generated?.embeddedCodes.get(l[1]);if(d){let f=[t.documents.get(a.id,a.languageId,a.snapshot),t.documents.get(e,d.languageId,d.snapshot),t.language.maps.get(d,a)];await u(f,!1)}}else if(a.generated)for(let d of JD(t,a,a.generated.root))c.length&&!o||await u(d,!0);else{let d=t.documents.get(e,a.languageId,a.snapshot),f=n();for(let[m,b]of Object.entries(t.plugins)){if(t.disabledServicePlugins.has(b[1]))continue;let g=await GD(()=>i(b,d,f,void 0),`Language service plugin "${b[0].name}" (${m}) failed to provide document feature for ${d.uri}.`);if(!g)continue;let w=s(g,void 0);if(w&&(c.push(w),!o))break}}if(o&&c.length>0)return o(c);if(c.length>0)return c[0];async function u(d,f){for(let m of r(d))if(!(c.length&&!o))for(let[b,g]of Object.entries(t.plugins)){if(t.disabledServicePlugins.has(g[1])||c.length&&!o)continue;let w=await GD(()=>i(g,d[1],m,d),`Language service plugin "${g[0].name}" (${b}) failed to provide document feature for ${d[1].uri}.`);if(w)if(f){let _=s(w,d);_&&c.push(_)}else c.push(w)}}}async function GD(t,e){try{return await t()}catch(n){console.warn(e,n)}}function*JD(t,e,n){if(n.embeddedCodes)for(let i of n.embeddedCodes)yield*JD(t,e,i);let r=t.encodeEmbeddedDocumentUri(e.id,n.id);t.disabledEmbeddedDocumentUris.get(r)||(yield[t.documents.get(e.id,e.languageId,e.snapshot),t.documents.get(r,n.languageId,n.snapshot),t.language.maps.get(n,e)])}function aFe(t,e,n){for(let r of NV(t,e,n))return r}function lFe(t,e,n){for(let r of LV(t,e,n))return r}function*NV([t,e,n],r,i){for(let[s,o]of n.toSourceRange(e.offsetAt(r.start),e.offsetAt(r.end),!0,i))yield{start:t.positionAt(s),end:t.positionAt(o)}}function*LV([t,e,n],r,i){for(let[s,o]of n.toGeneratedRange(t.offsetAt(r.start),t.offsetAt(r.end),!0,i))yield{start:e.positionAt(s),end:e.positionAt(o)}}function*cFe([t,e,n],r,i=()=>!0){for(let s of n.toSourceLocation(e.offsetAt(r),i))yield t.positionAt(s[0])}function*uFe([t,e,n],r,i=()=>!0){for(let s of n.toGeneratedLocation(t.offsetAt(r),i))yield e.positionAt(s[0])}function*dFe(t,e,n){for(let r of e.getLinkedOffsets(t.offsetAt(n)))yield t.positionAt(r)}});var $V=I(YD=>{"use strict";Object.defineProperty(YD,"__esModule",{value:!0});YD.register=pFe;var hFe=Nt(),fFe=Dt(),qV=fn();function pFe(t){return(e,n,r,i=fFe.NoneCancellationToken)=>(0,qV.languageFeatureWorker)(t,e,()=>({selection:n,change:r}),function*(s){for(let o of(0,qV.getGeneratedPositions)(s,n,hFe.isAutoInsertEnabled))for(let a of s[2].toGeneratedLocation(r.rangeOffset)){yield{selection:o,change:{text:r.text,rangeOffset:a[0],rangeLength:r.rangeLength}};break}},(s,o,a)=>{if(!i.isCancellationRequested)return s[1].provideAutoInsertSnippet?.(o,a.selection,a.change,i)},s=>s)}});var nl=I(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.createLocationSet=mFe;Mo.withCodeAction=gFe;Mo.withTextEdits=bFe;Mo.withDocumentChanges=yFe;Mo.withDiagnostics=vFe;Mo.withLocations=wFe;Mo.withLocationLinks=_Fe;Mo.withCallHierarchyIncomingCalls=SFe;Mo.withCallHierarchyOutgoingCalls=CFe;Mo.withRanges=xFe;function mFe(){let t=new Set;return{add:e,has:n};function e(i){return n(i)?!1:(t.add(r(i)),!0)}function n(i){return t.has(r(i))}function r(i){return[i.uri,i.range.start.line,i.range.start.character,i.range.end.line,i.range.end.character].join(":")}}function gFe(t){return cc(t,e=>[e.title].join(":"))}function bFe(t){return cc(t,e=>[e.range.start.line,e.range.start.character,e.range.end.line,e.range.end.character,e.newText].join(":"))}function yFe(t){return cc(t,e=>JSON.stringify(e))}function vFe(t){return cc(t,e=>[e.range.start.line,e.range.start.character,e.range.end.line,e.range.end.character,e.source,e.code,e.severity,e.message].join(":"))}function wFe(t){return cc(t,e=>[e.uri,e.range.start.line,e.range.start.character,e.range.end.line,e.range.end.character].join(":"))}function _Fe(t){return cc(t,e=>[e.targetUri,e.targetSelectionRange.start.line,e.targetSelectionRange.start.character,e.targetSelectionRange.end.line,e.targetSelectionRange.end.character].join(":"))}function SFe(t){return cc(t,e=>[e.from.uri,e.from.range.start.line,e.from.range.start.character,e.from.range.end.line,e.from.range.end.character].join(":"))}function CFe(t){return cc(t,e=>[e.to.uri,e.to.range.start.line,e.to.range.start.character,e.to.range.end.line,e.to.range.end.character].join(":"))}function xFe(t){return cc(t,e=>[e.start.line,e.start.character,e.end.line,e.end.character].join(":"))}function cc(t,e){let n=new Map;for(let r of t.reverse())n.set(e(r),r);return[...n.values()]}});var WV=I(QD=>{"use strict";Object.defineProperty(QD,"__esModule",{value:!0});QD.register=kFe;var zV=Nt(),zb=rt(),jV=Dt(),P_=nl(),kh=fn();function kFe(t){return{getCallHierarchyItems(n,r,i=jV.NoneCancellationToken){return(0,kh.languageFeatureWorker)(t,n,()=>r,s=>(0,kh.getGeneratedPositions)(s,r,zV.isCallHierarchyEnabled),async(s,o,a,l)=>{if(i.isCancellationRequested)return;let c=await s[1].provideCallHierarchyItems?.(o,a,i);return c?.forEach(u=>{u.data={uri:n.toString(),original:{data:u.data},pluginIndex:t.plugins.indexOf(s),embeddedDocumentUri:l?.[1].uri}}),c},(s,o)=>o?s.map(a=>e(a,[])?.[0]).filter(a=>!!a):s,s=>P_.withLocations(s.flat()))},getTypeHierarchyItems(n,r,i=jV.NoneCancellationToken){return(0,kh.languageFeatureWorker)(t,n,()=>r,s=>(0,kh.getGeneratedPositions)(s,r,zV.isTypeHierarchyEnabled),async(s,o,a,l)=>{if(i.isCancellationRequested)return;let c=await s[1].provideTypeHierarchyItems?.(o,a,i);return c?.forEach(u=>{u.data={uri:n.toString(),original:{data:u.data},pluginIndex:t.plugins.indexOf(s),embeddedDocumentUri:l?.[1].uri}}),c},(s,o)=>o?s.map(a=>e(a,[])?.[0]).filter(a=>!!a):s,s=>P_.withLocations(s.flat()))},async getCallHierarchyIncomingCalls(n,r){let i=n.data,s=[];if(i){let o=t.plugins[i.pluginIndex];if(!o[1].provideCallHierarchyIncomingCalls)return s;if(Object.assign(n,i.original),i.embeddedDocumentUri){if(!!t.decodeEmbeddedDocumentUri(zb.URI.parse(i.embeddedDocumentUri))){let l=await o[1].provideCallHierarchyIncomingCalls(n,r);for(let c of l){let u=e(c.from,c.fromRanges);u&&s.push({from:u[0],fromRanges:u[1]})}}}else{let a=await o[1].provideCallHierarchyIncomingCalls(n,r);for(let l of a){let c=e(l.from,l.fromRanges);c&&s.push({from:c[0],fromRanges:c[1]})}}}return P_.withCallHierarchyIncomingCalls(s)},async getCallHierarchyOutgoingCalls(n,r){let i=n.data,s=[];if(i){let o=t.plugins[i.pluginIndex];if(!o[1].provideCallHierarchyOutgoingCalls)return s;if(Object.assign(n,i.original),i.embeddedDocumentUri){if(!!t.decodeEmbeddedDocumentUri(zb.URI.parse(i.embeddedDocumentUri))){let l=await o[1].provideCallHierarchyOutgoingCalls(n,r);for(let c of l){let u=e(c.to,c.fromRanges);u&&s.push({to:u[0],fromRanges:u[1]})}}}else{let a=await o[1].provideCallHierarchyOutgoingCalls(n,r);for(let l of a){let c=e(l.to,l.fromRanges);c&&s.push({to:c[0],fromRanges:c[1]})}}}return P_.withCallHierarchyOutgoingCalls(s)},async getTypeHierarchySupertypes(n,r){let i=n.data;if(i){let s=t.plugins[i.pluginIndex];if(!s[1].provideTypeHierarchySupertypes)return[];if(Object.assign(n,i.original),i.embeddedDocumentUri){if(!!t.decodeEmbeddedDocumentUri(zb.URI.parse(i.embeddedDocumentUri)))return(await s[1].provideTypeHierarchySupertypes(n,r)).map(l=>e(l,[])?.[0]).filter(l=>!!l)}else return(await s[1].provideTypeHierarchySupertypes(n,r)).map(a=>e(a,[])?.[0]).filter(a=>!!a)}},async getTypeHierarchySubtypes(n,r){let i=n.data;if(i){let s=t.plugins[i.pluginIndex];if(!s[1].provideTypeHierarchySubtypes)return[];if(Object.assign(n,i.original),i.embeddedDocumentUri){if(!!t.decodeEmbeddedDocumentUri(zb.URI.parse(i.embeddedDocumentUri)))return(await s[1].provideTypeHierarchySubtypes(n,r)).map(l=>e(l,[])?.[0]).filter(l=>!!l)}else return(await s[1].provideTypeHierarchySubtypes(n,r)).map(a=>e(a,[])?.[0]).filter(a=>!!a)}}};function e(n,r){let i=t.decodeEmbeddedDocumentUri(zb.URI.parse(n.uri)),s=i&&t.language.scripts.get(i[0]),o=i&&s?.generated?.embeddedCodes.get(i[1]);if(!s||!o)return[n,r];let a=t.documents.get(t.encodeEmbeddedDocumentUri(s.id,o.id),o.languageId,o.snapshot);for(let[l,c]of t.language.maps.forEach(o)){let u=t.documents.get(l.id,l.languageId,l.snapshot),d=[u,a,c],f=(0,kh.getSourceRange)(d,n.range);f||(f={start:u.positionAt(0),end:u.positionAt(u.getText().length)});let m=(0,kh.getSourceRange)(d,n.selectionRange);if(!m)continue;let b=r.map(w=>(0,kh.getSourceRange)(d,w)).filter(w=>!!w);return[{...n,name:n.name===a.uri.substring(a.uri.lastIndexOf("/")+1)?u.uri.substring(u.uri.lastIndexOf("/")+1):n.name,uri:u.uri,range:{start:f.start,end:f.end},selectionRange:{start:m.start,end:m.end}},b]}}}});var li=I(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.transformDocumentLinkTarget=UV;ai.transformMarkdown=ZD;ai.transformCompletionItem=BV;ai.transformCompletionList=AFe;ai.transformDocumentSymbol=HV;ai.transformFoldingRanges=FFe;ai.transformHover=EFe;ai.transformLocation=VV;ai.transformLocations=TFe;ai.transformSelectionRange=tR;ai.transformSelectionRanges=MFe;ai.transformTextEdit=eR;ai.transformWorkspaceSymbol=DFe;ai.transformWorkspaceEdit=RFe;ai.pushEditToDocumentChanges=KV;var jb=Nt(),Ep=rt(),Tp=fn();function UV(t,e){let n=Ep.URI.parse(t),r=e.decodeEmbeddedDocumentUri(n);if(!r)return n;let i=n.fragment.match(/^L(\d+)(,(\d+))?(-L(\d+)(,(\d+))?)?$/),s=e.language.scripts.get(r[0]),o=s?.generated?.embeddedCodes.get(r[1]);if(n=r[0],i&&s&&o){let a=e.documents.get(e.encodeEmbeddedDocumentUri(s.id,o.id),o.languageId,o.snapshot);for(let[l,c]of e.language.maps.forEach(o)){if(!c.mappings.some(b=>(0,jb.isDocumentLinkEnabled)(b.data)))continue;let d=[e.documents.get(l.id,l.languageId,l.snapshot),a,c],f=Number(i[1])-1,m=Number(i[3]??1)-1;if(i[5]!==void 0){let b=Number(i[5])-1,g=Number(i[7]??1)-1,w=(0,Tp.getSourceRange)(d,{start:{line:f,character:m},end:{line:b,character:g}});if(w){n=n.with({fragment:"L"+(w.start.line+1)+","+(w.start.character+1)+"-L"+(w.end.line+1)+","+(w.end.character+1)});break}}else{let b=!1;for(let g of(0,Tp.getSourcePositions)(d,{line:f,character:m})){b=!0,n=n.with({fragment:"L"+(g.line+1)+","+(g.character+1)});break}if(b)break}}}return n}function ZD(t,e){return t.replace(/(?!\()volar-embedded-content:\/\/\w+\/[^)]+/g,n=>{let r=n.split("|");return r[0]=UV(r[0],e).toString(),r.join("|")})}function BV(t,e,n,r){return{...t,additionalTextEdits:t.additionalTextEdits?.map(i=>eR(i,e,n)).filter(i=>!!i),textEdit:t.textEdit?eR(t.textEdit,e,n):void 0,documentation:t.documentation?typeof t.documentation=="string"?ZD(t.documentation,r):t.documentation.kind==="markdown"?{kind:"markdown",value:ZD(t.documentation.value,r)}:t.documentation:void 0}}function AFe(t,e,n,r){return{isIncomplete:t.isIncomplete,itemDefaults:t.itemDefaults?{...t.itemDefaults,editRange:t.itemDefaults.editRange?"replace"in t.itemDefaults.editRange?{insert:e(t.itemDefaults.editRange.insert),replace:e(t.itemDefaults.editRange.replace)}:e(t.itemDefaults.editRange):void 0}:void 0,items:t.items.map(i=>BV(i,e,n,r))}}function HV(t,e){let n=e(t.range);if(!n)return;let r=e(t.selectionRange);if(r)return{...t,range:n,selectionRange:r,children:t.children?.map(i=>HV(i,e)).filter(i=>!!i)}}function FFe(t,e){let n=[];for(let r of t){let i=e({start:{line:r.startLine,character:r.startCharacter??0},end:{line:r.endLine,character:r.endCharacter??0}});i&&(r.startLine=i.start.line,r.endLine=i.end.line,r.startCharacter!==void 0&&(r.startCharacter=i.start.character),r.endCharacter!==void 0&&(r.endCharacter=i.end.character),n.push(r))}return n}function EFe(t,e){if(!t?.range)return t;let n=e(t.range);if(n)return{...t,range:n}}function VV(t,e){let n=e(t.range);if(n)return{...t,range:n}}function TFe(t,e){return t.map(n=>VV(n,e)).filter(n=>!!n)}function tR(t,e){let n=e(t.range);if(!n)return;let r=t.parent?tR(t.parent,e):void 0;return{range:n,parent:r}}function MFe(t,e){return t.map(n=>tR(n,e)).filter(n=>!!n)}function eR(t,e,n){if("range"in t){let r=e(t.range);if(r)return{...t,range:r};let i=XD(e,t.range,t.newText,n);if(i)return{...t,range:i.range,newText:i.newText}}else if("replace"in t&&"insert"in t){let r=e(t.insert),i=r?e(t.replace):void 0;if(r&&i)return{...t,insert:r,replace:i};let s=XD(e,t.insert,t.newText,n),o=s?XD(e,t.replace,t.newText,n):void 0;if(s&&o&&s.newText===o.newText)return{...t,insert:s.range,replace:o.range,newText:s.newText}}}function XD(t,e,n,r){if(e.start.line===e.end.line&&e.end.character>e.start.character){let i=e.start.character;for(;n.length&&e.end.character>i;){let s={line:e.start.line,character:e.start.character+1};if(r.getText({start:e.start,end:s})===n[0]){n=n.slice(1),i++;let o=t({start:s,end:e.end});if(o)return{newText:n,range:o}}else break}}}function DFe(t,e){if(!("range"in t.location))return t;let n=e(t.location);if(n)return{...t,location:n}}function RFe(t,e,n,r={}){let i={},s=!1;for(let o in t.changeAnnotations){i.changeAnnotations??={};let a=t.changeAnnotations[o],l=e.decodeEmbeddedDocumentUri(Ep.URI.parse(o)),c=l&&e.language.scripts.get(l[0]),u=l&&c?.generated?.embeddedCodes.get(l[1]);if(c&&u)for(let[d]of e.language.maps.forEach(u)){let f=d.id.toString();i.changeAnnotations[f]=a;break}else i.changeAnnotations[o]=a}for(let o in t.changes){i.changes??={};let a=e.decodeEmbeddedDocumentUri(Ep.URI.parse(o)),l=a&&e.language.scripts.get(a[0]),c=a&&l?.generated?.embeddedCodes.get(a[1]);if(l&&c){let u=e.documents.get(e.encodeEmbeddedDocumentUri(l.id,c.id),c.languageId,c.snapshot);for(let[d,f]of e.language.maps.forEach(c)){let m=e.documents.get(d.id,d.languageId,d.snapshot),b=[m,u,f],g=t.changes[o];for(let w of g)if(n==="rename"||n==="fileName"||n==="codeAction"){let _,S=(0,Tp.getSourceRange)(b,w.range,v=>(_=v,(0,jb.isRenameEnabled)(v)));S&&(i.changes[m.uri]??=[],i.changes[m.uri].push({newText:(0,jb.resolveRenameEditText)(w.newText,_),range:S}),s=!0)}else{let _=(0,Tp.getSourceRange)(b,w.range);_&&(i.changes[m.uri]??=[],i.changes[m.uri].push({newText:w.newText,range:_}),s=!0)}}}else i.changes[o]=t.changes[o],s=!0}if(t.documentChanges)for(let o of t.documentChanges){i.documentChanges??=[];let a;if("textDocument"in o){let l=e.decodeEmbeddedDocumentUri(Ep.URI.parse(o.textDocument.uri)),c=l&&e.language.scripts.get(l[0]),u=l&&c?.generated?.embeddedCodes.get(l[1]);if(c&&u){let d=e.documents.get(e.encodeEmbeddedDocumentUri(c.id,u.id),u.languageId,u.snapshot);for(let[f,m]of e.language.maps.forEach(u)){let b=e.documents.get(f.id,f.languageId,f.snapshot),g=[b,d,m];a={textDocument:{uri:b.uri,version:r[b.uri]??null},edits:[]};for(let w of o.edits)if(n==="rename"||n==="fileName"||n==="codeAction"){let _,S=(0,Tp.getSourceRange)(g,w.range,v=>(_=v,(0,jb.isRenameEnabled)(v)));S&&a.edits.push({annotationId:"annotationId"in w?w.annotationId:void 0,newText:(0,jb.resolveRenameEditText)(w.newText,_),range:S})}else{let _=(0,Tp.getSourceRange)(g,w.range);_&&a.edits.push({annotationId:"annotationId"in w?w.annotationId:void 0,newText:w.newText,range:_})}a.edits.length||(a=void 0)}}else a=o}else if(o.kind==="create")a=o;else if(o.kind==="rename"){let l=e.decodeEmbeddedDocumentUri(Ep.URI.parse(o.oldUri)),c=l&&e.language.scripts.get(l[0]),u=l&&c?.generated?.embeddedCodes.get(l[1]);if(u)for(let[d]of e.language.maps.forEach(u))a={kind:"rename",oldUri:d.id.toString(),newUri:o.newUri,options:o.options,annotationId:o.annotationId};else a=o}else if(o.kind==="delete"){let l=e.decodeEmbeddedDocumentUri(Ep.URI.parse(o.uri)),c=l&&e.language.scripts.get(l[0]),u=l&&c?.generated?.embeddedCodes.get(l[1]);if(u)for(let[d]of e.language.maps.forEach(u))a={kind:"delete",uri:d.id.toString(),options:o.options,annotationId:o.annotationId};else a=o}a&&(KV(i.documentChanges,a),s=!0)}if(s)return i}function KV(t,e){let n=t.find(r=>"textDocument"in r&&"textDocument"in e&&r.textDocument.uri===e.textDocument.uri);n?n.edits.push(...e.edits):t.push(e)}});var QV=I(nR=>{"use strict";Object.defineProperty(nR,"__esModule",{value:!0});nR.register=OFe;var GV=Nt(),IFe=Dt(),PFe=nl(),JV=fn(),YV=li();function OFe(t){return async(e,n,r,i=IFe.NoneCancellationToken)=>{if(!t.language.scripts.get(e))return;let o=new WeakSet;return await(0,JV.languageFeatureWorker)(t,e,()=>({range:n,codeActionContext:r}),function*(a){let l={diagnostics:(0,YV.transformLocations)(r.diagnostics,u=>(0,JV.getGeneratedRange)(a,u)),only:r.only},c=(0,GV.findOverlapCodeRange)(a[0].offsetAt(n.start),a[0].offsetAt(n.end),a[2],GV.isCodeActionsEnabled);c&&(yield{range:{start:a[1].positionAt(c.start),end:a[1].positionAt(c.end)},codeActionContext:l})},async(a,l,{range:c,codeActionContext:u})=>{if(i.isCancellationRequested)return;let d=t.plugins.indexOf(a),f=u.diagnostics.filter(b=>{let g=b.data;return g&&g.version!==l.version?!1:g?.pluginIndex===d}).map(b=>{let g=b.data;return{...b,...g.original}}),m=await a[1].provideCodeActions?.(l,c,{...u,diagnostics:f},i);if(m?.forEach(b=>{a[1].resolveCodeAction?b.data={uri:e.toString(),version:l.version,original:{data:b.data,edit:b.edit},pluginIndex:t.plugins.indexOf(a)}:delete b.data}),m&&a[1].transformCodeAction)for(let b=0;b<m.length;b++){let g=a[1].transformCodeAction(m[b]);g&&(m[b]=g,o.add(g))}return m},a=>a.map(l=>{if(o.has(l))return l;if(l.edit){let c=(0,YV.transformWorkspaceEdit)(l.edit,t,"codeAction");if(!c)return;l.edit=c}return l}).filter(l=>!!l),a=>PFe.withCodeAction(a.flat()))}}});var eK=I(rR=>{"use strict";Object.defineProperty(rR,"__esModule",{value:!0});rR.register=LFe;var XV=Nt(),NFe=Dt(),ZV=fn();function LFe(t){return async(e,n=NFe.NoneCancellationToken)=>await(0,ZV.documentFeatureWorker)(t,e,r=>r[2].mappings.some(i=>(0,XV.isCodeLensEnabled)(i.data)),async(r,i)=>{if(n.isCancellationRequested)return;let s=await r[1].provideCodeLenses?.(i,n),o=t.plugins.indexOf(r);s?.forEach(c=>{r[1].resolveCodeLens?c.data={kind:"normal",uri:e.toString(),original:{data:c.data},pluginIndex:o}:delete c.data});let l=(await r[1].provideReferencesCodeLensRanges?.(i,n))?.map(c=>({range:c,data:{kind:"references",sourceFileUri:e.toString(),workerFileUri:i.uri,workerFileRange:c,pluginIndex:o}}));return s=[...s??[],...l??[]],s},(r,i)=>i?r.map(s=>{let o=(0,ZV.getSourceRange)(i,s.range,XV.isCodeLensEnabled);if(o)return{...s,range:o}}).filter(s=>!!s):r,r=>r.flat())??[]}});var tK=I(iR=>{"use strict";Object.defineProperty(iR,"__esModule",{value:!0});iR.register=zFe;var qFe=Nt(),$Fe=Dt(),O_=fn();function zFe(t){return(e,n,r,i=$Fe.NoneCancellationToken)=>(0,O_.languageFeatureWorker)(t,e,()=>r,function*(s){for(let o of(0,O_.getGeneratedRanges)(s,r,qFe.isColorEnabled))yield o},(s,o,a)=>{if(!i.isCancellationRequested)return s[1].provideColorPresentations?.(o,n,a,i)},(s,o)=>o?s.map(a=>{if(a.textEdit){let l=(0,O_.getSourceRange)(o,a.textEdit.range);if(!l)return;a.textEdit.range=l}if(a.additionalTextEdits)for(let l of a.additionalTextEdits){let c=(0,O_.getSourceRange)(o,l.range);if(!c)return;l.range=c}return a}).filter(a=>!!a):s)}});var rK=I(oR=>{"use strict";Object.defineProperty(oR,"__esModule",{value:!0});oR.register=UFe;var sR=Nt(),jFe=rt(),WFe=Dt(),Wb=fn(),nK=li();function UFe(t){let e;return async(n,r,i={triggerKind:1},s=WFe.NoneCancellationToken)=>{let o,a,l=t.decodeEmbeddedDocumentUri(n);if(l?o=t.language.scripts.get(l[0])?.generated?.embeddedCodes.get(l[1]):(a=t.language.scripts.get(n),o=a),!o)return{isIncomplete:!1,items:[]};if(i?.triggerKind===3&&e?.uri.toString()===n.toString())for(let d of e.results){if(!d.list?.isIncomplete)continue;let f=t.plugins.findIndex(m=>m[1]===d.plugin);if(d.embeddedDocumentUri){let m=t.decodeEmbeddedDocumentUri(d.embeddedDocumentUri),b=m&&t.language.scripts.get(m[0]),g=m&&b?.generated?.embeddedCodes.get(m[1]);if(!b||!g)continue;let w=t.documents.get(t.encodeEmbeddedDocumentUri(b.id,g.id),g.languageId,g.snapshot);for(let[_,S]of t.language.maps.forEach(g)){let T=[t.documents.get(_.id,_.languageId,_.snapshot),w,S];for(let A of(0,Wb.getGeneratedPositions)(T,r,R=>(0,sR.isCompletionEnabled)(R)))if(d.plugin.provideCompletionItems&&(d.list=await d.plugin.provideCompletionItems(w,A,i,s),!!d.list)){for(let R of d.list.items)d.plugin.resolveCompletionItem?R.data={uri:n.toString(),original:{additionalTextEdits:R.additionalTextEdits,textEdit:R.textEdit,data:R.data},pluginIndex:f,embeddedDocumentUri:w.uri}:delete R.data;d.list=(0,nK.transformCompletionList)(d.list,R=>(0,Wb.getSourceRange)(T,R),w,t)}}}else{if(!d.plugin.provideCompletionItems)continue;let m=t.documents.get(n,o.languageId,o.snapshot);if(d.list=await d.plugin.provideCompletionItems(m,r,i,s),!d.list)continue;for(let b of d.list.items)d.plugin.resolveCompletionItem?b.data={uri:n.toString(),original:{additionalTextEdits:b.additionalTextEdits,textEdit:b.textEdit,data:b.data},pluginIndex:f,embeddedDocumentUri:void 0}:delete b.data}}else{e={uri:n,results:[]};let d=!0,f,m=[...t.plugins].filter(g=>!t.disabledServicePlugins.has(g[1])).sort((g,w)=>c(g[1],w[1])),b=async(g,w,_,S)=>{for(let v of m){if(s.isCancellationRequested)break;if(!v[1].provideCompletionItems||v[1].isAdditionalCompletion&&!d||i?.triggerCharacter&&!v[0].capabilities.completionProvider?.triggerCharacters?.includes(i.triggerCharacter))continue;let T=S&&typeof S.completion=="object"&&S.completion.isAdditional||v[1].isAdditionalCompletion;if(f&&(!T||f!==g.uri)||v[1].isAdditionalCompletion&&e?.results.some(k=>k.plugin===v[1]))continue;let A=await v[1].provideCompletionItems(g,w,i,s);if(!A||!A.items.length)continue;typeof S?.completion=="object"&&S.completion.onlyImport&&(A.items=A.items.filter(k=>!!k.labelDetails)),T||(f=g.uri);let R=t.plugins.indexOf(v);for(let k of A.items)v[1].resolveCompletionItem?k.data={uri:n.toString(),original:{additionalTextEdits:k.additionalTextEdits,textEdit:k.textEdit,data:k.data},pluginIndex:R,embeddedDocumentUri:_?g.uri:void 0}:delete k.data;_&&(A=(0,nK.transformCompletionList)(A,k=>(0,Wb.getSourceRange)(_,k,sR.isCompletionEnabled),g,t)),e?.results.push({embeddedDocumentUri:_?jFe.URI.parse(g.uri):void 0,plugin:v[1],list:A})}d=!1};if(a?.generated)for(let g of(0,Wb.forEachEmbeddedDocument)(t,a,a.generated.root)){let w;for(let _ of(0,Wb.getGeneratedPositions)(g,r,S=>(w=S,(0,sR.isCompletionEnabled)(S))))await b(g[1],_,g,w)}else{let g=t.documents.get(n,o.languageId,o.snapshot);await b(g,r)}}return u(e.results.map(d=>d.list));function c(d,f){return(f.isAdditionalCompletion?-1:1)-(d.isAdditionalCompletion?-1:1)}function u(d){return{isIncomplete:d.some(f=>f?.isIncomplete),itemDefaults:d.find(f=>f?.itemDefaults)?.itemDefaults,items:d.map(f=>f?.items??[]).flat()}}}}});var oK=I(aR=>{"use strict";Object.defineProperty(aR,"__esModule",{value:!0});aR.register=HFe;var iK=rt(),BFe=Dt(),sK=nl(),Mp=fn();function HFe(t,e,n){return(r,i,s=BFe.NoneCancellationToken)=>(0,Mp.languageFeatureWorker)(t,r,()=>i,o=>(0,Mp.getGeneratedPositions)(o,i,n),async(o,a,l)=>{if(s.isCancellationRequested)return;let c=sK.createLocationSet(),u=[];return await d(a,l,void 0),u;async function d(f,m,b){let g=o[1][e];if(!g||c.has({uri:f.uri,range:{start:m,end:m}}))return;c.add({uri:f.uri,range:{start:m,end:m}});let w=await g?.(f,m,s)??[];for(let _ of w){let S=!1;c.add({uri:_.targetUri,range:{start:_.targetRange.start,end:_.targetRange.start}});let v=t.decodeEmbeddedDocumentUri(iK.URI.parse(_.targetUri)),T=v&&t.language.scripts.get(v[0]),A=v&&T?.generated?.embeddedCodes.get(v[1]),R=A&&T?t.language.linkedCodeMaps.get(A):void 0;if(T&&A&&R){let k=t.documents.get(t.encodeEmbeddedDocumentUri(T.id,A.id),A.languageId,A.snapshot);for(let y of(0,Mp.getLinkedCodePositions)(k,R,_.targetSelectionRange.start))c.has({uri:k.uri,range:{start:y,end:y}})||(S=!0,await d(k,y,b??_))}S||(b?u.push({..._,originSelectionRange:b.originSelectionRange}):u.push(_))}}},(o,a)=>o.map(l=>{if(l.originSelectionRange&&a){let m=VFe(a,l.originSelectionRange,i);if(!m)return;l.originSelectionRange=m}let c=!1,u=t.decodeEmbeddedDocumentUri(iK.URI.parse(l.targetUri)),d=u&&t.language.scripts.get(u[0]),f=u&&d?.generated?.embeddedCodes.get(u[1]);if(d&&f){let m=t.documents.get(t.encodeEmbeddedDocumentUri(d.id,f.id),f.languageId,f.snapshot);for(let[b,g]of t.language.maps.forEach(f)){let w=t.documents.get(b.id,b.languageId,b.snapshot),_=[w,m,g],S=(0,Mp.getSourceRange)(_,l.targetSelectionRange);if(!S)continue;c=!0;let v=(0,Mp.getSourceRange)(_,l.targetRange);l.targetUri=w.uri,l.targetRange=v??S,l.targetSelectionRange=S}if(e==="provideDefinition"&&!c){for(let[b]of t.language.maps.forEach(f))if(b.id.toString()!==r.toString())return{...l,targetUri:b.id.toString(),targetRange:{start:{line:0,character:0},end:{line:0,character:0}},targetSelectionRange:{start:{line:0,character:0},end:{line:0,character:0}}};return}}return l}).filter(l=>!!l),o=>sK.withLocationLinks(o.flat()))}function VFe(t,e,n){let r;for(let i of(0,Mp.getSourceRanges)(t,e))if(r||(r=i),(i.start.line<n.line||i.start.line===n.line&&i.start.character<=n.character)&&(i.end.line>n.line||i.end.line===n.line&&i.end.character>=n.character))return i;return r}});var Rp=I(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.isInsideRange=KFe;Dp.isEqualRange=GFe;Dp.stringToSnapshot=JFe;Dp.sleep=YFe;function KFe(t,e){return!(e.start.line<t.start.line||e.end.line>t.end.line||e.start.line===t.start.line&&e.start.character<t.start.character||e.end.line===t.end.line&&e.end.character>t.end.character)}function GFe(t,e){return t.start.line===e.start.line&&t.start.character===e.start.character&&t.end.line===e.end.line&&t.end.character===e.end.character}function JFe(t){return{getText:(e,n)=>t.substring(e,n),getLength:()=>t.length,getChangeRange:()=>{}}}function YFe(t){return new Promise(e=>setTimeout(e,t))}});var N_=I(lR=>{"use strict";Object.defineProperty(lR,"__esModule",{value:!0});lR.createUriMap=QFe;function QFe(t=!1){let e=new Map,n=new Map,r=new Map;return{get size(){return e.size},get[Symbol.toStringTag](){return"UriMap"},[Symbol.iterator](){return this.entries()},clear(){return n.clear(),r.clear(),e.clear()},values(){return e.values()},*keys(){for(let s of e.keys())yield r.get(s)},*entries(){for(let[s,o]of e.entries())yield[r.get(s),o]},forEach(s,o){for(let[a,l]of this.entries())s.call(o,l,a,this)},delete(s){return e.delete(i(s))},get(s){return e.get(i(s))},has(s){return e.has(i(s))},set(s,o){return e.set(i(s),o),this}};function i(s){let o=s.toString();if(!n.has(o)){let a=s.toString();t||(a=a.toLowerCase()),n.set(o,a),r.set(a,s)}return n.get(o)}}});var L_=I(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});Ah.errorMarkups=void 0;Ah.register=nEe;Ah.transformDiagnostic=cK;Ah.updateRange=uK;var cR=Nt(),XFe=rt(),ZFe=Dt(),eEe=Rp(),tEe=nl(),uR=fn(),lK=N_();Ah.errorMarkups=(0,lK.createUriMap)();function nEe(t){let e=(0,lK.createUriMap)(),n={semantic:new Map,syntactic:new Map};return t.env.onDidChangeConfiguration?.(()=>{e.clear(),n.semantic.clear(),n.syntactic.clear()}),async(r,i,s=ZFe.NoneCancellationToken)=>{let o,a=t.decodeEmbeddedDocumentUri(r);if(a?o=t.language.scripts.get(a[0])?.generated?.embeddedCodes.get(a[1]):o=t.language.scripts.get(r),!o)return[];let l=t.documents.get(r,o.languageId,o.snapshot),c=e.get(r)??e.set(r,{semantic:{errors:[]},syntactic:{errors:[]}}).get(r),u=!1,d=!1,f=0;for(let w of Object.values(c)){let _=w.snapshot,S=w.document,v=_?o.snapshot.getChangeRange(_):void 0;if(w.snapshot=o.snapshot,w.document=l,!u&&S&&v){let T={range:{start:S.positionAt(v.span.start),end:S.positionAt(v.span.start+v.span.length)},newEnd:l.positionAt(v.span.start+v.newLength)};for(let A of w.errors)if(!uK(A.range,T)){u=!0;break}}}return await g("syntactic",n.syntactic,c.syntactic),m(),await g("semantic",n.semantic,c.semantic),b();function m(){d&&!u&&(i?.(b()),d=!1)}function b(){return Object.values(c).flatMap(({errors:w})=>w)}async function g(w,_,S){let v=await(0,uR.documentFeatureWorker)(t,r,T=>T[2].mappings.some(A=>(0,cR.isDiagnosticsEnabled)(A.data)),async(T,A)=>{let R=T[0].capabilities.diagnosticProvider?.interFileDependencies;if(w==="semantic"!==R||(Date.now()-f>=10&&(await(0,eEe.sleep)(10),f=Date.now()),s.isCancellationRequested))return;let k=t.plugins.indexOf(T),y=_.get(k)??_.set(k,new Map).get(k),C=y.get(A.uri);if(!R&&C&&C.documentVersion===A.version)return C.errors;let M=await T[1].provideDiagnostics?.(A,s)||[];return M.forEach(E=>{E.data={uri:r.toString(),version:A.version,pluginIndex:k,isFormat:!1,original:{data:E.data},documentUri:A.uri}}),d=!0,y.set(A.uri,{documentVersion:A.version,errors:M}),M},(T,A)=>T.map(R=>cK(t,R,A)).filter(R=>!!R),T=>tEe.withDiagnostics(T.flat()));v&&(S.errors=v,S.snapshot=o?.snapshot)}}}function cK(t,e,n){let r={...e};if(n){let i=(0,uR.getSourceRange)(n,e.range,s=>(0,cR.shouldReportDiagnostics)(s,e.source,e.code));if(!i)return;r.range=i}if(r.relatedInformation){let i=[];for(let s of r.relatedInformation){let o=t.decodeEmbeddedDocumentUri(XFe.URI.parse(s.location.uri)),a=o&&t.language.scripts.get(o[0]),l=o&&a?.generated?.embeddedCodes.get(o[1]);if(a&&l){let c=t.documents.get(t.encodeEmbeddedDocumentUri(a.id,l.id),l.languageId,l.snapshot);for(let[u,d]of t.language.maps.forEach(l)){let f=t.documents.get(u.id,u.languageId,u.snapshot),m=[f,c,d],b=(0,uR.getSourceRange)(m,s.location.range,g=>(0,cR.shouldReportDiagnostics)(g,void 0,void 0));b&&i.push({location:{uri:f.uri,range:b},message:s.message})}}else i.push(s)}r.relatedInformation=i}return r}function uK(t,e){if(aK(t.start,e,!1)&&aK(t.end,e,!0))return t.end.line===t.start.line&&t.end.character<=t.start.character&&t.end.character++,t}function aK(t,e,n){if(e.range.end.line>t.line){if(e.newEnd.line>t.line)return!0;if(e.newEnd.line===t.line)return t.character=Math.min(t.character,e.newEnd.character),!0;if(e.newEnd.line<t.line)return t.line=e.newEnd.line,t.character=e.newEnd.character,!0}else if(e.range.end.line===t.line){let r=e.newEnd.character-e.range.end.character;if(t.character>=e.range.end.character){if(e.newEnd.line!==e.range.end.line)t.line=e.newEnd.line,t.character=e.newEnd.character+t.character-e.range.end.character;else if(n?e.range.end.character<t.character:e.range.end.character<=t.character)t.character+=r;else{let i=e.range.end.character-t.character;-r>i&&(t.character+=r+i)}return!0}else{if(e.newEnd.line===e.range.end.line){let i=e.range.end.character-t.character;-r>i&&(t.character+=r+i)}else e.newEnd.line<e.range.end.line&&(t.line=e.newEnd.line,t.character=e.newEnd.character);return!0}}else if(e.range.end.line<t.line)return t.line+=e.newEnd.line-e.range.end.line,!0;return!1}});var fK=I(dR=>{"use strict";Object.defineProperty(dR,"__esModule",{value:!0});dR.register=iEe;var dK=Nt(),rEe=Dt(),hK=fn();function iEe(t){return(e,n=rEe.NoneCancellationToken)=>(0,hK.documentFeatureWorker)(t,e,r=>r[2].mappings.some(i=>(0,dK.isColorEnabled)(i.data)),(r,i)=>{if(!n.isCancellationRequested)return r[1].provideDocumentColors?.(i,n)},(r,i)=>i?r.map(s=>{let o=(0,hK.getSourceRange)(i,s.range,dK.isColorEnabled);if(o)return{range:o,color:s.color}}).filter(s=>!!s):r,r=>r.flat())}});var mK=I(hR=>{"use strict";Object.defineProperty(hR,"__esModule",{value:!0});hR.register=aEe;var sEe=Dt(),pK=fn(),oEe=li();function aEe(t){return(e,n,r,i=sEe.NoneCancellationToken)=>(0,pK.languageFeatureWorker)(t,e,()=>n,function*(s){for(let o of(0,pK.getGeneratedPositions)(s,n))yield o},(s,o,a)=>{if(!i.isCancellationRequested)return s[1].provideDocumentDropEdits?.(o,a,r,i)},s=>(s.additionalEdit&&(s.additionalEdit=(0,oEe.transformWorkspaceEdit)(s.additionalEdit,t,void 0)),s))}});var yK=I(fR=>{"use strict";Object.defineProperty(fR,"__esModule",{value:!0});fR.register=uEe;var Ub=Nt(),gK=(lc(),or(Fp)),q_=rt(),lEe=Dt(),cEe=Rp(),bK=fn();function uEe(t){return async(e,n,r,i,s=lEe.NoneCancellationToken)=>{let o=t.language.scripts.get(e);if(!o)return;let a=t.documents.get(e,o.languageId,o.snapshot);if(r??={start:a.positionAt(0),end:a.positionAt(a.getText().length)},!o.generated)return i?(await d(a,a,o,void 0,0,i.position,i.ch))?.edits:(await d(a,a,o,void 0,0,r,void 0))?.edits;let l=new Map,c=a.offsetAt(r.start),u=a.offsetAt(r.end);for(let f of(0,Ub.forEachEmbeddedCode)(o.generated.root)){let m=t.language.maps.get(f,o);if(m){let b=(0,Ub.findOverlapCodeRange)(c,u,m,Ub.isFormattingEnabled);if(b){b.start===m.mappings[0].generatedOffsets[0]&&(b.start=0);let g=m.mappings[m.mappings.length-1];b.end===g.generatedOffsets[g.generatedOffsets.length-1]+(g.generatedLengths??g.lengths)[g.lengths.length-1]&&(b.end=f.snapshot.getLength()),l.set(f.id,b)}}}try{let f=a,m=o.snapshot,b=t.language.scripts.set(q_.URI.parse(o.id.toString()+".tmp"),o.snapshot,o.languageId,[o.generated.languagePlugin])?.generated?.root;if(!b)return;let g=[];for(let S=0;(g=dEe(t,o.id,b,S)).length>0;S++){let v=[];for(let T of g){if(!T.mappings.some(C=>(0,Ub.isFormattingEnabled)(C.data)))continue;let A=l.get(T.id);if(!A||[...(0,Ub.forEachEmbeddedCode)(T)].some(C=>{if(C===T)return!1;let M=l.get(C.id);return M&&M.end-M.start>=A.end-A.start}))continue;let k=[t.documents.get(e,o.languageId,m),t.documents.get(t.encodeEmbeddedDocumentUri(e,T.id),T.languageId,T.snapshot),t.language.mapperFactory(T.mappings)],y;if(i)for(let C of(0,bK.getGeneratedPositions)(k,i.position)){y=await d(k[0],k[1],o,T,S,C,i.ch);break}else A&&(y=await d(k[0],k[1],o,T,S,{start:k[1].positionAt(A.start),end:k[1].positionAt(A.end)}));if(y)for(let C of y.edits){let M=(0,bK.getSourceRange)(k,C.range);M&&v.push({newText:C.newText,range:M})}}if(v.length>0){let T=gK.TextDocument.applyEdits(a,v);if(a=gK.TextDocument.create(a.uri,a.languageId,a.version+1,T),m=(0,cEe.stringToSnapshot)(T),b=t.language.scripts.set(q_.URI.parse(o.id.toString()+".tmp"),m,o.languageId,[o.generated.languagePlugin])?.generated?.root,!b)break}}return a.getText()===f.getText()?void 0:[{range:{start:f.positionAt(0),end:f.positionAt(f.getText().length)},newText:a.getText()}]}finally{t.language.scripts.delete(q_.URI.parse(o.id.toString()+".tmp"))}async function d(f,m,b,g,w,_,S){if(t.disabledEmbeddedDocumentUris.get(q_.URI.parse(m.uri)))return;let v;if(_??={start:m.positionAt(0),end:m.positionAt(m.getText().length)},g){if(v={level:w,initialIndentLevel:0},g.mappings.length){let A=g.mappings[0].sourceOffsets[0],R=f.positionAt(A);v.initialIndentLevel=hEe(f.getText(),f.offsetAt({line:R.line,character:0}),n)}for(let T of t.plugins)t.disabledServicePlugins.has(T[1])||(v=await T[1].resolveEmbeddedCodeFormattingOptions?.(b,g,v,s)??v)}for(let T of t.plugins){if(t.disabledServicePlugins.has(T[1]))continue;if(s.isCancellationRequested)break;let A;try{S!==void 0&&_&&"line"in _&&"character"in _?T[0].capabilities.documentOnTypeFormattingProvider?.triggerCharacters?.includes(S)&&(A=await T[1].provideOnTypeFormattingEdits?.(m,_,S,n,v,s)):S===void 0&&_&&"start"in _&&"end"in _&&(A=await T[1].provideDocumentFormattingEdits?.(m,_,n,v,s))}catch(R){console.warn(R)}if(A)return{plugin:T,edits:A}}}}}function dEe(t,e,n,r){let i=[[n]];for(;;){if(i.length>r)return i[r];let s=[];for(let o of i[i.length-1])if(o.embeddedCodes)for(let a of o.embeddedCodes)t.disabledEmbeddedDocumentUris.get(t.encodeEmbeddedDocumentUri(e,a.id))||s.push(a);i.push(s)}}function hEe(t,e,n){let r=0,i=n.tabSize||4;for(;e<t.length;){let s=t.charAt(e);if(s===" ")r++;else if(s===" ")r+=i;else break;e++}return Math.floor(r/i)}});var wK=I(pR=>{"use strict";Object.defineProperty(pR,"__esModule",{value:!0});pR.register=gEe;var vK=Nt(),fEe=rt(),pEe=Dt(),mEe=nl(),$_=fn();function gEe(t){return(e,n,r=pEe.NoneCancellationToken)=>(0,$_.languageFeatureWorker)(t,e,()=>n,i=>(0,$_.getGeneratedPositions)(i,n,vK.isHighlightEnabled),async(i,s,o)=>{if(r.isCancellationRequested)return;let a=mEe.createLocationSet(),l=[];return await c(s,o),l;async function c(u,d){if(!i[1].provideDocumentHighlights||a.has({uri:u.uri,range:{start:d,end:d}}))return;a.add({uri:u.uri,range:{start:d,end:d}});let f=await i[1].provideDocumentHighlights(u,d,r)??[];for(let m of f){let b=!1;a.add({uri:u.uri,range:{start:m.range.start,end:m.range.start}});let g=t.decodeEmbeddedDocumentUri(fEe.URI.parse(u.uri)),w=g&&t.language.scripts.get(g[0]),_=g&&w?.generated?.embeddedCodes.get(g[1]),S=_&&w?t.language.linkedCodeMaps.get(_):void 0;if(w&&_&&S){let v=t.documents.get(t.encodeEmbeddedDocumentUri(w.id,_.id),_.languageId,_.snapshot);for(let T of(0,$_.getLinkedCodePositions)(v,S,m.range.start))a.has({uri:v.uri,range:{start:T,end:T}})||(b=!0,await c(v,T))}b||l.push(m)}}},(i,s)=>i.map(o=>{if(!s)return o;let a=(0,$_.getSourceRange)(s,o.range,vK.isHighlightEnabled);if(a)return{...o,range:a}}).filter(o=>!!o),i=>i.flat())}});var CK=I(mR=>{"use strict";Object.defineProperty(mR,"__esModule",{value:!0});mR.register=vEe;var _K=Nt(),bEe=Dt(),SK=fn(),yEe=li();function vEe(t){return async(e,n=bEe.NoneCancellationToken)=>await(0,SK.documentFeatureWorker)(t,e,r=>r[2].mappings.some(i=>(0,_K.isDocumentLinkEnabled)(i.data)),async(r,i)=>{if(n.isCancellationRequested)return;let s=await r[1].provideDocumentLinks?.(i,n);for(let o of s??[])r[1].resolveDocumentLink?o.data={uri:e.toString(),original:{data:o.data},pluginIndex:t.plugins.indexOf(r)}:delete o.data;return s},(r,i)=>i?r.map(s=>{let o=(0,SK.getSourceRange)(i,s.range,_K.isDocumentLinkEnabled);if(o)return s={...s,range:o},s.target&&(s.target=(0,yEe.transformDocumentLinkTarget)(s.target,t).toString()),s}).filter(s=>!!s):r,r=>r.flat())??[]}});var xK=I(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0});z_.SemanticTokensBuilder=void 0;var gR=class{constructor(){this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,n,r,i,s){let o=e,a=n;this._dataLen>0&&(o-=this._prevLine,o===0&&(a-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=s,this._prevLine=e,this._prevChar=n}get id(){return this._id.toString()}build(){return{resultId:this.id,data:this._data}}};z_.SemanticTokensBuilder=gR});var AK=I(yR=>{"use strict";Object.defineProperty(yR,"__esModule",{value:!0});yR.register=SEe;var bR=Nt(),wEe=xK(),_Ee=Dt(),kK=fn();function SEe(t){return async(e,n,r,i,s=_Ee.NoneCancellationToken)=>{let o=t.language.scripts.get(e);if(!o)return;let a=t.documents.get(e,o.languageId,o.snapshot);n||(n={start:{line:0,character:0},end:{line:a.lineCount-1,character:a.getText().length}});let l=await(0,kK.languageFeatureWorker)(t,e,()=>n,function*(c){let u=(0,bR.findOverlapCodeRange)(c[0].offsetAt(n.start),c[0].offsetAt(n.end),c[2],bR.isSemanticTokensEnabled);u&&(yield{start:c[1].positionAt(u.start),end:c[1].positionAt(u.end)})},(c,u,d)=>{if(!s?.isCancellationRequested)return c[1].provideDocumentSemanticTokens?.(u,d,r,s)},(c,u)=>u?c.map(d=>{let f=(0,kK.getSourceRange)(u,{start:{line:d[0],character:d[1]},end:{line:d[0],character:d[1]+d[2]}},bR.isSemanticTokensEnabled);if(f)return[f.start.line,f.start.character,f.end.character-f.start.character,d[3],d[4]]}).filter(d=>!!d):c,c=>c.flat());if(l)return CEe(l)}}function CEe(t){let e=new wEe.SemanticTokensBuilder,n=t.sort((r,i)=>r[0]-i[0]===0?r[1]-i[1]:r[0]-i[0]);for(let r of n)e.push(...r);return e.build()}});var MK=I(vR=>{"use strict";Object.defineProperty(vR,"__esModule",{value:!0});vR.register=FEe;var FK=Nt(),xEe=Dt(),kEe=Rp(),EK=fn(),AEe=li();function FEe(t){return(e,n=xEe.NoneCancellationToken)=>(0,EK.documentFeatureWorker)(t,e,r=>r[2].mappings.some(i=>(0,FK.isSymbolsEnabled)(i.data)),(r,i)=>{if(!n.isCancellationRequested)return r[1].provideDocumentSymbols?.(i,n)},(r,i)=>i?r.map(s=>(0,AEe.transformDocumentSymbol)(s,o=>(0,EK.getSourceRange)(i,o,FK.isSymbolsEnabled))).filter(s=>!!s):r,r=>{for(let i=0;i<r.length;i++)for(let s=0;s<r.length;s++)i!==s&&(r[i]=r[i].filter(o=>{for(let a of TK(r[s]))if((0,kEe.isInsideRange)(a.range,o.range))return a.children??=[],a.children.push(o),!1;return!0}));return r.flat()})}function*TK(t){for(let e of t)e.children&&(yield*TK(e.children)),yield e}});var RK=I(wR=>{"use strict";Object.defineProperty(wR,"__esModule",{value:!0});wR.register=REe;var EEe=Nt(),TEe=rt(),MEe=Dt(),DEe=nl(),DK=fn();function REe(t){return(e,n=MEe.NoneCancellationToken)=>(0,DK.documentFeatureWorker)(t,e,()=>!0,async(r,i)=>{if(!n.isCancellationRequested)return await r[1].provideFileReferences?.(i,n)??[]},r=>r.map(i=>{let s=t.decodeEmbeddedDocumentUri(TEe.URI.parse(i.uri)),o=s&&t.language.scripts.get(s[0]),a=s&&o?.generated?.embeddedCodes.get(s[1]);if(!o||!a)return i;let l=t.documents.get(t.encodeEmbeddedDocumentUri(o.id,a.id),a.languageId,a.snapshot);for(let[c,u]of t.language.maps.forEach(a)){let d=t.documents.get(c.id,c.languageId,c.snapshot),f=[d,l,u],m=(0,DK.getSourceRange)(f,i.range,EEe.isReferencesEnabled);if(m)return i.uri=d.uri,i.range=m,i}}).filter(i=>!!i),r=>DEe.withLocations(r.flat()))}});var IK=I(_R=>{"use strict";Object.defineProperty(_R,"__esModule",{value:!0});_R.register=NEe;var IEe=Dt(),PEe=nl(),OEe=li();function NEe(t){return async(e,n,r=IEe.NoneCancellationToken)=>{for(let i of t.plugins){if(t.disabledServicePlugins.has(i[1]))continue;if(r.isCancellationRequested)break;if(!i[1].provideFileRenameEdits)continue;let s=await i[1].provideFileRenameEdits(e,n,r);if(s){let o=(0,OEe.transformWorkspaceEdit)(s,t,"fileName");return o?.documentChanges&&(o.documentChanges=PEe.withDocumentChanges(o.documentChanges)),o}}}}});var NK=I(SR=>{"use strict";Object.defineProperty(SR,"__esModule",{value:!0});SR.register=$Ee;var PK=Nt(),LEe=Dt(),OK=fn(),qEe=li();function $Ee(t){return(e,n=LEe.NoneCancellationToken)=>(0,OK.documentFeatureWorker)(t,e,r=>r[2].mappings.some(i=>(0,PK.isFoldingRangesEnabled)(i.data)),(r,i)=>{if(!n.isCancellationRequested)return r[1].provideFoldingRanges?.(i,n)},(r,i)=>i?(0,qEe.transformFoldingRanges)(r,s=>(0,OK.getSourceRange)(i,s,PK.isFoldingRangesEnabled)):r,r=>r.flat())}});var $K=I(xR=>{"use strict";Object.defineProperty(xR,"__esModule",{value:!0});xR.register=WEe;var LK=Nt(),zEe=Dt(),qK=Rp(),CR=fn(),Bb=li(),jEe=L_();function WEe(t){return async(n,r,i=zEe.NoneCancellationToken)=>{let s=await(0,CR.languageFeatureWorker)(t,n,()=>r,a=>(0,CR.getGeneratedPositions)(a,r,LK.isHoverEnabled),(a,l,c)=>{if(!i.isCancellationRequested)return a[1].provideHover?.(l,c,i)},(a,l)=>(!l||!a.range||(a.range=(0,CR.getSourceRange)(l,a.range,LK.isHoverEnabled)),a),a=>({contents:{kind:"markdown",value:a.map(e).flat().join(`
|
|
38
38
|
|
|
39
39
|
---
|
|
@@ -770,11 +770,11 @@ ${"-".repeat(n.pos)}^`),n}}function jje(t,e){if(!t.attributes)return;let n=[],r=
|
|
|
770
770
|
|}`,"!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'},k8e={"!!!":"{doctype html}"},A8e={lang:"en",locale:"en-US",charset:"UTF-8",indentation:" ",newline:`
|
|
771
771
|
`},F8e={markup:"html",stylesheet:"css"},E8e={inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":" ","output.baseIndent":"","output.newline":`
|
|
772
772
|
`,"output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(t,e)=>e,"output.text":t=>t,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":`
|
|
773
|
-
<!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0,"stylesheet.strictMatch":!1},Mse={type:"markup",syntax:"html",variables:A8e,snippets:{},options:E8e},kie={markup:{snippets:lx(S8e)},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:lx(x8e),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0,"markup.attributes":{class:"className","class*":"styleName",for:"htmlFor"},"markup.valuePrefix":{"class*":"styles"}}},vue:{options:{"markup.attributes":{"class*":":class"}}},svelte:{options:{"jsx.enabled":!0}},pug:{snippets:lx(k8e)},stylesheet:{snippets:lx(C8e)},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function lx(t){let e={};return Object.keys(t).forEach(n=>{for(let r of n.split("|"))e[r]=t[n]}),e}function Dse(t={},e={}){let n=t.type||"markup",r=t.syntax||F8e[n];return Object.assign(Object.assign(Object.assign({},Mse),t),{type:n,syntax:r,variables:NL(n,r,"variables",t,e),snippets:NL(n,r,"snippets",t,e),options:NL(n,r,"options",t,e)})}function NL(t,e,n,r,i={}){let s=kie[t],o=i[t],a=kie[e],l=i[e];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mse[n]),s&&s[n]),a&&a[n]),o&&o[n]),l&&l[n]),r[n])}function Rse(t,e=0){return{text:t,start:e,pos:t.length}}function Wc(t){return t.pos===t.start}function Sv(t,e=0){return t.text.charCodeAt(t.pos-1+e)}function Aie(t){if(!Wc(t))return t.text.charCodeAt(--t.pos)}function io(t,e){if(Wc(t))return!1;let n=typeof e=="function"?e(Sv(t)):e===Sv(t);return n&&t.pos--,!!n}function Ise(t,e){let n=t.pos;for(;io(t,e););return t.pos<n}var Cv;(function(t){t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Escape=92]="Escape"})(Cv||(Cv={}));function r5(t){return t===Cv.SingleQuote||t===Cv.DoubleQuote}function T8e(t){let e=t.pos,n=Aie(t);if(r5(n)){for(;!Wc(t);)if(Aie(t)===n&&Sv(t)!==Cv.Escape)return!0}return t.pos=e,!1}var kn;(function(t){t[t.SquareL=91]="SquareL",t[t.SquareR=93]="SquareR",t[t.RoundL=40]="RoundL",t[t.RoundR=41]="RoundR",t[t.CurlyL=123]="CurlyL",t[t.CurlyR=125]="CurlyR"})(kn||(kn={}));var Pse={[kn.SquareL]:kn.SquareR,[kn.RoundL]:kn.RoundR,[kn.CurlyL]:kn.CurlyR},Zi;(function(t){t[t.Tab=9]="Tab",t[t.Space=32]="Space",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Colon=58]="Colon",t[t.Equals=61]="Equals",t[t.AngleLeft=60]="AngleLeft",t[t.AngleRight=62]="AngleRight"})(Zi||(Zi={}));function M8e(t){let e=t.pos;if(!io(t,Zi.AngleRight))return!1;let n=!1;for(io(t,Zi.Slash);!Wc(t);){if(Ise(t,UL),mx(t)){if(io(t,Zi.Slash)){n=io(t,Zi.AngleLeft);break}else if(io(t,Zi.AngleLeft)){n=!0;break}else{if(io(t,UL))continue;if(io(t,Zi.Equals)){if(mx(t))continue;break}else if(Ose(t)){n=!0;break}}break}if(!D8e(t))break}return t.pos=e,n}function D8e(t){return R8e(t)||Ose(t)}function R8e(t){let e=t.pos;return T8e(t)&&io(t,Zi.Equals)&&mx(t)?!0:(t.pos=e,!1)}function Ose(t){let e=t.pos,n=[];for(;!Wc(t);){let r=Sv(t);if(q8e(r))n.push(r);else if(L8e(r)){if(n.pop()!==Pse[r])break}else if(!N8e(r))break;t.pos--}return e!==t.pos&&io(t,Zi.Equals)&&mx(t)?!0:(t.pos=e,!1)}function mx(t){return Ise(t,I8e)}function I8e(t){return t===Zi.Colon||t===Zi.Dash||P8e(t)||O8e(t)}function P8e(t){return t&=-33,t>=65&&t<=90}function O8e(t){return t>47&&t<58}function UL(t){return t===Zi.Space||t===Zi.Tab}function N8e(t){return!isNaN(t)&&t!==Zi.Equals&&!UL(t)&&!r5(t)}function L8e(t){return t===kn.CurlyL||t===kn.RoundL||t===kn.SquareL}function q8e(t){return t===kn.CurlyR||t===kn.RoundR||t===kn.SquareR}var Nse=t=>t.charCodeAt(0),$8e="#.*:$-_!@%^+>/".split("").map(Nse),z8e={type:"markup",lookAhead:!0,prefix:""};function j8e(t,e=t.length,n={}){let r=Object.assign(Object.assign({},z8e),n);e=Math.min(t.length,Math.max(0,e??t.length)),r.lookAhead&&(e=W8e(t,e,r));let i,s=U8e(t,e,r.prefix||"");if(s===-1)return;let o=Rse(t,s);o.pos=e;let a=[];for(;!Wc(o);){if(i=Sv(o),a.includes(kn.CurlyR)){if(i===kn.CurlyR){a.push(i),o.pos--;continue}if(i!==kn.CurlyL){o.pos--;continue}}if(Lse(i,r.type))a.push(i);else if(V8e(i,r.type)){if(a.pop()!==Pse[i])break}else if(a.includes(kn.SquareR)||a.includes(kn.CurlyR)){o.pos--;continue}else if(M8e(o)||!H8e(i))break;o.pos--}if(!a.length&&o.pos!==e){let l=t.slice(o.pos,e).replace(/^[*+>^]+/,"");return{abbreviation:l,location:e-l.length,start:n.prefix?s-n.prefix.length:e-l.length,end:e}}}function W8e(t,e,n){for(r5(t.charCodeAt(e))&&e++;Lse(t.charCodeAt(e),n.type);)e++;return e}function U8e(t,e,n){if(!n)return 0;let r=Rse(t),i=n.split("").map(Nse);r.pos=e;let s;for(;!Wc(r);)if(!(Fie(r,kn.SquareR,kn.SquareL)||Fie(r,kn.CurlyR,kn.CurlyL))){if(s=r.pos,B8e(r,i))return s;r.pos--}return-1}function Fie(t,e,n){let r=t.pos;if(io(t,e))for(;!Wc(t);){if(io(t,n))return!0;t.pos--}return t.pos=r,!1}function B8e(t,e){let n=t.pos,r=!1;for(let i=e.length-1;i>=0&&!Wc(t)&&io(t,e[i]);i--)r=i===0;return r||(t.pos=n),r}function H8e(t){return t>64&&t<91||t>96&&t<123||t>47&&t<58||$8e.includes(t)}function V8e(t,e){return t===kn.RoundL||e==="markup"&&(t===kn.SquareL||t===kn.CurlyL)}function Lse(t,e){return t===kn.RoundR||e==="markup"&&(t===kn.SquareR||t===kn.CurlyR)}function K8e(t,e){let n=Dse(e);return n.type==="stylesheet"?$se(t,n):qse(t,n)}function qse(t,e){return yse(bse(t,e),e)}function $se(t,e){return _se(xse(t,e),e)}es.CSSAbbreviationScope=_v;es.default=K8e;es.extract=j8e;es.markup=qse;es.markupAbbreviation=JL;es.parseMarkup=bse;es.parseStylesheet=xse;es.parseStylesheetSnippets=kse;es.resolveConfig=Dse;es.stringifyMarkup=yse;es.stringifyStylesheet=_se;es.stylesheet=$se;es.stylesheetAbbreviation=ZL});var jse=I(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});xv.syntaxes=void 0;xv.parseSnippets=G8e;function G8e(t){let e={};return Object.keys(t).forEach(n=>{for(let r of n.split("|"))e[r]=t[n]}),e}xv.syntaxes={markup:["html","xml","xsl","jsx","js","pug","slim","haml","vue"],stylesheet:["css","sass","scss","less","sss","stylus"]}});var Zse=I(An=>{"use strict";var J8e=An&&An.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Y8e=An&&An.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Hse=An&&An.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&J8e(e,t,n);return Y8e(e,t),e},Q8e=An&&An.__awaiter||function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((r=r.apply(t,e||[])).next())})};Object.defineProperty(An,"__esModule",{value:!0});An.emmetSnippetField=An.FileType=void 0;An.doComplete=iUe;An.isStyleSheet=Da;An.getSyntaxType=u5;An.getDefaultSyntax=d5;An.getDefaultSnippets=Kse;An.extractAbbreviation=Jse;An.extractAbbreviationFromText=lUe;An.isAbbreviationValid=Yse;An.getExpandOptions=Qse;An.parseAbbreviation=dUe;An.expandAbbreviation=hUe;An.updateExtensionsPath=gUe;An.getEmmetMode=Xse;var Wse=Hse((Yre(),or(Jre))),X8e=require("util"),Ma=yr(),Z8e=rt(),c5=Qre(),rf=tie();Object.defineProperty(An,"FileType",{enumerable:!0,get:function(){return rf.FileType}});var so=Hse(zse()),kv=jse(),Vm;try{Vm=require("vscode").l10n}catch{Vm={t:e=>e}}var xx=new Map,a5,Hm=new Map,eUe=/^[a-z,A-Z,!,(,[,#,\.\{]/,tUe=/^[a-z,A-Z,!,(,[,#,\.]/,nUe=/^-?[a-z,A-Z,!,@,#]/,Use=/[a-z,A-Z\.]/,Av=[...c5.htmlData.tags,"lorem"],_x="bem",i5="|",Sx="t",Cx="c",rUe=3;function iUe(t,e,n,r){var i,s;if(r.showExpandedAbbreviation==="never"||!Xse(n,r.excludeLanguages))return;let o=Da(n);if(!o){if(!xx.has(n)){let v=Object.assign(Object.assign({},Kse(n)),sf[n]);xx.set(n,Object.keys(v))}a5=(i=xx.get(n))!==null&&i!==void 0?i:[]}let l=Jse(t,e,{lookAhead:!o,type:o?"stylesheet":"markup"});if(!l)return;let{abbreviationRange:c,abbreviation:u,filter:d}=l,f=Vse(t,e).substr(0,e.character);if(sUe(f)===u&&f.endsWith(`<${u}`)&&kv.syntaxes.markup.includes(n))return;let b=Qse(n,r,d),g="",w,_=[],S=(v,T)=>{if(Yse(v,u)){try{g=(0,so.default)(T,b),o&&"!important".startsWith(T)&&(g="!important")}catch{}!g||cUe(v,T,g,b.options)||(w=Ma.CompletionItem.create(T),w.textEdit=Ma.TextEdit.replace(c,kx(Ax(g))),w.documentation=l5(g),w.insertTextFormat=Ma.InsertTextFormat.Snippet,w.detail=Vm.t("Emmet Abbreviation"),w.label=u,w.label+=d?"|"+d.replace(",","|"):"",_=[w])}};if(Da(n)){if(S(n,u),u.length>4&&c5.cssData.properties.find(v=>v.startsWith(u)))return Ma.CompletionList.create([],!0);if(w&&g.length){w.textEdit=Ma.TextEdit.replace(c,kx(Ax(g))),w.documentation=l5(g),w.label=oUe(g),w.filterText=u;let v=Hm.has(n)?Hm.get(n):Hm.get("css");if(_=s5(v??[],u,u,c,b,"Emmet Custom Snippet",!1),!_.find(T=>{var A,R,k;return((A=T.textEdit)===null||A===void 0?void 0:A.newText)&&((R=T.textEdit)===null||R===void 0?void 0:R.newText)===((k=w?.textEdit)===null||k===void 0?void 0:k.newText)})){let T=new RegExp(".*"+u.split("").map(A=>A==="$"||A==="+"?"\\"+A:A).join(".*")+".*","i");(/\d/.test(u)||T.test(w.label))&&_.push(w)}}}else{S(n,u);let v=u,T=u.match(/(>|\+)([\w:-]+)$/);if(T&&T.length===3&&(v=T[2]),n!=="xml"){let A=s5(Av,v,u,c,b,"Emmet Abbreviation");_=_.concat(A)}if(r.showAbbreviationSuggestions===!0){let A=s5(a5.filter(R=>!Av.includes(R)),v,u,c,b,"Emmet Abbreviation");w&&A.length>0&&v!==u&&(w.sortText="0"+w.label,A.forEach(R=>{R.filterText=u,R.sortText="9"+u})),_=_.concat(A)}n==="html"&&_.length>=2&&u.includes(":")&&((s=w?.textEdit)===null||s===void 0?void 0:s.newText)===`<${u}>\${0}</${u}>`&&(_=_.filter(A=>A.label!==u))}return r.showSuggestionsAsSnippets===!0&&_.forEach(v=>v.kind=Ma.CompletionItemKind.Snippet),_.length?Ma.CompletionList.create(_,!0):void 0}function s5(t,e,n,r,i,s,o=!0){if(!e||!t)return[];let a=[];return t.forEach(l=>{if(!l.startsWith(e.toLowerCase())||o&&l===e.toLowerCase())return;let c=n+l.substr(e.length),u;try{u=(0,so.default)(c,i)}catch{}if(!u)return;let d=Ma.CompletionItem.create(e+l.substr(e.length));d.documentation=l5(u),d.detail=s,d.textEdit=Ma.TextEdit.replace(r,kx(Ax(u))),d.insertTextFormat=Ma.InsertTextFormat.Snippet,a.push(d)}),a}function sUe(t){if(t){let e=t.match(/[\w,:,-,\.]*$/);if(e)return e[0]}}function l5(t){return t.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function oUe(t){return t.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function kx(t){return t&&t.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3")}function Ax(t){if(!t||!t.trim())return t;let e=-1,n=[],r=!1,i=!1,s=0,o=t.length;try{for(;s<o&&!r;){if(t[s++]!="$"||t[s++]!="{")continue;let a=-1,l=-1;for(;s<o&&/\d/.test(t[s]);)a=a<0?s:a,l=s+1,s++;if(a===-1||l===-1||s>=o||t[s]!="}"&&t[s]!=":")continue;let c=t.substring(a,l);if(r=c==="0",r)break;let u=!1;if(t[s++]==":")for(;s<o;){if(t[s]=="}"){u=!0;break}s++}Number(c)>Number(e)?(e=Number(c),n=[{numberStart:a,numberEnd:l}],i=!u):Number(c)===e&&n.push({numberStart:a,numberEnd:l})}}catch{}if(i&&!r)for(let a=0;a<n.length;a++){let l=n[a].numberStart,c=n[a].numberEnd;t=t.substr(0,l)+"0"+t.substr(c)}return t}function Vse(t,e){let n=t.offsetAt(e),r=t.getText(),i=0,s=r.length;for(let o=n-1;o>=0;o--)if(r[o]===`
|
|
773
|
+
<!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0,"stylesheet.strictMatch":!1},Mse={type:"markup",syntax:"html",variables:A8e,snippets:{},options:E8e},kie={markup:{snippets:lx(S8e)},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:lx(x8e),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0,"markup.attributes":{class:"className","class*":"styleName",for:"htmlFor"},"markup.valuePrefix":{"class*":"styles"}}},vue:{options:{"markup.attributes":{"class*":":class"}}},svelte:{options:{"jsx.enabled":!0}},pug:{snippets:lx(k8e)},stylesheet:{snippets:lx(C8e)},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function lx(t){let e={};return Object.keys(t).forEach(n=>{for(let r of n.split("|"))e[r]=t[n]}),e}function Dse(t={},e={}){let n=t.type||"markup",r=t.syntax||F8e[n];return Object.assign(Object.assign(Object.assign({},Mse),t),{type:n,syntax:r,variables:NL(n,r,"variables",t,e),snippets:NL(n,r,"snippets",t,e),options:NL(n,r,"options",t,e)})}function NL(t,e,n,r,i={}){let s=kie[t],o=i[t],a=kie[e],l=i[e];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mse[n]),s&&s[n]),a&&a[n]),o&&o[n]),l&&l[n]),r[n])}function Rse(t,e=0){return{text:t,start:e,pos:t.length}}function Wc(t){return t.pos===t.start}function Sv(t,e=0){return t.text.charCodeAt(t.pos-1+e)}function Aie(t){if(!Wc(t))return t.text.charCodeAt(--t.pos)}function io(t,e){if(Wc(t))return!1;let n=typeof e=="function"?e(Sv(t)):e===Sv(t);return n&&t.pos--,!!n}function Ise(t,e){let n=t.pos;for(;io(t,e););return t.pos<n}var Cv;(function(t){t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Escape=92]="Escape"})(Cv||(Cv={}));function r5(t){return t===Cv.SingleQuote||t===Cv.DoubleQuote}function T8e(t){let e=t.pos,n=Aie(t);if(r5(n)){for(;!Wc(t);)if(Aie(t)===n&&Sv(t)!==Cv.Escape)return!0}return t.pos=e,!1}var kn;(function(t){t[t.SquareL=91]="SquareL",t[t.SquareR=93]="SquareR",t[t.RoundL=40]="RoundL",t[t.RoundR=41]="RoundR",t[t.CurlyL=123]="CurlyL",t[t.CurlyR=125]="CurlyR"})(kn||(kn={}));var Pse={[kn.SquareL]:kn.SquareR,[kn.RoundL]:kn.RoundR,[kn.CurlyL]:kn.CurlyR},Zi;(function(t){t[t.Tab=9]="Tab",t[t.Space=32]="Space",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Colon=58]="Colon",t[t.Equals=61]="Equals",t[t.AngleLeft=60]="AngleLeft",t[t.AngleRight=62]="AngleRight"})(Zi||(Zi={}));function M8e(t){let e=t.pos;if(!io(t,Zi.AngleRight))return!1;let n=!1;for(io(t,Zi.Slash);!Wc(t);){if(Ise(t,UL),mx(t)){if(io(t,Zi.Slash)){n=io(t,Zi.AngleLeft);break}else if(io(t,Zi.AngleLeft)){n=!0;break}else{if(io(t,UL))continue;if(io(t,Zi.Equals)){if(mx(t))continue;break}else if(Ose(t)){n=!0;break}}break}if(!D8e(t))break}return t.pos=e,n}function D8e(t){return R8e(t)||Ose(t)}function R8e(t){let e=t.pos;return T8e(t)&&io(t,Zi.Equals)&&mx(t)?!0:(t.pos=e,!1)}function Ose(t){let e=t.pos,n=[];for(;!Wc(t);){let r=Sv(t);if(q8e(r))n.push(r);else if(L8e(r)){if(n.pop()!==Pse[r])break}else if(!N8e(r))break;t.pos--}return e!==t.pos&&io(t,Zi.Equals)&&mx(t)?!0:(t.pos=e,!1)}function mx(t){return Ise(t,I8e)}function I8e(t){return t===Zi.Colon||t===Zi.Dash||P8e(t)||O8e(t)}function P8e(t){return t&=-33,t>=65&&t<=90}function O8e(t){return t>47&&t<58}function UL(t){return t===Zi.Space||t===Zi.Tab}function N8e(t){return!isNaN(t)&&t!==Zi.Equals&&!UL(t)&&!r5(t)}function L8e(t){return t===kn.CurlyL||t===kn.RoundL||t===kn.SquareL}function q8e(t){return t===kn.CurlyR||t===kn.RoundR||t===kn.SquareR}var Nse=t=>t.charCodeAt(0),$8e="#.*:$-_!@%^+>/".split("").map(Nse),z8e={type:"markup",lookAhead:!0,prefix:""};function j8e(t,e=t.length,n={}){let r=Object.assign(Object.assign({},z8e),n);e=Math.min(t.length,Math.max(0,e??t.length)),r.lookAhead&&(e=W8e(t,e,r));let i,s=U8e(t,e,r.prefix||"");if(s===-1)return;let o=Rse(t,s);o.pos=e;let a=[];for(;!Wc(o);){if(i=Sv(o),a.includes(kn.CurlyR)){if(i===kn.CurlyR){a.push(i),o.pos--;continue}if(i!==kn.CurlyL){o.pos--;continue}}if(Lse(i,r.type))a.push(i);else if(V8e(i,r.type)){if(a.pop()!==Pse[i])break}else if(a.includes(kn.SquareR)||a.includes(kn.CurlyR)){o.pos--;continue}else if(M8e(o)||!H8e(i))break;o.pos--}if(!a.length&&o.pos!==e){let l=t.slice(o.pos,e).replace(/^[*+>^]+/,"");return{abbreviation:l,location:e-l.length,start:n.prefix?s-n.prefix.length:e-l.length,end:e}}}function W8e(t,e,n){for(r5(t.charCodeAt(e))&&e++;Lse(t.charCodeAt(e),n.type);)e++;return e}function U8e(t,e,n){if(!n)return 0;let r=Rse(t),i=n.split("").map(Nse);r.pos=e;let s;for(;!Wc(r);)if(!(Fie(r,kn.SquareR,kn.SquareL)||Fie(r,kn.CurlyR,kn.CurlyL))){if(s=r.pos,B8e(r,i))return s;r.pos--}return-1}function Fie(t,e,n){let r=t.pos;if(io(t,e))for(;!Wc(t);){if(io(t,n))return!0;t.pos--}return t.pos=r,!1}function B8e(t,e){let n=t.pos,r=!1;for(let i=e.length-1;i>=0&&!Wc(t)&&io(t,e[i]);i--)r=i===0;return r||(t.pos=n),r}function H8e(t){return t>64&&t<91||t>96&&t<123||t>47&&t<58||$8e.includes(t)}function V8e(t,e){return t===kn.RoundL||e==="markup"&&(t===kn.SquareL||t===kn.CurlyL)}function Lse(t,e){return t===kn.RoundR||e==="markup"&&(t===kn.SquareR||t===kn.CurlyR)}function K8e(t,e){let n=Dse(e);return n.type==="stylesheet"?$se(t,n):qse(t,n)}function qse(t,e){return yse(bse(t,e),e)}function $se(t,e){return _se(xse(t,e),e)}es.CSSAbbreviationScope=_v;es.default=K8e;es.extract=j8e;es.markup=qse;es.markupAbbreviation=JL;es.parseMarkup=bse;es.parseStylesheet=xse;es.parseStylesheetSnippets=kse;es.resolveConfig=Dse;es.stringifyMarkup=yse;es.stringifyStylesheet=_se;es.stylesheet=$se;es.stylesheetAbbreviation=ZL});var jse=I(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});xv.syntaxes=void 0;xv.parseSnippets=G8e;function G8e(t){let e={};return Object.keys(t).forEach(n=>{for(let r of n.split("|"))e[r]=t[n]}),e}xv.syntaxes={markup:["html","xml","xsl","jsx","js","pug","slim","haml","vue"],stylesheet:["css","sass","scss","less","sss","stylus"]}});var Zse=I(An=>{"use strict";var J8e=An&&An.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Y8e=An&&An.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Hse=An&&An.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&J8e(e,t,n);return Y8e(e,t),e},Q8e=An&&An.__awaiter||function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((r=r.apply(t,e||[])).next())})};Object.defineProperty(An,"__esModule",{value:!0});An.emmetSnippetField=An.FileType=void 0;An.doComplete=i7e;An.isStyleSheet=Da;An.getSyntaxType=u5;An.getDefaultSyntax=d5;An.getDefaultSnippets=Kse;An.extractAbbreviation=Jse;An.extractAbbreviationFromText=l7e;An.isAbbreviationValid=Yse;An.getExpandOptions=Qse;An.parseAbbreviation=d7e;An.expandAbbreviation=h7e;An.updateExtensionsPath=g7e;An.getEmmetMode=Xse;var Wse=Hse((Yre(),or(Jre))),X8e=require("util"),Ma=yr(),Z8e=rt(),c5=Qre(),rf=tie();Object.defineProperty(An,"FileType",{enumerable:!0,get:function(){return rf.FileType}});var so=Hse(zse()),kv=jse(),Vm;try{Vm=require("vscode").l10n}catch{Vm={t:e=>e}}var xx=new Map,a5,Hm=new Map,e7e=/^[a-z,A-Z,!,(,[,#,\.\{]/,t7e=/^[a-z,A-Z,!,(,[,#,\.]/,n7e=/^-?[a-z,A-Z,!,@,#]/,Use=/[a-z,A-Z\.]/,Av=[...c5.htmlData.tags,"lorem"],_x="bem",i5="|",Sx="t",Cx="c",r7e=3;function i7e(t,e,n,r){var i,s;if(r.showExpandedAbbreviation==="never"||!Xse(n,r.excludeLanguages))return;let o=Da(n);if(!o){if(!xx.has(n)){let v=Object.assign(Object.assign({},Kse(n)),sf[n]);xx.set(n,Object.keys(v))}a5=(i=xx.get(n))!==null&&i!==void 0?i:[]}let l=Jse(t,e,{lookAhead:!o,type:o?"stylesheet":"markup"});if(!l)return;let{abbreviationRange:c,abbreviation:u,filter:d}=l,f=Vse(t,e).substr(0,e.character);if(s7e(f)===u&&f.endsWith(`<${u}`)&&kv.syntaxes.markup.includes(n))return;let b=Qse(n,r,d),g="",w,_=[],S=(v,T)=>{if(Yse(v,u)){try{g=(0,so.default)(T,b),o&&"!important".startsWith(T)&&(g="!important")}catch{}!g||c7e(v,T,g,b.options)||(w=Ma.CompletionItem.create(T),w.textEdit=Ma.TextEdit.replace(c,kx(Ax(g))),w.documentation=l5(g),w.insertTextFormat=Ma.InsertTextFormat.Snippet,w.detail=Vm.t("Emmet Abbreviation"),w.label=u,w.label+=d?"|"+d.replace(",","|"):"",_=[w])}};if(Da(n)){if(S(n,u),u.length>4&&c5.cssData.properties.find(v=>v.startsWith(u)))return Ma.CompletionList.create([],!0);if(w&&g.length){w.textEdit=Ma.TextEdit.replace(c,kx(Ax(g))),w.documentation=l5(g),w.label=o7e(g),w.filterText=u;let v=Hm.has(n)?Hm.get(n):Hm.get("css");if(_=s5(v??[],u,u,c,b,"Emmet Custom Snippet",!1),!_.find(T=>{var A,R,k;return((A=T.textEdit)===null||A===void 0?void 0:A.newText)&&((R=T.textEdit)===null||R===void 0?void 0:R.newText)===((k=w?.textEdit)===null||k===void 0?void 0:k.newText)})){let T=new RegExp(".*"+u.split("").map(A=>A==="$"||A==="+"?"\\"+A:A).join(".*")+".*","i");(/\d/.test(u)||T.test(w.label))&&_.push(w)}}}else{S(n,u);let v=u,T=u.match(/(>|\+)([\w:-]+)$/);if(T&&T.length===3&&(v=T[2]),n!=="xml"){let A=s5(Av,v,u,c,b,"Emmet Abbreviation");_=_.concat(A)}if(r.showAbbreviationSuggestions===!0){let A=s5(a5.filter(R=>!Av.includes(R)),v,u,c,b,"Emmet Abbreviation");w&&A.length>0&&v!==u&&(w.sortText="0"+w.label,A.forEach(R=>{R.filterText=u,R.sortText="9"+u})),_=_.concat(A)}n==="html"&&_.length>=2&&u.includes(":")&&((s=w?.textEdit)===null||s===void 0?void 0:s.newText)===`<${u}>\${0}</${u}>`&&(_=_.filter(A=>A.label!==u))}return r.showSuggestionsAsSnippets===!0&&_.forEach(v=>v.kind=Ma.CompletionItemKind.Snippet),_.length?Ma.CompletionList.create(_,!0):void 0}function s5(t,e,n,r,i,s,o=!0){if(!e||!t)return[];let a=[];return t.forEach(l=>{if(!l.startsWith(e.toLowerCase())||o&&l===e.toLowerCase())return;let c=n+l.substr(e.length),u;try{u=(0,so.default)(c,i)}catch{}if(!u)return;let d=Ma.CompletionItem.create(e+l.substr(e.length));d.documentation=l5(u),d.detail=s,d.textEdit=Ma.TextEdit.replace(r,kx(Ax(u))),d.insertTextFormat=Ma.InsertTextFormat.Snippet,a.push(d)}),a}function s7e(t){if(t){let e=t.match(/[\w,:,-,\.]*$/);if(e)return e[0]}}function l5(t){return t.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function o7e(t){return t.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function kx(t){return t&&t.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3")}function Ax(t){if(!t||!t.trim())return t;let e=-1,n=[],r=!1,i=!1,s=0,o=t.length;try{for(;s<o&&!r;){if(t[s++]!="$"||t[s++]!="{")continue;let a=-1,l=-1;for(;s<o&&/\d/.test(t[s]);)a=a<0?s:a,l=s+1,s++;if(a===-1||l===-1||s>=o||t[s]!="}"&&t[s]!=":")continue;let c=t.substring(a,l);if(r=c==="0",r)break;let u=!1;if(t[s++]==":")for(;s<o;){if(t[s]=="}"){u=!0;break}s++}Number(c)>Number(e)?(e=Number(c),n=[{numberStart:a,numberEnd:l}],i=!u):Number(c)===e&&n.push({numberStart:a,numberEnd:l})}}catch{}if(i&&!r)for(let a=0;a<n.length;a++){let l=n[a].numberStart,c=n[a].numberEnd;t=t.substr(0,l)+"0"+t.substr(c)}return t}function Vse(t,e){let n=t.offsetAt(e),r=t.getText(),i=0,s=r.length;for(let o=n-1;o>=0;o--)if(r[o]===`
|
|
774
774
|
`){i=o+1;break}for(let o=n;o<r.length;o++)if(r[o]===`
|
|
775
|
-
`){s=o;break}return r.substring(i,s)}var sf={},Fv={},Fx={},
|
|
776
|
-
<!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":t==="jsx","stylesheet.shortHex":!0,"stylesheet.between":t==="stylus"?" ":": ","stylesheet.after":t==="sass"||t==="stylus"?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3},k={"output.tagCase":g.tagCase,"output.attributeCase":g.attributeCase,"output.attributeQuotes":g.attributeQuotes,"output.format":(s=g.format)!==null&&s!==void 0?s:!0,"output.formatSkip":m["format.noIndentTags"],"output.formatForce":m["format.forceIndentationForTags"],"output.inlineBreak":(o=g.inlineBreak)!==null&&o!==void 0?o:m["output.inlineBreak"],"output.compactBoolean":(a=g.compactBooleanAttributes)!==null&&a!==void 0?a:m["profile.allowCompactBoolean"],"output.reverseAttributes":m["output.reverseAttributes"],"output.selfClosingStyle":(c=(l=g.selfClosingStyle)!==null&&l!==void 0?l:m["output.selfClosingStyle"])!==null&&c!==void 0?c:uUe(t),"output.field":An.emmetSnippetField,"comment.enabled":v,"comment.trigger":m["filter.commentTrigger"],"comment.before":m["filter.commentBefore"],"comment.after":m["filter.commentAfter"],"bem.enabled":S,"bem.element":(u=m["bem.elementSeparator"])!==null&&u!==void 0?u:"__","bem.modifier":(d=m["bem.modifierSeparator"])!==null&&d!==void 0?d:"_","jsx.enabled":t==="jsx","stylesheet.shortHex":m["css.color.short"],"stylesheet.between":m[`${b}.valueSeparator`],"stylesheet.after":m[`${b}.propertyEnd`],"stylesheet.intUnit":m["css.intUnit"],"stylesheet.floatUnit":m["css.floatUnit"],"stylesheet.unitAliases":A,"stylesheet.fuzzySearchMinScore":m["css.fuzzySearchMinScore"]};if(t==="jsx"){let $={class:"className","class*":"styleName",for:"htmlFor"},F={"class*":"styles"};g["markup.attributes"]&&(k["markup.attributes"]=Object.assign(Object.assign({},$),g["markup.attributes"])),g["markup.valuePrefix"]&&(k["markup.valuePrefix"]=Object.assign(Object.assign({},F),g["markup.valuePrefix"]))}if(t==="vue"){let $={"class*":":class"},F={"class*":"$style"};g["markup.attributes"]&&(k["markup.attributes"]=Object.assign(Object.assign({},$),g["markup.attributes"])),g["markup.valuePrefix"]&&(k["markup.valuePrefix"]=Object.assign(Object.assign({},F),g["markup.valuePrefix"]))}let y={};[...Object.keys(R),...Object.keys(k)].forEach($=>{var F;let P=$;y[P]=(F=k[P])!==null&&F!==void 0?F:R[P]});let C=Object.assign(Object.assign({},R["stylesheet.unitAliases"]),k["stylesheet.unitAliases"]);y["stylesheet.unitAliases"]=C;let M=u5(t),E=pUe(e.variables),D=d5(t),N=M==="stylesheet"?(f=sf[t])!==null&&f!==void 0?f:sf[D]:sf[t];return{type:M,options:y,variables:E,snippets:N,syntax:t,text:void 0,maxRepeat:1e3}}function uUe(t){switch(t){case"xhtml":return"xhtml";case"xml":return"xml";case"xsl":return"xml";case"jsx":return"xhtml";default:return"html"}}function dUe(t,e){let n=(0,so.resolveConfig)(e);return e.type==="stylesheet"?(0,so.parseStylesheet)(t,n):(0,so.parseMarkup)(t,n)}function hUe(t,e){let n,r=(0,so.resolveConfig)(e);return e.type==="stylesheet"?typeof t=="string"?n=(0,so.default)(t,r):n=(0,so.stringifyStylesheet)(t,r):typeof t=="string"?n=(0,so.default)(t,r):n=(0,so.stringifyMarkup)(t,r),kx(Ax(n))}function fUe(t,e){e||(e={});let r=Object.assign({},Fx,e)[t];if(!r||typeof r=="string")return r==="xhtml"?{selfClosingStyle:"xhtml"}:{};let i={};for(let s in r)switch(s){case"tag_case":i.tagCase=r[s]==="lower"||r[s]==="upper"?r[s]:"";break;case"attr_case":i.attributeCase=r[s]==="lower"||r[s]==="upper"?r[s]:"";break;case"attr_quotes":i.attributeQuotes=r[s];break;case"tag_nl":i.format=r[s]===!0||r[s]===!1?r[s]:!0;break;case"inline_break":i.inlineBreak=r[s];break;case"self_closing_tag":if(r[s]===!0){i.selfClosingStyle="xml";break}if(r[s]===!1){i.selfClosingStyle="html";break}i.selfClosingStyle=r[s];break;case"compact_bool":i.compactBooleanAttributes=r[s];break;default:i[s]=r[s];break}return i}function pUe(t){return t?Object.assign({},Fv,t):Fv}function mUe(t,e){if(!e||typeof e!="object")return{};if(!Da(t)){let i={};for(let s in e)switch(s){case"filter.commentAfter":i.after=e[s];break;case"filter.commentBefore":i.before=e[s];break;case"filter.commentTrigger":i.trigger=e[s];break;default:break}return{comment:i}}let n=typeof e?.["css.fuzzySearchMinScore"]=="number"?e["css.fuzzySearchMinScore"]:.3;n>1?n=1:n<0&&(n=0);let r={fuzzySearchMinScore:n};for(let i in e)switch(i){case"css.floatUnit":r.floatUnit=e[i];break;case"css.intUnit":r.intUnit=e[i];break;case"css.unitAliases":let s={};e[i].split(",").forEach(o=>{if(!o||!o.trim()||!o.includes(":"))return;let a=o.substr(0,o.indexOf(":")),l=o.substr(a.length+1);!a.trim()||!l||(s[a.trim()]=l)}),r.unitAliases=s;break;case`${t}.valueSeparator`:r.between=e[i];break;case`${t}.propertyEnd`:r.after=e[i];break;default:break}return{stylesheet:r}}function gUe(t,e,n,r){return Q8e(this,void 0,void 0,function*(){if(o5(),!t.length)return;let i=[];for(let s of t){if(typeof s!="string"){console.warn("The following emmetExtensionsPath isn't a string: "+JSON.stringify(s));continue}if(s=s.trim(),s.length&&s[0]==="~")r&&i.push((0,rf.joinPath)(r,s.substring(1)));else if((0,rf.isAbsolutePath)(s))i.push(Z8e.URI.file(s));else if(n)for(let o of n)i.push((0,rf.joinPath)(o,s))}for(let s of i){try{if((yield e.stat(s)).type!==rf.FileType.Directory)continue}catch{continue}let o=(0,rf.joinPath)(s,"snippets.json"),a=(0,rf.joinPath)(s,"syntaxProfiles.json"),l;typeof globalThis.TextDecoder=="function"?l=new globalThis.TextDecoder:l=new X8e.TextDecoder;let c="";try{let d=yield e.readFile(o);c=l.decode(d)}catch{}if(c.length)try{let d=Bse(o,c);d.variables&&bUe(d.variables),vUe(d)}catch(d){throw o5(),d}let u="";try{let d=yield e.readFile(a);u=l.decode(d)}catch{}if(u.length)try{let d=Bse(a,u);yUe(d)}catch(d){throw o5(),d}}})}function Bse(t,e){let n=[],r=Wse.parse(e,n);if(n.length)throw new Error(`Found error ${Wse.printParseErrorCode(n[0].error)} while parsing the file ${t} at offset ${n[0].offset}`);return r}function bUe(t){if(typeof t=="object"&&t)Fv=Object.assign({},Fv,t);else throw new Error(Vm.t("Invalid emmet.variables field. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."))}function yUe(t){if(typeof t=="object"&&t)Fx=Object.assign({},Fx,t);else throw new Error(Vm.t("Invalid syntax profile. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."))}function vUe(t){if(typeof t=="object"&&t)Object.keys(t).forEach(e=>{if(!t[e].snippets)return;let n=d5(e),r=t[e].snippets;if(t[n]&&t[n].snippets&&n!==e&&(r=Object.assign({},t[n].snippets,t[e].snippets)),Da(e)){let a=Hm.get(e),l=Object.assign([],a,Object.keys(r));Hm.set(e,l)}else for(let a in r)r.hasOwnProperty(a)&&r[a].startsWith("<")&&r[a].endsWith(">")&&(r[a]=`{${r[a]}}`);let i=sf[e],s=(0,kv.parseSnippets)(r),o=Object.assign({},i,s);sf[e]=o});else throw new Error(Vm.t("Invalid snippets file. See https://code.visualstudio.com/docs/editor/emmet#_using-custom-emmet-snippets for a valid example."))}function o5(){sf={},xx.clear(),Hm.clear(),Fx={},Fv={}}function Xse(t,e=[]){if(!(!t||e.includes(t))){if(/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(t))return"jsx";if(t==="sass-indented")return"sass";if(t==="jade")return"pug";if(kv.syntaxes.markup.includes(t)||kv.syntaxes.stylesheet.includes(t))return t}}});var Ex=I(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.allowedMimeTypesInScriptTag=void 0;ks.getEmmetHelper=_Ue;ks.isStyleSheet=CUe;ks.getMappingForIncludedLanguages=xUe;ks.getEmmetMode=kUe;ks.parsePartialStylesheet=AUe;ks.getFlatNode=ioe;ks.getHtmlFlatNode=p5;ks.getEmmetConfiguration=TUe;ks.getEmbeddedCssNodeIfAny=MUe;var noe=bL(),roe=SL(),wUe=Wre(),h5;function _Ue(){return h5||(h5=Zse()),h5}var SUe={html:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],jade:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],slim:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],haml:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xml:[".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xsl:["!",".","}","*","$","/","]",">","0","1","2","3","4","5","6","7","8","9"],css:[":","!","-","0","1","2","3","4","5","6","7","8","9"],scss:[":","!","-","0","1","2","3","4","5","6","7","8","9"],sass:[":","!","0","1","2","3","4","5","6","7","8","9"],less:[":","!","-","0","1","2","3","4","5","6","7","8","9"],stylus:[":","!","0","1","2","3","4","5","6","7","8","9"],javascriptreact:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescriptreact:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]};function CUe(t){return["css","scss","sass","less","stylus"].includes(t)}async function xUe(t){let e={handlebars:"html",php:"html"},n={},r=await t.env.getConfiguration?.("emmet.includeLanguages"),i=Object.assign({},e,r??{});return Object.keys(i).forEach(s=>{typeof i[s]=="string"&&SUe[i[s]]&&(n[s]=i[s])}),n}function kUe(t,e,n){if(!t||n.includes(t))return;t==="jsx-tags"&&(t="javascriptreact"),e[t]&&(t=e[t]),/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(t)?t="jsx":t==="sass-indented"?t="sass":(t==="jade"||t==="pug")&&(t="pug");let r=DUe();if(r.markup.includes(t)||r.stylesheet.includes(t))return t}var f5=125,eoe=123,Km=47,toe=42;function AUe(t,e){let n=t.languageId==="css",r=t.offsetAt(e),i=0,s=t.getText().length,o=r-5e3,a=o>0?o:i,l=new wUe.DocumentStreamReader(t,r);function c(S){let T=t.getText().substring(0,S).lastIndexOf("/*");if(T!==-1)return T}function u(S){let T=t.getText().substring(S).indexOf("*/");if(T!==-1)return T+=2+S,T}function d(){let S=t.positionAt(l.pos).line;if(!n&&g!==S){g=S;let v=t.getText({start:{line:g,character:0},end:{line:g+1,character:0}}).indexOf("//");v>-1&&(l.pos=t.offsetAt({line:g,character:v}))}}function f(){!l.sof()&&l.peek()===Km&&(l.backUp(1)===toe?l.pos=c(l.pos)??i:l.next())}function m(){if(l.eat(Km))if(l.eat(Km)&&!n){let S=t.positionAt(l.pos).line;l.pos=t.offsetAt({line:S+1,character:0})}else l.eat(toe)&&(l.pos=u(l.pos)??s)}for(;!l.eof()&&!l.eat(f5);)l.peek()===Km?m():l.next();l.eof()||(s=l.pos),l.pos=r;let b=1,g=e.line,w=!1;for(;!w&&b>0&&!l.sof();){switch(d(),l.backUp(1)){case eoe:b--;break;case f5:n?(l.next(),i=l.pos,w=!0):b++;break;case Km:f();break;default:break}(e.line-t.positionAt(l.pos).line>100||l.pos<=a)&&(w=!0)}g=t.positionAt(l.pos).line,b=0;let _=!1;for(;!w&&!l.sof()&&!_&&b>=0;){d();let S=l.backUp(1);if(!/\s/.test(String.fromCharCode(S))){switch(S){case Km:f();break;case f5:b++;break;case eoe:b--;break;default:b||(_=!0);break}!l.sof()&&_&&(i=l.pos)}}try{let S=" ".repeat(i)+t.getText().substring(i,s);return(0,noe.default)(S)}catch{return}}function ioe(t,e,n){if(!t)return;function r(s){if(!s)return;let o=s.start,a=s.end;if(o<e&&a>e||n&&o<=e&&a>=e)return i(s.children)??s;if("close"in s){let l=s;if(l.open&&!l.close)return i(l.children)}}function i(s){for(let o=0;o<s.length;o++){let a=r(s[o]);if(a)return a}}return i(t.children)}ks.allowedMimeTypesInScriptTag=["text/html","text/plain","text/x-template","text/template","text/ng-template"];function p5(t,e,n,r){let i=ioe(e,n,r);if(i){if(i.name==="script"&&i.children.length===0){let s=FUe(t,i);s&&(i=p5(s,i,n,r)??i)}else if(i.type==="cdata"){let s=EUe(t,i);i=p5(s,i,n,r)??i}return i}}function FUe(t,e){if(e.name==="script"&&e.attributes&&e.attributes.some(r=>r.name.toString()==="type"&&ks.allowedMimeTypesInScriptTag.includes(r.value.toString()))&&e.open){let r=" ".repeat(e.open.end),i=e.close?e.close.start:e.end,s=r+t.substring(e.open.end,i);return(0,roe.default)(s).children.forEach(a=>{e.children.push(a),a.parent=e}),s}return""}function EUe(t,e){let n="<![CDATA[",r="]]>",i=e.start+n.length,s=e.end-r.length,a=" ".repeat(i)+t.substring(i,s);return(0,roe.default)(a).children.forEach(c=>{e.children.push(c),c.parent=e}),a}async function TUe(t,e){let n=await t.env.getConfiguration?.("emmet")??{},r=Object.assign({},n.syntaxProfiles||{}),i=Object.assign({},n.preferences||{});return(e==="jsx"||e==="xml"||e==="xsl")&&(r[e]=r[e]||{},typeof r[e]=="object"&&!r[e].hasOwnProperty("self_closing_tag")&&!r[e].hasOwnProperty("selfClosingStyle")&&(r[e]={...r[e],selfClosingStyle:e==="jsx"?"xhtml":"xml"})),{preferences:i,showExpandedAbbreviation:n.showExpandedAbbreviation,showAbbreviationSuggestions:n.showAbbreviationSuggestions,syntaxProfiles:r,variables:n.variables,excludeLanguages:n.excludeLanguages,showSuggestionsAsSnippets:n.showSuggestionsAsSnippets}}function MUe(t,e,n){if(!e)return;let r=e;if(r&&r.open&&r.close){let i=t.offsetAt(n);if(r.open.end<i&&i<=r.close.start&&r.name==="style"){let s=" ".repeat(r.open.end)+t.getText().substring(r.open.end,r.close.start);return(0,noe.default)(s)}}}function DUe(){return{markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]}}});var ooe=I(Tx=>{"use strict";Object.defineProperty(Tx,"__esModule",{value:!0});Tx.isValidLocationForEmmetAbbreviation=RUe;Tx.getSyntaxFromArgs=soe;var Ev=Ex(),m5=/^#[\da-fA-F]{0,6}$/;async function RUe(t,e,n,r,i,s,o){if((0,Ev.isStyleSheet)(i)){let S=n;if(S&&(S.comments||[]).some(A=>s>=A.start&&s<=A.end))return!1;if(!r)return!0;let v=e.getText(o);if(v.startsWith("@"))return!0;if(i!=="sass"&&i!=="stylus"&&r.type==="property"){if(r.parent&&r.parent.type!=="rule"&&r.parent.type!=="at-rule")return!1;let A=r;if(A.terminatorToken&&A.separator&&s>=A.separatorToken.end&&s<=A.terminatorToken.start&&!v.includes(":")||!A.terminatorToken&&A.separator&&s>=A.separatorToken.end&&!v.includes(":"))return m5.test(v)||v==="!";if(m5.test(v)||v==="!")return!1}if(r.type!=="rule"&&r.type!=="at-rule")return!0;let T=r;if(s>T.contentStartToken.end)return!0;if(T.parent&&(T.parent.type==="rule"||T.parent.type==="at-rule")&&T.selectorToken){let A=e.positionAt(s),R=e.positionAt(T.selectorToken.start),k=e.positionAt(T.selectorToken.end);if(A.line!==k.line&&R.character===o.start.character&&R.line===o.start.line)return!0}return!1}let a="<",l=">",c="\\",u="?",d=r,f=0;if(d){if(d.name==="script"){let v=(d.attributes||[]).filter(R=>R.name.toString()==="type")[0],T=v?v.value.toString():"";return Ev.allowedMimeTypesInScriptTag.includes(T)?!0:!T||T==="application/javascript"||T==="text/javascript"?!!await soe(t,{language:"javascript"}):!1}if(!d.open||!d.close||!(d.open.end<=s&&s<=d.close.start))return!1;f=d.open.end;let S=d.firstChild;for(;S&&!(S.end>s);)f=S.end,S=S.nextSibling}let m=e.positionAt(f),b=e.getText({start:m,end:o.start});if(b.length>500&&(b=b.substr(b.length-500)),!b.trim())return!0;let g=!0,w=!1,_=b.length-1;if(b[_]===a)return!1;for(;_>=0;){let S=b[_];if(_--,!w&&/\s/.test(S)){w=!0;continue}if(S===u&&b[_]===a){_--;continue}if(/\s/.test(S)&&b[_]===a){_--;continue}if(!(S!==a&&S!==l)){if(_>=0&&b[_]===c){_--;continue}if(S===l){if(_>=0&&b[_]==="=")continue;break}if(S===a){g=!w;break}}}return g}async function soe(t,e){let n=await(0,Ev.getMappingForIncludedLanguages)(t),r=e.language,i=e.parentMode,s=await t.env.getConfiguration?.("emmet.excludeLanguages")??[];if(s.includes(r))return;let o=(0,Ev.getEmmetMode)(n[r]??r,n,s);return o||(o=(0,Ev.getEmmetMode)(n[i]??i,n,s)),o}});var loe=I(g5=>{"use strict";Object.defineProperty(g5,"__esModule",{value:!0});g5.getRootNode=NUe;var IUe=bL(),PUe=SL(),OUe=Ex(),aoe=new Map;function NUe(t,e){let n=t.uri.toString(),r=aoe.get(n),i=t.version;if(e&&r&&i===r.key)return r.value;let o=((0,OUe.isStyleSheet)(t.languageId)?IUe.default:PUe.default)(t.getText());return e&&aoe.set(n,{key:i,value:o}),o}});var uoe=I(y5=>{"use strict";Object.defineProperty(y5,"__esModule",{value:!0});y5.create=qUe;var LUe=rt(),coe=ooe(),b5=loe(),ts=Ex();function qUe({mappedLanguages:t={}}={}){return{name:"emmet",capabilities:{completionProvider:{triggerCharacters:">+^*()#.[]$@-{}".split("")}},create(e){let n;return{isAdditionalCompletion:!0,provideCompletionItems(i,s,o){let a=r(i,s,o);if(!a){n=void 0;return}return a.then(l=>{if(!l||!l.items.length)return n=void 0,l;let c=l.items[0],u=typeof c.documentation=="string"?c.documentation:c.documentation?c.documentation.value:"";return u.startsWith("<")?n="html":u.indexOf(":")>0&&u.endsWith(";")?n="css":n=void 0,l})}};async function r(i,s,o){let a=await e.env.getConfiguration?.("emmet")??{},l=a.excludeLanguages??[];if(l.includes(i.languageId))return;let c=!!t[i.languageId],u=(0,ts.getEmmetMode)(t[i.languageId]??i.languageId,t,l);if(!u||a.showExpandedAbbreviation==="never"||(c||u==="jsx")&&a.showExpandedAbbreviation!=="always")return;let d=u,f=d==="html"||d==="jsx"||d==="xml",m,b,g={start:{line:s.line,character:0},end:s};if(i.getText(g).trimStart().startsWith("//"))return;let w=(0,ts.getEmmetHelper)();if(d==="html"){if(o.triggerKind===3)switch(n){case"html":f=!1;break;case"css":f=!1,d="css";break;default:break}if(f){let A=i.offsetAt(s),R=(0,b5.getRootNode)(i,!0),k=(0,ts.getHtmlFlatNode)(i.getText(),R,A,!1);if(k)if(k.name==="script"){let y=k.attributes.find(C=>C.name.toString()==="type");if(y){let C=y.value.toString();if(C==="application/javascript"||C==="text/javascript")if(await(0,coe.getSyntaxFromArgs)(e,{language:"javascript"}))f=!1;else return;else ts.allowedMimeTypesInScriptTag.includes(C)&&(f=!1)}else return}else if(k.name==="style")d="css",f=!1;else{let y=k.attributes.find(C=>C.name.toString()==="style");y&&y.value.start<=A&&A<=y.value.end&&(d="css",f=!1)}}}let _=(0,ts.isStyleSheet)(d)?{lookAhead:!1,syntax:"stylesheet"}:{lookAhead:!0,syntax:"markup"},S=w.extractAbbreviation(i,s,_);if(!S||!w.isAbbreviationValid(d,S.abbreviation))return;let v=i.offsetAt(s);if((0,ts.isStyleSheet)(i.languageId)&&o.triggerKind!==3){if(f=!0,m=await e.env.getConfiguration?.("emmet.optimizeStylesheetParsing")===!0&&i.lineCount>1e3?(0,ts.parsePartialStylesheet)(i,s):(0,b5.getRootNode)(i,!0),!m)return;b=(0,ts.getFlatNode)(m,v,!0)}if(!(0,ts.isStyleSheet)(i.languageId)&&(0,ts.isStyleSheet)(d)&&o.triggerKind!==3){if(f=!0,m=(0,b5.getRootNode)(i,!0),!m)return;let A=(0,ts.getFlatNode)(m,v,!0),R=(0,ts.getEmbeddedCssNodeIfAny)(i,A,s);b=(0,ts.getFlatNode)(R,v,!0)}if(f&&!await(0,coe.isValidLocationForEmmetAbbreviation)(e,i,m,b,d,v,S.abbreviationRange))return;let T=Promise.resolve(!1);if(!(0,ts.isStyleSheet)(d)&&(i.languageId==="javascript"||i.languageId==="javascriptreact"||i.languageId==="typescript"||i.languageId==="typescriptreact")){let A=S.abbreviation;if(A.startsWith("this.")||/\[[^\]=]*\]/.test(A))T=Promise.resolve(!0);else{let R=LUe.URI.parse(i.uri),k=e.decodeEmbeddedDocumentUri(R)?.[0]??R;T=e.getLanguageService().getDocumentSymbols(k).then(y=>!!y&&y.some(C=>A===C.name||A.startsWith(C.name+".")&&!/>|\*|\+/.test(A)))}}return T.then(async A=>{if(A)return;let R=await(0,ts.getEmmetConfiguration)(e,d),k=w.doComplete(i,s,d,R);if(!(k&&k.items&&k.items.length===1&&k.items[0].label==="widows: ;"))return k})}}}}});var hoe=I(v5=>{"use strict";Object.defineProperty(v5,"__esModule",{value:!0});v5.create=$Ue;var doe=rt();function $Ue(t,{html:e,documentSelector:n=["html","css","scss","typescript","javascript"],isFormattingEnabled:r=async(s,o,a)=>{let l=doe.URI.parse(o.uri),c=a.decodeEmbeddedDocumentUri(l)?.[0]??l;return!(c.scheme==="file"&&(await s.getFileInfo(c.fsPath,{ignorePath:".prettierignore",resolveConfig:!1})).ignored)},getFormattingOptions:i=async(s,o,a,l)=>{let c=doe.URI.parse(o.uri),u=l.decodeEmbeddedDocumentUri(c)?.[0]??c,d=u.scheme==="file"?await s.resolveConfig(u.fsPath):null,f=await l.env.getConfiguration?.("prettier",u.toString());return{filepath:u.scheme==="file"?u.fsPath:void 0,tabWidth:a.tabSize,useTabs:!a.insertSpaces,...f,...d}}}={}){return{name:"prettier",capabilities:{documentFormattingProvider:!0},create(s){let o;return{async provideDocumentFormattingEdits(a,l,c){if(!zUe(n,a))return;o??=typeof t=="function"?t(s):t;let u=await o;if(!u||!await r(u,a,s))return;let f=a.getText(),m=f;a.languageId==="html"&&e?.breakContentsFromTags&&(m=m.replace(/(<[a-z][^>]*>)([^ \n])/gi,"$1 $2").replace(/([^ \n])(<\/[a-z][a-z0-9\t\n\r -]*>)/gi,"$1 $2"));let g=await i(u,a,c,s);return[{newText:await u.format(m,g),range:{start:a.positionAt(0),end:a.positionAt(f.length)}}]}}}}}function zUe(t,e){for(let n of t)if(n===e.languageId||typeof n=="object"&&n.language===e.languageId)return!0;return!1}});var foe=I(w5=>{"use strict";Object.defineProperty(w5,"__esModule",{value:!0});w5.create=WUe;var jUe=rt();function WUe(t){return{name:"typescript-twoslash-queries",capabilities:{inlayHintProvider:{}},create(e){return{provideInlayHints(n,r){if(UUe(n.languageId)){let i=e.inject("typescript/languageService"),s=e.inject("typescript/documentFileName",jUe.URI.parse(n.uri));if(!i||!s)return;let o=[];for(let a of n.getText(r).matchAll(/^\s*\/\/\s*\^\?/gm)){let l=a.index+a[0].indexOf("^?")+n.offsetAt(r.start),c=n.positionAt(l),u=n.offsetAt({line:c.line-1,character:c.character}),d=i.getQuickInfoAtPosition(s,u);d&&o.push({position:{line:c.line,character:c.character+2},label:t.displayPartsToString(d.displayParts),paddingLeft:!0,paddingRight:!1})}return o}}}}}}function UUe(t){return t==="javascript"||t==="typescript"||t==="javascriptreact"||t==="typescriptreact"}});var poe=I(S5=>{"use strict";Object.defineProperty(S5,"__esModule",{value:!0});S5.getSvelteLanguagePlugin=VUe;var BUe=Nt(),HUe=FC();function VUe(){return{getLanguageId(t){if(t.path.endsWith(".svelte"))return"svelte"},createVirtualCode(t,e,n){if(e==="svelte"){let r=t.fsPath.replace(/\\/g,"/");return new _5(r,n)}},typescript:{extraFileExtensions:[{extension:"svelte",isMixedContent:!0,scriptKind:7}],getServiceScript(t){for(let e of(0,BUe.forEachEmbeddedCode)(t))if(e.id==="tsx")return{code:e,extension:".tsx",scriptKind:4}}}}}var _5=class{constructor(e,n){this.fileName=e,this.snapshot=n,this.id="root",this.languageId="svelte",this.codegenStacks=[],this.mappings=[],this.embeddedCodes=[],this.embeddedCodes.push((0,HUe.framework2tsx)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"svelte"))}}});var moe=I(x5=>{"use strict";Object.defineProperty(x5,"__esModule",{value:!0});x5.getVueLanguagePlugin=JUe;var KUe=Nt(),GUe=FC();function JUe(){return{getLanguageId(t){if(t.path.endsWith(".vue"))return"vue"},createVirtualCode(t,e,n){if(e==="vue"){let r=t.fsPath.replace(/\\/g,"/");return new C5(r,n)}},typescript:{extraFileExtensions:[{extension:"vue",isMixedContent:!0,scriptKind:7}],getServiceScript(t){for(let e of(0,KUe.forEachEmbeddedCode)(t))if(e.id==="tsx")return{code:e,extension:".tsx",scriptKind:4}}}}}var C5=class{constructor(e,n){this.fileName=e,this.snapshot=n,this.id="root",this.languageId="vue",this.codegenStacks=[],this.mappings=[],this.embeddedCodes=[],this.embeddedCodes.push((0,GUe.framework2tsx)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"vue"))}}});var goe=I(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.splitWhen=Gm.flatten=void 0;function YUe(t){return t.reduce((e,n)=>[].concat(e,n),[])}Gm.flatten=YUe;function QUe(t,e){let n=[[]],r=0;for(let i of t)e(i)?(r++,n[r]=[]):n[r].push(i);return n}Gm.splitWhen=QUe});var boe=I(Mx=>{"use strict";Object.defineProperty(Mx,"__esModule",{value:!0});Mx.isEnoentCodeError=void 0;function XUe(t){return t.code==="ENOENT"}Mx.isEnoentCodeError=XUe});var yoe=I(Dx=>{"use strict";Object.defineProperty(Dx,"__esModule",{value:!0});Dx.createDirentFromStats=void 0;var k5=class{constructor(e,n){this.name=e,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function ZUe(t,e){return new k5(t,e)}Dx.createDirentFromStats=ZUe});var Soe=I(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.convertPosixPathToPattern=Nr.convertWindowsPathToPattern=Nr.convertPathToPattern=Nr.escapePosixPath=Nr.escapeWindowsPath=Nr.escape=Nr.removeLeadingDotSegment=Nr.makeAbsolute=Nr.unixify=void 0;var e7e=require("os"),t7e=require("path"),voe=e7e.platform()==="win32",n7e=2,r7e=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,i7e=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,s7e=/^\\\\([.?])/,o7e=/\\(?![!()+@[\]{}])/g;function a7e(t){return t.replace(/\\/g,"/")}Nr.unixify=a7e;function l7e(t,e){return t7e.resolve(t,e)}Nr.makeAbsolute=l7e;function c7e(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(n7e)}return t}Nr.removeLeadingDotSegment=c7e;Nr.escape=voe?A5:F5;function A5(t){return t.replace(i7e,"\\$2")}Nr.escapeWindowsPath=A5;function F5(t){return t.replace(r7e,"\\$2")}Nr.escapePosixPath=F5;Nr.convertPathToPattern=voe?woe:_oe;function woe(t){return A5(t).replace(s7e,"//$1").replace(o7e,"/")}Nr.convertWindowsPathToPattern=woe;function _oe(t){return F5(t)}Nr.convertPosixPathToPattern=_oe});var xoe=I((X1t,Coe)=>{Coe.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(n[2])return!0;e=e.slice(n.index+n[0].length)}return!1}});var Foe=I((Z1t,Aoe)=>{var u7e=xoe(),koe={"{":"}","(":")","[":"]"},d7e=function(t){if(t[0]==="!")return!0;for(var e=0,n=-2,r=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||r!==-1&&t[e]==="["&&t[e+1]!=="]"&&(r<e&&(r=t.indexOf("]",e)),r>e&&(o===-1||o>r||(o=t.indexOf("\\",e),o===-1||o>r)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||n!==-1&&t[e]==="("&&t[e+1]!=="|"&&(n<e&&(n=t.indexOf("|",e)),n!==-1&&t[n+1]!==")"&&(s=t.indexOf(")",n),s>n&&(o=t.indexOf("\\",n),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var l=koe[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},h7e=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var n=t[e+1];e+=2;var r=koe[n];if(r){var i=t.indexOf(r,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};Aoe.exports=function(e,n){if(typeof e!="string"||e==="")return!1;if(u7e(e))return!0;var r=d7e;return n&&n.strict===!1&&(r=h7e),r(e)}});var Toe=I((e_t,Eoe)=>{"use strict";var f7e=Foe(),p7e=require("path").posix.dirname,m7e=require("os").platform()==="win32",E5="/",g7e=/\\/g,b7e=/[\{\[].*[\}\]]$/,y7e=/(^|[^\\])([\{\[]|\([^\)]+$)/,v7e=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Eoe.exports=function(e,n){var r=Object.assign({flipBackslashes:!0},n);r.flipBackslashes&&m7e&&e.indexOf(E5)<0&&(e=e.replace(g7e,E5)),b7e.test(e)&&(e+=E5),e+="a";do e=p7e(e);while(f7e(e)||y7e.test(e));return e.replace(v7e,"$1")}});var Rx=I(Ho=>{"use strict";Ho.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Ho.find=(t,e)=>t.nodes.find(n=>n.type===e);Ho.exceedsLimit=(t,e,n=1,r)=>r===!1||!Ho.isInteger(t)||!Ho.isInteger(e)?!1:(Number(e)-Number(t))/Number(n)>=r;Ho.escapeNode=(t,e=0,n)=>{let r=t.nodes[e];r&&(n&&r.type===n||r.type==="open"||r.type==="close")&&r.escaped!==!0&&(r.value="\\"+r.value,r.escaped=!0)};Ho.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Ho.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Ho.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Ho.reduce=t=>t.reduce((e,n)=>(n.type==="text"&&e.push(n.value),n.type==="range"&&(n.type="text"),e),[]);Ho.flatten=(...t)=>{let e=[],n=r=>{for(let i=0;i<r.length;i++){let s=r[i];if(Array.isArray(s)){n(s);continue}s!==void 0&&e.push(s)}return e};return n(t),e}});var Ix=I((n_t,Doe)=>{"use strict";var Moe=Rx();Doe.exports=(t,e={})=>{let n=(r,i={})=>{let s=e.escapeInvalid&&Moe.isInvalidBrace(i),o=r.invalid===!0&&e.escapeInvalid===!0,a="";if(r.value)return(s||o)&&Moe.isOpenOrClose(r)?"\\"+r.value:r.value;if(r.value)return r.value;if(r.nodes)for(let l of r.nodes)a+=n(l);return a};return n(t)}});var Ioe=I((r_t,Roe)=>{"use strict";Roe.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Woe=I((i_t,joe)=>{"use strict";var Poe=Ioe(),of=(t,e,n)=>{if(Poe(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Poe(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let r={relaxZeros:!0,...n};typeof r.strictZeros=="boolean"&&(r.relaxZeros=r.strictZeros===!1);let i=String(r.relaxZeros),s=String(r.shorthand),o=String(r.capture),a=String(r.wrap),l=t+":"+e+"="+i+s+o+a;if(of.cache.hasOwnProperty(l))return of.cache[l].result;let c=Math.min(t,e),u=Math.max(t,e);if(Math.abs(c-u)===1){let g=t+"|"+e;return r.capture?`(${g})`:r.wrap===!1?g:`(?:${g})`}let d=zoe(t)||zoe(e),f={min:t,max:e,a:c,b:u},m=[],b=[];if(d&&(f.isPadded=d,f.maxLen=String(f.max).length),c<0){let g=u<0?Math.abs(u):1;b=Ooe(g,Math.abs(c),f,r),c=f.a=0}return u>=0&&(m=Ooe(c,u,f,r)),f.negatives=b,f.positives=m,f.result=w7e(b,m,r),r.capture===!0?f.result=`(${f.result})`:r.wrap!==!1&&m.length+b.length>1&&(f.result=`(?:${f.result})`),of.cache[l]=f,f.result};function w7e(t,e,n){let r=T5(t,e,"-",!1,n)||[],i=T5(e,t,"",!1,n)||[],s=T5(t,e,"-?",!0,n)||[];return r.concat(s).concat(i).join("|")}function _7e(t,e){let n=1,r=1,i=Loe(t,n),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),n+=1,i=Loe(t,n);for(i=qoe(e+1,r)-1;t<i&&i<=e;)s.add(i),r+=1,i=qoe(e+1,r)-1;return s=[...s],s.sort(x7e),s}function S7e(t,e,n){if(t===e)return{pattern:t,count:[],digits:0};let r=C7e(t,e),i=r.length,s="",o=0;for(let a=0;a<i;a++){let[l,c]=r[a];l===c?s+=l:l!=="0"||c!=="9"?s+=k7e(l,c,n):o++}return o&&(s+=n.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Ooe(t,e,n,r){let i=_7e(t,e),s=[],o=t,a;for(let l=0;l<i.length;l++){let c=i[l],u=S7e(String(o),String(c),r),d="";if(!n.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+$oe(a.count),o=c+1;continue}n.isPadded&&(d=A7e(c,n,r)),u.string=d+u.pattern+$oe(u.count),s.push(u),o=c+1,a=u}return s}function T5(t,e,n,r,i){let s=[];for(let o of t){let{string:a}=o;!r&&!Noe(e,"string",a)&&s.push(n+a),r&&Noe(e,"string",a)&&s.push(n+a)}return s}function C7e(t,e){let n=[];for(let r=0;r<t.length;r++)n.push([t[r],e[r]]);return n}function x7e(t,e){return t>e?1:e>t?-1:0}function Noe(t,e,n){return t.some(r=>r[e]===n)}function Loe(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function qoe(t,e){return t-t%Math.pow(10,e)}function $oe(t){let[e=0,n=""]=t;return n||e>1?`{${e+(n?","+n:"")}}`:""}function k7e(t,e,n){return`[${t}${e-t===1?"":"-"}${e}]`}function zoe(t){return/^-?(0+)\d/.test(t)}function A7e(t,e,n){if(!e.isPadded)return t;let r=Math.abs(e.maxLen-String(t).length),i=n.relaxZeros!==!1;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${r}}`:`0{${r}}`}}of.cache={};of.clearCache=()=>of.cache={};joe.exports=of});var R5=I((s_t,Joe)=>{"use strict";var F7e=require("util"),Boe=Woe(),Uoe=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),E7e=t=>e=>t===!0?Number(e):String(e),M5=t=>typeof t=="number"||typeof t=="string"&&t!=="",Tv=t=>Number.isInteger(+t),D5=t=>{let e=`${t}`,n=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++n]==="0";);return n>0},T7e=(t,e,n)=>typeof t=="string"||typeof e=="string"?!0:n.stringify===!0,M7e=(t,e,n)=>{if(e>0){let r=t[0]==="-"?"-":"";r&&(t=t.slice(1)),t=r+t.padStart(r?e-1:e,"0")}return n===!1?String(t):t},Ox=(t,e)=>{let n=t[0]==="-"?"-":"";for(n&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return n?"-"+t:t},D7e=(t,e,n)=>{t.negatives.sort((a,l)=>a<l?-1:a>l?1:0),t.positives.sort((a,l)=>a<l?-1:a>l?1:0);let r=e.capture?"":"?:",i="",s="",o;return t.positives.length&&(i=t.positives.map(a=>Ox(String(a),n)).join("|")),t.negatives.length&&(s=`-(${r}${t.negatives.map(a=>Ox(String(a),n)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,e.wrap?`(${r}${o})`:o},Hoe=(t,e,n,r)=>{if(n)return Boe(t,e,{wrap:!1,...r});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},Voe=(t,e,n)=>{if(Array.isArray(t)){let r=n.wrap===!0,i=n.capture?"":"?:";return r?`(${i}${t.join("|")})`:t.join("|")}return Boe(t,e,n)},Koe=(...t)=>new RangeError("Invalid range arguments: "+F7e.inspect(...t)),Goe=(t,e,n)=>{if(n.strictRanges===!0)throw Koe([t,e]);return[]},R7e=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},I7e=(t,e,n=1,r={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(r.strictRanges===!0)throw Koe([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),l=String(e),c=String(n);n=Math.max(Math.abs(n),1);let u=D5(a)||D5(l)||D5(c),d=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&T7e(t,e,r)===!1,m=r.transform||E7e(f);if(r.toRegex&&n===1)return Hoe(Ox(t,d),Ox(e,d),!0,r);let b={negatives:[],positives:[]},g=S=>b[S<0?"negatives":"positives"].push(Math.abs(S)),w=[],_=0;for(;o?i>=s:i<=s;)r.toRegex===!0&&n>1?g(i):w.push(M7e(m(i,_),d,f)),i=o?i-n:i+n,_++;return r.toRegex===!0?n>1?D7e(b,r,d):Voe(w,null,{wrap:!1,...r}):w},P7e=(t,e,n=1,r={})=>{if(!Tv(t)&&t.length>1||!Tv(e)&&e.length>1)return Goe(t,e,r);let i=r.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(r.toRegex&&n===1)return Hoe(l,c,!1,r);let u=[],d=0;for(;a?s>=o:s<=o;)u.push(i(s,d)),s=a?s-n:s+n,d++;return r.toRegex===!0?Voe(u,null,{wrap:!1,options:r}):u},Px=(t,e,n,r={})=>{if(e==null&&M5(t))return[t];if(!M5(t)||!M5(e))return Goe(t,e,r);if(typeof n=="function")return Px(t,e,1,{transform:n});if(Uoe(n))return Px(t,e,0,n);let i={...r};return i.capture===!0&&(i.wrap=!0),n=n||i.step||1,Tv(n)?Tv(t)&&Tv(e)?I7e(t,e,n,i):P7e(t,e,Math.max(Math.abs(n),1),i):n!=null&&!Uoe(n)?R7e(n,i):Px(t,e,1,n)};Joe.exports=Px});var Xoe=I((o_t,Qoe)=>{"use strict";var O7e=R5(),Yoe=Rx(),N7e=(t,e={})=>{let n=(r,i={})=>{let s=Yoe.isInvalidBrace(i),o=r.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(r.isOpen===!0)return l+r.value;if(r.isClose===!0)return console.log("node.isClose",l,r.value),l+r.value;if(r.type==="open")return a?l+r.value:"(";if(r.type==="close")return a?l+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":a?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let u=Yoe.reduce(r.nodes),d=O7e(...u,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(d.length!==0)return u.length>1&&d.length>1?`(${d})`:d}if(r.nodes)for(let u of r.nodes)c+=n(u,r);return c};return n(t)};Qoe.exports=N7e});var tae=I((a_t,eae)=>{"use strict";var L7e=R5(),Zoe=Ix(),Jm=Rx(),af=(t="",e="",n=!1)=>{let r=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return n?Jm.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)r.push(af(s,e,n));else for(let s of e)n===!0&&typeof s=="string"&&(s=`{${s}}`),r.push(Array.isArray(s)?af(i,s,n):i+s);return Jm.flatten(r)},q7e=(t,e={})=>{let n=e.rangeLimit===void 0?1e3:e.rangeLimit,r=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(af(a.pop(),Zoe(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(af(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let d=Jm.reduce(i.nodes);if(Jm.exceedsLimit(...d,e.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=L7e(...d,e);f.length===0&&(f=Zoe(i,e)),a.push(af(a.pop(),f)),i.nodes=[];return}let l=Jm.encloseBrace(i),c=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let d=0;d<i.nodes.length;d++){let f=i.nodes[d];if(f.type==="comma"&&i.type==="brace"){d===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(af(a.pop(),c,l));continue}if(f.value&&f.type!=="open"){c.push(af(c.pop(),f.value));continue}f.nodes&&r(f,i)}return c};return Jm.flatten(r(t))};eae.exports=q7e});var rae=I((l_t,nae)=>{"use strict";nae.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
777
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var lae=I((c_t,aae)=>{"use strict";var $7e=Ix(),{MAX_LENGTH:iae,CHAR_BACKSLASH:I5,CHAR_BACKTICK:z7e,CHAR_COMMA:j7e,CHAR_DOT:W7e,CHAR_LEFT_PARENTHESES:U7e,CHAR_RIGHT_PARENTHESES:B7e,CHAR_LEFT_CURLY_BRACE:H7e,CHAR_RIGHT_CURLY_BRACE:V7e,CHAR_LEFT_SQUARE_BRACKET:sae,CHAR_RIGHT_SQUARE_BRACKET:oae,CHAR_DOUBLE_QUOTE:K7e,CHAR_SINGLE_QUOTE:G7e,CHAR_NO_BREAK_SPACE:J7e,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Y7e}=rae(),Q7e=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let n=e||{},r=typeof n.maxLength=="number"?Math.min(iae,n.maxLength):iae;if(t.length>r)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${r})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,l=0,c=t.length,u=0,d=0,f,m=()=>t[u++],b=g=>{if(g.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&g.type==="text"){a.value+=g.value;return}return o.nodes.push(g),g.parent=o,g.prev=a,a=g,g};for(b({type:"bos"});u<c;)if(o=s[s.length-1],f=m(),!(f===Y7e||f===J7e)){if(f===I5){b({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===oae){b({type:"text",value:"\\"+f});continue}if(f===sae){l++;let g;for(;u<c&&(g=m());){if(f+=g,g===sae){l++;continue}if(g===I5){f+=m();continue}if(g===oae&&(l--,l===0))break}b({type:"text",value:f});continue}if(f===U7e){o=b({type:"paren",nodes:[]}),s.push(o),b({type:"text",value:f});continue}if(f===B7e){if(o.type!=="paren"){b({type:"text",value:f});continue}o=s.pop(),b({type:"text",value:f}),o=s[s.length-1];continue}if(f===K7e||f===G7e||f===z7e){let g=f,w;for(e.keepQuotes!==!0&&(f="");u<c&&(w=m());){if(w===I5){f+=w+m();continue}if(w===g){e.keepQuotes===!0&&(f+=w);break}f+=w}b({type:"text",value:f});continue}if(f===H7e){d++;let w={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};o=b(w),s.push(o),b({type:"open",value:f});continue}if(f===V7e){if(o.type!=="brace"){b({type:"text",value:f});continue}let g="close";o=s.pop(),o.close=!0,b({type:g,value:f}),d--,o=s[s.length-1];continue}if(f===j7e&&d>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:$7e(o)}]}b({type:"comma",value:f}),o.commas++;continue}if(f===W7e&&d>0&&o.commas===0){let g=o.nodes;if(d===0||g.length===0){b({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){g.pop();let w=g[g.length-1];w.value+=a.value+f,a=w,o.ranges--;continue}b({type:"dot",value:f});continue}b({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(_=>{_.nodes||(_.type==="open"&&(_.isOpen=!0),_.type==="close"&&(_.isClose=!0),_.nodes||(_.type="text"),_.invalid=!0)});let g=s[s.length-1],w=g.nodes.indexOf(o);g.nodes.splice(w,1,...o.nodes)}while(s.length>0);return b({type:"eos"}),i};aae.exports=Q7e});var dae=I((u_t,uae)=>{"use strict";var cae=Ix(),X7e=Xoe(),Z7e=tae(),e6e=lae(),oo=(t,e={})=>{let n=[];if(Array.isArray(t))for(let r of t){let i=oo.create(r,e);Array.isArray(i)?n.push(...i):n.push(i)}else n=[].concat(oo.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(n=[...new Set(n)]),n};oo.parse=(t,e={})=>e6e(t,e);oo.stringify=(t,e={})=>cae(typeof t=="string"?oo.parse(t,e):t,e);oo.compile=(t,e={})=>(typeof t=="string"&&(t=oo.parse(t,e)),X7e(t,e));oo.expand=(t,e={})=>{typeof t=="string"&&(t=oo.parse(t,e));let n=Z7e(t,e);return e.noempty===!0&&(n=n.filter(Boolean)),e.nodupes===!0&&(n=[...new Set(n)]),n};oo.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?oo.compile(t,e):oo.expand(t,e);uae.exports=oo});var Mv=I((d_t,gae)=>{"use strict";var t6e=require("path"),Tl="\\\\/",hae=`[^${Tl}]`,Uc="\\.",n6e="\\+",r6e="\\?",Nx="\\/",i6e="(?=.)",fae="[^/]",P5=`(?:${Nx}|$)`,pae=`(?:^|${Nx})`,O5=`${Uc}{1,2}${P5}`,s6e=`(?!${Uc})`,o6e=`(?!${pae}${O5})`,a6e=`(?!${Uc}{0,1}${P5})`,l6e=`(?!${O5})`,c6e=`[^.${Nx}]`,u6e=`${fae}*?`,mae={DOT_LITERAL:Uc,PLUS_LITERAL:n6e,QMARK_LITERAL:r6e,SLASH_LITERAL:Nx,ONE_CHAR:i6e,QMARK:fae,END_ANCHOR:P5,DOTS_SLASH:O5,NO_DOT:s6e,NO_DOTS:o6e,NO_DOT_SLASH:a6e,NO_DOTS_SLASH:l6e,QMARK_NO_DOT:c6e,STAR:u6e,START_ANCHOR:pae},d6e={...mae,SLASH_LITERAL:`[${Tl}]`,QMARK:hae,STAR:`${hae}*?`,DOTS_SLASH:`${Uc}{1,2}(?:[${Tl}]|$)`,NO_DOT:`(?!${Uc})`,NO_DOTS:`(?!(?:^|[${Tl}])${Uc}{1,2}(?:[${Tl}]|$))`,NO_DOT_SLASH:`(?!${Uc}{0,1}(?:[${Tl}]|$))`,NO_DOTS_SLASH:`(?!${Uc}{1,2}(?:[${Tl}]|$))`,QMARK_NO_DOT:`[^.${Tl}]`,START_ANCHOR:`(?:^|[${Tl}])`,END_ANCHOR:`(?:[${Tl}]|$)`},h6e={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};gae.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:h6e,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:t6e.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?d6e:mae}}});var Dv=I(As=>{"use strict";var f6e=require("path"),p6e=process.platform==="win32",{REGEX_BACKSLASH:m6e,REGEX_REMOVE_BACKSLASH:g6e,REGEX_SPECIAL_CHARS:b6e,REGEX_SPECIAL_CHARS_GLOBAL:y6e}=Mv();As.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);As.hasRegexChars=t=>b6e.test(t);As.isRegexChar=t=>t.length===1&&As.hasRegexChars(t);As.escapeRegex=t=>t.replace(y6e,"\\$1");As.toPosixSlashes=t=>t.replace(m6e,"/");As.removeBackslashes=t=>t.replace(g6e,e=>e==="\\"?"":e);As.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};As.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:p6e===!0||f6e.sep==="\\";As.escapeLast=(t,e,n)=>{let r=t.lastIndexOf(e,n);return r===-1?t:t[r-1]==="\\"?As.escapeLast(t,e,r-1):`${t.slice(0,r)}\\${t.slice(r)}`};As.removePrefix=(t,e={})=>{let n=t;return n.startsWith("./")&&(n=n.slice(2),e.prefix="./"),n};As.wrapOutput=(t,e={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",s=`${r}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var xae=I((f_t,Cae)=>{"use strict";var bae=Dv(),{CHAR_ASTERISK:N5,CHAR_AT:v6e,CHAR_BACKWARD_SLASH:Rv,CHAR_COMMA:w6e,CHAR_DOT:L5,CHAR_EXCLAMATION_MARK:q5,CHAR_FORWARD_SLASH:Sae,CHAR_LEFT_CURLY_BRACE:$5,CHAR_LEFT_PARENTHESES:z5,CHAR_LEFT_SQUARE_BRACKET:_6e,CHAR_PLUS:S6e,CHAR_QUESTION_MARK:yae,CHAR_RIGHT_CURLY_BRACE:C6e,CHAR_RIGHT_PARENTHESES:vae,CHAR_RIGHT_SQUARE_BRACKET:x6e}=Mv(),wae=t=>t===Sae||t===Rv,_ae=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},k6e=(t,e)=>{let n=e||{},r=t.length-1,i=n.parts===!0||n.scanToEnd===!0,s=[],o=[],a=[],l=t,c=-1,u=0,d=0,f=!1,m=!1,b=!1,g=!1,w=!1,_=!1,S=!1,v=!1,T=!1,A=!1,R=0,k,y,C={value:"",depth:0,isGlob:!1},M=()=>c>=r,E=()=>l.charCodeAt(c+1),D=()=>(k=y,l.charCodeAt(++c));for(;c<r;){y=D();let L;if(y===Rv){S=C.backslashes=!0,y=D(),y===$5&&(_=!0);continue}if(_===!0||y===$5){for(R++;M()!==!0&&(y=D());){if(y===Rv){S=C.backslashes=!0,D();continue}if(y===$5){R++;continue}if(_!==!0&&y===L5&&(y=D())===L5){if(f=C.isBrace=!0,b=C.isGlob=!0,A=!0,i===!0)continue;break}if(_!==!0&&y===w6e){if(f=C.isBrace=!0,b=C.isGlob=!0,A=!0,i===!0)continue;break}if(y===C6e&&(R--,R===0)){_=!1,f=C.isBrace=!0,A=!0;break}}if(i===!0)continue;break}if(y===Sae){if(s.push(c),o.push(C),C={value:"",depth:0,isGlob:!1},A===!0)continue;if(k===L5&&c===u+1){u+=2;continue}d=c+1;continue}if(n.noext!==!0&&(y===S6e||y===v6e||y===N5||y===yae||y===q5)===!0&&E()===z5){if(b=C.isGlob=!0,g=C.isExtglob=!0,A=!0,y===q5&&c===u&&(T=!0),i===!0){for(;M()!==!0&&(y=D());){if(y===Rv){S=C.backslashes=!0,y=D();continue}if(y===vae){b=C.isGlob=!0,A=!0;break}}continue}break}if(y===N5){if(k===N5&&(w=C.isGlobstar=!0),b=C.isGlob=!0,A=!0,i===!0)continue;break}if(y===yae){if(b=C.isGlob=!0,A=!0,i===!0)continue;break}if(y===_6e){for(;M()!==!0&&(L=D());){if(L===Rv){S=C.backslashes=!0,D();continue}if(L===x6e){m=C.isBracket=!0,b=C.isGlob=!0,A=!0;break}}if(i===!0)continue;break}if(n.nonegate!==!0&&y===q5&&c===u){v=C.negated=!0,u++;continue}if(n.noparen!==!0&&y===z5){if(b=C.isGlob=!0,i===!0){for(;M()!==!0&&(y=D());){if(y===z5){S=C.backslashes=!0,y=D();continue}if(y===vae){A=!0;break}}continue}break}if(b===!0){if(A=!0,i===!0)continue;break}}n.noext===!0&&(g=!1,b=!1);let N=l,$="",F="";u>0&&($=l.slice(0,u),l=l.slice(u),d-=u),N&&b===!0&&d>0?(N=l.slice(0,d),F=l.slice(d)):b===!0?(N="",F=l):N=l,N&&N!==""&&N!=="/"&&N!==l&&wae(N.charCodeAt(N.length-1))&&(N=N.slice(0,-1)),n.unescape===!0&&(F&&(F=bae.removeBackslashes(F)),N&&S===!0&&(N=bae.removeBackslashes(N)));let P={prefix:$,input:t,start:u,base:N,glob:F,isBrace:f,isBracket:m,isGlob:b,isExtglob:g,isGlobstar:w,negated:v,negatedExtglob:T};if(n.tokens===!0&&(P.maxDepth=0,wae(y)||o.push(C),P.tokens=o),n.parts===!0||n.tokens===!0){let L;for(let j=0;j<s.length;j++){let z=L?L+1:u,K=s[j],X=t.slice(z,K);n.tokens&&(j===0&&u!==0?(o[j].isPrefix=!0,o[j].value=$):o[j].value=X,_ae(o[j]),P.maxDepth+=o[j].depth),(j!==0||X!=="")&&a.push(X),L=K}if(L&&L+1<t.length){let j=t.slice(L+1);a.push(j),n.tokens&&(o[o.length-1].value=j,_ae(o[o.length-1]),P.maxDepth+=o[o.length-1].depth)}P.slashes=s,P.parts=a}return P};Cae.exports=k6e});var Fae=I((p_t,Aae)=>{"use strict";var Lx=Mv(),ao=Dv(),{MAX_LENGTH:qx,POSIX_REGEX_SOURCE:A6e,REGEX_NON_SPECIAL_CHARS:F6e,REGEX_SPECIAL_CHARS_BACKREF:E6e,REPLACEMENTS:kae}=Lx,T6e=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let n=`[${t.join("-")}]`;try{new RegExp(n)}catch{return t.map(i=>ao.escapeRegex(i)).join("..")}return n},Ym=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,j5=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=kae[t]||t;let n={...e},r=typeof n.maxLength=="number"?Math.min(qx,n.maxLength):qx,i=t.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);let s={type:"bos",value:"",output:n.prepend||""},o=[s],a=n.capture?"":"?:",l=ao.isWindows(e),c=Lx.globChars(l),u=Lx.extglobChars(c),{DOT_LITERAL:d,PLUS_LITERAL:f,SLASH_LITERAL:m,ONE_CHAR:b,DOTS_SLASH:g,NO_DOT:w,NO_DOT_SLASH:_,NO_DOTS_SLASH:S,QMARK:v,QMARK_NO_DOT:T,STAR:A,START_ANCHOR:R}=c,k=we=>`(${a}(?:(?!${R}${we.dot?g:d}).)*?)`,y=n.dot?"":w,C=n.dot?v:T,M=n.bash===!0?k(n):A;n.capture&&(M=`(${M})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let E={input:t,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=ao.removePrefix(t,E),i=t.length;let D=[],N=[],$=[],F=s,P,L=()=>E.index===i-1,j=E.peek=(we=1)=>t[E.index+we],z=E.advance=()=>t[++E.index]||"",K=()=>t.slice(E.index+1),X=(we="",Ne=0)=>{E.consumed+=we,E.index+=Ne},ee=we=>{E.output+=we.output!=null?we.output:we.value,X(we.value)},de=()=>{let we=1;for(;j()==="!"&&(j(2)!=="("||j(3)==="?");)z(),E.start++,we++;return we%2===0?!1:(E.negated=!0,E.start++,!0)},Se=we=>{E[we]++,$.push(we)},De=we=>{E[we]--,$.pop()},ke=we=>{if(F.type==="globstar"){let Ne=E.braces>0&&(we.type==="comma"||we.type==="brace"),me=we.extglob===!0||D.length&&(we.type==="pipe"||we.type==="paren");we.type!=="slash"&&we.type!=="paren"&&!Ne&&!me&&(E.output=E.output.slice(0,-F.output.length),F.type="star",F.value="*",F.output=M,E.output+=F.output)}if(D.length&&we.type!=="paren"&&(D[D.length-1].inner+=we.value),(we.value||we.output)&&ee(we),F&&F.type==="text"&&we.type==="text"){F.value+=we.value,F.output=(F.output||"")+we.value;return}we.prev=F,o.push(we),F=we},Ye=(we,Ne)=>{let me={...u[Ne],conditions:1,inner:""};me.prev=F,me.parens=E.parens,me.output=E.output;let Re=(n.capture?"(":"")+me.open;Se("parens"),ke({type:we,value:Ne,output:E.output?"":b}),ke({type:"paren",extglob:!0,value:z(),output:Re}),D.push(me)},St=we=>{let Ne=we.close+(n.capture?")":""),me;if(we.type==="negate"){let Re=M;if(we.inner&&we.inner.length>1&&we.inner.includes("/")&&(Re=k(n)),(Re!==M||L()||/^\)+$/.test(K()))&&(Ne=we.close=`)$))${Re}`),we.inner.includes("*")&&(me=K())&&/^\.[^\\/.]+$/.test(me)){let it=j5(me,{...e,fastpaths:!1}).output;Ne=we.close=`)${it})${Re})`}we.prev.type==="bos"&&(E.negatedExtglob=!0)}ke({type:"paren",extglob:!0,value:P,output:Ne}),De("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let we=!1,Ne=t.replace(E6e,(me,Re,it,un,lt,ri)=>un==="\\"?(we=!0,me):un==="?"?Re?Re+un+(lt?v.repeat(lt.length):""):ri===0?C+(lt?v.repeat(lt.length):""):v.repeat(it.length):un==="."?d.repeat(it.length):un==="*"?Re?Re+un+(lt?M:""):M:Re?me:`\\${me}`);return we===!0&&(n.unescape===!0?Ne=Ne.replace(/\\/g,""):Ne=Ne.replace(/\\+/g,me=>me.length%2===0?"\\\\":me?"\\":"")),Ne===t&&n.contains===!0?(E.output=t,E):(E.output=ao.wrapOutput(Ne,E,e),E)}for(;!L();){if(P=z(),P==="\0")continue;if(P==="\\"){let me=j();if(me==="/"&&n.bash!==!0||me==="."||me===";")continue;if(!me){P+="\\",ke({type:"text",value:P});continue}let Re=/^\\+/.exec(K()),it=0;if(Re&&Re[0].length>2&&(it=Re[0].length,E.index+=it,it%2!==0&&(P+="\\")),n.unescape===!0?P=z():P+=z(),E.brackets===0){ke({type:"text",value:P});continue}}if(E.brackets>0&&(P!=="]"||F.value==="["||F.value==="[^")){if(n.posix!==!1&&P===":"){let me=F.value.slice(1);if(me.includes("[")&&(F.posix=!0,me.includes(":"))){let Re=F.value.lastIndexOf("["),it=F.value.slice(0,Re),un=F.value.slice(Re+2),lt=A6e[un];if(lt){F.value=it+lt,E.backtrack=!0,z(),!s.output&&o.indexOf(F)===1&&(s.output=b);continue}}}(P==="["&&j()!==":"||P==="-"&&j()==="]")&&(P=`\\${P}`),P==="]"&&(F.value==="["||F.value==="[^")&&(P=`\\${P}`),n.posix===!0&&P==="!"&&F.value==="["&&(P="^"),F.value+=P,ee({value:P});continue}if(E.quotes===1&&P!=='"'){P=ao.escapeRegex(P),F.value+=P,ee({value:P});continue}if(P==='"'){E.quotes=E.quotes===1?0:1,n.keepQuotes===!0&&ke({type:"text",value:P});continue}if(P==="("){Se("parens"),ke({type:"paren",value:P});continue}if(P===")"){if(E.parens===0&&n.strictBrackets===!0)throw new SyntaxError(Ym("opening","("));let me=D[D.length-1];if(me&&E.parens===me.parens+1){St(D.pop());continue}ke({type:"paren",value:P,output:E.parens?")":"\\)"}),De("parens");continue}if(P==="["){if(n.nobracket===!0||!K().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(Ym("closing","]"));P=`\\${P}`}else Se("brackets");ke({type:"bracket",value:P});continue}if(P==="]"){if(n.nobracket===!0||F&&F.type==="bracket"&&F.value.length===1){ke({type:"text",value:P,output:`\\${P}`});continue}if(E.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(Ym("opening","["));ke({type:"text",value:P,output:`\\${P}`});continue}De("brackets");let me=F.value.slice(1);if(F.posix!==!0&&me[0]==="^"&&!me.includes("/")&&(P=`/${P}`),F.value+=P,ee({value:P}),n.literalBrackets===!1||ao.hasRegexChars(me))continue;let Re=ao.escapeRegex(F.value);if(E.output=E.output.slice(0,-F.value.length),n.literalBrackets===!0){E.output+=Re,F.value=Re;continue}F.value=`(${a}${Re}|${F.value})`,E.output+=F.value;continue}if(P==="{"&&n.nobrace!==!0){Se("braces");let me={type:"brace",value:P,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};N.push(me),ke(me);continue}if(P==="}"){let me=N[N.length-1];if(n.nobrace===!0||!me){ke({type:"text",value:P,output:P});continue}let Re=")";if(me.dots===!0){let it=o.slice(),un=[];for(let lt=it.length-1;lt>=0&&(o.pop(),it[lt].type!=="brace");lt--)it[lt].type!=="dots"&&un.unshift(it[lt].value);Re=T6e(un,n),E.backtrack=!0}if(me.comma!==!0&&me.dots!==!0){let it=E.output.slice(0,me.outputIndex),un=E.tokens.slice(me.tokensIndex);me.value=me.output="\\{",P=Re="\\}",E.output=it;for(let lt of un)E.output+=lt.output||lt.value}ke({type:"brace",value:P,output:Re}),De("braces"),N.pop();continue}if(P==="|"){D.length>0&&D[D.length-1].conditions++,ke({type:"text",value:P});continue}if(P===","){let me=P,Re=N[N.length-1];Re&&$[$.length-1]==="braces"&&(Re.comma=!0,me="|"),ke({type:"comma",value:P,output:me});continue}if(P==="/"){if(F.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",o.pop(),F=s;continue}ke({type:"slash",value:P,output:m});continue}if(P==="."){if(E.braces>0&&F.type==="dot"){F.value==="."&&(F.output=d);let me=N[N.length-1];F.type="dots",F.output+=P,F.value+=P,me.dots=!0;continue}if(E.braces+E.parens===0&&F.type!=="bos"&&F.type!=="slash"){ke({type:"text",value:P,output:d});continue}ke({type:"dot",value:P,output:d});continue}if(P==="?"){if(!(F&&F.value==="(")&&n.noextglob!==!0&&j()==="("&&j(2)!=="?"){Ye("qmark",P);continue}if(F&&F.type==="paren"){let Re=j(),it=P;if(Re==="<"&&!ao.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(F.value==="("&&!/[!=<:]/.test(Re)||Re==="<"&&!/<([!=]|\w+>)/.test(K()))&&(it=`\\${P}`),ke({type:"text",value:P,output:it});continue}if(n.dot!==!0&&(F.type==="slash"||F.type==="bos")){ke({type:"qmark",value:P,output:T});continue}ke({type:"qmark",value:P,output:v});continue}if(P==="!"){if(n.noextglob!==!0&&j()==="("&&(j(2)!=="?"||!/[!=<:]/.test(j(3)))){Ye("negate",P);continue}if(n.nonegate!==!0&&E.index===0){de();continue}}if(P==="+"){if(n.noextglob!==!0&&j()==="("&&j(2)!=="?"){Ye("plus",P);continue}if(F&&F.value==="("||n.regex===!1){ke({type:"plus",value:P,output:f});continue}if(F&&(F.type==="bracket"||F.type==="paren"||F.type==="brace")||E.parens>0){ke({type:"plus",value:P});continue}ke({type:"plus",value:f});continue}if(P==="@"){if(n.noextglob!==!0&&j()==="("&&j(2)!=="?"){ke({type:"at",extglob:!0,value:P,output:""});continue}ke({type:"text",value:P});continue}if(P!=="*"){(P==="$"||P==="^")&&(P=`\\${P}`);let me=F6e.exec(K());me&&(P+=me[0],E.index+=me[0].length),ke({type:"text",value:P});continue}if(F&&(F.type==="globstar"||F.star===!0)){F.type="star",F.star=!0,F.value+=P,F.output=M,E.backtrack=!0,E.globstar=!0,X(P);continue}let we=K();if(n.noextglob!==!0&&/^\([^?]/.test(we)){Ye("star",P);continue}if(F.type==="star"){if(n.noglobstar===!0){X(P);continue}let me=F.prev,Re=me.prev,it=me.type==="slash"||me.type==="bos",un=Re&&(Re.type==="star"||Re.type==="globstar");if(n.bash===!0&&(!it||we[0]&&we[0]!=="/")){ke({type:"star",value:P,output:""});continue}let lt=E.braces>0&&(me.type==="comma"||me.type==="brace"),ri=D.length&&(me.type==="pipe"||me.type==="paren");if(!it&&me.type!=="paren"&&!lt&&!ri){ke({type:"star",value:P,output:""});continue}for(;we.slice(0,3)==="/**";){let pr=t[E.index+4];if(pr&&pr!=="/")break;we=we.slice(3),X("/**",3)}if(me.type==="bos"&&L()){F.type="globstar",F.value+=P,F.output=k(n),E.output=F.output,E.globstar=!0,X(P);continue}if(me.type==="slash"&&me.prev.type!=="bos"&&!un&&L()){E.output=E.output.slice(0,-(me.output+F.output).length),me.output=`(?:${me.output}`,F.type="globstar",F.output=k(n)+(n.strictSlashes?")":"|$)"),F.value+=P,E.globstar=!0,E.output+=me.output+F.output,X(P);continue}if(me.type==="slash"&&me.prev.type!=="bos"&&we[0]==="/"){let pr=we[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(me.output+F.output).length),me.output=`(?:${me.output}`,F.type="globstar",F.output=`${k(n)}${m}|${m}${pr})`,F.value+=P,E.output+=me.output+F.output,E.globstar=!0,X(P+z()),ke({type:"slash",value:"/",output:""});continue}if(me.type==="bos"&&we[0]==="/"){F.type="globstar",F.value+=P,F.output=`(?:^|${m}|${k(n)}${m})`,E.output=F.output,E.globstar=!0,X(P+z()),ke({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-F.output.length),F.type="globstar",F.output=k(n),F.value+=P,E.output+=F.output,E.globstar=!0,X(P);continue}let Ne={type:"star",value:P,output:M};if(n.bash===!0){Ne.output=".*?",(F.type==="bos"||F.type==="slash")&&(Ne.output=y+Ne.output),ke(Ne);continue}if(F&&(F.type==="bracket"||F.type==="paren")&&n.regex===!0){Ne.output=P,ke(Ne);continue}(E.index===E.start||F.type==="slash"||F.type==="dot")&&(F.type==="dot"?(E.output+=_,F.output+=_):n.dot===!0?(E.output+=S,F.output+=S):(E.output+=y,F.output+=y),j()!=="*"&&(E.output+=b,F.output+=b)),ke(Ne)}for(;E.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ym("closing","]"));E.output=ao.escapeLast(E.output,"["),De("brackets")}for(;E.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ym("closing",")"));E.output=ao.escapeLast(E.output,"("),De("parens")}for(;E.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ym("closing","}"));E.output=ao.escapeLast(E.output,"{"),De("braces")}if(n.strictSlashes!==!0&&(F.type==="star"||F.type==="bracket")&&ke({type:"maybe_slash",value:"",output:`${m}?`}),E.backtrack===!0){E.output="";for(let we of E.tokens)E.output+=we.output!=null?we.output:we.value,we.suffix&&(E.output+=we.suffix)}return E};j5.fastpaths=(t,e)=>{let n={...e},r=typeof n.maxLength=="number"?Math.min(qx,n.maxLength):qx,i=t.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);t=kae[t]||t;let s=ao.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:d,NO_DOTS_SLASH:f,STAR:m,START_ANCHOR:b}=Lx.globChars(s),g=n.dot?d:u,w=n.dot?f:u,_=n.capture?"":"?:",S={negated:!1,prefix:""},v=n.bash===!0?".*?":m;n.capture&&(v=`(${v})`);let T=y=>y.noglobstar===!0?v:`(${_}(?:(?!${b}${y.dot?c:o}).)*?)`,A=y=>{switch(y){case"*":return`${g}${l}${v}`;case".*":return`${o}${l}${v}`;case"*.*":return`${g}${v}${o}${l}${v}`;case"*/*":return`${g}${v}${a}${l}${w}${v}`;case"**":return g+T(n);case"**/*":return`(?:${g}${T(n)}${a})?${w}${l}${v}`;case"**/*.*":return`(?:${g}${T(n)}${a})?${w}${v}${o}${l}${v}`;case"**/.*":return`(?:${g}${T(n)}${a})?${o}${l}${v}`;default:{let C=/^(.*?)\.(\w+)$/.exec(y);if(!C)return;let M=A(C[1]);return M?M+o+C[2]:void 0}}},R=ao.removePrefix(t,S),k=A(R);return k&&n.strictSlashes!==!0&&(k+=`${a}?`),k};Aae.exports=j5});var Tae=I((m_t,Eae)=>{"use strict";var M6e=require("path"),D6e=xae(),W5=Fae(),U5=Dv(),R6e=Mv(),I6e=t=>t&&typeof t=="object"&&!Array.isArray(t),kr=(t,e,n=!1)=>{if(Array.isArray(t)){let u=t.map(f=>kr(f,e,n));return f=>{for(let m of u){let b=m(f);if(b)return b}return!1}}let r=I6e(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=U5.isWindows(e),o=r?kr.compileRe(t,e):kr.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(i.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=kr(i.ignore,u,n)}let c=(u,d=!1)=>{let{isMatch:f,match:m,output:b}=kr.test(u,o,e,{glob:t,posix:s}),g={glob:t,state:a,regex:o,posix:s,input:u,output:b,match:m,isMatch:f};return typeof i.onResult=="function"&&i.onResult(g),f===!1?(g.isMatch=!1,d?g:!1):l(u)?(typeof i.onIgnore=="function"&&i.onIgnore(g),g.isMatch=!1,d?g:!1):(typeof i.onMatch=="function"&&i.onMatch(g),d?g:!0)};return n&&(c.state=a),c};kr.test=(t,e,n,{glob:r,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=n||{},o=s.format||(i?U5.toPosixSlashes:null),a=t===r,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===r),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=kr.matchBase(t,e,n,i):a=e.exec(l)),{isMatch:!!a,match:a,output:l}};kr.matchBase=(t,e,n,r=U5.isWindows(n))=>(e instanceof RegExp?e:kr.makeRe(e,n)).test(M6e.basename(t));kr.isMatch=(t,e,n)=>kr(e,n)(t);kr.parse=(t,e)=>Array.isArray(t)?t.map(n=>kr.parse(n,e)):W5(t,{...e,fastpaths:!1});kr.scan=(t,e)=>D6e(t,e);kr.compileRe=(t,e,n=!1,r=!1)=>{if(n===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let l=kr.toRegex(a,e);return r===!0&&(l.state=t),l};kr.makeRe=(t,e={},n=!1,r=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=W5.fastpaths(t,e)),i.output||(i=W5(t,e)),kr.compileRe(i,e,n,r)};kr.toRegex=(t,e)=>{try{let n=e||{};return new RegExp(t,n.flags||(n.nocase?"i":""))}catch(n){if(e&&e.debug===!0)throw n;return/$^/}};kr.constants=R6e;Eae.exports=kr});var Dae=I((g_t,Mae)=>{"use strict";Mae.exports=Tae()});var Lae=I((b_t,Nae)=>{"use strict";var Iae=require("util"),Pae=dae(),Ml=Dae(),B5=Dv(),Rae=t=>t===""||t==="./",Oae=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},Hn=(t,e,n)=>{e=[].concat(e),t=[].concat(t);let r=new Set,i=new Set,s=new Set,o=0,a=u=>{s.add(u.output),n&&n.onResult&&n.onResult(u)};for(let u=0;u<e.length;u++){let d=Ml(String(e[u]),{...n,onResult:a},!0),f=d.state.negated||d.state.negatedExtglob;f&&o++;for(let m of t){let b=d(m,!0);(f?!b.isMatch:b.isMatch)&&(f?r.add(b.output):(r.delete(b.output),i.add(b.output)))}}let c=(o===e.length?[...s]:[...i]).filter(u=>!r.has(u));if(n&&c.length===0){if(n.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(n.nonull===!0||n.nullglob===!0)return n.unescape?e.map(u=>u.replace(/\\/g,"")):e}return c};Hn.match=Hn;Hn.matcher=(t,e)=>Ml(t,e);Hn.isMatch=(t,e,n)=>Ml(e,n)(t);Hn.any=Hn.isMatch;Hn.not=(t,e,n={})=>{e=[].concat(e).map(String);let r=new Set,i=[],s=a=>{n.onResult&&n.onResult(a),i.push(a.output)},o=new Set(Hn(t,e,{...n,onResult:s}));for(let a of i)o.has(a)||r.add(a);return[...r]};Hn.contains=(t,e,n)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Iae.inspect(t)}"`);if(Array.isArray(e))return e.some(r=>Hn.contains(t,r,n));if(typeof e=="string"){if(Rae(t)||Rae(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Hn.isMatch(t,e,{...n,contains:!0})};Hn.matchKeys=(t,e,n)=>{if(!B5.isObject(t))throw new TypeError("Expected the first argument to be an object");let r=Hn(Object.keys(t),e,n),i={};for(let s of r)i[s]=t[s];return i};Hn.some=(t,e,n)=>{let r=[].concat(t);for(let i of[].concat(e)){let s=Ml(String(i),n);if(r.some(o=>s(o)))return!0}return!1};Hn.every=(t,e,n)=>{let r=[].concat(t);for(let i of[].concat(e)){let s=Ml(String(i),n);if(!r.every(o=>s(o)))return!1}return!0};Hn.all=(t,e,n)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Iae.inspect(t)}"`);return[].concat(e).every(r=>Ml(r,n)(t))};Hn.capture=(t,e,n)=>{let r=B5.isWindows(n),s=Ml.makeRe(String(t),{...n,capture:!0}).exec(r?B5.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Hn.makeRe=(...t)=>Ml.makeRe(...t);Hn.scan=(...t)=>Ml.scan(...t);Hn.parse=(t,e)=>{let n=[];for(let r of[].concat(t||[]))for(let i of Pae(String(r),e))n.push(Ml.parse(i,e));return n};Hn.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!Oae(t)?[t]:Pae(t,e)};Hn.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Hn.braces(t,{...e,expand:!0})};Hn.hasBraces=Oae;Nae.exports=Hn});var Kae=I(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.isAbsolute=tt.partitionAbsoluteAndRelative=tt.removeDuplicateSlashes=tt.matchAny=tt.convertPatternsToRe=tt.makeRe=tt.getPatternParts=tt.expandBraceExpansion=tt.expandPatternsWithBraceExpansion=tt.isAffectDepthOfReadingPattern=tt.endsWithSlashGlobStar=tt.hasGlobStar=tt.getBaseDirectory=tt.isPatternRelatedToParentDirectory=tt.getPatternsOutsideCurrentDirectory=tt.getPatternsInsideCurrentDirectory=tt.getPositivePatterns=tt.getNegativePatterns=tt.isPositivePattern=tt.isNegativePattern=tt.convertToNegativePattern=tt.convertToPositivePattern=tt.isDynamicPattern=tt.isStaticPattern=void 0;var qae=require("path"),P6e=Toe(),H5=Lae(),$ae="**",O6e="\\",N6e=/[*?]|^!/,L6e=/\[[^[]*]/,q6e=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,$6e=/[!*+?@]\([^(]*\)/,z6e=/,|\.\./,j6e=/(?!^)\/{2,}/g;function zae(t,e={}){return!jae(t,e)}tt.isStaticPattern=zae;function jae(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(O6e)||N6e.test(t)||L6e.test(t)||q6e.test(t)||e.extglob!==!1&&$6e.test(t)||e.braceExpansion!==!1&&W6e(t))}tt.isDynamicPattern=jae;function W6e(t){let e=t.indexOf("{");if(e===-1)return!1;let n=t.indexOf("}",e+1);if(n===-1)return!1;let r=t.slice(e,n);return z6e.test(r)}function U6e(t){return $x(t)?t.slice(1):t}tt.convertToPositivePattern=U6e;function B6e(t){return"!"+t}tt.convertToNegativePattern=B6e;function $x(t){return t.startsWith("!")&&t[1]!=="("}tt.isNegativePattern=$x;function Wae(t){return!$x(t)}tt.isPositivePattern=Wae;function H6e(t){return t.filter($x)}tt.getNegativePatterns=H6e;function V6e(t){return t.filter(Wae)}tt.getPositivePatterns=V6e;function K6e(t){return t.filter(e=>!V5(e))}tt.getPatternsInsideCurrentDirectory=K6e;function G6e(t){return t.filter(V5)}tt.getPatternsOutsideCurrentDirectory=G6e;function V5(t){return t.startsWith("..")||t.startsWith("./..")}tt.isPatternRelatedToParentDirectory=V5;function J6e(t){return P6e(t,{flipBackslashes:!1})}tt.getBaseDirectory=J6e;function Y6e(t){return t.includes($ae)}tt.hasGlobStar=Y6e;function Uae(t){return t.endsWith("/"+$ae)}tt.endsWithSlashGlobStar=Uae;function Q6e(t){let e=qae.basename(t);return Uae(t)||zae(e)}tt.isAffectDepthOfReadingPattern=Q6e;function X6e(t){return t.reduce((e,n)=>e.concat(Bae(n)),[])}tt.expandPatternsWithBraceExpansion=X6e;function Bae(t){let e=H5.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((n,r)=>n.length-r.length),e.filter(n=>n!=="")}tt.expandBraceExpansion=Bae;function Z6e(t,e){let{parts:n}=H5.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return n.length===0&&(n=[t]),n[0].startsWith("/")&&(n[0]=n[0].slice(1),n.unshift("")),n}tt.getPatternParts=Z6e;function Hae(t,e){return H5.makeRe(t,e)}tt.makeRe=Hae;function eBe(t,e){return t.map(n=>Hae(n,e))}tt.convertPatternsToRe=eBe;function tBe(t,e){return e.some(n=>n.test(t))}tt.matchAny=tBe;function nBe(t){return t.replace(j6e,"/")}tt.removeDuplicateSlashes=nBe;function rBe(t){let e=[],n=[];for(let r of t)Vae(r)?e.push(r):n.push(r);return[e,n]}tt.partitionAbsoluteAndRelative=rBe;function Vae(t){return qae.isAbsolute(t)}tt.isAbsolute=Vae});var Qae=I((v_t,Yae)=>{"use strict";var iBe=require("stream"),Gae=iBe.PassThrough,sBe=Array.prototype.slice;Yae.exports=oBe;function oBe(){let t=[],e=sBe.call(arguments),n=!1,r=e[e.length-1];r&&!Array.isArray(r)&&r.pipe==null?e.pop():r={};let i=r.end!==!1,s=r.pipeError===!0;r.objectMode==null&&(r.objectMode=!0),r.highWaterMark==null&&(r.highWaterMark=64*1024);let o=Gae(r);function a(){for(let u=0,d=arguments.length;u<d;u++)t.push(Jae(arguments[u],r));return l(),this}function l(){if(n)return;n=!0;let u=t.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let d=u.length+1;function f(){--d>0||(n=!1,l())}function m(b){function g(){b.removeListener("merge2UnpipeEnd",g),b.removeListener("end",g),s&&b.removeListener("error",w),f()}function w(_){o.emit("error",_)}if(b._readableState.endEmitted)return f();b.on("merge2UnpipeEnd",g),b.on("end",g),s&&b.on("error",w),b.pipe(o,{end:!1}),b.resume()}for(let b=0;b<u.length;b++)m(u[b]);f()}function c(){n=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Jae(t,e){if(Array.isArray(t))for(let n=0,r=t.length;n<r;n++)t[n]=Jae(t[n],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Gae(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Zae=I(zx=>{"use strict";Object.defineProperty(zx,"__esModule",{value:!0});zx.merge=void 0;var aBe=Qae();function lBe(t){let e=aBe(t);return t.forEach(n=>{n.once("error",r=>e.emit("error",r))}),e.once("close",()=>Xae(t)),e.once("end",()=>Xae(t)),e}zx.merge=lBe;function Xae(t){t.forEach(e=>e.emit("close"))}});var ele=I(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.isEmpty=Qm.isString=void 0;function cBe(t){return typeof t=="string"}Qm.isString=cBe;function uBe(t){return t===""}Qm.isEmpty=uBe});var Bc=I(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.string=Ri.stream=Ri.pattern=Ri.path=Ri.fs=Ri.errno=Ri.array=void 0;var dBe=goe();Ri.array=dBe;var hBe=boe();Ri.errno=hBe;var fBe=yoe();Ri.fs=fBe;var pBe=Soe();Ri.path=pBe;var mBe=Kae();Ri.pattern=mBe;var gBe=Zae();Ri.stream=gBe;var bBe=ele();Ri.string=bBe});var ile=I(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.convertPatternGroupToTask=Ii.convertPatternGroupsToTasks=Ii.groupPatternsByBaseDirectory=Ii.getNegativePatternsAsPositive=Ii.getPositivePatterns=Ii.convertPatternsToTasks=Ii.generate=void 0;var Ra=Bc();function yBe(t,e){let n=tle(t,e),r=tle(e.ignore,e),i=nle(n),s=rle(n,r),o=i.filter(u=>Ra.pattern.isStaticPattern(u,e)),a=i.filter(u=>Ra.pattern.isDynamicPattern(u,e)),l=K5(o,s,!1),c=K5(a,s,!0);return l.concat(c)}Ii.generate=yBe;function tle(t,e){let n=t;return e.braceExpansion&&(n=Ra.pattern.expandPatternsWithBraceExpansion(n)),e.baseNameMatch&&(n=n.map(r=>r.includes("/")?r:`**/${r}`)),n.map(r=>Ra.pattern.removeDuplicateSlashes(r))}function K5(t,e,n){let r=[],i=Ra.pattern.getPatternsOutsideCurrentDirectory(t),s=Ra.pattern.getPatternsInsideCurrentDirectory(t),o=G5(i),a=G5(s);return r.push(...J5(o,e,n)),"."in a?r.push(Y5(".",s,e,n)):r.push(...J5(a,e,n)),r}Ii.convertPatternsToTasks=K5;function nle(t){return Ra.pattern.getPositivePatterns(t)}Ii.getPositivePatterns=nle;function rle(t,e){return Ra.pattern.getNegativePatterns(t).concat(e).map(Ra.pattern.convertToPositivePattern)}Ii.getNegativePatternsAsPositive=rle;function G5(t){let e={};return t.reduce((n,r)=>{let i=Ra.pattern.getBaseDirectory(r);return i in n?n[i].push(r):n[i]=[r],n},e)}Ii.groupPatternsByBaseDirectory=G5;function J5(t,e,n){return Object.keys(t).map(r=>Y5(r,t[r],e,n))}Ii.convertPatternGroupsToTasks=J5;function Y5(t,e,n,r){return{dynamic:r,positive:e,negative:n,base:t,patterns:[].concat(e,n.map(Ra.pattern.convertToNegativePattern))}}Ii.convertPatternGroupToTask=Y5});var ole=I(jx=>{"use strict";Object.defineProperty(jx,"__esModule",{value:!0});jx.read=void 0;function vBe(t,e,n){e.fs.lstat(t,(r,i)=>{if(r!==null){sle(n,r);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){Q5(n,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){sle(n,s);return}Q5(n,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Q5(n,o)})})}jx.read=vBe;function sle(t,e){t(e)}function Q5(t,e){t(null,e)}});var ale=I(Wx=>{"use strict";Object.defineProperty(Wx,"__esModule",{value:!0});Wx.read=void 0;function wBe(t,e){let n=e.fs.lstatSync(t);if(!n.isSymbolicLink()||!e.followSymbolicLink)return n;try{let r=e.fs.statSync(t);return e.markSymbolicLink&&(r.isSymbolicLink=()=>!0),r}catch(r){if(!e.throwErrorOnBrokenSymbolicLink)return n;throw r}}Wx.read=wBe});var lle=I(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.createFileSystemAdapter=kd.FILE_SYSTEM_ADAPTER=void 0;var Ux=require("fs");kd.FILE_SYSTEM_ADAPTER={lstat:Ux.lstat,stat:Ux.stat,lstatSync:Ux.lstatSync,statSync:Ux.statSync};function _Be(t){return t===void 0?kd.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},kd.FILE_SYSTEM_ADAPTER),t)}kd.createFileSystemAdapter=_Be});var cle=I(Z5=>{"use strict";Object.defineProperty(Z5,"__esModule",{value:!0});var SBe=lle(),X5=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=SBe.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,n){return e??n}};Z5.default=X5});var lf=I(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.statSync=Ad.stat=Ad.Settings=void 0;var ule=ole(),CBe=ale(),eq=cle();Ad.Settings=eq.default;function xBe(t,e,n){if(typeof e=="function"){ule.read(t,tq(),e);return}ule.read(t,tq(e),n)}Ad.stat=xBe;function kBe(t,e){let n=tq(e);return CBe.read(t,n)}Ad.statSync=kBe;function tq(t={}){return t instanceof eq.default?t:new eq.default(t)}});var fle=I((T_t,hle)=>{var dle;hle.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(dle||(dle=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var mle=I((M_t,ple)=>{ple.exports=FBe;var ABe=fle();function FBe(t,e){let n,r,i,s=!0;Array.isArray(t)?(n=[],r=t.length):(i=Object.keys(t),n={},r=i.length);function o(l){function c(){e&&e(l,n),e=null}s?ABe(c):c()}function a(l,c,u){n[l]=u,(--r===0||c)&&o(c)}r?i?i.forEach(function(l){t[l](function(c,u){a(l,c,u)})}):t.forEach(function(l,c){l(function(u,d){a(c,u,d)})}):o(null),s=!1}});var nq=I(Hx=>{"use strict";Object.defineProperty(Hx,"__esModule",{value:!0});Hx.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Bx=process.versions.node.split(".");if(Bx[0]===void 0||Bx[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var gle=Number.parseInt(Bx[0],10),EBe=Number.parseInt(Bx[1],10),ble=10,TBe=10,MBe=gle>ble,DBe=gle===ble&&EBe>=TBe;Hx.IS_SUPPORT_READDIR_WITH_FILE_TYPES=MBe||DBe});var yle=I(Vx=>{"use strict";Object.defineProperty(Vx,"__esModule",{value:!0});Vx.createDirentFromStats=void 0;var rq=class{constructor(e,n){this.name=e,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function RBe(t,e){return new rq(t,e)}Vx.createDirentFromStats=RBe});var iq=I(Kx=>{"use strict";Object.defineProperty(Kx,"__esModule",{value:!0});Kx.fs=void 0;var IBe=yle();Kx.fs=IBe});var sq=I(Gx=>{"use strict";Object.defineProperty(Gx,"__esModule",{value:!0});Gx.joinPathSegments=void 0;function PBe(t,e,n){return t.endsWith(n)?t+e:t+n+e}Gx.joinPathSegments=PBe});var xle=I(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.readdir=Fd.readdirWithFileTypes=Fd.read=void 0;var OBe=lf(),vle=mle(),NBe=nq(),wle=iq(),_le=sq();function LBe(t,e,n){if(!e.stats&&NBe.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Sle(t,e,n);return}Cle(t,e,n)}Fd.read=LBe;function Sle(t,e,n){e.fs.readdir(t,{withFileTypes:!0},(r,i)=>{if(r!==null){Jx(n,r);return}let s=i.map(a=>({dirent:a,name:a.name,path:_le.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){oq(n,s);return}let o=s.map(a=>qBe(a,e));vle(o,(a,l)=>{if(a!==null){Jx(n,a);return}oq(n,l)})})}Fd.readdirWithFileTypes=Sle;function qBe(t,e){return n=>{if(!t.dirent.isSymbolicLink()){n(null,t);return}e.fs.stat(t.path,(r,i)=>{if(r!==null){if(e.throwErrorOnBrokenSymbolicLink){n(r);return}n(null,t);return}t.dirent=wle.fs.createDirentFromStats(t.name,i),n(null,t)})}}function Cle(t,e,n){e.fs.readdir(t,(r,i)=>{if(r!==null){Jx(n,r);return}let s=i.map(o=>{let a=_le.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{OBe.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let d={name:o,path:a,dirent:wle.fs.createDirentFromStats(o,u)};e.stats&&(d.stats=u),l(null,d)})}});vle(s,(o,a)=>{if(o!==null){Jx(n,o);return}oq(n,a)})})}Fd.readdir=Cle;function Jx(t,e){t(e)}function oq(t,e){t(null,e)}});var Tle=I(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.readdir=Ed.readdirWithFileTypes=Ed.read=void 0;var $Be=lf(),zBe=nq(),kle=iq(),Ale=sq();function jBe(t,e){return!e.stats&&zBe.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Fle(t,e):Ele(t,e)}Ed.read=jBe;function Fle(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(r=>{let i={dirent:r,name:r.name,path:Ale.joinPathSegments(t,r.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=kle.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}Ed.readdirWithFileTypes=Fle;function Ele(t,e){return e.fs.readdirSync(t).map(r=>{let i=Ale.joinPathSegments(t,r,e.pathSegmentSeparator),s=$Be.statSync(i,e.fsStatSettings),o={name:r,path:i,dirent:kle.fs.createDirentFromStats(r,s)};return e.stats&&(o.stats=s),o})}Ed.readdir=Ele});var Mle=I(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.createFileSystemAdapter=Td.FILE_SYSTEM_ADAPTER=void 0;var Xm=require("fs");Td.FILE_SYSTEM_ADAPTER={lstat:Xm.lstat,stat:Xm.stat,lstatSync:Xm.lstatSync,statSync:Xm.statSync,readdir:Xm.readdir,readdirSync:Xm.readdirSync};function WBe(t){return t===void 0?Td.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Td.FILE_SYSTEM_ADAPTER),t)}Td.createFileSystemAdapter=WBe});var Dle=I(lq=>{"use strict";Object.defineProperty(lq,"__esModule",{value:!0});var UBe=require("path"),BBe=lf(),HBe=Mle(),aq=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=HBe.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,UBe.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new BBe.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,n){return e??n}};lq.default=aq});var Yx=I(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.Settings=Md.scandirSync=Md.scandir=void 0;var Rle=xle(),VBe=Tle(),cq=Dle();Md.Settings=cq.default;function KBe(t,e,n){if(typeof e=="function"){Rle.read(t,uq(),e);return}Rle.read(t,uq(e),n)}Md.scandir=KBe;function GBe(t,e){let n=uq(e);return VBe.read(t,n)}Md.scandirSync=GBe;function uq(t={}){return t instanceof cq.default?t:new cq.default(t)}});var Ple=I((z_t,Ile)=>{"use strict";function JBe(t){var e=new t,n=e;function r(){var s=e;return s.next?e=s.next:(e=new t,n=e),s.next=null,s}function i(s){n.next=s,n=s}return{get:r,release:i}}Ile.exports=JBe});var Nle=I((j_t,dq)=>{"use strict";var YBe=Ple();function Ole(t,e,n){if(typeof t=="function"&&(n=e,e=t,t=null),!(n>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var r=YBe(QBe),i=null,s=null,o=0,a=null,l={push:g,drain:Vo,saturated:Vo,pause:u,paused:!1,get concurrency(){return n},set concurrency(A){if(!(A>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(n=A,!l.paused)for(;i&&o<n;)o++,_()},running:c,resume:m,idle:b,length:d,getQueue:f,unshift:w,empty:Vo,kill:S,killAndDrain:v,error:T};return l;function c(){return o}function u(){l.paused=!0}function d(){for(var A=i,R=0;A;)A=A.next,R++;return R}function f(){for(var A=i,R=[];A;)R.push(A.value),A=A.next;return R}function m(){if(l.paused){if(l.paused=!1,i===null){o++,_();return}for(;i&&o<n;)o++,_()}}function b(){return o===0&&l.length()===0}function g(A,R){var k=r.get();k.context=t,k.release=_,k.value=A,k.callback=R||Vo,k.errorHandler=a,o>=n||l.paused?s?(s.next=k,s=k):(i=k,s=k,l.saturated()):(o++,e.call(t,k.value,k.worked))}function w(A,R){var k=r.get();k.context=t,k.release=_,k.value=A,k.callback=R||Vo,k.errorHandler=a,o>=n||l.paused?i?(k.next=i,i=k):(i=k,s=k,l.saturated()):(o++,e.call(t,k.value,k.worked))}function _(A){A&&r.release(A);var R=i;R&&o<=n?l.paused?o--:(s===i&&(s=null),i=R.next,R.next=null,e.call(t,R.value,R.worked),s===null&&l.empty()):--o===0&&l.drain()}function S(){i=null,s=null,l.drain=Vo}function v(){i=null,s=null,l.drain(),l.drain=Vo}function T(A){a=A}}function Vo(){}function QBe(){this.value=null,this.callback=Vo,this.next=null,this.release=Vo,this.context=null,this.errorHandler=null;var t=this;this.worked=function(n,r){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=Vo,t.errorHandler&&s(n,o),i.call(t.context,n,r),t.release(t)}}function XBe(t,e,n){typeof t=="function"&&(n=e,e=t,t=null);function r(u,d){e.call(this,u).then(function(f){d(null,f)},d)}var i=Ole(t,r,n),s=i.push,o=i.unshift;return i.push=a,i.unshift=l,i.drained=c,i;function a(u){var d=new Promise(function(f,m){s(u,function(b,g){if(b){m(b);return}f(g)})});return d.catch(Vo),d}function l(u){var d=new Promise(function(f,m){o(u,function(b,g){if(b){m(b);return}f(g)})});return d.catch(Vo),d}function c(){var u=new Promise(function(d){process.nextTick(function(){if(i.idle())d();else{var f=i.drain;i.drain=function(){typeof f=="function"&&f(),d(),i.drain=f}}})});return u}}dq.exports=Ole;dq.exports.promise=XBe});var Qx=I(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.joinPathSegments=Dl.replacePathSegmentSeparator=Dl.isAppliedFilter=Dl.isFatalError=void 0;function ZBe(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Dl.isFatalError=ZBe;function eHe(t,e){return t===null||t(e)}Dl.isAppliedFilter=eHe;function tHe(t,e){return t.split(/[/\\]/).join(e)}Dl.replacePathSegmentSeparator=tHe;function nHe(t,e,n){return t===""?e:t.endsWith(n)?t+e:t+n+e}Dl.joinPathSegments=nHe});var pq=I(fq=>{"use strict";Object.defineProperty(fq,"__esModule",{value:!0});var rHe=Qx(),hq=class{constructor(e,n){this._root=e,this._settings=n,this._root=rHe.replacePathSegmentSeparator(e,n.pathSegmentSeparator)}};fq.default=hq});var bq=I(gq=>{"use strict";Object.defineProperty(gq,"__esModule",{value:!0});var iHe=require("events"),sHe=Yx(),oHe=Nle(),Xx=Qx(),aHe=pq(),mq=class extends aHe.default{constructor(e,n){super(e,n),this._settings=n,this._scandir=sHe.scandir,this._emitter=new iHe.EventEmitter,this._queue=oHe(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,n){let r={directory:e,base:n};this._queue.push(r,i=>{i!==null&&this._handleError(i)})}_worker(e,n){this._scandir(e.directory,this._settings.fsScandirSettings,(r,i)=>{if(r!==null){n(r,void 0);return}for(let s of i)this._handleEntry(s,e.base);n(null,void 0)})}_handleError(e){this._isDestroyed||!Xx.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,n){if(this._isDestroyed||this._isFatalError)return;let r=e.path;n!==void 0&&(e.path=Xx.joinPathSegments(n,e.name,this._settings.pathSegmentSeparator)),Xx.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Xx.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(r,n===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};gq.default=mq});var Lle=I(vq=>{"use strict";Object.defineProperty(vq,"__esModule",{value:!0});var lHe=bq(),yq=class{constructor(e,n){this._root=e,this._settings=n,this._reader=new lHe.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(n=>{cHe(e,n)}),this._reader.onEntry(n=>{this._storage.push(n)}),this._reader.onEnd(()=>{uHe(e,this._storage)}),this._reader.read()}};vq.default=yq;function cHe(t,e){t(e)}function uHe(t,e){t(null,e)}});var qle=I(_q=>{"use strict";Object.defineProperty(_q,"__esModule",{value:!0});var dHe=require("stream"),hHe=bq(),wq=class{constructor(e,n){this._root=e,this._settings=n,this._reader=new hHe.default(this._root,this._settings),this._stream=new dHe.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};_q.default=wq});var $le=I(Cq=>{"use strict";Object.defineProperty(Cq,"__esModule",{value:!0});var fHe=Yx(),Zx=Qx(),pHe=pq(),Sq=class extends pHe.default{constructor(){super(...arguments),this._scandir=fHe.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,n){this._queue.add({directory:e,base:n})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,n){try{let r=this._scandir(e,this._settings.fsScandirSettings);for(let i of r)this._handleEntry(i,n)}catch(r){this._handleError(r)}}_handleError(e){if(Zx.isFatalError(this._settings,e))throw e}_handleEntry(e,n){let r=e.path;n!==void 0&&(e.path=Zx.joinPathSegments(n,e.name,this._settings.pathSegmentSeparator)),Zx.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Zx.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(r,n===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Cq.default=Sq});var zle=I(kq=>{"use strict";Object.defineProperty(kq,"__esModule",{value:!0});var mHe=$le(),xq=class{constructor(e,n){this._root=e,this._settings=n,this._reader=new mHe.default(this._root,this._settings)}read(){return this._reader.read()}};kq.default=xq});var jle=I(Fq=>{"use strict";Object.defineProperty(Fq,"__esModule",{value:!0});var gHe=require("path"),bHe=Yx(),Aq=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,gHe.sep),this.fsScandirSettings=new bHe.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,n){return e??n}};Fq.default=Aq});var tk=I(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.Settings=Rl.walkStream=Rl.walkSync=Rl.walk=void 0;var Wle=Lle(),yHe=qle(),vHe=zle(),Eq=jle();Rl.Settings=Eq.default;function wHe(t,e,n){if(typeof e=="function"){new Wle.default(t,ek()).read(e);return}new Wle.default(t,ek(e)).read(n)}Rl.walk=wHe;function _He(t,e){let n=ek(e);return new vHe.default(t,n).read()}Rl.walkSync=_He;function SHe(t,e){let n=ek(e);return new yHe.default(t,n).read()}Rl.walkStream=SHe;function ek(t={}){return t instanceof Eq.default?t:new Eq.default(t)}});var nk=I(Mq=>{"use strict";Object.defineProperty(Mq,"__esModule",{value:!0});var CHe=require("path"),xHe=lf(),Ule=Bc(),Tq=class{constructor(e){this._settings=e,this._fsStatSettings=new xHe.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return CHe.resolve(this._settings.cwd,e)}_makeEntry(e,n){let r={name:n,path:n,dirent:Ule.fs.createDirentFromStats(n,e)};return this._settings.stats&&(r.stats=e),r}_isFatalError(e){return!Ule.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Mq.default=Tq});var Iq=I(Rq=>{"use strict";Object.defineProperty(Rq,"__esModule",{value:!0});var kHe=require("stream"),AHe=lf(),FHe=tk(),EHe=nk(),Dq=class extends EHe.default{constructor(){super(...arguments),this._walkStream=FHe.walkStream,this._stat=AHe.stat}dynamic(e,n){return this._walkStream(e,n)}static(e,n){let r=e.map(this._getFullEntryPath,this),i=new kHe.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(r[s],e[s],n).then(l=>{l!==null&&n.entryFilter(l)&&i.push(l),s===r.length-1&&i.end(),a()}).catch(a);for(let s=0;s<r.length;s++)i.write(s);return i}_getEntry(e,n,r){return this._getStat(e).then(i=>this._makeEntry(i,n)).catch(i=>{if(r.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((n,r)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?n(s):r(i))})}};Rq.default=Dq});var Ble=I(Oq=>{"use strict";Object.defineProperty(Oq,"__esModule",{value:!0});var THe=tk(),MHe=nk(),DHe=Iq(),Pq=class extends MHe.default{constructor(){super(...arguments),this._walkAsync=THe.walk,this._readerStream=new DHe.default(this._settings)}dynamic(e,n){return new Promise((r,i)=>{this._walkAsync(e,n,(s,o)=>{s===null?r(o):i(s)})})}async static(e,n){let r=[],i=this._readerStream.static(e,n);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>r.push(a)),i.once("end",()=>s(r))})}};Oq.default=Pq});var Hle=I(Lq=>{"use strict";Object.defineProperty(Lq,"__esModule",{value:!0});var Iv=Bc(),Nq=class{constructor(e,n,r){this._patterns=e,this._settings=n,this._micromatchOptions=r,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let n=this._getPatternSegments(e),r=this._splitSegmentsIntoSections(n);this._storage.push({complete:r.length<=1,pattern:e,segments:n,sections:r})}}_getPatternSegments(e){return Iv.pattern.getPatternParts(e,this._micromatchOptions).map(r=>Iv.pattern.isDynamicPattern(r,this._settings)?{dynamic:!0,pattern:r,patternRe:Iv.pattern.makeRe(r,this._micromatchOptions)}:{dynamic:!1,pattern:r})}_splitSegmentsIntoSections(e){return Iv.array.splitWhen(e,n=>n.dynamic&&Iv.pattern.hasGlobStar(n.pattern))}};Lq.default=Nq});var Vle=I($q=>{"use strict";Object.defineProperty($q,"__esModule",{value:!0});var RHe=Hle(),qq=class extends RHe.default{match(e){let n=e.split("/"),r=n.length,i=this._storage.filter(s=>!s.complete||s.segments.length>r);for(let s of i){let o=s.sections[0];if(!s.complete&&r>o.length||n.every((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};$q.default=qq});var Kle=I(jq=>{"use strict";Object.defineProperty(jq,"__esModule",{value:!0});var rk=Bc(),IHe=Vle(),zq=class{constructor(e,n){this._settings=e,this._micromatchOptions=n}getFilter(e,n,r){let i=this._getMatcher(n),s=this._getNegativePatternsRe(r);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new IHe.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let n=e.filter(rk.pattern.isAffectDepthOfReadingPattern);return rk.pattern.convertPatternsToRe(n,this._micromatchOptions)}_filter(e,n,r,i){if(this._isSkippedByDeep(e,n.path)||this._isSkippedSymbolicLink(n))return!1;let s=rk.path.removeLeadingDotSegment(n.path);return this._isSkippedByPositivePatterns(s,r)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,n){return this._settings.deep===1/0?!1:this._getEntryLevel(e,n)>=this._settings.deep}_getEntryLevel(e,n){let r=n.split("/").length;if(e==="")return r;let i=e.split("/").length;return r-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,n){return!this._settings.baseNameMatch&&!n.match(e)}_isSkippedByNegativePatterns(e,n){return!rk.pattern.matchAny(e,n)}};jq.default=zq});var Gle=I(Uq=>{"use strict";Object.defineProperty(Uq,"__esModule",{value:!0});var Dd=Bc(),Wq=class{constructor(e,n){this._settings=e,this._micromatchOptions=n,this.index=new Map}getFilter(e,n){let[r,i]=Dd.pattern.partitionAbsoluteAndRelative(n),s={positive:{all:Dd.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:Dd.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:Dd.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o=>this._filter(o,s)}_filter(e,n){let r=Dd.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(r)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let i=this._isMatchToPatternsSet(r,n,e.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(r),i}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,n,r){return!(!this._isMatchToPatterns(e,n.positive.all,r)||this._isMatchToPatterns(e,n.negative.relative,r)||this._isMatchToAbsoluteNegative(e,n.negative.absolute,r))}_isMatchToAbsoluteNegative(e,n,r){if(n.length===0)return!1;let i=Dd.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(i,n,r)}_isMatchToPatterns(e,n,r){if(n.length===0)return!1;let i=Dd.pattern.matchAny(e,n);return!i&&r?Dd.pattern.matchAny(e+"/",n):i}};Uq.default=Wq});var Jle=I(Hq=>{"use strict";Object.defineProperty(Hq,"__esModule",{value:!0});var PHe=Bc(),Bq=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return PHe.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Hq.default=Bq});var Qle=I(Kq=>{"use strict";Object.defineProperty(Kq,"__esModule",{value:!0});var Yle=Bc(),Vq=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let n=e.path;return this._settings.absolute&&(n=Yle.path.makeAbsolute(this._settings.cwd,n),n=Yle.path.unixify(n)),this._settings.markDirectories&&e.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:n}):n}};Kq.default=Vq});var ik=I(Jq=>{"use strict";Object.defineProperty(Jq,"__esModule",{value:!0});var OHe=require("path"),NHe=Kle(),LHe=Gle(),qHe=Jle(),$He=Qle(),Gq=class{constructor(e){this._settings=e,this.errorFilter=new qHe.default(this._settings),this.entryFilter=new LHe.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new NHe.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new $He.default(this._settings)}_getRootDirectory(e){return OHe.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let n=e.base==="."?"":e.base;return{basePath:n,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(n,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Jq.default=Gq});var Xle=I(Qq=>{"use strict";Object.defineProperty(Qq,"__esModule",{value:!0});var zHe=Ble(),jHe=ik(),Yq=class extends jHe.default{constructor(){super(...arguments),this._reader=new zHe.default(this._settings)}async read(e){let n=this._getRootDirectory(e),r=this._getReaderOptions(e);return(await this.api(n,e,r)).map(s=>r.transform(s))}api(e,n,r){return n.dynamic?this._reader.dynamic(e,r):this._reader.static(n.patterns,r)}};Qq.default=Yq});var Zle=I(Zq=>{"use strict";Object.defineProperty(Zq,"__esModule",{value:!0});var WHe=require("stream"),UHe=Iq(),BHe=ik(),Xq=class extends BHe.default{constructor(){super(...arguments),this._reader=new UHe.default(this._settings)}read(e){let n=this._getRootDirectory(e),r=this._getReaderOptions(e),i=this.api(n,e,r),s=new WHe.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",r.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,n,r){return n.dynamic?this._reader.dynamic(e,r):this._reader.static(n.patterns,r)}};Zq.default=Xq});var ece=I(t3=>{"use strict";Object.defineProperty(t3,"__esModule",{value:!0});var HHe=lf(),VHe=tk(),KHe=nk(),e3=class extends KHe.default{constructor(){super(...arguments),this._walkSync=VHe.walkSync,this._statSync=HHe.statSync}dynamic(e,n){return this._walkSync(e,n)}static(e,n){let r=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,n);o===null||!n.entryFilter(o)||r.push(o)}return r}_getEntry(e,n,r){try{let i=this._getStat(e);return this._makeEntry(i,n)}catch(i){if(r.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};t3.default=e3});var tce=I(r3=>{"use strict";Object.defineProperty(r3,"__esModule",{value:!0});var GHe=ece(),JHe=ik(),n3=class extends JHe.default{constructor(){super(...arguments),this._reader=new GHe.default(this._settings)}read(e){let n=this._getRootDirectory(e),r=this._getReaderOptions(e);return this.api(n,e,r).map(r.transform)}api(e,n,r){return n.dynamic?this._reader.dynamic(e,r):this._reader.static(n.patterns,r)}};r3.default=n3});var nce=I(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});eg.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Zm=require("fs"),YHe=require("os"),QHe=Math.max(YHe.cpus().length,1);eg.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Zm.lstat,lstatSync:Zm.lstatSync,stat:Zm.stat,statSync:Zm.statSync,readdir:Zm.readdir,readdirSync:Zm.readdirSync};var i3=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,QHe),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,n){return e===void 0?n:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},eg.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};eg.default=i3});var sce=I((hSt,ice)=>{"use strict";var rce=ile(),XHe=Xle(),ZHe=Zle(),eVe=tce(),s3=nce(),Ko=Bc();async function o3(t,e){Ia(t);let n=a3(t,XHe.default,e),r=await Promise.all(n);return Ko.array.flatten(r)}(function(t){t.glob=t,t.globSync=e,t.globStream=n,t.async=t;function e(c,u){Ia(c);let d=a3(c,eVe.default,u);return Ko.array.flatten(d)}t.sync=e;function n(c,u){Ia(c);let d=a3(c,ZHe.default,u);return Ko.stream.merge(d)}t.stream=n;function r(c,u){Ia(c);let d=[].concat(c),f=new s3.default(u);return rce.generate(d,f)}t.generateTasks=r;function i(c,u){Ia(c);let d=new s3.default(u);return Ko.pattern.isDynamicPattern(c,d)}t.isDynamicPattern=i;function s(c){return Ia(c),Ko.path.escape(c)}t.escapePath=s;function o(c){return Ia(c),Ko.path.convertPathToPattern(c)}t.convertPathToPattern=o;let a;(function(c){function u(f){return Ia(f),Ko.path.escapePosixPath(f)}c.escapePath=u;function d(f){return Ia(f),Ko.path.convertPosixPathToPattern(f)}c.convertPathToPattern=d})(a=t.posix||(t.posix={}));let l;(function(c){function u(f){return Ia(f),Ko.path.escapeWindowsPath(f)}c.escapePath=u;function d(f){return Ia(f),Ko.path.convertWindowsPathToPattern(f)}c.convertPathToPattern=d})(l=t.win32||(t.win32={}))})(o3||(o3={}));function a3(t,e,n){let r=[].concat(t),i=new s3.default(n),s=rce.generate(r,i),o=new e(i);return s.map(o.read,o)}function Ia(t){if(![].concat(t).every(r=>Ko.string.isString(r)&&!Ko.string.isEmpty(r)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}ice.exports=o3});var ace=I(tg=>{"use strict";var tVe=tg&&tg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tg,"__esModule",{value:!0});tg.create=void 0;var nVe=require("node:path"),cf=dc(),rVe=tVe(sce()),l3=rt(),oce=xc(),iVe=sm(),sVe=t=>({capabilities:{completionProvider:{triggerCharacters:["-"]},diagnosticProvider:{interFileDependencies:!1,workspaceDiagnostics:!1},codeLensProvider:{}},create(e){return{provideCompletionItems(n,r,i,s){if(s.isCancellationRequested)return null;let o=[],a=e.decodeEmbeddedDocumentUri(l3.URI.parse(n.uri)),l=a&&e.language.scripts.get(a[0]),c=a&&l?.generated?.embeddedCodes.get(a[1]);if(c instanceof oce.AstroVirtualCode){if(i.triggerCharacter==="-"){let u=aVe(c,n,r);u&&o.push(u)}return{isIncomplete:!1,items:o}}},provideDiagnostics(n,r){if(r.isCancellationRequested)return[];let i=e.decodeEmbeddedDocumentUri(l3.URI.parse(n.uri)),s=i&&e.language.scripts.get(i[0]),o=i&&s?.generated?.embeddedCodes.get(i[1]);if(!(o instanceof oce.AstroVirtualCode))return;return o.compilerDiagnostics.map(a);function a(l){let c=cf.Position.create(l.location.line-1,l.location.column-1),u=n.positionAt(n.offsetAt(c)+l.location.length);return{message:l.text+(l.hint?`
|
|
775
|
+
`){s=o;break}return r.substring(i,s)}var sf={},Fv={},Fx={},a7e=(t,e)=>`\${${t}${e?":"+e:""}}`;An.emmetSnippetField=a7e;function Da(t){return kv.syntaxes.stylesheet.includes(t)}function u5(t){return Da(t)?"stylesheet":"markup"}function d5(t){return Da(t)?"css":"html"}function Kse(t){let n={type:u5(t),syntax:t},r=(0,so.resolveConfig)(n);return t==="xml"?{}:r.snippets}function Gse(t,e){let n;for(let r=0;r<r7e;r++)if(t.endsWith(`${i5}${_x}`,e))e-=_x.length+1,n=n?_x+","+n:_x;else if(t.endsWith(`${i5}${Cx}`,e))e-=Cx.length+1,n=n?Cx+","+n:Cx;else if(t.endsWith(`${i5}${Sx}`,e))e-=Sx.length+1,n=n?Sx+","+n:Sx;else break;return{pos:e,filter:n}}function Jse(t,e,n){let r=Vse(t,e),i=r.substr(0,e.character),{pos:s,filter:o}=Gse(i,e.character),a=o?o.length+1:0,l=(0,so.extract)(r,s,n);return l?{abbreviationRange:Ma.Range.create(e.line,l.location,e.line,l.location+l.abbreviation.length+a),abbreviation:l.abbreviation,filter:o}:void 0}function l7e(t,e){if(!t)return;let{pos:n,filter:r}=Gse(t,t.length),i=Da(e)||e==="stylesheet"?{syntax:"stylesheet",lookAhead:!1}:{lookAhead:!0},s=(0,so.extract)(t,n,i);if(s)return{abbreviation:s.abbreviation,filter:r}}function Yse(t,e){if(!e)return!1;if(Da(t)){if(e.includes("#")){if(e.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(e);if(Av.includes(e.substring(0,e.indexOf("#"))))return!1}return n7e.test(e)}return e.startsWith("!")?!/[^!]/.test(e):(/\(/.test(e)||/\)/.test(e))&&!/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(e)&&!/\(.*\)[>\+\*\^]/.test(e)&&!/\[[^\[\]\(\)]+=".*"\]/.test(e)&&!/[>\+\*\^]\(.*\)/.test(e)?!1:t==="jsx"?t7e.test(e)&&Use.test(e):/^{%|{#|{{/.test(e)?!1:e7e.test(e)&&Use.test(e)}function c7e(t,e,n,r){var i,s;if(Da(t)&&r){let a=(i=r["stylesheet.between"])!==null&&i!==void 0?i:": ",l=(s=r["stylesheet.after"])!==null&&s!==void 0?s:";",c=e.indexOf(a[0],Math.max(e.length-a.length,0));c=c>=0?c:e.length;let u=e.substring(0,c);return n===`${u}${a}\${0}${l}`||n.replace(/\s/g,"")===e.replace(/\s/g,"")+l}if(t==="xml"&&Av.some(a=>a.startsWith(e.toLowerCase())))return!0;if(Av.includes(e.toLowerCase())||a5.includes(e)||/[-,:]/.test(e)&&!/--|::/.test(e)&&!e.endsWith(":"))return!1;if(/^\.{2,}$/.test(e))return!0;if(e===".")return!1;let o=e.match(/^([a-z,A-Z,\d]*)\.$/);return o?!(o[1]&&c5.htmlData.tags.includes(o[1])):t==="jsx"&&/^([A-Z][A-Za-z0-9]*)+$/.test(e)?!1:n.toLowerCase()===`<${e.toLowerCase()}>\${1}</${e.toLowerCase()}>`}function Qse(t,e,n){var r,i,s,o,a,l,c,u,d,f;e=e??{},e.preferences=(r=e.preferences)!==null&&r!==void 0?r:{};let m=e.preferences,b=Da(t)?t:"css",g=f7e(t,(i=e.syntaxProfiles)!==null&&i!==void 0?i:{}),_=(g&&g.filters?g.filters.split(","):[]).map($=>$.trim()),S=n&&n.split(",").some($=>$.trim()==="bem")||_.includes("bem"),v=n&&n.split(",").some($=>$.trim()==="c")||_.includes("c"),T=m7e(t,e.preferences),A=T?.stylesheet&&T.stylesheet.unitAliases||{},R={"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"output.field":An.emmetSnippetField,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":`
|
|
776
|
+
<!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":t==="jsx","stylesheet.shortHex":!0,"stylesheet.between":t==="stylus"?" ":": ","stylesheet.after":t==="sass"||t==="stylus"?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3},k={"output.tagCase":g.tagCase,"output.attributeCase":g.attributeCase,"output.attributeQuotes":g.attributeQuotes,"output.format":(s=g.format)!==null&&s!==void 0?s:!0,"output.formatSkip":m["format.noIndentTags"],"output.formatForce":m["format.forceIndentationForTags"],"output.inlineBreak":(o=g.inlineBreak)!==null&&o!==void 0?o:m["output.inlineBreak"],"output.compactBoolean":(a=g.compactBooleanAttributes)!==null&&a!==void 0?a:m["profile.allowCompactBoolean"],"output.reverseAttributes":m["output.reverseAttributes"],"output.selfClosingStyle":(c=(l=g.selfClosingStyle)!==null&&l!==void 0?l:m["output.selfClosingStyle"])!==null&&c!==void 0?c:u7e(t),"output.field":An.emmetSnippetField,"comment.enabled":v,"comment.trigger":m["filter.commentTrigger"],"comment.before":m["filter.commentBefore"],"comment.after":m["filter.commentAfter"],"bem.enabled":S,"bem.element":(u=m["bem.elementSeparator"])!==null&&u!==void 0?u:"__","bem.modifier":(d=m["bem.modifierSeparator"])!==null&&d!==void 0?d:"_","jsx.enabled":t==="jsx","stylesheet.shortHex":m["css.color.short"],"stylesheet.between":m[`${b}.valueSeparator`],"stylesheet.after":m[`${b}.propertyEnd`],"stylesheet.intUnit":m["css.intUnit"],"stylesheet.floatUnit":m["css.floatUnit"],"stylesheet.unitAliases":A,"stylesheet.fuzzySearchMinScore":m["css.fuzzySearchMinScore"]};if(t==="jsx"){let $={class:"className","class*":"styleName",for:"htmlFor"},F={"class*":"styles"};g["markup.attributes"]&&(k["markup.attributes"]=Object.assign(Object.assign({},$),g["markup.attributes"])),g["markup.valuePrefix"]&&(k["markup.valuePrefix"]=Object.assign(Object.assign({},F),g["markup.valuePrefix"]))}if(t==="vue"){let $={"class*":":class"},F={"class*":"$style"};g["markup.attributes"]&&(k["markup.attributes"]=Object.assign(Object.assign({},$),g["markup.attributes"])),g["markup.valuePrefix"]&&(k["markup.valuePrefix"]=Object.assign(Object.assign({},F),g["markup.valuePrefix"]))}let y={};[...Object.keys(R),...Object.keys(k)].forEach($=>{var F;let P=$;y[P]=(F=k[P])!==null&&F!==void 0?F:R[P]});let C=Object.assign(Object.assign({},R["stylesheet.unitAliases"]),k["stylesheet.unitAliases"]);y["stylesheet.unitAliases"]=C;let M=u5(t),E=p7e(e.variables),D=d5(t),N=M==="stylesheet"?(f=sf[t])!==null&&f!==void 0?f:sf[D]:sf[t];return{type:M,options:y,variables:E,snippets:N,syntax:t,text:void 0,maxRepeat:1e3}}function u7e(t){switch(t){case"xhtml":return"xhtml";case"xml":return"xml";case"xsl":return"xml";case"jsx":return"xhtml";default:return"html"}}function d7e(t,e){let n=(0,so.resolveConfig)(e);return e.type==="stylesheet"?(0,so.parseStylesheet)(t,n):(0,so.parseMarkup)(t,n)}function h7e(t,e){let n,r=(0,so.resolveConfig)(e);return e.type==="stylesheet"?typeof t=="string"?n=(0,so.default)(t,r):n=(0,so.stringifyStylesheet)(t,r):typeof t=="string"?n=(0,so.default)(t,r):n=(0,so.stringifyMarkup)(t,r),kx(Ax(n))}function f7e(t,e){e||(e={});let r=Object.assign({},Fx,e)[t];if(!r||typeof r=="string")return r==="xhtml"?{selfClosingStyle:"xhtml"}:{};let i={};for(let s in r)switch(s){case"tag_case":i.tagCase=r[s]==="lower"||r[s]==="upper"?r[s]:"";break;case"attr_case":i.attributeCase=r[s]==="lower"||r[s]==="upper"?r[s]:"";break;case"attr_quotes":i.attributeQuotes=r[s];break;case"tag_nl":i.format=r[s]===!0||r[s]===!1?r[s]:!0;break;case"inline_break":i.inlineBreak=r[s];break;case"self_closing_tag":if(r[s]===!0){i.selfClosingStyle="xml";break}if(r[s]===!1){i.selfClosingStyle="html";break}i.selfClosingStyle=r[s];break;case"compact_bool":i.compactBooleanAttributes=r[s];break;default:i[s]=r[s];break}return i}function p7e(t){return t?Object.assign({},Fv,t):Fv}function m7e(t,e){if(!e||typeof e!="object")return{};if(!Da(t)){let i={};for(let s in e)switch(s){case"filter.commentAfter":i.after=e[s];break;case"filter.commentBefore":i.before=e[s];break;case"filter.commentTrigger":i.trigger=e[s];break;default:break}return{comment:i}}let n=typeof e?.["css.fuzzySearchMinScore"]=="number"?e["css.fuzzySearchMinScore"]:.3;n>1?n=1:n<0&&(n=0);let r={fuzzySearchMinScore:n};for(let i in e)switch(i){case"css.floatUnit":r.floatUnit=e[i];break;case"css.intUnit":r.intUnit=e[i];break;case"css.unitAliases":let s={};e[i].split(",").forEach(o=>{if(!o||!o.trim()||!o.includes(":"))return;let a=o.substr(0,o.indexOf(":")),l=o.substr(a.length+1);!a.trim()||!l||(s[a.trim()]=l)}),r.unitAliases=s;break;case`${t}.valueSeparator`:r.between=e[i];break;case`${t}.propertyEnd`:r.after=e[i];break;default:break}return{stylesheet:r}}function g7e(t,e,n,r){return Q8e(this,void 0,void 0,function*(){if(o5(),!t.length)return;let i=[];for(let s of t){if(typeof s!="string"){console.warn("The following emmetExtensionsPath isn't a string: "+JSON.stringify(s));continue}if(s=s.trim(),s.length&&s[0]==="~")r&&i.push((0,rf.joinPath)(r,s.substring(1)));else if((0,rf.isAbsolutePath)(s))i.push(Z8e.URI.file(s));else if(n)for(let o of n)i.push((0,rf.joinPath)(o,s))}for(let s of i){try{if((yield e.stat(s)).type!==rf.FileType.Directory)continue}catch{continue}let o=(0,rf.joinPath)(s,"snippets.json"),a=(0,rf.joinPath)(s,"syntaxProfiles.json"),l;typeof globalThis.TextDecoder=="function"?l=new globalThis.TextDecoder:l=new X8e.TextDecoder;let c="";try{let d=yield e.readFile(o);c=l.decode(d)}catch{}if(c.length)try{let d=Bse(o,c);d.variables&&b7e(d.variables),v7e(d)}catch(d){throw o5(),d}let u="";try{let d=yield e.readFile(a);u=l.decode(d)}catch{}if(u.length)try{let d=Bse(a,u);y7e(d)}catch(d){throw o5(),d}}})}function Bse(t,e){let n=[],r=Wse.parse(e,n);if(n.length)throw new Error(`Found error ${Wse.printParseErrorCode(n[0].error)} while parsing the file ${t} at offset ${n[0].offset}`);return r}function b7e(t){if(typeof t=="object"&&t)Fv=Object.assign({},Fv,t);else throw new Error(Vm.t("Invalid emmet.variables field. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."))}function y7e(t){if(typeof t=="object"&&t)Fx=Object.assign({},Fx,t);else throw new Error(Vm.t("Invalid syntax profile. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."))}function v7e(t){if(typeof t=="object"&&t)Object.keys(t).forEach(e=>{if(!t[e].snippets)return;let n=d5(e),r=t[e].snippets;if(t[n]&&t[n].snippets&&n!==e&&(r=Object.assign({},t[n].snippets,t[e].snippets)),Da(e)){let a=Hm.get(e),l=Object.assign([],a,Object.keys(r));Hm.set(e,l)}else for(let a in r)r.hasOwnProperty(a)&&r[a].startsWith("<")&&r[a].endsWith(">")&&(r[a]=`{${r[a]}}`);let i=sf[e],s=(0,kv.parseSnippets)(r),o=Object.assign({},i,s);sf[e]=o});else throw new Error(Vm.t("Invalid snippets file. See https://code.visualstudio.com/docs/editor/emmet#_using-custom-emmet-snippets for a valid example."))}function o5(){sf={},xx.clear(),Hm.clear(),Fx={},Fv={}}function Xse(t,e=[]){if(!(!t||e.includes(t))){if(/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(t))return"jsx";if(t==="sass-indented")return"sass";if(t==="jade")return"pug";if(kv.syntaxes.markup.includes(t)||kv.syntaxes.stylesheet.includes(t))return t}}});var Ex=I(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.allowedMimeTypesInScriptTag=void 0;ks.getEmmetHelper=_7e;ks.isStyleSheet=C7e;ks.getMappingForIncludedLanguages=x7e;ks.getEmmetMode=k7e;ks.parsePartialStylesheet=A7e;ks.getFlatNode=ioe;ks.getHtmlFlatNode=p5;ks.getEmmetConfiguration=T7e;ks.getEmbeddedCssNodeIfAny=M7e;var noe=bL(),roe=SL(),w7e=Wre(),h5;function _7e(){return h5||(h5=Zse()),h5}var S7e={html:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],jade:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],slim:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],haml:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xml:[".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xsl:["!",".","}","*","$","/","]",">","0","1","2","3","4","5","6","7","8","9"],css:[":","!","-","0","1","2","3","4","5","6","7","8","9"],scss:[":","!","-","0","1","2","3","4","5","6","7","8","9"],sass:[":","!","0","1","2","3","4","5","6","7","8","9"],less:[":","!","-","0","1","2","3","4","5","6","7","8","9"],stylus:[":","!","0","1","2","3","4","5","6","7","8","9"],javascriptreact:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescriptreact:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]};function C7e(t){return["css","scss","sass","less","stylus"].includes(t)}async function x7e(t){let e={handlebars:"html",php:"html"},n={},r=await t.env.getConfiguration?.("emmet.includeLanguages"),i=Object.assign({},e,r??{});return Object.keys(i).forEach(s=>{typeof i[s]=="string"&&S7e[i[s]]&&(n[s]=i[s])}),n}function k7e(t,e,n){if(!t||n.includes(t))return;t==="jsx-tags"&&(t="javascriptreact"),e[t]&&(t=e[t]),/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(t)?t="jsx":t==="sass-indented"?t="sass":(t==="jade"||t==="pug")&&(t="pug");let r=D7e();if(r.markup.includes(t)||r.stylesheet.includes(t))return t}var f5=125,eoe=123,Km=47,toe=42;function A7e(t,e){let n=t.languageId==="css",r=t.offsetAt(e),i=0,s=t.getText().length,o=r-5e3,a=o>0?o:i,l=new w7e.DocumentStreamReader(t,r);function c(S){let T=t.getText().substring(0,S).lastIndexOf("/*");if(T!==-1)return T}function u(S){let T=t.getText().substring(S).indexOf("*/");if(T!==-1)return T+=2+S,T}function d(){let S=t.positionAt(l.pos).line;if(!n&&g!==S){g=S;let v=t.getText({start:{line:g,character:0},end:{line:g+1,character:0}}).indexOf("//");v>-1&&(l.pos=t.offsetAt({line:g,character:v}))}}function f(){!l.sof()&&l.peek()===Km&&(l.backUp(1)===toe?l.pos=c(l.pos)??i:l.next())}function m(){if(l.eat(Km))if(l.eat(Km)&&!n){let S=t.positionAt(l.pos).line;l.pos=t.offsetAt({line:S+1,character:0})}else l.eat(toe)&&(l.pos=u(l.pos)??s)}for(;!l.eof()&&!l.eat(f5);)l.peek()===Km?m():l.next();l.eof()||(s=l.pos),l.pos=r;let b=1,g=e.line,w=!1;for(;!w&&b>0&&!l.sof();){switch(d(),l.backUp(1)){case eoe:b--;break;case f5:n?(l.next(),i=l.pos,w=!0):b++;break;case Km:f();break;default:break}(e.line-t.positionAt(l.pos).line>100||l.pos<=a)&&(w=!0)}g=t.positionAt(l.pos).line,b=0;let _=!1;for(;!w&&!l.sof()&&!_&&b>=0;){d();let S=l.backUp(1);if(!/\s/.test(String.fromCharCode(S))){switch(S){case Km:f();break;case f5:b++;break;case eoe:b--;break;default:b||(_=!0);break}!l.sof()&&_&&(i=l.pos)}}try{let S=" ".repeat(i)+t.getText().substring(i,s);return(0,noe.default)(S)}catch{return}}function ioe(t,e,n){if(!t)return;function r(s){if(!s)return;let o=s.start,a=s.end;if(o<e&&a>e||n&&o<=e&&a>=e)return i(s.children)??s;if("close"in s){let l=s;if(l.open&&!l.close)return i(l.children)}}function i(s){for(let o=0;o<s.length;o++){let a=r(s[o]);if(a)return a}}return i(t.children)}ks.allowedMimeTypesInScriptTag=["text/html","text/plain","text/x-template","text/template","text/ng-template"];function p5(t,e,n,r){let i=ioe(e,n,r);if(i){if(i.name==="script"&&i.children.length===0){let s=F7e(t,i);s&&(i=p5(s,i,n,r)??i)}else if(i.type==="cdata"){let s=E7e(t,i);i=p5(s,i,n,r)??i}return i}}function F7e(t,e){if(e.name==="script"&&e.attributes&&e.attributes.some(r=>r.name.toString()==="type"&&ks.allowedMimeTypesInScriptTag.includes(r.value.toString()))&&e.open){let r=" ".repeat(e.open.end),i=e.close?e.close.start:e.end,s=r+t.substring(e.open.end,i);return(0,roe.default)(s).children.forEach(a=>{e.children.push(a),a.parent=e}),s}return""}function E7e(t,e){let n="<![CDATA[",r="]]>",i=e.start+n.length,s=e.end-r.length,a=" ".repeat(i)+t.substring(i,s);return(0,roe.default)(a).children.forEach(c=>{e.children.push(c),c.parent=e}),a}async function T7e(t,e){let n=await t.env.getConfiguration?.("emmet")??{},r=Object.assign({},n.syntaxProfiles||{}),i=Object.assign({},n.preferences||{});return(e==="jsx"||e==="xml"||e==="xsl")&&(r[e]=r[e]||{},typeof r[e]=="object"&&!r[e].hasOwnProperty("self_closing_tag")&&!r[e].hasOwnProperty("selfClosingStyle")&&(r[e]={...r[e],selfClosingStyle:e==="jsx"?"xhtml":"xml"})),{preferences:i,showExpandedAbbreviation:n.showExpandedAbbreviation,showAbbreviationSuggestions:n.showAbbreviationSuggestions,syntaxProfiles:r,variables:n.variables,excludeLanguages:n.excludeLanguages,showSuggestionsAsSnippets:n.showSuggestionsAsSnippets}}function M7e(t,e,n){if(!e)return;let r=e;if(r&&r.open&&r.close){let i=t.offsetAt(n);if(r.open.end<i&&i<=r.close.start&&r.name==="style"){let s=" ".repeat(r.open.end)+t.getText().substring(r.open.end,r.close.start);return(0,noe.default)(s)}}}function D7e(){return{markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]}}});var ooe=I(Tx=>{"use strict";Object.defineProperty(Tx,"__esModule",{value:!0});Tx.isValidLocationForEmmetAbbreviation=R7e;Tx.getSyntaxFromArgs=soe;var Ev=Ex(),m5=/^#[\da-fA-F]{0,6}$/;async function R7e(t,e,n,r,i,s,o){if((0,Ev.isStyleSheet)(i)){let S=n;if(S&&(S.comments||[]).some(A=>s>=A.start&&s<=A.end))return!1;if(!r)return!0;let v=e.getText(o);if(v.startsWith("@"))return!0;if(i!=="sass"&&i!=="stylus"&&r.type==="property"){if(r.parent&&r.parent.type!=="rule"&&r.parent.type!=="at-rule")return!1;let A=r;if(A.terminatorToken&&A.separator&&s>=A.separatorToken.end&&s<=A.terminatorToken.start&&!v.includes(":")||!A.terminatorToken&&A.separator&&s>=A.separatorToken.end&&!v.includes(":"))return m5.test(v)||v==="!";if(m5.test(v)||v==="!")return!1}if(r.type!=="rule"&&r.type!=="at-rule")return!0;let T=r;if(s>T.contentStartToken.end)return!0;if(T.parent&&(T.parent.type==="rule"||T.parent.type==="at-rule")&&T.selectorToken){let A=e.positionAt(s),R=e.positionAt(T.selectorToken.start),k=e.positionAt(T.selectorToken.end);if(A.line!==k.line&&R.character===o.start.character&&R.line===o.start.line)return!0}return!1}let a="<",l=">",c="\\",u="?",d=r,f=0;if(d){if(d.name==="script"){let v=(d.attributes||[]).filter(R=>R.name.toString()==="type")[0],T=v?v.value.toString():"";return Ev.allowedMimeTypesInScriptTag.includes(T)?!0:!T||T==="application/javascript"||T==="text/javascript"?!!await soe(t,{language:"javascript"}):!1}if(!d.open||!d.close||!(d.open.end<=s&&s<=d.close.start))return!1;f=d.open.end;let S=d.firstChild;for(;S&&!(S.end>s);)f=S.end,S=S.nextSibling}let m=e.positionAt(f),b=e.getText({start:m,end:o.start});if(b.length>500&&(b=b.substr(b.length-500)),!b.trim())return!0;let g=!0,w=!1,_=b.length-1;if(b[_]===a)return!1;for(;_>=0;){let S=b[_];if(_--,!w&&/\s/.test(S)){w=!0;continue}if(S===u&&b[_]===a){_--;continue}if(/\s/.test(S)&&b[_]===a){_--;continue}if(!(S!==a&&S!==l)){if(_>=0&&b[_]===c){_--;continue}if(S===l){if(_>=0&&b[_]==="=")continue;break}if(S===a){g=!w;break}}}return g}async function soe(t,e){let n=await(0,Ev.getMappingForIncludedLanguages)(t),r=e.language,i=e.parentMode,s=await t.env.getConfiguration?.("emmet.excludeLanguages")??[];if(s.includes(r))return;let o=(0,Ev.getEmmetMode)(n[r]??r,n,s);return o||(o=(0,Ev.getEmmetMode)(n[i]??i,n,s)),o}});var loe=I(g5=>{"use strict";Object.defineProperty(g5,"__esModule",{value:!0});g5.getRootNode=N7e;var I7e=bL(),P7e=SL(),O7e=Ex(),aoe=new Map;function N7e(t,e){let n=t.uri.toString(),r=aoe.get(n),i=t.version;if(e&&r&&i===r.key)return r.value;let o=((0,O7e.isStyleSheet)(t.languageId)?I7e.default:P7e.default)(t.getText());return e&&aoe.set(n,{key:i,value:o}),o}});var uoe=I(y5=>{"use strict";Object.defineProperty(y5,"__esModule",{value:!0});y5.create=q7e;var L7e=rt(),coe=ooe(),b5=loe(),ts=Ex();function q7e({mappedLanguages:t={}}={}){return{name:"emmet",capabilities:{completionProvider:{triggerCharacters:">+^*()#.[]$@-{}".split("")}},create(e){let n;return{isAdditionalCompletion:!0,provideCompletionItems(i,s,o){let a=r(i,s,o);if(!a){n=void 0;return}return a.then(l=>{if(!l||!l.items.length)return n=void 0,l;let c=l.items[0],u=typeof c.documentation=="string"?c.documentation:c.documentation?c.documentation.value:"";return u.startsWith("<")?n="html":u.indexOf(":")>0&&u.endsWith(";")?n="css":n=void 0,l})}};async function r(i,s,o){let a=await e.env.getConfiguration?.("emmet")??{},l=a.excludeLanguages??[];if(l.includes(i.languageId))return;let c=!!t[i.languageId],u=(0,ts.getEmmetMode)(t[i.languageId]??i.languageId,t,l);if(!u||a.showExpandedAbbreviation==="never"||(c||u==="jsx")&&a.showExpandedAbbreviation!=="always")return;let d=u,f=d==="html"||d==="jsx"||d==="xml",m,b,g={start:{line:s.line,character:0},end:s};if(i.getText(g).trimStart().startsWith("//"))return;let w=(0,ts.getEmmetHelper)();if(d==="html"){if(o.triggerKind===3)switch(n){case"html":f=!1;break;case"css":f=!1,d="css";break;default:break}if(f){let A=i.offsetAt(s),R=(0,b5.getRootNode)(i,!0),k=(0,ts.getHtmlFlatNode)(i.getText(),R,A,!1);if(k)if(k.name==="script"){let y=k.attributes.find(C=>C.name.toString()==="type");if(y){let C=y.value.toString();if(C==="application/javascript"||C==="text/javascript")if(await(0,coe.getSyntaxFromArgs)(e,{language:"javascript"}))f=!1;else return;else ts.allowedMimeTypesInScriptTag.includes(C)&&(f=!1)}else return}else if(k.name==="style")d="css",f=!1;else{let y=k.attributes.find(C=>C.name.toString()==="style");y&&y.value.start<=A&&A<=y.value.end&&(d="css",f=!1)}}}let _=(0,ts.isStyleSheet)(d)?{lookAhead:!1,syntax:"stylesheet"}:{lookAhead:!0,syntax:"markup"},S=w.extractAbbreviation(i,s,_);if(!S||!w.isAbbreviationValid(d,S.abbreviation))return;let v=i.offsetAt(s);if((0,ts.isStyleSheet)(i.languageId)&&o.triggerKind!==3){if(f=!0,m=await e.env.getConfiguration?.("emmet.optimizeStylesheetParsing")===!0&&i.lineCount>1e3?(0,ts.parsePartialStylesheet)(i,s):(0,b5.getRootNode)(i,!0),!m)return;b=(0,ts.getFlatNode)(m,v,!0)}if(!(0,ts.isStyleSheet)(i.languageId)&&(0,ts.isStyleSheet)(d)&&o.triggerKind!==3){if(f=!0,m=(0,b5.getRootNode)(i,!0),!m)return;let A=(0,ts.getFlatNode)(m,v,!0),R=(0,ts.getEmbeddedCssNodeIfAny)(i,A,s);b=(0,ts.getFlatNode)(R,v,!0)}if(f&&!await(0,coe.isValidLocationForEmmetAbbreviation)(e,i,m,b,d,v,S.abbreviationRange))return;let T=Promise.resolve(!1);if(!(0,ts.isStyleSheet)(d)&&(i.languageId==="javascript"||i.languageId==="javascriptreact"||i.languageId==="typescript"||i.languageId==="typescriptreact")){let A=S.abbreviation;if(A.startsWith("this.")||/\[[^\]=]*\]/.test(A))T=Promise.resolve(!0);else{let R=L7e.URI.parse(i.uri),k=e.decodeEmbeddedDocumentUri(R)?.[0]??R;T=e.getLanguageService().getDocumentSymbols(k).then(y=>!!y&&y.some(C=>A===C.name||A.startsWith(C.name+".")&&!/>|\*|\+/.test(A)))}}return T.then(async A=>{if(A)return;let R=await(0,ts.getEmmetConfiguration)(e,d),k=w.doComplete(i,s,d,R);if(!(k&&k.items&&k.items.length===1&&k.items[0].label==="widows: ;"))return k})}}}}});var hoe=I(v5=>{"use strict";Object.defineProperty(v5,"__esModule",{value:!0});v5.create=$7e;var doe=rt();function $7e(t,{html:e,documentSelector:n=["html","css","scss","typescript","javascript"],isFormattingEnabled:r=async(s,o,a)=>{let l=doe.URI.parse(o.uri),c=a.decodeEmbeddedDocumentUri(l)?.[0]??l;return!(c.scheme==="file"&&(await s.getFileInfo(c.fsPath,{ignorePath:".prettierignore",resolveConfig:!1})).ignored)},getFormattingOptions:i=async(s,o,a,l)=>{let c=doe.URI.parse(o.uri),u=l.decodeEmbeddedDocumentUri(c)?.[0]??c,d=u.scheme==="file"?await s.resolveConfig(u.fsPath):null,f=await l.env.getConfiguration?.("prettier",u.toString());return{filepath:u.scheme==="file"?u.fsPath:void 0,tabWidth:a.tabSize,useTabs:!a.insertSpaces,...f,...d}}}={}){return{name:"prettier",capabilities:{documentFormattingProvider:!0},create(s){let o;return{async provideDocumentFormattingEdits(a,l,c){if(!z7e(n,a))return;o??=typeof t=="function"?t(s):t;let u=await o;if(!u||!await r(u,a,s))return;let f=a.getText(),m=f;a.languageId==="html"&&e?.breakContentsFromTags&&(m=m.replace(/(<[a-z][^>]*>)([^ \n])/gi,"$1 $2").replace(/([^ \n])(<\/[a-z][a-z0-9\t\n\r -]*>)/gi,"$1 $2"));let g=await i(u,a,c,s);return[{newText:await u.format(m,g),range:{start:a.positionAt(0),end:a.positionAt(f.length)}}]}}}}}function z7e(t,e){for(let n of t)if(n===e.languageId||typeof n=="object"&&n.language===e.languageId)return!0;return!1}});var foe=I(w5=>{"use strict";Object.defineProperty(w5,"__esModule",{value:!0});w5.create=W7e;var j7e=rt();function W7e(t){return{name:"typescript-twoslash-queries",capabilities:{inlayHintProvider:{}},create(e){return{provideInlayHints(n,r){if(U7e(n.languageId)){let i=e.inject("typescript/languageService"),s=e.inject("typescript/documentFileName",j7e.URI.parse(n.uri));if(!i||!s)return;let o=[];for(let a of n.getText(r).matchAll(/^\s*\/\/\s*\^\?/gm)){let l=a.index+a[0].indexOf("^?")+n.offsetAt(r.start),c=n.positionAt(l),u=n.offsetAt({line:c.line-1,character:c.character}),d=i.getQuickInfoAtPosition(s,u);d&&o.push({position:{line:c.line,character:c.character+2},label:t.displayPartsToString(d.displayParts),paddingLeft:!0,paddingRight:!1})}return o}}}}}}function U7e(t){return t==="javascript"||t==="typescript"||t==="javascriptreact"||t==="typescriptreact"}});var poe=I(S5=>{"use strict";Object.defineProperty(S5,"__esModule",{value:!0});S5.getSvelteLanguagePlugin=V7e;var B7e=Nt(),H7e=FC();function V7e(){return{getLanguageId(t){if(t.path.endsWith(".svelte"))return"svelte"},createVirtualCode(t,e,n){if(e==="svelte"){let r=t.fsPath.replace(/\\/g,"/");return new _5(r,n)}},typescript:{extraFileExtensions:[{extension:"svelte",isMixedContent:!0,scriptKind:7}],getServiceScript(t){for(let e of(0,B7e.forEachEmbeddedCode)(t))if(e.id==="tsx")return{code:e,extension:".tsx",scriptKind:4}}}}}var _5=class{constructor(e,n){this.fileName=e,this.snapshot=n,this.id="root",this.languageId="svelte",this.codegenStacks=[],this.mappings=[],this.embeddedCodes=[],this.embeddedCodes.push((0,H7e.framework2tsx)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"svelte"))}}});var moe=I(x5=>{"use strict";Object.defineProperty(x5,"__esModule",{value:!0});x5.getVueLanguagePlugin=J7e;var K7e=Nt(),G7e=FC();function J7e(){return{getLanguageId(t){if(t.path.endsWith(".vue"))return"vue"},createVirtualCode(t,e,n){if(e==="vue"){let r=t.fsPath.replace(/\\/g,"/");return new C5(r,n)}},typescript:{extraFileExtensions:[{extension:"vue",isMixedContent:!0,scriptKind:7}],getServiceScript(t){for(let e of(0,K7e.forEachEmbeddedCode)(t))if(e.id==="tsx")return{code:e,extension:".tsx",scriptKind:4}}}}}var C5=class{constructor(e,n){this.fileName=e,this.snapshot=n,this.id="root",this.languageId="vue",this.codegenStacks=[],this.mappings=[],this.embeddedCodes=[],this.embeddedCodes.push((0,G7e.framework2tsx)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"vue"))}}});var goe=I(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.splitWhen=Gm.flatten=void 0;function Y7e(t){return t.reduce((e,n)=>[].concat(e,n),[])}Gm.flatten=Y7e;function Q7e(t,e){let n=[[]],r=0;for(let i of t)e(i)?(r++,n[r]=[]):n[r].push(i);return n}Gm.splitWhen=Q7e});var boe=I(Mx=>{"use strict";Object.defineProperty(Mx,"__esModule",{value:!0});Mx.isEnoentCodeError=void 0;function X7e(t){return t.code==="ENOENT"}Mx.isEnoentCodeError=X7e});var yoe=I(Dx=>{"use strict";Object.defineProperty(Dx,"__esModule",{value:!0});Dx.createDirentFromStats=void 0;var k5=class{constructor(e,n){this.name=e,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function Z7e(t,e){return new k5(t,e)}Dx.createDirentFromStats=Z7e});var Soe=I(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.convertPosixPathToPattern=Nr.convertWindowsPathToPattern=Nr.convertPathToPattern=Nr.escapePosixPath=Nr.escapeWindowsPath=Nr.escape=Nr.removeLeadingDotSegment=Nr.makeAbsolute=Nr.unixify=void 0;var eUe=require("os"),tUe=require("path"),voe=eUe.platform()==="win32",nUe=2,rUe=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,iUe=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,sUe=/^\\\\([.?])/,oUe=/\\(?![!()+@[\]{}])/g;function aUe(t){return t.replace(/\\/g,"/")}Nr.unixify=aUe;function lUe(t,e){return tUe.resolve(t,e)}Nr.makeAbsolute=lUe;function cUe(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(nUe)}return t}Nr.removeLeadingDotSegment=cUe;Nr.escape=voe?A5:F5;function A5(t){return t.replace(iUe,"\\$2")}Nr.escapeWindowsPath=A5;function F5(t){return t.replace(rUe,"\\$2")}Nr.escapePosixPath=F5;Nr.convertPathToPattern=voe?woe:_oe;function woe(t){return A5(t).replace(sUe,"//$1").replace(oUe,"/")}Nr.convertWindowsPathToPattern=woe;function _oe(t){return F5(t)}Nr.convertPosixPathToPattern=_oe});var xoe=I((X1t,Coe)=>{Coe.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(n[2])return!0;e=e.slice(n.index+n[0].length)}return!1}});var Foe=I((Z1t,Aoe)=>{var uUe=xoe(),koe={"{":"}","(":")","[":"]"},dUe=function(t){if(t[0]==="!")return!0;for(var e=0,n=-2,r=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||r!==-1&&t[e]==="["&&t[e+1]!=="]"&&(r<e&&(r=t.indexOf("]",e)),r>e&&(o===-1||o>r||(o=t.indexOf("\\",e),o===-1||o>r)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||n!==-1&&t[e]==="("&&t[e+1]!=="|"&&(n<e&&(n=t.indexOf("|",e)),n!==-1&&t[n+1]!==")"&&(s=t.indexOf(")",n),s>n&&(o=t.indexOf("\\",n),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var l=koe[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},hUe=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var n=t[e+1];e+=2;var r=koe[n];if(r){var i=t.indexOf(r,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};Aoe.exports=function(e,n){if(typeof e!="string"||e==="")return!1;if(uUe(e))return!0;var r=dUe;return n&&n.strict===!1&&(r=hUe),r(e)}});var Toe=I((e_t,Eoe)=>{"use strict";var fUe=Foe(),pUe=require("path").posix.dirname,mUe=require("os").platform()==="win32",E5="/",gUe=/\\/g,bUe=/[\{\[].*[\}\]]$/,yUe=/(^|[^\\])([\{\[]|\([^\)]+$)/,vUe=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Eoe.exports=function(e,n){var r=Object.assign({flipBackslashes:!0},n);r.flipBackslashes&&mUe&&e.indexOf(E5)<0&&(e=e.replace(gUe,E5)),bUe.test(e)&&(e+=E5),e+="a";do e=pUe(e);while(fUe(e)||yUe.test(e));return e.replace(vUe,"$1")}});var Rx=I(Ho=>{"use strict";Ho.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Ho.find=(t,e)=>t.nodes.find(n=>n.type===e);Ho.exceedsLimit=(t,e,n=1,r)=>r===!1||!Ho.isInteger(t)||!Ho.isInteger(e)?!1:(Number(e)-Number(t))/Number(n)>=r;Ho.escapeNode=(t,e=0,n)=>{let r=t.nodes[e];r&&(n&&r.type===n||r.type==="open"||r.type==="close")&&r.escaped!==!0&&(r.value="\\"+r.value,r.escaped=!0)};Ho.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Ho.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Ho.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Ho.reduce=t=>t.reduce((e,n)=>(n.type==="text"&&e.push(n.value),n.type==="range"&&(n.type="text"),e),[]);Ho.flatten=(...t)=>{let e=[],n=r=>{for(let i=0;i<r.length;i++){let s=r[i];if(Array.isArray(s)){n(s);continue}s!==void 0&&e.push(s)}return e};return n(t),e}});var Ix=I((n_t,Doe)=>{"use strict";var Moe=Rx();Doe.exports=(t,e={})=>{let n=(r,i={})=>{let s=e.escapeInvalid&&Moe.isInvalidBrace(i),o=r.invalid===!0&&e.escapeInvalid===!0,a="";if(r.value)return(s||o)&&Moe.isOpenOrClose(r)?"\\"+r.value:r.value;if(r.value)return r.value;if(r.nodes)for(let l of r.nodes)a+=n(l);return a};return n(t)}});var Ioe=I((r_t,Roe)=>{"use strict";Roe.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Woe=I((i_t,joe)=>{"use strict";var Poe=Ioe(),of=(t,e,n)=>{if(Poe(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Poe(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let r={relaxZeros:!0,...n};typeof r.strictZeros=="boolean"&&(r.relaxZeros=r.strictZeros===!1);let i=String(r.relaxZeros),s=String(r.shorthand),o=String(r.capture),a=String(r.wrap),l=t+":"+e+"="+i+s+o+a;if(of.cache.hasOwnProperty(l))return of.cache[l].result;let c=Math.min(t,e),u=Math.max(t,e);if(Math.abs(c-u)===1){let g=t+"|"+e;return r.capture?`(${g})`:r.wrap===!1?g:`(?:${g})`}let d=zoe(t)||zoe(e),f={min:t,max:e,a:c,b:u},m=[],b=[];if(d&&(f.isPadded=d,f.maxLen=String(f.max).length),c<0){let g=u<0?Math.abs(u):1;b=Ooe(g,Math.abs(c),f,r),c=f.a=0}return u>=0&&(m=Ooe(c,u,f,r)),f.negatives=b,f.positives=m,f.result=wUe(b,m,r),r.capture===!0?f.result=`(${f.result})`:r.wrap!==!1&&m.length+b.length>1&&(f.result=`(?:${f.result})`),of.cache[l]=f,f.result};function wUe(t,e,n){let r=T5(t,e,"-",!1,n)||[],i=T5(e,t,"",!1,n)||[],s=T5(t,e,"-?",!0,n)||[];return r.concat(s).concat(i).join("|")}function _Ue(t,e){let n=1,r=1,i=Loe(t,n),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),n+=1,i=Loe(t,n);for(i=qoe(e+1,r)-1;t<i&&i<=e;)s.add(i),r+=1,i=qoe(e+1,r)-1;return s=[...s],s.sort(xUe),s}function SUe(t,e,n){if(t===e)return{pattern:t,count:[],digits:0};let r=CUe(t,e),i=r.length,s="",o=0;for(let a=0;a<i;a++){let[l,c]=r[a];l===c?s+=l:l!=="0"||c!=="9"?s+=kUe(l,c,n):o++}return o&&(s+=n.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Ooe(t,e,n,r){let i=_Ue(t,e),s=[],o=t,a;for(let l=0;l<i.length;l++){let c=i[l],u=SUe(String(o),String(c),r),d="";if(!n.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+$oe(a.count),o=c+1;continue}n.isPadded&&(d=AUe(c,n,r)),u.string=d+u.pattern+$oe(u.count),s.push(u),o=c+1,a=u}return s}function T5(t,e,n,r,i){let s=[];for(let o of t){let{string:a}=o;!r&&!Noe(e,"string",a)&&s.push(n+a),r&&Noe(e,"string",a)&&s.push(n+a)}return s}function CUe(t,e){let n=[];for(let r=0;r<t.length;r++)n.push([t[r],e[r]]);return n}function xUe(t,e){return t>e?1:e>t?-1:0}function Noe(t,e,n){return t.some(r=>r[e]===n)}function Loe(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function qoe(t,e){return t-t%Math.pow(10,e)}function $oe(t){let[e=0,n=""]=t;return n||e>1?`{${e+(n?","+n:"")}}`:""}function kUe(t,e,n){return`[${t}${e-t===1?"":"-"}${e}]`}function zoe(t){return/^-?(0+)\d/.test(t)}function AUe(t,e,n){if(!e.isPadded)return t;let r=Math.abs(e.maxLen-String(t).length),i=n.relaxZeros!==!1;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${r}}`:`0{${r}}`}}of.cache={};of.clearCache=()=>of.cache={};joe.exports=of});var R5=I((s_t,Joe)=>{"use strict";var FUe=require("util"),Boe=Woe(),Uoe=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),EUe=t=>e=>t===!0?Number(e):String(e),M5=t=>typeof t=="number"||typeof t=="string"&&t!=="",Tv=t=>Number.isInteger(+t),D5=t=>{let e=`${t}`,n=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++n]==="0";);return n>0},TUe=(t,e,n)=>typeof t=="string"||typeof e=="string"?!0:n.stringify===!0,MUe=(t,e,n)=>{if(e>0){let r=t[0]==="-"?"-":"";r&&(t=t.slice(1)),t=r+t.padStart(r?e-1:e,"0")}return n===!1?String(t):t},Ox=(t,e)=>{let n=t[0]==="-"?"-":"";for(n&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return n?"-"+t:t},DUe=(t,e,n)=>{t.negatives.sort((a,l)=>a<l?-1:a>l?1:0),t.positives.sort((a,l)=>a<l?-1:a>l?1:0);let r=e.capture?"":"?:",i="",s="",o;return t.positives.length&&(i=t.positives.map(a=>Ox(String(a),n)).join("|")),t.negatives.length&&(s=`-(${r}${t.negatives.map(a=>Ox(String(a),n)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,e.wrap?`(${r}${o})`:o},Hoe=(t,e,n,r)=>{if(n)return Boe(t,e,{wrap:!1,...r});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},Voe=(t,e,n)=>{if(Array.isArray(t)){let r=n.wrap===!0,i=n.capture?"":"?:";return r?`(${i}${t.join("|")})`:t.join("|")}return Boe(t,e,n)},Koe=(...t)=>new RangeError("Invalid range arguments: "+FUe.inspect(...t)),Goe=(t,e,n)=>{if(n.strictRanges===!0)throw Koe([t,e]);return[]},RUe=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},IUe=(t,e,n=1,r={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(r.strictRanges===!0)throw Koe([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),l=String(e),c=String(n);n=Math.max(Math.abs(n),1);let u=D5(a)||D5(l)||D5(c),d=u?Math.max(a.length,l.length,c.length):0,f=u===!1&&TUe(t,e,r)===!1,m=r.transform||EUe(f);if(r.toRegex&&n===1)return Hoe(Ox(t,d),Ox(e,d),!0,r);let b={negatives:[],positives:[]},g=S=>b[S<0?"negatives":"positives"].push(Math.abs(S)),w=[],_=0;for(;o?i>=s:i<=s;)r.toRegex===!0&&n>1?g(i):w.push(MUe(m(i,_),d,f)),i=o?i-n:i+n,_++;return r.toRegex===!0?n>1?DUe(b,r,d):Voe(w,null,{wrap:!1,...r}):w},PUe=(t,e,n=1,r={})=>{if(!Tv(t)&&t.length>1||!Tv(e)&&e.length>1)return Goe(t,e,r);let i=r.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(r.toRegex&&n===1)return Hoe(l,c,!1,r);let u=[],d=0;for(;a?s>=o:s<=o;)u.push(i(s,d)),s=a?s-n:s+n,d++;return r.toRegex===!0?Voe(u,null,{wrap:!1,options:r}):u},Px=(t,e,n,r={})=>{if(e==null&&M5(t))return[t];if(!M5(t)||!M5(e))return Goe(t,e,r);if(typeof n=="function")return Px(t,e,1,{transform:n});if(Uoe(n))return Px(t,e,0,n);let i={...r};return i.capture===!0&&(i.wrap=!0),n=n||i.step||1,Tv(n)?Tv(t)&&Tv(e)?IUe(t,e,n,i):PUe(t,e,Math.max(Math.abs(n),1),i):n!=null&&!Uoe(n)?RUe(n,i):Px(t,e,1,n)};Joe.exports=Px});var Xoe=I((o_t,Qoe)=>{"use strict";var OUe=R5(),Yoe=Rx(),NUe=(t,e={})=>{let n=(r,i={})=>{let s=Yoe.isInvalidBrace(i),o=r.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(r.isOpen===!0)return l+r.value;if(r.isClose===!0)return console.log("node.isClose",l,r.value),l+r.value;if(r.type==="open")return a?l+r.value:"(";if(r.type==="close")return a?l+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":a?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let u=Yoe.reduce(r.nodes),d=OUe(...u,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(d.length!==0)return u.length>1&&d.length>1?`(${d})`:d}if(r.nodes)for(let u of r.nodes)c+=n(u,r);return c};return n(t)};Qoe.exports=NUe});var tae=I((a_t,eae)=>{"use strict";var LUe=R5(),Zoe=Ix(),Jm=Rx(),af=(t="",e="",n=!1)=>{let r=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return n?Jm.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)r.push(af(s,e,n));else for(let s of e)n===!0&&typeof s=="string"&&(s=`{${s}}`),r.push(Array.isArray(s)?af(i,s,n):i+s);return Jm.flatten(r)},qUe=(t,e={})=>{let n=e.rangeLimit===void 0?1e3:e.rangeLimit,r=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(af(a.pop(),Zoe(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(af(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let d=Jm.reduce(i.nodes);if(Jm.exceedsLimit(...d,e.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=LUe(...d,e);f.length===0&&(f=Zoe(i,e)),a.push(af(a.pop(),f)),i.nodes=[];return}let l=Jm.encloseBrace(i),c=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let d=0;d<i.nodes.length;d++){let f=i.nodes[d];if(f.type==="comma"&&i.type==="brace"){d===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(af(a.pop(),c,l));continue}if(f.value&&f.type!=="open"){c.push(af(c.pop(),f.value));continue}f.nodes&&r(f,i)}return c};return Jm.flatten(r(t))};eae.exports=qUe});var rae=I((l_t,nae)=>{"use strict";nae.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
777
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var lae=I((c_t,aae)=>{"use strict";var $Ue=Ix(),{MAX_LENGTH:iae,CHAR_BACKSLASH:I5,CHAR_BACKTICK:zUe,CHAR_COMMA:jUe,CHAR_DOT:WUe,CHAR_LEFT_PARENTHESES:UUe,CHAR_RIGHT_PARENTHESES:BUe,CHAR_LEFT_CURLY_BRACE:HUe,CHAR_RIGHT_CURLY_BRACE:VUe,CHAR_LEFT_SQUARE_BRACKET:sae,CHAR_RIGHT_SQUARE_BRACKET:oae,CHAR_DOUBLE_QUOTE:KUe,CHAR_SINGLE_QUOTE:GUe,CHAR_NO_BREAK_SPACE:JUe,CHAR_ZERO_WIDTH_NOBREAK_SPACE:YUe}=rae(),QUe=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let n=e||{},r=typeof n.maxLength=="number"?Math.min(iae,n.maxLength):iae;if(t.length>r)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${r})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,l=0,c=t.length,u=0,d=0,f,m=()=>t[u++],b=g=>{if(g.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&g.type==="text"){a.value+=g.value;return}return o.nodes.push(g),g.parent=o,g.prev=a,a=g,g};for(b({type:"bos"});u<c;)if(o=s[s.length-1],f=m(),!(f===YUe||f===JUe)){if(f===I5){b({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===oae){b({type:"text",value:"\\"+f});continue}if(f===sae){l++;let g;for(;u<c&&(g=m());){if(f+=g,g===sae){l++;continue}if(g===I5){f+=m();continue}if(g===oae&&(l--,l===0))break}b({type:"text",value:f});continue}if(f===UUe){o=b({type:"paren",nodes:[]}),s.push(o),b({type:"text",value:f});continue}if(f===BUe){if(o.type!=="paren"){b({type:"text",value:f});continue}o=s.pop(),b({type:"text",value:f}),o=s[s.length-1];continue}if(f===KUe||f===GUe||f===zUe){let g=f,w;for(e.keepQuotes!==!0&&(f="");u<c&&(w=m());){if(w===I5){f+=w+m();continue}if(w===g){e.keepQuotes===!0&&(f+=w);break}f+=w}b({type:"text",value:f});continue}if(f===HUe){d++;let w={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};o=b(w),s.push(o),b({type:"open",value:f});continue}if(f===VUe){if(o.type!=="brace"){b({type:"text",value:f});continue}let g="close";o=s.pop(),o.close=!0,b({type:g,value:f}),d--,o=s[s.length-1];continue}if(f===jUe&&d>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:$Ue(o)}]}b({type:"comma",value:f}),o.commas++;continue}if(f===WUe&&d>0&&o.commas===0){let g=o.nodes;if(d===0||g.length===0){b({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){g.pop();let w=g[g.length-1];w.value+=a.value+f,a=w,o.ranges--;continue}b({type:"dot",value:f});continue}b({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(_=>{_.nodes||(_.type==="open"&&(_.isOpen=!0),_.type==="close"&&(_.isClose=!0),_.nodes||(_.type="text"),_.invalid=!0)});let g=s[s.length-1],w=g.nodes.indexOf(o);g.nodes.splice(w,1,...o.nodes)}while(s.length>0);return b({type:"eos"}),i};aae.exports=QUe});var dae=I((u_t,uae)=>{"use strict";var cae=Ix(),XUe=Xoe(),ZUe=tae(),e6e=lae(),oo=(t,e={})=>{let n=[];if(Array.isArray(t))for(let r of t){let i=oo.create(r,e);Array.isArray(i)?n.push(...i):n.push(i)}else n=[].concat(oo.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(n=[...new Set(n)]),n};oo.parse=(t,e={})=>e6e(t,e);oo.stringify=(t,e={})=>cae(typeof t=="string"?oo.parse(t,e):t,e);oo.compile=(t,e={})=>(typeof t=="string"&&(t=oo.parse(t,e)),XUe(t,e));oo.expand=(t,e={})=>{typeof t=="string"&&(t=oo.parse(t,e));let n=ZUe(t,e);return e.noempty===!0&&(n=n.filter(Boolean)),e.nodupes===!0&&(n=[...new Set(n)]),n};oo.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?oo.compile(t,e):oo.expand(t,e);uae.exports=oo});var Mv=I((d_t,gae)=>{"use strict";var t6e=require("path"),Tl="\\\\/",hae=`[^${Tl}]`,Uc="\\.",n6e="\\+",r6e="\\?",Nx="\\/",i6e="(?=.)",fae="[^/]",P5=`(?:${Nx}|$)`,pae=`(?:^|${Nx})`,O5=`${Uc}{1,2}${P5}`,s6e=`(?!${Uc})`,o6e=`(?!${pae}${O5})`,a6e=`(?!${Uc}{0,1}${P5})`,l6e=`(?!${O5})`,c6e=`[^.${Nx}]`,u6e=`${fae}*?`,mae={DOT_LITERAL:Uc,PLUS_LITERAL:n6e,QMARK_LITERAL:r6e,SLASH_LITERAL:Nx,ONE_CHAR:i6e,QMARK:fae,END_ANCHOR:P5,DOTS_SLASH:O5,NO_DOT:s6e,NO_DOTS:o6e,NO_DOT_SLASH:a6e,NO_DOTS_SLASH:l6e,QMARK_NO_DOT:c6e,STAR:u6e,START_ANCHOR:pae},d6e={...mae,SLASH_LITERAL:`[${Tl}]`,QMARK:hae,STAR:`${hae}*?`,DOTS_SLASH:`${Uc}{1,2}(?:[${Tl}]|$)`,NO_DOT:`(?!${Uc})`,NO_DOTS:`(?!(?:^|[${Tl}])${Uc}{1,2}(?:[${Tl}]|$))`,NO_DOT_SLASH:`(?!${Uc}{0,1}(?:[${Tl}]|$))`,NO_DOTS_SLASH:`(?!${Uc}{1,2}(?:[${Tl}]|$))`,QMARK_NO_DOT:`[^.${Tl}]`,START_ANCHOR:`(?:^|[${Tl}])`,END_ANCHOR:`(?:[${Tl}]|$)`},h6e={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};gae.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:h6e,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:t6e.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?d6e:mae}}});var Dv=I(As=>{"use strict";var f6e=require("path"),p6e=process.platform==="win32",{REGEX_BACKSLASH:m6e,REGEX_REMOVE_BACKSLASH:g6e,REGEX_SPECIAL_CHARS:b6e,REGEX_SPECIAL_CHARS_GLOBAL:y6e}=Mv();As.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);As.hasRegexChars=t=>b6e.test(t);As.isRegexChar=t=>t.length===1&&As.hasRegexChars(t);As.escapeRegex=t=>t.replace(y6e,"\\$1");As.toPosixSlashes=t=>t.replace(m6e,"/");As.removeBackslashes=t=>t.replace(g6e,e=>e==="\\"?"":e);As.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};As.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:p6e===!0||f6e.sep==="\\";As.escapeLast=(t,e,n)=>{let r=t.lastIndexOf(e,n);return r===-1?t:t[r-1]==="\\"?As.escapeLast(t,e,r-1):`${t.slice(0,r)}\\${t.slice(r)}`};As.removePrefix=(t,e={})=>{let n=t;return n.startsWith("./")&&(n=n.slice(2),e.prefix="./"),n};As.wrapOutput=(t,e={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",s=`${r}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var xae=I((f_t,Cae)=>{"use strict";var bae=Dv(),{CHAR_ASTERISK:N5,CHAR_AT:v6e,CHAR_BACKWARD_SLASH:Rv,CHAR_COMMA:w6e,CHAR_DOT:L5,CHAR_EXCLAMATION_MARK:q5,CHAR_FORWARD_SLASH:Sae,CHAR_LEFT_CURLY_BRACE:$5,CHAR_LEFT_PARENTHESES:z5,CHAR_LEFT_SQUARE_BRACKET:_6e,CHAR_PLUS:S6e,CHAR_QUESTION_MARK:yae,CHAR_RIGHT_CURLY_BRACE:C6e,CHAR_RIGHT_PARENTHESES:vae,CHAR_RIGHT_SQUARE_BRACKET:x6e}=Mv(),wae=t=>t===Sae||t===Rv,_ae=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},k6e=(t,e)=>{let n=e||{},r=t.length-1,i=n.parts===!0||n.scanToEnd===!0,s=[],o=[],a=[],l=t,c=-1,u=0,d=0,f=!1,m=!1,b=!1,g=!1,w=!1,_=!1,S=!1,v=!1,T=!1,A=!1,R=0,k,y,C={value:"",depth:0,isGlob:!1},M=()=>c>=r,E=()=>l.charCodeAt(c+1),D=()=>(k=y,l.charCodeAt(++c));for(;c<r;){y=D();let L;if(y===Rv){S=C.backslashes=!0,y=D(),y===$5&&(_=!0);continue}if(_===!0||y===$5){for(R++;M()!==!0&&(y=D());){if(y===Rv){S=C.backslashes=!0,D();continue}if(y===$5){R++;continue}if(_!==!0&&y===L5&&(y=D())===L5){if(f=C.isBrace=!0,b=C.isGlob=!0,A=!0,i===!0)continue;break}if(_!==!0&&y===w6e){if(f=C.isBrace=!0,b=C.isGlob=!0,A=!0,i===!0)continue;break}if(y===C6e&&(R--,R===0)){_=!1,f=C.isBrace=!0,A=!0;break}}if(i===!0)continue;break}if(y===Sae){if(s.push(c),o.push(C),C={value:"",depth:0,isGlob:!1},A===!0)continue;if(k===L5&&c===u+1){u+=2;continue}d=c+1;continue}if(n.noext!==!0&&(y===S6e||y===v6e||y===N5||y===yae||y===q5)===!0&&E()===z5){if(b=C.isGlob=!0,g=C.isExtglob=!0,A=!0,y===q5&&c===u&&(T=!0),i===!0){for(;M()!==!0&&(y=D());){if(y===Rv){S=C.backslashes=!0,y=D();continue}if(y===vae){b=C.isGlob=!0,A=!0;break}}continue}break}if(y===N5){if(k===N5&&(w=C.isGlobstar=!0),b=C.isGlob=!0,A=!0,i===!0)continue;break}if(y===yae){if(b=C.isGlob=!0,A=!0,i===!0)continue;break}if(y===_6e){for(;M()!==!0&&(L=D());){if(L===Rv){S=C.backslashes=!0,D();continue}if(L===x6e){m=C.isBracket=!0,b=C.isGlob=!0,A=!0;break}}if(i===!0)continue;break}if(n.nonegate!==!0&&y===q5&&c===u){v=C.negated=!0,u++;continue}if(n.noparen!==!0&&y===z5){if(b=C.isGlob=!0,i===!0){for(;M()!==!0&&(y=D());){if(y===z5){S=C.backslashes=!0,y=D();continue}if(y===vae){A=!0;break}}continue}break}if(b===!0){if(A=!0,i===!0)continue;break}}n.noext===!0&&(g=!1,b=!1);let N=l,$="",F="";u>0&&($=l.slice(0,u),l=l.slice(u),d-=u),N&&b===!0&&d>0?(N=l.slice(0,d),F=l.slice(d)):b===!0?(N="",F=l):N=l,N&&N!==""&&N!=="/"&&N!==l&&wae(N.charCodeAt(N.length-1))&&(N=N.slice(0,-1)),n.unescape===!0&&(F&&(F=bae.removeBackslashes(F)),N&&S===!0&&(N=bae.removeBackslashes(N)));let P={prefix:$,input:t,start:u,base:N,glob:F,isBrace:f,isBracket:m,isGlob:b,isExtglob:g,isGlobstar:w,negated:v,negatedExtglob:T};if(n.tokens===!0&&(P.maxDepth=0,wae(y)||o.push(C),P.tokens=o),n.parts===!0||n.tokens===!0){let L;for(let j=0;j<s.length;j++){let z=L?L+1:u,K=s[j],X=t.slice(z,K);n.tokens&&(j===0&&u!==0?(o[j].isPrefix=!0,o[j].value=$):o[j].value=X,_ae(o[j]),P.maxDepth+=o[j].depth),(j!==0||X!=="")&&a.push(X),L=K}if(L&&L+1<t.length){let j=t.slice(L+1);a.push(j),n.tokens&&(o[o.length-1].value=j,_ae(o[o.length-1]),P.maxDepth+=o[o.length-1].depth)}P.slashes=s,P.parts=a}return P};Cae.exports=k6e});var Fae=I((p_t,Aae)=>{"use strict";var Lx=Mv(),ao=Dv(),{MAX_LENGTH:qx,POSIX_REGEX_SOURCE:A6e,REGEX_NON_SPECIAL_CHARS:F6e,REGEX_SPECIAL_CHARS_BACKREF:E6e,REPLACEMENTS:kae}=Lx,T6e=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let n=`[${t.join("-")}]`;try{new RegExp(n)}catch{return t.map(i=>ao.escapeRegex(i)).join("..")}return n},Ym=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,j5=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=kae[t]||t;let n={...e},r=typeof n.maxLength=="number"?Math.min(qx,n.maxLength):qx,i=t.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);let s={type:"bos",value:"",output:n.prepend||""},o=[s],a=n.capture?"":"?:",l=ao.isWindows(e),c=Lx.globChars(l),u=Lx.extglobChars(c),{DOT_LITERAL:d,PLUS_LITERAL:f,SLASH_LITERAL:m,ONE_CHAR:b,DOTS_SLASH:g,NO_DOT:w,NO_DOT_SLASH:_,NO_DOTS_SLASH:S,QMARK:v,QMARK_NO_DOT:T,STAR:A,START_ANCHOR:R}=c,k=we=>`(${a}(?:(?!${R}${we.dot?g:d}).)*?)`,y=n.dot?"":w,C=n.dot?v:T,M=n.bash===!0?k(n):A;n.capture&&(M=`(${M})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let E={input:t,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=ao.removePrefix(t,E),i=t.length;let D=[],N=[],$=[],F=s,P,L=()=>E.index===i-1,j=E.peek=(we=1)=>t[E.index+we],z=E.advance=()=>t[++E.index]||"",K=()=>t.slice(E.index+1),X=(we="",Ne=0)=>{E.consumed+=we,E.index+=Ne},ee=we=>{E.output+=we.output!=null?we.output:we.value,X(we.value)},de=()=>{let we=1;for(;j()==="!"&&(j(2)!=="("||j(3)==="?");)z(),E.start++,we++;return we%2===0?!1:(E.negated=!0,E.start++,!0)},Se=we=>{E[we]++,$.push(we)},De=we=>{E[we]--,$.pop()},ke=we=>{if(F.type==="globstar"){let Ne=E.braces>0&&(we.type==="comma"||we.type==="brace"),me=we.extglob===!0||D.length&&(we.type==="pipe"||we.type==="paren");we.type!=="slash"&&we.type!=="paren"&&!Ne&&!me&&(E.output=E.output.slice(0,-F.output.length),F.type="star",F.value="*",F.output=M,E.output+=F.output)}if(D.length&&we.type!=="paren"&&(D[D.length-1].inner+=we.value),(we.value||we.output)&&ee(we),F&&F.type==="text"&&we.type==="text"){F.value+=we.value,F.output=(F.output||"")+we.value;return}we.prev=F,o.push(we),F=we},Ye=(we,Ne)=>{let me={...u[Ne],conditions:1,inner:""};me.prev=F,me.parens=E.parens,me.output=E.output;let Re=(n.capture?"(":"")+me.open;Se("parens"),ke({type:we,value:Ne,output:E.output?"":b}),ke({type:"paren",extglob:!0,value:z(),output:Re}),D.push(me)},St=we=>{let Ne=we.close+(n.capture?")":""),me;if(we.type==="negate"){let Re=M;if(we.inner&&we.inner.length>1&&we.inner.includes("/")&&(Re=k(n)),(Re!==M||L()||/^\)+$/.test(K()))&&(Ne=we.close=`)$))${Re}`),we.inner.includes("*")&&(me=K())&&/^\.[^\\/.]+$/.test(me)){let it=j5(me,{...e,fastpaths:!1}).output;Ne=we.close=`)${it})${Re})`}we.prev.type==="bos"&&(E.negatedExtglob=!0)}ke({type:"paren",extglob:!0,value:P,output:Ne}),De("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let we=!1,Ne=t.replace(E6e,(me,Re,it,un,lt,ri)=>un==="\\"?(we=!0,me):un==="?"?Re?Re+un+(lt?v.repeat(lt.length):""):ri===0?C+(lt?v.repeat(lt.length):""):v.repeat(it.length):un==="."?d.repeat(it.length):un==="*"?Re?Re+un+(lt?M:""):M:Re?me:`\\${me}`);return we===!0&&(n.unescape===!0?Ne=Ne.replace(/\\/g,""):Ne=Ne.replace(/\\+/g,me=>me.length%2===0?"\\\\":me?"\\":"")),Ne===t&&n.contains===!0?(E.output=t,E):(E.output=ao.wrapOutput(Ne,E,e),E)}for(;!L();){if(P=z(),P==="\0")continue;if(P==="\\"){let me=j();if(me==="/"&&n.bash!==!0||me==="."||me===";")continue;if(!me){P+="\\",ke({type:"text",value:P});continue}let Re=/^\\+/.exec(K()),it=0;if(Re&&Re[0].length>2&&(it=Re[0].length,E.index+=it,it%2!==0&&(P+="\\")),n.unescape===!0?P=z():P+=z(),E.brackets===0){ke({type:"text",value:P});continue}}if(E.brackets>0&&(P!=="]"||F.value==="["||F.value==="[^")){if(n.posix!==!1&&P===":"){let me=F.value.slice(1);if(me.includes("[")&&(F.posix=!0,me.includes(":"))){let Re=F.value.lastIndexOf("["),it=F.value.slice(0,Re),un=F.value.slice(Re+2),lt=A6e[un];if(lt){F.value=it+lt,E.backtrack=!0,z(),!s.output&&o.indexOf(F)===1&&(s.output=b);continue}}}(P==="["&&j()!==":"||P==="-"&&j()==="]")&&(P=`\\${P}`),P==="]"&&(F.value==="["||F.value==="[^")&&(P=`\\${P}`),n.posix===!0&&P==="!"&&F.value==="["&&(P="^"),F.value+=P,ee({value:P});continue}if(E.quotes===1&&P!=='"'){P=ao.escapeRegex(P),F.value+=P,ee({value:P});continue}if(P==='"'){E.quotes=E.quotes===1?0:1,n.keepQuotes===!0&&ke({type:"text",value:P});continue}if(P==="("){Se("parens"),ke({type:"paren",value:P});continue}if(P===")"){if(E.parens===0&&n.strictBrackets===!0)throw new SyntaxError(Ym("opening","("));let me=D[D.length-1];if(me&&E.parens===me.parens+1){St(D.pop());continue}ke({type:"paren",value:P,output:E.parens?")":"\\)"}),De("parens");continue}if(P==="["){if(n.nobracket===!0||!K().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(Ym("closing","]"));P=`\\${P}`}else Se("brackets");ke({type:"bracket",value:P});continue}if(P==="]"){if(n.nobracket===!0||F&&F.type==="bracket"&&F.value.length===1){ke({type:"text",value:P,output:`\\${P}`});continue}if(E.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(Ym("opening","["));ke({type:"text",value:P,output:`\\${P}`});continue}De("brackets");let me=F.value.slice(1);if(F.posix!==!0&&me[0]==="^"&&!me.includes("/")&&(P=`/${P}`),F.value+=P,ee({value:P}),n.literalBrackets===!1||ao.hasRegexChars(me))continue;let Re=ao.escapeRegex(F.value);if(E.output=E.output.slice(0,-F.value.length),n.literalBrackets===!0){E.output+=Re,F.value=Re;continue}F.value=`(${a}${Re}|${F.value})`,E.output+=F.value;continue}if(P==="{"&&n.nobrace!==!0){Se("braces");let me={type:"brace",value:P,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};N.push(me),ke(me);continue}if(P==="}"){let me=N[N.length-1];if(n.nobrace===!0||!me){ke({type:"text",value:P,output:P});continue}let Re=")";if(me.dots===!0){let it=o.slice(),un=[];for(let lt=it.length-1;lt>=0&&(o.pop(),it[lt].type!=="brace");lt--)it[lt].type!=="dots"&&un.unshift(it[lt].value);Re=T6e(un,n),E.backtrack=!0}if(me.comma!==!0&&me.dots!==!0){let it=E.output.slice(0,me.outputIndex),un=E.tokens.slice(me.tokensIndex);me.value=me.output="\\{",P=Re="\\}",E.output=it;for(let lt of un)E.output+=lt.output||lt.value}ke({type:"brace",value:P,output:Re}),De("braces"),N.pop();continue}if(P==="|"){D.length>0&&D[D.length-1].conditions++,ke({type:"text",value:P});continue}if(P===","){let me=P,Re=N[N.length-1];Re&&$[$.length-1]==="braces"&&(Re.comma=!0,me="|"),ke({type:"comma",value:P,output:me});continue}if(P==="/"){if(F.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",o.pop(),F=s;continue}ke({type:"slash",value:P,output:m});continue}if(P==="."){if(E.braces>0&&F.type==="dot"){F.value==="."&&(F.output=d);let me=N[N.length-1];F.type="dots",F.output+=P,F.value+=P,me.dots=!0;continue}if(E.braces+E.parens===0&&F.type!=="bos"&&F.type!=="slash"){ke({type:"text",value:P,output:d});continue}ke({type:"dot",value:P,output:d});continue}if(P==="?"){if(!(F&&F.value==="(")&&n.noextglob!==!0&&j()==="("&&j(2)!=="?"){Ye("qmark",P);continue}if(F&&F.type==="paren"){let Re=j(),it=P;if(Re==="<"&&!ao.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(F.value==="("&&!/[!=<:]/.test(Re)||Re==="<"&&!/<([!=]|\w+>)/.test(K()))&&(it=`\\${P}`),ke({type:"text",value:P,output:it});continue}if(n.dot!==!0&&(F.type==="slash"||F.type==="bos")){ke({type:"qmark",value:P,output:T});continue}ke({type:"qmark",value:P,output:v});continue}if(P==="!"){if(n.noextglob!==!0&&j()==="("&&(j(2)!=="?"||!/[!=<:]/.test(j(3)))){Ye("negate",P);continue}if(n.nonegate!==!0&&E.index===0){de();continue}}if(P==="+"){if(n.noextglob!==!0&&j()==="("&&j(2)!=="?"){Ye("plus",P);continue}if(F&&F.value==="("||n.regex===!1){ke({type:"plus",value:P,output:f});continue}if(F&&(F.type==="bracket"||F.type==="paren"||F.type==="brace")||E.parens>0){ke({type:"plus",value:P});continue}ke({type:"plus",value:f});continue}if(P==="@"){if(n.noextglob!==!0&&j()==="("&&j(2)!=="?"){ke({type:"at",extglob:!0,value:P,output:""});continue}ke({type:"text",value:P});continue}if(P!=="*"){(P==="$"||P==="^")&&(P=`\\${P}`);let me=F6e.exec(K());me&&(P+=me[0],E.index+=me[0].length),ke({type:"text",value:P});continue}if(F&&(F.type==="globstar"||F.star===!0)){F.type="star",F.star=!0,F.value+=P,F.output=M,E.backtrack=!0,E.globstar=!0,X(P);continue}let we=K();if(n.noextglob!==!0&&/^\([^?]/.test(we)){Ye("star",P);continue}if(F.type==="star"){if(n.noglobstar===!0){X(P);continue}let me=F.prev,Re=me.prev,it=me.type==="slash"||me.type==="bos",un=Re&&(Re.type==="star"||Re.type==="globstar");if(n.bash===!0&&(!it||we[0]&&we[0]!=="/")){ke({type:"star",value:P,output:""});continue}let lt=E.braces>0&&(me.type==="comma"||me.type==="brace"),ri=D.length&&(me.type==="pipe"||me.type==="paren");if(!it&&me.type!=="paren"&&!lt&&!ri){ke({type:"star",value:P,output:""});continue}for(;we.slice(0,3)==="/**";){let pr=t[E.index+4];if(pr&&pr!=="/")break;we=we.slice(3),X("/**",3)}if(me.type==="bos"&&L()){F.type="globstar",F.value+=P,F.output=k(n),E.output=F.output,E.globstar=!0,X(P);continue}if(me.type==="slash"&&me.prev.type!=="bos"&&!un&&L()){E.output=E.output.slice(0,-(me.output+F.output).length),me.output=`(?:${me.output}`,F.type="globstar",F.output=k(n)+(n.strictSlashes?")":"|$)"),F.value+=P,E.globstar=!0,E.output+=me.output+F.output,X(P);continue}if(me.type==="slash"&&me.prev.type!=="bos"&&we[0]==="/"){let pr=we[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(me.output+F.output).length),me.output=`(?:${me.output}`,F.type="globstar",F.output=`${k(n)}${m}|${m}${pr})`,F.value+=P,E.output+=me.output+F.output,E.globstar=!0,X(P+z()),ke({type:"slash",value:"/",output:""});continue}if(me.type==="bos"&&we[0]==="/"){F.type="globstar",F.value+=P,F.output=`(?:^|${m}|${k(n)}${m})`,E.output=F.output,E.globstar=!0,X(P+z()),ke({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-F.output.length),F.type="globstar",F.output=k(n),F.value+=P,E.output+=F.output,E.globstar=!0,X(P);continue}let Ne={type:"star",value:P,output:M};if(n.bash===!0){Ne.output=".*?",(F.type==="bos"||F.type==="slash")&&(Ne.output=y+Ne.output),ke(Ne);continue}if(F&&(F.type==="bracket"||F.type==="paren")&&n.regex===!0){Ne.output=P,ke(Ne);continue}(E.index===E.start||F.type==="slash"||F.type==="dot")&&(F.type==="dot"?(E.output+=_,F.output+=_):n.dot===!0?(E.output+=S,F.output+=S):(E.output+=y,F.output+=y),j()!=="*"&&(E.output+=b,F.output+=b)),ke(Ne)}for(;E.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ym("closing","]"));E.output=ao.escapeLast(E.output,"["),De("brackets")}for(;E.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ym("closing",")"));E.output=ao.escapeLast(E.output,"("),De("parens")}for(;E.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(Ym("closing","}"));E.output=ao.escapeLast(E.output,"{"),De("braces")}if(n.strictSlashes!==!0&&(F.type==="star"||F.type==="bracket")&&ke({type:"maybe_slash",value:"",output:`${m}?`}),E.backtrack===!0){E.output="";for(let we of E.tokens)E.output+=we.output!=null?we.output:we.value,we.suffix&&(E.output+=we.suffix)}return E};j5.fastpaths=(t,e)=>{let n={...e},r=typeof n.maxLength=="number"?Math.min(qx,n.maxLength):qx,i=t.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);t=kae[t]||t;let s=ao.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:d,NO_DOTS_SLASH:f,STAR:m,START_ANCHOR:b}=Lx.globChars(s),g=n.dot?d:u,w=n.dot?f:u,_=n.capture?"":"?:",S={negated:!1,prefix:""},v=n.bash===!0?".*?":m;n.capture&&(v=`(${v})`);let T=y=>y.noglobstar===!0?v:`(${_}(?:(?!${b}${y.dot?c:o}).)*?)`,A=y=>{switch(y){case"*":return`${g}${l}${v}`;case".*":return`${o}${l}${v}`;case"*.*":return`${g}${v}${o}${l}${v}`;case"*/*":return`${g}${v}${a}${l}${w}${v}`;case"**":return g+T(n);case"**/*":return`(?:${g}${T(n)}${a})?${w}${l}${v}`;case"**/*.*":return`(?:${g}${T(n)}${a})?${w}${v}${o}${l}${v}`;case"**/.*":return`(?:${g}${T(n)}${a})?${o}${l}${v}`;default:{let C=/^(.*?)\.(\w+)$/.exec(y);if(!C)return;let M=A(C[1]);return M?M+o+C[2]:void 0}}},R=ao.removePrefix(t,S),k=A(R);return k&&n.strictSlashes!==!0&&(k+=`${a}?`),k};Aae.exports=j5});var Tae=I((m_t,Eae)=>{"use strict";var M6e=require("path"),D6e=xae(),W5=Fae(),U5=Dv(),R6e=Mv(),I6e=t=>t&&typeof t=="object"&&!Array.isArray(t),kr=(t,e,n=!1)=>{if(Array.isArray(t)){let u=t.map(f=>kr(f,e,n));return f=>{for(let m of u){let b=m(f);if(b)return b}return!1}}let r=I6e(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=U5.isWindows(e),o=r?kr.compileRe(t,e):kr.makeRe(t,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(i.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=kr(i.ignore,u,n)}let c=(u,d=!1)=>{let{isMatch:f,match:m,output:b}=kr.test(u,o,e,{glob:t,posix:s}),g={glob:t,state:a,regex:o,posix:s,input:u,output:b,match:m,isMatch:f};return typeof i.onResult=="function"&&i.onResult(g),f===!1?(g.isMatch=!1,d?g:!1):l(u)?(typeof i.onIgnore=="function"&&i.onIgnore(g),g.isMatch=!1,d?g:!1):(typeof i.onMatch=="function"&&i.onMatch(g),d?g:!0)};return n&&(c.state=a),c};kr.test=(t,e,n,{glob:r,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=n||{},o=s.format||(i?U5.toPosixSlashes:null),a=t===r,l=a&&o?o(t):t;return a===!1&&(l=o?o(t):t,a=l===r),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=kr.matchBase(t,e,n,i):a=e.exec(l)),{isMatch:!!a,match:a,output:l}};kr.matchBase=(t,e,n,r=U5.isWindows(n))=>(e instanceof RegExp?e:kr.makeRe(e,n)).test(M6e.basename(t));kr.isMatch=(t,e,n)=>kr(e,n)(t);kr.parse=(t,e)=>Array.isArray(t)?t.map(n=>kr.parse(n,e)):W5(t,{...e,fastpaths:!1});kr.scan=(t,e)=>D6e(t,e);kr.compileRe=(t,e,n=!1,r=!1)=>{if(n===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let l=kr.toRegex(a,e);return r===!0&&(l.state=t),l};kr.makeRe=(t,e={},n=!1,r=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=W5.fastpaths(t,e)),i.output||(i=W5(t,e)),kr.compileRe(i,e,n,r)};kr.toRegex=(t,e)=>{try{let n=e||{};return new RegExp(t,n.flags||(n.nocase?"i":""))}catch(n){if(e&&e.debug===!0)throw n;return/$^/}};kr.constants=R6e;Eae.exports=kr});var Dae=I((g_t,Mae)=>{"use strict";Mae.exports=Tae()});var Lae=I((b_t,Nae)=>{"use strict";var Iae=require("util"),Pae=dae(),Ml=Dae(),B5=Dv(),Rae=t=>t===""||t==="./",Oae=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},Hn=(t,e,n)=>{e=[].concat(e),t=[].concat(t);let r=new Set,i=new Set,s=new Set,o=0,a=u=>{s.add(u.output),n&&n.onResult&&n.onResult(u)};for(let u=0;u<e.length;u++){let d=Ml(String(e[u]),{...n,onResult:a},!0),f=d.state.negated||d.state.negatedExtglob;f&&o++;for(let m of t){let b=d(m,!0);(f?!b.isMatch:b.isMatch)&&(f?r.add(b.output):(r.delete(b.output),i.add(b.output)))}}let c=(o===e.length?[...s]:[...i]).filter(u=>!r.has(u));if(n&&c.length===0){if(n.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(n.nonull===!0||n.nullglob===!0)return n.unescape?e.map(u=>u.replace(/\\/g,"")):e}return c};Hn.match=Hn;Hn.matcher=(t,e)=>Ml(t,e);Hn.isMatch=(t,e,n)=>Ml(e,n)(t);Hn.any=Hn.isMatch;Hn.not=(t,e,n={})=>{e=[].concat(e).map(String);let r=new Set,i=[],s=a=>{n.onResult&&n.onResult(a),i.push(a.output)},o=new Set(Hn(t,e,{...n,onResult:s}));for(let a of i)o.has(a)||r.add(a);return[...r]};Hn.contains=(t,e,n)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Iae.inspect(t)}"`);if(Array.isArray(e))return e.some(r=>Hn.contains(t,r,n));if(typeof e=="string"){if(Rae(t)||Rae(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Hn.isMatch(t,e,{...n,contains:!0})};Hn.matchKeys=(t,e,n)=>{if(!B5.isObject(t))throw new TypeError("Expected the first argument to be an object");let r=Hn(Object.keys(t),e,n),i={};for(let s of r)i[s]=t[s];return i};Hn.some=(t,e,n)=>{let r=[].concat(t);for(let i of[].concat(e)){let s=Ml(String(i),n);if(r.some(o=>s(o)))return!0}return!1};Hn.every=(t,e,n)=>{let r=[].concat(t);for(let i of[].concat(e)){let s=Ml(String(i),n);if(!r.every(o=>s(o)))return!1}return!0};Hn.all=(t,e,n)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Iae.inspect(t)}"`);return[].concat(e).every(r=>Ml(r,n)(t))};Hn.capture=(t,e,n)=>{let r=B5.isWindows(n),s=Ml.makeRe(String(t),{...n,capture:!0}).exec(r?B5.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Hn.makeRe=(...t)=>Ml.makeRe(...t);Hn.scan=(...t)=>Ml.scan(...t);Hn.parse=(t,e)=>{let n=[];for(let r of[].concat(t||[]))for(let i of Pae(String(r),e))n.push(Ml.parse(i,e));return n};Hn.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!Oae(t)?[t]:Pae(t,e)};Hn.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Hn.braces(t,{...e,expand:!0})};Hn.hasBraces=Oae;Nae.exports=Hn});var Kae=I(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.isAbsolute=tt.partitionAbsoluteAndRelative=tt.removeDuplicateSlashes=tt.matchAny=tt.convertPatternsToRe=tt.makeRe=tt.getPatternParts=tt.expandBraceExpansion=tt.expandPatternsWithBraceExpansion=tt.isAffectDepthOfReadingPattern=tt.endsWithSlashGlobStar=tt.hasGlobStar=tt.getBaseDirectory=tt.isPatternRelatedToParentDirectory=tt.getPatternsOutsideCurrentDirectory=tt.getPatternsInsideCurrentDirectory=tt.getPositivePatterns=tt.getNegativePatterns=tt.isPositivePattern=tt.isNegativePattern=tt.convertToNegativePattern=tt.convertToPositivePattern=tt.isDynamicPattern=tt.isStaticPattern=void 0;var qae=require("path"),P6e=Toe(),H5=Lae(),$ae="**",O6e="\\",N6e=/[*?]|^!/,L6e=/\[[^[]*]/,q6e=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,$6e=/[!*+?@]\([^(]*\)/,z6e=/,|\.\./,j6e=/(?!^)\/{2,}/g;function zae(t,e={}){return!jae(t,e)}tt.isStaticPattern=zae;function jae(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(O6e)||N6e.test(t)||L6e.test(t)||q6e.test(t)||e.extglob!==!1&&$6e.test(t)||e.braceExpansion!==!1&&W6e(t))}tt.isDynamicPattern=jae;function W6e(t){let e=t.indexOf("{");if(e===-1)return!1;let n=t.indexOf("}",e+1);if(n===-1)return!1;let r=t.slice(e,n);return z6e.test(r)}function U6e(t){return $x(t)?t.slice(1):t}tt.convertToPositivePattern=U6e;function B6e(t){return"!"+t}tt.convertToNegativePattern=B6e;function $x(t){return t.startsWith("!")&&t[1]!=="("}tt.isNegativePattern=$x;function Wae(t){return!$x(t)}tt.isPositivePattern=Wae;function H6e(t){return t.filter($x)}tt.getNegativePatterns=H6e;function V6e(t){return t.filter(Wae)}tt.getPositivePatterns=V6e;function K6e(t){return t.filter(e=>!V5(e))}tt.getPatternsInsideCurrentDirectory=K6e;function G6e(t){return t.filter(V5)}tt.getPatternsOutsideCurrentDirectory=G6e;function V5(t){return t.startsWith("..")||t.startsWith("./..")}tt.isPatternRelatedToParentDirectory=V5;function J6e(t){return P6e(t,{flipBackslashes:!1})}tt.getBaseDirectory=J6e;function Y6e(t){return t.includes($ae)}tt.hasGlobStar=Y6e;function Uae(t){return t.endsWith("/"+$ae)}tt.endsWithSlashGlobStar=Uae;function Q6e(t){let e=qae.basename(t);return Uae(t)||zae(e)}tt.isAffectDepthOfReadingPattern=Q6e;function X6e(t){return t.reduce((e,n)=>e.concat(Bae(n)),[])}tt.expandPatternsWithBraceExpansion=X6e;function Bae(t){let e=H5.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((n,r)=>n.length-r.length),e.filter(n=>n!=="")}tt.expandBraceExpansion=Bae;function Z6e(t,e){let{parts:n}=H5.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return n.length===0&&(n=[t]),n[0].startsWith("/")&&(n[0]=n[0].slice(1),n.unshift("")),n}tt.getPatternParts=Z6e;function Hae(t,e){return H5.makeRe(t,e)}tt.makeRe=Hae;function eBe(t,e){return t.map(n=>Hae(n,e))}tt.convertPatternsToRe=eBe;function tBe(t,e){return e.some(n=>n.test(t))}tt.matchAny=tBe;function nBe(t){return t.replace(j6e,"/")}tt.removeDuplicateSlashes=nBe;function rBe(t){let e=[],n=[];for(let r of t)Vae(r)?e.push(r):n.push(r);return[e,n]}tt.partitionAbsoluteAndRelative=rBe;function Vae(t){return qae.isAbsolute(t)}tt.isAbsolute=Vae});var Qae=I((v_t,Yae)=>{"use strict";var iBe=require("stream"),Gae=iBe.PassThrough,sBe=Array.prototype.slice;Yae.exports=oBe;function oBe(){let t=[],e=sBe.call(arguments),n=!1,r=e[e.length-1];r&&!Array.isArray(r)&&r.pipe==null?e.pop():r={};let i=r.end!==!1,s=r.pipeError===!0;r.objectMode==null&&(r.objectMode=!0),r.highWaterMark==null&&(r.highWaterMark=64*1024);let o=Gae(r);function a(){for(let u=0,d=arguments.length;u<d;u++)t.push(Jae(arguments[u],r));return l(),this}function l(){if(n)return;n=!0;let u=t.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let d=u.length+1;function f(){--d>0||(n=!1,l())}function m(b){function g(){b.removeListener("merge2UnpipeEnd",g),b.removeListener("end",g),s&&b.removeListener("error",w),f()}function w(_){o.emit("error",_)}if(b._readableState.endEmitted)return f();b.on("merge2UnpipeEnd",g),b.on("end",g),s&&b.on("error",w),b.pipe(o,{end:!1}),b.resume()}for(let b=0;b<u.length;b++)m(u[b]);f()}function c(){n=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Jae(t,e){if(Array.isArray(t))for(let n=0,r=t.length;n<r;n++)t[n]=Jae(t[n],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Gae(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Zae=I(zx=>{"use strict";Object.defineProperty(zx,"__esModule",{value:!0});zx.merge=void 0;var aBe=Qae();function lBe(t){let e=aBe(t);return t.forEach(n=>{n.once("error",r=>e.emit("error",r))}),e.once("close",()=>Xae(t)),e.once("end",()=>Xae(t)),e}zx.merge=lBe;function Xae(t){t.forEach(e=>e.emit("close"))}});var ele=I(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.isEmpty=Qm.isString=void 0;function cBe(t){return typeof t=="string"}Qm.isString=cBe;function uBe(t){return t===""}Qm.isEmpty=uBe});var Bc=I(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.string=Ri.stream=Ri.pattern=Ri.path=Ri.fs=Ri.errno=Ri.array=void 0;var dBe=goe();Ri.array=dBe;var hBe=boe();Ri.errno=hBe;var fBe=yoe();Ri.fs=fBe;var pBe=Soe();Ri.path=pBe;var mBe=Kae();Ri.pattern=mBe;var gBe=Zae();Ri.stream=gBe;var bBe=ele();Ri.string=bBe});var ile=I(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.convertPatternGroupToTask=Ii.convertPatternGroupsToTasks=Ii.groupPatternsByBaseDirectory=Ii.getNegativePatternsAsPositive=Ii.getPositivePatterns=Ii.convertPatternsToTasks=Ii.generate=void 0;var Ra=Bc();function yBe(t,e){let n=tle(t,e),r=tle(e.ignore,e),i=nle(n),s=rle(n,r),o=i.filter(u=>Ra.pattern.isStaticPattern(u,e)),a=i.filter(u=>Ra.pattern.isDynamicPattern(u,e)),l=K5(o,s,!1),c=K5(a,s,!0);return l.concat(c)}Ii.generate=yBe;function tle(t,e){let n=t;return e.braceExpansion&&(n=Ra.pattern.expandPatternsWithBraceExpansion(n)),e.baseNameMatch&&(n=n.map(r=>r.includes("/")?r:`**/${r}`)),n.map(r=>Ra.pattern.removeDuplicateSlashes(r))}function K5(t,e,n){let r=[],i=Ra.pattern.getPatternsOutsideCurrentDirectory(t),s=Ra.pattern.getPatternsInsideCurrentDirectory(t),o=G5(i),a=G5(s);return r.push(...J5(o,e,n)),"."in a?r.push(Y5(".",s,e,n)):r.push(...J5(a,e,n)),r}Ii.convertPatternsToTasks=K5;function nle(t){return Ra.pattern.getPositivePatterns(t)}Ii.getPositivePatterns=nle;function rle(t,e){return Ra.pattern.getNegativePatterns(t).concat(e).map(Ra.pattern.convertToPositivePattern)}Ii.getNegativePatternsAsPositive=rle;function G5(t){let e={};return t.reduce((n,r)=>{let i=Ra.pattern.getBaseDirectory(r);return i in n?n[i].push(r):n[i]=[r],n},e)}Ii.groupPatternsByBaseDirectory=G5;function J5(t,e,n){return Object.keys(t).map(r=>Y5(r,t[r],e,n))}Ii.convertPatternGroupsToTasks=J5;function Y5(t,e,n,r){return{dynamic:r,positive:e,negative:n,base:t,patterns:[].concat(e,n.map(Ra.pattern.convertToNegativePattern))}}Ii.convertPatternGroupToTask=Y5});var ole=I(jx=>{"use strict";Object.defineProperty(jx,"__esModule",{value:!0});jx.read=void 0;function vBe(t,e,n){e.fs.lstat(t,(r,i)=>{if(r!==null){sle(n,r);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){Q5(n,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){sle(n,s);return}Q5(n,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Q5(n,o)})})}jx.read=vBe;function sle(t,e){t(e)}function Q5(t,e){t(null,e)}});var ale=I(Wx=>{"use strict";Object.defineProperty(Wx,"__esModule",{value:!0});Wx.read=void 0;function wBe(t,e){let n=e.fs.lstatSync(t);if(!n.isSymbolicLink()||!e.followSymbolicLink)return n;try{let r=e.fs.statSync(t);return e.markSymbolicLink&&(r.isSymbolicLink=()=>!0),r}catch(r){if(!e.throwErrorOnBrokenSymbolicLink)return n;throw r}}Wx.read=wBe});var lle=I(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.createFileSystemAdapter=kd.FILE_SYSTEM_ADAPTER=void 0;var Ux=require("fs");kd.FILE_SYSTEM_ADAPTER={lstat:Ux.lstat,stat:Ux.stat,lstatSync:Ux.lstatSync,statSync:Ux.statSync};function _Be(t){return t===void 0?kd.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},kd.FILE_SYSTEM_ADAPTER),t)}kd.createFileSystemAdapter=_Be});var cle=I(Z5=>{"use strict";Object.defineProperty(Z5,"__esModule",{value:!0});var SBe=lle(),X5=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=SBe.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,n){return e??n}};Z5.default=X5});var lf=I(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.statSync=Ad.stat=Ad.Settings=void 0;var ule=ole(),CBe=ale(),eq=cle();Ad.Settings=eq.default;function xBe(t,e,n){if(typeof e=="function"){ule.read(t,tq(),e);return}ule.read(t,tq(e),n)}Ad.stat=xBe;function kBe(t,e){let n=tq(e);return CBe.read(t,n)}Ad.statSync=kBe;function tq(t={}){return t instanceof eq.default?t:new eq.default(t)}});var fle=I((T_t,hle)=>{var dle;hle.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(dle||(dle=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var mle=I((M_t,ple)=>{ple.exports=FBe;var ABe=fle();function FBe(t,e){let n,r,i,s=!0;Array.isArray(t)?(n=[],r=t.length):(i=Object.keys(t),n={},r=i.length);function o(l){function c(){e&&e(l,n),e=null}s?ABe(c):c()}function a(l,c,u){n[l]=u,(--r===0||c)&&o(c)}r?i?i.forEach(function(l){t[l](function(c,u){a(l,c,u)})}):t.forEach(function(l,c){l(function(u,d){a(c,u,d)})}):o(null),s=!1}});var nq=I(Hx=>{"use strict";Object.defineProperty(Hx,"__esModule",{value:!0});Hx.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Bx=process.versions.node.split(".");if(Bx[0]===void 0||Bx[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var gle=Number.parseInt(Bx[0],10),EBe=Number.parseInt(Bx[1],10),ble=10,TBe=10,MBe=gle>ble,DBe=gle===ble&&EBe>=TBe;Hx.IS_SUPPORT_READDIR_WITH_FILE_TYPES=MBe||DBe});var yle=I(Vx=>{"use strict";Object.defineProperty(Vx,"__esModule",{value:!0});Vx.createDirentFromStats=void 0;var rq=class{constructor(e,n){this.name=e,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function RBe(t,e){return new rq(t,e)}Vx.createDirentFromStats=RBe});var iq=I(Kx=>{"use strict";Object.defineProperty(Kx,"__esModule",{value:!0});Kx.fs=void 0;var IBe=yle();Kx.fs=IBe});var sq=I(Gx=>{"use strict";Object.defineProperty(Gx,"__esModule",{value:!0});Gx.joinPathSegments=void 0;function PBe(t,e,n){return t.endsWith(n)?t+e:t+n+e}Gx.joinPathSegments=PBe});var xle=I(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.readdir=Fd.readdirWithFileTypes=Fd.read=void 0;var OBe=lf(),vle=mle(),NBe=nq(),wle=iq(),_le=sq();function LBe(t,e,n){if(!e.stats&&NBe.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Sle(t,e,n);return}Cle(t,e,n)}Fd.read=LBe;function Sle(t,e,n){e.fs.readdir(t,{withFileTypes:!0},(r,i)=>{if(r!==null){Jx(n,r);return}let s=i.map(a=>({dirent:a,name:a.name,path:_le.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){oq(n,s);return}let o=s.map(a=>qBe(a,e));vle(o,(a,l)=>{if(a!==null){Jx(n,a);return}oq(n,l)})})}Fd.readdirWithFileTypes=Sle;function qBe(t,e){return n=>{if(!t.dirent.isSymbolicLink()){n(null,t);return}e.fs.stat(t.path,(r,i)=>{if(r!==null){if(e.throwErrorOnBrokenSymbolicLink){n(r);return}n(null,t);return}t.dirent=wle.fs.createDirentFromStats(t.name,i),n(null,t)})}}function Cle(t,e,n){e.fs.readdir(t,(r,i)=>{if(r!==null){Jx(n,r);return}let s=i.map(o=>{let a=_le.joinPathSegments(t,o,e.pathSegmentSeparator);return l=>{OBe.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let d={name:o,path:a,dirent:wle.fs.createDirentFromStats(o,u)};e.stats&&(d.stats=u),l(null,d)})}});vle(s,(o,a)=>{if(o!==null){Jx(n,o);return}oq(n,a)})})}Fd.readdir=Cle;function Jx(t,e){t(e)}function oq(t,e){t(null,e)}});var Tle=I(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.readdir=Ed.readdirWithFileTypes=Ed.read=void 0;var $Be=lf(),zBe=nq(),kle=iq(),Ale=sq();function jBe(t,e){return!e.stats&&zBe.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Fle(t,e):Ele(t,e)}Ed.read=jBe;function Fle(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(r=>{let i={dirent:r,name:r.name,path:Ale.joinPathSegments(t,r.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=kle.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}Ed.readdirWithFileTypes=Fle;function Ele(t,e){return e.fs.readdirSync(t).map(r=>{let i=Ale.joinPathSegments(t,r,e.pathSegmentSeparator),s=$Be.statSync(i,e.fsStatSettings),o={name:r,path:i,dirent:kle.fs.createDirentFromStats(r,s)};return e.stats&&(o.stats=s),o})}Ed.readdir=Ele});var Mle=I(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.createFileSystemAdapter=Td.FILE_SYSTEM_ADAPTER=void 0;var Xm=require("fs");Td.FILE_SYSTEM_ADAPTER={lstat:Xm.lstat,stat:Xm.stat,lstatSync:Xm.lstatSync,statSync:Xm.statSync,readdir:Xm.readdir,readdirSync:Xm.readdirSync};function WBe(t){return t===void 0?Td.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Td.FILE_SYSTEM_ADAPTER),t)}Td.createFileSystemAdapter=WBe});var Dle=I(lq=>{"use strict";Object.defineProperty(lq,"__esModule",{value:!0});var UBe=require("path"),BBe=lf(),HBe=Mle(),aq=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=HBe.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,UBe.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new BBe.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,n){return e??n}};lq.default=aq});var Yx=I(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.Settings=Md.scandirSync=Md.scandir=void 0;var Rle=xle(),VBe=Tle(),cq=Dle();Md.Settings=cq.default;function KBe(t,e,n){if(typeof e=="function"){Rle.read(t,uq(),e);return}Rle.read(t,uq(e),n)}Md.scandir=KBe;function GBe(t,e){let n=uq(e);return VBe.read(t,n)}Md.scandirSync=GBe;function uq(t={}){return t instanceof cq.default?t:new cq.default(t)}});var Ple=I((z_t,Ile)=>{"use strict";function JBe(t){var e=new t,n=e;function r(){var s=e;return s.next?e=s.next:(e=new t,n=e),s.next=null,s}function i(s){n.next=s,n=s}return{get:r,release:i}}Ile.exports=JBe});var Nle=I((j_t,dq)=>{"use strict";var YBe=Ple();function Ole(t,e,n){if(typeof t=="function"&&(n=e,e=t,t=null),!(n>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var r=YBe(QBe),i=null,s=null,o=0,a=null,l={push:g,drain:Vo,saturated:Vo,pause:u,paused:!1,get concurrency(){return n},set concurrency(A){if(!(A>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(n=A,!l.paused)for(;i&&o<n;)o++,_()},running:c,resume:m,idle:b,length:d,getQueue:f,unshift:w,empty:Vo,kill:S,killAndDrain:v,error:T};return l;function c(){return o}function u(){l.paused=!0}function d(){for(var A=i,R=0;A;)A=A.next,R++;return R}function f(){for(var A=i,R=[];A;)R.push(A.value),A=A.next;return R}function m(){if(l.paused){if(l.paused=!1,i===null){o++,_();return}for(;i&&o<n;)o++,_()}}function b(){return o===0&&l.length()===0}function g(A,R){var k=r.get();k.context=t,k.release=_,k.value=A,k.callback=R||Vo,k.errorHandler=a,o>=n||l.paused?s?(s.next=k,s=k):(i=k,s=k,l.saturated()):(o++,e.call(t,k.value,k.worked))}function w(A,R){var k=r.get();k.context=t,k.release=_,k.value=A,k.callback=R||Vo,k.errorHandler=a,o>=n||l.paused?i?(k.next=i,i=k):(i=k,s=k,l.saturated()):(o++,e.call(t,k.value,k.worked))}function _(A){A&&r.release(A);var R=i;R&&o<=n?l.paused?o--:(s===i&&(s=null),i=R.next,R.next=null,e.call(t,R.value,R.worked),s===null&&l.empty()):--o===0&&l.drain()}function S(){i=null,s=null,l.drain=Vo}function v(){i=null,s=null,l.drain(),l.drain=Vo}function T(A){a=A}}function Vo(){}function QBe(){this.value=null,this.callback=Vo,this.next=null,this.release=Vo,this.context=null,this.errorHandler=null;var t=this;this.worked=function(n,r){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=Vo,t.errorHandler&&s(n,o),i.call(t.context,n,r),t.release(t)}}function XBe(t,e,n){typeof t=="function"&&(n=e,e=t,t=null);function r(u,d){e.call(this,u).then(function(f){d(null,f)},d)}var i=Ole(t,r,n),s=i.push,o=i.unshift;return i.push=a,i.unshift=l,i.drained=c,i;function a(u){var d=new Promise(function(f,m){s(u,function(b,g){if(b){m(b);return}f(g)})});return d.catch(Vo),d}function l(u){var d=new Promise(function(f,m){o(u,function(b,g){if(b){m(b);return}f(g)})});return d.catch(Vo),d}function c(){var u=new Promise(function(d){process.nextTick(function(){if(i.idle())d();else{var f=i.drain;i.drain=function(){typeof f=="function"&&f(),d(),i.drain=f}}})});return u}}dq.exports=Ole;dq.exports.promise=XBe});var Qx=I(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.joinPathSegments=Dl.replacePathSegmentSeparator=Dl.isAppliedFilter=Dl.isFatalError=void 0;function ZBe(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Dl.isFatalError=ZBe;function eHe(t,e){return t===null||t(e)}Dl.isAppliedFilter=eHe;function tHe(t,e){return t.split(/[/\\]/).join(e)}Dl.replacePathSegmentSeparator=tHe;function nHe(t,e,n){return t===""?e:t.endsWith(n)?t+e:t+n+e}Dl.joinPathSegments=nHe});var pq=I(fq=>{"use strict";Object.defineProperty(fq,"__esModule",{value:!0});var rHe=Qx(),hq=class{constructor(e,n){this._root=e,this._settings=n,this._root=rHe.replacePathSegmentSeparator(e,n.pathSegmentSeparator)}};fq.default=hq});var bq=I(gq=>{"use strict";Object.defineProperty(gq,"__esModule",{value:!0});var iHe=require("events"),sHe=Yx(),oHe=Nle(),Xx=Qx(),aHe=pq(),mq=class extends aHe.default{constructor(e,n){super(e,n),this._settings=n,this._scandir=sHe.scandir,this._emitter=new iHe.EventEmitter,this._queue=oHe(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,n){let r={directory:e,base:n};this._queue.push(r,i=>{i!==null&&this._handleError(i)})}_worker(e,n){this._scandir(e.directory,this._settings.fsScandirSettings,(r,i)=>{if(r!==null){n(r,void 0);return}for(let s of i)this._handleEntry(s,e.base);n(null,void 0)})}_handleError(e){this._isDestroyed||!Xx.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,n){if(this._isDestroyed||this._isFatalError)return;let r=e.path;n!==void 0&&(e.path=Xx.joinPathSegments(n,e.name,this._settings.pathSegmentSeparator)),Xx.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Xx.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(r,n===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};gq.default=mq});var Lle=I(vq=>{"use strict";Object.defineProperty(vq,"__esModule",{value:!0});var lHe=bq(),yq=class{constructor(e,n){this._root=e,this._settings=n,this._reader=new lHe.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(n=>{cHe(e,n)}),this._reader.onEntry(n=>{this._storage.push(n)}),this._reader.onEnd(()=>{uHe(e,this._storage)}),this._reader.read()}};vq.default=yq;function cHe(t,e){t(e)}function uHe(t,e){t(null,e)}});var qle=I(_q=>{"use strict";Object.defineProperty(_q,"__esModule",{value:!0});var dHe=require("stream"),hHe=bq(),wq=class{constructor(e,n){this._root=e,this._settings=n,this._reader=new hHe.default(this._root,this._settings),this._stream=new dHe.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};_q.default=wq});var $le=I(Cq=>{"use strict";Object.defineProperty(Cq,"__esModule",{value:!0});var fHe=Yx(),Zx=Qx(),pHe=pq(),Sq=class extends pHe.default{constructor(){super(...arguments),this._scandir=fHe.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,n){this._queue.add({directory:e,base:n})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,n){try{let r=this._scandir(e,this._settings.fsScandirSettings);for(let i of r)this._handleEntry(i,n)}catch(r){this._handleError(r)}}_handleError(e){if(Zx.isFatalError(this._settings,e))throw e}_handleEntry(e,n){let r=e.path;n!==void 0&&(e.path=Zx.joinPathSegments(n,e.name,this._settings.pathSegmentSeparator)),Zx.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Zx.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(r,n===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Cq.default=Sq});var zle=I(kq=>{"use strict";Object.defineProperty(kq,"__esModule",{value:!0});var mHe=$le(),xq=class{constructor(e,n){this._root=e,this._settings=n,this._reader=new mHe.default(this._root,this._settings)}read(){return this._reader.read()}};kq.default=xq});var jle=I(Fq=>{"use strict";Object.defineProperty(Fq,"__esModule",{value:!0});var gHe=require("path"),bHe=Yx(),Aq=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,gHe.sep),this.fsScandirSettings=new bHe.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,n){return e??n}};Fq.default=Aq});var tk=I(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.Settings=Rl.walkStream=Rl.walkSync=Rl.walk=void 0;var Wle=Lle(),yHe=qle(),vHe=zle(),Eq=jle();Rl.Settings=Eq.default;function wHe(t,e,n){if(typeof e=="function"){new Wle.default(t,ek()).read(e);return}new Wle.default(t,ek(e)).read(n)}Rl.walk=wHe;function _He(t,e){let n=ek(e);return new vHe.default(t,n).read()}Rl.walkSync=_He;function SHe(t,e){let n=ek(e);return new yHe.default(t,n).read()}Rl.walkStream=SHe;function ek(t={}){return t instanceof Eq.default?t:new Eq.default(t)}});var nk=I(Mq=>{"use strict";Object.defineProperty(Mq,"__esModule",{value:!0});var CHe=require("path"),xHe=lf(),Ule=Bc(),Tq=class{constructor(e){this._settings=e,this._fsStatSettings=new xHe.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return CHe.resolve(this._settings.cwd,e)}_makeEntry(e,n){let r={name:n,path:n,dirent:Ule.fs.createDirentFromStats(n,e)};return this._settings.stats&&(r.stats=e),r}_isFatalError(e){return!Ule.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Mq.default=Tq});var Iq=I(Rq=>{"use strict";Object.defineProperty(Rq,"__esModule",{value:!0});var kHe=require("stream"),AHe=lf(),FHe=tk(),EHe=nk(),Dq=class extends EHe.default{constructor(){super(...arguments),this._walkStream=FHe.walkStream,this._stat=AHe.stat}dynamic(e,n){return this._walkStream(e,n)}static(e,n){let r=e.map(this._getFullEntryPath,this),i=new kHe.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(r[s],e[s],n).then(l=>{l!==null&&n.entryFilter(l)&&i.push(l),s===r.length-1&&i.end(),a()}).catch(a);for(let s=0;s<r.length;s++)i.write(s);return i}_getEntry(e,n,r){return this._getStat(e).then(i=>this._makeEntry(i,n)).catch(i=>{if(r.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((n,r)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?n(s):r(i))})}};Rq.default=Dq});var Ble=I(Oq=>{"use strict";Object.defineProperty(Oq,"__esModule",{value:!0});var THe=tk(),MHe=nk(),DHe=Iq(),Pq=class extends MHe.default{constructor(){super(...arguments),this._walkAsync=THe.walk,this._readerStream=new DHe.default(this._settings)}dynamic(e,n){return new Promise((r,i)=>{this._walkAsync(e,n,(s,o)=>{s===null?r(o):i(s)})})}async static(e,n){let r=[],i=this._readerStream.static(e,n);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>r.push(a)),i.once("end",()=>s(r))})}};Oq.default=Pq});var Hle=I(Lq=>{"use strict";Object.defineProperty(Lq,"__esModule",{value:!0});var Iv=Bc(),Nq=class{constructor(e,n,r){this._patterns=e,this._settings=n,this._micromatchOptions=r,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let n=this._getPatternSegments(e),r=this._splitSegmentsIntoSections(n);this._storage.push({complete:r.length<=1,pattern:e,segments:n,sections:r})}}_getPatternSegments(e){return Iv.pattern.getPatternParts(e,this._micromatchOptions).map(r=>Iv.pattern.isDynamicPattern(r,this._settings)?{dynamic:!0,pattern:r,patternRe:Iv.pattern.makeRe(r,this._micromatchOptions)}:{dynamic:!1,pattern:r})}_splitSegmentsIntoSections(e){return Iv.array.splitWhen(e,n=>n.dynamic&&Iv.pattern.hasGlobStar(n.pattern))}};Lq.default=Nq});var Vle=I($q=>{"use strict";Object.defineProperty($q,"__esModule",{value:!0});var RHe=Hle(),qq=class extends RHe.default{match(e){let n=e.split("/"),r=n.length,i=this._storage.filter(s=>!s.complete||s.segments.length>r);for(let s of i){let o=s.sections[0];if(!s.complete&&r>o.length||n.every((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};$q.default=qq});var Kle=I(jq=>{"use strict";Object.defineProperty(jq,"__esModule",{value:!0});var rk=Bc(),IHe=Vle(),zq=class{constructor(e,n){this._settings=e,this._micromatchOptions=n}getFilter(e,n,r){let i=this._getMatcher(n),s=this._getNegativePatternsRe(r);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new IHe.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let n=e.filter(rk.pattern.isAffectDepthOfReadingPattern);return rk.pattern.convertPatternsToRe(n,this._micromatchOptions)}_filter(e,n,r,i){if(this._isSkippedByDeep(e,n.path)||this._isSkippedSymbolicLink(n))return!1;let s=rk.path.removeLeadingDotSegment(n.path);return this._isSkippedByPositivePatterns(s,r)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,n){return this._settings.deep===1/0?!1:this._getEntryLevel(e,n)>=this._settings.deep}_getEntryLevel(e,n){let r=n.split("/").length;if(e==="")return r;let i=e.split("/").length;return r-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,n){return!this._settings.baseNameMatch&&!n.match(e)}_isSkippedByNegativePatterns(e,n){return!rk.pattern.matchAny(e,n)}};jq.default=zq});var Gle=I(Uq=>{"use strict";Object.defineProperty(Uq,"__esModule",{value:!0});var Dd=Bc(),Wq=class{constructor(e,n){this._settings=e,this._micromatchOptions=n,this.index=new Map}getFilter(e,n){let[r,i]=Dd.pattern.partitionAbsoluteAndRelative(n),s={positive:{all:Dd.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:Dd.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:Dd.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o=>this._filter(o,s)}_filter(e,n){let r=Dd.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(r)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let i=this._isMatchToPatternsSet(r,n,e.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(r),i}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,n,r){return!(!this._isMatchToPatterns(e,n.positive.all,r)||this._isMatchToPatterns(e,n.negative.relative,r)||this._isMatchToAbsoluteNegative(e,n.negative.absolute,r))}_isMatchToAbsoluteNegative(e,n,r){if(n.length===0)return!1;let i=Dd.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(i,n,r)}_isMatchToPatterns(e,n,r){if(n.length===0)return!1;let i=Dd.pattern.matchAny(e,n);return!i&&r?Dd.pattern.matchAny(e+"/",n):i}};Uq.default=Wq});var Jle=I(Hq=>{"use strict";Object.defineProperty(Hq,"__esModule",{value:!0});var PHe=Bc(),Bq=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return PHe.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Hq.default=Bq});var Qle=I(Kq=>{"use strict";Object.defineProperty(Kq,"__esModule",{value:!0});var Yle=Bc(),Vq=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let n=e.path;return this._settings.absolute&&(n=Yle.path.makeAbsolute(this._settings.cwd,n),n=Yle.path.unixify(n)),this._settings.markDirectories&&e.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:n}):n}};Kq.default=Vq});var ik=I(Jq=>{"use strict";Object.defineProperty(Jq,"__esModule",{value:!0});var OHe=require("path"),NHe=Kle(),LHe=Gle(),qHe=Jle(),$He=Qle(),Gq=class{constructor(e){this._settings=e,this.errorFilter=new qHe.default(this._settings),this.entryFilter=new LHe.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new NHe.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new $He.default(this._settings)}_getRootDirectory(e){return OHe.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let n=e.base==="."?"":e.base;return{basePath:n,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(n,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Jq.default=Gq});var Xle=I(Qq=>{"use strict";Object.defineProperty(Qq,"__esModule",{value:!0});var zHe=Ble(),jHe=ik(),Yq=class extends jHe.default{constructor(){super(...arguments),this._reader=new zHe.default(this._settings)}async read(e){let n=this._getRootDirectory(e),r=this._getReaderOptions(e);return(await this.api(n,e,r)).map(s=>r.transform(s))}api(e,n,r){return n.dynamic?this._reader.dynamic(e,r):this._reader.static(n.patterns,r)}};Qq.default=Yq});var Zle=I(Zq=>{"use strict";Object.defineProperty(Zq,"__esModule",{value:!0});var WHe=require("stream"),UHe=Iq(),BHe=ik(),Xq=class extends BHe.default{constructor(){super(...arguments),this._reader=new UHe.default(this._settings)}read(e){let n=this._getRootDirectory(e),r=this._getReaderOptions(e),i=this.api(n,e,r),s=new WHe.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",r.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,n,r){return n.dynamic?this._reader.dynamic(e,r):this._reader.static(n.patterns,r)}};Zq.default=Xq});var ece=I(t3=>{"use strict";Object.defineProperty(t3,"__esModule",{value:!0});var HHe=lf(),VHe=tk(),KHe=nk(),e3=class extends KHe.default{constructor(){super(...arguments),this._walkSync=VHe.walkSync,this._statSync=HHe.statSync}dynamic(e,n){return this._walkSync(e,n)}static(e,n){let r=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,n);o===null||!n.entryFilter(o)||r.push(o)}return r}_getEntry(e,n,r){try{let i=this._getStat(e);return this._makeEntry(i,n)}catch(i){if(r.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};t3.default=e3});var tce=I(r3=>{"use strict";Object.defineProperty(r3,"__esModule",{value:!0});var GHe=ece(),JHe=ik(),n3=class extends JHe.default{constructor(){super(...arguments),this._reader=new GHe.default(this._settings)}read(e){let n=this._getRootDirectory(e),r=this._getReaderOptions(e);return this.api(n,e,r).map(r.transform)}api(e,n,r){return n.dynamic?this._reader.dynamic(e,r):this._reader.static(n.patterns,r)}};r3.default=n3});var nce=I(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});eg.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Zm=require("fs"),YHe=require("os"),QHe=Math.max(YHe.cpus().length,1);eg.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Zm.lstat,lstatSync:Zm.lstatSync,stat:Zm.stat,statSync:Zm.statSync,readdir:Zm.readdir,readdirSync:Zm.readdirSync};var i3=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,QHe),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,n){return e===void 0?n:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},eg.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};eg.default=i3});var sce=I((hSt,ice)=>{"use strict";var rce=ile(),XHe=Xle(),ZHe=Zle(),eVe=tce(),s3=nce(),Ko=Bc();async function o3(t,e){Ia(t);let n=a3(t,XHe.default,e),r=await Promise.all(n);return Ko.array.flatten(r)}(function(t){t.glob=t,t.globSync=e,t.globStream=n,t.async=t;function e(c,u){Ia(c);let d=a3(c,eVe.default,u);return Ko.array.flatten(d)}t.sync=e;function n(c,u){Ia(c);let d=a3(c,ZHe.default,u);return Ko.stream.merge(d)}t.stream=n;function r(c,u){Ia(c);let d=[].concat(c),f=new s3.default(u);return rce.generate(d,f)}t.generateTasks=r;function i(c,u){Ia(c);let d=new s3.default(u);return Ko.pattern.isDynamicPattern(c,d)}t.isDynamicPattern=i;function s(c){return Ia(c),Ko.path.escape(c)}t.escapePath=s;function o(c){return Ia(c),Ko.path.convertPathToPattern(c)}t.convertPathToPattern=o;let a;(function(c){function u(f){return Ia(f),Ko.path.escapePosixPath(f)}c.escapePath=u;function d(f){return Ia(f),Ko.path.convertPosixPathToPattern(f)}c.convertPathToPattern=d})(a=t.posix||(t.posix={}));let l;(function(c){function u(f){return Ia(f),Ko.path.escapeWindowsPath(f)}c.escapePath=u;function d(f){return Ia(f),Ko.path.convertWindowsPathToPattern(f)}c.convertPathToPattern=d})(l=t.win32||(t.win32={}))})(o3||(o3={}));function a3(t,e,n){let r=[].concat(t),i=new s3.default(n),s=rce.generate(r,i),o=new e(i);return s.map(o.read,o)}function Ia(t){if(![].concat(t).every(r=>Ko.string.isString(r)&&!Ko.string.isEmpty(r)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}ice.exports=o3});var ace=I(tg=>{"use strict";var tVe=tg&&tg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tg,"__esModule",{value:!0});tg.create=void 0;var nVe=require("node:path"),cf=dc(),rVe=tVe(sce()),l3=rt(),oce=xc(),iVe=sm(),sVe=t=>({capabilities:{completionProvider:{triggerCharacters:["-"]},diagnosticProvider:{interFileDependencies:!1,workspaceDiagnostics:!1},codeLensProvider:{}},create(e){return{provideCompletionItems(n,r,i,s){if(s.isCancellationRequested)return null;let o=[],a=e.decodeEmbeddedDocumentUri(l3.URI.parse(n.uri)),l=a&&e.language.scripts.get(a[0]),c=a&&l?.generated?.embeddedCodes.get(a[1]);if(c instanceof oce.AstroVirtualCode){if(i.triggerCharacter==="-"){let u=aVe(c,n,r);u&&o.push(u)}return{isIncomplete:!1,items:o}}},provideDiagnostics(n,r){if(r.isCancellationRequested)return[];let i=e.decodeEmbeddedDocumentUri(l3.URI.parse(n.uri)),s=i&&e.language.scripts.get(i[0]),o=i&&s?.generated?.embeddedCodes.get(i[1]);if(!(o instanceof oce.AstroVirtualCode))return;return o.compilerDiagnostics.map(a);function a(l){let c=cf.Position.create(l.location.line-1,l.location.column-1),u=n.positionAt(n.offsetAt(c)+l.location.length);return{message:l.text+(l.hint?`
|
|
778
778
|
|
|
779
779
|
`+l.hint:""),range:cf.Range.create(c,u),code:l.code,severity:l.severity,source:"astro"}}},provideCodeLenses(n,r){if(r.isCancellationRequested||!(0,iVe.isJSDocument)(n.languageId)||!e.project.typescript)return;let{uriConverter:i}=e.project.typescript,s=e.inject("typescript/languageService");if(!s)return;let o=s.getProgram();if(!o)return;let a=e.decodeEmbeddedDocumentUri(l3.URI.parse(n.uri));if(!a)return;let l=[],c=o.getSourceFile(a[0].fsPath);function u(){return t.forEachChild(c,function d(f){if(t.isCallExpression(f)&&f.expression.getText()==="Astro.glob"){let m=f.arguments.at(0);m&&a&&l.push(oVe(m.getText().slice(1,-1),(0,nVe.dirname)(i.asFileName(a[0])),n.positionAt(f.arguments.pos)))}return t.forEachChild(f,d)})}return u(),l}}}});tg.create=sVe;function oVe(t,e,n){let r=rVe.default.sync(t,{cwd:e,onlyFiles:!0});return{range:cf.Range.create(n,n),command:{title:`Matches ${r.length} files`,command:""}}}function aVe(t,e,n){let r={kind:cf.CompletionItemKind.Snippet,label:"---",sortText:"\0",preselect:!0,detail:"Create component script block",insertTextFormat:cf.InsertTextFormat.Snippet,commitCharacters:[]},i=e.getText().split(/\r?\n/),{line:s,character:o}=e.positionAt(e.offsetAt(n)),a=i[s].slice(0,o);if(t.astroMeta.frontmatter.status==="doesnt-exist")return{...r,insertText:`---
|
|
780
780
|
$0
|
|
@@ -1038,9 +1038,9 @@ $3`);if(n=n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),this.indentation!==void 0){l
|
|
|
1038
1038
|
`),t+`
|
|
1039
1039
|
`)}function qdt(t){let e="JSON Schema",n=t.url;if(n){let r=Odt.URI.parse(n);e=Ndt.basename(r.fsPath)}else t.title&&(e=t.title);return e}function Bye(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}function $dt(t,e,n){let r=0;for(let i of e)t===i.node&&i.schema!==n&&n.anyOf.forEach(s=>{i.schema.title===s.title&&i.schema.description===s.description&&i.schema.properties===s.properties&&r++});return r===n.anyOf.length}});var Gye=I(oE=>{"use strict";Object.defineProperty(oE,"__esModule",{value:!0});oE.UnusedAnchorsValidator=void 0;var rh=yr(),rb=Li(),zdt=hF(),Vye=cr(),tW=class{validate(e,n){let r=[],i=new Set,s=new Set,o=new Set,a=new Map;(0,rb.visit)(n.internalDocument,(l,c,u)=>{(0,rb.isNode)(c)&&(((0,rb.isCollection)(c)||(0,rb.isScalar)(c))&&c.anchor&&(i.add(c),a.set(c,u[u.length-1])),(0,rb.isAlias)(c)&&(c.resolve(n.internalDocument)?s.add(c.resolve(n.internalDocument)):o.add(c)))});for(let l of i)if(!s.has(l)){let c=this.getAnchorNode(a.get(l),l);if(c){let u=rh.Range.create(e.positionAt(c.offset),e.positionAt(c.offset+c.source.length)),d=rh.Diagnostic.create(u,Vye.t("unUsedAnchor",c.source),rh.DiagnosticSeverity.Information,0);d.tags=[rh.DiagnosticTag.Unnecessary],r.push(d)}}return o.forEach(l=>{let c=l.range;if(c){let u=c[0],d=c[1],f=rh.Range.create(e.positionAt(u),e.positionAt(d)),m=rh.Diagnostic.create(f,Vye.t("unUsedAlias",l.toString()),rh.DiagnosticSeverity.Information,0);m.tags=[rh.DiagnosticTag.Unnecessary],r.push(m)}}),r}getAnchorNode(e,n){if(e&&e.srcToken){let r=e.srcToken;if((0,zdt.isCollectionItem)(r))return Kye(r);if(rb.CST.isCollection(r))for(let i of r.items){if(n.srcToken!==i.value)continue;let s=Kye(i);if(s)return s}}}};oE.UnusedAnchorsValidator=tW;function Kye(t){for(let e of t.start)if(e.type==="anchor")return e;if(t.sep&&Array.isArray(t.sep)){for(let e of t.sep)if(e.type==="anchor")return e}}});var Yye=I(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});aE.YAMLStyleValidator=void 0;var g0=yr(),nW=Li(),Jye=cr(),rW=class{constructor(e){this.forbidMapping=e.flowMapping==="forbid",this.forbidSequence=e.flowSequence==="forbid"}validate(e,n){let r=[];return(0,nW.visit)(n.internalDocument,(i,s)=>{this.forbidMapping&&(0,nW.isMap)(s)&&s.srcToken?.type==="flow-collection"&&r.push(g0.Diagnostic.create(this.getRangeOf(e,s.srcToken),Jye.t("flowStyleMapForbidden","Flow style mapping is forbidden"),g0.DiagnosticSeverity.Error,"flowMap")),this.forbidSequence&&(0,nW.isSeq)(s)&&s.srcToken?.type==="flow-collection"&&r.push(g0.Diagnostic.create(this.getRangeOf(e,s.srcToken),Jye.t("flowStyleSeqForbidden"),g0.DiagnosticSeverity.Error,"flowSeq"))}),r}getRangeOf(e,n){let r=n.end[0].offset,i=e.positionAt(r);return i={character:i.character+1,line:i.line},g0.Range.create(e.positionAt(n.start.offset),i)}};aE.YAMLStyleValidator=rW});var Xye=I(lE=>{"use strict";Object.defineProperty(lE,"__esModule",{value:!0});lE.MapKeyOrderValidator=void 0;var iW=yr(),Qye=Li(),sW=class{validate(e,n){let r=[];return(0,Qye.visit)(n.internalDocument,(i,s)=>{if((0,Qye.isMap)(s)){for(let o=1;o<s.items.length;o++)if(Wdt(s.items[o-1],s.items[o])>0){let a=jdt(e,s.items[o-1]);r.push(iW.Diagnostic.create(a,`Wrong ordering of key "${s.items[o-1].key}" in mapping`,iW.DiagnosticSeverity.Error,"mapKeyOrder"))}}}),r}};lE.MapKeyOrderValidator=sW;function jdt(t,e){let n=e?.srcToken.start[0]?.offset??e?.srcToken?.key.offset??e?.srcToken?.sep[0]?.offset,r=e?.srcToken?.value.offset||e?.srcToken?.sep[0]?.offset||e?.srcToken?.key.offset||e?.srcToken.start[e.srcToken.start.length-1]?.offset;return iW.Range.create(t.positionAt(n),t.positionAt(r))}function Wdt(t,e){let n=String(e.key);return String(t.key).localeCompare(n)}});var tve=I(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.YAMLValidation=Nf.yamlDiagToLSDiag=void 0;var Zye=yr(),Udt=(g$(),or(Gme)),eve=kf(),Bdt=Af(),Hdt=po(),Vdt=Gye(),Kdt=Yye(),Gdt=Xye(),Jdt=(t,e)=>{let n=e.positionAt(t.location.start),r={start:n,end:t.location.toLineEnd?Zye.Position.create(n.line,new Bdt.TextBuffer(e).getLineLength(n.line)):e.positionAt(t.location.end)};return Zye.Diagnostic.create(r,t.message,t.severity,t.code,eve.YAML_SOURCE)};Nf.yamlDiagToLSDiag=Jdt;var oW=class{constructor(e,n){this.telemetry=n,this.validators=[],this.MATCHES_MULTIPLE="Matches multiple schemas when only one must validate.",this.validationEnabled=!0,this.jsonValidation=new Udt.JSONValidation(e,Promise)}configure(e){this.validators=[],e&&(this.validationEnabled=e.validate,this.customTags=e.customTags,this.disableAdditionalProperties=e.disableAdditionalProperties,this.yamlVersion=e.yamlVersion,(e.flowMapping==="forbid"||e.flowSequence==="forbid")&&this.validators.push(new Kdt.YAMLStyleValidator(e)),e.keyOrdering&&this.validators.push(new Gdt.MapKeyOrderValidator)),this.validators.push(new Vdt.UnusedAnchorsValidator)}async doValidation(e,n=!1){if(!this.validationEnabled)return Promise.resolve([]);let r=[];try{let a=Hdt.yamlDocumentsCache.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0),l=0;for(let c of a.documents){c.isKubernetes=n,c.currentDocIndex=l,c.disableAdditionalProperties=this.disableAdditionalProperties,c.uri=e.uri;let u=await this.jsonValidation.doValidation(e,c),d=c;d.errors.length>0&&r.push(...d.errors),d.warnings.length>0&&r.push(...d.warnings),r.push(...u),r.push(...this.runAdditionalValidators(e,c)),l++}}catch(a){this.telemetry?.sendError("yaml.validation.error",a)}let i,s=new Set,o=[];for(let a of r){if(n&&a.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(a,"location")&&(a=(0,Nf.yamlDiagToLSDiag)(a,e)),a.source||(a.source=eve.YAML_SOURCE),i&&i.message===a.message&&i.range.end.line===a.range.start.line&&Math.abs(i.range.end.character-a.range.end.character)>=1){i.range.end=a.range.end;continue}else i=a;let l=a.range.start.line+" "+a.range.start.character+" "+a.message;s.has(l)||(o.push(a),s.add(l))}return o}runAdditionalValidators(e,n){let r=[];for(let i of this.validators)r.push(...i.validate(e,n));return r}};Nf.YAMLValidation=oW});var nve=I(cE=>{"use strict";Object.defineProperty(cE,"__esModule",{value:!0});cE.YAMLFormatter=void 0;var aW=yr(),Ydt=require("prettier/plugins/yaml"),Qdt=require("prettier/plugins/estree"),Xdt=require("prettier/standalone"),lW=class{constructor(){this.formatterEnabled=!0}configure(e){e&&(this.formatterEnabled=e.format)}async format(e,n={}){if(!this.formatterEnabled)return[];try{let r=e.getText(),i={parser:"yaml",plugins:[Ydt,Qdt],tabWidth:n.tabWidth||n.tabSize,singleQuote:n.singleQuote,bracketSpacing:n.bracketSpacing,proseWrap:n.proseWrap==="always"?"always":n.proseWrap==="never"?"never":"preserve",printWidth:n.printWidth,trailingComma:n.trailingComma===!1?"none":"all"},s=await(0,Xdt.format)(r,i);return[aW.TextEdit.replace(aW.Range.create(aW.Position.create(0,0),e.positionAt(r.length)),s)]}catch{return[]}}};cE.YAMLFormatter=lW});var rve=I(uE=>{"use strict";Object.defineProperty(uE,"__esModule",{value:!0});uE.YamlLinks=void 0;var Zdt=(S$(),or(oge)),eht=po(),cW=class{constructor(e){this.telemetry=e}findLinks(e){try{let n=eht.yamlDocumentsCache.getYamlDocument(e),r=[];for(let i of n.documents)r.push((0,Zdt.findLinks)(e,i));return Promise.all(r).then(i=>[].concat(...i))}catch(n){this.telemetry?.sendError("yaml.documentLink.error",n)}}};uE.YamlLinks=cW});var sve=I(hE=>{"use strict";Object.defineProperty(hE,"__esModule",{value:!0});hE.getFoldingRanges=void 0;var ive=yr(),tht=po();function nht(t,e){if(!t)return;let n=[],r=tht.yamlDocumentsCache.getYamlDocument(t);for(let s of r.documents)r.documents.length>1&&n.push(dE(t,s.root)),s.visit(o=>{if(o.type==="object"&&o.parent?.type==="array"&&n.push(dE(t,o)),o.type==="property"&&o.valueNode)switch(o.valueNode.type){case"array":case"object":n.push(dE(t,o));break;case"string":{let a=t.positionAt(o.offset),l=t.positionAt(o.valueNode.offset+o.valueNode.length);a.line!==l.line&&n.push(dE(t,o));break}default:return!0}return!0});let i=e&&e.rangeLimit;return typeof i!="number"||n.length<=i?n:(e&&e.onRangeLimitExceeded&&e.onRangeLimitExceeded(t.uri),n.slice(0,e.rangeLimit))}hE.getFoldingRanges=nht;function dE(t,e){let n=t.positionAt(e.offset),r=t.positionAt(e.offset+e.length),i=t.getText(ive.Range.create(n,r)),s=i.length-i.trimRight().length;return s>0&&(r=t.positionAt(e.offset+e.length-s)),ive.FoldingRange.create(n.line,r.line,n.character,r.character)}});var uW=I(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0});b0.YamlCommands=void 0;var rht;(function(t){t.JUMP_TO_SCHEMA="jumpToSchema"})(rht=b0.YamlCommands||(b0.YamlCommands={}))});var ove=I(fE=>{"use strict";Object.defineProperty(fE,"__esModule",{value:!0});fE.FlowStyleRewriter=void 0;var dW=Li(),hW=class{constructor(e){this.indentation=e}write(e){if(e.internalNode.srcToken.type!=="flow-collection")return null;let n=e.internalNode.srcToken,r=n.start.type==="flow-map-start"?"block-map":"block-seq",i=e.parent.type,s={type:r,offset:n.offset,indent:n.indent,items:[]};for(let o of n.items)dW.CST.visit(o,({key:a,sep:l,value:c})=>{if(r==="block-map"){let u=[{type:"space",indent:0,offset:a.offset,source:this.indentation}];i==="property"&&u.unshift({type:"newline",indent:0,offset:a.offset,source:`
|
|
1040
1040
|
`}),s.items.push({start:u,key:a,sep:l,value:c})}else r==="block-seq"&&s.items.push({start:[{type:"newline",indent:0,offset:c.offset,source:`
|
|
1041
|
-
`},{type:"space",indent:0,offset:c.offset,source:this.indentation},{type:"seq-item-ind",indent:0,offset:c.offset,source:"-"},{type:"space",indent:0,offset:c.offset,source:" "}],value:c});if(c.type==="flow-collection")return dW.visit.SKIP});return dW.CST.stringify(s)}};fE.FlowStyleRewriter=hW});var ave=I((ib,y0)=>{(function(){var t,e="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",a=500,l="__lodash_placeholder__",c=1,u=2,d=4,f=1,m=2,b=1,g=2,w=4,_=8,S=16,v=32,T=64,A=128,R=256,k=512,y=30,C="...",M=800,E=16,D=1,N=2,$=3,F=1/0,P=9007199254740991,L=17976931348623157e292,j=0/0,z=4294967295,K=z-1,X=z>>>1,ee=[["ary",A],["bind",b],["bindKey",g],["curry",_],["curryRight",S],["flip",k],["partial",v],["partialRight",T],["rearg",R]],de="[object Arguments]",Se="[object Array]",De="[object AsyncFunction]",ke="[object Boolean]",Ye="[object Date]",St="[object DOMException]",we="[object Error]",Ne="[object Function]",me="[object GeneratorFunction]",Re="[object Map]",it="[object Number]",un="[object Null]",lt="[object Object]",ri="[object Promise]",pr="[object Proxy]",Gr="[object RegExp]",Vt="[object Set]",mr="[object String]",Wi="[object Symbol]",ou="[object Undefined]",Jr="[object WeakMap]",ah="[object WeakSet]",ca="[object ArrayBuffer]",qs="[object DataView]",Jl="[object Float32Array]",$s="[object Float64Array]",Z="[object Int8Array]",pe="[object Int16Array]",Te="[object Int32Array]",$e="[object Uint8Array]",tn="[object Uint8ClampedArray]",Kt="[object Uint16Array]",Sn="[object Uint32Array]",On=/\b__p \+= '';/g,At=/\b(__p \+=) '' \+/g,Cn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,zt=/&(?:amp|lt|gt|quot|#39);/g,$n=/[&<>"']/g,Er=RegExp(zt.source),Ui=RegExp($n.source),Wf=/<%-([\s\S]+?)%>/g,S0=/<%([\s\S]+?)%>/g,lb=/<%=([\s\S]+?)%>/g,C0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x0=/^\w*$/,EE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,B=RegExp(ae.source),te=/^\s+/,re=/\s/,G=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,U=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ct=/[()=,{}\[\]\/\s]/,Jn=/\\(\\)?/g,Fn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ls=/\w*$/,zs=/^[-+]0x[0-9a-f]+$/i,ua=/^0b[01]+$/i,Pt=/^\[object .+?Constructor\]$/,au=/^0o[0-7]+$/i,Uf=/^(?:0|[1-9]\d*)$/,k0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,A0=/($^)/,Uve=/['\n\r\u2028\u2029\\]/g,F0="\\ud800-\\udfff",Bve="\\u0300-\\u036f",Hve="\\ufe20-\\ufe2f",Vve="\\u20d0-\\u20ff",TW=Bve+Hve+Vve,MW="\\u2700-\\u27bf",DW="a-z\\xdf-\\xf6\\xf8-\\xff",Kve="\\xac\\xb1\\xd7\\xf7",Gve="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Jve="\\u2000-\\u206f",Yve=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",RW="A-Z\\xc0-\\xd6\\xd8-\\xde",IW="\\ufe0e\\ufe0f",PW=Kve+Gve+Jve+Yve,TE="['\u2019]",Qve="["+F0+"]",OW="["+PW+"]",E0="["+TW+"]",NW="\\d+",Xve="["+MW+"]",LW="["+DW+"]",qW="[^"+F0+PW+NW+MW+DW+RW+"]",ME="\\ud83c[\\udffb-\\udfff]",Zve="(?:"+E0+"|"+ME+")",$W="[^"+F0+"]",DE="(?:\\ud83c[\\udde6-\\uddff]){2}",RE="[\\ud800-\\udbff][\\udc00-\\udfff]",Bf="["+RW+"]",zW="\\u200d",jW="(?:"+LW+"|"+qW+")",ewe="(?:"+Bf+"|"+qW+")",WW="(?:"+TE+"(?:d|ll|m|re|s|t|ve))?",UW="(?:"+TE+"(?:D|LL|M|RE|S|T|VE))?",BW=Zve+"?",HW="["+IW+"]?",twe="(?:"+zW+"(?:"+[$W,DE,RE].join("|")+")"+HW+BW+")*",nwe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rwe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",VW=HW+BW+twe,iwe="(?:"+[Xve,DE,RE].join("|")+")"+VW,swe="(?:"+[$W+E0+"?",E0,DE,RE,Qve].join("|")+")",owe=RegExp(TE,"g"),awe=RegExp(E0,"g"),IE=RegExp(ME+"(?="+ME+")|"+swe+VW,"g"),lwe=RegExp([Bf+"?"+LW+"+"+WW+"(?="+[OW,Bf,"$"].join("|")+")",ewe+"+"+UW+"(?="+[OW,Bf+jW,"$"].join("|")+")",Bf+"?"+jW+"+"+WW,Bf+"+"+UW,rwe,nwe,NW,iwe].join("|"),"g"),cwe=RegExp("["+zW+F0+TW+IW+"]"),uwe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dwe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],hwe=-1,zn={};zn[Jl]=zn[$s]=zn[Z]=zn[pe]=zn[Te]=zn[$e]=zn[tn]=zn[Kt]=zn[Sn]=!0,zn[de]=zn[Se]=zn[ca]=zn[ke]=zn[qs]=zn[Ye]=zn[we]=zn[Ne]=zn[Re]=zn[it]=zn[lt]=zn[Gr]=zn[Vt]=zn[mr]=zn[Jr]=!1;var Nn={};Nn[de]=Nn[Se]=Nn[ca]=Nn[qs]=Nn[ke]=Nn[Ye]=Nn[Jl]=Nn[$s]=Nn[Z]=Nn[pe]=Nn[Te]=Nn[Re]=Nn[it]=Nn[lt]=Nn[Gr]=Nn[Vt]=Nn[mr]=Nn[Wi]=Nn[$e]=Nn[tn]=Nn[Kt]=Nn[Sn]=!0,Nn[we]=Nn[Ne]=Nn[Jr]=!1;var fwe={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},pwe={"&":"&","<":"<",">":">",'"':""","'":"'"},mwe={"&":"&","<":"<",">":">",""":'"',"'":"'"},gwe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bwe=parseFloat,ywe=parseInt,KW=typeof global=="object"&&global&&global.Object===Object&&global,vwe=typeof self=="object"&&self&&self.Object===Object&&self,Yr=KW||vwe||Function("return this")(),PE=typeof ib=="object"&&ib&&!ib.nodeType&&ib,lh=PE&&typeof y0=="object"&&y0&&!y0.nodeType&&y0,GW=lh&&lh.exports===PE,OE=GW&&KW.process,go=function(){try{var ie=lh&&lh.require&&lh.require("util").types;return ie||OE&&OE.binding&&OE.binding("util")}catch{}}(),JW=go&&go.isArrayBuffer,YW=go&&go.isDate,QW=go&&go.isMap,XW=go&&go.isRegExp,ZW=go&&go.isSet,e8=go&&go.isTypedArray;function js(ie,he,ue){switch(ue.length){case 0:return ie.call(he);case 1:return ie.call(he,ue[0]);case 2:return ie.call(he,ue[0],ue[1]);case 3:return ie.call(he,ue[0],ue[1],ue[2])}return ie.apply(he,ue)}function wwe(ie,he,ue,ze){for(var ut=-1,dn=ie==null?0:ie.length;++ut<dn;){var zr=ie[ut];he(ze,zr,ue(zr),ie)}return ze}function bo(ie,he){for(var ue=-1,ze=ie==null?0:ie.length;++ue<ze&&he(ie[ue],ue,ie)!==!1;);return ie}function _we(ie,he){for(var ue=ie==null?0:ie.length;ue--&&he(ie[ue],ue,ie)!==!1;);return ie}function t8(ie,he){for(var ue=-1,ze=ie==null?0:ie.length;++ue<ze;)if(!he(ie[ue],ue,ie))return!1;return!0}function lu(ie,he){for(var ue=-1,ze=ie==null?0:ie.length,ut=0,dn=[];++ue<ze;){var zr=ie[ue];he(zr,ue,ie)&&(dn[ut++]=zr)}return dn}function T0(ie,he){var ue=ie==null?0:ie.length;return!!ue&&Hf(ie,he,0)>-1}function NE(ie,he,ue){for(var ze=-1,ut=ie==null?0:ie.length;++ze<ut;)if(ue(he,ie[ze]))return!0;return!1}function Yn(ie,he){for(var ue=-1,ze=ie==null?0:ie.length,ut=Array(ze);++ue<ze;)ut[ue]=he(ie[ue],ue,ie);return ut}function cu(ie,he){for(var ue=-1,ze=he.length,ut=ie.length;++ue<ze;)ie[ut+ue]=he[ue];return ie}function LE(ie,he,ue,ze){var ut=-1,dn=ie==null?0:ie.length;for(ze&&dn&&(ue=ie[++ut]);++ut<dn;)ue=he(ue,ie[ut],ut,ie);return ue}function Swe(ie,he,ue,ze){var ut=ie==null?0:ie.length;for(ze&&ut&&(ue=ie[--ut]);ut--;)ue=he(ue,ie[ut],ut,ie);return ue}function qE(ie,he){for(var ue=-1,ze=ie==null?0:ie.length;++ue<ze;)if(he(ie[ue],ue,ie))return!0;return!1}var Cwe=$E("length");function xwe(ie){return ie.split("")}function kwe(ie){return ie.match(be)||[]}function n8(ie,he,ue){var ze;return ue(ie,function(ut,dn,zr){if(he(ut,dn,zr))return ze=dn,!1}),ze}function M0(ie,he,ue,ze){for(var ut=ie.length,dn=ue+(ze?1:-1);ze?dn--:++dn<ut;)if(he(ie[dn],dn,ie))return dn;return-1}function Hf(ie,he,ue){return he===he?Lwe(ie,he,ue):M0(ie,r8,ue)}function Awe(ie,he,ue,ze){for(var ut=ue-1,dn=ie.length;++ut<dn;)if(ze(ie[ut],he))return ut;return-1}function r8(ie){return ie!==ie}function i8(ie,he){var ue=ie==null?0:ie.length;return ue?jE(ie,he)/ue:j}function $E(ie){return function(he){return he==null?t:he[ie]}}function zE(ie){return function(he){return ie==null?t:ie[he]}}function s8(ie,he,ue,ze,ut){return ut(ie,function(dn,zr,In){ue=ze?(ze=!1,dn):he(ue,dn,zr,In)}),ue}function Fwe(ie,he){var ue=ie.length;for(ie.sort(he);ue--;)ie[ue]=ie[ue].value;return ie}function jE(ie,he){for(var ue,ze=-1,ut=ie.length;++ze<ut;){var dn=he(ie[ze]);dn!==t&&(ue=ue===t?dn:ue+dn)}return ue}function WE(ie,he){for(var ue=-1,ze=Array(ie);++ue<ie;)ze[ue]=he(ue);return ze}function Ewe(ie,he){return Yn(he,function(ue){return[ue,ie[ue]]})}function o8(ie){return ie&&ie.slice(0,u8(ie)+1).replace(te,"")}function Ws(ie){return function(he){return ie(he)}}function UE(ie,he){return Yn(he,function(ue){return ie[ue]})}function cb(ie,he){return ie.has(he)}function a8(ie,he){for(var ue=-1,ze=ie.length;++ue<ze&&Hf(he,ie[ue],0)>-1;);return ue}function l8(ie,he){for(var ue=ie.length;ue--&&Hf(he,ie[ue],0)>-1;);return ue}function Twe(ie,he){for(var ue=ie.length,ze=0;ue--;)ie[ue]===he&&++ze;return ze}var Mwe=zE(fwe),Dwe=zE(pwe);function Rwe(ie){return"\\"+gwe[ie]}function Iwe(ie,he){return ie==null?t:ie[he]}function Vf(ie){return cwe.test(ie)}function Pwe(ie){return uwe.test(ie)}function Owe(ie){for(var he,ue=[];!(he=ie.next()).done;)ue.push(he.value);return ue}function BE(ie){var he=-1,ue=Array(ie.size);return ie.forEach(function(ze,ut){ue[++he]=[ut,ze]}),ue}function c8(ie,he){return function(ue){return ie(he(ue))}}function uu(ie,he){for(var ue=-1,ze=ie.length,ut=0,dn=[];++ue<ze;){var zr=ie[ue];(zr===he||zr===l)&&(ie[ue]=l,dn[ut++]=ue)}return dn}function D0(ie){var he=-1,ue=Array(ie.size);return ie.forEach(function(ze){ue[++he]=ze}),ue}function Nwe(ie){var he=-1,ue=Array(ie.size);return ie.forEach(function(ze){ue[++he]=[ze,ze]}),ue}function Lwe(ie,he,ue){for(var ze=ue-1,ut=ie.length;++ze<ut;)if(ie[ze]===he)return ze;return-1}function qwe(ie,he,ue){for(var ze=ue+1;ze--;)if(ie[ze]===he)return ze;return ze}function Kf(ie){return Vf(ie)?zwe(ie):Cwe(ie)}function da(ie){return Vf(ie)?jwe(ie):xwe(ie)}function u8(ie){for(var he=ie.length;he--&&re.test(ie.charAt(he)););return he}var $we=zE(mwe);function zwe(ie){for(var he=IE.lastIndex=0;IE.test(ie);)++he;return he}function jwe(ie){return ie.match(IE)||[]}function Wwe(ie){return ie.match(lwe)||[]}var Uwe=function ie(he){he=he==null?Yr:du.defaults(Yr.Object(),he,du.pick(Yr,dwe));var ue=he.Array,ze=he.Date,ut=he.Error,dn=he.Function,zr=he.Math,In=he.Object,HE=he.RegExp,Bwe=he.String,yo=he.TypeError,R0=ue.prototype,Hwe=dn.prototype,Gf=In.prototype,I0=he["__core-js_shared__"],P0=Hwe.toString,xn=Gf.hasOwnProperty,Vwe=0,d8=function(){var h=/[^.]+$/.exec(I0&&I0.keys&&I0.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),O0=Gf.toString,Kwe=P0.call(In),Gwe=Yr._,Jwe=HE("^"+P0.call(xn).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N0=GW?he.Buffer:t,hu=he.Symbol,L0=he.Uint8Array,h8=N0?N0.allocUnsafe:t,q0=c8(In.getPrototypeOf,In),f8=In.create,p8=Gf.propertyIsEnumerable,$0=R0.splice,m8=hu?hu.isConcatSpreadable:t,ub=hu?hu.iterator:t,ch=hu?hu.toStringTag:t,z0=function(){try{var h=ph(In,"defineProperty");return h({},"",{}),h}catch{}}(),Ywe=he.clearTimeout!==Yr.clearTimeout&&he.clearTimeout,Qwe=ze&&ze.now!==Yr.Date.now&&ze.now,Xwe=he.setTimeout!==Yr.setTimeout&&he.setTimeout,j0=zr.ceil,W0=zr.floor,VE=In.getOwnPropertySymbols,Zwe=N0?N0.isBuffer:t,g8=he.isFinite,e0e=R0.join,t0e=c8(In.keys,In),jr=zr.max,xi=zr.min,n0e=ze.now,r0e=he.parseInt,b8=zr.random,i0e=R0.reverse,KE=ph(he,"DataView"),db=ph(he,"Map"),GE=ph(he,"Promise"),Jf=ph(he,"Set"),hb=ph(he,"WeakMap"),fb=ph(In,"create"),U0=hb&&new hb,Yf={},s0e=mh(KE),o0e=mh(db),a0e=mh(GE),l0e=mh(Jf),c0e=mh(hb),B0=hu?hu.prototype:t,pb=B0?B0.valueOf:t,y8=B0?B0.toString:t;function H(h){if(sr(h)&&!ft(h)&&!(h instanceof qt)){if(h instanceof vo)return h;if(xn.call(h,"__wrapped__"))return vU(h)}return new vo(h)}var Qf=function(){function h(){}return function(p){if(!nr(p))return{};if(f8)return f8(p);h.prototype=p;var x=new h;return h.prototype=t,x}}();function H0(){}function vo(h,p){this.__wrapped__=h,this.__actions__=[],this.__chain__=!!p,this.__index__=0,this.__values__=t}H.templateSettings={escape:Wf,evaluate:S0,interpolate:lb,variable:"",imports:{_:H}},H.prototype=H0.prototype,H.prototype.constructor=H,vo.prototype=Qf(H0.prototype),vo.prototype.constructor=vo;function qt(h){this.__wrapped__=h,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function u0e(){var h=new qt(this.__wrapped__);return h.__actions__=cs(this.__actions__),h.__dir__=this.__dir__,h.__filtered__=this.__filtered__,h.__iteratees__=cs(this.__iteratees__),h.__takeCount__=this.__takeCount__,h.__views__=cs(this.__views__),h}function d0e(){if(this.__filtered__){var h=new qt(this);h.__dir__=-1,h.__filtered__=!0}else h=this.clone(),h.__dir__*=-1;return h}function h0e(){var h=this.__wrapped__.value(),p=this.__dir__,x=ft(h),O=p<0,W=x?h.length:0,V=x1e(0,W,this.__views__),Y=V.start,ne=V.end,se=ne-Y,ge=O?ne:Y-1,ye=this.__iteratees__,_e=ye.length,Oe=0,Be=xi(se,this.__takeCount__);if(!x||!O&&W==se&&Be==se)return W8(h,this.__actions__);var Ze=[];e:for(;se--&&Oe<Be;){ge+=p;for(var Ct=-1,et=h[ge];++Ct<_e;){var Ot=ye[Ct],jt=Ot.iteratee,Hs=Ot.type,Vi=jt(et);if(Hs==N)et=Vi;else if(!Vi){if(Hs==D)continue e;break e}}Ze[Oe++]=et}return Ze}qt.prototype=Qf(H0.prototype),qt.prototype.constructor=qt;function uh(h){var p=-1,x=h==null?0:h.length;for(this.clear();++p<x;){var O=h[p];this.set(O[0],O[1])}}function f0e(){this.__data__=fb?fb(null):{},this.size=0}function p0e(h){var p=this.has(h)&&delete this.__data__[h];return this.size-=p?1:0,p}function m0e(h){var p=this.__data__;if(fb){var x=p[h];return x===o?t:x}return xn.call(p,h)?p[h]:t}function g0e(h){var p=this.__data__;return fb?p[h]!==t:xn.call(p,h)}function b0e(h,p){var x=this.__data__;return this.size+=this.has(h)?0:1,x[h]=fb&&p===t?o:p,this}uh.prototype.clear=f0e,uh.prototype.delete=p0e,uh.prototype.get=m0e,uh.prototype.has=g0e,uh.prototype.set=b0e;function Yl(h){var p=-1,x=h==null?0:h.length;for(this.clear();++p<x;){var O=h[p];this.set(O[0],O[1])}}function y0e(){this.__data__=[],this.size=0}function v0e(h){var p=this.__data__,x=V0(p,h);if(x<0)return!1;var O=p.length-1;return x==O?p.pop():$0.call(p,x,1),--this.size,!0}function w0e(h){var p=this.__data__,x=V0(p,h);return x<0?t:p[x][1]}function _0e(h){return V0(this.__data__,h)>-1}function S0e(h,p){var x=this.__data__,O=V0(x,h);return O<0?(++this.size,x.push([h,p])):x[O][1]=p,this}Yl.prototype.clear=y0e,Yl.prototype.delete=v0e,Yl.prototype.get=w0e,Yl.prototype.has=_0e,Yl.prototype.set=S0e;function Ql(h){var p=-1,x=h==null?0:h.length;for(this.clear();++p<x;){var O=h[p];this.set(O[0],O[1])}}function C0e(){this.size=0,this.__data__={hash:new uh,map:new(db||Yl),string:new uh}}function x0e(h){var p=i1(this,h).delete(h);return this.size-=p?1:0,p}function k0e(h){return i1(this,h).get(h)}function A0e(h){return i1(this,h).has(h)}function F0e(h,p){var x=i1(this,h),O=x.size;return x.set(h,p),this.size+=x.size==O?0:1,this}Ql.prototype.clear=C0e,Ql.prototype.delete=x0e,Ql.prototype.get=k0e,Ql.prototype.has=A0e,Ql.prototype.set=F0e;function dh(h){var p=-1,x=h==null?0:h.length;for(this.__data__=new Ql;++p<x;)this.add(h[p])}function E0e(h){return this.__data__.set(h,o),this}function T0e(h){return this.__data__.has(h)}dh.prototype.add=dh.prototype.push=E0e,dh.prototype.has=T0e;function ha(h){var p=this.__data__=new Yl(h);this.size=p.size}function M0e(){this.__data__=new Yl,this.size=0}function D0e(h){var p=this.__data__,x=p.delete(h);return this.size=p.size,x}function R0e(h){return this.__data__.get(h)}function I0e(h){return this.__data__.has(h)}function P0e(h,p){var x=this.__data__;if(x instanceof Yl){var O=x.__data__;if(!db||O.length<n-1)return O.push([h,p]),this.size=++x.size,this;x=this.__data__=new Ql(O)}return x.set(h,p),this.size=x.size,this}ha.prototype.clear=M0e,ha.prototype.delete=D0e,ha.prototype.get=R0e,ha.prototype.has=I0e,ha.prototype.set=P0e;function v8(h,p){var x=ft(h),O=!x&&gh(h),W=!x&&!O&&bu(h),V=!x&&!O&&!W&&tp(h),Y=x||O||W||V,ne=Y?WE(h.length,Bwe):[],se=ne.length;for(var ge in h)(p||xn.call(h,ge))&&!(Y&&(ge=="length"||W&&(ge=="offset"||ge=="parent")||V&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||tc(ge,se)))&&ne.push(ge);return ne}function w8(h){var p=h.length;return p?h[sT(0,p-1)]:t}function O0e(h,p){return s1(cs(h),hh(p,0,h.length))}function N0e(h){return s1(cs(h))}function JE(h,p,x){(x!==t&&!fa(h[p],x)||x===t&&!(p in h))&&Xl(h,p,x)}function mb(h,p,x){var O=h[p];(!(xn.call(h,p)&&fa(O,x))||x===t&&!(p in h))&&Xl(h,p,x)}function V0(h,p){for(var x=h.length;x--;)if(fa(h[x][0],p))return x;return-1}function L0e(h,p,x,O){return fu(h,function(W,V,Y){p(O,W,x(W),Y)}),O}function _8(h,p){return h&&Ja(p,Qr(p),h)}function q0e(h,p){return h&&Ja(p,ds(p),h)}function Xl(h,p,x){p=="__proto__"&&z0?z0(h,p,{configurable:!0,enumerable:!0,value:x,writable:!0}):h[p]=x}function YE(h,p){for(var x=-1,O=p.length,W=ue(O),V=h==null;++x<O;)W[x]=V?t:MT(h,p[x]);return W}function hh(h,p,x){return h===h&&(x!==t&&(h=h<=x?h:x),p!==t&&(h=h>=p?h:p)),h}function wo(h,p,x,O,W,V){var Y,ne=p&c,se=p&u,ge=p&d;if(x&&(Y=W?x(h,O,W,V):x(h)),Y!==t)return Y;if(!nr(h))return h;var ye=ft(h);if(ye){if(Y=A1e(h),!ne)return cs(h,Y)}else{var _e=ki(h),Oe=_e==Ne||_e==me;if(bu(h))return H8(h,ne);if(_e==lt||_e==de||Oe&&!W){if(Y=se||Oe?{}:uU(h),!ne)return se?m1e(h,q0e(Y,h)):p1e(h,_8(Y,h))}else{if(!Nn[_e])return W?h:{};Y=F1e(h,_e,ne)}}V||(V=new ha);var Be=V.get(h);if(Be)return Be;V.set(h,Y),$U(h)?h.forEach(function(et){Y.add(wo(et,p,x,et,h,V))}):LU(h)&&h.forEach(function(et,Ot){Y.set(Ot,wo(et,p,x,Ot,h,V))});var Ze=ge?se?gT:mT:se?ds:Qr,Ct=ye?t:Ze(h);return bo(Ct||h,function(et,Ot){Ct&&(Ot=et,et=h[Ot]),mb(Y,Ot,wo(et,p,x,Ot,h,V))}),Y}function $0e(h){var p=Qr(h);return function(x){return S8(x,h,p)}}function S8(h,p,x){var O=x.length;if(h==null)return!O;for(h=In(h);O--;){var W=x[O],V=p[W],Y=h[W];if(Y===t&&!(W in h)||!V(Y))return!1}return!0}function C8(h,p,x){if(typeof h!="function")throw new yo(i);return Sb(function(){h.apply(t,x)},p)}function gb(h,p,x,O){var W=-1,V=T0,Y=!0,ne=h.length,se=[],ge=p.length;if(!ne)return se;x&&(p=Yn(p,Ws(x))),O?(V=NE,Y=!1):p.length>=n&&(V=cb,Y=!1,p=new dh(p));e:for(;++W<ne;){var ye=h[W],_e=x==null?ye:x(ye);if(ye=O||ye!==0?ye:0,Y&&_e===_e){for(var Oe=ge;Oe--;)if(p[Oe]===_e)continue e;se.push(ye)}else V(p,_e,O)||se.push(ye)}return se}var fu=Y8(Ga),x8=Y8(XE,!0);function z0e(h,p){var x=!0;return fu(h,function(O,W,V){return x=!!p(O,W,V),x}),x}function K0(h,p,x){for(var O=-1,W=h.length;++O<W;){var V=h[O],Y=p(V);if(Y!=null&&(ne===t?Y===Y&&!Bs(Y):x(Y,ne)))var ne=Y,se=V}return se}function j0e(h,p,x,O){var W=h.length;for(x=yt(x),x<0&&(x=-x>W?0:W+x),O=O===t||O>W?W:yt(O),O<0&&(O+=W),O=x>O?0:jU(O);x<O;)h[x++]=p;return h}function k8(h,p){var x=[];return fu(h,function(O,W,V){p(O,W,V)&&x.push(O)}),x}function ii(h,p,x,O,W){var V=-1,Y=h.length;for(x||(x=T1e),W||(W=[]);++V<Y;){var ne=h[V];p>0&&x(ne)?p>1?ii(ne,p-1,x,O,W):cu(W,ne):O||(W[W.length]=ne)}return W}var QE=Q8(),A8=Q8(!0);function Ga(h,p){return h&&QE(h,p,Qr)}function XE(h,p){return h&&A8(h,p,Qr)}function G0(h,p){return lu(p,function(x){return nc(h[x])})}function fh(h,p){p=mu(p,h);for(var x=0,O=p.length;h!=null&&x<O;)h=h[Ya(p[x++])];return x&&x==O?h:t}function F8(h,p,x){var O=p(h);return ft(h)?O:cu(O,x(h))}function Bi(h){return h==null?h===t?ou:un:ch&&ch in In(h)?C1e(h):N1e(h)}function ZE(h,p){return h>p}function W0e(h,p){return h!=null&&xn.call(h,p)}function U0e(h,p){return h!=null&&p in In(h)}function B0e(h,p,x){return h>=xi(p,x)&&h<jr(p,x)}function eT(h,p,x){for(var O=x?NE:T0,W=h[0].length,V=h.length,Y=V,ne=ue(V),se=1/0,ge=[];Y--;){var ye=h[Y];Y&&p&&(ye=Yn(ye,Ws(p))),se=xi(ye.length,se),ne[Y]=!x&&(p||W>=120&&ye.length>=120)?new dh(Y&&ye):t}ye=h[0];var _e=-1,Oe=ne[0];e:for(;++_e<W&&ge.length<se;){var Be=ye[_e],Ze=p?p(Be):Be;if(Be=x||Be!==0?Be:0,!(Oe?cb(Oe,Ze):O(ge,Ze,x))){for(Y=V;--Y;){var Ct=ne[Y];if(!(Ct?cb(Ct,Ze):O(h[Y],Ze,x)))continue e}Oe&&Oe.push(Ze),ge.push(Be)}}return ge}function H0e(h,p,x,O){return Ga(h,function(W,V,Y){p(O,x(W),V,Y)}),O}function bb(h,p,x){p=mu(p,h),h=pU(h,p);var O=h==null?h:h[Ya(So(p))];return O==null?t:js(O,h,x)}function E8(h){return sr(h)&&Bi(h)==de}function V0e(h){return sr(h)&&Bi(h)==ca}function K0e(h){return sr(h)&&Bi(h)==Ye}function yb(h,p,x,O,W){return h===p?!0:h==null||p==null||!sr(h)&&!sr(p)?h!==h&&p!==p:G0e(h,p,x,O,yb,W)}function G0e(h,p,x,O,W,V){var Y=ft(h),ne=ft(p),se=Y?Se:ki(h),ge=ne?Se:ki(p);se=se==de?lt:se,ge=ge==de?lt:ge;var ye=se==lt,_e=ge==lt,Oe=se==ge;if(Oe&&bu(h)){if(!bu(p))return!1;Y=!0,ye=!1}if(Oe&&!ye)return V||(V=new ha),Y||tp(h)?aU(h,p,x,O,W,V):_1e(h,p,se,x,O,W,V);if(!(x&f)){var Be=ye&&xn.call(h,"__wrapped__"),Ze=_e&&xn.call(p,"__wrapped__");if(Be||Ze){var Ct=Be?h.value():h,et=Ze?p.value():p;return V||(V=new ha),W(Ct,et,x,O,V)}}return Oe?(V||(V=new ha),S1e(h,p,x,O,W,V)):!1}function J0e(h){return sr(h)&&ki(h)==Re}function tT(h,p,x,O){var W=x.length,V=W,Y=!O;if(h==null)return!V;for(h=In(h);W--;){var ne=x[W];if(Y&&ne[2]?ne[1]!==h[ne[0]]:!(ne[0]in h))return!1}for(;++W<V;){ne=x[W];var se=ne[0],ge=h[se],ye=ne[1];if(Y&&ne[2]){if(ge===t&&!(se in h))return!1}else{var _e=new ha;if(O)var Oe=O(ge,ye,se,h,p,_e);if(!(Oe===t?yb(ye,ge,f|m,O,_e):Oe))return!1}}return!0}function T8(h){if(!nr(h)||D1e(h))return!1;var p=nc(h)?Jwe:Pt;return p.test(mh(h))}function Y0e(h){return sr(h)&&Bi(h)==Gr}function Q0e(h){return sr(h)&&ki(h)==Vt}function X0e(h){return sr(h)&&d1(h.length)&&!!zn[Bi(h)]}function M8(h){return typeof h=="function"?h:h==null?hs:typeof h=="object"?ft(h)?I8(h[0],h[1]):R8(h):XU(h)}function nT(h){if(!_b(h))return t0e(h);var p=[];for(var x in In(h))xn.call(h,x)&&x!="constructor"&&p.push(x);return p}function Z0e(h){if(!nr(h))return O1e(h);var p=_b(h),x=[];for(var O in h)O=="constructor"&&(p||!xn.call(h,O))||x.push(O);return x}function rT(h,p){return h<p}function D8(h,p){var x=-1,O=us(h)?ue(h.length):[];return fu(h,function(W,V,Y){O[++x]=p(W,V,Y)}),O}function R8(h){var p=yT(h);return p.length==1&&p[0][2]?hU(p[0][0],p[0][1]):function(x){return x===h||tT(x,h,p)}}function I8(h,p){return wT(h)&&dU(p)?hU(Ya(h),p):function(x){var O=MT(x,h);return O===t&&O===p?DT(x,h):yb(p,O,f|m)}}function J0(h,p,x,O,W){h!==p&&QE(p,function(V,Y){if(W||(W=new ha),nr(V))e1e(h,p,Y,x,J0,O,W);else{var ne=O?O(ST(h,Y),V,Y+"",h,p,W):t;ne===t&&(ne=V),JE(h,Y,ne)}},ds)}function e1e(h,p,x,O,W,V,Y){var ne=ST(h,x),se=ST(p,x),ge=Y.get(se);if(ge){JE(h,x,ge);return}var ye=V?V(ne,se,x+"",h,p,Y):t,_e=ye===t;if(_e){var Oe=ft(se),Be=!Oe&&bu(se),Ze=!Oe&&!Be&&tp(se);ye=se,Oe||Be||Ze?ft(ne)?ye=ne:gr(ne)?ye=cs(ne):Be?(_e=!1,ye=H8(se,!0)):Ze?(_e=!1,ye=V8(se,!0)):ye=[]:Cb(se)||gh(se)?(ye=ne,gh(ne)?ye=WU(ne):(!nr(ne)||nc(ne))&&(ye=uU(se))):_e=!1}_e&&(Y.set(se,ye),W(ye,se,O,V,Y),Y.delete(se)),JE(h,x,ye)}function P8(h,p){var x=h.length;if(x)return p+=p<0?x:0,tc(p,x)?h[p]:t}function O8(h,p,x){p.length?p=Yn(p,function(V){return ft(V)?function(Y){return fh(Y,V.length===1?V[0]:V)}:V}):p=[hs];var O=-1;p=Yn(p,Ws(Qe()));var W=D8(h,function(V,Y,ne){var se=Yn(p,function(ge){return ge(V)});return{criteria:se,index:++O,value:V}});return Fwe(W,function(V,Y){return f1e(V,Y,x)})}function t1e(h,p){return N8(h,p,function(x,O){return DT(h,O)})}function N8(h,p,x){for(var O=-1,W=p.length,V={};++O<W;){var Y=p[O],ne=fh(h,Y);x(ne,Y)&&vb(V,mu(Y,h),ne)}return V}function n1e(h){return function(p){return fh(p,h)}}function iT(h,p,x,O){var W=O?Awe:Hf,V=-1,Y=p.length,ne=h;for(h===p&&(p=cs(p)),x&&(ne=Yn(h,Ws(x)));++V<Y;)for(var se=0,ge=p[V],ye=x?x(ge):ge;(se=W(ne,ye,se,O))>-1;)ne!==h&&$0.call(ne,se,1),$0.call(h,se,1);return h}function L8(h,p){for(var x=h?p.length:0,O=x-1;x--;){var W=p[x];if(x==O||W!==V){var V=W;tc(W)?$0.call(h,W,1):lT(h,W)}}return h}function sT(h,p){return h+W0(b8()*(p-h+1))}function r1e(h,p,x,O){for(var W=-1,V=jr(j0((p-h)/(x||1)),0),Y=ue(V);V--;)Y[O?V:++W]=h,h+=x;return Y}function oT(h,p){var x="";if(!h||p<1||p>P)return x;do p%2&&(x+=h),p=W0(p/2),p&&(h+=h);while(p);return x}function Ft(h,p){return CT(fU(h,p,hs),h+"")}function i1e(h){return w8(np(h))}function s1e(h,p){var x=np(h);return s1(x,hh(p,0,x.length))}function vb(h,p,x,O){if(!nr(h))return h;p=mu(p,h);for(var W=-1,V=p.length,Y=V-1,ne=h;ne!=null&&++W<V;){var se=Ya(p[W]),ge=x;if(se==="__proto__"||se==="constructor"||se==="prototype")return h;if(W!=Y){var ye=ne[se];ge=O?O(ye,se,ne):t,ge===t&&(ge=nr(ye)?ye:tc(p[W+1])?[]:{})}mb(ne,se,ge),ne=ne[se]}return h}var q8=U0?function(h,p){return U0.set(h,p),h}:hs,o1e=z0?function(h,p){return z0(h,"toString",{configurable:!0,enumerable:!1,value:IT(p),writable:!0})}:hs;function a1e(h){return s1(np(h))}function _o(h,p,x){var O=-1,W=h.length;p<0&&(p=-p>W?0:W+p),x=x>W?W:x,x<0&&(x+=W),W=p>x?0:x-p>>>0,p>>>=0;for(var V=ue(W);++O<W;)V[O]=h[O+p];return V}function l1e(h,p){var x;return fu(h,function(O,W,V){return x=p(O,W,V),!x}),!!x}function Y0(h,p,x){var O=0,W=h==null?O:h.length;if(typeof p=="number"&&p===p&&W<=X){for(;O<W;){var V=O+W>>>1,Y=h[V];Y!==null&&!Bs(Y)&&(x?Y<=p:Y<p)?O=V+1:W=V}return W}return aT(h,p,hs,x)}function aT(h,p,x,O){var W=0,V=h==null?0:h.length;if(V===0)return 0;p=x(p);for(var Y=p!==p,ne=p===null,se=Bs(p),ge=p===t;W<V;){var ye=W0((W+V)/2),_e=x(h[ye]),Oe=_e!==t,Be=_e===null,Ze=_e===_e,Ct=Bs(_e);if(Y)var et=O||Ze;else ge?et=Ze&&(O||Oe):ne?et=Ze&&Oe&&(O||!Be):se?et=Ze&&Oe&&!Be&&(O||!Ct):Be||Ct?et=!1:et=O?_e<=p:_e<p;et?W=ye+1:V=ye}return xi(V,K)}function $8(h,p){for(var x=-1,O=h.length,W=0,V=[];++x<O;){var Y=h[x],ne=p?p(Y):Y;if(!x||!fa(ne,se)){var se=ne;V[W++]=Y===0?0:Y}}return V}function z8(h){return typeof h=="number"?h:Bs(h)?j:+h}function Us(h){if(typeof h=="string")return h;if(ft(h))return Yn(h,Us)+"";if(Bs(h))return y8?y8.call(h):"";var p=h+"";return p=="0"&&1/h==-F?"-0":p}function pu(h,p,x){var O=-1,W=T0,V=h.length,Y=!0,ne=[],se=ne;if(x)Y=!1,W=NE;else if(V>=n){var ge=p?null:v1e(h);if(ge)return D0(ge);Y=!1,W=cb,se=new dh}else se=p?[]:ne;e:for(;++O<V;){var ye=h[O],_e=p?p(ye):ye;if(ye=x||ye!==0?ye:0,Y&&_e===_e){for(var Oe=se.length;Oe--;)if(se[Oe]===_e)continue e;p&&se.push(_e),ne.push(ye)}else W(se,_e,x)||(se!==ne&&se.push(_e),ne.push(ye))}return ne}function lT(h,p){return p=mu(p,h),h=pU(h,p),h==null||delete h[Ya(So(p))]}function j8(h,p,x,O){return vb(h,p,x(fh(h,p)),O)}function Q0(h,p,x,O){for(var W=h.length,V=O?W:-1;(O?V--:++V<W)&&p(h[V],V,h););return x?_o(h,O?0:V,O?V+1:W):_o(h,O?V+1:0,O?W:V)}function W8(h,p){var x=h;return x instanceof qt&&(x=x.value()),LE(p,function(O,W){return W.func.apply(W.thisArg,cu([O],W.args))},x)}function cT(h,p,x){var O=h.length;if(O<2)return O?pu(h[0]):[];for(var W=-1,V=ue(O);++W<O;)for(var Y=h[W],ne=-1;++ne<O;)ne!=W&&(V[W]=gb(V[W]||Y,h[ne],p,x));return pu(ii(V,1),p,x)}function U8(h,p,x){for(var O=-1,W=h.length,V=p.length,Y={};++O<W;){var ne=O<V?p[O]:t;x(Y,h[O],ne)}return Y}function uT(h){return gr(h)?h:[]}function dT(h){return typeof h=="function"?h:hs}function mu(h,p){return ft(h)?h:wT(h,p)?[h]:yU(bn(h))}var c1e=Ft;function gu(h,p,x){var O=h.length;return x=x===t?O:x,!p&&x>=O?h:_o(h,p,x)}var B8=Ywe||function(h){return Yr.clearTimeout(h)};function H8(h,p){if(p)return h.slice();var x=h.length,O=h8?h8(x):new h.constructor(x);return h.copy(O),O}function hT(h){var p=new h.constructor(h.byteLength);return new L0(p).set(new L0(h)),p}function u1e(h,p){var x=p?hT(h.buffer):h.buffer;return new h.constructor(x,h.byteOffset,h.byteLength)}function d1e(h){var p=new h.constructor(h.source,ls.exec(h));return p.lastIndex=h.lastIndex,p}function h1e(h){return pb?In(pb.call(h)):{}}function V8(h,p){var x=p?hT(h.buffer):h.buffer;return new h.constructor(x,h.byteOffset,h.length)}function K8(h,p){if(h!==p){var x=h!==t,O=h===null,W=h===h,V=Bs(h),Y=p!==t,ne=p===null,se=p===p,ge=Bs(p);if(!ne&&!ge&&!V&&h>p||V&&Y&&se&&!ne&&!ge||O&&Y&&se||!x&&se||!W)return 1;if(!O&&!V&&!ge&&h<p||ge&&x&&W&&!O&&!V||ne&&x&&W||!Y&&W||!se)return-1}return 0}function f1e(h,p,x){for(var O=-1,W=h.criteria,V=p.criteria,Y=W.length,ne=x.length;++O<Y;){var se=K8(W[O],V[O]);if(se){if(O>=ne)return se;var ge=x[O];return se*(ge=="desc"?-1:1)}}return h.index-p.index}function G8(h,p,x,O){for(var W=-1,V=h.length,Y=x.length,ne=-1,se=p.length,ge=jr(V-Y,0),ye=ue(se+ge),_e=!O;++ne<se;)ye[ne]=p[ne];for(;++W<Y;)(_e||W<V)&&(ye[x[W]]=h[W]);for(;ge--;)ye[ne++]=h[W++];return ye}function J8(h,p,x,O){for(var W=-1,V=h.length,Y=-1,ne=x.length,se=-1,ge=p.length,ye=jr(V-ne,0),_e=ue(ye+ge),Oe=!O;++W<ye;)_e[W]=h[W];for(var Be=W;++se<ge;)_e[Be+se]=p[se];for(;++Y<ne;)(Oe||W<V)&&(_e[Be+x[Y]]=h[W++]);return _e}function cs(h,p){var x=-1,O=h.length;for(p||(p=ue(O));++x<O;)p[x]=h[x];return p}function Ja(h,p,x,O){var W=!x;x||(x={});for(var V=-1,Y=p.length;++V<Y;){var ne=p[V],se=O?O(x[ne],h[ne],ne,x,h):t;se===t&&(se=h[ne]),W?Xl(x,ne,se):mb(x,ne,se)}return x}function p1e(h,p){return Ja(h,vT(h),p)}function m1e(h,p){return Ja(h,lU(h),p)}function X0(h,p){return function(x,O){var W=ft(x)?wwe:L0e,V=p?p():{};return W(x,h,Qe(O,2),V)}}function Xf(h){return Ft(function(p,x){var O=-1,W=x.length,V=W>1?x[W-1]:t,Y=W>2?x[2]:t;for(V=h.length>3&&typeof V=="function"?(W--,V):t,Y&&Hi(x[0],x[1],Y)&&(V=W<3?t:V,W=1),p=In(p);++O<W;){var ne=x[O];ne&&h(p,ne,O,V)}return p})}function Y8(h,p){return function(x,O){if(x==null)return x;if(!us(x))return h(x,O);for(var W=x.length,V=p?W:-1,Y=In(x);(p?V--:++V<W)&&O(Y[V],V,Y)!==!1;);return x}}function Q8(h){return function(p,x,O){for(var W=-1,V=In(p),Y=O(p),ne=Y.length;ne--;){var se=Y[h?ne:++W];if(x(V[se],se,V)===!1)break}return p}}function g1e(h,p,x){var O=p&b,W=wb(h);function V(){var Y=this&&this!==Yr&&this instanceof V?W:h;return Y.apply(O?x:this,arguments)}return V}function X8(h){return function(p){p=bn(p);var x=Vf(p)?da(p):t,O=x?x[0]:p.charAt(0),W=x?gu(x,1).join(""):p.slice(1);return O[h]()+W}}function Zf(h){return function(p){return LE(YU(JU(p).replace(owe,"")),h,"")}}function wb(h){return function(){var p=arguments;switch(p.length){case 0:return new h;case 1:return new h(p[0]);case 2:return new h(p[0],p[1]);case 3:return new h(p[0],p[1],p[2]);case 4:return new h(p[0],p[1],p[2],p[3]);case 5:return new h(p[0],p[1],p[2],p[3],p[4]);case 6:return new h(p[0],p[1],p[2],p[3],p[4],p[5]);case 7:return new h(p[0],p[1],p[2],p[3],p[4],p[5],p[6])}var x=Qf(h.prototype),O=h.apply(x,p);return nr(O)?O:x}}function b1e(h,p,x){var O=wb(h);function W(){for(var V=arguments.length,Y=ue(V),ne=V,se=ep(W);ne--;)Y[ne]=arguments[ne];var ge=V<3&&Y[0]!==se&&Y[V-1]!==se?[]:uu(Y,se);if(V-=ge.length,V<x)return rU(h,p,Z0,W.placeholder,t,Y,ge,t,t,x-V);var ye=this&&this!==Yr&&this instanceof W?O:h;return js(ye,this,Y)}return W}function Z8(h){return function(p,x,O){var W=In(p);if(!us(p)){var V=Qe(x,3);p=Qr(p),x=function(ne){return V(W[ne],ne,W)}}var Y=h(p,x,O);return Y>-1?W[V?p[Y]:Y]:t}}function eU(h){return ec(function(p){var x=p.length,O=x,W=vo.prototype.thru;for(h&&p.reverse();O--;){var V=p[O];if(typeof V!="function")throw new yo(i);if(W&&!Y&&r1(V)=="wrapper")var Y=new vo([],!0)}for(O=Y?O:x;++O<x;){V=p[O];var ne=r1(V),se=ne=="wrapper"?bT(V):t;se&&_T(se[0])&&se[1]==(A|_|v|R)&&!se[4].length&&se[9]==1?Y=Y[r1(se[0])].apply(Y,se[3]):Y=V.length==1&&_T(V)?Y[ne]():Y.thru(V)}return function(){var ge=arguments,ye=ge[0];if(Y&&ge.length==1&&ft(ye))return Y.plant(ye).value();for(var _e=0,Oe=x?p[_e].apply(this,ge):ye;++_e<x;)Oe=p[_e].call(this,Oe);return Oe}})}function Z0(h,p,x,O,W,V,Y,ne,se,ge){var ye=p&A,_e=p&b,Oe=p&g,Be=p&(_|S),Ze=p&k,Ct=Oe?t:wb(h);function et(){for(var Ot=arguments.length,jt=ue(Ot),Hs=Ot;Hs--;)jt[Hs]=arguments[Hs];if(Be)var Vi=ep(et),Vs=Twe(jt,Vi);if(O&&(jt=G8(jt,O,W,Be)),V&&(jt=J8(jt,V,Y,Be)),Ot-=Vs,Be&&Ot<ge){var br=uu(jt,Vi);return rU(h,p,Z0,et.placeholder,x,jt,br,ne,se,ge-Ot)}var pa=_e?x:this,ic=Oe?pa[h]:h;return Ot=jt.length,ne?jt=L1e(jt,ne):Ze&&Ot>1&&jt.reverse(),ye&&se<Ot&&(jt.length=se),this&&this!==Yr&&this instanceof et&&(ic=Ct||wb(ic)),ic.apply(pa,jt)}return et}function tU(h,p){return function(x,O){return H0e(x,h,p(O),{})}}function e1(h,p){return function(x,O){var W;if(x===t&&O===t)return p;if(x!==t&&(W=x),O!==t){if(W===t)return O;typeof x=="string"||typeof O=="string"?(x=Us(x),O=Us(O)):(x=z8(x),O=z8(O)),W=h(x,O)}return W}}function fT(h){return ec(function(p){return p=Yn(p,Ws(Qe())),Ft(function(x){var O=this;return h(p,function(W){return js(W,O,x)})})})}function t1(h,p){p=p===t?" ":Us(p);var x=p.length;if(x<2)return x?oT(p,h):p;var O=oT(p,j0(h/Kf(p)));return Vf(p)?gu(da(O),0,h).join(""):O.slice(0,h)}function y1e(h,p,x,O){var W=p&b,V=wb(h);function Y(){for(var ne=-1,se=arguments.length,ge=-1,ye=O.length,_e=ue(ye+se),Oe=this&&this!==Yr&&this instanceof Y?V:h;++ge<ye;)_e[ge]=O[ge];for(;se--;)_e[ge++]=arguments[++ne];return js(Oe,W?x:this,_e)}return Y}function nU(h){return function(p,x,O){return O&&typeof O!="number"&&Hi(p,x,O)&&(x=O=t),p=rc(p),x===t?(x=p,p=0):x=rc(x),O=O===t?p<x?1:-1:rc(O),r1e(p,x,O,h)}}function n1(h){return function(p,x){return typeof p=="string"&&typeof x=="string"||(p=Co(p),x=Co(x)),h(p,x)}}function rU(h,p,x,O,W,V,Y,ne,se,ge){var ye=p&_,_e=ye?Y:t,Oe=ye?t:Y,Be=ye?V:t,Ze=ye?t:V;p|=ye?v:T,p&=~(ye?T:v),p&w||(p&=~(b|g));var Ct=[h,p,W,Be,_e,Ze,Oe,ne,se,ge],et=x.apply(t,Ct);return _T(h)&&mU(et,Ct),et.placeholder=O,gU(et,h,p)}function pT(h){var p=zr[h];return function(x,O){if(x=Co(x),O=O==null?0:xi(yt(O),292),O&&g8(x)){var W=(bn(x)+"e").split("e"),V=p(W[0]+"e"+(+W[1]+O));return W=(bn(V)+"e").split("e"),+(W[0]+"e"+(+W[1]-O))}return p(x)}}var v1e=Jf&&1/D0(new Jf([,-0]))[1]==F?function(h){return new Jf(h)}:NT;function iU(h){return function(p){var x=ki(p);return x==Re?BE(p):x==Vt?Nwe(p):Ewe(p,h(p))}}function Zl(h,p,x,O,W,V,Y,ne){var se=p&g;if(!se&&typeof h!="function")throw new yo(i);var ge=O?O.length:0;if(ge||(p&=~(v|T),O=W=t),Y=Y===t?Y:jr(yt(Y),0),ne=ne===t?ne:yt(ne),ge-=W?W.length:0,p&T){var ye=O,_e=W;O=W=t}var Oe=se?t:bT(h),Be=[h,p,x,O,W,ye,_e,V,Y,ne];if(Oe&&P1e(Be,Oe),h=Be[0],p=Be[1],x=Be[2],O=Be[3],W=Be[4],ne=Be[9]=Be[9]===t?se?0:h.length:jr(Be[9]-ge,0),!ne&&p&(_|S)&&(p&=~(_|S)),!p||p==b)var Ze=g1e(h,p,x);else p==_||p==S?Ze=b1e(h,p,ne):(p==v||p==(b|v))&&!W.length?Ze=y1e(h,p,x,O):Ze=Z0.apply(t,Be);var Ct=Oe?q8:mU;return gU(Ct(Ze,Be),h,p)}function sU(h,p,x,O){return h===t||fa(h,Gf[x])&&!xn.call(O,x)?p:h}function oU(h,p,x,O,W,V){return nr(h)&&nr(p)&&(V.set(p,h),J0(h,p,t,oU,V),V.delete(p)),h}function w1e(h){return Cb(h)?t:h}function aU(h,p,x,O,W,V){var Y=x&f,ne=h.length,se=p.length;if(ne!=se&&!(Y&&se>ne))return!1;var ge=V.get(h),ye=V.get(p);if(ge&&ye)return ge==p&&ye==h;var _e=-1,Oe=!0,Be=x&m?new dh:t;for(V.set(h,p),V.set(p,h);++_e<ne;){var Ze=h[_e],Ct=p[_e];if(O)var et=Y?O(Ct,Ze,_e,p,h,V):O(Ze,Ct,_e,h,p,V);if(et!==t){if(et)continue;Oe=!1;break}if(Be){if(!qE(p,function(Ot,jt){if(!cb(Be,jt)&&(Ze===Ot||W(Ze,Ot,x,O,V)))return Be.push(jt)})){Oe=!1;break}}else if(!(Ze===Ct||W(Ze,Ct,x,O,V))){Oe=!1;break}}return V.delete(h),V.delete(p),Oe}function _1e(h,p,x,O,W,V,Y){switch(x){case qs:if(h.byteLength!=p.byteLength||h.byteOffset!=p.byteOffset)return!1;h=h.buffer,p=p.buffer;case ca:return!(h.byteLength!=p.byteLength||!V(new L0(h),new L0(p)));case ke:case Ye:case it:return fa(+h,+p);case we:return h.name==p.name&&h.message==p.message;case Gr:case mr:return h==p+"";case Re:var ne=BE;case Vt:var se=O&f;if(ne||(ne=D0),h.size!=p.size&&!se)return!1;var ge=Y.get(h);if(ge)return ge==p;O|=m,Y.set(h,p);var ye=aU(ne(h),ne(p),O,W,V,Y);return Y.delete(h),ye;case Wi:if(pb)return pb.call(h)==pb.call(p)}return!1}function S1e(h,p,x,O,W,V){var Y=x&f,ne=mT(h),se=ne.length,ge=mT(p),ye=ge.length;if(se!=ye&&!Y)return!1;for(var _e=se;_e--;){var Oe=ne[_e];if(!(Y?Oe in p:xn.call(p,Oe)))return!1}var Be=V.get(h),Ze=V.get(p);if(Be&&Ze)return Be==p&&Ze==h;var Ct=!0;V.set(h,p),V.set(p,h);for(var et=Y;++_e<se;){Oe=ne[_e];var Ot=h[Oe],jt=p[Oe];if(O)var Hs=Y?O(jt,Ot,Oe,p,h,V):O(Ot,jt,Oe,h,p,V);if(!(Hs===t?Ot===jt||W(Ot,jt,x,O,V):Hs)){Ct=!1;break}et||(et=Oe=="constructor")}if(Ct&&!et){var Vi=h.constructor,Vs=p.constructor;Vi!=Vs&&"constructor"in h&&"constructor"in p&&!(typeof Vi=="function"&&Vi instanceof Vi&&typeof Vs=="function"&&Vs instanceof Vs)&&(Ct=!1)}return V.delete(h),V.delete(p),Ct}function ec(h){return CT(fU(h,t,SU),h+"")}function mT(h){return F8(h,Qr,vT)}function gT(h){return F8(h,ds,lU)}var bT=U0?function(h){return U0.get(h)}:NT;function r1(h){for(var p=h.name+"",x=Yf[p],O=xn.call(Yf,p)?x.length:0;O--;){var W=x[O],V=W.func;if(V==null||V==h)return W.name}return p}function ep(h){var p=xn.call(H,"placeholder")?H:h;return p.placeholder}function Qe(){var h=H.iteratee||PT;return h=h===PT?M8:h,arguments.length?h(arguments[0],arguments[1]):h}function i1(h,p){var x=h.__data__;return M1e(p)?x[typeof p=="string"?"string":"hash"]:x.map}function yT(h){for(var p=Qr(h),x=p.length;x--;){var O=p[x],W=h[O];p[x]=[O,W,dU(W)]}return p}function ph(h,p){var x=Iwe(h,p);return T8(x)?x:t}function C1e(h){var p=xn.call(h,ch),x=h[ch];try{h[ch]=t;var O=!0}catch{}var W=O0.call(h);return O&&(p?h[ch]=x:delete h[ch]),W}var vT=VE?function(h){return h==null?[]:(h=In(h),lu(VE(h),function(p){return p8.call(h,p)}))}:LT,lU=VE?function(h){for(var p=[];h;)cu(p,vT(h)),h=q0(h);return p}:LT,ki=Bi;(KE&&ki(new KE(new ArrayBuffer(1)))!=qs||db&&ki(new db)!=Re||GE&&ki(GE.resolve())!=ri||Jf&&ki(new Jf)!=Vt||hb&&ki(new hb)!=Jr)&&(ki=function(h){var p=Bi(h),x=p==lt?h.constructor:t,O=x?mh(x):"";if(O)switch(O){case s0e:return qs;case o0e:return Re;case a0e:return ri;case l0e:return Vt;case c0e:return Jr}return p});function x1e(h,p,x){for(var O=-1,W=x.length;++O<W;){var V=x[O],Y=V.size;switch(V.type){case"drop":h+=Y;break;case"dropRight":p-=Y;break;case"take":p=xi(p,h+Y);break;case"takeRight":h=jr(h,p-Y);break}}return{start:h,end:p}}function k1e(h){var p=h.match(U);return p?p[1].split(le):[]}function cU(h,p,x){p=mu(p,h);for(var O=-1,W=p.length,V=!1;++O<W;){var Y=Ya(p[O]);if(!(V=h!=null&&x(h,Y)))break;h=h[Y]}return V||++O!=W?V:(W=h==null?0:h.length,!!W&&d1(W)&&tc(Y,W)&&(ft(h)||gh(h)))}function A1e(h){var p=h.length,x=new h.constructor(p);return p&&typeof h[0]=="string"&&xn.call(h,"index")&&(x.index=h.index,x.input=h.input),x}function uU(h){return typeof h.constructor=="function"&&!_b(h)?Qf(q0(h)):{}}function F1e(h,p,x){var O=h.constructor;switch(p){case ca:return hT(h);case ke:case Ye:return new O(+h);case qs:return u1e(h,x);case Jl:case $s:case Z:case pe:case Te:case $e:case tn:case Kt:case Sn:return V8(h,x);case Re:return new O;case it:case mr:return new O(h);case Gr:return d1e(h);case Vt:return new O;case Wi:return h1e(h)}}function E1e(h,p){var x=p.length;if(!x)return h;var O=x-1;return p[O]=(x>1?"& ":"")+p[O],p=p.join(x>2?", ":" "),h.replace(G,`{
|
|
1041
|
+
`},{type:"space",indent:0,offset:c.offset,source:this.indentation},{type:"seq-item-ind",indent:0,offset:c.offset,source:"-"},{type:"space",indent:0,offset:c.offset,source:" "}],value:c});if(c.type==="flow-collection")return dW.visit.SKIP});return dW.CST.stringify(s)}};fE.FlowStyleRewriter=hW});var ave=I((ib,y0)=>{(function(){var t,e="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",a=500,l="__lodash_placeholder__",c=1,u=2,d=4,f=1,m=2,b=1,g=2,w=4,_=8,S=16,v=32,T=64,A=128,R=256,k=512,y=30,C="...",M=800,E=16,D=1,N=2,$=3,F=1/0,P=9007199254740991,L=17976931348623157e292,j=0/0,z=4294967295,K=z-1,X=z>>>1,ee=[["ary",A],["bind",b],["bindKey",g],["curry",_],["curryRight",S],["flip",k],["partial",v],["partialRight",T],["rearg",R]],de="[object Arguments]",Se="[object Array]",De="[object AsyncFunction]",ke="[object Boolean]",Ye="[object Date]",St="[object DOMException]",we="[object Error]",Ne="[object Function]",me="[object GeneratorFunction]",Re="[object Map]",it="[object Number]",un="[object Null]",lt="[object Object]",ri="[object Promise]",pr="[object Proxy]",Gr="[object RegExp]",Vt="[object Set]",mr="[object String]",Wi="[object Symbol]",ou="[object Undefined]",Jr="[object WeakMap]",ah="[object WeakSet]",ca="[object ArrayBuffer]",qs="[object DataView]",Jl="[object Float32Array]",$s="[object Float64Array]",Z="[object Int8Array]",pe="[object Int16Array]",Te="[object Int32Array]",$e="[object Uint8Array]",tn="[object Uint8ClampedArray]",Kt="[object Uint16Array]",Sn="[object Uint32Array]",On=/\b__p \+= '';/g,At=/\b(__p \+=) '' \+/g,Cn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,zt=/&(?:amp|lt|gt|quot|#39);/g,$n=/[&<>"']/g,Er=RegExp(zt.source),Ui=RegExp($n.source),Wf=/<%-([\s\S]+?)%>/g,S0=/<%([\s\S]+?)%>/g,lb=/<%=([\s\S]+?)%>/g,C0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x0=/^\w*$/,EE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,B=RegExp(ae.source),te=/^\s+/,re=/\s/,G=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,U=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ct=/[()=,{}\[\]\/\s]/,Jn=/\\(\\)?/g,Fn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ls=/\w*$/,zs=/^[-+]0x[0-9a-f]+$/i,ua=/^0b[01]+$/i,Pt=/^\[object .+?Constructor\]$/,au=/^0o[0-7]+$/i,Uf=/^(?:0|[1-9]\d*)$/,k0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,A0=/($^)/,Uve=/['\n\r\u2028\u2029\\]/g,F0="\\ud800-\\udfff",Bve="\\u0300-\\u036f",Hve="\\ufe20-\\ufe2f",Vve="\\u20d0-\\u20ff",TW=Bve+Hve+Vve,MW="\\u2700-\\u27bf",DW="a-z\\xdf-\\xf6\\xf8-\\xff",Kve="\\xac\\xb1\\xd7\\xf7",Gve="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Jve="\\u2000-\\u206f",Yve=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",RW="A-Z\\xc0-\\xd6\\xd8-\\xde",IW="\\ufe0e\\ufe0f",PW=Kve+Gve+Jve+Yve,TE="['\u2019]",Qve="["+F0+"]",OW="["+PW+"]",E0="["+TW+"]",NW="\\d+",Xve="["+MW+"]",LW="["+DW+"]",qW="[^"+F0+PW+NW+MW+DW+RW+"]",ME="\\ud83c[\\udffb-\\udfff]",Zve="(?:"+E0+"|"+ME+")",$W="[^"+F0+"]",DE="(?:\\ud83c[\\udde6-\\uddff]){2}",RE="[\\ud800-\\udbff][\\udc00-\\udfff]",Bf="["+RW+"]",zW="\\u200d",jW="(?:"+LW+"|"+qW+")",ewe="(?:"+Bf+"|"+qW+")",WW="(?:"+TE+"(?:d|ll|m|re|s|t|ve))?",UW="(?:"+TE+"(?:D|LL|M|RE|S|T|VE))?",BW=Zve+"?",HW="["+IW+"]?",twe="(?:"+zW+"(?:"+[$W,DE,RE].join("|")+")"+HW+BW+")*",nwe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rwe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",VW=HW+BW+twe,iwe="(?:"+[Xve,DE,RE].join("|")+")"+VW,swe="(?:"+[$W+E0+"?",E0,DE,RE,Qve].join("|")+")",owe=RegExp(TE,"g"),awe=RegExp(E0,"g"),IE=RegExp(ME+"(?="+ME+")|"+swe+VW,"g"),lwe=RegExp([Bf+"?"+LW+"+"+WW+"(?="+[OW,Bf,"$"].join("|")+")",ewe+"+"+UW+"(?="+[OW,Bf+jW,"$"].join("|")+")",Bf+"?"+jW+"+"+WW,Bf+"+"+UW,rwe,nwe,NW,iwe].join("|"),"g"),cwe=RegExp("["+zW+F0+TW+IW+"]"),uwe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dwe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],hwe=-1,zn={};zn[Jl]=zn[$s]=zn[Z]=zn[pe]=zn[Te]=zn[$e]=zn[tn]=zn[Kt]=zn[Sn]=!0,zn[de]=zn[Se]=zn[ca]=zn[ke]=zn[qs]=zn[Ye]=zn[we]=zn[Ne]=zn[Re]=zn[it]=zn[lt]=zn[Gr]=zn[Vt]=zn[mr]=zn[Jr]=!1;var Nn={};Nn[de]=Nn[Se]=Nn[ca]=Nn[qs]=Nn[ke]=Nn[Ye]=Nn[Jl]=Nn[$s]=Nn[Z]=Nn[pe]=Nn[Te]=Nn[Re]=Nn[it]=Nn[lt]=Nn[Gr]=Nn[Vt]=Nn[mr]=Nn[Wi]=Nn[$e]=Nn[tn]=Nn[Kt]=Nn[Sn]=!0,Nn[we]=Nn[Ne]=Nn[Jr]=!1;var fwe={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},pwe={"&":"&","<":"<",">":">",'"':""","'":"'"},mwe={"&":"&","<":"<",">":">",""":'"',"'":"'"},gwe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bwe=parseFloat,ywe=parseInt,KW=typeof global=="object"&&global&&global.Object===Object&&global,vwe=typeof self=="object"&&self&&self.Object===Object&&self,Yr=KW||vwe||Function("return this")(),PE=typeof ib=="object"&&ib&&!ib.nodeType&&ib,lh=PE&&typeof y0=="object"&&y0&&!y0.nodeType&&y0,GW=lh&&lh.exports===PE,OE=GW&&KW.process,go=function(){try{var ie=lh&&lh.require&&lh.require("util").types;return ie||OE&&OE.binding&&OE.binding("util")}catch{}}(),JW=go&&go.isArrayBuffer,YW=go&&go.isDate,QW=go&&go.isMap,XW=go&&go.isRegExp,ZW=go&&go.isSet,e8=go&&go.isTypedArray;function js(ie,he,ue){switch(ue.length){case 0:return ie.call(he);case 1:return ie.call(he,ue[0]);case 2:return ie.call(he,ue[0],ue[1]);case 3:return ie.call(he,ue[0],ue[1],ue[2])}return ie.apply(he,ue)}function wwe(ie,he,ue,ze){for(var ut=-1,dn=ie==null?0:ie.length;++ut<dn;){var zr=ie[ut];he(ze,zr,ue(zr),ie)}return ze}function bo(ie,he){for(var ue=-1,ze=ie==null?0:ie.length;++ue<ze&&he(ie[ue],ue,ie)!==!1;);return ie}function _we(ie,he){for(var ue=ie==null?0:ie.length;ue--&&he(ie[ue],ue,ie)!==!1;);return ie}function t8(ie,he){for(var ue=-1,ze=ie==null?0:ie.length;++ue<ze;)if(!he(ie[ue],ue,ie))return!1;return!0}function lu(ie,he){for(var ue=-1,ze=ie==null?0:ie.length,ut=0,dn=[];++ue<ze;){var zr=ie[ue];he(zr,ue,ie)&&(dn[ut++]=zr)}return dn}function T0(ie,he){var ue=ie==null?0:ie.length;return!!ue&&Hf(ie,he,0)>-1}function NE(ie,he,ue){for(var ze=-1,ut=ie==null?0:ie.length;++ze<ut;)if(ue(he,ie[ze]))return!0;return!1}function Yn(ie,he){for(var ue=-1,ze=ie==null?0:ie.length,ut=Array(ze);++ue<ze;)ut[ue]=he(ie[ue],ue,ie);return ut}function cu(ie,he){for(var ue=-1,ze=he.length,ut=ie.length;++ue<ze;)ie[ut+ue]=he[ue];return ie}function LE(ie,he,ue,ze){var ut=-1,dn=ie==null?0:ie.length;for(ze&&dn&&(ue=ie[++ut]);++ut<dn;)ue=he(ue,ie[ut],ut,ie);return ue}function Swe(ie,he,ue,ze){var ut=ie==null?0:ie.length;for(ze&&ut&&(ue=ie[--ut]);ut--;)ue=he(ue,ie[ut],ut,ie);return ue}function qE(ie,he){for(var ue=-1,ze=ie==null?0:ie.length;++ue<ze;)if(he(ie[ue],ue,ie))return!0;return!1}var Cwe=$E("length");function xwe(ie){return ie.split("")}function kwe(ie){return ie.match(be)||[]}function n8(ie,he,ue){var ze;return ue(ie,function(ut,dn,zr){if(he(ut,dn,zr))return ze=dn,!1}),ze}function M0(ie,he,ue,ze){for(var ut=ie.length,dn=ue+(ze?1:-1);ze?dn--:++dn<ut;)if(he(ie[dn],dn,ie))return dn;return-1}function Hf(ie,he,ue){return he===he?Lwe(ie,he,ue):M0(ie,r8,ue)}function Awe(ie,he,ue,ze){for(var ut=ue-1,dn=ie.length;++ut<dn;)if(ze(ie[ut],he))return ut;return-1}function r8(ie){return ie!==ie}function i8(ie,he){var ue=ie==null?0:ie.length;return ue?jE(ie,he)/ue:j}function $E(ie){return function(he){return he==null?t:he[ie]}}function zE(ie){return function(he){return ie==null?t:ie[he]}}function s8(ie,he,ue,ze,ut){return ut(ie,function(dn,zr,In){ue=ze?(ze=!1,dn):he(ue,dn,zr,In)}),ue}function Fwe(ie,he){var ue=ie.length;for(ie.sort(he);ue--;)ie[ue]=ie[ue].value;return ie}function jE(ie,he){for(var ue,ze=-1,ut=ie.length;++ze<ut;){var dn=he(ie[ze]);dn!==t&&(ue=ue===t?dn:ue+dn)}return ue}function WE(ie,he){for(var ue=-1,ze=Array(ie);++ue<ie;)ze[ue]=he(ue);return ze}function Ewe(ie,he){return Yn(he,function(ue){return[ue,ie[ue]]})}function o8(ie){return ie&&ie.slice(0,u8(ie)+1).replace(te,"")}function Ws(ie){return function(he){return ie(he)}}function UE(ie,he){return Yn(he,function(ue){return ie[ue]})}function cb(ie,he){return ie.has(he)}function a8(ie,he){for(var ue=-1,ze=ie.length;++ue<ze&&Hf(he,ie[ue],0)>-1;);return ue}function l8(ie,he){for(var ue=ie.length;ue--&&Hf(he,ie[ue],0)>-1;);return ue}function Twe(ie,he){for(var ue=ie.length,ze=0;ue--;)ie[ue]===he&&++ze;return ze}var Mwe=zE(fwe),Dwe=zE(pwe);function Rwe(ie){return"\\"+gwe[ie]}function Iwe(ie,he){return ie==null?t:ie[he]}function Vf(ie){return cwe.test(ie)}function Pwe(ie){return uwe.test(ie)}function Owe(ie){for(var he,ue=[];!(he=ie.next()).done;)ue.push(he.value);return ue}function BE(ie){var he=-1,ue=Array(ie.size);return ie.forEach(function(ze,ut){ue[++he]=[ut,ze]}),ue}function c8(ie,he){return function(ue){return ie(he(ue))}}function uu(ie,he){for(var ue=-1,ze=ie.length,ut=0,dn=[];++ue<ze;){var zr=ie[ue];(zr===he||zr===l)&&(ie[ue]=l,dn[ut++]=ue)}return dn}function D0(ie){var he=-1,ue=Array(ie.size);return ie.forEach(function(ze){ue[++he]=ze}),ue}function Nwe(ie){var he=-1,ue=Array(ie.size);return ie.forEach(function(ze){ue[++he]=[ze,ze]}),ue}function Lwe(ie,he,ue){for(var ze=ue-1,ut=ie.length;++ze<ut;)if(ie[ze]===he)return ze;return-1}function qwe(ie,he,ue){for(var ze=ue+1;ze--;)if(ie[ze]===he)return ze;return ze}function Kf(ie){return Vf(ie)?zwe(ie):Cwe(ie)}function da(ie){return Vf(ie)?jwe(ie):xwe(ie)}function u8(ie){for(var he=ie.length;he--&&re.test(ie.charAt(he)););return he}var $we=zE(mwe);function zwe(ie){for(var he=IE.lastIndex=0;IE.test(ie);)++he;return he}function jwe(ie){return ie.match(IE)||[]}function Wwe(ie){return ie.match(lwe)||[]}var Uwe=function ie(he){he=he==null?Yr:du.defaults(Yr.Object(),he,du.pick(Yr,dwe));var ue=he.Array,ze=he.Date,ut=he.Error,dn=he.Function,zr=he.Math,In=he.Object,HE=he.RegExp,Bwe=he.String,yo=he.TypeError,R0=ue.prototype,Hwe=dn.prototype,Gf=In.prototype,I0=he["__core-js_shared__"],P0=Hwe.toString,xn=Gf.hasOwnProperty,Vwe=0,d8=function(){var h=/[^.]+$/.exec(I0&&I0.keys&&I0.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),O0=Gf.toString,Kwe=P0.call(In),Gwe=Yr._,Jwe=HE("^"+P0.call(xn).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N0=GW?he.Buffer:t,hu=he.Symbol,L0=he.Uint8Array,h8=N0?N0.allocUnsafe:t,q0=c8(In.getPrototypeOf,In),f8=In.create,p8=Gf.propertyIsEnumerable,$0=R0.splice,m8=hu?hu.isConcatSpreadable:t,ub=hu?hu.iterator:t,ch=hu?hu.toStringTag:t,z0=function(){try{var h=ph(In,"defineProperty");return h({},"",{}),h}catch{}}(),Ywe=he.clearTimeout!==Yr.clearTimeout&&he.clearTimeout,Qwe=ze&&ze.now!==Yr.Date.now&&ze.now,Xwe=he.setTimeout!==Yr.setTimeout&&he.setTimeout,j0=zr.ceil,W0=zr.floor,VE=In.getOwnPropertySymbols,Zwe=N0?N0.isBuffer:t,g8=he.isFinite,e0e=R0.join,t0e=c8(In.keys,In),jr=zr.max,xi=zr.min,n0e=ze.now,r0e=he.parseInt,b8=zr.random,i0e=R0.reverse,KE=ph(he,"DataView"),db=ph(he,"Map"),GE=ph(he,"Promise"),Jf=ph(he,"Set"),hb=ph(he,"WeakMap"),fb=ph(In,"create"),U0=hb&&new hb,Yf={},s0e=mh(KE),o0e=mh(db),a0e=mh(GE),l0e=mh(Jf),c0e=mh(hb),B0=hu?hu.prototype:t,pb=B0?B0.valueOf:t,y8=B0?B0.toString:t;function H(h){if(sr(h)&&!ft(h)&&!(h instanceof qt)){if(h instanceof vo)return h;if(xn.call(h,"__wrapped__"))return v7(h)}return new vo(h)}var Qf=function(){function h(){}return function(p){if(!nr(p))return{};if(f8)return f8(p);h.prototype=p;var x=new h;return h.prototype=t,x}}();function H0(){}function vo(h,p){this.__wrapped__=h,this.__actions__=[],this.__chain__=!!p,this.__index__=0,this.__values__=t}H.templateSettings={escape:Wf,evaluate:S0,interpolate:lb,variable:"",imports:{_:H}},H.prototype=H0.prototype,H.prototype.constructor=H,vo.prototype=Qf(H0.prototype),vo.prototype.constructor=vo;function qt(h){this.__wrapped__=h,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function u0e(){var h=new qt(this.__wrapped__);return h.__actions__=cs(this.__actions__),h.__dir__=this.__dir__,h.__filtered__=this.__filtered__,h.__iteratees__=cs(this.__iteratees__),h.__takeCount__=this.__takeCount__,h.__views__=cs(this.__views__),h}function d0e(){if(this.__filtered__){var h=new qt(this);h.__dir__=-1,h.__filtered__=!0}else h=this.clone(),h.__dir__*=-1;return h}function h0e(){var h=this.__wrapped__.value(),p=this.__dir__,x=ft(h),O=p<0,W=x?h.length:0,V=x1e(0,W,this.__views__),Y=V.start,ne=V.end,se=ne-Y,ge=O?ne:Y-1,ye=this.__iteratees__,_e=ye.length,Oe=0,Be=xi(se,this.__takeCount__);if(!x||!O&&W==se&&Be==se)return W8(h,this.__actions__);var Ze=[];e:for(;se--&&Oe<Be;){ge+=p;for(var Ct=-1,et=h[ge];++Ct<_e;){var Ot=ye[Ct],jt=Ot.iteratee,Hs=Ot.type,Vi=jt(et);if(Hs==N)et=Vi;else if(!Vi){if(Hs==D)continue e;break e}}Ze[Oe++]=et}return Ze}qt.prototype=Qf(H0.prototype),qt.prototype.constructor=qt;function uh(h){var p=-1,x=h==null?0:h.length;for(this.clear();++p<x;){var O=h[p];this.set(O[0],O[1])}}function f0e(){this.__data__=fb?fb(null):{},this.size=0}function p0e(h){var p=this.has(h)&&delete this.__data__[h];return this.size-=p?1:0,p}function m0e(h){var p=this.__data__;if(fb){var x=p[h];return x===o?t:x}return xn.call(p,h)?p[h]:t}function g0e(h){var p=this.__data__;return fb?p[h]!==t:xn.call(p,h)}function b0e(h,p){var x=this.__data__;return this.size+=this.has(h)?0:1,x[h]=fb&&p===t?o:p,this}uh.prototype.clear=f0e,uh.prototype.delete=p0e,uh.prototype.get=m0e,uh.prototype.has=g0e,uh.prototype.set=b0e;function Yl(h){var p=-1,x=h==null?0:h.length;for(this.clear();++p<x;){var O=h[p];this.set(O[0],O[1])}}function y0e(){this.__data__=[],this.size=0}function v0e(h){var p=this.__data__,x=V0(p,h);if(x<0)return!1;var O=p.length-1;return x==O?p.pop():$0.call(p,x,1),--this.size,!0}function w0e(h){var p=this.__data__,x=V0(p,h);return x<0?t:p[x][1]}function _0e(h){return V0(this.__data__,h)>-1}function S0e(h,p){var x=this.__data__,O=V0(x,h);return O<0?(++this.size,x.push([h,p])):x[O][1]=p,this}Yl.prototype.clear=y0e,Yl.prototype.delete=v0e,Yl.prototype.get=w0e,Yl.prototype.has=_0e,Yl.prototype.set=S0e;function Ql(h){var p=-1,x=h==null?0:h.length;for(this.clear();++p<x;){var O=h[p];this.set(O[0],O[1])}}function C0e(){this.size=0,this.__data__={hash:new uh,map:new(db||Yl),string:new uh}}function x0e(h){var p=i1(this,h).delete(h);return this.size-=p?1:0,p}function k0e(h){return i1(this,h).get(h)}function A0e(h){return i1(this,h).has(h)}function F0e(h,p){var x=i1(this,h),O=x.size;return x.set(h,p),this.size+=x.size==O?0:1,this}Ql.prototype.clear=C0e,Ql.prototype.delete=x0e,Ql.prototype.get=k0e,Ql.prototype.has=A0e,Ql.prototype.set=F0e;function dh(h){var p=-1,x=h==null?0:h.length;for(this.__data__=new Ql;++p<x;)this.add(h[p])}function E0e(h){return this.__data__.set(h,o),this}function T0e(h){return this.__data__.has(h)}dh.prototype.add=dh.prototype.push=E0e,dh.prototype.has=T0e;function ha(h){var p=this.__data__=new Yl(h);this.size=p.size}function M0e(){this.__data__=new Yl,this.size=0}function D0e(h){var p=this.__data__,x=p.delete(h);return this.size=p.size,x}function R0e(h){return this.__data__.get(h)}function I0e(h){return this.__data__.has(h)}function P0e(h,p){var x=this.__data__;if(x instanceof Yl){var O=x.__data__;if(!db||O.length<n-1)return O.push([h,p]),this.size=++x.size,this;x=this.__data__=new Ql(O)}return x.set(h,p),this.size=x.size,this}ha.prototype.clear=M0e,ha.prototype.delete=D0e,ha.prototype.get=R0e,ha.prototype.has=I0e,ha.prototype.set=P0e;function v8(h,p){var x=ft(h),O=!x&&gh(h),W=!x&&!O&&bu(h),V=!x&&!O&&!W&&tp(h),Y=x||O||W||V,ne=Y?WE(h.length,Bwe):[],se=ne.length;for(var ge in h)(p||xn.call(h,ge))&&!(Y&&(ge=="length"||W&&(ge=="offset"||ge=="parent")||V&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||tc(ge,se)))&&ne.push(ge);return ne}function w8(h){var p=h.length;return p?h[sT(0,p-1)]:t}function O0e(h,p){return s1(cs(h),hh(p,0,h.length))}function N0e(h){return s1(cs(h))}function JE(h,p,x){(x!==t&&!fa(h[p],x)||x===t&&!(p in h))&&Xl(h,p,x)}function mb(h,p,x){var O=h[p];(!(xn.call(h,p)&&fa(O,x))||x===t&&!(p in h))&&Xl(h,p,x)}function V0(h,p){for(var x=h.length;x--;)if(fa(h[x][0],p))return x;return-1}function L0e(h,p,x,O){return fu(h,function(W,V,Y){p(O,W,x(W),Y)}),O}function _8(h,p){return h&&Ja(p,Qr(p),h)}function q0e(h,p){return h&&Ja(p,ds(p),h)}function Xl(h,p,x){p=="__proto__"&&z0?z0(h,p,{configurable:!0,enumerable:!0,value:x,writable:!0}):h[p]=x}function YE(h,p){for(var x=-1,O=p.length,W=ue(O),V=h==null;++x<O;)W[x]=V?t:MT(h,p[x]);return W}function hh(h,p,x){return h===h&&(x!==t&&(h=h<=x?h:x),p!==t&&(h=h>=p?h:p)),h}function wo(h,p,x,O,W,V){var Y,ne=p&c,se=p&u,ge=p&d;if(x&&(Y=W?x(h,O,W,V):x(h)),Y!==t)return Y;if(!nr(h))return h;var ye=ft(h);if(ye){if(Y=A1e(h),!ne)return cs(h,Y)}else{var _e=ki(h),Oe=_e==Ne||_e==me;if(bu(h))return H8(h,ne);if(_e==lt||_e==de||Oe&&!W){if(Y=se||Oe?{}:u7(h),!ne)return se?m1e(h,q0e(Y,h)):p1e(h,_8(Y,h))}else{if(!Nn[_e])return W?h:{};Y=F1e(h,_e,ne)}}V||(V=new ha);var Be=V.get(h);if(Be)return Be;V.set(h,Y),$7(h)?h.forEach(function(et){Y.add(wo(et,p,x,et,h,V))}):L7(h)&&h.forEach(function(et,Ot){Y.set(Ot,wo(et,p,x,Ot,h,V))});var Ze=ge?se?gT:mT:se?ds:Qr,Ct=ye?t:Ze(h);return bo(Ct||h,function(et,Ot){Ct&&(Ot=et,et=h[Ot]),mb(Y,Ot,wo(et,p,x,Ot,h,V))}),Y}function $0e(h){var p=Qr(h);return function(x){return S8(x,h,p)}}function S8(h,p,x){var O=x.length;if(h==null)return!O;for(h=In(h);O--;){var W=x[O],V=p[W],Y=h[W];if(Y===t&&!(W in h)||!V(Y))return!1}return!0}function C8(h,p,x){if(typeof h!="function")throw new yo(i);return Sb(function(){h.apply(t,x)},p)}function gb(h,p,x,O){var W=-1,V=T0,Y=!0,ne=h.length,se=[],ge=p.length;if(!ne)return se;x&&(p=Yn(p,Ws(x))),O?(V=NE,Y=!1):p.length>=n&&(V=cb,Y=!1,p=new dh(p));e:for(;++W<ne;){var ye=h[W],_e=x==null?ye:x(ye);if(ye=O||ye!==0?ye:0,Y&&_e===_e){for(var Oe=ge;Oe--;)if(p[Oe]===_e)continue e;se.push(ye)}else V(p,_e,O)||se.push(ye)}return se}var fu=Y8(Ga),x8=Y8(XE,!0);function z0e(h,p){var x=!0;return fu(h,function(O,W,V){return x=!!p(O,W,V),x}),x}function K0(h,p,x){for(var O=-1,W=h.length;++O<W;){var V=h[O],Y=p(V);if(Y!=null&&(ne===t?Y===Y&&!Bs(Y):x(Y,ne)))var ne=Y,se=V}return se}function j0e(h,p,x,O){var W=h.length;for(x=yt(x),x<0&&(x=-x>W?0:W+x),O=O===t||O>W?W:yt(O),O<0&&(O+=W),O=x>O?0:j7(O);x<O;)h[x++]=p;return h}function k8(h,p){var x=[];return fu(h,function(O,W,V){p(O,W,V)&&x.push(O)}),x}function ii(h,p,x,O,W){var V=-1,Y=h.length;for(x||(x=T1e),W||(W=[]);++V<Y;){var ne=h[V];p>0&&x(ne)?p>1?ii(ne,p-1,x,O,W):cu(W,ne):O||(W[W.length]=ne)}return W}var QE=Q8(),A8=Q8(!0);function Ga(h,p){return h&&QE(h,p,Qr)}function XE(h,p){return h&&A8(h,p,Qr)}function G0(h,p){return lu(p,function(x){return nc(h[x])})}function fh(h,p){p=mu(p,h);for(var x=0,O=p.length;h!=null&&x<O;)h=h[Ya(p[x++])];return x&&x==O?h:t}function F8(h,p,x){var O=p(h);return ft(h)?O:cu(O,x(h))}function Bi(h){return h==null?h===t?ou:un:ch&&ch in In(h)?C1e(h):N1e(h)}function ZE(h,p){return h>p}function W0e(h,p){return h!=null&&xn.call(h,p)}function U0e(h,p){return h!=null&&p in In(h)}function B0e(h,p,x){return h>=xi(p,x)&&h<jr(p,x)}function eT(h,p,x){for(var O=x?NE:T0,W=h[0].length,V=h.length,Y=V,ne=ue(V),se=1/0,ge=[];Y--;){var ye=h[Y];Y&&p&&(ye=Yn(ye,Ws(p))),se=xi(ye.length,se),ne[Y]=!x&&(p||W>=120&&ye.length>=120)?new dh(Y&&ye):t}ye=h[0];var _e=-1,Oe=ne[0];e:for(;++_e<W&&ge.length<se;){var Be=ye[_e],Ze=p?p(Be):Be;if(Be=x||Be!==0?Be:0,!(Oe?cb(Oe,Ze):O(ge,Ze,x))){for(Y=V;--Y;){var Ct=ne[Y];if(!(Ct?cb(Ct,Ze):O(h[Y],Ze,x)))continue e}Oe&&Oe.push(Ze),ge.push(Be)}}return ge}function H0e(h,p,x,O){return Ga(h,function(W,V,Y){p(O,x(W),V,Y)}),O}function bb(h,p,x){p=mu(p,h),h=p7(h,p);var O=h==null?h:h[Ya(So(p))];return O==null?t:js(O,h,x)}function E8(h){return sr(h)&&Bi(h)==de}function V0e(h){return sr(h)&&Bi(h)==ca}function K0e(h){return sr(h)&&Bi(h)==Ye}function yb(h,p,x,O,W){return h===p?!0:h==null||p==null||!sr(h)&&!sr(p)?h!==h&&p!==p:G0e(h,p,x,O,yb,W)}function G0e(h,p,x,O,W,V){var Y=ft(h),ne=ft(p),se=Y?Se:ki(h),ge=ne?Se:ki(p);se=se==de?lt:se,ge=ge==de?lt:ge;var ye=se==lt,_e=ge==lt,Oe=se==ge;if(Oe&&bu(h)){if(!bu(p))return!1;Y=!0,ye=!1}if(Oe&&!ye)return V||(V=new ha),Y||tp(h)?a7(h,p,x,O,W,V):_1e(h,p,se,x,O,W,V);if(!(x&f)){var Be=ye&&xn.call(h,"__wrapped__"),Ze=_e&&xn.call(p,"__wrapped__");if(Be||Ze){var Ct=Be?h.value():h,et=Ze?p.value():p;return V||(V=new ha),W(Ct,et,x,O,V)}}return Oe?(V||(V=new ha),S1e(h,p,x,O,W,V)):!1}function J0e(h){return sr(h)&&ki(h)==Re}function tT(h,p,x,O){var W=x.length,V=W,Y=!O;if(h==null)return!V;for(h=In(h);W--;){var ne=x[W];if(Y&&ne[2]?ne[1]!==h[ne[0]]:!(ne[0]in h))return!1}for(;++W<V;){ne=x[W];var se=ne[0],ge=h[se],ye=ne[1];if(Y&&ne[2]){if(ge===t&&!(se in h))return!1}else{var _e=new ha;if(O)var Oe=O(ge,ye,se,h,p,_e);if(!(Oe===t?yb(ye,ge,f|m,O,_e):Oe))return!1}}return!0}function T8(h){if(!nr(h)||D1e(h))return!1;var p=nc(h)?Jwe:Pt;return p.test(mh(h))}function Y0e(h){return sr(h)&&Bi(h)==Gr}function Q0e(h){return sr(h)&&ki(h)==Vt}function X0e(h){return sr(h)&&d1(h.length)&&!!zn[Bi(h)]}function M8(h){return typeof h=="function"?h:h==null?hs:typeof h=="object"?ft(h)?I8(h[0],h[1]):R8(h):X7(h)}function nT(h){if(!_b(h))return t0e(h);var p=[];for(var x in In(h))xn.call(h,x)&&x!="constructor"&&p.push(x);return p}function Z0e(h){if(!nr(h))return O1e(h);var p=_b(h),x=[];for(var O in h)O=="constructor"&&(p||!xn.call(h,O))||x.push(O);return x}function rT(h,p){return h<p}function D8(h,p){var x=-1,O=us(h)?ue(h.length):[];return fu(h,function(W,V,Y){O[++x]=p(W,V,Y)}),O}function R8(h){var p=yT(h);return p.length==1&&p[0][2]?h7(p[0][0],p[0][1]):function(x){return x===h||tT(x,h,p)}}function I8(h,p){return wT(h)&&d7(p)?h7(Ya(h),p):function(x){var O=MT(x,h);return O===t&&O===p?DT(x,h):yb(p,O,f|m)}}function J0(h,p,x,O,W){h!==p&&QE(p,function(V,Y){if(W||(W=new ha),nr(V))e1e(h,p,Y,x,J0,O,W);else{var ne=O?O(ST(h,Y),V,Y+"",h,p,W):t;ne===t&&(ne=V),JE(h,Y,ne)}},ds)}function e1e(h,p,x,O,W,V,Y){var ne=ST(h,x),se=ST(p,x),ge=Y.get(se);if(ge){JE(h,x,ge);return}var ye=V?V(ne,se,x+"",h,p,Y):t,_e=ye===t;if(_e){var Oe=ft(se),Be=!Oe&&bu(se),Ze=!Oe&&!Be&&tp(se);ye=se,Oe||Be||Ze?ft(ne)?ye=ne:gr(ne)?ye=cs(ne):Be?(_e=!1,ye=H8(se,!0)):Ze?(_e=!1,ye=V8(se,!0)):ye=[]:Cb(se)||gh(se)?(ye=ne,gh(ne)?ye=W7(ne):(!nr(ne)||nc(ne))&&(ye=u7(se))):_e=!1}_e&&(Y.set(se,ye),W(ye,se,O,V,Y),Y.delete(se)),JE(h,x,ye)}function P8(h,p){var x=h.length;if(x)return p+=p<0?x:0,tc(p,x)?h[p]:t}function O8(h,p,x){p.length?p=Yn(p,function(V){return ft(V)?function(Y){return fh(Y,V.length===1?V[0]:V)}:V}):p=[hs];var O=-1;p=Yn(p,Ws(Qe()));var W=D8(h,function(V,Y,ne){var se=Yn(p,function(ge){return ge(V)});return{criteria:se,index:++O,value:V}});return Fwe(W,function(V,Y){return f1e(V,Y,x)})}function t1e(h,p){return N8(h,p,function(x,O){return DT(h,O)})}function N8(h,p,x){for(var O=-1,W=p.length,V={};++O<W;){var Y=p[O],ne=fh(h,Y);x(ne,Y)&&vb(V,mu(Y,h),ne)}return V}function n1e(h){return function(p){return fh(p,h)}}function iT(h,p,x,O){var W=O?Awe:Hf,V=-1,Y=p.length,ne=h;for(h===p&&(p=cs(p)),x&&(ne=Yn(h,Ws(x)));++V<Y;)for(var se=0,ge=p[V],ye=x?x(ge):ge;(se=W(ne,ye,se,O))>-1;)ne!==h&&$0.call(ne,se,1),$0.call(h,se,1);return h}function L8(h,p){for(var x=h?p.length:0,O=x-1;x--;){var W=p[x];if(x==O||W!==V){var V=W;tc(W)?$0.call(h,W,1):lT(h,W)}}return h}function sT(h,p){return h+W0(b8()*(p-h+1))}function r1e(h,p,x,O){for(var W=-1,V=jr(j0((p-h)/(x||1)),0),Y=ue(V);V--;)Y[O?V:++W]=h,h+=x;return Y}function oT(h,p){var x="";if(!h||p<1||p>P)return x;do p%2&&(x+=h),p=W0(p/2),p&&(h+=h);while(p);return x}function Ft(h,p){return CT(f7(h,p,hs),h+"")}function i1e(h){return w8(np(h))}function s1e(h,p){var x=np(h);return s1(x,hh(p,0,x.length))}function vb(h,p,x,O){if(!nr(h))return h;p=mu(p,h);for(var W=-1,V=p.length,Y=V-1,ne=h;ne!=null&&++W<V;){var se=Ya(p[W]),ge=x;if(se==="__proto__"||se==="constructor"||se==="prototype")return h;if(W!=Y){var ye=ne[se];ge=O?O(ye,se,ne):t,ge===t&&(ge=nr(ye)?ye:tc(p[W+1])?[]:{})}mb(ne,se,ge),ne=ne[se]}return h}var q8=U0?function(h,p){return U0.set(h,p),h}:hs,o1e=z0?function(h,p){return z0(h,"toString",{configurable:!0,enumerable:!1,value:IT(p),writable:!0})}:hs;function a1e(h){return s1(np(h))}function _o(h,p,x){var O=-1,W=h.length;p<0&&(p=-p>W?0:W+p),x=x>W?W:x,x<0&&(x+=W),W=p>x?0:x-p>>>0,p>>>=0;for(var V=ue(W);++O<W;)V[O]=h[O+p];return V}function l1e(h,p){var x;return fu(h,function(O,W,V){return x=p(O,W,V),!x}),!!x}function Y0(h,p,x){var O=0,W=h==null?O:h.length;if(typeof p=="number"&&p===p&&W<=X){for(;O<W;){var V=O+W>>>1,Y=h[V];Y!==null&&!Bs(Y)&&(x?Y<=p:Y<p)?O=V+1:W=V}return W}return aT(h,p,hs,x)}function aT(h,p,x,O){var W=0,V=h==null?0:h.length;if(V===0)return 0;p=x(p);for(var Y=p!==p,ne=p===null,se=Bs(p),ge=p===t;W<V;){var ye=W0((W+V)/2),_e=x(h[ye]),Oe=_e!==t,Be=_e===null,Ze=_e===_e,Ct=Bs(_e);if(Y)var et=O||Ze;else ge?et=Ze&&(O||Oe):ne?et=Ze&&Oe&&(O||!Be):se?et=Ze&&Oe&&!Be&&(O||!Ct):Be||Ct?et=!1:et=O?_e<=p:_e<p;et?W=ye+1:V=ye}return xi(V,K)}function $8(h,p){for(var x=-1,O=h.length,W=0,V=[];++x<O;){var Y=h[x],ne=p?p(Y):Y;if(!x||!fa(ne,se)){var se=ne;V[W++]=Y===0?0:Y}}return V}function z8(h){return typeof h=="number"?h:Bs(h)?j:+h}function Us(h){if(typeof h=="string")return h;if(ft(h))return Yn(h,Us)+"";if(Bs(h))return y8?y8.call(h):"";var p=h+"";return p=="0"&&1/h==-F?"-0":p}function pu(h,p,x){var O=-1,W=T0,V=h.length,Y=!0,ne=[],se=ne;if(x)Y=!1,W=NE;else if(V>=n){var ge=p?null:v1e(h);if(ge)return D0(ge);Y=!1,W=cb,se=new dh}else se=p?[]:ne;e:for(;++O<V;){var ye=h[O],_e=p?p(ye):ye;if(ye=x||ye!==0?ye:0,Y&&_e===_e){for(var Oe=se.length;Oe--;)if(se[Oe]===_e)continue e;p&&se.push(_e),ne.push(ye)}else W(se,_e,x)||(se!==ne&&se.push(_e),ne.push(ye))}return ne}function lT(h,p){return p=mu(p,h),h=p7(h,p),h==null||delete h[Ya(So(p))]}function j8(h,p,x,O){return vb(h,p,x(fh(h,p)),O)}function Q0(h,p,x,O){for(var W=h.length,V=O?W:-1;(O?V--:++V<W)&&p(h[V],V,h););return x?_o(h,O?0:V,O?V+1:W):_o(h,O?V+1:0,O?W:V)}function W8(h,p){var x=h;return x instanceof qt&&(x=x.value()),LE(p,function(O,W){return W.func.apply(W.thisArg,cu([O],W.args))},x)}function cT(h,p,x){var O=h.length;if(O<2)return O?pu(h[0]):[];for(var W=-1,V=ue(O);++W<O;)for(var Y=h[W],ne=-1;++ne<O;)ne!=W&&(V[W]=gb(V[W]||Y,h[ne],p,x));return pu(ii(V,1),p,x)}function U8(h,p,x){for(var O=-1,W=h.length,V=p.length,Y={};++O<W;){var ne=O<V?p[O]:t;x(Y,h[O],ne)}return Y}function uT(h){return gr(h)?h:[]}function dT(h){return typeof h=="function"?h:hs}function mu(h,p){return ft(h)?h:wT(h,p)?[h]:y7(bn(h))}var c1e=Ft;function gu(h,p,x){var O=h.length;return x=x===t?O:x,!p&&x>=O?h:_o(h,p,x)}var B8=Ywe||function(h){return Yr.clearTimeout(h)};function H8(h,p){if(p)return h.slice();var x=h.length,O=h8?h8(x):new h.constructor(x);return h.copy(O),O}function hT(h){var p=new h.constructor(h.byteLength);return new L0(p).set(new L0(h)),p}function u1e(h,p){var x=p?hT(h.buffer):h.buffer;return new h.constructor(x,h.byteOffset,h.byteLength)}function d1e(h){var p=new h.constructor(h.source,ls.exec(h));return p.lastIndex=h.lastIndex,p}function h1e(h){return pb?In(pb.call(h)):{}}function V8(h,p){var x=p?hT(h.buffer):h.buffer;return new h.constructor(x,h.byteOffset,h.length)}function K8(h,p){if(h!==p){var x=h!==t,O=h===null,W=h===h,V=Bs(h),Y=p!==t,ne=p===null,se=p===p,ge=Bs(p);if(!ne&&!ge&&!V&&h>p||V&&Y&&se&&!ne&&!ge||O&&Y&&se||!x&&se||!W)return 1;if(!O&&!V&&!ge&&h<p||ge&&x&&W&&!O&&!V||ne&&x&&W||!Y&&W||!se)return-1}return 0}function f1e(h,p,x){for(var O=-1,W=h.criteria,V=p.criteria,Y=W.length,ne=x.length;++O<Y;){var se=K8(W[O],V[O]);if(se){if(O>=ne)return se;var ge=x[O];return se*(ge=="desc"?-1:1)}}return h.index-p.index}function G8(h,p,x,O){for(var W=-1,V=h.length,Y=x.length,ne=-1,se=p.length,ge=jr(V-Y,0),ye=ue(se+ge),_e=!O;++ne<se;)ye[ne]=p[ne];for(;++W<Y;)(_e||W<V)&&(ye[x[W]]=h[W]);for(;ge--;)ye[ne++]=h[W++];return ye}function J8(h,p,x,O){for(var W=-1,V=h.length,Y=-1,ne=x.length,se=-1,ge=p.length,ye=jr(V-ne,0),_e=ue(ye+ge),Oe=!O;++W<ye;)_e[W]=h[W];for(var Be=W;++se<ge;)_e[Be+se]=p[se];for(;++Y<ne;)(Oe||W<V)&&(_e[Be+x[Y]]=h[W++]);return _e}function cs(h,p){var x=-1,O=h.length;for(p||(p=ue(O));++x<O;)p[x]=h[x];return p}function Ja(h,p,x,O){var W=!x;x||(x={});for(var V=-1,Y=p.length;++V<Y;){var ne=p[V],se=O?O(x[ne],h[ne],ne,x,h):t;se===t&&(se=h[ne]),W?Xl(x,ne,se):mb(x,ne,se)}return x}function p1e(h,p){return Ja(h,vT(h),p)}function m1e(h,p){return Ja(h,l7(h),p)}function X0(h,p){return function(x,O){var W=ft(x)?wwe:L0e,V=p?p():{};return W(x,h,Qe(O,2),V)}}function Xf(h){return Ft(function(p,x){var O=-1,W=x.length,V=W>1?x[W-1]:t,Y=W>2?x[2]:t;for(V=h.length>3&&typeof V=="function"?(W--,V):t,Y&&Hi(x[0],x[1],Y)&&(V=W<3?t:V,W=1),p=In(p);++O<W;){var ne=x[O];ne&&h(p,ne,O,V)}return p})}function Y8(h,p){return function(x,O){if(x==null)return x;if(!us(x))return h(x,O);for(var W=x.length,V=p?W:-1,Y=In(x);(p?V--:++V<W)&&O(Y[V],V,Y)!==!1;);return x}}function Q8(h){return function(p,x,O){for(var W=-1,V=In(p),Y=O(p),ne=Y.length;ne--;){var se=Y[h?ne:++W];if(x(V[se],se,V)===!1)break}return p}}function g1e(h,p,x){var O=p&b,W=wb(h);function V(){var Y=this&&this!==Yr&&this instanceof V?W:h;return Y.apply(O?x:this,arguments)}return V}function X8(h){return function(p){p=bn(p);var x=Vf(p)?da(p):t,O=x?x[0]:p.charAt(0),W=x?gu(x,1).join(""):p.slice(1);return O[h]()+W}}function Zf(h){return function(p){return LE(Y7(J7(p).replace(owe,"")),h,"")}}function wb(h){return function(){var p=arguments;switch(p.length){case 0:return new h;case 1:return new h(p[0]);case 2:return new h(p[0],p[1]);case 3:return new h(p[0],p[1],p[2]);case 4:return new h(p[0],p[1],p[2],p[3]);case 5:return new h(p[0],p[1],p[2],p[3],p[4]);case 6:return new h(p[0],p[1],p[2],p[3],p[4],p[5]);case 7:return new h(p[0],p[1],p[2],p[3],p[4],p[5],p[6])}var x=Qf(h.prototype),O=h.apply(x,p);return nr(O)?O:x}}function b1e(h,p,x){var O=wb(h);function W(){for(var V=arguments.length,Y=ue(V),ne=V,se=ep(W);ne--;)Y[ne]=arguments[ne];var ge=V<3&&Y[0]!==se&&Y[V-1]!==se?[]:uu(Y,se);if(V-=ge.length,V<x)return r7(h,p,Z0,W.placeholder,t,Y,ge,t,t,x-V);var ye=this&&this!==Yr&&this instanceof W?O:h;return js(ye,this,Y)}return W}function Z8(h){return function(p,x,O){var W=In(p);if(!us(p)){var V=Qe(x,3);p=Qr(p),x=function(ne){return V(W[ne],ne,W)}}var Y=h(p,x,O);return Y>-1?W[V?p[Y]:Y]:t}}function e7(h){return ec(function(p){var x=p.length,O=x,W=vo.prototype.thru;for(h&&p.reverse();O--;){var V=p[O];if(typeof V!="function")throw new yo(i);if(W&&!Y&&r1(V)=="wrapper")var Y=new vo([],!0)}for(O=Y?O:x;++O<x;){V=p[O];var ne=r1(V),se=ne=="wrapper"?bT(V):t;se&&_T(se[0])&&se[1]==(A|_|v|R)&&!se[4].length&&se[9]==1?Y=Y[r1(se[0])].apply(Y,se[3]):Y=V.length==1&&_T(V)?Y[ne]():Y.thru(V)}return function(){var ge=arguments,ye=ge[0];if(Y&&ge.length==1&&ft(ye))return Y.plant(ye).value();for(var _e=0,Oe=x?p[_e].apply(this,ge):ye;++_e<x;)Oe=p[_e].call(this,Oe);return Oe}})}function Z0(h,p,x,O,W,V,Y,ne,se,ge){var ye=p&A,_e=p&b,Oe=p&g,Be=p&(_|S),Ze=p&k,Ct=Oe?t:wb(h);function et(){for(var Ot=arguments.length,jt=ue(Ot),Hs=Ot;Hs--;)jt[Hs]=arguments[Hs];if(Be)var Vi=ep(et),Vs=Twe(jt,Vi);if(O&&(jt=G8(jt,O,W,Be)),V&&(jt=J8(jt,V,Y,Be)),Ot-=Vs,Be&&Ot<ge){var br=uu(jt,Vi);return r7(h,p,Z0,et.placeholder,x,jt,br,ne,se,ge-Ot)}var pa=_e?x:this,ic=Oe?pa[h]:h;return Ot=jt.length,ne?jt=L1e(jt,ne):Ze&&Ot>1&&jt.reverse(),ye&&se<Ot&&(jt.length=se),this&&this!==Yr&&this instanceof et&&(ic=Ct||wb(ic)),ic.apply(pa,jt)}return et}function t7(h,p){return function(x,O){return H0e(x,h,p(O),{})}}function e1(h,p){return function(x,O){var W;if(x===t&&O===t)return p;if(x!==t&&(W=x),O!==t){if(W===t)return O;typeof x=="string"||typeof O=="string"?(x=Us(x),O=Us(O)):(x=z8(x),O=z8(O)),W=h(x,O)}return W}}function fT(h){return ec(function(p){return p=Yn(p,Ws(Qe())),Ft(function(x){var O=this;return h(p,function(W){return js(W,O,x)})})})}function t1(h,p){p=p===t?" ":Us(p);var x=p.length;if(x<2)return x?oT(p,h):p;var O=oT(p,j0(h/Kf(p)));return Vf(p)?gu(da(O),0,h).join(""):O.slice(0,h)}function y1e(h,p,x,O){var W=p&b,V=wb(h);function Y(){for(var ne=-1,se=arguments.length,ge=-1,ye=O.length,_e=ue(ye+se),Oe=this&&this!==Yr&&this instanceof Y?V:h;++ge<ye;)_e[ge]=O[ge];for(;se--;)_e[ge++]=arguments[++ne];return js(Oe,W?x:this,_e)}return Y}function n7(h){return function(p,x,O){return O&&typeof O!="number"&&Hi(p,x,O)&&(x=O=t),p=rc(p),x===t?(x=p,p=0):x=rc(x),O=O===t?p<x?1:-1:rc(O),r1e(p,x,O,h)}}function n1(h){return function(p,x){return typeof p=="string"&&typeof x=="string"||(p=Co(p),x=Co(x)),h(p,x)}}function r7(h,p,x,O,W,V,Y,ne,se,ge){var ye=p&_,_e=ye?Y:t,Oe=ye?t:Y,Be=ye?V:t,Ze=ye?t:V;p|=ye?v:T,p&=~(ye?T:v),p&w||(p&=~(b|g));var Ct=[h,p,W,Be,_e,Ze,Oe,ne,se,ge],et=x.apply(t,Ct);return _T(h)&&m7(et,Ct),et.placeholder=O,g7(et,h,p)}function pT(h){var p=zr[h];return function(x,O){if(x=Co(x),O=O==null?0:xi(yt(O),292),O&&g8(x)){var W=(bn(x)+"e").split("e"),V=p(W[0]+"e"+(+W[1]+O));return W=(bn(V)+"e").split("e"),+(W[0]+"e"+(+W[1]-O))}return p(x)}}var v1e=Jf&&1/D0(new Jf([,-0]))[1]==F?function(h){return new Jf(h)}:NT;function i7(h){return function(p){var x=ki(p);return x==Re?BE(p):x==Vt?Nwe(p):Ewe(p,h(p))}}function Zl(h,p,x,O,W,V,Y,ne){var se=p&g;if(!se&&typeof h!="function")throw new yo(i);var ge=O?O.length:0;if(ge||(p&=~(v|T),O=W=t),Y=Y===t?Y:jr(yt(Y),0),ne=ne===t?ne:yt(ne),ge-=W?W.length:0,p&T){var ye=O,_e=W;O=W=t}var Oe=se?t:bT(h),Be=[h,p,x,O,W,ye,_e,V,Y,ne];if(Oe&&P1e(Be,Oe),h=Be[0],p=Be[1],x=Be[2],O=Be[3],W=Be[4],ne=Be[9]=Be[9]===t?se?0:h.length:jr(Be[9]-ge,0),!ne&&p&(_|S)&&(p&=~(_|S)),!p||p==b)var Ze=g1e(h,p,x);else p==_||p==S?Ze=b1e(h,p,ne):(p==v||p==(b|v))&&!W.length?Ze=y1e(h,p,x,O):Ze=Z0.apply(t,Be);var Ct=Oe?q8:m7;return g7(Ct(Ze,Be),h,p)}function s7(h,p,x,O){return h===t||fa(h,Gf[x])&&!xn.call(O,x)?p:h}function o7(h,p,x,O,W,V){return nr(h)&&nr(p)&&(V.set(p,h),J0(h,p,t,o7,V),V.delete(p)),h}function w1e(h){return Cb(h)?t:h}function a7(h,p,x,O,W,V){var Y=x&f,ne=h.length,se=p.length;if(ne!=se&&!(Y&&se>ne))return!1;var ge=V.get(h),ye=V.get(p);if(ge&&ye)return ge==p&&ye==h;var _e=-1,Oe=!0,Be=x&m?new dh:t;for(V.set(h,p),V.set(p,h);++_e<ne;){var Ze=h[_e],Ct=p[_e];if(O)var et=Y?O(Ct,Ze,_e,p,h,V):O(Ze,Ct,_e,h,p,V);if(et!==t){if(et)continue;Oe=!1;break}if(Be){if(!qE(p,function(Ot,jt){if(!cb(Be,jt)&&(Ze===Ot||W(Ze,Ot,x,O,V)))return Be.push(jt)})){Oe=!1;break}}else if(!(Ze===Ct||W(Ze,Ct,x,O,V))){Oe=!1;break}}return V.delete(h),V.delete(p),Oe}function _1e(h,p,x,O,W,V,Y){switch(x){case qs:if(h.byteLength!=p.byteLength||h.byteOffset!=p.byteOffset)return!1;h=h.buffer,p=p.buffer;case ca:return!(h.byteLength!=p.byteLength||!V(new L0(h),new L0(p)));case ke:case Ye:case it:return fa(+h,+p);case we:return h.name==p.name&&h.message==p.message;case Gr:case mr:return h==p+"";case Re:var ne=BE;case Vt:var se=O&f;if(ne||(ne=D0),h.size!=p.size&&!se)return!1;var ge=Y.get(h);if(ge)return ge==p;O|=m,Y.set(h,p);var ye=a7(ne(h),ne(p),O,W,V,Y);return Y.delete(h),ye;case Wi:if(pb)return pb.call(h)==pb.call(p)}return!1}function S1e(h,p,x,O,W,V){var Y=x&f,ne=mT(h),se=ne.length,ge=mT(p),ye=ge.length;if(se!=ye&&!Y)return!1;for(var _e=se;_e--;){var Oe=ne[_e];if(!(Y?Oe in p:xn.call(p,Oe)))return!1}var Be=V.get(h),Ze=V.get(p);if(Be&&Ze)return Be==p&&Ze==h;var Ct=!0;V.set(h,p),V.set(p,h);for(var et=Y;++_e<se;){Oe=ne[_e];var Ot=h[Oe],jt=p[Oe];if(O)var Hs=Y?O(jt,Ot,Oe,p,h,V):O(Ot,jt,Oe,h,p,V);if(!(Hs===t?Ot===jt||W(Ot,jt,x,O,V):Hs)){Ct=!1;break}et||(et=Oe=="constructor")}if(Ct&&!et){var Vi=h.constructor,Vs=p.constructor;Vi!=Vs&&"constructor"in h&&"constructor"in p&&!(typeof Vi=="function"&&Vi instanceof Vi&&typeof Vs=="function"&&Vs instanceof Vs)&&(Ct=!1)}return V.delete(h),V.delete(p),Ct}function ec(h){return CT(f7(h,t,S7),h+"")}function mT(h){return F8(h,Qr,vT)}function gT(h){return F8(h,ds,l7)}var bT=U0?function(h){return U0.get(h)}:NT;function r1(h){for(var p=h.name+"",x=Yf[p],O=xn.call(Yf,p)?x.length:0;O--;){var W=x[O],V=W.func;if(V==null||V==h)return W.name}return p}function ep(h){var p=xn.call(H,"placeholder")?H:h;return p.placeholder}function Qe(){var h=H.iteratee||PT;return h=h===PT?M8:h,arguments.length?h(arguments[0],arguments[1]):h}function i1(h,p){var x=h.__data__;return M1e(p)?x[typeof p=="string"?"string":"hash"]:x.map}function yT(h){for(var p=Qr(h),x=p.length;x--;){var O=p[x],W=h[O];p[x]=[O,W,d7(W)]}return p}function ph(h,p){var x=Iwe(h,p);return T8(x)?x:t}function C1e(h){var p=xn.call(h,ch),x=h[ch];try{h[ch]=t;var O=!0}catch{}var W=O0.call(h);return O&&(p?h[ch]=x:delete h[ch]),W}var vT=VE?function(h){return h==null?[]:(h=In(h),lu(VE(h),function(p){return p8.call(h,p)}))}:LT,l7=VE?function(h){for(var p=[];h;)cu(p,vT(h)),h=q0(h);return p}:LT,ki=Bi;(KE&&ki(new KE(new ArrayBuffer(1)))!=qs||db&&ki(new db)!=Re||GE&&ki(GE.resolve())!=ri||Jf&&ki(new Jf)!=Vt||hb&&ki(new hb)!=Jr)&&(ki=function(h){var p=Bi(h),x=p==lt?h.constructor:t,O=x?mh(x):"";if(O)switch(O){case s0e:return qs;case o0e:return Re;case a0e:return ri;case l0e:return Vt;case c0e:return Jr}return p});function x1e(h,p,x){for(var O=-1,W=x.length;++O<W;){var V=x[O],Y=V.size;switch(V.type){case"drop":h+=Y;break;case"dropRight":p-=Y;break;case"take":p=xi(p,h+Y);break;case"takeRight":h=jr(h,p-Y);break}}return{start:h,end:p}}function k1e(h){var p=h.match(U);return p?p[1].split(le):[]}function c7(h,p,x){p=mu(p,h);for(var O=-1,W=p.length,V=!1;++O<W;){var Y=Ya(p[O]);if(!(V=h!=null&&x(h,Y)))break;h=h[Y]}return V||++O!=W?V:(W=h==null?0:h.length,!!W&&d1(W)&&tc(Y,W)&&(ft(h)||gh(h)))}function A1e(h){var p=h.length,x=new h.constructor(p);return p&&typeof h[0]=="string"&&xn.call(h,"index")&&(x.index=h.index,x.input=h.input),x}function u7(h){return typeof h.constructor=="function"&&!_b(h)?Qf(q0(h)):{}}function F1e(h,p,x){var O=h.constructor;switch(p){case ca:return hT(h);case ke:case Ye:return new O(+h);case qs:return u1e(h,x);case Jl:case $s:case Z:case pe:case Te:case $e:case tn:case Kt:case Sn:return V8(h,x);case Re:return new O;case it:case mr:return new O(h);case Gr:return d1e(h);case Vt:return new O;case Wi:return h1e(h)}}function E1e(h,p){var x=p.length;if(!x)return h;var O=x-1;return p[O]=(x>1?"& ":"")+p[O],p=p.join(x>2?", ":" "),h.replace(G,`{
|
|
1042
1042
|
/* [wrapped with `+p+`] */
|
|
1043
|
-
`)}function T1e(h){return ft(h)||gh(h)||!!(m8&&h&&h[m8])}function tc(h,p){var x=typeof h;return p=p??P,!!p&&(x=="number"||x!="symbol"&&Uf.test(h))&&h>-1&&h%1==0&&h<p}function Hi(h,p,x){if(!nr(x))return!1;var O=typeof p;return(O=="number"?us(x)&&tc(p,x.length):O=="string"&&p in x)?fa(x[p],h):!1}function wT(h,p){if(ft(h))return!1;var x=typeof h;return x=="number"||x=="symbol"||x=="boolean"||h==null||Bs(h)?!0:x0.test(h)||!C0.test(h)||p!=null&&h in In(p)}function M1e(h){var p=typeof h;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?h!=="__proto__":h===null}function _T(h){var p=r1(h),x=H[p];if(typeof x!="function"||!(p in qt.prototype))return!1;if(h===x)return!0;var O=bT(x);return!!O&&h===O[0]}function D1e(h){return!!d8&&d8 in h}var R1e=I0?nc:qT;function _b(h){var p=h&&h.constructor,x=typeof p=="function"&&p.prototype||Gf;return h===x}function dU(h){return h===h&&!nr(h)}function hU(h,p){return function(x){return x==null?!1:x[h]===p&&(p!==t||h in In(x))}}function I1e(h){var p=c1(h,function(O){return x.size===a&&x.clear(),O}),x=p.cache;return p}function P1e(h,p){var x=h[1],O=p[1],W=x|O,V=W<(b|g|A),Y=O==A&&x==_||O==A&&x==R&&h[7].length<=p[8]||O==(A|R)&&p[7].length<=p[8]&&x==_;if(!(V||Y))return h;O&b&&(h[2]=p[2],W|=x&b?0:w);var ne=p[3];if(ne){var se=h[3];h[3]=se?G8(se,ne,p[4]):ne,h[4]=se?uu(h[3],l):p[4]}return ne=p[5],ne&&(se=h[5],h[5]=se?J8(se,ne,p[6]):ne,h[6]=se?uu(h[5],l):p[6]),ne=p[7],ne&&(h[7]=ne),O&A&&(h[8]=h[8]==null?p[8]:xi(h[8],p[8])),h[9]==null&&(h[9]=p[9]),h[0]=p[0],h[1]=W,h}function O1e(h){var p=[];if(h!=null)for(var x in In(h))p.push(x);return p}function N1e(h){return O0.call(h)}function fU(h,p,x){return p=jr(p===t?h.length-1:p,0),function(){for(var O=arguments,W=-1,V=jr(O.length-p,0),Y=ue(V);++W<V;)Y[W]=O[p+W];W=-1;for(var ne=ue(p+1);++W<p;)ne[W]=O[W];return ne[p]=x(Y),js(h,this,ne)}}function pU(h,p){return p.length<2?h:fh(h,_o(p,0,-1))}function L1e(h,p){for(var x=h.length,O=xi(p.length,x),W=cs(h);O--;){var V=p[O];h[O]=tc(V,x)?W[V]:t}return h}function ST(h,p){if(!(p==="constructor"&&typeof h[p]=="function")&&p!="__proto__")return h[p]}var mU=bU(q8),Sb=Xwe||function(h,p){return Yr.setTimeout(h,p)},CT=bU(o1e);function gU(h,p,x){var O=p+"";return CT(h,E1e(O,q1e(k1e(O),x)))}function bU(h){var p=0,x=0;return function(){var O=n0e(),W=E-(O-x);if(x=O,W>0){if(++p>=M)return arguments[0]}else p=0;return h.apply(t,arguments)}}function s1(h,p){var x=-1,O=h.length,W=O-1;for(p=p===t?O:p;++x<p;){var V=sT(x,W),Y=h[V];h[V]=h[x],h[x]=Y}return h.length=p,h}var yU=I1e(function(h){var p=[];return h.charCodeAt(0)===46&&p.push(""),h.replace(EE,function(x,O,W,V){p.push(W?V.replace(Jn,"$1"):O||x)}),p});function Ya(h){if(typeof h=="string"||Bs(h))return h;var p=h+"";return p=="0"&&1/h==-F?"-0":p}function mh(h){if(h!=null){try{return P0.call(h)}catch{}try{return h+""}catch{}}return""}function q1e(h,p){return bo(ee,function(x){var O="_."+x[0];p&x[1]&&!T0(h,O)&&h.push(O)}),h.sort()}function vU(h){if(h instanceof qt)return h.clone();var p=new vo(h.__wrapped__,h.__chain__);return p.__actions__=cs(h.__actions__),p.__index__=h.__index__,p.__values__=h.__values__,p}function $1e(h,p,x){(x?Hi(h,p,x):p===t)?p=1:p=jr(yt(p),0);var O=h==null?0:h.length;if(!O||p<1)return[];for(var W=0,V=0,Y=ue(j0(O/p));W<O;)Y[V++]=_o(h,W,W+=p);return Y}function z1e(h){for(var p=-1,x=h==null?0:h.length,O=0,W=[];++p<x;){var V=h[p];V&&(W[O++]=V)}return W}function j1e(){var h=arguments.length;if(!h)return[];for(var p=ue(h-1),x=arguments[0],O=h;O--;)p[O-1]=arguments[O];return cu(ft(x)?cs(x):[x],ii(p,1))}var W1e=Ft(function(h,p){return gr(h)?gb(h,ii(p,1,gr,!0)):[]}),U1e=Ft(function(h,p){var x=So(p);return gr(x)&&(x=t),gr(h)?gb(h,ii(p,1,gr,!0),Qe(x,2)):[]}),B1e=Ft(function(h,p){var x=So(p);return gr(x)&&(x=t),gr(h)?gb(h,ii(p,1,gr,!0),t,x):[]});function H1e(h,p,x){var O=h==null?0:h.length;return O?(p=x||p===t?1:yt(p),_o(h,p<0?0:p,O)):[]}function V1e(h,p,x){var O=h==null?0:h.length;return O?(p=x||p===t?1:yt(p),p=O-p,_o(h,0,p<0?0:p)):[]}function K1e(h,p){return h&&h.length?Q0(h,Qe(p,3),!0,!0):[]}function G1e(h,p){return h&&h.length?Q0(h,Qe(p,3),!0):[]}function J1e(h,p,x,O){var W=h==null?0:h.length;return W?(x&&typeof x!="number"&&Hi(h,p,x)&&(x=0,O=W),j0e(h,p,x,O)):[]}function wU(h,p,x){var O=h==null?0:h.length;if(!O)return-1;var W=x==null?0:yt(x);return W<0&&(W=jr(O+W,0)),M0(h,Qe(p,3),W)}function _U(h,p,x){var O=h==null?0:h.length;if(!O)return-1;var W=O-1;return x!==t&&(W=yt(x),W=x<0?jr(O+W,0):xi(W,O-1)),M0(h,Qe(p,3),W,!0)}function SU(h){var p=h==null?0:h.length;return p?ii(h,1):[]}function Y1e(h){var p=h==null?0:h.length;return p?ii(h,F):[]}function Q1e(h,p){var x=h==null?0:h.length;return x?(p=p===t?1:yt(p),ii(h,p)):[]}function X1e(h){for(var p=-1,x=h==null?0:h.length,O={};++p<x;){var W=h[p];O[W[0]]=W[1]}return O}function CU(h){return h&&h.length?h[0]:t}function Z1e(h,p,x){var O=h==null?0:h.length;if(!O)return-1;var W=x==null?0:yt(x);return W<0&&(W=jr(O+W,0)),Hf(h,p,W)}function e_e(h){var p=h==null?0:h.length;return p?_o(h,0,-1):[]}var t_e=Ft(function(h){var p=Yn(h,uT);return p.length&&p[0]===h[0]?eT(p):[]}),n_e=Ft(function(h){var p=So(h),x=Yn(h,uT);return p===So(x)?p=t:x.pop(),x.length&&x[0]===h[0]?eT(x,Qe(p,2)):[]}),r_e=Ft(function(h){var p=So(h),x=Yn(h,uT);return p=typeof p=="function"?p:t,p&&x.pop(),x.length&&x[0]===h[0]?eT(x,t,p):[]});function i_e(h,p){return h==null?"":e0e.call(h,p)}function So(h){var p=h==null?0:h.length;return p?h[p-1]:t}function s_e(h,p,x){var O=h==null?0:h.length;if(!O)return-1;var W=O;return x!==t&&(W=yt(x),W=W<0?jr(O+W,0):xi(W,O-1)),p===p?qwe(h,p,W):M0(h,r8,W,!0)}function o_e(h,p){return h&&h.length?P8(h,yt(p)):t}var a_e=Ft(xU);function xU(h,p){return h&&h.length&&p&&p.length?iT(h,p):h}function l_e(h,p,x){return h&&h.length&&p&&p.length?iT(h,p,Qe(x,2)):h}function c_e(h,p,x){return h&&h.length&&p&&p.length?iT(h,p,t,x):h}var u_e=ec(function(h,p){var x=h==null?0:h.length,O=YE(h,p);return L8(h,Yn(p,function(W){return tc(W,x)?+W:W}).sort(K8)),O});function d_e(h,p){var x=[];if(!(h&&h.length))return x;var O=-1,W=[],V=h.length;for(p=Qe(p,3);++O<V;){var Y=h[O];p(Y,O,h)&&(x.push(Y),W.push(O))}return L8(h,W),x}function xT(h){return h==null?h:i0e.call(h)}function h_e(h,p,x){var O=h==null?0:h.length;return O?(x&&typeof x!="number"&&Hi(h,p,x)?(p=0,x=O):(p=p==null?0:yt(p),x=x===t?O:yt(x)),_o(h,p,x)):[]}function f_e(h,p){return Y0(h,p)}function p_e(h,p,x){return aT(h,p,Qe(x,2))}function m_e(h,p){var x=h==null?0:h.length;if(x){var O=Y0(h,p);if(O<x&&fa(h[O],p))return O}return-1}function g_e(h,p){return Y0(h,p,!0)}function b_e(h,p,x){return aT(h,p,Qe(x,2),!0)}function y_e(h,p){var x=h==null?0:h.length;if(x){var O=Y0(h,p,!0)-1;if(fa(h[O],p))return O}return-1}function v_e(h){return h&&h.length?$8(h):[]}function w_e(h,p){return h&&h.length?$8(h,Qe(p,2)):[]}function __e(h){var p=h==null?0:h.length;return p?_o(h,1,p):[]}function S_e(h,p,x){return h&&h.length?(p=x||p===t?1:yt(p),_o(h,0,p<0?0:p)):[]}function C_e(h,p,x){var O=h==null?0:h.length;return O?(p=x||p===t?1:yt(p),p=O-p,_o(h,p<0?0:p,O)):[]}function x_e(h,p){return h&&h.length?Q0(h,Qe(p,3),!1,!0):[]}function k_e(h,p){return h&&h.length?Q0(h,Qe(p,3)):[]}var A_e=Ft(function(h){return pu(ii(h,1,gr,!0))}),F_e=Ft(function(h){var p=So(h);return gr(p)&&(p=t),pu(ii(h,1,gr,!0),Qe(p,2))}),E_e=Ft(function(h){var p=So(h);return p=typeof p=="function"?p:t,pu(ii(h,1,gr,!0),t,p)});function T_e(h){return h&&h.length?pu(h):[]}function M_e(h,p){return h&&h.length?pu(h,Qe(p,2)):[]}function D_e(h,p){return p=typeof p=="function"?p:t,h&&h.length?pu(h,t,p):[]}function kT(h){if(!(h&&h.length))return[];var p=0;return h=lu(h,function(x){if(gr(x))return p=jr(x.length,p),!0}),WE(p,function(x){return Yn(h,$E(x))})}function kU(h,p){if(!(h&&h.length))return[];var x=kT(h);return p==null?x:Yn(x,function(O){return js(p,t,O)})}var R_e=Ft(function(h,p){return gr(h)?gb(h,p):[]}),I_e=Ft(function(h){return cT(lu(h,gr))}),P_e=Ft(function(h){var p=So(h);return gr(p)&&(p=t),cT(lu(h,gr),Qe(p,2))}),O_e=Ft(function(h){var p=So(h);return p=typeof p=="function"?p:t,cT(lu(h,gr),t,p)}),N_e=Ft(kT);function L_e(h,p){return U8(h||[],p||[],mb)}function q_e(h,p){return U8(h||[],p||[],vb)}var $_e=Ft(function(h){var p=h.length,x=p>1?h[p-1]:t;return x=typeof x=="function"?(h.pop(),x):t,kU(h,x)});function AU(h){var p=H(h);return p.__chain__=!0,p}function z_e(h,p){return p(h),h}function o1(h,p){return p(h)}var j_e=ec(function(h){var p=h.length,x=p?h[0]:0,O=this.__wrapped__,W=function(V){return YE(V,h)};return p>1||this.__actions__.length||!(O instanceof qt)||!tc(x)?this.thru(W):(O=O.slice(x,+x+(p?1:0)),O.__actions__.push({func:o1,args:[W],thisArg:t}),new vo(O,this.__chain__).thru(function(V){return p&&!V.length&&V.push(t),V}))});function W_e(){return AU(this)}function U_e(){return new vo(this.value(),this.__chain__)}function B_e(){this.__values__===t&&(this.__values__=zU(this.value()));var h=this.__index__>=this.__values__.length,p=h?t:this.__values__[this.__index__++];return{done:h,value:p}}function H_e(){return this}function V_e(h){for(var p,x=this;x instanceof H0;){var O=vU(x);O.__index__=0,O.__values__=t,p?W.__wrapped__=O:p=O;var W=O;x=x.__wrapped__}return W.__wrapped__=h,p}function K_e(){var h=this.__wrapped__;if(h instanceof qt){var p=h;return this.__actions__.length&&(p=new qt(this)),p=p.reverse(),p.__actions__.push({func:o1,args:[xT],thisArg:t}),new vo(p,this.__chain__)}return this.thru(xT)}function G_e(){return W8(this.__wrapped__,this.__actions__)}var J_e=X0(function(h,p,x){xn.call(h,x)?++h[x]:Xl(h,x,1)});function Y_e(h,p,x){var O=ft(h)?t8:z0e;return x&&Hi(h,p,x)&&(p=t),O(h,Qe(p,3))}function Q_e(h,p){var x=ft(h)?lu:k8;return x(h,Qe(p,3))}var X_e=Z8(wU),Z_e=Z8(_U);function eSe(h,p){return ii(a1(h,p),1)}function tSe(h,p){return ii(a1(h,p),F)}function nSe(h,p,x){return x=x===t?1:yt(x),ii(a1(h,p),x)}function FU(h,p){var x=ft(h)?bo:fu;return x(h,Qe(p,3))}function EU(h,p){var x=ft(h)?_we:x8;return x(h,Qe(p,3))}var rSe=X0(function(h,p,x){xn.call(h,x)?h[x].push(p):Xl(h,x,[p])});function iSe(h,p,x,O){h=us(h)?h:np(h),x=x&&!O?yt(x):0;var W=h.length;return x<0&&(x=jr(W+x,0)),h1(h)?x<=W&&h.indexOf(p,x)>-1:!!W&&Hf(h,p,x)>-1}var sSe=Ft(function(h,p,x){var O=-1,W=typeof p=="function",V=us(h)?ue(h.length):[];return fu(h,function(Y){V[++O]=W?js(p,Y,x):bb(Y,p,x)}),V}),oSe=X0(function(h,p,x){Xl(h,x,p)});function a1(h,p){var x=ft(h)?Yn:D8;return x(h,Qe(p,3))}function aSe(h,p,x,O){return h==null?[]:(ft(p)||(p=p==null?[]:[p]),x=O?t:x,ft(x)||(x=x==null?[]:[x]),O8(h,p,x))}var lSe=X0(function(h,p,x){h[x?0:1].push(p)},function(){return[[],[]]});function cSe(h,p,x){var O=ft(h)?LE:s8,W=arguments.length<3;return O(h,Qe(p,4),x,W,fu)}function uSe(h,p,x){var O=ft(h)?Swe:s8,W=arguments.length<3;return O(h,Qe(p,4),x,W,x8)}function dSe(h,p){var x=ft(h)?lu:k8;return x(h,u1(Qe(p,3)))}function hSe(h){var p=ft(h)?w8:i1e;return p(h)}function fSe(h,p,x){(x?Hi(h,p,x):p===t)?p=1:p=yt(p);var O=ft(h)?O0e:s1e;return O(h,p)}function pSe(h){var p=ft(h)?N0e:a1e;return p(h)}function mSe(h){if(h==null)return 0;if(us(h))return h1(h)?Kf(h):h.length;var p=ki(h);return p==Re||p==Vt?h.size:nT(h).length}function gSe(h,p,x){var O=ft(h)?qE:l1e;return x&&Hi(h,p,x)&&(p=t),O(h,Qe(p,3))}var bSe=Ft(function(h,p){if(h==null)return[];var x=p.length;return x>1&&Hi(h,p[0],p[1])?p=[]:x>2&&Hi(p[0],p[1],p[2])&&(p=[p[0]]),O8(h,ii(p,1),[])}),l1=Qwe||function(){return Yr.Date.now()};function ySe(h,p){if(typeof p!="function")throw new yo(i);return h=yt(h),function(){if(--h<1)return p.apply(this,arguments)}}function TU(h,p,x){return p=x?t:p,p=h&&p==null?h.length:p,Zl(h,A,t,t,t,t,p)}function MU(h,p){var x;if(typeof p!="function")throw new yo(i);return h=yt(h),function(){return--h>0&&(x=p.apply(this,arguments)),h<=1&&(p=t),x}}var AT=Ft(function(h,p,x){var O=b;if(x.length){var W=uu(x,ep(AT));O|=v}return Zl(h,O,p,x,W)}),DU=Ft(function(h,p,x){var O=b|g;if(x.length){var W=uu(x,ep(DU));O|=v}return Zl(p,O,h,x,W)});function RU(h,p,x){p=x?t:p;var O=Zl(h,_,t,t,t,t,t,p);return O.placeholder=RU.placeholder,O}function IU(h,p,x){p=x?t:p;var O=Zl(h,S,t,t,t,t,t,p);return O.placeholder=IU.placeholder,O}function PU(h,p,x){var O,W,V,Y,ne,se,ge=0,ye=!1,_e=!1,Oe=!0;if(typeof h!="function")throw new yo(i);p=Co(p)||0,nr(x)&&(ye=!!x.leading,_e="maxWait"in x,V=_e?jr(Co(x.maxWait)||0,p):V,Oe="trailing"in x?!!x.trailing:Oe);function Be(br){var pa=O,ic=W;return O=W=t,ge=br,Y=h.apply(ic,pa),Y}function Ze(br){return ge=br,ne=Sb(Ot,p),ye?Be(br):Y}function Ct(br){var pa=br-se,ic=br-ge,ZU=p-pa;return _e?xi(ZU,V-ic):ZU}function et(br){var pa=br-se,ic=br-ge;return se===t||pa>=p||pa<0||_e&&ic>=V}function Ot(){var br=l1();if(et(br))return jt(br);ne=Sb(Ot,Ct(br))}function jt(br){return ne=t,Oe&&O?Be(br):(O=W=t,Y)}function Hs(){ne!==t&&B8(ne),ge=0,O=se=W=ne=t}function Vi(){return ne===t?Y:jt(l1())}function Vs(){var br=l1(),pa=et(br);if(O=arguments,W=this,se=br,pa){if(ne===t)return Ze(se);if(_e)return B8(ne),ne=Sb(Ot,p),Be(se)}return ne===t&&(ne=Sb(Ot,p)),Y}return Vs.cancel=Hs,Vs.flush=Vi,Vs}var vSe=Ft(function(h,p){return C8(h,1,p)}),wSe=Ft(function(h,p,x){return C8(h,Co(p)||0,x)});function _Se(h){return Zl(h,k)}function c1(h,p){if(typeof h!="function"||p!=null&&typeof p!="function")throw new yo(i);var x=function(){var O=arguments,W=p?p.apply(this,O):O[0],V=x.cache;if(V.has(W))return V.get(W);var Y=h.apply(this,O);return x.cache=V.set(W,Y)||V,Y};return x.cache=new(c1.Cache||Ql),x}c1.Cache=Ql;function u1(h){if(typeof h!="function")throw new yo(i);return function(){var p=arguments;switch(p.length){case 0:return!h.call(this);case 1:return!h.call(this,p[0]);case 2:return!h.call(this,p[0],p[1]);case 3:return!h.call(this,p[0],p[1],p[2])}return!h.apply(this,p)}}function SSe(h){return MU(2,h)}var CSe=c1e(function(h,p){p=p.length==1&&ft(p[0])?Yn(p[0],Ws(Qe())):Yn(ii(p,1),Ws(Qe()));var x=p.length;return Ft(function(O){for(var W=-1,V=xi(O.length,x);++W<V;)O[W]=p[W].call(this,O[W]);return js(h,this,O)})}),FT=Ft(function(h,p){var x=uu(p,ep(FT));return Zl(h,v,t,p,x)}),OU=Ft(function(h,p){var x=uu(p,ep(OU));return Zl(h,T,t,p,x)}),xSe=ec(function(h,p){return Zl(h,R,t,t,t,p)});function kSe(h,p){if(typeof h!="function")throw new yo(i);return p=p===t?p:yt(p),Ft(h,p)}function ASe(h,p){if(typeof h!="function")throw new yo(i);return p=p==null?0:jr(yt(p),0),Ft(function(x){var O=x[p],W=gu(x,0,p);return O&&cu(W,O),js(h,this,W)})}function FSe(h,p,x){var O=!0,W=!0;if(typeof h!="function")throw new yo(i);return nr(x)&&(O="leading"in x?!!x.leading:O,W="trailing"in x?!!x.trailing:W),PU(h,p,{leading:O,maxWait:p,trailing:W})}function ESe(h){return TU(h,1)}function TSe(h,p){return FT(dT(p),h)}function MSe(){if(!arguments.length)return[];var h=arguments[0];return ft(h)?h:[h]}function DSe(h){return wo(h,d)}function RSe(h,p){return p=typeof p=="function"?p:t,wo(h,d,p)}function ISe(h){return wo(h,c|d)}function PSe(h,p){return p=typeof p=="function"?p:t,wo(h,c|d,p)}function OSe(h,p){return p==null||S8(h,p,Qr(p))}function fa(h,p){return h===p||h!==h&&p!==p}var NSe=n1(ZE),LSe=n1(function(h,p){return h>=p}),gh=E8(function(){return arguments}())?E8:function(h){return sr(h)&&xn.call(h,"callee")&&!p8.call(h,"callee")},ft=ue.isArray,qSe=JW?Ws(JW):V0e;function us(h){return h!=null&&d1(h.length)&&!nc(h)}function gr(h){return sr(h)&&us(h)}function $Se(h){return h===!0||h===!1||sr(h)&&Bi(h)==ke}var bu=Zwe||qT,zSe=YW?Ws(YW):K0e;function jSe(h){return sr(h)&&h.nodeType===1&&!Cb(h)}function WSe(h){if(h==null)return!0;if(us(h)&&(ft(h)||typeof h=="string"||typeof h.splice=="function"||bu(h)||tp(h)||gh(h)))return!h.length;var p=ki(h);if(p==Re||p==Vt)return!h.size;if(_b(h))return!nT(h).length;for(var x in h)if(xn.call(h,x))return!1;return!0}function USe(h,p){return yb(h,p)}function BSe(h,p,x){x=typeof x=="function"?x:t;var O=x?x(h,p):t;return O===t?yb(h,p,t,x):!!O}function ET(h){if(!sr(h))return!1;var p=Bi(h);return p==we||p==St||typeof h.message=="string"&&typeof h.name=="string"&&!Cb(h)}function HSe(h){return typeof h=="number"&&g8(h)}function nc(h){if(!nr(h))return!1;var p=Bi(h);return p==Ne||p==me||p==De||p==pr}function NU(h){return typeof h=="number"&&h==yt(h)}function d1(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=P}function nr(h){var p=typeof h;return h!=null&&(p=="object"||p=="function")}function sr(h){return h!=null&&typeof h=="object"}var LU=QW?Ws(QW):J0e;function VSe(h,p){return h===p||tT(h,p,yT(p))}function KSe(h,p,x){return x=typeof x=="function"?x:t,tT(h,p,yT(p),x)}function GSe(h){return qU(h)&&h!=+h}function JSe(h){if(R1e(h))throw new ut(r);return T8(h)}function YSe(h){return h===null}function QSe(h){return h==null}function qU(h){return typeof h=="number"||sr(h)&&Bi(h)==it}function Cb(h){if(!sr(h)||Bi(h)!=lt)return!1;var p=q0(h);if(p===null)return!0;var x=xn.call(p,"constructor")&&p.constructor;return typeof x=="function"&&x instanceof x&&P0.call(x)==Kwe}var TT=XW?Ws(XW):Y0e;function XSe(h){return NU(h)&&h>=-P&&h<=P}var $U=ZW?Ws(ZW):Q0e;function h1(h){return typeof h=="string"||!ft(h)&&sr(h)&&Bi(h)==mr}function Bs(h){return typeof h=="symbol"||sr(h)&&Bi(h)==Wi}var tp=e8?Ws(e8):X0e;function ZSe(h){return h===t}function eCe(h){return sr(h)&&ki(h)==Jr}function tCe(h){return sr(h)&&Bi(h)==ah}var nCe=n1(rT),rCe=n1(function(h,p){return h<=p});function zU(h){if(!h)return[];if(us(h))return h1(h)?da(h):cs(h);if(ub&&h[ub])return Owe(h[ub]());var p=ki(h),x=p==Re?BE:p==Vt?D0:np;return x(h)}function rc(h){if(!h)return h===0?h:0;if(h=Co(h),h===F||h===-F){var p=h<0?-1:1;return p*L}return h===h?h:0}function yt(h){var p=rc(h),x=p%1;return p===p?x?p-x:p:0}function jU(h){return h?hh(yt(h),0,z):0}function Co(h){if(typeof h=="number")return h;if(Bs(h))return j;if(nr(h)){var p=typeof h.valueOf=="function"?h.valueOf():h;h=nr(p)?p+"":p}if(typeof h!="string")return h===0?h:+h;h=o8(h);var x=ua.test(h);return x||au.test(h)?ywe(h.slice(2),x?2:8):zs.test(h)?j:+h}function WU(h){return Ja(h,ds(h))}function iCe(h){return h?hh(yt(h),-P,P):h===0?h:0}function bn(h){return h==null?"":Us(h)}var sCe=Xf(function(h,p){if(_b(p)||us(p)){Ja(p,Qr(p),h);return}for(var x in p)xn.call(p,x)&&mb(h,x,p[x])}),UU=Xf(function(h,p){Ja(p,ds(p),h)}),f1=Xf(function(h,p,x,O){Ja(p,ds(p),h,O)}),oCe=Xf(function(h,p,x,O){Ja(p,Qr(p),h,O)}),aCe=ec(YE);function lCe(h,p){var x=Qf(h);return p==null?x:_8(x,p)}var cCe=Ft(function(h,p){h=In(h);var x=-1,O=p.length,W=O>2?p[2]:t;for(W&&Hi(p[0],p[1],W)&&(O=1);++x<O;)for(var V=p[x],Y=ds(V),ne=-1,se=Y.length;++ne<se;){var ge=Y[ne],ye=h[ge];(ye===t||fa(ye,Gf[ge])&&!xn.call(h,ge))&&(h[ge]=V[ge])}return h}),uCe=Ft(function(h){return h.push(t,oU),js(BU,t,h)});function dCe(h,p){return n8(h,Qe(p,3),Ga)}function hCe(h,p){return n8(h,Qe(p,3),XE)}function fCe(h,p){return h==null?h:QE(h,Qe(p,3),ds)}function pCe(h,p){return h==null?h:A8(h,Qe(p,3),ds)}function mCe(h,p){return h&&Ga(h,Qe(p,3))}function gCe(h,p){return h&&XE(h,Qe(p,3))}function bCe(h){return h==null?[]:G0(h,Qr(h))}function yCe(h){return h==null?[]:G0(h,ds(h))}function MT(h,p,x){var O=h==null?t:fh(h,p);return O===t?x:O}function vCe(h,p){return h!=null&&cU(h,p,W0e)}function DT(h,p){return h!=null&&cU(h,p,U0e)}var wCe=tU(function(h,p,x){p!=null&&typeof p.toString!="function"&&(p=O0.call(p)),h[p]=x},IT(hs)),_Ce=tU(function(h,p,x){p!=null&&typeof p.toString!="function"&&(p=O0.call(p)),xn.call(h,p)?h[p].push(x):h[p]=[x]},Qe),SCe=Ft(bb);function Qr(h){return us(h)?v8(h):nT(h)}function ds(h){return us(h)?v8(h,!0):Z0e(h)}function CCe(h,p){var x={};return p=Qe(p,3),Ga(h,function(O,W,V){Xl(x,p(O,W,V),O)}),x}function xCe(h,p){var x={};return p=Qe(p,3),Ga(h,function(O,W,V){Xl(x,W,p(O,W,V))}),x}var kCe=Xf(function(h,p,x){J0(h,p,x)}),BU=Xf(function(h,p,x,O){J0(h,p,x,O)}),ACe=ec(function(h,p){var x={};if(h==null)return x;var O=!1;p=Yn(p,function(V){return V=mu(V,h),O||(O=V.length>1),V}),Ja(h,gT(h),x),O&&(x=wo(x,c|u|d,w1e));for(var W=p.length;W--;)lT(x,p[W]);return x});function FCe(h,p){return HU(h,u1(Qe(p)))}var ECe=ec(function(h,p){return h==null?{}:t1e(h,p)});function HU(h,p){if(h==null)return{};var x=Yn(gT(h),function(O){return[O]});return p=Qe(p),N8(h,x,function(O,W){return p(O,W[0])})}function TCe(h,p,x){p=mu(p,h);var O=-1,W=p.length;for(W||(W=1,h=t);++O<W;){var V=h==null?t:h[Ya(p[O])];V===t&&(O=W,V=x),h=nc(V)?V.call(h):V}return h}function MCe(h,p,x){return h==null?h:vb(h,p,x)}function DCe(h,p,x,O){return O=typeof O=="function"?O:t,h==null?h:vb(h,p,x,O)}var VU=iU(Qr),KU=iU(ds);function RCe(h,p,x){var O=ft(h),W=O||bu(h)||tp(h);if(p=Qe(p,4),x==null){var V=h&&h.constructor;W?x=O?new V:[]:nr(h)?x=nc(V)?Qf(q0(h)):{}:x={}}return(W?bo:Ga)(h,function(Y,ne,se){return p(x,Y,ne,se)}),x}function ICe(h,p){return h==null?!0:lT(h,p)}function PCe(h,p,x){return h==null?h:j8(h,p,dT(x))}function OCe(h,p,x,O){return O=typeof O=="function"?O:t,h==null?h:j8(h,p,dT(x),O)}function np(h){return h==null?[]:UE(h,Qr(h))}function NCe(h){return h==null?[]:UE(h,ds(h))}function LCe(h,p,x){return x===t&&(x=p,p=t),x!==t&&(x=Co(x),x=x===x?x:0),p!==t&&(p=Co(p),p=p===p?p:0),hh(Co(h),p,x)}function qCe(h,p,x){return p=rc(p),x===t?(x=p,p=0):x=rc(x),h=Co(h),B0e(h,p,x)}function $Ce(h,p,x){if(x&&typeof x!="boolean"&&Hi(h,p,x)&&(p=x=t),x===t&&(typeof p=="boolean"?(x=p,p=t):typeof h=="boolean"&&(x=h,h=t)),h===t&&p===t?(h=0,p=1):(h=rc(h),p===t?(p=h,h=0):p=rc(p)),h>p){var O=h;h=p,p=O}if(x||h%1||p%1){var W=b8();return xi(h+W*(p-h+bwe("1e-"+((W+"").length-1))),p)}return sT(h,p)}var zCe=Zf(function(h,p,x){return p=p.toLowerCase(),h+(x?GU(p):p)});function GU(h){return RT(bn(h).toLowerCase())}function JU(h){return h=bn(h),h&&h.replace(k0,Mwe).replace(awe,"")}function jCe(h,p,x){h=bn(h),p=Us(p);var O=h.length;x=x===t?O:hh(yt(x),0,O);var W=x;return x-=p.length,x>=0&&h.slice(x,W)==p}function WCe(h){return h=bn(h),h&&Ui.test(h)?h.replace($n,Dwe):h}function UCe(h){return h=bn(h),h&&B.test(h)?h.replace(ae,"\\$&"):h}var BCe=Zf(function(h,p,x){return h+(x?"-":"")+p.toLowerCase()}),HCe=Zf(function(h,p,x){return h+(x?" ":"")+p.toLowerCase()}),VCe=X8("toLowerCase");function KCe(h,p,x){h=bn(h),p=yt(p);var O=p?Kf(h):0;if(!p||O>=p)return h;var W=(p-O)/2;return t1(W0(W),x)+h+t1(j0(W),x)}function GCe(h,p,x){h=bn(h),p=yt(p);var O=p?Kf(h):0;return p&&O<p?h+t1(p-O,x):h}function JCe(h,p,x){h=bn(h),p=yt(p);var O=p?Kf(h):0;return p&&O<p?t1(p-O,x)+h:h}function YCe(h,p,x){return x||p==null?p=0:p&&(p=+p),r0e(bn(h).replace(te,""),p||0)}function QCe(h,p,x){return(x?Hi(h,p,x):p===t)?p=1:p=yt(p),oT(bn(h),p)}function XCe(){var h=arguments,p=bn(h[0]);return h.length<3?p:p.replace(h[1],h[2])}var ZCe=Zf(function(h,p,x){return h+(x?"_":"")+p.toLowerCase()});function e2e(h,p,x){return x&&typeof x!="number"&&Hi(h,p,x)&&(p=x=t),x=x===t?z:x>>>0,x?(h=bn(h),h&&(typeof p=="string"||p!=null&&!TT(p))&&(p=Us(p),!p&&Vf(h))?gu(da(h),0,x):h.split(p,x)):[]}var t2e=Zf(function(h,p,x){return h+(x?" ":"")+RT(p)});function n2e(h,p,x){return h=bn(h),x=x==null?0:hh(yt(x),0,h.length),p=Us(p),h.slice(x,x+p.length)==p}function r2e(h,p,x){var O=H.templateSettings;x&&Hi(h,p,x)&&(p=t),h=bn(h),p=f1({},p,O,sU);var W=f1({},p.imports,O.imports,sU),V=Qr(W),Y=UE(W,V),ne,se,ge=0,ye=p.interpolate||A0,_e="__p += '",Oe=HE((p.escape||A0).source+"|"+ye.source+"|"+(ye===lb?Fn:A0).source+"|"+(p.evaluate||A0).source+"|$","g"),Be="//# sourceURL="+(xn.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hwe+"]")+`
|
|
1043
|
+
`)}function T1e(h){return ft(h)||gh(h)||!!(m8&&h&&h[m8])}function tc(h,p){var x=typeof h;return p=p??P,!!p&&(x=="number"||x!="symbol"&&Uf.test(h))&&h>-1&&h%1==0&&h<p}function Hi(h,p,x){if(!nr(x))return!1;var O=typeof p;return(O=="number"?us(x)&&tc(p,x.length):O=="string"&&p in x)?fa(x[p],h):!1}function wT(h,p){if(ft(h))return!1;var x=typeof h;return x=="number"||x=="symbol"||x=="boolean"||h==null||Bs(h)?!0:x0.test(h)||!C0.test(h)||p!=null&&h in In(p)}function M1e(h){var p=typeof h;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?h!=="__proto__":h===null}function _T(h){var p=r1(h),x=H[p];if(typeof x!="function"||!(p in qt.prototype))return!1;if(h===x)return!0;var O=bT(x);return!!O&&h===O[0]}function D1e(h){return!!d8&&d8 in h}var R1e=I0?nc:qT;function _b(h){var p=h&&h.constructor,x=typeof p=="function"&&p.prototype||Gf;return h===x}function d7(h){return h===h&&!nr(h)}function h7(h,p){return function(x){return x==null?!1:x[h]===p&&(p!==t||h in In(x))}}function I1e(h){var p=c1(h,function(O){return x.size===a&&x.clear(),O}),x=p.cache;return p}function P1e(h,p){var x=h[1],O=p[1],W=x|O,V=W<(b|g|A),Y=O==A&&x==_||O==A&&x==R&&h[7].length<=p[8]||O==(A|R)&&p[7].length<=p[8]&&x==_;if(!(V||Y))return h;O&b&&(h[2]=p[2],W|=x&b?0:w);var ne=p[3];if(ne){var se=h[3];h[3]=se?G8(se,ne,p[4]):ne,h[4]=se?uu(h[3],l):p[4]}return ne=p[5],ne&&(se=h[5],h[5]=se?J8(se,ne,p[6]):ne,h[6]=se?uu(h[5],l):p[6]),ne=p[7],ne&&(h[7]=ne),O&A&&(h[8]=h[8]==null?p[8]:xi(h[8],p[8])),h[9]==null&&(h[9]=p[9]),h[0]=p[0],h[1]=W,h}function O1e(h){var p=[];if(h!=null)for(var x in In(h))p.push(x);return p}function N1e(h){return O0.call(h)}function f7(h,p,x){return p=jr(p===t?h.length-1:p,0),function(){for(var O=arguments,W=-1,V=jr(O.length-p,0),Y=ue(V);++W<V;)Y[W]=O[p+W];W=-1;for(var ne=ue(p+1);++W<p;)ne[W]=O[W];return ne[p]=x(Y),js(h,this,ne)}}function p7(h,p){return p.length<2?h:fh(h,_o(p,0,-1))}function L1e(h,p){for(var x=h.length,O=xi(p.length,x),W=cs(h);O--;){var V=p[O];h[O]=tc(V,x)?W[V]:t}return h}function ST(h,p){if(!(p==="constructor"&&typeof h[p]=="function")&&p!="__proto__")return h[p]}var m7=b7(q8),Sb=Xwe||function(h,p){return Yr.setTimeout(h,p)},CT=b7(o1e);function g7(h,p,x){var O=p+"";return CT(h,E1e(O,q1e(k1e(O),x)))}function b7(h){var p=0,x=0;return function(){var O=n0e(),W=E-(O-x);if(x=O,W>0){if(++p>=M)return arguments[0]}else p=0;return h.apply(t,arguments)}}function s1(h,p){var x=-1,O=h.length,W=O-1;for(p=p===t?O:p;++x<p;){var V=sT(x,W),Y=h[V];h[V]=h[x],h[x]=Y}return h.length=p,h}var y7=I1e(function(h){var p=[];return h.charCodeAt(0)===46&&p.push(""),h.replace(EE,function(x,O,W,V){p.push(W?V.replace(Jn,"$1"):O||x)}),p});function Ya(h){if(typeof h=="string"||Bs(h))return h;var p=h+"";return p=="0"&&1/h==-F?"-0":p}function mh(h){if(h!=null){try{return P0.call(h)}catch{}try{return h+""}catch{}}return""}function q1e(h,p){return bo(ee,function(x){var O="_."+x[0];p&x[1]&&!T0(h,O)&&h.push(O)}),h.sort()}function v7(h){if(h instanceof qt)return h.clone();var p=new vo(h.__wrapped__,h.__chain__);return p.__actions__=cs(h.__actions__),p.__index__=h.__index__,p.__values__=h.__values__,p}function $1e(h,p,x){(x?Hi(h,p,x):p===t)?p=1:p=jr(yt(p),0);var O=h==null?0:h.length;if(!O||p<1)return[];for(var W=0,V=0,Y=ue(j0(O/p));W<O;)Y[V++]=_o(h,W,W+=p);return Y}function z1e(h){for(var p=-1,x=h==null?0:h.length,O=0,W=[];++p<x;){var V=h[p];V&&(W[O++]=V)}return W}function j1e(){var h=arguments.length;if(!h)return[];for(var p=ue(h-1),x=arguments[0],O=h;O--;)p[O-1]=arguments[O];return cu(ft(x)?cs(x):[x],ii(p,1))}var W1e=Ft(function(h,p){return gr(h)?gb(h,ii(p,1,gr,!0)):[]}),U1e=Ft(function(h,p){var x=So(p);return gr(x)&&(x=t),gr(h)?gb(h,ii(p,1,gr,!0),Qe(x,2)):[]}),B1e=Ft(function(h,p){var x=So(p);return gr(x)&&(x=t),gr(h)?gb(h,ii(p,1,gr,!0),t,x):[]});function H1e(h,p,x){var O=h==null?0:h.length;return O?(p=x||p===t?1:yt(p),_o(h,p<0?0:p,O)):[]}function V1e(h,p,x){var O=h==null?0:h.length;return O?(p=x||p===t?1:yt(p),p=O-p,_o(h,0,p<0?0:p)):[]}function K1e(h,p){return h&&h.length?Q0(h,Qe(p,3),!0,!0):[]}function G1e(h,p){return h&&h.length?Q0(h,Qe(p,3),!0):[]}function J1e(h,p,x,O){var W=h==null?0:h.length;return W?(x&&typeof x!="number"&&Hi(h,p,x)&&(x=0,O=W),j0e(h,p,x,O)):[]}function w7(h,p,x){var O=h==null?0:h.length;if(!O)return-1;var W=x==null?0:yt(x);return W<0&&(W=jr(O+W,0)),M0(h,Qe(p,3),W)}function _7(h,p,x){var O=h==null?0:h.length;if(!O)return-1;var W=O-1;return x!==t&&(W=yt(x),W=x<0?jr(O+W,0):xi(W,O-1)),M0(h,Qe(p,3),W,!0)}function S7(h){var p=h==null?0:h.length;return p?ii(h,1):[]}function Y1e(h){var p=h==null?0:h.length;return p?ii(h,F):[]}function Q1e(h,p){var x=h==null?0:h.length;return x?(p=p===t?1:yt(p),ii(h,p)):[]}function X1e(h){for(var p=-1,x=h==null?0:h.length,O={};++p<x;){var W=h[p];O[W[0]]=W[1]}return O}function C7(h){return h&&h.length?h[0]:t}function Z1e(h,p,x){var O=h==null?0:h.length;if(!O)return-1;var W=x==null?0:yt(x);return W<0&&(W=jr(O+W,0)),Hf(h,p,W)}function e_e(h){var p=h==null?0:h.length;return p?_o(h,0,-1):[]}var t_e=Ft(function(h){var p=Yn(h,uT);return p.length&&p[0]===h[0]?eT(p):[]}),n_e=Ft(function(h){var p=So(h),x=Yn(h,uT);return p===So(x)?p=t:x.pop(),x.length&&x[0]===h[0]?eT(x,Qe(p,2)):[]}),r_e=Ft(function(h){var p=So(h),x=Yn(h,uT);return p=typeof p=="function"?p:t,p&&x.pop(),x.length&&x[0]===h[0]?eT(x,t,p):[]});function i_e(h,p){return h==null?"":e0e.call(h,p)}function So(h){var p=h==null?0:h.length;return p?h[p-1]:t}function s_e(h,p,x){var O=h==null?0:h.length;if(!O)return-1;var W=O;return x!==t&&(W=yt(x),W=W<0?jr(O+W,0):xi(W,O-1)),p===p?qwe(h,p,W):M0(h,r8,W,!0)}function o_e(h,p){return h&&h.length?P8(h,yt(p)):t}var a_e=Ft(x7);function x7(h,p){return h&&h.length&&p&&p.length?iT(h,p):h}function l_e(h,p,x){return h&&h.length&&p&&p.length?iT(h,p,Qe(x,2)):h}function c_e(h,p,x){return h&&h.length&&p&&p.length?iT(h,p,t,x):h}var u_e=ec(function(h,p){var x=h==null?0:h.length,O=YE(h,p);return L8(h,Yn(p,function(W){return tc(W,x)?+W:W}).sort(K8)),O});function d_e(h,p){var x=[];if(!(h&&h.length))return x;var O=-1,W=[],V=h.length;for(p=Qe(p,3);++O<V;){var Y=h[O];p(Y,O,h)&&(x.push(Y),W.push(O))}return L8(h,W),x}function xT(h){return h==null?h:i0e.call(h)}function h_e(h,p,x){var O=h==null?0:h.length;return O?(x&&typeof x!="number"&&Hi(h,p,x)?(p=0,x=O):(p=p==null?0:yt(p),x=x===t?O:yt(x)),_o(h,p,x)):[]}function f_e(h,p){return Y0(h,p)}function p_e(h,p,x){return aT(h,p,Qe(x,2))}function m_e(h,p){var x=h==null?0:h.length;if(x){var O=Y0(h,p);if(O<x&&fa(h[O],p))return O}return-1}function g_e(h,p){return Y0(h,p,!0)}function b_e(h,p,x){return aT(h,p,Qe(x,2),!0)}function y_e(h,p){var x=h==null?0:h.length;if(x){var O=Y0(h,p,!0)-1;if(fa(h[O],p))return O}return-1}function v_e(h){return h&&h.length?$8(h):[]}function w_e(h,p){return h&&h.length?$8(h,Qe(p,2)):[]}function __e(h){var p=h==null?0:h.length;return p?_o(h,1,p):[]}function S_e(h,p,x){return h&&h.length?(p=x||p===t?1:yt(p),_o(h,0,p<0?0:p)):[]}function C_e(h,p,x){var O=h==null?0:h.length;return O?(p=x||p===t?1:yt(p),p=O-p,_o(h,p<0?0:p,O)):[]}function x_e(h,p){return h&&h.length?Q0(h,Qe(p,3),!1,!0):[]}function k_e(h,p){return h&&h.length?Q0(h,Qe(p,3)):[]}var A_e=Ft(function(h){return pu(ii(h,1,gr,!0))}),F_e=Ft(function(h){var p=So(h);return gr(p)&&(p=t),pu(ii(h,1,gr,!0),Qe(p,2))}),E_e=Ft(function(h){var p=So(h);return p=typeof p=="function"?p:t,pu(ii(h,1,gr,!0),t,p)});function T_e(h){return h&&h.length?pu(h):[]}function M_e(h,p){return h&&h.length?pu(h,Qe(p,2)):[]}function D_e(h,p){return p=typeof p=="function"?p:t,h&&h.length?pu(h,t,p):[]}function kT(h){if(!(h&&h.length))return[];var p=0;return h=lu(h,function(x){if(gr(x))return p=jr(x.length,p),!0}),WE(p,function(x){return Yn(h,$E(x))})}function k7(h,p){if(!(h&&h.length))return[];var x=kT(h);return p==null?x:Yn(x,function(O){return js(p,t,O)})}var R_e=Ft(function(h,p){return gr(h)?gb(h,p):[]}),I_e=Ft(function(h){return cT(lu(h,gr))}),P_e=Ft(function(h){var p=So(h);return gr(p)&&(p=t),cT(lu(h,gr),Qe(p,2))}),O_e=Ft(function(h){var p=So(h);return p=typeof p=="function"?p:t,cT(lu(h,gr),t,p)}),N_e=Ft(kT);function L_e(h,p){return U8(h||[],p||[],mb)}function q_e(h,p){return U8(h||[],p||[],vb)}var $_e=Ft(function(h){var p=h.length,x=p>1?h[p-1]:t;return x=typeof x=="function"?(h.pop(),x):t,k7(h,x)});function A7(h){var p=H(h);return p.__chain__=!0,p}function z_e(h,p){return p(h),h}function o1(h,p){return p(h)}var j_e=ec(function(h){var p=h.length,x=p?h[0]:0,O=this.__wrapped__,W=function(V){return YE(V,h)};return p>1||this.__actions__.length||!(O instanceof qt)||!tc(x)?this.thru(W):(O=O.slice(x,+x+(p?1:0)),O.__actions__.push({func:o1,args:[W],thisArg:t}),new vo(O,this.__chain__).thru(function(V){return p&&!V.length&&V.push(t),V}))});function W_e(){return A7(this)}function U_e(){return new vo(this.value(),this.__chain__)}function B_e(){this.__values__===t&&(this.__values__=z7(this.value()));var h=this.__index__>=this.__values__.length,p=h?t:this.__values__[this.__index__++];return{done:h,value:p}}function H_e(){return this}function V_e(h){for(var p,x=this;x instanceof H0;){var O=v7(x);O.__index__=0,O.__values__=t,p?W.__wrapped__=O:p=O;var W=O;x=x.__wrapped__}return W.__wrapped__=h,p}function K_e(){var h=this.__wrapped__;if(h instanceof qt){var p=h;return this.__actions__.length&&(p=new qt(this)),p=p.reverse(),p.__actions__.push({func:o1,args:[xT],thisArg:t}),new vo(p,this.__chain__)}return this.thru(xT)}function G_e(){return W8(this.__wrapped__,this.__actions__)}var J_e=X0(function(h,p,x){xn.call(h,x)?++h[x]:Xl(h,x,1)});function Y_e(h,p,x){var O=ft(h)?t8:z0e;return x&&Hi(h,p,x)&&(p=t),O(h,Qe(p,3))}function Q_e(h,p){var x=ft(h)?lu:k8;return x(h,Qe(p,3))}var X_e=Z8(w7),Z_e=Z8(_7);function eSe(h,p){return ii(a1(h,p),1)}function tSe(h,p){return ii(a1(h,p),F)}function nSe(h,p,x){return x=x===t?1:yt(x),ii(a1(h,p),x)}function F7(h,p){var x=ft(h)?bo:fu;return x(h,Qe(p,3))}function E7(h,p){var x=ft(h)?_we:x8;return x(h,Qe(p,3))}var rSe=X0(function(h,p,x){xn.call(h,x)?h[x].push(p):Xl(h,x,[p])});function iSe(h,p,x,O){h=us(h)?h:np(h),x=x&&!O?yt(x):0;var W=h.length;return x<0&&(x=jr(W+x,0)),h1(h)?x<=W&&h.indexOf(p,x)>-1:!!W&&Hf(h,p,x)>-1}var sSe=Ft(function(h,p,x){var O=-1,W=typeof p=="function",V=us(h)?ue(h.length):[];return fu(h,function(Y){V[++O]=W?js(p,Y,x):bb(Y,p,x)}),V}),oSe=X0(function(h,p,x){Xl(h,x,p)});function a1(h,p){var x=ft(h)?Yn:D8;return x(h,Qe(p,3))}function aSe(h,p,x,O){return h==null?[]:(ft(p)||(p=p==null?[]:[p]),x=O?t:x,ft(x)||(x=x==null?[]:[x]),O8(h,p,x))}var lSe=X0(function(h,p,x){h[x?0:1].push(p)},function(){return[[],[]]});function cSe(h,p,x){var O=ft(h)?LE:s8,W=arguments.length<3;return O(h,Qe(p,4),x,W,fu)}function uSe(h,p,x){var O=ft(h)?Swe:s8,W=arguments.length<3;return O(h,Qe(p,4),x,W,x8)}function dSe(h,p){var x=ft(h)?lu:k8;return x(h,u1(Qe(p,3)))}function hSe(h){var p=ft(h)?w8:i1e;return p(h)}function fSe(h,p,x){(x?Hi(h,p,x):p===t)?p=1:p=yt(p);var O=ft(h)?O0e:s1e;return O(h,p)}function pSe(h){var p=ft(h)?N0e:a1e;return p(h)}function mSe(h){if(h==null)return 0;if(us(h))return h1(h)?Kf(h):h.length;var p=ki(h);return p==Re||p==Vt?h.size:nT(h).length}function gSe(h,p,x){var O=ft(h)?qE:l1e;return x&&Hi(h,p,x)&&(p=t),O(h,Qe(p,3))}var bSe=Ft(function(h,p){if(h==null)return[];var x=p.length;return x>1&&Hi(h,p[0],p[1])?p=[]:x>2&&Hi(p[0],p[1],p[2])&&(p=[p[0]]),O8(h,ii(p,1),[])}),l1=Qwe||function(){return Yr.Date.now()};function ySe(h,p){if(typeof p!="function")throw new yo(i);return h=yt(h),function(){if(--h<1)return p.apply(this,arguments)}}function T7(h,p,x){return p=x?t:p,p=h&&p==null?h.length:p,Zl(h,A,t,t,t,t,p)}function M7(h,p){var x;if(typeof p!="function")throw new yo(i);return h=yt(h),function(){return--h>0&&(x=p.apply(this,arguments)),h<=1&&(p=t),x}}var AT=Ft(function(h,p,x){var O=b;if(x.length){var W=uu(x,ep(AT));O|=v}return Zl(h,O,p,x,W)}),D7=Ft(function(h,p,x){var O=b|g;if(x.length){var W=uu(x,ep(D7));O|=v}return Zl(p,O,h,x,W)});function R7(h,p,x){p=x?t:p;var O=Zl(h,_,t,t,t,t,t,p);return O.placeholder=R7.placeholder,O}function I7(h,p,x){p=x?t:p;var O=Zl(h,S,t,t,t,t,t,p);return O.placeholder=I7.placeholder,O}function P7(h,p,x){var O,W,V,Y,ne,se,ge=0,ye=!1,_e=!1,Oe=!0;if(typeof h!="function")throw new yo(i);p=Co(p)||0,nr(x)&&(ye=!!x.leading,_e="maxWait"in x,V=_e?jr(Co(x.maxWait)||0,p):V,Oe="trailing"in x?!!x.trailing:Oe);function Be(br){var pa=O,ic=W;return O=W=t,ge=br,Y=h.apply(ic,pa),Y}function Ze(br){return ge=br,ne=Sb(Ot,p),ye?Be(br):Y}function Ct(br){var pa=br-se,ic=br-ge,Z7=p-pa;return _e?xi(Z7,V-ic):Z7}function et(br){var pa=br-se,ic=br-ge;return se===t||pa>=p||pa<0||_e&&ic>=V}function Ot(){var br=l1();if(et(br))return jt(br);ne=Sb(Ot,Ct(br))}function jt(br){return ne=t,Oe&&O?Be(br):(O=W=t,Y)}function Hs(){ne!==t&&B8(ne),ge=0,O=se=W=ne=t}function Vi(){return ne===t?Y:jt(l1())}function Vs(){var br=l1(),pa=et(br);if(O=arguments,W=this,se=br,pa){if(ne===t)return Ze(se);if(_e)return B8(ne),ne=Sb(Ot,p),Be(se)}return ne===t&&(ne=Sb(Ot,p)),Y}return Vs.cancel=Hs,Vs.flush=Vi,Vs}var vSe=Ft(function(h,p){return C8(h,1,p)}),wSe=Ft(function(h,p,x){return C8(h,Co(p)||0,x)});function _Se(h){return Zl(h,k)}function c1(h,p){if(typeof h!="function"||p!=null&&typeof p!="function")throw new yo(i);var x=function(){var O=arguments,W=p?p.apply(this,O):O[0],V=x.cache;if(V.has(W))return V.get(W);var Y=h.apply(this,O);return x.cache=V.set(W,Y)||V,Y};return x.cache=new(c1.Cache||Ql),x}c1.Cache=Ql;function u1(h){if(typeof h!="function")throw new yo(i);return function(){var p=arguments;switch(p.length){case 0:return!h.call(this);case 1:return!h.call(this,p[0]);case 2:return!h.call(this,p[0],p[1]);case 3:return!h.call(this,p[0],p[1],p[2])}return!h.apply(this,p)}}function SSe(h){return M7(2,h)}var CSe=c1e(function(h,p){p=p.length==1&&ft(p[0])?Yn(p[0],Ws(Qe())):Yn(ii(p,1),Ws(Qe()));var x=p.length;return Ft(function(O){for(var W=-1,V=xi(O.length,x);++W<V;)O[W]=p[W].call(this,O[W]);return js(h,this,O)})}),FT=Ft(function(h,p){var x=uu(p,ep(FT));return Zl(h,v,t,p,x)}),O7=Ft(function(h,p){var x=uu(p,ep(O7));return Zl(h,T,t,p,x)}),xSe=ec(function(h,p){return Zl(h,R,t,t,t,p)});function kSe(h,p){if(typeof h!="function")throw new yo(i);return p=p===t?p:yt(p),Ft(h,p)}function ASe(h,p){if(typeof h!="function")throw new yo(i);return p=p==null?0:jr(yt(p),0),Ft(function(x){var O=x[p],W=gu(x,0,p);return O&&cu(W,O),js(h,this,W)})}function FSe(h,p,x){var O=!0,W=!0;if(typeof h!="function")throw new yo(i);return nr(x)&&(O="leading"in x?!!x.leading:O,W="trailing"in x?!!x.trailing:W),P7(h,p,{leading:O,maxWait:p,trailing:W})}function ESe(h){return T7(h,1)}function TSe(h,p){return FT(dT(p),h)}function MSe(){if(!arguments.length)return[];var h=arguments[0];return ft(h)?h:[h]}function DSe(h){return wo(h,d)}function RSe(h,p){return p=typeof p=="function"?p:t,wo(h,d,p)}function ISe(h){return wo(h,c|d)}function PSe(h,p){return p=typeof p=="function"?p:t,wo(h,c|d,p)}function OSe(h,p){return p==null||S8(h,p,Qr(p))}function fa(h,p){return h===p||h!==h&&p!==p}var NSe=n1(ZE),LSe=n1(function(h,p){return h>=p}),gh=E8(function(){return arguments}())?E8:function(h){return sr(h)&&xn.call(h,"callee")&&!p8.call(h,"callee")},ft=ue.isArray,qSe=JW?Ws(JW):V0e;function us(h){return h!=null&&d1(h.length)&&!nc(h)}function gr(h){return sr(h)&&us(h)}function $Se(h){return h===!0||h===!1||sr(h)&&Bi(h)==ke}var bu=Zwe||qT,zSe=YW?Ws(YW):K0e;function jSe(h){return sr(h)&&h.nodeType===1&&!Cb(h)}function WSe(h){if(h==null)return!0;if(us(h)&&(ft(h)||typeof h=="string"||typeof h.splice=="function"||bu(h)||tp(h)||gh(h)))return!h.length;var p=ki(h);if(p==Re||p==Vt)return!h.size;if(_b(h))return!nT(h).length;for(var x in h)if(xn.call(h,x))return!1;return!0}function USe(h,p){return yb(h,p)}function BSe(h,p,x){x=typeof x=="function"?x:t;var O=x?x(h,p):t;return O===t?yb(h,p,t,x):!!O}function ET(h){if(!sr(h))return!1;var p=Bi(h);return p==we||p==St||typeof h.message=="string"&&typeof h.name=="string"&&!Cb(h)}function HSe(h){return typeof h=="number"&&g8(h)}function nc(h){if(!nr(h))return!1;var p=Bi(h);return p==Ne||p==me||p==De||p==pr}function N7(h){return typeof h=="number"&&h==yt(h)}function d1(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=P}function nr(h){var p=typeof h;return h!=null&&(p=="object"||p=="function")}function sr(h){return h!=null&&typeof h=="object"}var L7=QW?Ws(QW):J0e;function VSe(h,p){return h===p||tT(h,p,yT(p))}function KSe(h,p,x){return x=typeof x=="function"?x:t,tT(h,p,yT(p),x)}function GSe(h){return q7(h)&&h!=+h}function JSe(h){if(R1e(h))throw new ut(r);return T8(h)}function YSe(h){return h===null}function QSe(h){return h==null}function q7(h){return typeof h=="number"||sr(h)&&Bi(h)==it}function Cb(h){if(!sr(h)||Bi(h)!=lt)return!1;var p=q0(h);if(p===null)return!0;var x=xn.call(p,"constructor")&&p.constructor;return typeof x=="function"&&x instanceof x&&P0.call(x)==Kwe}var TT=XW?Ws(XW):Y0e;function XSe(h){return N7(h)&&h>=-P&&h<=P}var $7=ZW?Ws(ZW):Q0e;function h1(h){return typeof h=="string"||!ft(h)&&sr(h)&&Bi(h)==mr}function Bs(h){return typeof h=="symbol"||sr(h)&&Bi(h)==Wi}var tp=e8?Ws(e8):X0e;function ZSe(h){return h===t}function eCe(h){return sr(h)&&ki(h)==Jr}function tCe(h){return sr(h)&&Bi(h)==ah}var nCe=n1(rT),rCe=n1(function(h,p){return h<=p});function z7(h){if(!h)return[];if(us(h))return h1(h)?da(h):cs(h);if(ub&&h[ub])return Owe(h[ub]());var p=ki(h),x=p==Re?BE:p==Vt?D0:np;return x(h)}function rc(h){if(!h)return h===0?h:0;if(h=Co(h),h===F||h===-F){var p=h<0?-1:1;return p*L}return h===h?h:0}function yt(h){var p=rc(h),x=p%1;return p===p?x?p-x:p:0}function j7(h){return h?hh(yt(h),0,z):0}function Co(h){if(typeof h=="number")return h;if(Bs(h))return j;if(nr(h)){var p=typeof h.valueOf=="function"?h.valueOf():h;h=nr(p)?p+"":p}if(typeof h!="string")return h===0?h:+h;h=o8(h);var x=ua.test(h);return x||au.test(h)?ywe(h.slice(2),x?2:8):zs.test(h)?j:+h}function W7(h){return Ja(h,ds(h))}function iCe(h){return h?hh(yt(h),-P,P):h===0?h:0}function bn(h){return h==null?"":Us(h)}var sCe=Xf(function(h,p){if(_b(p)||us(p)){Ja(p,Qr(p),h);return}for(var x in p)xn.call(p,x)&&mb(h,x,p[x])}),U7=Xf(function(h,p){Ja(p,ds(p),h)}),f1=Xf(function(h,p,x,O){Ja(p,ds(p),h,O)}),oCe=Xf(function(h,p,x,O){Ja(p,Qr(p),h,O)}),aCe=ec(YE);function lCe(h,p){var x=Qf(h);return p==null?x:_8(x,p)}var cCe=Ft(function(h,p){h=In(h);var x=-1,O=p.length,W=O>2?p[2]:t;for(W&&Hi(p[0],p[1],W)&&(O=1);++x<O;)for(var V=p[x],Y=ds(V),ne=-1,se=Y.length;++ne<se;){var ge=Y[ne],ye=h[ge];(ye===t||fa(ye,Gf[ge])&&!xn.call(h,ge))&&(h[ge]=V[ge])}return h}),uCe=Ft(function(h){return h.push(t,o7),js(B7,t,h)});function dCe(h,p){return n8(h,Qe(p,3),Ga)}function hCe(h,p){return n8(h,Qe(p,3),XE)}function fCe(h,p){return h==null?h:QE(h,Qe(p,3),ds)}function pCe(h,p){return h==null?h:A8(h,Qe(p,3),ds)}function mCe(h,p){return h&&Ga(h,Qe(p,3))}function gCe(h,p){return h&&XE(h,Qe(p,3))}function bCe(h){return h==null?[]:G0(h,Qr(h))}function yCe(h){return h==null?[]:G0(h,ds(h))}function MT(h,p,x){var O=h==null?t:fh(h,p);return O===t?x:O}function vCe(h,p){return h!=null&&c7(h,p,W0e)}function DT(h,p){return h!=null&&c7(h,p,U0e)}var wCe=t7(function(h,p,x){p!=null&&typeof p.toString!="function"&&(p=O0.call(p)),h[p]=x},IT(hs)),_Ce=t7(function(h,p,x){p!=null&&typeof p.toString!="function"&&(p=O0.call(p)),xn.call(h,p)?h[p].push(x):h[p]=[x]},Qe),SCe=Ft(bb);function Qr(h){return us(h)?v8(h):nT(h)}function ds(h){return us(h)?v8(h,!0):Z0e(h)}function CCe(h,p){var x={};return p=Qe(p,3),Ga(h,function(O,W,V){Xl(x,p(O,W,V),O)}),x}function xCe(h,p){var x={};return p=Qe(p,3),Ga(h,function(O,W,V){Xl(x,W,p(O,W,V))}),x}var kCe=Xf(function(h,p,x){J0(h,p,x)}),B7=Xf(function(h,p,x,O){J0(h,p,x,O)}),ACe=ec(function(h,p){var x={};if(h==null)return x;var O=!1;p=Yn(p,function(V){return V=mu(V,h),O||(O=V.length>1),V}),Ja(h,gT(h),x),O&&(x=wo(x,c|u|d,w1e));for(var W=p.length;W--;)lT(x,p[W]);return x});function FCe(h,p){return H7(h,u1(Qe(p)))}var ECe=ec(function(h,p){return h==null?{}:t1e(h,p)});function H7(h,p){if(h==null)return{};var x=Yn(gT(h),function(O){return[O]});return p=Qe(p),N8(h,x,function(O,W){return p(O,W[0])})}function TCe(h,p,x){p=mu(p,h);var O=-1,W=p.length;for(W||(W=1,h=t);++O<W;){var V=h==null?t:h[Ya(p[O])];V===t&&(O=W,V=x),h=nc(V)?V.call(h):V}return h}function MCe(h,p,x){return h==null?h:vb(h,p,x)}function DCe(h,p,x,O){return O=typeof O=="function"?O:t,h==null?h:vb(h,p,x,O)}var V7=i7(Qr),K7=i7(ds);function RCe(h,p,x){var O=ft(h),W=O||bu(h)||tp(h);if(p=Qe(p,4),x==null){var V=h&&h.constructor;W?x=O?new V:[]:nr(h)?x=nc(V)?Qf(q0(h)):{}:x={}}return(W?bo:Ga)(h,function(Y,ne,se){return p(x,Y,ne,se)}),x}function ICe(h,p){return h==null?!0:lT(h,p)}function PCe(h,p,x){return h==null?h:j8(h,p,dT(x))}function OCe(h,p,x,O){return O=typeof O=="function"?O:t,h==null?h:j8(h,p,dT(x),O)}function np(h){return h==null?[]:UE(h,Qr(h))}function NCe(h){return h==null?[]:UE(h,ds(h))}function LCe(h,p,x){return x===t&&(x=p,p=t),x!==t&&(x=Co(x),x=x===x?x:0),p!==t&&(p=Co(p),p=p===p?p:0),hh(Co(h),p,x)}function qCe(h,p,x){return p=rc(p),x===t?(x=p,p=0):x=rc(x),h=Co(h),B0e(h,p,x)}function $Ce(h,p,x){if(x&&typeof x!="boolean"&&Hi(h,p,x)&&(p=x=t),x===t&&(typeof p=="boolean"?(x=p,p=t):typeof h=="boolean"&&(x=h,h=t)),h===t&&p===t?(h=0,p=1):(h=rc(h),p===t?(p=h,h=0):p=rc(p)),h>p){var O=h;h=p,p=O}if(x||h%1||p%1){var W=b8();return xi(h+W*(p-h+bwe("1e-"+((W+"").length-1))),p)}return sT(h,p)}var zCe=Zf(function(h,p,x){return p=p.toLowerCase(),h+(x?G7(p):p)});function G7(h){return RT(bn(h).toLowerCase())}function J7(h){return h=bn(h),h&&h.replace(k0,Mwe).replace(awe,"")}function jCe(h,p,x){h=bn(h),p=Us(p);var O=h.length;x=x===t?O:hh(yt(x),0,O);var W=x;return x-=p.length,x>=0&&h.slice(x,W)==p}function WCe(h){return h=bn(h),h&&Ui.test(h)?h.replace($n,Dwe):h}function UCe(h){return h=bn(h),h&&B.test(h)?h.replace(ae,"\\$&"):h}var BCe=Zf(function(h,p,x){return h+(x?"-":"")+p.toLowerCase()}),HCe=Zf(function(h,p,x){return h+(x?" ":"")+p.toLowerCase()}),VCe=X8("toLowerCase");function KCe(h,p,x){h=bn(h),p=yt(p);var O=p?Kf(h):0;if(!p||O>=p)return h;var W=(p-O)/2;return t1(W0(W),x)+h+t1(j0(W),x)}function GCe(h,p,x){h=bn(h),p=yt(p);var O=p?Kf(h):0;return p&&O<p?h+t1(p-O,x):h}function JCe(h,p,x){h=bn(h),p=yt(p);var O=p?Kf(h):0;return p&&O<p?t1(p-O,x)+h:h}function YCe(h,p,x){return x||p==null?p=0:p&&(p=+p),r0e(bn(h).replace(te,""),p||0)}function QCe(h,p,x){return(x?Hi(h,p,x):p===t)?p=1:p=yt(p),oT(bn(h),p)}function XCe(){var h=arguments,p=bn(h[0]);return h.length<3?p:p.replace(h[1],h[2])}var ZCe=Zf(function(h,p,x){return h+(x?"_":"")+p.toLowerCase()});function e2e(h,p,x){return x&&typeof x!="number"&&Hi(h,p,x)&&(p=x=t),x=x===t?z:x>>>0,x?(h=bn(h),h&&(typeof p=="string"||p!=null&&!TT(p))&&(p=Us(p),!p&&Vf(h))?gu(da(h),0,x):h.split(p,x)):[]}var t2e=Zf(function(h,p,x){return h+(x?" ":"")+RT(p)});function n2e(h,p,x){return h=bn(h),x=x==null?0:hh(yt(x),0,h.length),p=Us(p),h.slice(x,x+p.length)==p}function r2e(h,p,x){var O=H.templateSettings;x&&Hi(h,p,x)&&(p=t),h=bn(h),p=f1({},p,O,s7);var W=f1({},p.imports,O.imports,s7),V=Qr(W),Y=UE(W,V),ne,se,ge=0,ye=p.interpolate||A0,_e="__p += '",Oe=HE((p.escape||A0).source+"|"+ye.source+"|"+(ye===lb?Fn:A0).source+"|"+(p.evaluate||A0).source+"|$","g"),Be="//# sourceURL="+(xn.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hwe+"]")+`
|
|
1044
1044
|
`;h.replace(Oe,function(et,Ot,jt,Hs,Vi,Vs){return jt||(jt=Hs),_e+=h.slice(ge,Vs).replace(Uve,Rwe),Ot&&(ne=!0,_e+=`' +
|
|
1045
1045
|
__e(`+Ot+`) +
|
|
1046
1046
|
'`),Vi&&(se=!0,_e+=`';
|
|
@@ -1057,7 +1057,7 @@ __p += '`),jt&&(_e+=`' +
|
|
|
1057
1057
|
function print() { __p += __j.call(arguments, '') }
|
|
1058
1058
|
`:`;
|
|
1059
1059
|
`)+_e+`return __p
|
|
1060
|
-
}`;var Ct=QU(function(){return dn(V,Be+"return "+_e).apply(t,Y)});if(Ct.source=_e,ET(Ct))throw Ct;return Ct}function i2e(h){return bn(h).toLowerCase()}function s2e(h){return bn(h).toUpperCase()}function o2e(h,p,x){if(h=bn(h),h&&(x||p===t))return o8(h);if(!h||!(p=Us(p)))return h;var O=da(h),W=da(p),V=a8(O,W),Y=l8(O,W)+1;return gu(O,V,Y).join("")}function a2e(h,p,x){if(h=bn(h),h&&(x||p===t))return h.slice(0,u8(h)+1);if(!h||!(p=Us(p)))return h;var O=da(h),W=l8(O,da(p))+1;return gu(O,0,W).join("")}function l2e(h,p,x){if(h=bn(h),h&&(x||p===t))return h.replace(te,"");if(!h||!(p=Us(p)))return h;var O=da(h),W=a8(O,da(p));return gu(O,W).join("")}function c2e(h,p){var x=y,O=C;if(nr(p)){var W="separator"in p?p.separator:W;x="length"in p?yt(p.length):x,O="omission"in p?Us(p.omission):O}h=bn(h);var V=h.length;if(Vf(h)){var Y=da(h);V=Y.length}if(x>=V)return h;var ne=x-Kf(O);if(ne<1)return O;var se=Y?gu(Y,0,ne).join(""):h.slice(0,ne);if(W===t)return se+O;if(Y&&(ne+=se.length-ne),TT(W)){if(h.slice(ne).search(W)){var ge,ye=se;for(W.global||(W=HE(W.source,bn(ls.exec(W))+"g")),W.lastIndex=0;ge=W.exec(ye);)var _e=ge.index;se=se.slice(0,_e===t?ne:_e)}}else if(h.indexOf(Us(W),ne)!=ne){var Oe=se.lastIndexOf(W);Oe>-1&&(se=se.slice(0,Oe))}return se+O}function u2e(h){return h=bn(h),h&&Er.test(h)?h.replace(zt,$we):h}var d2e=Zf(function(h,p,x){return h+(x?" ":"")+p.toUpperCase()}),RT=X8("toUpperCase");function YU(h,p,x){return h=bn(h),p=x?t:p,p===t?Pwe(h)?Wwe(h):kwe(h):h.match(p)||[]}var QU=Ft(function(h,p){try{return js(h,t,p)}catch(x){return ET(x)?x:new ut(x)}}),h2e=ec(function(h,p){return bo(p,function(x){x=Ya(x),Xl(h,x,AT(h[x],h))}),h});function f2e(h){var p=h==null?0:h.length,x=Qe();return h=p?Yn(h,function(O){if(typeof O[1]!="function")throw new yo(i);return[x(O[0]),O[1]]}):[],Ft(function(O){for(var W=-1;++W<p;){var V=h[W];if(js(V[0],this,O))return js(V[1],this,O)}})}function p2e(h){return $0e(wo(h,c))}function IT(h){return function(){return h}}function m2e(h,p){return h==null||h!==h?p:h}var g2e=eU(),b2e=eU(!0);function hs(h){return h}function PT(h){return M8(typeof h=="function"?h:wo(h,c))}function y2e(h){return R8(wo(h,c))}function v2e(h,p){return I8(h,wo(p,c))}var w2e=Ft(function(h,p){return function(x){return bb(x,h,p)}}),_2e=Ft(function(h,p){return function(x){return bb(h,x,p)}});function OT(h,p,x){var O=Qr(p),W=G0(p,O);x==null&&!(nr(p)&&(W.length||!O.length))&&(x=p,p=h,h=this,W=G0(p,Qr(p)));var V=!(nr(x)&&"chain"in x)||!!x.chain,Y=nc(h);return bo(W,function(ne){var se=p[ne];h[ne]=se,Y&&(h.prototype[ne]=function(){var ge=this.__chain__;if(V||ge){var ye=h(this.__wrapped__),_e=ye.__actions__=cs(this.__actions__);return _e.push({func:se,args:arguments,thisArg:h}),ye.__chain__=ge,ye}return se.apply(h,cu([this.value()],arguments))})}),h}function S2e(){return Yr._===this&&(Yr._=Gwe),this}function NT(){}function C2e(h){return h=yt(h),Ft(function(p){return P8(p,h)})}var x2e=fT(Yn),k2e=fT(t8),A2e=fT(qE);function XU(h){return wT(h)?$E(Ya(h)):n1e(h)}function F2e(h){return function(p){return h==null?t:fh(h,p)}}var E2e=nU(),T2e=nU(!0);function LT(){return[]}function qT(){return!1}function M2e(){return{}}function D2e(){return""}function R2e(){return!0}function I2e(h,p){if(h=yt(h),h<1||h>P)return[];var x=z,O=xi(h,z);p=Qe(p),h-=z;for(var W=WE(O,p);++x<h;)p(x);return W}function P2e(h){return ft(h)?Yn(h,Ya):Bs(h)?[h]:cs(yU(bn(h)))}function O2e(h){var p=++Vwe;return bn(h)+p}var N2e=e1(function(h,p){return h+p},0),L2e=pT("ceil"),q2e=e1(function(h,p){return h/p},1),$2e=pT("floor");function z2e(h){return h&&h.length?K0(h,hs,ZE):t}function j2e(h,p){return h&&h.length?K0(h,Qe(p,2),ZE):t}function W2e(h){return i8(h,hs)}function U2e(h,p){return i8(h,Qe(p,2))}function B2e(h){return h&&h.length?K0(h,hs,rT):t}function H2e(h,p){return h&&h.length?K0(h,Qe(p,2),rT):t}var V2e=e1(function(h,p){return h*p},1),K2e=pT("round"),G2e=e1(function(h,p){return h-p},0);function J2e(h){return h&&h.length?jE(h,hs):0}function Y2e(h,p){return h&&h.length?jE(h,Qe(p,2)):0}return H.after=ySe,H.ary=TU,H.assign=sCe,H.assignIn=UU,H.assignInWith=f1,H.assignWith=oCe,H.at=aCe,H.before=MU,H.bind=AT,H.bindAll=h2e,H.bindKey=DU,H.castArray=MSe,H.chain=AU,H.chunk=$1e,H.compact=z1e,H.concat=j1e,H.cond=f2e,H.conforms=p2e,H.constant=IT,H.countBy=J_e,H.create=lCe,H.curry=RU,H.curryRight=IU,H.debounce=PU,H.defaults=cCe,H.defaultsDeep=uCe,H.defer=vSe,H.delay=wSe,H.difference=W1e,H.differenceBy=U1e,H.differenceWith=B1e,H.drop=H1e,H.dropRight=V1e,H.dropRightWhile=K1e,H.dropWhile=G1e,H.fill=J1e,H.filter=Q_e,H.flatMap=eSe,H.flatMapDeep=tSe,H.flatMapDepth=nSe,H.flatten=SU,H.flattenDeep=Y1e,H.flattenDepth=Q1e,H.flip=_Se,H.flow=g2e,H.flowRight=b2e,H.fromPairs=X1e,H.functions=bCe,H.functionsIn=yCe,H.groupBy=rSe,H.initial=e_e,H.intersection=t_e,H.intersectionBy=n_e,H.intersectionWith=r_e,H.invert=wCe,H.invertBy=_Ce,H.invokeMap=sSe,H.iteratee=PT,H.keyBy=oSe,H.keys=Qr,H.keysIn=ds,H.map=a1,H.mapKeys=CCe,H.mapValues=xCe,H.matches=y2e,H.matchesProperty=v2e,H.memoize=c1,H.merge=kCe,H.mergeWith=BU,H.method=w2e,H.methodOf=_2e,H.mixin=OT,H.negate=u1,H.nthArg=C2e,H.omit=ACe,H.omitBy=FCe,H.once=SSe,H.orderBy=aSe,H.over=x2e,H.overArgs=CSe,H.overEvery=k2e,H.overSome=A2e,H.partial=FT,H.partialRight=OU,H.partition=lSe,H.pick=ECe,H.pickBy=HU,H.property=XU,H.propertyOf=F2e,H.pull=a_e,H.pullAll=xU,H.pullAllBy=l_e,H.pullAllWith=c_e,H.pullAt=u_e,H.range=E2e,H.rangeRight=T2e,H.rearg=xSe,H.reject=dSe,H.remove=d_e,H.rest=kSe,H.reverse=xT,H.sampleSize=fSe,H.set=MCe,H.setWith=DCe,H.shuffle=pSe,H.slice=h_e,H.sortBy=bSe,H.sortedUniq=v_e,H.sortedUniqBy=w_e,H.split=e2e,H.spread=ASe,H.tail=__e,H.take=S_e,H.takeRight=C_e,H.takeRightWhile=x_e,H.takeWhile=k_e,H.tap=z_e,H.throttle=FSe,H.thru=o1,H.toArray=zU,H.toPairs=VU,H.toPairsIn=KU,H.toPath=P2e,H.toPlainObject=WU,H.transform=RCe,H.unary=ESe,H.union=A_e,H.unionBy=F_e,H.unionWith=E_e,H.uniq=T_e,H.uniqBy=M_e,H.uniqWith=D_e,H.unset=ICe,H.unzip=kT,H.unzipWith=kU,H.update=PCe,H.updateWith=OCe,H.values=np,H.valuesIn=NCe,H.without=R_e,H.words=YU,H.wrap=TSe,H.xor=I_e,H.xorBy=P_e,H.xorWith=O_e,H.zip=N_e,H.zipObject=L_e,H.zipObjectDeep=q_e,H.zipWith=$_e,H.entries=VU,H.entriesIn=KU,H.extend=UU,H.extendWith=f1,OT(H,H),H.add=N2e,H.attempt=QU,H.camelCase=zCe,H.capitalize=GU,H.ceil=L2e,H.clamp=LCe,H.clone=DSe,H.cloneDeep=ISe,H.cloneDeepWith=PSe,H.cloneWith=RSe,H.conformsTo=OSe,H.deburr=JU,H.defaultTo=m2e,H.divide=q2e,H.endsWith=jCe,H.eq=fa,H.escape=WCe,H.escapeRegExp=UCe,H.every=Y_e,H.find=X_e,H.findIndex=wU,H.findKey=dCe,H.findLast=Z_e,H.findLastIndex=_U,H.findLastKey=hCe,H.floor=$2e,H.forEach=FU,H.forEachRight=EU,H.forIn=fCe,H.forInRight=pCe,H.forOwn=mCe,H.forOwnRight=gCe,H.get=MT,H.gt=NSe,H.gte=LSe,H.has=vCe,H.hasIn=DT,H.head=CU,H.identity=hs,H.includes=iSe,H.indexOf=Z1e,H.inRange=qCe,H.invoke=SCe,H.isArguments=gh,H.isArray=ft,H.isArrayBuffer=qSe,H.isArrayLike=us,H.isArrayLikeObject=gr,H.isBoolean=$Se,H.isBuffer=bu,H.isDate=zSe,H.isElement=jSe,H.isEmpty=WSe,H.isEqual=USe,H.isEqualWith=BSe,H.isError=ET,H.isFinite=HSe,H.isFunction=nc,H.isInteger=NU,H.isLength=d1,H.isMap=LU,H.isMatch=VSe,H.isMatchWith=KSe,H.isNaN=GSe,H.isNative=JSe,H.isNil=QSe,H.isNull=YSe,H.isNumber=qU,H.isObject=nr,H.isObjectLike=sr,H.isPlainObject=Cb,H.isRegExp=TT,H.isSafeInteger=XSe,H.isSet=$U,H.isString=h1,H.isSymbol=Bs,H.isTypedArray=tp,H.isUndefined=ZSe,H.isWeakMap=eCe,H.isWeakSet=tCe,H.join=i_e,H.kebabCase=BCe,H.last=So,H.lastIndexOf=s_e,H.lowerCase=HCe,H.lowerFirst=VCe,H.lt=nCe,H.lte=rCe,H.max=z2e,H.maxBy=j2e,H.mean=W2e,H.meanBy=U2e,H.min=B2e,H.minBy=H2e,H.stubArray=LT,H.stubFalse=qT,H.stubObject=M2e,H.stubString=D2e,H.stubTrue=R2e,H.multiply=V2e,H.nth=o_e,H.noConflict=S2e,H.noop=NT,H.now=l1,H.pad=KCe,H.padEnd=GCe,H.padStart=JCe,H.parseInt=YCe,H.random=$Ce,H.reduce=cSe,H.reduceRight=uSe,H.repeat=QCe,H.replace=XCe,H.result=TCe,H.round=K2e,H.runInContext=ie,H.sample=hSe,H.size=mSe,H.snakeCase=ZCe,H.some=gSe,H.sortedIndex=f_e,H.sortedIndexBy=p_e,H.sortedIndexOf=m_e,H.sortedLastIndex=g_e,H.sortedLastIndexBy=b_e,H.sortedLastIndexOf=y_e,H.startCase=t2e,H.startsWith=n2e,H.subtract=G2e,H.sum=J2e,H.sumBy=Y2e,H.template=r2e,H.times=I2e,H.toFinite=rc,H.toInteger=yt,H.toLength=jU,H.toLower=i2e,H.toNumber=Co,H.toSafeInteger=iCe,H.toString=bn,H.toUpper=s2e,H.trim=o2e,H.trimEnd=a2e,H.trimStart=l2e,H.truncate=c2e,H.unescape=u2e,H.uniqueId=O2e,H.upperCase=d2e,H.upperFirst=RT,H.each=FU,H.eachRight=EU,H.first=CU,OT(H,function(){var h={};return Ga(H,function(p,x){xn.call(H.prototype,x)||(h[x]=p)}),h}(),{chain:!1}),H.VERSION=e,bo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(h){H[h].placeholder=H}),bo(["drop","take"],function(h,p){qt.prototype[h]=function(x){x=x===t?1:jr(yt(x),0);var O=this.__filtered__&&!p?new qt(this):this.clone();return O.__filtered__?O.__takeCount__=xi(x,O.__takeCount__):O.__views__.push({size:xi(x,z),type:h+(O.__dir__<0?"Right":"")}),O},qt.prototype[h+"Right"]=function(x){return this.reverse()[h](x).reverse()}}),bo(["filter","map","takeWhile"],function(h,p){var x=p+1,O=x==D||x==$;qt.prototype[h]=function(W){var V=this.clone();return V.__iteratees__.push({iteratee:Qe(W,3),type:x}),V.__filtered__=V.__filtered__||O,V}}),bo(["head","last"],function(h,p){var x="take"+(p?"Right":"");qt.prototype[h]=function(){return this[x](1).value()[0]}}),bo(["initial","tail"],function(h,p){var x="drop"+(p?"":"Right");qt.prototype[h]=function(){return this.__filtered__?new qt(this):this[x](1)}}),qt.prototype.compact=function(){return this.filter(hs)},qt.prototype.find=function(h){return this.filter(h).head()},qt.prototype.findLast=function(h){return this.reverse().find(h)},qt.prototype.invokeMap=Ft(function(h,p){return typeof h=="function"?new qt(this):this.map(function(x){return bb(x,h,p)})}),qt.prototype.reject=function(h){return this.filter(u1(Qe(h)))},qt.prototype.slice=function(h,p){h=yt(h);var x=this;return x.__filtered__&&(h>0||p<0)?new qt(x):(h<0?x=x.takeRight(-h):h&&(x=x.drop(h)),p!==t&&(p=yt(p),x=p<0?x.dropRight(-p):x.take(p-h)),x)},qt.prototype.takeRightWhile=function(h){return this.reverse().takeWhile(h).reverse()},qt.prototype.toArray=function(){return this.take(z)},Ga(qt.prototype,function(h,p){var x=/^(?:filter|find|map|reject)|While$/.test(p),O=/^(?:head|last)$/.test(p),W=H[O?"take"+(p=="last"?"Right":""):p],V=O||/^find/.test(p);W&&(H.prototype[p]=function(){var Y=this.__wrapped__,ne=O?[1]:arguments,se=Y instanceof qt,ge=ne[0],ye=se||ft(Y),_e=function(Ot){var jt=W.apply(H,cu([Ot],ne));return O&&Oe?jt[0]:jt};ye&&x&&typeof ge=="function"&&ge.length!=1&&(se=ye=!1);var Oe=this.__chain__,Be=!!this.__actions__.length,Ze=V&&!Oe,Ct=se&&!Be;if(!V&&ye){Y=Ct?Y:new qt(this);var et=h.apply(Y,ne);return et.__actions__.push({func:o1,args:[_e],thisArg:t}),new vo(et,Oe)}return Ze&&Ct?h.apply(this,ne):(et=this.thru(_e),Ze?O?et.value()[0]:et.value():et)})}),bo(["pop","push","shift","sort","splice","unshift"],function(h){var p=R0[h],x=/^(?:push|sort|unshift)$/.test(h)?"tap":"thru",O=/^(?:pop|shift)$/.test(h);H.prototype[h]=function(){var W=arguments;if(O&&!this.__chain__){var V=this.value();return p.apply(ft(V)?V:[],W)}return this[x](function(Y){return p.apply(ft(Y)?Y:[],W)})}}),Ga(qt.prototype,function(h,p){var x=H[p];if(x){var O=x.name+"";xn.call(Yf,O)||(Yf[O]=[]),Yf[O].push({name:p,func:x})}}),Yf[Z0(t,g).name]=[{name:"wrapper",func:t}],qt.prototype.clone=u0e,qt.prototype.reverse=d0e,qt.prototype.value=h0e,H.prototype.at=j_e,H.prototype.chain=W_e,H.prototype.commit=U_e,H.prototype.next=B_e,H.prototype.plant=V_e,H.prototype.reverse=K_e,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=G_e,H.prototype.first=H.prototype.head,ub&&(H.prototype[ub]=H_e),H},du=Uwe();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Yr._=du,define(function(){return du})):lh?((lh.exports=du)._=du,PE._=du):Yr._=du}).call(ib)});var dve=I(pE=>{"use strict";Object.defineProperty(pE,"__esModule",{value:!0});pE.YamlCodeActions=void 0;var ln=yr(),iht=uW(),sht=require("path"),lve=Af(),oht=kf(),aht=nw(),lht=Gd(),ih=Li(),cht=po(),uht=ove(),dht=ave(),cve=(Lw(),or(Nw)),Lf=cr(),fW=class{constructor(e){this.clientCapabilities=e,this.indentation=" "}configure(e){this.indentation=e.indentation}getCodeAction(e,n){if(!n.context.diagnostics)return;let r=[];return r.push(...this.getConvertToBooleanActions(n.context.diagnostics,e)),r.push(...this.getJumpToSchemaActions(n.context.diagnostics)),r.push(...this.getTabToSpaceConverting(n.context.diagnostics,e)),r.push(...this.getUnusedAnchorsDelete(n.context.diagnostics,e)),r.push(...this.getConvertToBlockStyleActions(n.context.diagnostics,e)),r.push(...this.getKeyOrderActions(n.context.diagnostics,e)),r.push(...this.getQuickFixForPropertyOrValueMismatch(n.context.diagnostics,e)),r}getJumpToSchemaActions(e){if(!(this.clientCapabilities?.window?.showDocument?.support??!1))return[];let r=new Map;for(let s of e){let o=s.data?.schemaUri||[];for(let a of o)a&&(r.has(a)||r.set(a,[]),r.get(a).push(s))}let i=[];for(let s of r.keys()){let o=ln.CodeAction.create(Lf.t("jumpToSchema",sht.basename(s)),ln.Command.create("JumpToSchema",iht.YamlCommands.JUMP_TO_SCHEMA,s));o.diagnostics=r.get(s),i.push(o)}return i}getTabToSpaceConverting(e,n){let r=[],i=new lve.TextBuffer(n),s=[];for(let o of e)if(o.message==="Tabs are not allowed as indentation"){if(s.includes(o.range.start.line))continue;let a=i.getLineContent(o.range.start.line),l=0,c="";for(let d=o.range.start.character;d<=o.range.end.character&&a.charAt(d)===" ";d++)l++,c+=this.indentation;s.push(o.range.start.line);let u=o.range;l!==o.range.end.character-o.range.start.character&&(u=ln.Range.create(o.range.start,ln.Position.create(o.range.end.line,o.range.start.character+l))),r.push(ln.CodeAction.create(Lf.t("convertToSpace"),qf(n.uri,[ln.TextEdit.replace(u,c)]),ln.CodeActionKind.QuickFix))}if(r.length!==0){let o=[];for(let a=0;a<=i.getLineCount();a++){let l=i.getLineContent(a),c=0,u="";for(let d=0;d<l.length;d++){let f=l.charAt(d);if(f!==" "&&f!==" "){c!==0&&(o.push(ln.TextEdit.replace(ln.Range.create(a,d-c,a,d),u)),c=0,u="");break}if(f===" "&&c!==0){o.push(ln.TextEdit.replace(ln.Range.create(a,d-c,a,d),u)),c=0,u="";continue}f===" "&&(u+=this.indentation,c++)}c!==0&&o.push(ln.TextEdit.replace(ln.Range.create(a,0,a,i.getLineLength(a)),u))}o.length>0&&r.push(ln.CodeAction.create(Lf.t("convertAllSpaceToTab"),qf(n.uri,o),ln.CodeActionKind.QuickFix))}return r}getUnusedAnchorsDelete(e,n){let r=[],i=new lve.TextBuffer(n);for(let s of e)if(s.message.startsWith("Unused anchor")&&s.source===oht.YAML_SOURCE){let o=ln.Range.create(s.range.start,s.range.end),a=i.getText(o),l=i.getLineContent(o.end.line),c=(0,aht.getFirstNonWhitespaceCharacterAfterOffset)(l,o.end.character);o.end.character=c;let u=ln.CodeAction.create(Lf.t("deleteUnusedAnchor",a),qf(n.uri,[ln.TextEdit.del(o)]),ln.CodeActionKind.QuickFix);u.diagnostics=[s],r.push(u)}return r}getConvertToBooleanActions(e,n){let r=[];for(let i of e)if(i.message==='Incorrect type. Expected "boolean".'){let s=n.getText(i.range).toLocaleLowerCase();if(s==='"true"'||s==='"false"'||s==="'true'"||s==="'false'"){let o=s.includes("true")?"true":"false";r.push(ln.CodeAction.create(Lf.t("convertToBoolean"),qf(n.uri,[ln.TextEdit.replace(i.range,o)]),ln.CodeActionKind.QuickFix))}}return r}getConvertToBlockStyleActions(e,n){let r=[];for(let i of e)if(i.code==="flowMap"||i.code==="flowSeq"){let s=uve(n,i);if((0,ih.isMap)(s.internalNode)||(0,ih.isSeq)(s.internalNode)){let o=(0,ih.isMap)(s.internalNode)?"map":"sequence",a=new uht.FlowStyleRewriter(this.indentation);r.push(ln.CodeAction.create(Lf.t("convertToBlockStyle","Convert to block style {0}",o),qf(n.uri,[ln.TextEdit.replace(i.range,a.write(s))]),ln.CodeActionKind.QuickFix))}}return r}getKeyOrderActions(e,n){let r=[];for(let i of e)if(i?.code==="mapKeyOrder"){let s=uve(n,i);for(;s&&s.type!=="object";)s=s.parent;if(s&&(0,ih.isMap)(s.internalNode)){let o=dht.cloneDeep(s.internalNode);if((o.srcToken.type==="block-map"||o.srcToken.type==="flow-collection")&&(s.internalNode.srcToken.type==="block-map"||s.internalNode.srcToken.type==="flow-collection")){o.srcToken.items.sort((l,c)=>{if(l.key&&c.key&&ih.CST.isScalar(l.key)&&ih.CST.isScalar(c.key))return l.key.source.localeCompare(c.key.source);if(!l.key&&c.key)return-1;if(l.key&&!c.key)return 1;if(!l.key&&!c.key)return 0});for(let l=0;l<o.srcToken.items.length;l++){let c=o.srcToken.items[l],u=s.internalNode.srcToken.items[l];if(c.start=u.start,c.value?.type==="alias"||c.value?.type==="scalar"||c.value?.type==="single-quoted-scalar"||c.value?.type==="double-quoted-scalar"){let d=c.value?.end?.findIndex(m=>m.type==="newline")??-1,f=null;u.value?.type==="block-scalar"?f=u.value?.props?.find(m=>m.type==="newline"):ih.CST.isScalar(u.value)&&(f=u.value?.end?.find(m=>m.type==="newline")),f&&d<0&&(c.value.end=c.value.end??[],c.value.end.push(f)),!f&&d>-1&&c.value.end.splice(d,1)}else c.value?.type==="block-scalar"&&(c.value.props.find(f=>f.type==="newline")||c.value.props.push({type:"newline",indent:0,offset:c.value.offset,source:`
|
|
1060
|
+
}`;var Ct=Q7(function(){return dn(V,Be+"return "+_e).apply(t,Y)});if(Ct.source=_e,ET(Ct))throw Ct;return Ct}function i2e(h){return bn(h).toLowerCase()}function s2e(h){return bn(h).toUpperCase()}function o2e(h,p,x){if(h=bn(h),h&&(x||p===t))return o8(h);if(!h||!(p=Us(p)))return h;var O=da(h),W=da(p),V=a8(O,W),Y=l8(O,W)+1;return gu(O,V,Y).join("")}function a2e(h,p,x){if(h=bn(h),h&&(x||p===t))return h.slice(0,u8(h)+1);if(!h||!(p=Us(p)))return h;var O=da(h),W=l8(O,da(p))+1;return gu(O,0,W).join("")}function l2e(h,p,x){if(h=bn(h),h&&(x||p===t))return h.replace(te,"");if(!h||!(p=Us(p)))return h;var O=da(h),W=a8(O,da(p));return gu(O,W).join("")}function c2e(h,p){var x=y,O=C;if(nr(p)){var W="separator"in p?p.separator:W;x="length"in p?yt(p.length):x,O="omission"in p?Us(p.omission):O}h=bn(h);var V=h.length;if(Vf(h)){var Y=da(h);V=Y.length}if(x>=V)return h;var ne=x-Kf(O);if(ne<1)return O;var se=Y?gu(Y,0,ne).join(""):h.slice(0,ne);if(W===t)return se+O;if(Y&&(ne+=se.length-ne),TT(W)){if(h.slice(ne).search(W)){var ge,ye=se;for(W.global||(W=HE(W.source,bn(ls.exec(W))+"g")),W.lastIndex=0;ge=W.exec(ye);)var _e=ge.index;se=se.slice(0,_e===t?ne:_e)}}else if(h.indexOf(Us(W),ne)!=ne){var Oe=se.lastIndexOf(W);Oe>-1&&(se=se.slice(0,Oe))}return se+O}function u2e(h){return h=bn(h),h&&Er.test(h)?h.replace(zt,$we):h}var d2e=Zf(function(h,p,x){return h+(x?" ":"")+p.toUpperCase()}),RT=X8("toUpperCase");function Y7(h,p,x){return h=bn(h),p=x?t:p,p===t?Pwe(h)?Wwe(h):kwe(h):h.match(p)||[]}var Q7=Ft(function(h,p){try{return js(h,t,p)}catch(x){return ET(x)?x:new ut(x)}}),h2e=ec(function(h,p){return bo(p,function(x){x=Ya(x),Xl(h,x,AT(h[x],h))}),h});function f2e(h){var p=h==null?0:h.length,x=Qe();return h=p?Yn(h,function(O){if(typeof O[1]!="function")throw new yo(i);return[x(O[0]),O[1]]}):[],Ft(function(O){for(var W=-1;++W<p;){var V=h[W];if(js(V[0],this,O))return js(V[1],this,O)}})}function p2e(h){return $0e(wo(h,c))}function IT(h){return function(){return h}}function m2e(h,p){return h==null||h!==h?p:h}var g2e=e7(),b2e=e7(!0);function hs(h){return h}function PT(h){return M8(typeof h=="function"?h:wo(h,c))}function y2e(h){return R8(wo(h,c))}function v2e(h,p){return I8(h,wo(p,c))}var w2e=Ft(function(h,p){return function(x){return bb(x,h,p)}}),_2e=Ft(function(h,p){return function(x){return bb(h,x,p)}});function OT(h,p,x){var O=Qr(p),W=G0(p,O);x==null&&!(nr(p)&&(W.length||!O.length))&&(x=p,p=h,h=this,W=G0(p,Qr(p)));var V=!(nr(x)&&"chain"in x)||!!x.chain,Y=nc(h);return bo(W,function(ne){var se=p[ne];h[ne]=se,Y&&(h.prototype[ne]=function(){var ge=this.__chain__;if(V||ge){var ye=h(this.__wrapped__),_e=ye.__actions__=cs(this.__actions__);return _e.push({func:se,args:arguments,thisArg:h}),ye.__chain__=ge,ye}return se.apply(h,cu([this.value()],arguments))})}),h}function S2e(){return Yr._===this&&(Yr._=Gwe),this}function NT(){}function C2e(h){return h=yt(h),Ft(function(p){return P8(p,h)})}var x2e=fT(Yn),k2e=fT(t8),A2e=fT(qE);function X7(h){return wT(h)?$E(Ya(h)):n1e(h)}function F2e(h){return function(p){return h==null?t:fh(h,p)}}var E2e=n7(),T2e=n7(!0);function LT(){return[]}function qT(){return!1}function M2e(){return{}}function D2e(){return""}function R2e(){return!0}function I2e(h,p){if(h=yt(h),h<1||h>P)return[];var x=z,O=xi(h,z);p=Qe(p),h-=z;for(var W=WE(O,p);++x<h;)p(x);return W}function P2e(h){return ft(h)?Yn(h,Ya):Bs(h)?[h]:cs(y7(bn(h)))}function O2e(h){var p=++Vwe;return bn(h)+p}var N2e=e1(function(h,p){return h+p},0),L2e=pT("ceil"),q2e=e1(function(h,p){return h/p},1),$2e=pT("floor");function z2e(h){return h&&h.length?K0(h,hs,ZE):t}function j2e(h,p){return h&&h.length?K0(h,Qe(p,2),ZE):t}function W2e(h){return i8(h,hs)}function U2e(h,p){return i8(h,Qe(p,2))}function B2e(h){return h&&h.length?K0(h,hs,rT):t}function H2e(h,p){return h&&h.length?K0(h,Qe(p,2),rT):t}var V2e=e1(function(h,p){return h*p},1),K2e=pT("round"),G2e=e1(function(h,p){return h-p},0);function J2e(h){return h&&h.length?jE(h,hs):0}function Y2e(h,p){return h&&h.length?jE(h,Qe(p,2)):0}return H.after=ySe,H.ary=T7,H.assign=sCe,H.assignIn=U7,H.assignInWith=f1,H.assignWith=oCe,H.at=aCe,H.before=M7,H.bind=AT,H.bindAll=h2e,H.bindKey=D7,H.castArray=MSe,H.chain=A7,H.chunk=$1e,H.compact=z1e,H.concat=j1e,H.cond=f2e,H.conforms=p2e,H.constant=IT,H.countBy=J_e,H.create=lCe,H.curry=R7,H.curryRight=I7,H.debounce=P7,H.defaults=cCe,H.defaultsDeep=uCe,H.defer=vSe,H.delay=wSe,H.difference=W1e,H.differenceBy=U1e,H.differenceWith=B1e,H.drop=H1e,H.dropRight=V1e,H.dropRightWhile=K1e,H.dropWhile=G1e,H.fill=J1e,H.filter=Q_e,H.flatMap=eSe,H.flatMapDeep=tSe,H.flatMapDepth=nSe,H.flatten=S7,H.flattenDeep=Y1e,H.flattenDepth=Q1e,H.flip=_Se,H.flow=g2e,H.flowRight=b2e,H.fromPairs=X1e,H.functions=bCe,H.functionsIn=yCe,H.groupBy=rSe,H.initial=e_e,H.intersection=t_e,H.intersectionBy=n_e,H.intersectionWith=r_e,H.invert=wCe,H.invertBy=_Ce,H.invokeMap=sSe,H.iteratee=PT,H.keyBy=oSe,H.keys=Qr,H.keysIn=ds,H.map=a1,H.mapKeys=CCe,H.mapValues=xCe,H.matches=y2e,H.matchesProperty=v2e,H.memoize=c1,H.merge=kCe,H.mergeWith=B7,H.method=w2e,H.methodOf=_2e,H.mixin=OT,H.negate=u1,H.nthArg=C2e,H.omit=ACe,H.omitBy=FCe,H.once=SSe,H.orderBy=aSe,H.over=x2e,H.overArgs=CSe,H.overEvery=k2e,H.overSome=A2e,H.partial=FT,H.partialRight=O7,H.partition=lSe,H.pick=ECe,H.pickBy=H7,H.property=X7,H.propertyOf=F2e,H.pull=a_e,H.pullAll=x7,H.pullAllBy=l_e,H.pullAllWith=c_e,H.pullAt=u_e,H.range=E2e,H.rangeRight=T2e,H.rearg=xSe,H.reject=dSe,H.remove=d_e,H.rest=kSe,H.reverse=xT,H.sampleSize=fSe,H.set=MCe,H.setWith=DCe,H.shuffle=pSe,H.slice=h_e,H.sortBy=bSe,H.sortedUniq=v_e,H.sortedUniqBy=w_e,H.split=e2e,H.spread=ASe,H.tail=__e,H.take=S_e,H.takeRight=C_e,H.takeRightWhile=x_e,H.takeWhile=k_e,H.tap=z_e,H.throttle=FSe,H.thru=o1,H.toArray=z7,H.toPairs=V7,H.toPairsIn=K7,H.toPath=P2e,H.toPlainObject=W7,H.transform=RCe,H.unary=ESe,H.union=A_e,H.unionBy=F_e,H.unionWith=E_e,H.uniq=T_e,H.uniqBy=M_e,H.uniqWith=D_e,H.unset=ICe,H.unzip=kT,H.unzipWith=k7,H.update=PCe,H.updateWith=OCe,H.values=np,H.valuesIn=NCe,H.without=R_e,H.words=Y7,H.wrap=TSe,H.xor=I_e,H.xorBy=P_e,H.xorWith=O_e,H.zip=N_e,H.zipObject=L_e,H.zipObjectDeep=q_e,H.zipWith=$_e,H.entries=V7,H.entriesIn=K7,H.extend=U7,H.extendWith=f1,OT(H,H),H.add=N2e,H.attempt=Q7,H.camelCase=zCe,H.capitalize=G7,H.ceil=L2e,H.clamp=LCe,H.clone=DSe,H.cloneDeep=ISe,H.cloneDeepWith=PSe,H.cloneWith=RSe,H.conformsTo=OSe,H.deburr=J7,H.defaultTo=m2e,H.divide=q2e,H.endsWith=jCe,H.eq=fa,H.escape=WCe,H.escapeRegExp=UCe,H.every=Y_e,H.find=X_e,H.findIndex=w7,H.findKey=dCe,H.findLast=Z_e,H.findLastIndex=_7,H.findLastKey=hCe,H.floor=$2e,H.forEach=F7,H.forEachRight=E7,H.forIn=fCe,H.forInRight=pCe,H.forOwn=mCe,H.forOwnRight=gCe,H.get=MT,H.gt=NSe,H.gte=LSe,H.has=vCe,H.hasIn=DT,H.head=C7,H.identity=hs,H.includes=iSe,H.indexOf=Z1e,H.inRange=qCe,H.invoke=SCe,H.isArguments=gh,H.isArray=ft,H.isArrayBuffer=qSe,H.isArrayLike=us,H.isArrayLikeObject=gr,H.isBoolean=$Se,H.isBuffer=bu,H.isDate=zSe,H.isElement=jSe,H.isEmpty=WSe,H.isEqual=USe,H.isEqualWith=BSe,H.isError=ET,H.isFinite=HSe,H.isFunction=nc,H.isInteger=N7,H.isLength=d1,H.isMap=L7,H.isMatch=VSe,H.isMatchWith=KSe,H.isNaN=GSe,H.isNative=JSe,H.isNil=QSe,H.isNull=YSe,H.isNumber=q7,H.isObject=nr,H.isObjectLike=sr,H.isPlainObject=Cb,H.isRegExp=TT,H.isSafeInteger=XSe,H.isSet=$7,H.isString=h1,H.isSymbol=Bs,H.isTypedArray=tp,H.isUndefined=ZSe,H.isWeakMap=eCe,H.isWeakSet=tCe,H.join=i_e,H.kebabCase=BCe,H.last=So,H.lastIndexOf=s_e,H.lowerCase=HCe,H.lowerFirst=VCe,H.lt=nCe,H.lte=rCe,H.max=z2e,H.maxBy=j2e,H.mean=W2e,H.meanBy=U2e,H.min=B2e,H.minBy=H2e,H.stubArray=LT,H.stubFalse=qT,H.stubObject=M2e,H.stubString=D2e,H.stubTrue=R2e,H.multiply=V2e,H.nth=o_e,H.noConflict=S2e,H.noop=NT,H.now=l1,H.pad=KCe,H.padEnd=GCe,H.padStart=JCe,H.parseInt=YCe,H.random=$Ce,H.reduce=cSe,H.reduceRight=uSe,H.repeat=QCe,H.replace=XCe,H.result=TCe,H.round=K2e,H.runInContext=ie,H.sample=hSe,H.size=mSe,H.snakeCase=ZCe,H.some=gSe,H.sortedIndex=f_e,H.sortedIndexBy=p_e,H.sortedIndexOf=m_e,H.sortedLastIndex=g_e,H.sortedLastIndexBy=b_e,H.sortedLastIndexOf=y_e,H.startCase=t2e,H.startsWith=n2e,H.subtract=G2e,H.sum=J2e,H.sumBy=Y2e,H.template=r2e,H.times=I2e,H.toFinite=rc,H.toInteger=yt,H.toLength=j7,H.toLower=i2e,H.toNumber=Co,H.toSafeInteger=iCe,H.toString=bn,H.toUpper=s2e,H.trim=o2e,H.trimEnd=a2e,H.trimStart=l2e,H.truncate=c2e,H.unescape=u2e,H.uniqueId=O2e,H.upperCase=d2e,H.upperFirst=RT,H.each=F7,H.eachRight=E7,H.first=C7,OT(H,function(){var h={};return Ga(H,function(p,x){xn.call(H.prototype,x)||(h[x]=p)}),h}(),{chain:!1}),H.VERSION=e,bo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(h){H[h].placeholder=H}),bo(["drop","take"],function(h,p){qt.prototype[h]=function(x){x=x===t?1:jr(yt(x),0);var O=this.__filtered__&&!p?new qt(this):this.clone();return O.__filtered__?O.__takeCount__=xi(x,O.__takeCount__):O.__views__.push({size:xi(x,z),type:h+(O.__dir__<0?"Right":"")}),O},qt.prototype[h+"Right"]=function(x){return this.reverse()[h](x).reverse()}}),bo(["filter","map","takeWhile"],function(h,p){var x=p+1,O=x==D||x==$;qt.prototype[h]=function(W){var V=this.clone();return V.__iteratees__.push({iteratee:Qe(W,3),type:x}),V.__filtered__=V.__filtered__||O,V}}),bo(["head","last"],function(h,p){var x="take"+(p?"Right":"");qt.prototype[h]=function(){return this[x](1).value()[0]}}),bo(["initial","tail"],function(h,p){var x="drop"+(p?"":"Right");qt.prototype[h]=function(){return this.__filtered__?new qt(this):this[x](1)}}),qt.prototype.compact=function(){return this.filter(hs)},qt.prototype.find=function(h){return this.filter(h).head()},qt.prototype.findLast=function(h){return this.reverse().find(h)},qt.prototype.invokeMap=Ft(function(h,p){return typeof h=="function"?new qt(this):this.map(function(x){return bb(x,h,p)})}),qt.prototype.reject=function(h){return this.filter(u1(Qe(h)))},qt.prototype.slice=function(h,p){h=yt(h);var x=this;return x.__filtered__&&(h>0||p<0)?new qt(x):(h<0?x=x.takeRight(-h):h&&(x=x.drop(h)),p!==t&&(p=yt(p),x=p<0?x.dropRight(-p):x.take(p-h)),x)},qt.prototype.takeRightWhile=function(h){return this.reverse().takeWhile(h).reverse()},qt.prototype.toArray=function(){return this.take(z)},Ga(qt.prototype,function(h,p){var x=/^(?:filter|find|map|reject)|While$/.test(p),O=/^(?:head|last)$/.test(p),W=H[O?"take"+(p=="last"?"Right":""):p],V=O||/^find/.test(p);W&&(H.prototype[p]=function(){var Y=this.__wrapped__,ne=O?[1]:arguments,se=Y instanceof qt,ge=ne[0],ye=se||ft(Y),_e=function(Ot){var jt=W.apply(H,cu([Ot],ne));return O&&Oe?jt[0]:jt};ye&&x&&typeof ge=="function"&&ge.length!=1&&(se=ye=!1);var Oe=this.__chain__,Be=!!this.__actions__.length,Ze=V&&!Oe,Ct=se&&!Be;if(!V&&ye){Y=Ct?Y:new qt(this);var et=h.apply(Y,ne);return et.__actions__.push({func:o1,args:[_e],thisArg:t}),new vo(et,Oe)}return Ze&&Ct?h.apply(this,ne):(et=this.thru(_e),Ze?O?et.value()[0]:et.value():et)})}),bo(["pop","push","shift","sort","splice","unshift"],function(h){var p=R0[h],x=/^(?:push|sort|unshift)$/.test(h)?"tap":"thru",O=/^(?:pop|shift)$/.test(h);H.prototype[h]=function(){var W=arguments;if(O&&!this.__chain__){var V=this.value();return p.apply(ft(V)?V:[],W)}return this[x](function(Y){return p.apply(ft(Y)?Y:[],W)})}}),Ga(qt.prototype,function(h,p){var x=H[p];if(x){var O=x.name+"";xn.call(Yf,O)||(Yf[O]=[]),Yf[O].push({name:p,func:x})}}),Yf[Z0(t,g).name]=[{name:"wrapper",func:t}],qt.prototype.clone=u0e,qt.prototype.reverse=d0e,qt.prototype.value=h0e,H.prototype.at=j_e,H.prototype.chain=W_e,H.prototype.commit=U_e,H.prototype.next=B_e,H.prototype.plant=V_e,H.prototype.reverse=K_e,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=G_e,H.prototype.first=H.prototype.head,ub&&(H.prototype[ub]=H_e),H},du=Uwe();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Yr._=du,define(function(){return du})):lh?((lh.exports=du)._=du,PE._=du):Yr._=du}).call(ib)});var dve=I(pE=>{"use strict";Object.defineProperty(pE,"__esModule",{value:!0});pE.YamlCodeActions=void 0;var ln=yr(),iht=uW(),sht=require("path"),lve=Af(),oht=kf(),aht=nw(),lht=Gd(),ih=Li(),cht=po(),uht=ove(),dht=ave(),cve=(Lw(),or(Nw)),Lf=cr(),fW=class{constructor(e){this.clientCapabilities=e,this.indentation=" "}configure(e){this.indentation=e.indentation}getCodeAction(e,n){if(!n.context.diagnostics)return;let r=[];return r.push(...this.getConvertToBooleanActions(n.context.diagnostics,e)),r.push(...this.getJumpToSchemaActions(n.context.diagnostics)),r.push(...this.getTabToSpaceConverting(n.context.diagnostics,e)),r.push(...this.getUnusedAnchorsDelete(n.context.diagnostics,e)),r.push(...this.getConvertToBlockStyleActions(n.context.diagnostics,e)),r.push(...this.getKeyOrderActions(n.context.diagnostics,e)),r.push(...this.getQuickFixForPropertyOrValueMismatch(n.context.diagnostics,e)),r}getJumpToSchemaActions(e){if(!(this.clientCapabilities?.window?.showDocument?.support??!1))return[];let r=new Map;for(let s of e){let o=s.data?.schemaUri||[];for(let a of o)a&&(r.has(a)||r.set(a,[]),r.get(a).push(s))}let i=[];for(let s of r.keys()){let o=ln.CodeAction.create(Lf.t("jumpToSchema",sht.basename(s)),ln.Command.create("JumpToSchema",iht.YamlCommands.JUMP_TO_SCHEMA,s));o.diagnostics=r.get(s),i.push(o)}return i}getTabToSpaceConverting(e,n){let r=[],i=new lve.TextBuffer(n),s=[];for(let o of e)if(o.message==="Tabs are not allowed as indentation"){if(s.includes(o.range.start.line))continue;let a=i.getLineContent(o.range.start.line),l=0,c="";for(let d=o.range.start.character;d<=o.range.end.character&&a.charAt(d)===" ";d++)l++,c+=this.indentation;s.push(o.range.start.line);let u=o.range;l!==o.range.end.character-o.range.start.character&&(u=ln.Range.create(o.range.start,ln.Position.create(o.range.end.line,o.range.start.character+l))),r.push(ln.CodeAction.create(Lf.t("convertToSpace"),qf(n.uri,[ln.TextEdit.replace(u,c)]),ln.CodeActionKind.QuickFix))}if(r.length!==0){let o=[];for(let a=0;a<=i.getLineCount();a++){let l=i.getLineContent(a),c=0,u="";for(let d=0;d<l.length;d++){let f=l.charAt(d);if(f!==" "&&f!==" "){c!==0&&(o.push(ln.TextEdit.replace(ln.Range.create(a,d-c,a,d),u)),c=0,u="");break}if(f===" "&&c!==0){o.push(ln.TextEdit.replace(ln.Range.create(a,d-c,a,d),u)),c=0,u="";continue}f===" "&&(u+=this.indentation,c++)}c!==0&&o.push(ln.TextEdit.replace(ln.Range.create(a,0,a,i.getLineLength(a)),u))}o.length>0&&r.push(ln.CodeAction.create(Lf.t("convertAllSpaceToTab"),qf(n.uri,o),ln.CodeActionKind.QuickFix))}return r}getUnusedAnchorsDelete(e,n){let r=[],i=new lve.TextBuffer(n);for(let s of e)if(s.message.startsWith("Unused anchor")&&s.source===oht.YAML_SOURCE){let o=ln.Range.create(s.range.start,s.range.end),a=i.getText(o),l=i.getLineContent(o.end.line),c=(0,aht.getFirstNonWhitespaceCharacterAfterOffset)(l,o.end.character);o.end.character=c;let u=ln.CodeAction.create(Lf.t("deleteUnusedAnchor",a),qf(n.uri,[ln.TextEdit.del(o)]),ln.CodeActionKind.QuickFix);u.diagnostics=[s],r.push(u)}return r}getConvertToBooleanActions(e,n){let r=[];for(let i of e)if(i.message==='Incorrect type. Expected "boolean".'){let s=n.getText(i.range).toLocaleLowerCase();if(s==='"true"'||s==='"false"'||s==="'true'"||s==="'false'"){let o=s.includes("true")?"true":"false";r.push(ln.CodeAction.create(Lf.t("convertToBoolean"),qf(n.uri,[ln.TextEdit.replace(i.range,o)]),ln.CodeActionKind.QuickFix))}}return r}getConvertToBlockStyleActions(e,n){let r=[];for(let i of e)if(i.code==="flowMap"||i.code==="flowSeq"){let s=uve(n,i);if((0,ih.isMap)(s.internalNode)||(0,ih.isSeq)(s.internalNode)){let o=(0,ih.isMap)(s.internalNode)?"map":"sequence",a=new uht.FlowStyleRewriter(this.indentation);r.push(ln.CodeAction.create(Lf.t("convertToBlockStyle","Convert to block style {0}",o),qf(n.uri,[ln.TextEdit.replace(i.range,a.write(s))]),ln.CodeActionKind.QuickFix))}}return r}getKeyOrderActions(e,n){let r=[];for(let i of e)if(i?.code==="mapKeyOrder"){let s=uve(n,i);for(;s&&s.type!=="object";)s=s.parent;if(s&&(0,ih.isMap)(s.internalNode)){let o=dht.cloneDeep(s.internalNode);if((o.srcToken.type==="block-map"||o.srcToken.type==="flow-collection")&&(s.internalNode.srcToken.type==="block-map"||s.internalNode.srcToken.type==="flow-collection")){o.srcToken.items.sort((l,c)=>{if(l.key&&c.key&&ih.CST.isScalar(l.key)&&ih.CST.isScalar(c.key))return l.key.source.localeCompare(c.key.source);if(!l.key&&c.key)return-1;if(l.key&&!c.key)return 1;if(!l.key&&!c.key)return 0});for(let l=0;l<o.srcToken.items.length;l++){let c=o.srcToken.items[l],u=s.internalNode.srcToken.items[l];if(c.start=u.start,c.value?.type==="alias"||c.value?.type==="scalar"||c.value?.type==="single-quoted-scalar"||c.value?.type==="double-quoted-scalar"){let d=c.value?.end?.findIndex(m=>m.type==="newline")??-1,f=null;u.value?.type==="block-scalar"?f=u.value?.props?.find(m=>m.type==="newline"):ih.CST.isScalar(u.value)&&(f=u.value?.end?.find(m=>m.type==="newline")),f&&d<0&&(c.value.end=c.value.end??[],c.value.end.push(f)),!f&&d>-1&&c.value.end.splice(d,1)}else c.value?.type==="block-scalar"&&(c.value.props.find(f=>f.type==="newline")||c.value.props.push({type:"newline",indent:0,offset:c.value.offset,source:`
|
|
1061
1061
|
`}))}}let a=ln.Range.create(n.positionAt(s.offset),n.positionAt(s.offset+s.length));r.push(ln.CodeAction.create(Lf.t("fixKeyOrderToMap"),qf(n.uri,[ln.TextEdit.replace(a,ih.CST.stringify(o.srcToken))]),ln.CodeActionKind.QuickFix))}}return r}getPossibleQuickFixValues(e){if(typeof e.data=="object"){if(e.code===cve.ErrorCode.EnumValueMismatch&&"values"in e.data&&Array.isArray(e.data.values))return e.data.values;if(e.code===cve.ErrorCode.PropertyExpected&&"properties"in e.data&&Array.isArray(e.data.properties))return e.data.properties}}getQuickFixForPropertyOrValueMismatch(e,n){let r=[];for(let i of e){let s=this.getPossibleQuickFixValues(i);if(s?.length)for(let o of s)r.push(ln.CodeAction.create(String(o),qf(n.uri,[ln.TextEdit.replace(i.range,String(o))]),ln.CodeActionKind.QuickFix))}return r}};pE.YamlCodeActions=fW;function uve(t,e){let n=cht.yamlDocumentsCache.getYamlDocument(t),r=t.offsetAt(e.range.start);return(0,lht.matchOffsetToDocument)(r,n).getNodeFromOffset(r)}function qf(t,e){let n={};return n[t]=e,{changes:n}}});var hve=I(mE=>{"use strict";Object.defineProperty(mE,"__esModule",{value:!0});mE.doDocumentOnTypeFormatting=void 0;var sh=yr(),hht=Af();function fht(t,e){let{position:n}=e,r=new hht.TextBuffer(t);if(e.ch===`
|
|
1062
1062
|
`){let i=r.getLineContent(n.line-1);if(i.trimRight().endsWith(":")){let s=r.getLineContent(n.line),o=s.substring(n.character,s.length),a=i.indexOf(" - ")!==-1;if(o.trimRight().length===0){let l=n.character-(i.length-i.trimLeft().length);if(l===e.options.tabSize&&!a)return;let c=[];return s.length>0&&c.push(sh.TextEdit.del(sh.Range.create(n,sh.Position.create(n.line,s.length-1)))),c.push(sh.TextEdit.insert(n," ".repeat(e.options.tabSize+(a?2-l:0)))),c}if(a)return[sh.TextEdit.insert(n," ".repeat(e.options.tabSize))]}if(i.trimRight().endsWith("|"))return[sh.TextEdit.insert(n," ".repeat(e.options.tabSize))];if(i.includes(" - ")&&!i.includes(": "))return[sh.TextEdit.insert(n,"- ")];if(i.includes(" - ")&&i.includes(": "))return[sh.TextEdit.insert(n," ")]}}mE.doDocumentOnTypeFormatting=fht});var fve=I(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.workspaceFoldersChanged=oh.relativeToAbsolutePath=oh.isRelativePath=void 0;var gE=require("path"),pW=rt(),pht=t=>/^(((\.\.?)|([\w-@. ]+))(\/|\\\\?))*[\w-. ]*\.[\w-]+$/i.test(t);oh.isRelativePath=pht;var mht=(t,e,n)=>{for(let r of t)if(n.startsWith(r.name)){let i=pW.URI.parse(r.uri).fsPath,s=n.split(gE.sep);return s.shift(),pW.URI.file((0,gE.join)(i,s.join())).toString()}return e?pW.URI.file((0,gE.join)(e.fsPath,n)).toString():(0,gE.normalize)(n)};oh.relativeToAbsolutePath=mht;var ght=(t,e)=>(t=t.filter(n=>!e.removed.some(r=>r.uri===n.uri)),t=t.filter(n=>!e.added.some(r=>r.uri===n.uri)).concat(e.added),t);oh.workspaceFoldersChanged=ght});var gW=I(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.getSchemaUrls=Ka.checkSchemaURI=Ka.JSON_SCHEMASTORE_URL=Ka.KUBERNETES_SCHEMA_URL=void 0;var bht=tF(),pve=fve();Ka.KUBERNETES_SCHEMA_URL="https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.32.1-standalone-strict/all.json";Ka.JSON_SCHEMASTORE_URL="https://www.schemastore.org/api/json/catalog.json";function yht(t,e,n,r){return n.trim().toLowerCase()==="kubernetes"?(r.send({name:"yaml.schema.configured",properties:{kubernetes:!0}}),Ka.KUBERNETES_SCHEMA_URL):(0,pve.isRelativePath)(n)?(0,pve.relativeToAbsolutePath)(t,e,n):n}Ka.checkSchemaURI=yht;function vht(t){let e=new Map;return t&&(t.url?t.url.startsWith("schemaservice://combinedSchema/")?mve(t,e):e.set(t.url,t):mve(t,e)),e}Ka.getSchemaUrls=vht;function mve(t,e){t.allOf&&mW(t.allOf,e),t.anyOf&&mW(t.anyOf,e),t.oneOf&&mW(t.oneOf,e)}function mW(t,e){for(let n of t)!(0,bht.isBoolean)(n)&&n.url&&!e.has(n.url)&&e.set(n.url,n)}});var bve=I(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.YamlCodeLens=void 0;var gve=yr(),wht=uW(),_ht=po(),Sht=gW(),Cht=Ow(),bW=class{constructor(e,n){this.schemaService=e,this.telemetry=n}async getCodeLens(e){let n=[];try{let r=_ht.yamlDocumentsCache.getYamlDocument(e),i=new Map;for(let s of r.documents){let o=await this.schemaService.getSchemaForResource(e.uri,s);o?.schema&&(i=new Map([...(0,Sht.getSchemaUrls)(o?.schema),...i]))}for(let s of i){let o=gve.CodeLens.create(gve.Range.create(0,0,0,0));o.command={title:(0,Cht.getSchemaTitle)(s[1],s[0]),command:wht.YamlCommands.JUMP_TO_SCHEMA,arguments:[s[0]]},n.push(o)}}catch(r){this.telemetry?.sendError("yaml.codeLens.error",r)}return n}resolveCodeLens(e){return e}};bE.YamlCodeLens=bW});var yve=I(yE=>{"use strict";Object.defineProperty(yE,"__esModule",{value:!0});yE.guessIndentation=void 0;var yW=class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}};function xht(t,e,n,r,i){i.spacesDiff=0,i.looksLikeAlignment=!1;let s;for(s=0;s<e&&s<r;s++){let f=t.charCodeAt(s),m=n.charCodeAt(s);if(f!==m)break}let o=0,a=0;for(let f=s;f<e;f++)t.charCodeAt(f)===32?o++:a++;let l=0,c=0;for(let f=s;f<r;f++)n.charCodeAt(f)===32?l++:c++;if(o>0&&a>0||l>0&&c>0)return;let u=Math.abs(a-c),d=Math.abs(o-l);if(u===0){i.spacesDiff=d,d>0&&0<=l-1&&l-1<t.length&&l<n.length&&n.charCodeAt(l)!==32&&t.charCodeAt(l-1)===32&&t.charCodeAt(t.length-1)===44&&(i.looksLikeAlignment=!0);return}d%u===0&&(i.spacesDiff=d/u)}function kht(t,e,n){let r=Math.min(t.getLineCount(),1e4),i=0,s=0,o="",a=0,l=[2,4,6,8,3,5,7],c=8,u=[0,0,0,0,0,0,0,0,0],d=new yW;for(let b=1;b<=r;b++){let g=t.getLineLength(b),w=t.getLineContent(b),_=g<=65536,S=!1,v=0,T=0,A=0;for(let k=0,y=g;k<y;k++){let C=_?w.charCodeAt(k):t.getLineCharCode(b,k);if(C===9)A++;else if(C===32)T++;else{S=!0,v=k;break}}if(!S||(A>0?i++:T>1&&s++,xht(o,a,w,v,d),d.looksLikeAlignment&&!(n&&e===d.spacesDiff)))continue;let R=d.spacesDiff;R<=c&&u[R]++,o=w,a=v}let f=n;i!==s&&(f=i<s);let m=e;if(f){let b=f?0:.1*r;l.forEach(g=>{let w=u[g];w>b&&(b=w,m=g)}),m===4&&u[4]>0&&u[2]>0&&u[2]>=u[4]/2&&(m=2)}return{insertSpaces:f,tabSize:m}}yE.guessIndentation=kht});var vve=I(wE=>{"use strict";Object.defineProperty(wE,"__esModule",{value:!0});wE.stringifyObject=void 0;function vE(t,e,n,r,i=0,s=0){if(t!==null&&typeof t=="object"){let o=i===0&&r.shouldIndentWithTab||i>0?e+r.indentation:"";if(Array.isArray(t)){if(s+=1,t.length===0)return"";let a="";for(let l=0;l<t.length;l++){let c=t[l];if(typeof t[l]!="object"){a+=`
|
|
1063
1063
|
`+o+"- "+n(t[l]);continue}Array.isArray(t[l])||(c=Aht(t[l],s)),a+=vE(c,e,n,r,i+=1,s)}return a}else{let a=Object.keys(t);if(a.length===0)return"";let l=i===0&&r.newLineFirst||i>0?`
|
|
@@ -1104,7 +1104,7 @@ ${n}
|
|
|
1104
1104
|
`]},documentSymbolProvider:!0,hoverProvider:!0,documentLinkProvider:{},foldingRangeProvider:!0,selectionRangeProvider:!0},create(i){let s=gft.getLanguageService({schemaRequestService:async u=>await i.env.fs?.readFile(xW.URI.parse(u))??"",telemetry:{send:kW,sendError:kW,sendTrack:kW},clientCapabilities:i.env?.clientCapabilities,workspaceContext:e(i)}),o=r(()=>a=void 0,i),a;return{dispose(){o.dispose()},provide:{"yaml/languageService":()=>s},provideCodeActions(u,d,f){return l(u,()=>s.getCodeAction(u,{context:f,range:d,textDocument:u}))},provideCodeLenses(u){return l(u,()=>s.getCodeLens(u))},provideCompletionItems(u,d){return l(u,()=>s.doComplete(u,d,!1))},provideDefinition(u,d){return l(u,()=>s.doDefinition(u,{position:d,textDocument:u}))},provideDiagnostics(u){return l(u,()=>s.doValidation(u,!1))},provideDocumentSymbols(u){return l(u,()=>s.findDocumentSymbols2(u,{}))},provideHover(u,d){return l(u,()=>s.doHover(u,d))},provideDocumentLinks(u){return l(u,()=>s.findLinks(u))},provideFoldingRanges(u){return l(u,()=>s.getFoldingRanges(u,i.env.clientCapabilities?.textDocument?.foldingRange??{}))},provideOnTypeFormattingEdits(u,d,f,m){return l(u,()=>s.doDocumentOnTypeFormatting(u,{ch:f,options:m,position:d,textDocument:u}))},provideSelectionRanges(u,d){return l(u,()=>s.getSelectionRanges(u,d))},resolveCodeLens(u){return s.resolveCodeLens(u)}};async function l(u,d){if(yft(t,u))return await(a??=c()),await d()}async function c(){let u=await n(i);s.configure(u)}}}}function yft(t,e){for(let n of t)if(n===e.languageId||typeof n=="object"&&n.language===e.languageId)return!0;return!1}});var Nve=I(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});_0.create=void 0;_0.getSettings=FW;var sb=dc(),vft=Ive(),Pve=rt(),Ove=sC();function FW(t){let e=t.configs.flatMap(n=>n.config.collections.flatMap(r=>({fileMatch:Ove.SUPPORTED_FRONTMATTER_EXTENSIONS_KEYS.map(i=>`volar-embedded-content://yaml_frontmatter_${r.name}/**/*${i}`),uri:Pve.Utils.joinPath(n.folder,".astro/collections",`${r.name}.schema.json`).toString()})));return{completion:!0,format:!1,hover:!0,validate:!0,customTags:[],yamlVersion:"1.2",isKubernetes:!1,parentSkeletonSelectedFirst:!1,disableDefaultProperties:!1,schemas:e}}var wft=t=>{let e=(0,vft.create)({getLanguageSettings:()=>FW(t)});return{...e,capabilities:{...e.capabilities,codeLensProvider:void 0},create(n){let r=e.create(n),i=r.provide?.["yaml/languageService"]();return i&&n.env.onDidChangeWatchedFiles&&n.env.onDidChangeWatchedFiles(async s=>{let o=s.changes.filter(l=>l.uri.endsWith(".schema.json"));s.changes.some(l=>l.uri.endsWith("collections.json"))&&(t.reload(n.env.workspaceFolders.map(l=>({uri:l.toString()}))),i.configure(FW(t)));for(let l of o)i.resetSchema(l.uri)}),{...r,provideCodeLenses:void 0,resolveCodeLens:void 0,async provideDiagnostics(s,o){let a=await r.provideDiagnostics(s,o);if(!a)return null;let l=n.decodeEmbeddedDocumentUri(Pve.URI.parse(s.uri)),u=(l&&n.language.scripts.get(l[0]))?.generated?.root;if(u instanceof Ove.FrontmatterHolder)return!u.hasFrontmatter&&a.length>0?[sb.Diagnostic.create(sb.Range.create(0,0,0,0),"Frontmatter is required for this file.",sb.DiagnosticSeverity.Error)]:a.map(d=>(d.source?.startsWith("yaml-schema:")&&(d.source="astro",d.severity=sb.DiagnosticSeverity.Error,d.message.startsWith("Missing property")&&(d.range=sb.Range.create({line:0,character:0},s.positionAt(s.getText().length)))),d))},async provideHover(s,o,a){let l=await r.provideHover(s,o,a);return l?(sb.MarkupContent.is(l.contents)&&(l.contents.value=l.contents.value.replace(/\nSource:.*$/,"").replace(/\n\nsource$/,"").trim()),l):null}}}}};_0.create=wft});var qve=I(FE=>{"use strict";Object.defineProperty(FE,"__esModule",{value:!0});FE.getLanguagePlugins=Oft;FE.getLanguageServicePlugins=Nft;var AE=BI(),_ft=kne(),Sft=uoe(),Cft=hoe(),xft=foe(),kft=rt(),Aft=xc(),Fft=sC(),Eft=poe(),Tft=moe(),Lve=oC(),Mft=ace(),Dft=fce(),Rft=xhe(),Ift=Fhe(),Pft=Nve();function Oft(t){return[(0,Aft.getAstroLanguagePlugin)(),(0,Tft.getVueLanguagePlugin)(),(0,Eft.getSvelteLanguagePlugin)(),(0,Fft.getFrontmatterLanguagePlugin)(t)]}function Nft(t,e,n,r){return[(0,Dft.create)(),(0,_ft.create)(),(0,Sft.create)(),...(0,Rft.create)(e,{disableAutoImportCache:r?.initializationOptions?.disableAutoImportCache}),(0,xft.create)(e),(0,Ift.create)(),(0,Mft.create)(e),s(),(0,Pft.create)(n)];function s(){let o,a,l=!1;return(0,Cft.create)(c=>{for(let u of c.env.workspaceFolders)if(u.scheme==="file")return o=(0,Lve.importPrettier)(u.fsPath),a=(0,Lve.getPrettierPluginPath)(u.fsPath),(!o||!a)&&!l&&(t.sendNotification(AE.ShowMessageNotification.type,{message:"Couldn't load `prettier` or `prettier-plugin-astro`. Formatting will not work. Please make sure those two packages are installed into your project and restart the language server.",type:AE.MessageType.Warning}),l=!0),o},{documentSelector:["astro"],getFormattingOptions:async(c,u,d,f)=>{let m=kft.URI.parse(u.uri),g=(f.decodeEmbeddedDocumentUri(m)?.[0]??m).fsPath;if(!g)return{};let w=null;try{w=await c.resolveConfig(g,{useCache:!1,editorconfig:!0})}catch(T){t.sendNotification(AE.ShowMessageNotification.type,{message:`Failed to load Prettier config.
|
|
1105
1105
|
|
|
1106
1106
|
Error:
|
|
1107
|
-
${T}`,type:AE.MessageType.Warning}),console.error("Failed to load Prettier config.",T)}let _=await f.env.getConfiguration?.("prettier",u.uri),S={filepath:g,tabWidth:d.tabSize,useTabs:!d.insertSpaces,..._,...w};return{...S,plugins:[...await v(),...S.plugins??[]],parser:"astro"};async function v(){return!o||!a?[]:(await o.getSupportInfo()).languages.some(A=>A.name==="astro")||S.plugins?.includes("prettier-plugin-astro")?[]:[a]}}})}}});var Wve=I(jve=>{"use strict";Object.defineProperty(jve,"__esModule",{value:!0});var ob=BI(),$ve=rt(),Lft=sC(),qft=xc(),zve=qve(),$ft=xO(),ab=(0,ob.createConnection)(),jf=(0,ob.createServer)(ab),EW=!1;ab.listen();ab.onInitialize(t=>{let e=t.initializationOptions?.typescript?.tsdk;if(!e)throw new Error("The `typescript.tsdk` init option is required. It should point to a directory containing a `typescript.js` or `tsserverlibrary.js` file, such as `node_modules/typescript/lib`.");let{typescript:n,diagnosticMessages:r}=(0,ob.loadTsdkByPath)(e,t.locale);EW=t.initializationOptions?.contentIntellisense??!1;let i={reload(o){this.configs=s(o)},configs:EW?s(t.workspaceFolders??(t.rootUri?[{uri:t.rootUri}]:[])??[]):[]};function s(o){return o.flatMap(a=>{try{let l=$ve.URI.parse(a.uri),c=jf.fileSystem.readFile($ve.Utils.joinPath(l,".astro/collections/collections.json"));if(!c)return[];let u=JSON.parse(c);return{folder:l,config:u}}catch(l){return l&&l.code!=="ENOENT"&&console.error(l),[]}})}return jf.initialize(t,(0,ob.createTypeScriptProject)(n,r,({env:o})=>({languagePlugins:(0,zve.getLanguagePlugins)(i),setup({project:a}){let{languageServiceHost:l,configFileName:c}=a.typescript,u=c?c.split("/").slice(0,-1).join("/"):o.workspaceFolders[0].fsPath,d=n.findConfigFile(u,n.sys.fileExists,"package.json"),f=(0,$ft.getAstroInstall)([u],{nearestPackageJson:d,readDirectory:n.sys.readDirectory});f==="not-found"&&ab.sendNotification(ob.ShowMessageNotification.type,{message:`Couldn't find Astro in workspace "${u}". Experience might be degraded. For the best experience, please make sure Astro is installed into your project and restart the language server.`,type:ob.MessageType.Warning}),(0,qft.addAstroTypes)(typeof f=="string"?void 0:f,n,l)}})),(0,zve.getLanguageServicePlugins)(ab,n,i,t))});ab.onInitialized(()=>{jf.initialized();let t=["js","cjs","mjs","ts","cts","mts","jsx","tsx","json","astro","vue","svelte"];EW&&(t.push(...Lft.SUPPORTED_FRONTMATTER_EXTENSIONS_KEYS),jf.fileWatcher.watchFiles(["**/*.schema.json","**/collections.json"]),jf.fileWatcher.onDidChangeWatchedFiles(({changes:e})=>{e.some(r=>r.uri.endsWith(".schema.json")||r.uri.endsWith("collections.json"))&&jf.project.reload()})),jf.fileWatcher.watchFiles([`**/*.{${t.join(",")}}`])})});if(process.argv.includes("--version")){let t=
|
|
1107
|
+
${T}`,type:AE.MessageType.Warning}),console.error("Failed to load Prettier config.",T)}let _=await f.env.getConfiguration?.("prettier",u.uri),S={filepath:g,tabWidth:d.tabSize,useTabs:!d.insertSpaces,..._,...w};return{...S,plugins:[...await v(),...S.plugins??[]],parser:"astro"};async function v(){return!o||!a?[]:(await o.getSupportInfo()).languages.some(A=>A.name==="astro")||S.plugins?.includes("prettier-plugin-astro")?[]:[a]}}})}}});var Wve=I(jve=>{"use strict";Object.defineProperty(jve,"__esModule",{value:!0});var ob=BI(),$ve=rt(),Lft=sC(),qft=xc(),zve=qve(),$ft=xO(),ab=(0,ob.createConnection)(),jf=(0,ob.createServer)(ab),EW=!1;ab.listen();ab.onInitialize(t=>{let e=t.initializationOptions?.typescript?.tsdk;if(!e)throw new Error("The `typescript.tsdk` init option is required. It should point to a directory containing a `typescript.js` or `tsserverlibrary.js` file, such as `node_modules/typescript/lib`.");let{typescript:n,diagnosticMessages:r}=(0,ob.loadTsdkByPath)(e,t.locale);EW=t.initializationOptions?.contentIntellisense??!1;let i={reload(o){this.configs=s(o)},configs:EW?s(t.workspaceFolders??(t.rootUri?[{uri:t.rootUri}]:[])??[]):[]};function s(o){return o.flatMap(a=>{try{let l=$ve.URI.parse(a.uri),c=jf.fileSystem.readFile($ve.Utils.joinPath(l,".astro/collections/collections.json"));if(!c)return[];let u=JSON.parse(c);return{folder:l,config:u}}catch(l){return l&&l.code!=="ENOENT"&&console.error(l),[]}})}return jf.initialize(t,(0,ob.createTypeScriptProject)(n,r,({env:o})=>({languagePlugins:(0,zve.getLanguagePlugins)(i),setup({project:a}){let{languageServiceHost:l,configFileName:c}=a.typescript,u=c?c.split("/").slice(0,-1).join("/"):o.workspaceFolders[0].fsPath,d=n.findConfigFile(u,n.sys.fileExists,"package.json"),f=(0,$ft.getAstroInstall)([u],{nearestPackageJson:d,readDirectory:n.sys.readDirectory});f==="not-found"&&ab.sendNotification(ob.ShowMessageNotification.type,{message:`Couldn't find Astro in workspace "${u}". Experience might be degraded. For the best experience, please make sure Astro is installed into your project and restart the language server.`,type:ob.MessageType.Warning}),(0,qft.addAstroTypes)(typeof f=="string"?void 0:f,n,l)}})),(0,zve.getLanguageServicePlugins)(ab,n,i,t))});ab.onInitialized(()=>{jf.initialized();let t=["js","cjs","mjs","ts","cts","mts","jsx","tsx","json","astro","vue","svelte"];EW&&(t.push(...Lft.SUPPORTED_FRONTMATTER_EXTENSIONS_KEYS),jf.fileWatcher.watchFiles(["**/*.schema.json","**/collections.json"]),jf.fileWatcher.onDidChangeWatchedFiles(({changes:e})=>{e.some(r=>r.uri.endsWith(".schema.json")||r.uri.endsWith("collections.json"))&&jf.project.reload()})),jf.fileWatcher.watchFiles([`**/*.{${t.join(",")}}`])})});if(process.argv.includes("--version")){let t=tU();console.info(`${t.version}`)}else Wve();
|
|
1108
1108
|
/*! Bundled license information:
|
|
1109
1109
|
|
|
1110
1110
|
is-extglob/index.js:
|