shifting towards manual symlinks for more complex setup than laptop, allows for GUI settings changes to actually apply, and is much easier than nix-ifying every config
87 lines
675 KiB
JavaScript
87 lines
675 KiB
JavaScript
var oT=Object.create;var ca=Object.defineProperty;var aT=Object.getOwnPropertyDescriptor;var cT=Object.getOwnPropertyNames;var uT=Object.getPrototypeOf,lT=Object.prototype.hasOwnProperty;var T=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),dT=(n,e)=>{for(var t in e)ca(n,t,{get:e[t],enumerable:!0})},Kg=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of cT(e))!lT.call(n,r)&&r!==t&&ca(n,r,{get:()=>e[r],enumerable:!(i=aT(e,r))||i.enumerable});return n};var bl=(n,e,t)=>(t=n!=null?oT(uT(n)):{},Kg(e||!n||!n.__esModule?ca(t,"default",{value:n,enumerable:!0}):t,n)),pT=n=>Kg(ca({},"__esModule",{value:!0}),n);var Xg=T((NL,Vg)=>{var Gg=require("stream").Stream,fT=require("util");Vg.exports=Bn;function Bn(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}fT.inherits(Bn,Gg);Bn.create=function(n,e){var t=new this;e=e||{};for(var i in e)t[i]=e[i];t.source=n;var r=n.emit;return n.emit=function(){return t._handleEmit(arguments),r.apply(n,arguments)},n.on("error",function(){}),t.pauseStream&&n.pause(),t};Object.defineProperty(Bn.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});Bn.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Bn.prototype.resume=function(){this._released||this.release(),this.source.resume()};Bn.prototype.pause=function(){this.source.pause()};Bn.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(n){this.emit.apply(this,n)}.bind(this)),this._bufferedEvents=[]};Bn.prototype.pipe=function(){var n=Gg.prototype.pipe.apply(this,arguments);return this.resume(),n};Bn.prototype._handleEmit=function(n){if(this._released){this.emit.apply(this,n);return}n[0]==="data"&&(this.dataSize+=n[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(n)};Bn.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var n="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(n))}}});var Zg=T((AL,Qg)=>{var hT=require("util"),Yg=require("stream").Stream,Jg=Xg();Qg.exports=dt;function dt(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}hT.inherits(dt,Yg);dt.create=function(n){var e=new this;n=n||{};for(var t in n)e[t]=n[t];return e};dt.isStreamLike=function(n){return typeof n!="function"&&typeof n!="string"&&typeof n!="boolean"&&typeof n!="number"&&!Buffer.isBuffer(n)};dt.prototype.append=function(n){var e=dt.isStreamLike(n);if(e){if(!(n instanceof Jg)){var t=Jg.create(n,{maxDataSize:1/0,pauseStream:this.pauseStreams});n.on("data",this._checkDataSize.bind(this)),n=t}this._handleErrors(n),this.pauseStreams&&n.pause()}return this._streams.push(n),this};dt.prototype.pipe=function(n,e){return Yg.prototype.pipe.call(this,n,e),this.resume(),n};dt.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};dt.prototype._realGetNext=function(){var n=this._streams.shift();if(typeof n>"u"){this.end();return}if(typeof n!="function"){this._pipeNext(n);return}var e=n;e(function(t){var i=dt.isStreamLike(t);i&&(t.on("data",this._checkDataSize.bind(this)),this._handleErrors(t)),this._pipeNext(t)}.bind(this))};dt.prototype._pipeNext=function(n){this._currentStream=n;var e=dt.isStreamLike(n);if(e){n.on("end",this._getNext.bind(this)),n.pipe(this,{end:!1});return}var t=n;this.write(t),this._getNext()};dt.prototype._handleErrors=function(n){var e=this;n.on("error",function(t){e._emitError(t)})};dt.prototype.write=function(n){this.emit("data",n)};dt.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};dt.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};dt.prototype.end=function(){this._reset(),this.emit("end")};dt.prototype.destroy=function(){this._reset(),this.emit("close")};dt.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};dt.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var n="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(n))}};dt.prototype._updateDataSize=function(){this.dataSize=0;var n=this;this._streams.forEach(function(e){e.dataSize&&(n.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};dt.prototype._emitError=function(n){this._reset(),this.emit("error",n)}});var ev=T((IL,mT)=>{mT.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var nv=T((jL,tv)=>{tv.exports=ev()});var sv=T(tn=>{"use strict";var ua=nv(),gT=require("path").extname,iv=/^\s*([^;\s]*)(?:;|\s|$)/,vT=/^text\//i;tn.charset=rv;tn.charsets={lookup:rv};tn.contentType=xT;tn.extension=yT;tn.extensions=Object.create(null);tn.lookup=bT;tn.types=Object.create(null);wT(tn.extensions,tn.types);function rv(n){if(!n||typeof n!="string")return!1;var e=iv.exec(n),t=e&&ua[e[1].toLowerCase()];return t&&t.charset?t.charset:e&&vT.test(e[1])?"UTF-8":!1}function xT(n){if(!n||typeof n!="string")return!1;var e=n.indexOf("/")===-1?tn.lookup(n):n;if(!e)return!1;if(e.indexOf("charset")===-1){var t=tn.charset(e);t&&(e+="; charset="+t.toLowerCase())}return e}function yT(n){if(!n||typeof n!="string")return!1;var e=iv.exec(n),t=e&&tn.extensions[e[1].toLowerCase()];return!t||!t.length?!1:t[0]}function bT(n){if(!n||typeof n!="string")return!1;var e=gT("x."+n).toLowerCase().substr(1);return e&&tn.types[e]||!1}function wT(n,e){var t=["nginx","apache",void 0,"iana"];Object.keys(ua).forEach(function(r){var s=ua[r],o=s.extensions;if(!(!o||!o.length)){n[r]=o;for(var a=0;a<o.length;a++){var c=o[a];if(e[c]){var u=t.indexOf(ua[e[c]].source),l=t.indexOf(s.source);if(e[c]!=="application/octet-stream"&&(u>l||u===l&&e[c].substr(0,12)==="application/"))continue}e[c]=r}}})}});var av=T((ML,ov)=>{ov.exports=_T;function _T(n){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(n):setTimeout(n,0)}});var wl=T((UL,uv)=>{var cv=av();uv.exports=ST;function ST(n){var e=!1;return cv(function(){e=!0}),function(i,r){e?n(i,r):cv(function(){n(i,r)})}}});var _l=T((zL,lv)=>{lv.exports=CT;function CT(n){Object.keys(n.jobs).forEach(RT.bind(n)),n.jobs={}}function RT(n){typeof this.jobs[n]=="function"&&this.jobs[n]()}});var Sl=T(($L,pv)=>{var dv=wl(),DT=_l();pv.exports=TT;function TT(n,e,t,i){var r=t.keyedList?t.keyedList[t.index]:t.index;t.jobs[r]=ET(e,r,n[r],function(s,o){r in t.jobs&&(delete t.jobs[r],s?DT(t):t.results[r]=o,i(s,t.results))})}function ET(n,e,t,i){var r;return n.length==2?r=n(t,dv(i)):r=n(t,e,dv(i)),r}});var Cl=T((HL,fv)=>{fv.exports=PT;function PT(n,e){var t=!Array.isArray(n),i={index:0,keyedList:t||e?Object.keys(n):null,jobs:{},results:t?{}:[],size:t?Object.keys(n).length:n.length};return e&&i.keyedList.sort(t?e:function(r,s){return e(n[r],n[s])}),i}});var Rl=T((BL,hv)=>{var kT=_l(),OT=wl();hv.exports=qT;function qT(n){Object.keys(this.jobs).length&&(this.index=this.size,kT(this),OT(n)(null,this.results))}});var gv=T((WL,mv)=>{var FT=Sl(),NT=Cl(),AT=Rl();mv.exports=IT;function IT(n,e,t){for(var i=NT(n);i.index<(i.keyedList||n).length;)FT(n,e,i,function(r,s){if(r){t(r,s);return}if(Object.keys(i.jobs).length===0){t(null,i.results);return}}),i.index++;return AT.bind(i,t)}});var Dl=T((KL,la)=>{var vv=Sl(),jT=Cl(),LT=Rl();la.exports=MT;la.exports.ascending=xv;la.exports.descending=UT;function MT(n,e,t,i){var r=jT(n,t);return vv(n,e,r,function s(o,a){if(o){i(o,a);return}if(r.index++,r.index<(r.keyedList||n).length){vv(n,e,r,s);return}i(null,r.results)}),LT.bind(r,i)}function xv(n,e){return n<e?-1:n>e?1:0}function UT(n,e){return-1*xv(n,e)}});var bv=T((GL,yv)=>{var zT=Dl();yv.exports=$T;function $T(n,e,t){return zT(n,e,null,t)}});var _v=T((VL,wv)=>{wv.exports={parallel:gv(),serial:bv(),serialOrdered:Dl()}});var Cv=T((XL,Sv)=>{Sv.exports=function(n,e){return Object.keys(e).forEach(function(t){n[t]=n[t]||e[t]}),n}});var Tv=T((JL,Dv)=>{var kl=Zg(),Rv=require("util"),Tl=require("path"),HT=require("http"),BT=require("https"),WT=require("url").parse,KT=require("fs"),GT=require("stream").Stream,El=sv(),VT=_v(),Pl=Cv();Dv.exports=Te;Rv.inherits(Te,kl);function Te(n){if(!(this instanceof Te))return new Te(n);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],kl.call(this),n=n||{};for(var e in n)this[e]=n[e]}Te.LINE_BREAK=`\r
|
|
`;Te.DEFAULT_CONTENT_TYPE="application/octet-stream";Te.prototype.append=function(n,e,t){t=t||{},typeof t=="string"&&(t={filename:t});var i=kl.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),Rv.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(n,e,t),s=this._multiPartFooter();i(r),i(e),i(s),this._trackLength(r,e,t)};Te.prototype._trackLength=function(n,e,t){var i=0;t.knownLength!=null?i+=+t.knownLength:Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(n)+Te.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof GT))&&(t.knownLength||this._valuesToMeasure.push(e))};Te.prototype._lengthRetriever=function(n,e){n.hasOwnProperty("fd")?n.end!=null&&n.end!=1/0&&n.start!=null?e(null,n.end+1-(n.start?n.start:0)):KT.stat(n.path,function(t,i){var r;if(t){e(t);return}r=i.size-(n.start?n.start:0),e(null,r)}):n.hasOwnProperty("httpVersion")?e(null,+n.headers["content-length"]):n.hasOwnProperty("httpModule")?(n.on("response",function(t){n.pause(),e(null,+t.headers["content-length"])}),n.resume()):e("Unknown stream")};Te.prototype._multiPartHeader=function(n,e,t){if(typeof t.header=="string")return t.header;var i=this._getContentDisposition(e,t),r=this._getContentType(e,t),s="",o={"Content-Disposition":["form-data",'name="'+n+'"'].concat(i||[]),"Content-Type":[].concat(r||[])};typeof t.header=="object"&&Pl(o,t.header);var a;for(var c in o)o.hasOwnProperty(c)&&(a=o[c],a!=null&&(Array.isArray(a)||(a=[a]),a.length&&(s+=c+": "+a.join("; ")+Te.LINE_BREAK)));return"--"+this.getBoundary()+Te.LINE_BREAK+s+Te.LINE_BREAK};Te.prototype._getContentDisposition=function(n,e){var t,i;return typeof e.filepath=="string"?t=Tl.normalize(e.filepath).replace(/\\/g,"/"):e.filename||n.name||n.path?t=Tl.basename(e.filename||n.name||n.path):n.readable&&n.hasOwnProperty("httpVersion")&&(t=Tl.basename(n.client._httpMessage.path||"")),t&&(i='filename="'+t+'"'),i};Te.prototype._getContentType=function(n,e){var t=e.contentType;return!t&&n.name&&(t=El.lookup(n.name)),!t&&n.path&&(t=El.lookup(n.path)),!t&&n.readable&&n.hasOwnProperty("httpVersion")&&(t=n.headers["content-type"]),!t&&(e.filepath||e.filename)&&(t=El.lookup(e.filepath||e.filename)),!t&&typeof n=="object"&&(t=Te.DEFAULT_CONTENT_TYPE),t};Te.prototype._multiPartFooter=function(){return function(n){var e=Te.LINE_BREAK,t=this._streams.length===0;t&&(e+=this._lastBoundary()),n(e)}.bind(this)};Te.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Te.LINE_BREAK};Te.prototype.getHeaders=function(n){var e,t={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in n)n.hasOwnProperty(e)&&(t[e.toLowerCase()]=n[e]);return t};Te.prototype.setBoundary=function(n){this._boundary=n};Te.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Te.prototype.getBuffer=function(){for(var n=new Buffer.alloc(0),e=this.getBoundary(),t=0,i=this._streams.length;t<i;t++)typeof this._streams[t]!="function"&&(Buffer.isBuffer(this._streams[t])?n=Buffer.concat([n,this._streams[t]]):n=Buffer.concat([n,Buffer.from(this._streams[t])]),(typeof this._streams[t]!="string"||this._streams[t].substring(2,e.length+2)!==e)&&(n=Buffer.concat([n,Buffer.from(Te.LINE_BREAK)])));return Buffer.concat([n,Buffer.from(this._lastBoundary())])};Te.prototype._generateBoundary=function(){for(var n="--------------------------",e=0;e<24;e++)n+=Math.floor(Math.random()*10).toString(16);this._boundary=n};Te.prototype.getLengthSync=function(){var n=this._overheadLength+this._valueLength;return this._streams.length&&(n+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),n};Te.prototype.hasKnownLength=function(){var n=!0;return this._valuesToMeasure.length&&(n=!1),n};Te.prototype.getLength=function(n){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(n.bind(this,null,e));return}VT.parallel(this._valuesToMeasure,this._lengthRetriever,function(t,i){if(t){n(t);return}i.forEach(function(r){e+=r}),n(null,e)})};Te.prototype.submit=function(n,e){var t,i,r={method:"post"};return typeof n=="string"?(n=WT(n),i=Pl({port:n.port,path:n.pathname,host:n.hostname,protocol:n.protocol},r)):(i=Pl(n,r),i.port||(i.port=i.protocol=="https:"?443:80)),i.headers=this.getHeaders(n.headers),i.protocol=="https:"?t=BT.request(i):t=HT.request(i),this.getLength(function(s,o){if(s&&s!=="Unknown stream"){this._error(s);return}if(o&&t.setHeader("Content-Length",o),this.pipe(t),e){var a,c=function(u,l){return t.removeListener("error",c),t.removeListener("response",a),e.call(this,u,l)};a=c.bind(this,null),t.on("error",c),t.on("response",a)}}.bind(this)),t};Te.prototype._error=function(n){this.error||(this.error=n,this.pause(),this.emit("error",n))};Te.prototype.toString=function(){return"[object FormData]"}});var Pv=T(Ev=>{"use strict";var XT=require("url").parse,JT={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},YT=String.prototype.endsWith||function(n){return n.length<=this.length&&this.indexOf(n,this.length-n.length)!==-1};function QT(n){var e=typeof n=="string"?XT(n):n||{},t=e.protocol,i=e.host,r=e.port;if(typeof i!="string"||!i||typeof t!="string"||(t=t.split(":",1)[0],i=i.replace(/:\d*$/,""),r=parseInt(r)||JT[t]||0,!ZT(i,r)))return"";var s=Mr("npm_config_"+t+"_proxy")||Mr(t+"_proxy")||Mr("npm_config_proxy")||Mr("all_proxy");return s&&s.indexOf("://")===-1&&(s=t+"://"+s),s}function ZT(n,e){var t=(Mr("npm_config_no_proxy")||Mr("no_proxy")).toLowerCase();return t?t==="*"?!1:t.split(/[,\s]/).every(function(i){if(!i)return!0;var r=i.match(/^(.+):(\d+)$/),s=r?r[1]:i,o=r?parseInt(r[2]):0;return o&&o!==e?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!YT.call(n,s)):n!==s}):!0}function Mr(n){return process.env[n.toLowerCase()]||process.env[n.toUpperCase()]||""}Ev.getProxyForUrl=QT});var Ov=T((QL,kv)=>{var Hs;kv.exports=function(){if(!Hs){try{Hs=require("debug")("follow-redirects")}catch{}typeof Hs!="function"&&(Hs=function(){})}Hs.apply(null,arguments)}});var Iv=T((ZL,$l)=>{var Ks=require("url"),Bs=Ks.URL,eE=require("http"),tE=require("https"),Al=require("stream").Writable,Il=require("assert"),qv=Ov(),jl=!1;try{Il(new Bs)}catch(n){jl=n.code==="ERR_INVALID_URL"}var nE=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Ll=["abort","aborted","connect","error","socket","timeout"],Ml=Object.create(null);Ll.forEach(function(n){Ml[n]=function(e,t,i){this._redirectable.emit(n,e,t,i)}});var ql=Gs("ERR_INVALID_URL","Invalid URL",TypeError),Fl=Gs("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),iE=Gs("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Fl),rE=Gs("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),sE=Gs("ERR_STREAM_WRITE_AFTER_END","write after end"),oE=Al.prototype.destroy||Nv;function nn(n,e){Al.call(this),this._sanitizeOptions(n),this._options=n,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var t=this;this._onNativeResponse=function(i){try{t._processResponse(i)}catch(r){t.emit("error",r instanceof Fl?r:new Fl({cause:r}))}},this._performRequest()}nn.prototype=Object.create(Al.prototype);nn.prototype.abort=function(){zl(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};nn.prototype.destroy=function(n){return zl(this._currentRequest,n),oE.call(this,n),this};nn.prototype.write=function(n,e,t){if(this._ending)throw new sE;if(!vr(n)&&!uE(n))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Ws(e)&&(t=e,e=null),n.length===0){t&&t();return}this._requestBodyLength+n.length<=this._options.maxBodyLength?(this._requestBodyLength+=n.length,this._requestBodyBuffers.push({data:n,encoding:e}),this._currentRequest.write(n,e,t)):(this.emit("error",new rE),this.abort())};nn.prototype.end=function(n,e,t){if(Ws(n)?(t=n,n=e=null):Ws(e)&&(t=e,e=null),!n)this._ended=this._ending=!0,this._currentRequest.end(null,null,t);else{var i=this,r=this._currentRequest;this.write(n,e,function(){i._ended=!0,r.end(null,null,t)}),this._ending=!0}};nn.prototype.setHeader=function(n,e){this._options.headers[n]=e,this._currentRequest.setHeader(n,e)};nn.prototype.removeHeader=function(n){delete this._options.headers[n],this._currentRequest.removeHeader(n)};nn.prototype.setTimeout=function(n,e){var t=this;function i(o){o.setTimeout(n),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function r(o){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout(function(){t.emit("timeout"),s()},n),i(o)}function s(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",s),t.removeListener("error",s),t.removeListener("response",s),t.removeListener("close",s),e&&t.removeListener("timeout",e),t.socket||t._currentRequest.removeListener("socket",r)}return e&&this.on("timeout",e),this.socket?r(this.socket):this._currentRequest.once("socket",r),this.on("socket",i),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(n){nn.prototype[n]=function(e,t){return this._currentRequest[n](e,t)}});["aborted","connection","socket"].forEach(function(n){Object.defineProperty(nn.prototype,n,{get:function(){return this._currentRequest[n]}})});nn.prototype._sanitizeOptions=function(n){if(n.headers||(n.headers={}),n.host&&(n.hostname||(n.hostname=n.host),delete n.host),!n.pathname&&n.path){var e=n.path.indexOf("?");e<0?n.pathname=n.path:(n.pathname=n.path.substring(0,e),n.search=n.path.substring(e))}};nn.prototype._performRequest=function(){var n=this._options.protocol,e=this._options.nativeProtocols[n];if(!e)throw new TypeError("Unsupported protocol "+n);if(this._options.agents){var t=n.slice(0,-1);this._options.agent=this._options.agents[t]}var i=this._currentRequest=e.request(this._options,this._onNativeResponse);i._redirectable=this;for(var r of Ll)i.on(r,Ml[r]);if(this._currentUrl=/^\//.test(this._options.path)?Ks.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function c(u){if(i===o._currentRequest)if(u)o.emit("error",u);else if(s<a.length){var l=a[s++];i.finished||i.write(l.data,l.encoding,c)}else o._ended&&i.end()})()}};nn.prototype._processResponse=function(n){var e=n.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:n.headers,statusCode:e});var t=n.headers.location;if(!t||this._options.followRedirects===!1||e<300||e>=400){n.responseUrl=this._currentUrl,n.redirects=this._redirects,this.emit("response",n),this._requestBodyBuffers=[];return}if(zl(this._currentRequest),n.destroy(),++this._redirectCount>this._options.maxRedirects)throw new iE;var i,r=this._options.beforeRedirect;r&&(i=Object.assign({Host:n.req.getHeader("host")},this._options.headers));var s=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Ol(/^content-/i,this._options.headers));var o=Ol(/^host$/i,this._options.headers),a=Ul(this._currentUrl),c=o||a.host,u=/^\w+:/.test(t)?this._currentUrl:Ks.format(Object.assign(a,{host:c})),l=aE(t,u);if(qv("redirecting to",l.href),this._isRedirect=!0,Nl(l,this._options),(l.protocol!==a.protocol&&l.protocol!=="https:"||l.host!==c&&!cE(l.host,c))&&Ol(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Ws(r)){var p={headers:n.headers,statusCode:e},h={url:u,method:s,headers:i};r(this._options,p,h),this._sanitizeOptions(this._options)}this._performRequest()};function Fv(n){var e={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(n).forEach(function(i){var r=i+":",s=t[r]=n[i],o=e[i]=Object.create(s);function a(u,l,p){return lE(u)?u=Nl(u):vr(u)?u=Nl(Ul(u)):(p=l,l=Av(u),u={protocol:r}),Ws(l)&&(p=l,l=null),l=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,l),l.nativeProtocols=t,!vr(l.host)&&!vr(l.hostname)&&(l.hostname="::1"),Il.equal(l.protocol,r,"protocol mismatch"),qv("options",l),new nn(l,p)}function c(u,l,p){var h=o.request(u,l,p);return h.end(),h}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),e}function Nv(){}function Ul(n){var e;if(jl)e=new Bs(n);else if(e=Av(Ks.parse(n)),!vr(e.protocol))throw new ql({input:n});return e}function aE(n,e){return jl?new Bs(n,e):Ul(Ks.resolve(e,n))}function Av(n){if(/^\[/.test(n.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(n.hostname))throw new ql({input:n.href||n});if(/^\[/.test(n.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(n.host))throw new ql({input:n.href||n});return n}function Nl(n,e){var t=e||{};for(var i of nE)t[i]=n[i];return t.hostname.startsWith("[")&&(t.hostname=t.hostname.slice(1,-1)),t.port!==""&&(t.port=Number(t.port)),t.path=t.search?t.pathname+t.search:t.pathname,t}function Ol(n,e){var t;for(var i in e)n.test(i)&&(t=e[i],delete e[i]);return t===null||typeof t>"u"?void 0:String(t).trim()}function Gs(n,e,t){function i(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=n,this.message=this.cause?e+": "+this.cause.message:e}return i.prototype=new(t||Error),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+n+"]",enumerable:!1}}),i}function zl(n,e){for(var t of Ll)n.removeListener(t,Ml[t]);n.on("error",Nv),n.destroy(e)}function cE(n,e){Il(vr(n)&&vr(e));var t=n.length-e.length-1;return t>0&&n[t]==="."&&n.endsWith(e)}function vr(n){return typeof n=="string"||n instanceof String}function Ws(n){return typeof n=="function"}function uE(n){return typeof n=="object"&&"length"in n}function lE(n){return Bs&&n instanceof Bs}$l.exports=Fv({http:eE,https:tE});$l.exports.wrap=Fv});var Px=T((eM,Ex)=>{"use strict";var dE=Tv(),pE=require("url"),fE=Pv(),hE=require("http"),mE=require("https"),gE=require("util"),vE=Iv(),xE=require("zlib"),nx=require("stream"),yE=require("events");function xi(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var ix=xi(dE),bE=xi(pE),wE=xi(fE),_E=xi(hE),SE=xi(mE),rx=xi(gE),CE=xi(vE),Li=xi(xE),Ii=xi(nx);function sx(n,e){return function(){return n.apply(e,arguments)}}var{toString:RE}=Object.prototype,{getPrototypeOf:sd}=Object,ya=(n=>e=>{let t=RE.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Wn=n=>(n=n.toLowerCase(),e=>ya(e)===n),ba=n=>e=>typeof e===n,{isArray:Br}=Array,Xs=ba("undefined");function DE(n){return n!==null&&!Xs(n)&&n.constructor!==null&&!Xs(n.constructor)&&mn(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}var ox=Wn("ArrayBuffer");function TE(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&ox(n.buffer),e}var EE=ba("string"),mn=ba("function"),ax=ba("number"),wa=n=>n!==null&&typeof n=="object",PE=n=>n===!0||n===!1,da=n=>{if(ya(n)!=="object")return!1;let e=sd(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},kE=Wn("Date"),OE=Wn("File"),qE=Wn("Blob"),FE=Wn("FileList"),NE=n=>wa(n)&&mn(n.pipe),AE=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||mn(n.append)&&((e=ya(n))==="formdata"||e==="object"&&mn(n.toString)&&n.toString()==="[object FormData]"))},IE=Wn("URLSearchParams"),[jE,LE,ME,UE]=["ReadableStream","Request","Response","Headers"].map(Wn),zE=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ys(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let i,r;if(typeof n!="object"&&(n=[n]),Br(n))for(i=0,r=n.length;i<r;i++)e.call(null,n[i],i,n);else{let s=t?Object.getOwnPropertyNames(n):Object.keys(n),o=s.length,a;for(i=0;i<o;i++)a=s[i],e.call(null,n[a],a,n)}}function cx(n,e){e=e.toLowerCase();let t=Object.keys(n),i=t.length,r;for(;i-- >0;)if(r=t[i],e===r.toLowerCase())return r;return null}var xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ux=n=>!Xs(n)&&n!==xr;function Vl(){let{caseless:n}=ux(this)&&this||{},e={},t=(i,r)=>{let s=n&&cx(e,r)||r;da(e[s])&&da(i)?e[s]=Vl(e[s],i):da(i)?e[s]=Vl({},i):Br(i)?e[s]=i.slice():e[s]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&Ys(arguments[i],t);return e}var $E=(n,e,t,{allOwnKeys:i}={})=>(Ys(e,(r,s)=>{t&&mn(r)?n[s]=sx(r,t):n[s]=r},{allOwnKeys:i}),n),HE=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),BE=(n,e,t,i)=>{n.prototype=Object.create(e.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},WE=(n,e,t,i)=>{let r,s,o,a={};if(e=e||{},n==null)return e;do{for(r=Object.getOwnPropertyNames(n),s=r.length;s-- >0;)o=r[s],(!i||i(o,n,e))&&!a[o]&&(e[o]=n[o],a[o]=!0);n=t!==!1&&sd(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},KE=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;let i=n.indexOf(e,t);return i!==-1&&i===t},GE=n=>{if(!n)return null;if(Br(n))return n;let e=n.length;if(!ax(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},VE=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&sd(Uint8Array)),XE=(n,e)=>{let i=(n&&n[Symbol.iterator]).call(n),r;for(;(r=i.next())&&!r.done;){let s=r.value;e.call(n,s[0],s[1])}},JE=(n,e)=>{let t,i=[];for(;(t=n.exec(e))!==null;)i.push(t);return i},YE=Wn("HTMLFormElement"),QE=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,i,r){return i.toUpperCase()+r}),jv=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),ZE=Wn("RegExp"),lx=(n,e)=>{let t=Object.getOwnPropertyDescriptors(n),i={};Ys(t,(r,s)=>{let o;(o=e(r,s,n))!==!1&&(i[s]=o||r)}),Object.defineProperties(n,i)},eP=n=>{lx(n,(e,t)=>{if(mn(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let i=n[t];if(mn(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},tP=(n,e)=>{let t={},i=r=>{r.forEach(s=>{t[s]=!0})};return Br(n)?i(n):i(String(n).split(e)),t},nP=()=>{},iP=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,Hl="abcdefghijklmnopqrstuvwxyz",Lv="0123456789",dx={DIGIT:Lv,ALPHA:Hl,ALPHA_DIGIT:Hl+Hl.toUpperCase()+Lv},rP=(n=16,e=dx.ALPHA_DIGIT)=>{let t="",{length:i}=e;for(;n--;)t+=e[Math.random()*i|0];return t};function sP(n){return!!(n&&mn(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}var oP=n=>{let e=new Array(10),t=(i,r)=>{if(wa(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[r]=i;let s=Br(i)?[]:{};return Ys(i,(o,a)=>{let c=t(o,r+1);!Xs(c)&&(s[a]=c)}),e[r]=void 0,s}}return i};return t(n,0)},aP=Wn("AsyncFunction"),cP=n=>n&&(wa(n)||mn(n))&&mn(n.then)&&mn(n.catch),px=((n,e)=>n?setImmediate:e?((t,i)=>(xr.addEventListener("message",({source:r,data:s})=>{r===xr&&s===t&&i.length&&i.shift()()},!1),r=>{i.push(r),xr.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",mn(xr.postMessage)),uP=typeof queueMicrotask<"u"?queueMicrotask.bind(xr):typeof process<"u"&&process.nextTick||px,q={isArray:Br,isArrayBuffer:ox,isBuffer:DE,isFormData:AE,isArrayBufferView:TE,isString:EE,isNumber:ax,isBoolean:PE,isObject:wa,isPlainObject:da,isReadableStream:jE,isRequest:LE,isResponse:ME,isHeaders:UE,isUndefined:Xs,isDate:kE,isFile:OE,isBlob:qE,isRegExp:ZE,isFunction:mn,isStream:NE,isURLSearchParams:IE,isTypedArray:VE,isFileList:FE,forEach:Ys,merge:Vl,extend:$E,trim:zE,stripBOM:HE,inherits:BE,toFlatObject:WE,kindOf:ya,kindOfTest:Wn,endsWith:KE,toArray:GE,forEachEntry:XE,matchAll:JE,isHTMLForm:YE,hasOwnProperty:jv,hasOwnProp:jv,reduceDescriptors:lx,freezeMethods:eP,toObjectSet:tP,toCamelCase:QE,noop:nP,toFiniteNumber:iP,findKey:cx,global:xr,isContextDefined:ux,ALPHABET:dx,generateString:rP,isSpecCompliantForm:sP,toJSONObject:oP,isAsyncFn:aP,isThenable:cP,setImmediate:px,asap:uP};function V(n,e,t,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}q.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.status}}});var fx=V.prototype,hx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{hx[n]={value:n}});Object.defineProperties(V,hx);Object.defineProperty(fx,"isAxiosError",{value:!0});V.from=(n,e,t,i,r,s)=>{let o=Object.create(fx);return q.toFlatObject(n,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),V.call(o,n.message,e,t,i,r),o.cause=n,o.name=n.name,s&&Object.assign(o,s),o};function Xl(n){return q.isPlainObject(n)||q.isArray(n)}function mx(n){return q.endsWith(n,"[]")?n.slice(0,-2):n}function Mv(n,e,t){return n?n.concat(e).map(function(r,s){return r=mx(r),!t&&s?"["+r+"]":r}).join(t?".":""):e}function lP(n){return q.isArray(n)&&!n.some(Xl)}var dP=q.toFlatObject(q,{},null,function(e){return/^is[A-Z]/.test(e)});function _a(n,e,t){if(!q.isObject(n))throw new TypeError("target must be an object");e=e||new(ix.default||FormData),t=q.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!q.isUndefined(w[y])});let i=t.metaTokens,r=t.visitor||l,s=t.dots,o=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&q.isSpecCompliantForm(e);if(!q.isFunction(r))throw new TypeError("visitor must be a function");function u(f){if(f===null)return"";if(q.isDate(f))return f.toISOString();if(!c&&q.isBlob(f))throw new V("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(f)||q.isTypedArray(f)?c&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function l(f,y,w){let S=f;if(f&&!w&&typeof f=="object"){if(q.endsWith(y,"{}"))y=i?y:y.slice(0,-2),f=JSON.stringify(f);else if(q.isArray(f)&&lP(f)||(q.isFileList(f)||q.endsWith(y,"[]"))&&(S=q.toArray(f)))return y=mx(y),S.forEach(function(k,N){!(q.isUndefined(k)||k===null)&&e.append(o===!0?Mv([y],N,s):o===null?y:y+"[]",u(k))}),!1}return Xl(f)?!0:(e.append(Mv(w,y,s),u(f)),!1)}let p=[],h=Object.assign(dP,{defaultVisitor:l,convertValue:u,isVisitable:Xl});function x(f,y){if(!q.isUndefined(f)){if(p.indexOf(f)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(f),q.forEach(f,function(S,O){(!(q.isUndefined(S)||S===null)&&r.call(e,S,q.isString(O)?O.trim():O,y,h))===!0&&x(S,y?y.concat(O):[O])}),p.pop()}}if(!q.isObject(n))throw new TypeError("data must be an object");return x(n),e}function Uv(n){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function gx(n,e){this._pairs=[],n&&_a(n,this,e)}var vx=gx.prototype;vx.append=function(e,t){this._pairs.push([e,t])};vx.toString=function(e){let t=e?function(i){return e.call(this,i,Uv)}:Uv;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function pP(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function od(n,e,t){if(!e)return n;let i=t&&t.encode||pP;q.isFunction(t)&&(t={serialize:t});let r=t&&t.serialize,s;if(r?s=r(e,t):s=q.isURLSearchParams(e)?e.toString():new gx(e,t).toString(i),s){let o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+s}return n}var Jl=class{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){q.forEach(this.handlers,function(i){i!==null&&e(i)})}},zv=Jl,ad={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fP=bE.default.URLSearchParams,hP={isNode:!0,classes:{URLSearchParams:fP,FormData:ix.default,Blob:typeof Blob<"u"&&Blob||null},protocols:["http","https","file","data"]},cd=typeof window<"u"&&typeof document<"u",Yl=typeof navigator=="object"&&navigator||void 0,mP=cd&&(!Yl||["ReactNative","NativeScript","NS"].indexOf(Yl.product)<0),gP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vP=cd&&window.location.href||"http://localhost",xP=Object.freeze({__proto__:null,hasBrowserEnv:cd,hasStandardBrowserWebWorkerEnv:gP,hasStandardBrowserEnv:mP,navigator:Yl,origin:vP}),bt={...xP,...hP};function yP(n,e){return _a(n,new bt.classes.URLSearchParams,Object.assign({visitor:function(t,i,r,s){return bt.isNode&&q.isBuffer(t)?(this.append(i,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function bP(n){return q.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function wP(n){let e={},t=Object.keys(n),i,r=t.length,s;for(i=0;i<r;i++)s=t[i],e[s]=n[s];return e}function xx(n){function e(t,i,r,s){let o=t[s++];if(o==="__proto__")return!0;let a=Number.isFinite(+o),c=s>=t.length;return o=!o&&q.isArray(r)?r.length:o,c?(q.hasOwnProp(r,o)?r[o]=[r[o],i]:r[o]=i,!a):((!r[o]||!q.isObject(r[o]))&&(r[o]=[]),e(t,i,r[o],s)&&q.isArray(r[o])&&(r[o]=wP(r[o])),!a)}if(q.isFormData(n)&&q.isFunction(n.entries)){let t={};return q.forEachEntry(n,(i,r)=>{e(bP(i),r,t,0)}),t}return null}function _P(n,e,t){if(q.isString(n))try{return(e||JSON.parse)(n),q.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(t||JSON.stringify)(n)}var ud={transitional:ad,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let i=t.getContentType()||"",r=i.indexOf("application/json")>-1,s=q.isObject(e);if(s&&q.isHTMLForm(e)&&(e=new FormData(e)),q.isFormData(e))return r?JSON.stringify(xx(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e)||q.isReadableStream(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return yP(e,this.formSerializer).toString();if((a=q.isFileList(e))||i.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return _a(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||r?(t.setContentType("application/json",!1),_P(e)):e}],transformResponse:[function(e){let t=this.transitional||ud.transitional,i=t&&t.forcedJSONParsing,r=this.responseType==="json";if(q.isResponse(e)||q.isReadableStream(e))return e;if(e&&q.isString(e)&&(i&&!this.responseType||r)){let o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?V.from(a,V.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bt.classes.FormData,Blob:bt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],n=>{ud.headers[n]={}});var ld=ud,SP=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),CP=n=>{let e={},t,i,r;return n&&n.split(`
|
|
`).forEach(function(o){r=o.indexOf(":"),t=o.substring(0,r).trim().toLowerCase(),i=o.substring(r+1).trim(),!(!t||e[t]&&SP[t])&&(t==="set-cookie"?e[t]?e[t].push(i):e[t]=[i]:e[t]=e[t]?e[t]+", "+i:i)}),e},$v=Symbol("internals");function Vs(n){return n&&String(n).trim().toLowerCase()}function pa(n){return n===!1||n==null?n:q.isArray(n)?n.map(pa):String(n)}function RP(n){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,i;for(;i=t.exec(n);)e[i[1]]=i[2];return e}var DP=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Bl(n,e,t,i,r){if(q.isFunction(i))return i.call(this,e,t);if(r&&(e=t),!!q.isString(e)){if(q.isString(i))return e.indexOf(i)!==-1;if(q.isRegExp(i))return i.test(e)}}function TP(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,i)=>t.toUpperCase()+i)}function EP(n,e){let t=q.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+t,{value:function(r,s,o){return this[i].call(this,e,r,s,o)},configurable:!0})})}var zr=class{constructor(e){e&&this.set(e)}set(e,t,i){let r=this;function s(a,c,u){let l=Vs(c);if(!l)throw new Error("header name must be a non-empty string");let p=q.findKey(r,l);(!p||r[p]===void 0||u===!0||u===void 0&&r[p]!==!1)&&(r[p||c]=pa(a))}let o=(a,c)=>q.forEach(a,(u,l)=>s(u,l,c));if(q.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(q.isString(e)&&(e=e.trim())&&!DP(e))o(CP(e),t);else if(q.isHeaders(e))for(let[a,c]of e.entries())s(c,a,i);else e!=null&&s(t,e,i);return this}get(e,t){if(e=Vs(e),e){let i=q.findKey(this,e);if(i){let r=this[i];if(!t)return r;if(t===!0)return RP(r);if(q.isFunction(t))return t.call(this,r,i);if(q.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Vs(e),e){let i=q.findKey(this,e);return!!(i&&this[i]!==void 0&&(!t||Bl(this,this[i],i,t)))}return!1}delete(e,t){let i=this,r=!1;function s(o){if(o=Vs(o),o){let a=q.findKey(i,o);a&&(!t||Bl(i,i[a],a,t))&&(delete i[a],r=!0)}}return q.isArray(e)?e.forEach(s):s(e),r}clear(e){let t=Object.keys(this),i=t.length,r=!1;for(;i--;){let s=t[i];(!e||Bl(this,this[s],s,e,!0))&&(delete this[s],r=!0)}return r}normalize(e){let t=this,i={};return q.forEach(this,(r,s)=>{let o=q.findKey(i,s);if(o){t[o]=pa(r),delete t[s];return}let a=e?TP(s):String(s).trim();a!==s&&delete t[s],t[a]=pa(r),i[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return q.forEach(this,(i,r)=>{i!=null&&i!==!1&&(t[r]=e&&q.isArray(i)?i.join(", "):i)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let i=new this(e);return t.forEach(r=>i.set(r)),i}static accessor(e){let i=(this[$v]=this[$v]={accessors:{}}).accessors,r=this.prototype;function s(o){let a=Vs(o);i[a]||(EP(r,o),i[a]=!0)}return q.isArray(e)?e.forEach(s):s(e),this}};zr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);q.reduceDescriptors(zr.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(i){this[t]=i}}});q.freezeMethods(zr);var rn=zr;function Wl(n,e){let t=this||ld,i=e||t,r=rn.from(i.headers),s=i.data;return q.forEach(n,function(a){s=a.call(t,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function yx(n){return!!(n&&n.__CANCEL__)}function Mi(n,e,t){V.call(this,n??"canceled",V.ERR_CANCELED,e,t),this.name="CanceledError"}q.inherits(Mi,V,{__CANCEL__:!0});function Ur(n,e,t){let i=t.config.validateStatus;!t.status||!i||i(t.status)?n(t):e(new V("Request failed with status code "+t.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function PP(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function kP(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function dd(n,e){return n&&!PP(e)?kP(n,e):e}var ma="1.7.9";function bx(n){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}var OP=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function qP(n,e,t){let i=t&&t.Blob||bt.classes.Blob,r=bx(n);if(e===void 0&&i&&(e=!0),r==="data"){n=r.length?n.slice(r.length+1):n;let s=OP.exec(n);if(!s)throw new V("Invalid URL",V.ERR_INVALID_URL);let o=s[1],a=s[2],c=s[3],u=Buffer.from(decodeURIComponent(c),a?"base64":"utf8");if(e){if(!i)throw new V("Blob is not supported",V.ERR_NOT_SUPPORT);return new i([u],{type:o})}return u}throw new V("Unsupported protocol "+r,V.ERR_NOT_SUPPORT)}var Kl=Symbol("internals"),Ql=class extends Ii.default.Transform{constructor(e){e=q.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(i,r)=>!q.isUndefined(r[i])),super({readableHighWaterMark:e.chunkSize});let t=this[Kl]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",i=>{i==="progress"&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){let t=this[Kl];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,i){let r=this[Kl],s=r.maxRate,o=this.readableHighWaterMark,a=r.timeWindow,c=1e3/a,u=s/c,l=r.minChunkSize!==!1?Math.max(r.minChunkSize,u*.01):0,p=(x,f)=>{let y=Buffer.byteLength(x);r.bytesSeen+=y,r.bytes+=y,r.isCaptured&&this.emit("progress",r.bytesSeen),this.push(x)?process.nextTick(f):r.onReadCallback=()=>{r.onReadCallback=null,process.nextTick(f)}},h=(x,f)=>{let y=Buffer.byteLength(x),w=null,S=o,O,k=0;if(s){let N=Date.now();(!r.ts||(k=N-r.ts)>=a)&&(r.ts=N,O=u-r.bytes,r.bytes=O<0?-O:0,k=0),O=u-r.bytes}if(s){if(O<=0)return setTimeout(()=>{f(null,x)},a-k);O<S&&(S=O)}S&&y>S&&y-S>l&&(w=x.subarray(S),x=x.subarray(0,S)),p(x,w?()=>{process.nextTick(f,null,w)}:f)};h(e,function x(f,y){if(f)return i(f);y?h(y,x):i(null)})}},Hv=Ql,{asyncIterator:Bv}=Symbol,FP=async function*(n){n.stream?yield*n.stream():n.arrayBuffer?yield await n.arrayBuffer():n[Bv]?yield*n[Bv]():yield n},wx=FP,NP=q.ALPHABET.ALPHA_DIGIT+"-_",Js=typeof TextEncoder=="function"?new TextEncoder:new rx.default.TextEncoder,ji=`\r
|
|
`,AP=Js.encode(ji),IP=2,Zl=class{constructor(e,t){let{escapeName:i}=this.constructor,r=q.isString(t),s=`Content-Disposition: form-data; name="${i(e)}"${!r&&t.name?`; filename="${i(t.name)}"`:""}${ji}`;r?t=Js.encode(String(t).replace(/\r?\n|\r\n?/g,ji)):s+=`Content-Type: ${t.type||"application/octet-stream"}${ji}`,this.headers=Js.encode(s+ji),this.contentLength=r?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+IP,this.name=e,this.value=t}async*encode(){yield this.headers;let{value:e}=this;q.isTypedArray(e)?yield e:yield*wx(e),yield AP}static escapeName(e){return String(e).replace(/[\r\n"]/g,t=>({"\r":"%0D","\n":"%0A",'"':"%22"})[t])}},jP=(n,e,t)=>{let{tag:i="form-data-boundary",size:r=25,boundary:s=i+"-"+q.generateString(r,NP)}=t||{};if(!q.isFormData(n))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");let o=Js.encode("--"+s+ji),a=Js.encode("--"+s+"--"+ji+ji),c=a.byteLength,u=Array.from(n.entries()).map(([p,h])=>{let x=new Zl(p,h);return c+=x.size,x});c+=o.byteLength*u.length,c=q.toFiniteNumber(c);let l={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(c)&&(l["Content-Length"]=c),e&&e(l),nx.Readable.from(async function*(){for(let p of u)yield o,yield*p.encode();yield a}())},LP=jP,ed=class extends Ii.default.Transform{__transform(e,t,i){this.push(e),i()}_transform(e,t,i){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let r=Buffer.alloc(2);r[0]=120,r[1]=156,this.push(r,t)}this.__transform(e,t,i)}},MP=ed,UP=(n,e)=>q.isAsyncFn(n)?function(...t){let i=t.pop();n.apply(this,t).then(r=>{try{e?i(null,...e(r)):i(null,r)}catch(s){i(s)}},i)}:n,zP=UP;function $P(n,e){n=n||10;let t=new Array(n),i=new Array(n),r=0,s=0,o;return e=e!==void 0?e:1e3,function(c){let u=Date.now(),l=i[s];o||(o=u),t[r]=c,i[r]=u;let p=s,h=0;for(;p!==r;)h+=t[p++],p=p%n;if(r=(r+1)%n,r===s&&(s=(s+1)%n),u-o<e)return;let x=l&&u-l;return x?Math.round(h*1e3/x):void 0}}function HP(n,e){let t=0,i=1e3/e,r,s,o=(u,l=Date.now())=>{t=l,r=null,s&&(clearTimeout(s),s=null),n.apply(null,u)};return[(...u)=>{let l=Date.now(),p=l-t;p>=i?o(u,l):(r=u,s||(s=setTimeout(()=>{s=null,o(r)},i-p)))},()=>r&&o(r)]}var $r=(n,e,t=3)=>{let i=0,r=$P(50,250);return HP(s=>{let o=s.loaded,a=s.lengthComputable?s.total:void 0,c=o-i,u=r(c),l=o<=a;i=o;let p={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&l?(a-o)/u:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};n(p)},t)},ga=(n,e)=>{let t=n!=null;return[i=>e[0]({lengthComputable:t,total:n,loaded:i}),e[1]]},va=n=>(...e)=>q.asap(()=>n(...e)),Wv={flush:Li.default.constants.Z_SYNC_FLUSH,finishFlush:Li.default.constants.Z_SYNC_FLUSH},BP={flush:Li.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Li.default.constants.BROTLI_OPERATION_FLUSH},Kv=q.isFunction(Li.default.createBrotliDecompress),{http:WP,https:KP}=CE.default,GP=/https:?/,Gv=bt.protocols.map(n=>n+":"),Vv=(n,[e,t])=>(n.on("end",t).on("error",t),e);function VP(n,e){n.beforeRedirects.proxy&&n.beforeRedirects.proxy(n),n.beforeRedirects.config&&n.beforeRedirects.config(n,e)}function _x(n,e,t){let i=e;if(!i&&i!==!1){let r=wE.default.getProxyForUrl(t);r&&(i=new URL(r))}if(i){if(i.username&&(i.auth=(i.username||"")+":"+(i.password||"")),i.auth){(i.auth.username||i.auth.password)&&(i.auth=(i.auth.username||"")+":"+(i.auth.password||""));let s=Buffer.from(i.auth,"utf8").toString("base64");n.headers["Proxy-Authorization"]="Basic "+s}n.headers.host=n.hostname+(n.port?":"+n.port:"");let r=i.hostname||i.host;n.hostname=r,n.host=r,n.port=i.port,n.path=t,i.protocol&&(n.protocol=i.protocol.includes(":")?i.protocol:`${i.protocol}:`)}n.beforeRedirects.proxy=function(s){_x(s,e,s.href)}}var XP=typeof process<"u"&&q.kindOf(process)==="process",JP=n=>new Promise((e,t)=>{let i,r,s=(c,u)=>{r||(r=!0,i&&i(c,u))},o=c=>{s(c),e(c)},a=c=>{s(c,!0),t(c)};n(o,a,c=>i=c).catch(a)}),YP=({address:n,family:e})=>{if(!q.isString(n))throw TypeError("address must be a string");return{address:n,family:e||(n.indexOf(".")<0?6:4)}},Xv=(n,e)=>YP(q.isObject(n)?n:{address:n,family:e}),QP=XP&&function(e){return JP(async function(i,r,s){let{data:o,lookup:a,family:c}=e,{responseType:u,responseEncoding:l}=e,p=e.method.toUpperCase(),h,x=!1,f;if(a){let se=zP(a,ie=>q.isArray(ie)?ie:[ie]);a=(ie,de,ut)=>{se(ie,de,(Re,Ke,Sn)=>{if(Re)return ut(Re);let gt=q.isArray(Ke)?Ke.map(it=>Xv(it)):[Xv(Ke,Sn)];de.all?ut(Re,gt):ut(Re,gt[0].address,gt[0].family)})}}let y=new yE.EventEmitter,w=()=>{e.cancelToken&&e.cancelToken.unsubscribe(S),e.signal&&e.signal.removeEventListener("abort",S),y.removeAllListeners()};s((se,ie)=>{h=!0,ie&&(x=!0,w())});function S(se){y.emit("abort",!se||se.type?new Mi(null,e,f):se)}y.once("abort",r),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(S),e.signal&&(e.signal.aborted?S():e.signal.addEventListener("abort",S)));let O=dd(e.baseURL,e.url),k=new URL(O,bt.hasBrowserEnv?bt.origin:void 0),N=k.protocol||Gv[0];if(N==="data:"){let se;if(p!=="GET")return Ur(i,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{se=qP(e.url,u==="blob",{Blob:e.env&&e.env.Blob})}catch(ie){throw V.from(ie,V.ERR_BAD_REQUEST,e)}return u==="text"?(se=se.toString(l),(!l||l==="utf8")&&(se=q.stripBOM(se))):u==="stream"&&(se=Ii.default.Readable.from(se)),Ur(i,r,{data:se,status:200,statusText:"OK",headers:new rn,config:e})}if(Gv.indexOf(N)===-1)return r(new V("Unsupported protocol "+N,V.ERR_BAD_REQUEST,e));let j=rn.from(e.headers).normalize();j.set("User-Agent","axios/"+ma,!1);let{onUploadProgress:G,onDownloadProgress:$}=e,Q=e.maxRate,te,Oe;if(q.isSpecCompliantForm(o)){let se=j.getContentType(/boundary=([-_\w\d]{10,70})/i);o=LP(o,ie=>{j.set(ie)},{tag:`axios-${ma}-boundary`,boundary:se&&se[1]||void 0})}else if(q.isFormData(o)&&q.isFunction(o.getHeaders)){if(j.set(o.getHeaders()),!j.hasContentLength())try{let se=await rx.default.promisify(o.getLength).call(o);Number.isFinite(se)&&se>=0&&j.setContentLength(se)}catch{}}else if(q.isBlob(o)||q.isFile(o))o.size&&j.setContentType(o.type||"application/octet-stream"),j.setContentLength(o.size||0),o=Ii.default.Readable.from(wx(o));else if(o&&!q.isStream(o)){if(!Buffer.isBuffer(o))if(q.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(q.isString(o))o=Buffer.from(o,"utf-8");else return r(new V("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",V.ERR_BAD_REQUEST,e));if(j.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return r(new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,e))}let Ye=q.toFiniteNumber(j.getContentLength());q.isArray(Q)?(te=Q[0],Oe=Q[1]):te=Oe=Q,o&&(G||te)&&(q.isStream(o)||(o=Ii.default.Readable.from(o,{objectMode:!1})),o=Ii.default.pipeline([o,new Hv({maxRate:q.toFiniteNumber(te)})],q.noop),G&&o.on("progress",Vv(o,ga(Ye,$r(va(G),!1,3)))));let We;if(e.auth){let se=e.auth.username||"",ie=e.auth.password||"";We=se+":"+ie}if(!We&&k.username){let se=k.username,ie=k.password;We=se+":"+ie}We&&j.delete("authorization");let Kt;try{Kt=od(k.pathname+k.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(se){let ie=new Error(se.message);return ie.config=e,ie.url=e.url,ie.exists=!0,r(ie)}j.set("Accept-Encoding","gzip, compress, deflate"+(Kv?", br":""),!1);let Ne={path:Kt,method:p,headers:j.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:We,protocol:N,family:c,beforeRedirect:VP,beforeRedirects:{}};!q.isUndefined(a)&&(Ne.lookup=a),e.socketPath?Ne.socketPath=e.socketPath:(Ne.hostname=k.hostname.startsWith("[")?k.hostname.slice(1,-1):k.hostname,Ne.port=k.port,_x(Ne,e.proxy,N+"//"+k.hostname+(k.port?":"+k.port:"")+Ne.path));let ct,mt=GP.test(Ne.protocol);if(Ne.agent=mt?e.httpsAgent:e.httpAgent,e.transport?ct=e.transport:e.maxRedirects===0?ct=mt?SE.default:_E.default:(e.maxRedirects&&(Ne.maxRedirects=e.maxRedirects),e.beforeRedirect&&(Ne.beforeRedirects.config=e.beforeRedirect),ct=mt?KP:WP),e.maxBodyLength>-1?Ne.maxBodyLength=e.maxBodyLength:Ne.maxBodyLength=1/0,e.insecureHTTPParser&&(Ne.insecureHTTPParser=e.insecureHTTPParser),f=ct.request(Ne,function(ie){if(f.destroyed)return;let de=[ie],ut=+ie.headers["content-length"];if($||Oe){let it=new Hv({maxRate:q.toFiniteNumber(Oe)});$&&it.on("progress",Vv(it,ga(ut,$r(va($),!0,3)))),de.push(it)}let Re=ie,Ke=ie.req||f;if(e.decompress!==!1&&ie.headers["content-encoding"])switch((p==="HEAD"||ie.statusCode===204)&&delete ie.headers["content-encoding"],(ie.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":de.push(Li.default.createUnzip(Wv)),delete ie.headers["content-encoding"];break;case"deflate":de.push(new MP),de.push(Li.default.createUnzip(Wv)),delete ie.headers["content-encoding"];break;case"br":Kv&&(de.push(Li.default.createBrotliDecompress(BP)),delete ie.headers["content-encoding"])}Re=de.length>1?Ii.default.pipeline(de,q.noop):de[0];let Sn=Ii.default.finished(Re,()=>{Sn(),w()}),gt={status:ie.statusCode,statusText:ie.statusMessage,headers:new rn(ie.headers),config:e,request:Ke};if(u==="stream")gt.data=Re,Ur(i,r,gt);else{let it=[],Cn=0;Re.on("data",function(Ge){it.push(Ge),Cn+=Ge.length,e.maxContentLength>-1&&Cn>e.maxContentLength&&(x=!0,Re.destroy(),r(new V("maxContentLength size of "+e.maxContentLength+" exceeded",V.ERR_BAD_RESPONSE,e,Ke)))}),Re.on("aborted",function(){if(x)return;let Ge=new V("stream has been aborted",V.ERR_BAD_RESPONSE,e,Ke);Re.destroy(Ge),r(Ge)}),Re.on("error",function(Ge){f.destroyed||r(V.from(Ge,null,e,Ke))}),Re.on("end",function(){try{let Ge=it.length===1?it[0]:Buffer.concat(it);u!=="arraybuffer"&&(Ge=Ge.toString(l),(!l||l==="utf8")&&(Ge=q.stripBOM(Ge))),gt.data=Ge}catch(Ge){return r(V.from(Ge,null,e,gt.request,gt))}Ur(i,r,gt)})}y.once("abort",it=>{Re.destroyed||(Re.emit("error",it),Re.destroy())})}),y.once("abort",se=>{r(se),f.destroy(se)}),f.on("error",function(ie){r(V.from(ie,null,e,f))}),f.on("socket",function(ie){ie.setKeepAlive(!0,1e3*60)}),e.timeout){let se=parseInt(e.timeout,10);if(Number.isNaN(se)){r(new V("error trying to parse `config.timeout` to int",V.ERR_BAD_OPTION_VALUE,e,f));return}f.setTimeout(se,function(){if(h)return;let de=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",ut=e.transitional||ad;e.timeoutErrorMessage&&(de=e.timeoutErrorMessage),r(new V(de,ut.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,e,f)),S()})}if(q.isStream(o)){let se=!1,ie=!1;o.on("end",()=>{se=!0}),o.once("error",de=>{ie=!0,f.destroy(de)}),o.on("close",()=>{!se&&!ie&&S(new Mi("Request stream has been aborted",e,f))}),o.pipe(f)}else f.end(o)})},ZP=bt.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,bt.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(bt.origin),bt.navigator&&/(msie|trident)/i.test(bt.navigator.userAgent)):()=>!0,ek=bt.hasStandardBrowserEnv?{write(n,e,t,i,r,s){let o=[n+"="+encodeURIComponent(e)];q.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),q.isString(i)&&o.push("path="+i),q.isString(r)&&o.push("domain="+r),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(n){let e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}},Jv=n=>n instanceof rn?{...n}:n;function yr(n,e){e=e||{};let t={};function i(u,l,p,h){return q.isPlainObject(u)&&q.isPlainObject(l)?q.merge.call({caseless:h},u,l):q.isPlainObject(l)?q.merge({},l):q.isArray(l)?l.slice():l}function r(u,l,p,h){if(q.isUndefined(l)){if(!q.isUndefined(u))return i(void 0,u,p,h)}else return i(u,l,p,h)}function s(u,l){if(!q.isUndefined(l))return i(void 0,l)}function o(u,l){if(q.isUndefined(l)){if(!q.isUndefined(u))return i(void 0,u)}else return i(void 0,l)}function a(u,l,p){if(p in e)return i(u,l);if(p in n)return i(void 0,u)}let c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,l,p)=>r(Jv(u),Jv(l),p,!0)};return q.forEach(Object.keys(Object.assign({},n,e)),function(l){let p=c[l]||r,h=p(n[l],e[l],l);q.isUndefined(h)&&p!==a||(t[l]=h)}),t}var Sx=n=>{let e=yr({},n),{data:t,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:s,headers:o,auth:a}=e;e.headers=o=rn.from(o),e.url=od(dd(e.baseURL,e.url),n.params,n.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(q.isFormData(t)){if(bt.hasStandardBrowserEnv||bt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){let[u,...l]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...l].join("; "))}}if(bt.hasStandardBrowserEnv&&(i&&q.isFunction(i)&&(i=i(e)),i||i!==!1&&ZP(e.url))){let u=r&&s&&ek.read(s);u&&o.set(r,u)}return e},tk=typeof XMLHttpRequest<"u",nk=tk&&function(n){return new Promise(function(t,i){let r=Sx(n),s=r.data,o=rn.from(r.headers).normalize(),{responseType:a,onUploadProgress:c,onDownloadProgress:u}=r,l,p,h,x,f;function y(){x&&x(),f&&f(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let w=new XMLHttpRequest;w.open(r.method.toUpperCase(),r.url,!0),w.timeout=r.timeout;function S(){if(!w)return;let k=rn.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),j={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:k,config:n,request:w};Ur(function($){t($),y()},function($){i($),y()},j),w=null}"onloadend"in w?w.onloadend=S:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(S)},w.onabort=function(){w&&(i(new V("Request aborted",V.ECONNABORTED,n,w)),w=null)},w.onerror=function(){i(new V("Network Error",V.ERR_NETWORK,n,w)),w=null},w.ontimeout=function(){let N=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",j=r.transitional||ad;r.timeoutErrorMessage&&(N=r.timeoutErrorMessage),i(new V(N,j.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,n,w)),w=null},s===void 0&&o.setContentType(null),"setRequestHeader"in w&&q.forEach(o.toJSON(),function(N,j){w.setRequestHeader(j,N)}),q.isUndefined(r.withCredentials)||(w.withCredentials=!!r.withCredentials),a&&a!=="json"&&(w.responseType=r.responseType),u&&([h,f]=$r(u,!0),w.addEventListener("progress",h)),c&&w.upload&&([p,x]=$r(c),w.upload.addEventListener("progress",p),w.upload.addEventListener("loadend",x)),(r.cancelToken||r.signal)&&(l=k=>{w&&(i(!k||k.type?new Mi(null,n,w):k),w.abort(),w=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));let O=bx(r.url);if(O&&bt.protocols.indexOf(O)===-1){i(new V("Unsupported protocol "+O+":",V.ERR_BAD_REQUEST,n));return}w.send(s||null)})},ik=(n,e)=>{let{length:t}=n=n?n.filter(Boolean):[];if(e||t){let i=new AbortController,r,s=function(u){if(!r){r=!0,a();let l=u instanceof Error?u:this.reason;i.abort(l instanceof V?l:new Mi(l instanceof Error?l.message:l))}},o=e&&setTimeout(()=>{o=null,s(new V(`timeout ${e} of ms exceeded`,V.ETIMEDOUT))},e),a=()=>{n&&(o&&clearTimeout(o),o=null,n.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),n=null)};n.forEach(u=>u.addEventListener("abort",s));let{signal:c}=i;return c.unsubscribe=()=>q.asap(a),c}},rk=ik,sk=function*(n,e){let t=n.byteLength;if(!e||t<e){yield n;return}let i=0,r;for(;i<t;)r=i+e,yield n.slice(i,r),i=r},ok=async function*(n,e){for await(let t of ak(n))yield*sk(t,e)},ak=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}let e=n.getReader();try{for(;;){let{done:t,value:i}=await e.read();if(t)break;yield i}}finally{await e.cancel()}},Yv=(n,e,t,i)=>{let r=ok(n,e),s=0,o,a=c=>{o||(o=!0,i&&i(c))};return new ReadableStream({async pull(c){try{let{done:u,value:l}=await r.next();if(u){a(),c.close();return}let p=l.byteLength;if(t){let h=s+=p;t(h)}c.enqueue(new Uint8Array(l))}catch(u){throw a(u),u}},cancel(c){return a(c),r.return()}},{highWaterMark:2})},Sa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Cx=Sa&&typeof ReadableStream=="function",ck=Sa&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Rx=(n,...e)=>{try{return!!n(...e)}catch{return!1}},uk=Cx&&Rx(()=>{let n=!1,e=new Request(bt.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),Qv=64*1024,td=Cx&&Rx(()=>q.isReadableStream(new Response("").body)),xa={stream:td&&(n=>n.body)};Sa&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!xa[e]&&(xa[e]=q.isFunction(n[e])?t=>t[e]():(t,i)=>{throw new V(`Response type '${e}' is not supported`,V.ERR_NOT_SUPPORT,i)})})})(new Response);var lk=async n=>{if(n==null)return 0;if(q.isBlob(n))return n.size;if(q.isSpecCompliantForm(n))return(await new Request(bt.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(q.isArrayBufferView(n)||q.isArrayBuffer(n))return n.byteLength;if(q.isURLSearchParams(n)&&(n=n+""),q.isString(n))return(await ck(n)).byteLength},dk=async(n,e)=>{let t=q.toFiniteNumber(n.getContentLength());return t??lk(e)},pk=Sa&&(async n=>{let{url:e,method:t,data:i,signal:r,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:p="same-origin",fetchOptions:h}=Sx(n);u=u?(u+"").toLowerCase():"text";let x=rk([r,s&&s.toAbortSignal()],o),f,y=x&&x.unsubscribe&&(()=>{x.unsubscribe()}),w;try{if(c&&uk&&t!=="get"&&t!=="head"&&(w=await dk(l,i))!==0){let j=new Request(e,{method:"POST",body:i,duplex:"half"}),G;if(q.isFormData(i)&&(G=j.headers.get("content-type"))&&l.setContentType(G),j.body){let[$,Q]=ga(w,$r(va(c)));i=Yv(j.body,Qv,$,Q)}}q.isString(p)||(p=p?"include":"omit");let S="credentials"in Request.prototype;f=new Request(e,{...h,signal:x,method:t.toUpperCase(),headers:l.normalize().toJSON(),body:i,duplex:"half",credentials:S?p:void 0});let O=await fetch(f),k=td&&(u==="stream"||u==="response");if(td&&(a||k&&y)){let j={};["status","statusText","headers"].forEach(te=>{j[te]=O[te]});let G=q.toFiniteNumber(O.headers.get("content-length")),[$,Q]=a&&ga(G,$r(va(a),!0))||[];O=new Response(Yv(O.body,Qv,$,()=>{Q&&Q(),y&&y()}),j)}u=u||"text";let N=await xa[q.findKey(xa,u)||"text"](O,n);return!k&&y&&y(),await new Promise((j,G)=>{Ur(j,G,{data:N,headers:rn.from(O.headers),status:O.status,statusText:O.statusText,config:n,request:f})})}catch(S){throw y&&y(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new V("Network Error",V.ERR_NETWORK,n,f),{cause:S.cause||S}):V.from(S,S&&S.code,n,f)}}),nd={http:QP,xhr:nk,fetch:pk};q.forEach(nd,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});var Zv=n=>`- ${n}`,fk=n=>q.isFunction(n)||n===null||n===!1,Dx={getAdapter:n=>{n=q.isArray(n)?n:[n];let{length:e}=n,t,i,r={};for(let s=0;s<e;s++){t=n[s];let o;if(i=t,!fk(t)&&(i=nd[(o=String(t)).toLowerCase()],i===void 0))throw new V(`Unknown adapter '${o}'`);if(i)break;r[o||"#"+s]=i}if(!i){let s=Object.entries(r).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build")),o=e?s.length>1?`since :
|
|
`+s.map(Zv).join(`
|
|
`):" "+Zv(s[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:nd};function Gl(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Mi(null,n)}function ex(n){return Gl(n),n.headers=rn.from(n.headers),n.data=Wl.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Dx.getAdapter(n.adapter||ld.adapter)(n).then(function(i){return Gl(n),i.data=Wl.call(n,n.transformResponse,i),i.headers=rn.from(i.headers),i},function(i){return yx(i)||(Gl(n),i&&i.response&&(i.response.data=Wl.call(n,n.transformResponse,i.response),i.response.headers=rn.from(i.response.headers))),Promise.reject(i)})}var Ca={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Ca[n]=function(i){return typeof i===n||"a"+(e<1?"n ":" ")+n}});var tx={};Ca.transitional=function(e,t,i){function r(s,o){return"[Axios v"+ma+"] Transitional option '"+s+"'"+o+(i?". "+i:"")}return(s,o,a)=>{if(e===!1)throw new V(r(o," has been removed"+(t?" in "+t:"")),V.ERR_DEPRECATED);return t&&!tx[o]&&(tx[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,o,a):!0}};Ca.spelling=function(e){return(t,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function hk(n,e,t){if(typeof n!="object")throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);let i=Object.keys(n),r=i.length;for(;r-- >0;){let s=i[r],o=e[s];if(o){let a=n[s],c=a===void 0||o(a,s,n);if(c!==!0)throw new V("option "+s+" must be "+c,V.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new V("Unknown option "+s,V.ERR_BAD_OPTION)}}var fa={assertOptions:hk,validators:Ca},si=fa.validators,Hr=class{constructor(e){this.defaults=e,this.interceptors={request:new zv,response:new zv}}async request(e,t){try{return await this._request(e,t)}catch(i){if(i instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;let s=r.stack?r.stack.replace(/^.+\n/,""):"";try{i.stack?s&&!String(i.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
|
`+s):i.stack=s}catch{}}throw i}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=yr(this.defaults,t);let{transitional:i,paramsSerializer:r,headers:s}=t;i!==void 0&&fa.assertOptions(i,{silentJSONParsing:si.transitional(si.boolean),forcedJSONParsing:si.transitional(si.boolean),clarifyTimeoutError:si.transitional(si.boolean)},!1),r!=null&&(q.isFunction(r)?t.paramsSerializer={serialize:r}:fa.assertOptions(r,{encode:si.function,serialize:si.function},!0)),fa.assertOptions(t,{baseUrl:si.spelling("baseURL"),withXsrfToken:si.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&q.merge(s.common,s[t.method]);s&&q.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),t.headers=rn.concat(o,s);let a=[],c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(t)===!1||(c=c&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});let u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let l,p=0,h;if(!c){let f=[ex.bind(this),void 0];for(f.unshift.apply(f,a),f.push.apply(f,u),h=f.length,l=Promise.resolve(t);p<h;)l=l.then(f[p++],f[p++]);return l}h=a.length;let x=t;for(p=0;p<h;){let f=a[p++],y=a[p++];try{x=f(x)}catch(w){y.call(this,w);break}}try{l=ex.call(this,x)}catch(f){return Promise.reject(f)}for(p=0,h=u.length;p<h;)l=l.then(u[p++],u[p++]);return l}getUri(e){e=yr(this.defaults,e);let t=dd(e.baseURL,e.url);return od(t,e.params,e.paramsSerializer)}};q.forEach(["delete","get","head","options"],function(e){Hr.prototype[e]=function(t,i){return this.request(yr(i||{},{method:e,url:t,data:(i||{}).data}))}});q.forEach(["post","put","patch"],function(e){function t(i){return function(s,o,a){return this.request(yr(a||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}Hr.prototype[e]=t(),Hr.prototype[e+"Form"]=t(!0)});var ha=Hr,id=class n{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});let i=this;this.promise.then(r=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](r);i._listeners=null}),this.promise.then=r=>{let s,o=new Promise(a=>{i.subscribe(a),s=a}).then(r);return o.cancel=function(){i.unsubscribe(s)},o},e(function(s,o,a){i.reason||(i.reason=new Mi(s,o,a),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=i=>{e.abort(i)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new n(function(r){e=r}),cancel:e}}},mk=id;function gk(n){return function(t){return n.apply(null,t)}}function vk(n){return q.isObject(n)&&n.isAxiosError===!0}var rd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rd).forEach(([n,e])=>{rd[e]=n});var xk=rd;function Tx(n){let e=new ha(n),t=sx(ha.prototype.request,e);return q.extend(t,ha.prototype,e,{allOwnKeys:!0}),q.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Tx(yr(n,r))},t}var wt=Tx(ld);wt.Axios=ha;wt.CanceledError=Mi;wt.CancelToken=mk;wt.isCancel=yx;wt.VERSION=ma;wt.toFormData=_a;wt.AxiosError=V;wt.Cancel=wt.CanceledError;wt.all=function(e){return Promise.all(e)};wt.spread=gk;wt.isAxiosError=vk;wt.mergeConfig=yr;wt.AxiosHeaders=rn;wt.formToJSON=n=>xx(q.isHTMLForm(n)?new FormData(n):n);wt.getAdapter=Dx.getAdapter;wt.HttpStatusCode=xk;wt.default=wt;Ex.exports=wt});var Nx=T((tM,Fx)=>{"use strict";Fx.exports=Ox;function Ox(n,e,t){n instanceof RegExp&&(n=kx(n,t)),e instanceof RegExp&&(e=kx(e,t));var i=qx(n,e,t);return i&&{start:i[0],end:i[1],pre:t.slice(0,i[0]),body:t.slice(i[0]+n.length,i[1]),post:t.slice(i[1]+e.length)}}function kx(n,e){var t=e.match(n);return t?t[0]:null}Ox.range=qx;function qx(n,e,t){var i,r,s,o,a,c=t.indexOf(n),u=t.indexOf(e,c+1),l=c;if(c>=0&&u>0){if(n===e)return[c,u];for(i=[],s=t.length;l>=0&&!a;)l==c?(i.push(l),c=t.indexOf(n,l+1)):i.length==1?a=[i.pop(),u]:(r=i.pop(),r<s&&(s=r,o=u),u=t.indexOf(e,l+1)),l=c<u&&c>=0?c:u;i.length&&(a=[s,o])}return a}});var $x=T((nM,zx)=>{var Ax=Nx();zx.exports=wk;var Ix="\0SLASH"+Math.random()+"\0",jx="\0OPEN"+Math.random()+"\0",fd="\0CLOSE"+Math.random()+"\0",Lx="\0COMMA"+Math.random()+"\0",Mx="\0PERIOD"+Math.random()+"\0";function pd(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function yk(n){return n.split("\\\\").join(Ix).split("\\{").join(jx).split("\\}").join(fd).split("\\,").join(Lx).split("\\.").join(Mx)}function bk(n){return n.split(Ix).join("\\").split(jx).join("{").split(fd).join("}").split(Lx).join(",").split(Mx).join(".")}function Ux(n){if(!n)return[""];var e=[],t=Ax("{","}",n);if(!t)return n.split(",");var i=t.pre,r=t.body,s=t.post,o=i.split(",");o[o.length-1]+="{"+r+"}";var a=Ux(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function wk(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),Qs(yk(n),!0).map(bk)):[]}function _k(n){return"{"+n+"}"}function Sk(n){return/^-?0\d/.test(n)}function Ck(n,e){return n<=e}function Rk(n,e){return n>=e}function Qs(n,e){var t=[],i=Ax("{","}",n);if(!i)return[n];var r=i.pre,s=i.post.length?Qs(i.post,!1):[""];if(/\$$/.test(i.pre))for(var o=0;o<s.length;o++){var a=r+"{"+i.body+"}"+s[o];t.push(a)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),l=c||u,p=i.body.indexOf(",")>=0;if(!l&&!p)return i.post.match(/,.*\}/)?(n=i.pre+"{"+i.body+fd+i.post,Qs(n)):[n];var h;if(l)h=i.body.split(/\.\./);else if(h=Ux(i.body),h.length===1&&(h=Qs(h[0],!1).map(_k),h.length===1))return s.map(function(Oe){return i.pre+h[0]+Oe});var x;if(l){var f=pd(h[0]),y=pd(h[1]),w=Math.max(h[0].length,h[1].length),S=h.length==3?Math.abs(pd(h[2])):1,O=Ck,k=y<f;k&&(S*=-1,O=Rk);var N=h.some(Sk);x=[];for(var j=f;O(j,y);j+=S){var G;if(u)G=String.fromCharCode(j),G==="\\"&&(G="");else if(G=String(j),N){var $=w-G.length;if($>0){var Q=new Array($+1).join("0");j<0?G="-"+Q+G.slice(1):G=Q+G}}x.push(G)}}else{x=[];for(var te=0;te<h.length;te++)x.push.apply(x,Qs(h[te],!1))}for(var te=0;te<x.length;te++)for(var o=0;o<s.length;o++){var a=r+x[te]+s[o];(!e||l||a)&&t.push(a)}}return t}});var Hx=T(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.assertValidPattern=void 0;var Dk=1024*64,Tk=n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>Dk)throw new TypeError("pattern is too long")};Ra.assertValidPattern=Tk});var Wx=T(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.parseClass=void 0;var Ek={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Zs=n=>n.replace(/[[\]\\-]/g,"\\$&"),Pk=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Bx=n=>n.join(""),kk=(n,e)=>{let t=e;if(n.charAt(t)!=="[")throw new Error("not in a brace expression");let i=[],r=[],s=t+1,o=!1,a=!1,c=!1,u=!1,l=t,p="";e:for(;s<n.length;){let y=n.charAt(s);if((y==="!"||y==="^")&&s===t+1){u=!0,s++;continue}if(y==="]"&&o&&!c){l=s+1;break}if(o=!0,y==="\\"&&!c){c=!0,s++;continue}if(y==="["&&!c){for(let[w,[S,O,k]]of Object.entries(Ek))if(n.startsWith(w,s)){if(p)return["$.",!1,n.length-t,!0];s+=w.length,k?r.push(S):i.push(S),a=a||O;continue e}}if(c=!1,p){y>p?i.push(Zs(p)+"-"+Zs(y)):y===p&&i.push(Zs(y)),p="",s++;continue}if(n.startsWith("-]",s+1)){i.push(Zs(y+"-")),s+=2;continue}if(n.startsWith("-",s+1)){p=y,s+=2;continue}i.push(Zs(y)),s++}if(l<s)return["",!1,0,!1];if(!i.length&&!r.length)return["$.",!1,n.length-t,!0];if(r.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!u){let y=i[0].length===2?i[0].slice(-1):i[0];return[Pk(y),!1,l-t,!1]}let h="["+(u?"^":"")+Bx(i)+"]",x="["+(u?"":"^")+Bx(r)+"]";return[i.length&&r.length?"("+h+"|"+x+")":i.length?h:x,a,l-t,!0]};Da.parseClass=kk});var Ea=T(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.unescape=void 0;var Ok=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/\[([^\/\\])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");Ta.unescape=Ok});var gd=T(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.AST=void 0;var qk=Wx(),Pa=Ea(),Fk=new Set(["!","?","+","*","@"]),Kx=n=>Fk.has(n),Nk="(?!(?:^|/)\\.\\.?(?:$|/))",ka="(?!\\.)",Ak=new Set(["[","."]),Ik=new Set(["..","."]),jk=new Set("().*{}+?[]^$\\!"),Lk=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),md="[^/]",Gx=md+"*?",Vx=md+"+?",hd=class n{type;#e;#n;#s=!1;#i=[];#a;#u;#d;#c=!1;#o;#t;#m=!1;constructor(e,t,i={}){this.type=e,e&&(this.#n=!0),this.#a=t,this.#e=this.#a?this.#a.#e:this,this.#o=this.#e===this?i:this.#e.#o,this.#d=this.#e===this?[]:this.#e.#d,e==="!"&&!this.#e.#c&&this.#d.push(this),this.#u=this.#a?this.#a.#i.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let e of this.#i)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#t!==void 0?this.#t:this.type?this.#t=this.type+"("+this.#i.map(e=>String(e)).join("|")+")":this.#t=this.#i.map(e=>String(e)).join("")}#v(){if(this!==this.#e)throw new Error("should only call on root");if(this.#c)return this;this.toString(),this.#c=!0;let e;for(;e=this.#d.pop();){if(e.type!=="!")continue;let t=e,i=t.#a;for(;i;){for(let r=t.#u+1;!i.type&&r<i.#i.length;r++)for(let s of e.#i){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(i.#i[r])}t=i,i=t.#a}}return this}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof n&&t.#a===this))throw new Error("invalid part: "+t);this.#i.push(t)}}toJSON(){let e=this.type===null?this.#i.slice().map(t=>typeof t=="string"?t:t.toJSON()):[this.type,...this.#i.map(t=>t.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#c&&this.#a?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#a?.isStart())return!1;if(this.#u===0)return!0;let e=this.#a;for(let t=0;t<this.#u;t++){let i=e.#i[t];if(!(i instanceof n&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#a?.type==="!")return!0;if(!this.#a?.isEnd())return!1;if(!this.type)return this.#a?.isEnd();let e=this.#a?this.#a.#i.length:0;return this.#u===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new n(this.type,e);for(let i of this.#i)t.copyIn(i);return t}static#f(e,t,i,r){let s=!1,o=!1,a=-1,c=!1;if(t.type===null){let x=i,f="";for(;x<e.length;){let y=e.charAt(x++);if(s||y==="\\"){s=!s,f+=y;continue}if(o){x===a+1?(y==="^"||y==="!")&&(c=!0):y==="]"&&!(x===a+2&&c)&&(o=!1),f+=y;continue}else if(y==="["){o=!0,a=x,c=!1,f+=y;continue}if(!r.noext&&Kx(y)&&e.charAt(x)==="("){t.push(f),f="";let w=new n(y,t);x=n.#f(e,w,x,r),t.push(w);continue}f+=y}return t.push(f),x}let u=i+1,l=new n(null,t),p=[],h="";for(;u<e.length;){let x=e.charAt(u++);if(s||x==="\\"){s=!s,h+=x;continue}if(o){u===a+1?(x==="^"||x==="!")&&(c=!0):x==="]"&&!(u===a+2&&c)&&(o=!1),h+=x;continue}else if(x==="["){o=!0,a=u,c=!1,h+=x;continue}if(Kx(x)&&e.charAt(u)==="("){l.push(h),h="";let f=new n(x,l);l.push(f),u=n.#f(e,f,u,r);continue}if(x==="|"){l.push(h),h="",p.push(l),l=new n(null,t);continue}if(x===")")return h===""&&t.#i.length===0&&(t.#m=!0),l.push(h),h="",t.push(...p,l),u;h+=x}return t.type=null,t.#n=void 0,t.#i=[e.substring(i-1)],u}static fromGlob(e,t={}){let i=new n(null,void 0,t);return n.#f(e,i,0,t),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,i,r,s]=this.toRegExpSource();if(!(r||this.#n||this.#o.nocase&&!this.#o.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let a=(this.#o.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#o}toRegExpSource(e){let t=e??!!this.#o.dot;if(this.#e===this&&this.#v(),!this.type){let c=this.isStart()&&this.isEnd(),u=this.#i.map(x=>{let[f,y,w,S]=typeof x=="string"?n.#b(x,this.#n,c):x.toRegExpSource(e);return this.#n=this.#n||w,this.#s=this.#s||S,f}).join(""),l="";if(this.isStart()&&typeof this.#i[0]=="string"&&!(this.#i.length===1&&Ik.has(this.#i[0]))){let f=Ak,y=t&&f.has(u.charAt(0))||u.startsWith("\\.")&&f.has(u.charAt(2))||u.startsWith("\\.\\.")&&f.has(u.charAt(4)),w=!t&&!e&&f.has(u.charAt(0));l=y?Nk:w?ka:""}let p="";return this.isEnd()&&this.#e.#c&&this.#a?.type==="!"&&(p="(?:$|\\/)"),[l+u+p,(0,Pa.unescape)(u),this.#n=!!this.#n,this.#s]}let i=this.type==="*"||this.type==="+",r=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#p(t);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let c=this.toString();return this.#i=[c],this.type=null,this.#n=void 0,[c,(0,Pa.unescape)(this.toString()),!1,!1]}let o=!i||e||t||!ka?"":this.#p(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#m)a=(this.isStart()&&!t?ka:"")+Vx;else{let c=this.type==="!"?"))"+(this.isStart()&&!t&&!e?ka:"")+Gx+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=r+s+c}return[a,(0,Pa.unescape)(s),this.#n=!!this.#n,this.#s]}#p(e){return this.#i.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[i,r,s,o]=t.toRegExpSource(e);return this.#s=this.#s||o,i}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#b(e,t,i=!1){let r=!1,s="",o=!1;for(let a=0;a<e.length;a++){let c=e.charAt(a);if(r){r=!1,s+=(jk.has(c)?"\\":"")+c;continue}if(c==="\\"){a===e.length-1?s+="\\\\":r=!0;continue}if(c==="["){let[u,l,p,h]=(0,qk.parseClass)(e,a);if(p){s+=u,o=o||l,a+=p-1,t=t||h;continue}}if(c==="*"){i&&e==="*"?s+=Vx:s+=Gx,t=!0;continue}if(c==="?"){s+=md,t=!0;continue}s+=Lk(c)}return[s,(0,Pa.unescape)(e),!!t,o]}};Oa.AST=hd});var vd=T(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.escape=void 0;var Mk=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/[?*()[\]]/g,"[$&]"):n.replace(/[?*()[\]\\]/g,"\\$&");qa.escape=Mk});var Ui=T(ee=>{"use strict";var Uk=ee&&ee.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(ee,"__esModule",{value:!0});ee.unescape=ee.escape=ee.AST=ee.Minimatch=ee.match=ee.makeRe=ee.braceExpand=ee.defaults=ee.filter=ee.GLOBSTAR=ee.sep=ee.minimatch=void 0;var zk=Uk($x()),Fa=Hx(),Yx=gd(),$k=vd(),Hk=Ea(),Bk=(n,e,t={})=>((0,Fa.assertValidPattern)(e),!t.nocomment&&e.charAt(0)==="#"?!1:new br(e,t).match(n));ee.minimatch=Bk;var Wk=/^\*+([^+@!?\*\[\(]*)$/,Kk=n=>e=>!e.startsWith(".")&&e.endsWith(n),Gk=n=>e=>e.endsWith(n),Vk=n=>(n=n.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(n)),Xk=n=>(n=n.toLowerCase(),e=>e.toLowerCase().endsWith(n)),Jk=/^\*+\.\*+$/,Yk=n=>!n.startsWith(".")&&n.includes("."),Qk=n=>n!=="."&&n!==".."&&n.includes("."),Zk=/^\.\*+$/,eO=n=>n!=="."&&n!==".."&&n.startsWith("."),tO=/^\*+$/,nO=n=>n.length!==0&&!n.startsWith("."),iO=n=>n.length!==0&&n!=="."&&n!=="..",rO=/^\?+([^+@!?\*\[\(]*)?$/,sO=([n,e=""])=>{let t=Qx([n]);return e?(e=e.toLowerCase(),i=>t(i)&&i.toLowerCase().endsWith(e)):t},oO=([n,e=""])=>{let t=Zx([n]);return e?(e=e.toLowerCase(),i=>t(i)&&i.toLowerCase().endsWith(e)):t},aO=([n,e=""])=>{let t=Zx([n]);return e?i=>t(i)&&i.endsWith(e):t},cO=([n,e=""])=>{let t=Qx([n]);return e?i=>t(i)&&i.endsWith(e):t},Qx=([n])=>{let e=n.length;return t=>t.length===e&&!t.startsWith(".")},Zx=([n])=>{let e=n.length;return t=>t.length===e&&t!=="."&&t!==".."},ey=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Xx={win32:{sep:"\\"},posix:{sep:"/"}};ee.sep=ey==="win32"?Xx.win32.sep:Xx.posix.sep;ee.minimatch.sep=ee.sep;ee.GLOBSTAR=Symbol("globstar **");ee.minimatch.GLOBSTAR=ee.GLOBSTAR;var uO="[^/]",lO=uO+"*?",dO="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",pO="(?:(?!(?:\\/|^)\\.).)*?",fO=(n,e={})=>t=>(0,ee.minimatch)(t,n,e);ee.filter=fO;ee.minimatch.filter=ee.filter;var En=(n,e={})=>Object.assign({},n,e),hO=n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return ee.minimatch;let e=ee.minimatch;return Object.assign((i,r,s={})=>e(i,r,En(n,s)),{Minimatch:class extends e.Minimatch{constructor(r,s={}){super(r,En(n,s))}static defaults(r){return e.defaults(En(n,r)).Minimatch}},AST:class extends e.AST{constructor(r,s,o={}){super(r,s,En(n,o))}static fromGlob(r,s={}){return e.AST.fromGlob(r,En(n,s))}},unescape:(i,r={})=>e.unescape(i,En(n,r)),escape:(i,r={})=>e.escape(i,En(n,r)),filter:(i,r={})=>e.filter(i,En(n,r)),defaults:i=>e.defaults(En(n,i)),makeRe:(i,r={})=>e.makeRe(i,En(n,r)),braceExpand:(i,r={})=>e.braceExpand(i,En(n,r)),match:(i,r,s={})=>e.match(i,r,En(n,s)),sep:e.sep,GLOBSTAR:ee.GLOBSTAR})};ee.defaults=hO;ee.minimatch.defaults=ee.defaults;var mO=(n,e={})=>((0,Fa.assertValidPattern)(n),e.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:(0,zk.default)(n));ee.braceExpand=mO;ee.minimatch.braceExpand=ee.braceExpand;var gO=(n,e={})=>new br(n,e).makeRe();ee.makeRe=gO;ee.minimatch.makeRe=ee.makeRe;var vO=(n,e,t={})=>{let i=new br(e,t);return n=n.filter(r=>i.match(r)),i.options.nonull&&!n.length&&n.push(e),n};ee.match=vO;ee.minimatch.match=ee.match;var Jx=/[?*]|[+@!]\(.*?\)|\[|\]/,xO=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),br=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){(0,Fa.assertValidPattern)(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||ey,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let r=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=s[0]===""&&s[1]===""&&(s[2]==="?"||!Jx.test(s[2]))&&!Jx.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(c)return[...s.slice(0,4),...s.slice(4).map(l=>this.parse(l))];if(u)return[s[0],...s.slice(1).map(l=>this.parse(l))]}return s.map(c=>this.parse(c))});if(this.debug(this.pattern,r),this.set=r.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let r=0;r<e[i].length;r++)e[i][r]==="**"&&(e[i][r]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let i=-1;for(;(i=t.indexOf("**",i+1))!==-1;){let r=i;for(;t[r+1]==="**";)r++;r!==i&&t.splice(i,r-i)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((i,r)=>{let s=i[i.length-1];return r==="**"&&s==="**"?i:r===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(r),i)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let r=1;r<e.length-1;r++){let s=e[r];r===1&&s===""&&e[0]===""||(s==="."||s==="")&&(t=!0,e.splice(r,1),r--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let r=e[i-1];r&&r!=="."&&r!==".."&&r!=="**"&&(t=!0,e.splice(i-1,2),i-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let i of e){let r=-1;for(;(r=i.indexOf("**",r+1))!==-1;){let o=r;for(;i[o+1]==="**";)o++;o>r&&i.splice(r+1,o-r);let a=i[r+1],c=i[r+2],u=i[r+3];if(a!==".."||!c||c==="."||c===".."||!u||u==="."||u==="..")continue;t=!0,i.splice(r,1);let l=i.slice(0);l[r]="**",e.push(l),r--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let a=i[o];o===1&&a===""&&i[0]===""||(a==="."||a==="")&&(t=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(t=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){let o=i[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let c=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...c),i.length===0&&i.push(""),s-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let i=t+1;i<e.length;i++){let r=this.partsMatch(e[t],e[i],!this.preserveMultipleSlashes);r&&(e[t]=r,e[i]=[])}return e.filter(t=>t.length)}partsMatch(e,t,i=!1){let r=0,s=0,o=[],a="";for(;r<e.length&&s<t.length;)if(e[r]===t[s])o.push(a==="b"?t[s]:e[r]),r++,s++;else if(i&&e[r]==="**"&&t[s]===e[r+1])o.push(e[r]),r++;else if(i&&t[s]==="**"&&e[r]===t[s+1])o.push(t[s]),s++;else if(e[r]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[r]),r++,s++}else if(t[s]==="*"&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&e[r]!=="**"){if(a==="a")return!1;a="b",o.push(t[s]),r++,s++}else return!1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,i=0;for(let r=0;r<e.length&&e.charAt(r)==="!";r++)t=!t,i++;i&&(this.pattern=e.slice(i)),this.negate=t}matchOne(e,t,i=!1){let r=this.options;if(this.isWindows){let y=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),w=!y&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),S=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),O=!S&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),k=w?3:y?0:void 0,N=O?3:S?0:void 0;if(typeof k=="number"&&typeof N=="number"){let[j,G]=[e[k],t[N]];j.toLowerCase()===G.toLowerCase()&&(t[N]=j,N>k?t=t.slice(N):k>N&&(e=e.slice(k)))}}let{optimizationLevel:s=1}=this.options;s>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,c=e.length,u=t.length;o<c&&a<u;o++,a++){this.debug("matchOne loop");var l=t[a],p=e[o];if(this.debug(t,l,p),l===!1)return!1;if(l===ee.GLOBSTAR){this.debug("GLOBSTAR",[t,l,p]);var h=o,x=a+1;if(x===u){for(this.debug("** at the end");o<c;o++)if(e[o]==="."||e[o]===".."||!r.dot&&e[o].charAt(0)===".")return!1;return!0}for(;h<c;){var f=e[h];if(this.debug(`
|
|
globstar while`,e,h,t,x,f),this.matchOne(e.slice(h),t.slice(x),i))return this.debug("globstar found match!",h,c,f),!0;if(f==="."||f===".."||!r.dot&&f.charAt(0)==="."){this.debug("dot detected!",e,h,t,x);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
|
|
>>> no match, partial?`,e,h,t,x),h===c))}let y;if(typeof l=="string"?(y=p===l,this.debug("string match",l,p,y)):(y=l.test(p),this.debug("pattern match",l,p,y)),!y)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,ee.braceExpand)(this.pattern,this.options)}parse(e){(0,Fa.assertValidPattern)(e);let t=this.options;if(e==="**")return ee.GLOBSTAR;if(e==="")return"";let i,r=null;(i=e.match(tO))?r=t.dot?iO:nO:(i=e.match(Wk))?r=(t.nocase?t.dot?Xk:Vk:t.dot?Gk:Kk)(i[1]):(i=e.match(rO))?r=(t.nocase?t.dot?oO:sO:t.dot?aO:cO)(i):(i=e.match(Jk))?r=t.dot?Qk:Yk:(i=e.match(Zk))&&(r=eO);let s=Yx.AST.fromGlob(e,this.options).toMMPattern();return r&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:r}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,i=t.noglobstar?lO:t.dot?dO:pO,r=new Set(t.nocase?["i"]:[]),s=e.map(c=>{let u=c.map(l=>{if(l instanceof RegExp)for(let p of l.flags.split(""))r.add(p);return typeof l=="string"?xO(l):l===ee.GLOBSTAR?ee.GLOBSTAR:l._src});return u.forEach((l,p)=>{let h=u[p+1],x=u[p-1];l!==ee.GLOBSTAR||x===ee.GLOBSTAR||(x===void 0?h!==void 0&&h!==ee.GLOBSTAR?u[p+1]="(?:\\/|"+i+"\\/)?"+h:u[p]=i:h===void 0?u[p-1]=x+"(?:\\/|"+i+")?":h!==ee.GLOBSTAR&&(u[p-1]=x+"(?:\\/|\\/"+i+"\\/)"+h,u[p+1]=ee.GLOBSTAR))}),u.filter(l=>l!==ee.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...r].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let r=this.slashSplit(e);this.debug(this.pattern,"split",r);let s=this.set;this.debug(this.pattern,"set",s);let o=r[r.length-1];if(!o)for(let a=r.length-2;!o&&a>=0;a--)o=r[a];for(let a=0;a<s.length;a++){let c=s[a],u=r;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,t))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return ee.minimatch.defaults(e).Minimatch}};ee.Minimatch=br;var yO=gd();Object.defineProperty(ee,"AST",{enumerable:!0,get:function(){return yO.AST}});var bO=vd();Object.defineProperty(ee,"escape",{enumerable:!0,get:function(){return bO.escape}});var wO=Ea();Object.defineProperty(ee,"unescape",{enumerable:!0,get:function(){return wO.unescape}});ee.minimatch.AST=Yx.AST;ee.minimatch.Minimatch=br;ee.minimatch.escape=$k.escape;ee.minimatch.unescape=Hk.unescape});var sy=T(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.LRUCache=void 0;var Wr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,ny=new Set,xd=typeof process=="object"&&process?process:{},iy=(n,e,t,i)=>{typeof xd.emitWarning=="function"?xd.emitWarning(n,e,t,i):console.error(`[${t}] ${e}: ${n}`)},Na=globalThis.AbortController,ty=globalThis.AbortSignal;if(typeof Na>"u"){ty=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,r){this._onabort.push(r)}},Na=class{constructor(){e()}signal=new ty;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let r of this.signal._onabort)r(i);this.signal.onabort?.(i)}}};let n=xd.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{n&&(n=!1,iy("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var _O=n=>!ny.has(n),fM=Symbol("type"),zi=n=>n&&n===Math.floor(n)&&n>0&&isFinite(n),ry=n=>zi(n)?n<=Math.pow(2,8)?Uint8Array:n<=Math.pow(2,16)?Uint16Array:n<=Math.pow(2,32)?Uint32Array:n<=Number.MAX_SAFE_INTEGER?Kr:null:null,Kr=class extends Array{constructor(e){super(e),this.fill(0)}},yd=class n{heap;length;static#e=!1;static create(e){let t=ry(e);if(!t)return[];n.#e=!0;let i=new n(e,t);return n.#e=!1,i}constructor(e,t){if(!n.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},bd=class n{#e;#n;#s;#i;#a;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#u;#d;#c;#o;#t;#m;#v;#f;#p;#b;#g;#R;#D;#w;#y;#E;#h;static unsafeExposeInternals(e){return{starts:e.#D,ttls:e.#w,sizes:e.#R,keyMap:e.#c,keyList:e.#o,valList:e.#t,next:e.#m,prev:e.#v,get head(){return e.#f},get tail(){return e.#p},free:e.#b,isBackgroundFetch:t=>e.#l(t),backgroundFetch:(t,i,r,s)=>e.#N(t,i,r,s),moveToTail:t=>e.#F(t),indexes:t=>e.#C(t),rindexes:t=>e.#P(t),isStale:t=>e.#x(t)}}get max(){return this.#e}get maxSize(){return this.#n}get calculatedSize(){return this.#d}get size(){return this.#u}get fetchMethod(){return this.#a}get dispose(){return this.#s}get disposeAfter(){return this.#i}constructor(e){let{max:t=0,ttl:i,ttlResolution:r=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,disposeAfter:l,noDisposeOnSet:p,noUpdateTTL:h,maxSize:x=0,maxEntrySize:f=0,sizeCalculation:y,fetchMethod:w,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:O,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:N,ignoreFetchAbort:j}=e;if(t!==0&&!zi(t))throw new TypeError("max option must be a nonnegative integer");let G=t?ry(t):Array;if(!G)throw new Error("invalid max value: "+t);if(this.#e=t,this.#n=x,this.maxEntrySize=f||this.#n,this.sizeCalculation=y,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(w!==void 0&&typeof w!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#a=w,this.#E=!!w,this.#c=new Map,this.#o=new Array(t).fill(void 0),this.#t=new Array(t).fill(void 0),this.#m=new G(t),this.#v=new G(t),this.#f=0,this.#p=0,this.#b=yd.create(t),this.#u=0,this.#d=0,typeof u=="function"&&(this.#s=u),typeof l=="function"?(this.#i=l,this.#g=[]):(this.#i=void 0,this.#g=void 0),this.#y=!!this.#s,this.#h=!!this.#i,this.noDisposeOnSet=!!p,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!k,this.allowStaleOnFetchAbort=!!N,this.ignoreFetchAbort=!!j,this.maxEntrySize!==0){if(this.#n!==0&&!zi(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!zi(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#O()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!O,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=zi(r)||r===0?r:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!zi(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#k()}if(this.#e===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#n){let $="LRU_CACHE_UNBOUNDED";_O($)&&(ny.add($),iy("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",$,n))}}getRemainingTTL(e){return this.#c.has(e)?1/0:0}#k(){let e=new Kr(this.#e),t=new Kr(this.#e);this.#w=e,this.#D=t,this.#r=(s,o,a=Wr.now())=>{if(t[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let c=setTimeout(()=>{this.#x(s)&&this.delete(this.#o[s])},o+1);c.unref&&c.unref()}},this.#T=s=>{t[s]=e[s]!==0?Wr.now():0},this.#_=(s,o)=>{if(e[o]){let a=e[o],c=t[o];if(!a||!c)return;s.ttl=a,s.start=c,s.now=i||r();let u=s.now-c;s.remainingTTL=a-u}};let i=0,r=()=>{let s=Wr.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#c.get(s);if(o===void 0)return 0;let a=e[o],c=t[o];if(!a||!c)return 1/0;let u=(i||r())-c;return a-u},this.#x=s=>{let o=t[s],a=e[s];return!!a&&!!o&&(i||r())-o>a}}#T=()=>{};#_=()=>{};#r=()=>{};#x=()=>!1;#O(){let e=new Kr(this.#e);this.#d=0,this.#R=e,this.#S=t=>{this.#d-=e[t],e[t]=0},this.#I=(t,i,r,s)=>{if(this.#l(i))return 0;if(!zi(r))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(r=s(i,t),!zi(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return r},this.#A=(t,i,r)=>{if(e[t]=i,this.#n){let s=this.#n-e[t];for(;this.#d>s;)this.#q(!0)}this.#d+=e[t],r&&(r.entrySize=i,r.totalCalculatedSize=this.#d)}}#S=e=>{};#A=(e,t,i)=>{};#I=(e,t,i,r)=>{if(i||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#C({allowStale:e=this.allowStale}={}){if(this.#u)for(let t=this.#p;!(!this.#j(t)||((e||!this.#x(t))&&(yield t),t===this.#f));)t=this.#v[t]}*#P({allowStale:e=this.allowStale}={}){if(this.#u)for(let t=this.#f;!(!this.#j(t)||((e||!this.#x(t))&&(yield t),t===this.#p));)t=this.#m[t]}#j(e){return e!==void 0&&this.#c.get(this.#o[e])===e}*entries(){for(let e of this.#C())this.#t[e]!==void 0&&this.#o[e]!==void 0&&!this.#l(this.#t[e])&&(yield[this.#o[e],this.#t[e]])}*rentries(){for(let e of this.#P())this.#t[e]!==void 0&&this.#o[e]!==void 0&&!this.#l(this.#t[e])&&(yield[this.#o[e],this.#t[e]])}*keys(){for(let e of this.#C()){let t=this.#o[e];t!==void 0&&!this.#l(this.#t[e])&&(yield t)}}*rkeys(){for(let e of this.#P()){let t=this.#o[e];t!==void 0&&!this.#l(this.#t[e])&&(yield t)}}*values(){for(let e of this.#C())this.#t[e]!==void 0&&!this.#l(this.#t[e])&&(yield this.#t[e])}*rvalues(){for(let e of this.#P())this.#t[e]!==void 0&&!this.#l(this.#t[e])&&(yield this.#t[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let i of this.#C()){let r=this.#t[i],s=this.#l(r)?r.__staleWhileFetching:r;if(s!==void 0&&e(s,this.#o[i],this))return this.get(this.#o[i],t)}}forEach(e,t=this){for(let i of this.#C()){let r=this.#t[i],s=this.#l(r)?r.__staleWhileFetching:r;s!==void 0&&e.call(t,s,this.#o[i],this)}}rforEach(e,t=this){for(let i of this.#P()){let r=this.#t[i],s=this.#l(r)?r.__staleWhileFetching:r;s!==void 0&&e.call(t,s,this.#o[i],this)}}purgeStale(){let e=!1;for(let t of this.#P({allowStale:!0}))this.#x(t)&&(this.delete(this.#o[t]),e=!0);return e}info(e){let t=this.#c.get(e);if(t===void 0)return;let i=this.#t[t],r=this.#l(i)?i.__staleWhileFetching:i;if(r===void 0)return;let s={value:r};if(this.#w&&this.#D){let o=this.#w[t],a=this.#D[t];if(o&&a){let c=o-(Wr.now()-a);s.ttl=c,s.start=Date.now()}}return this.#R&&(s.size=this.#R[t]),s}dump(){let e=[];for(let t of this.#C({allowStale:!0})){let i=this.#o[t],r=this.#t[t],s=this.#l(r)?r.__staleWhileFetching:r;if(s===void 0||i===void 0)continue;let o={value:s};if(this.#w&&this.#D){o.ttl=this.#w[t];let a=Wr.now()-this.#D[t];o.start=Math.floor(Date.now()-a)}this.#R&&(o.size=this.#R[t]),e.unshift([i,o])}return e}load(e){this.clear();for(let[t,i]of e){if(i.start){let r=Date.now()-i.start;i.start=Wr.now()-r}this.set(t,i.value,i)}}set(e,t,i={}){if(t===void 0)return this.delete(e),this;let{ttl:r=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:c}=i,{noUpdateTTL:u=this.noUpdateTTL}=i,l=this.#I(e,t,i.size||0,a);if(this.maxEntrySize&&l>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.delete(e),this;let p=this.#u===0?void 0:this.#c.get(e);if(p===void 0)p=this.#u===0?this.#p:this.#b.length!==0?this.#b.pop():this.#u===this.#e?this.#q(!1):this.#u,this.#o[p]=e,this.#t[p]=t,this.#c.set(e,p),this.#m[this.#p]=p,this.#v[p]=this.#p,this.#p=p,this.#u++,this.#A(p,l,c),c&&(c.set="add"),u=!1;else{this.#F(p);let h=this.#t[p];if(t!==h){if(this.#E&&this.#l(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:x}=h;x!==void 0&&!o&&(this.#y&&this.#s?.(x,e,"set"),this.#h&&this.#g?.push([x,e,"set"]))}else o||(this.#y&&this.#s?.(h,e,"set"),this.#h&&this.#g?.push([h,e,"set"]));if(this.#S(p),this.#A(p,l,c),this.#t[p]=t,c){c.set="replace";let x=h&&this.#l(h)?h.__staleWhileFetching:h;x!==void 0&&(c.oldValue=x)}}else c&&(c.set="update")}if(r!==0&&!this.#w&&this.#k(),this.#w&&(u||this.#r(p,r,s),c&&this.#_(c,p)),!o&&this.#h&&this.#g){let h=this.#g,x;for(;x=h?.shift();)this.#i?.(...x)}return this}pop(){try{for(;this.#u;){let e=this.#t[this.#f];if(this.#q(!0),this.#l(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#g){let e=this.#g,t;for(;t=e?.shift();)this.#i?.(...t)}}}#q(e){let t=this.#f,i=this.#o[t],r=this.#t[t];return this.#E&&this.#l(r)?r.__abortController.abort(new Error("evicted")):(this.#y||this.#h)&&(this.#y&&this.#s?.(r,i,"evict"),this.#h&&this.#g?.push([r,i,"evict"])),this.#S(t),e&&(this.#o[t]=void 0,this.#t[t]=void 0,this.#b.push(t)),this.#u===1?(this.#f=this.#p=0,this.#b.length=0):this.#f=this.#m[t],this.#c.delete(i),this.#u--,t}has(e,t={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:r}=t,s=this.#c.get(e);if(s!==void 0){let o=this.#t[s];if(this.#l(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#x(s))r&&(r.has="stale",this.#_(r,s));else return i&&this.#T(s),r&&(r.has="hit",this.#_(r,s)),!0}else r&&(r.has="miss");return!1}peek(e,t={}){let{allowStale:i=this.allowStale}=t,r=this.#c.get(e);if(r===void 0||!i&&this.#x(r))return;let s=this.#t[r];return this.#l(s)?s.__staleWhileFetching:s}#N(e,t,i,r){let s=t===void 0?void 0:this.#t[t];if(this.#l(s))return s;let o=new Na,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let c={signal:o.signal,options:i,context:r},u=(y,w=!1)=>{let{aborted:S}=o.signal,O=i.ignoreFetchAbort&&y!==void 0;if(i.status&&(S&&!w?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,O&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),S&&!O&&!w)return p(o.signal.reason);let k=x;return this.#t[t]===x&&(y===void 0?k.__staleWhileFetching?this.#t[t]=k.__staleWhileFetching:this.delete(e):(i.status&&(i.status.fetchUpdated=!0),this.set(e,y,c.options))),y},l=y=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=y),p(y)),p=y=>{let{aborted:w}=o.signal,S=w&&i.allowStaleOnFetchAbort,O=S||i.allowStaleOnFetchRejection,k=O||i.noDeleteOnFetchRejection,N=x;if(this.#t[t]===x&&(!k||N.__staleWhileFetching===void 0?this.delete(e):S||(this.#t[t]=N.__staleWhileFetching)),O)return i.status&&N.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),N.__staleWhileFetching;if(N.__returned===N)throw y},h=(y,w)=>{let S=this.#a?.(e,s,c);S&&S instanceof Promise&&S.then(O=>y(O===void 0?void 0:O),w),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(y(void 0),i.allowStaleOnFetchAbort&&(y=O=>u(O,!0)))})};i.status&&(i.status.fetchDispatched=!0);let x=new Promise(h).then(u,l),f=Object.assign(x,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return t===void 0?(this.set(e,f,{...c.options,status:void 0}),t=this.#c.get(e)):this.#t[t]=f,f}#l(e){if(!this.#E)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof Na}async fetch(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:c=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:x=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:y,forceRefresh:w=!1,status:S,signal:O}=t;if(!this.#E)return S&&(S.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:s,status:S});let k={allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:c,sizeCalculation:u,noUpdateTTL:l,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:f,ignoreFetchAbort:x,status:S,signal:O},N=this.#c.get(e);if(N===void 0){S&&(S.fetch="miss");let j=this.#N(e,N,k,y);return j.__returned=j}else{let j=this.#t[N];if(this.#l(j)){let Oe=i&&j.__staleWhileFetching!==void 0;return S&&(S.fetch="inflight",Oe&&(S.returnedStale=!0)),Oe?j.__staleWhileFetching:j.__returned=j}let G=this.#x(N);if(!w&&!G)return S&&(S.fetch="hit"),this.#F(N),r&&this.#T(N),S&&this.#_(S,N),j;let $=this.#N(e,N,k,y),te=$.__staleWhileFetching!==void 0&&i;return S&&(S.fetch=G?"stale":"refresh",te&&G&&(S.returnedStale=!0)),te?$.__staleWhileFetching:$.__returned=$}}get(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=t,a=this.#c.get(e);if(a!==void 0){let c=this.#t[a],u=this.#l(c);return o&&this.#_(o,a),this.#x(a)?(o&&(o.get="stale"),u?(o&&i&&c.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?c.__staleWhileFetching:void 0):(s||this.delete(e),o&&i&&(o.returnedStale=!0),i?c:void 0)):(o&&(o.get="hit"),u?c.__staleWhileFetching:(this.#F(a),r&&this.#T(a),c))}else o&&(o.get="miss")}#L(e,t){this.#v[t]=e,this.#m[e]=t}#F(e){e!==this.#p&&(e===this.#f?this.#f=this.#m[e]:this.#L(this.#v[e],this.#m[e]),this.#L(this.#p,e),this.#p=e)}delete(e){let t=!1;if(this.#u!==0){let i=this.#c.get(e);if(i!==void 0)if(t=!0,this.#u===1)this.clear();else{this.#S(i);let r=this.#t[i];if(this.#l(r)?r.__abortController.abort(new Error("deleted")):(this.#y||this.#h)&&(this.#y&&this.#s?.(r,e,"delete"),this.#h&&this.#g?.push([r,e,"delete"])),this.#c.delete(e),this.#o[i]=void 0,this.#t[i]=void 0,i===this.#p)this.#p=this.#v[i];else if(i===this.#f)this.#f=this.#m[i];else{let s=this.#v[i];this.#m[s]=this.#m[i];let o=this.#m[i];this.#v[o]=this.#v[i]}this.#u--,this.#b.push(i)}}if(this.#h&&this.#g?.length){let i=this.#g,r;for(;r=i?.shift();)this.#i?.(...r)}return t}clear(){for(let e of this.#P({allowStale:!0})){let t=this.#t[e];if(this.#l(t))t.__abortController.abort(new Error("deleted"));else{let i=this.#o[e];this.#y&&this.#s?.(t,i,"delete"),this.#h&&this.#g?.push([t,i,"delete"])}}if(this.#c.clear(),this.#t.fill(void 0),this.#o.fill(void 0),this.#w&&this.#D&&(this.#w.fill(0),this.#D.fill(0)),this.#R&&this.#R.fill(0),this.#f=0,this.#p=0,this.#b.length=0,this.#d=0,this.#u=0,this.#h&&this.#g){let e=this.#g,t;for(;t=e?.shift();)this.#i?.(...t)}}};Aa.LRUCache=bd});var Ed=T(Xt=>{"use strict";var SO=Xt&&Xt.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.Minipass=Xt.isWritable=Xt.isReadable=Xt.isStream=void 0;var oy=typeof process=="object"&&process?process:{stdout:null,stderr:null},Td=require("node:events"),ly=SO(require("node:stream")),CO=require("node:string_decoder"),RO=n=>!!n&&typeof n=="object"&&(n instanceof $a||n instanceof ly.default||(0,Xt.isReadable)(n)||(0,Xt.isWritable)(n));Xt.isStream=RO;var DO=n=>!!n&&typeof n=="object"&&n instanceof Td.EventEmitter&&typeof n.pipe=="function"&&n.pipe!==ly.default.Writable.prototype.pipe;Xt.isReadable=DO;var TO=n=>!!n&&typeof n=="object"&&n instanceof Td.EventEmitter&&typeof n.write=="function"&&typeof n.end=="function";Xt.isWritable=TO;var yi=Symbol("EOF"),bi=Symbol("maybeEmitEnd"),$i=Symbol("emittedEnd"),Ia=Symbol("emittingEnd"),eo=Symbol("emittedError"),ja=Symbol("closed"),ay=Symbol("read"),La=Symbol("flush"),cy=Symbol("flushChunk"),Kn=Symbol("encoding"),Gr=Symbol("decoder"),Et=Symbol("flowing"),to=Symbol("paused"),Vr=Symbol("resume"),Pt=Symbol("buffer"),Vt=Symbol("pipes"),kt=Symbol("bufferLength"),wd=Symbol("bufferPush"),Ma=Symbol("bufferShift"),Mt=Symbol("objectMode"),xt=Symbol("destroyed"),_d=Symbol("error"),Sd=Symbol("emitData"),uy=Symbol("emitEnd"),Cd=Symbol("emitEnd2"),oi=Symbol("async"),Rd=Symbol("abort"),Ua=Symbol("aborted"),no=Symbol("signal"),wr=Symbol("dataListeners"),gn=Symbol("discarded"),io=n=>Promise.resolve().then(n),EO=n=>n(),PO=n=>n==="end"||n==="finish"||n==="prefinish",kO=n=>n instanceof ArrayBuffer||!!n&&typeof n=="object"&&n.constructor&&n.constructor.name==="ArrayBuffer"&&n.byteLength>=0,OO=n=>!Buffer.isBuffer(n)&&ArrayBuffer.isView(n),za=class{src;dest;opts;ondrain;constructor(e,t,i){this.src=e,this.dest=t,this.opts=i,this.ondrain=()=>e[Vr](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Dd=class extends za{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,i){super(e,t,i),this.proxyErrors=r=>t.emit("error",r),e.on("error",this.proxyErrors)}},qO=n=>!!n.objectMode,FO=n=>!n.objectMode&&!!n.encoding&&n.encoding!=="buffer",$a=class extends Td.EventEmitter{[Et]=!1;[to]=!1;[Vt]=[];[Pt]=[];[Mt];[Kn];[oi];[Gr];[yi]=!1;[$i]=!1;[Ia]=!1;[ja]=!1;[eo]=null;[kt]=0;[xt]=!1;[no];[Ua]=!1;[wr]=0;[gn]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&typeof t.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");qO(t)?(this[Mt]=!0,this[Kn]=null):FO(t)?(this[Kn]=t.encoding,this[Mt]=!1):(this[Mt]=!1,this[Kn]=null),this[oi]=!!t.async,this[Gr]=this[Kn]?new CO.StringDecoder(this[Kn]):null,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Pt]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Vt]});let{signal:i}=t;i&&(this[no]=i,i.aborted?this[Rd]():i.addEventListener("abort",()=>this[Rd]()))}get bufferLength(){return this[kt]}get encoding(){return this[Kn]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Mt]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[oi]}set async(e){this[oi]=this[oi]||!!e}[Rd](){this[Ua]=!0,this.emit("abort",this[no]?.reason),this.destroy(this[no]?.reason)}get aborted(){return this[Ua]}set aborted(e){}write(e,t,i){if(this[Ua])return!1;if(this[yi])throw new Error("write after end");if(this[xt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(i=t,t="utf8"),t||(t="utf8");let r=this[oi]?io:EO;if(!this[Mt]&&!Buffer.isBuffer(e)){if(OO(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(kO(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Mt]?(this[Et]&&this[kt]!==0&&this[La](!0),this[Et]?this.emit("data",e):this[wd](e),this[kt]!==0&&this.emit("readable"),i&&r(i),this[Et]):e.length?(typeof e=="string"&&!(t===this[Kn]&&!this[Gr]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Kn]&&(e=this[Gr].write(e)),this[Et]&&this[kt]!==0&&this[La](!0),this[Et]?this.emit("data",e):this[wd](e),this[kt]!==0&&this.emit("readable"),i&&r(i),this[Et]):(this[kt]!==0&&this.emit("readable"),i&&r(i),this[Et])}read(e){if(this[xt])return null;if(this[gn]=!1,this[kt]===0||e===0||e&&e>this[kt])return this[bi](),null;this[Mt]&&(e=null),this[Pt].length>1&&!this[Mt]&&(this[Pt]=[this[Kn]?this[Pt].join(""):Buffer.concat(this[Pt],this[kt])]);let t=this[ay](e||null,this[Pt][0]);return this[bi](),t}[ay](e,t){if(this[Mt])this[Ma]();else{let i=t;e===i.length||e===null?this[Ma]():typeof i=="string"?(this[Pt][0]=i.slice(e),t=i.slice(0,e),this[kt]-=e):(this[Pt][0]=i.subarray(e),t=i.subarray(0,e),this[kt]-=e)}return this.emit("data",t),!this[Pt].length&&!this[yi]&&this.emit("drain"),t}end(e,t,i){return typeof e=="function"&&(i=e,e=void 0),typeof t=="function"&&(i=t,t="utf8"),e!==void 0&&this.write(e,t),i&&this.once("end",i),this[yi]=!0,this.writable=!1,(this[Et]||!this[to])&&this[bi](),this}[Vr](){this[xt]||(!this[wr]&&!this[Vt].length&&(this[gn]=!0),this[to]=!1,this[Et]=!0,this.emit("resume"),this[Pt].length?this[La]():this[yi]?this[bi]():this.emit("drain"))}resume(){return this[Vr]()}pause(){this[Et]=!1,this[to]=!0,this[gn]=!1}get destroyed(){return this[xt]}get flowing(){return this[Et]}get paused(){return this[to]}[wd](e){this[Mt]?this[kt]+=1:this[kt]+=e.length,this[Pt].push(e)}[Ma](){return this[Mt]?this[kt]-=1:this[kt]-=this[Pt][0].length,this[Pt].shift()}[La](e=!1){do;while(this[cy](this[Ma]())&&this[Pt].length);!e&&!this[Pt].length&&!this[yi]&&this.emit("drain")}[cy](e){return this.emit("data",e),this[Et]}pipe(e,t){if(this[xt])return e;this[gn]=!1;let i=this[$i];return t=t||{},e===oy.stdout||e===oy.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,i?t.end&&e.end():(this[Vt].push(t.proxyErrors?new Dd(this,e,t):new za(this,e,t)),this[oi]?io(()=>this[Vr]()):this[Vr]()),e}unpipe(e){let t=this[Vt].find(i=>i.dest===e);t&&(this[Vt].length===1?(this[Et]&&this[wr]===0&&(this[Et]=!1),this[Vt]=[]):this[Vt].splice(this[Vt].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let i=super.on(e,t);if(e==="data")this[gn]=!1,this[wr]++,!this[Vt].length&&!this[Et]&&this[Vr]();else if(e==="readable"&&this[kt]!==0)super.emit("readable");else if(PO(e)&&this[$i])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[eo]){let r=t;this[oi]?io(()=>r.call(this,this[eo])):r.call(this,this[eo])}return i}removeListener(e,t){return this.off(e,t)}off(e,t){let i=super.off(e,t);return e==="data"&&(this[wr]=this.listeners("data").length,this[wr]===0&&!this[gn]&&!this[Vt].length&&(this[Et]=!1)),i}removeAllListeners(e){let t=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[wr]=0,!this[gn]&&!this[Vt].length&&(this[Et]=!1)),t}get emittedEnd(){return this[$i]}[bi](){!this[Ia]&&!this[$i]&&!this[xt]&&this[Pt].length===0&&this[yi]&&(this[Ia]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ja]&&this.emit("close"),this[Ia]=!1)}emit(e,...t){let i=t[0];if(e!=="error"&&e!=="close"&&e!==xt&&this[xt])return!1;if(e==="data")return!this[Mt]&&!i?!1:this[oi]?(io(()=>this[Sd](i)),!0):this[Sd](i);if(e==="end")return this[uy]();if(e==="close"){if(this[ja]=!0,!this[$i]&&!this[xt])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[eo]=i,super.emit(_d,i);let s=!this[no]||this.listeners("error").length?super.emit("error",i):!1;return this[bi](),s}else if(e==="resume"){let s=super.emit("resume");return this[bi](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let r=super.emit(e,...t);return this[bi](),r}[Sd](e){for(let i of this[Vt])i.dest.write(e)===!1&&this.pause();let t=this[gn]?!1:super.emit("data",e);return this[bi](),t}[uy](){return this[$i]?!1:(this[$i]=!0,this.readable=!1,this[oi]?(io(()=>this[Cd]()),!0):this[Cd]())}[Cd](){if(this[Gr]){let t=this[Gr].end();if(t){for(let i of this[Vt])i.dest.write(t);this[gn]||super.emit("data",t)}}for(let t of this[Vt])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Mt]||(e.dataLength=0);let t=this.promise();return this.on("data",i=>{e.push(i),this[Mt]||(e.dataLength+=i.length)}),await t,e}async concat(){if(this[Mt])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Kn]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(xt,()=>t(new Error("stream destroyed"))),this.on("error",i=>t(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[gn]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[yi])return t();let s,o,a=p=>{this.off("data",c),this.off("end",u),this.off(xt,l),t(),o(p)},c=p=>{this.off("error",a),this.off("end",u),this.off(xt,l),this.pause(),s({value:p,done:!!this[yi]})},u=()=>{this.off("error",a),this.off("data",c),this.off(xt,l),t(),s({done:!0,value:void 0})},l=()=>a(new Error("stream destroyed"));return new Promise((p,h)=>{o=h,s=p,this.once(xt,l),this.once("error",a),this.once("end",u),this.once("data",c)})},throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[gn]=!1;let e=!1,t=()=>(this.pause(),this.off(_d,t),this.off(xt,t),this.off("end",t),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return t();let r=this.read();return r===null?t():{done:!1,value:r}};return this.once("end",t),this.once(_d,t),this.once(xt,t),{next:i,throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[xt])return e?this.emit("error",e):this.emit(xt),this;this[xt]=!0,this[gn]=!0,this[Pt].length=0,this[kt]=0;let t=this;return typeof t.close=="function"&&!this[ja]&&t.close(),e?this.emit("error",e):this.emit(xt),this}static get isStream(){return Xt.isStream}};Xt.Minipass=$a});var Ry=T(Ie=>{"use strict";var NO=Ie&&Ie.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),AO=Ie&&Ie.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),IO=Ie&&Ie.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&NO(e,n,t);return AO(e,n),e};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.PathScurry=Ie.Path=Ie.PathScurryDarwin=Ie.PathScurryPosix=Ie.PathScurryWin32=Ie.PathScurryBase=Ie.PathPosix=Ie.PathWin32=Ie.PathBase=Ie.ChildrenCache=Ie.ResolveCache=void 0;var gy=sy(),Ga=require("node:path"),jO=require("node:url"),so=require("fs"),LO=IO(require("node:fs")),MO=so.realpathSync.native,Ha=require("node:fs/promises"),dy=Ed(),oo={lstatSync:so.lstatSync,readdir:so.readdir,readdirSync:so.readdirSync,readlinkSync:so.readlinkSync,realpathSync:MO,promises:{lstat:Ha.lstat,readdir:Ha.readdir,readlink:Ha.readlink,realpath:Ha.realpath}},vy=n=>!n||n===oo||n===LO?oo:{...oo,...n,promises:{...oo.promises,...n.promises||{}}},xy=/^\\\\\?\\([a-z]:)\\?$/i,UO=n=>n.replace(/\//g,"\\").replace(xy,"$1\\"),zO=/[\\\/]/,kn=0,yy=1,by=2,ai=4,wy=6,_y=8,_r=10,Sy=12,Pn=15,ro=~Pn,Pd=16,py=32,ao=64,Gn=128,Ba=256,Ka=512,fy=ao|Gn|Ka,$O=1023,kd=n=>n.isFile()?_y:n.isDirectory()?ai:n.isSymbolicLink()?_r:n.isCharacterDevice()?by:n.isBlockDevice()?wy:n.isSocket()?Sy:n.isFIFO()?yy:kn,hy=new Map,co=n=>{let e=hy.get(n);if(e)return e;let t=n.normalize("NFKD");return hy.set(n,t),t},my=new Map,Wa=n=>{let e=my.get(n);if(e)return e;let t=co(n.toLowerCase());return my.set(n,t),t},uo=class extends gy.LRUCache{constructor(){super({max:256})}};Ie.ResolveCache=uo;var Va=class extends gy.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:t=>t.length+1})}};Ie.ChildrenCache=Va;var Cy=Symbol("PathScurry setAsCwd"),It=class{name;root;roots;parent;nocase;isCWD=!1;#e;#n;get dev(){return this.#n}#s;get mode(){return this.#s}#i;get nlink(){return this.#i}#a;get uid(){return this.#a}#u;get gid(){return this.#u}#d;get rdev(){return this.#d}#c;get blksize(){return this.#c}#o;get ino(){return this.#o}#t;get size(){return this.#t}#m;get blocks(){return this.#m}#v;get atimeMs(){return this.#v}#f;get mtimeMs(){return this.#f}#p;get ctimeMs(){return this.#p}#b;get birthtimeMs(){return this.#b}#g;get atime(){return this.#g}#R;get mtime(){return this.#R}#D;get ctime(){return this.#D}#w;get birthtime(){return this.#w}#y;#E;#h;#k;#T;#_;#r;#x;#O;#S;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=kn,i,r,s,o,a){this.name=e,this.#y=s?Wa(e):co(e),this.#r=t&$O,this.nocase=s,this.roots=r,this.root=i||this,this.#x=o,this.#h=a.fullpath,this.#T=a.relative,this.#_=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=vy(a.fs)}depth(){return this.#E!==void 0?this.#E:this.parent?this.#E=this.parent.depth()+1:this.#E=0}childrenCache(){return this.#x}resolve(e){if(!e)return this;let t=this.getRootString(e),r=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#A(r):this.#A(r)}#A(e){let t=this;for(let i of e)t=t.child(i);return t}children(){let e=this.#x.get(this);if(e)return e;let t=Object.assign([],{provisional:0});return this.#x.set(this,t),this.#r&=~Pd,t}child(e,t){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),r=this.nocase?Wa(e):co(e);for(let c of i)if(c.#y===r)return c;let s=this.parent?this.sep:"",o=this.#h?this.#h+s+e:void 0,a=this.newChild(e,kn,{...t,parent:this,fullpath:o});return this.canReaddir()||(a.#r|=Gn),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#T!==void 0)return this.#T;let e=this.name,t=this.parent;if(!t)return this.#T=this.name;let i=t.relative();return i+(!i||!t.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#_!==void 0)return this.#_;let e=this.name,t=this.parent;if(!t)return this.#_=this.fullpathPosix();let i=t.relativePosix();return i+(!i||!t.parent?"":"/")+e}fullpath(){if(this.#h!==void 0)return this.#h;let e=this.name,t=this.parent;if(!t)return this.#h=this.name;let r=t.fullpath()+(t.parent?this.sep:"")+e;return this.#h=r}fullpathPosix(){if(this.#k!==void 0)return this.#k;if(this.sep==="/")return this.#k=this.fullpath();if(!this.parent){let r=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(r)?this.#k=`//?/${r}`:this.#k=r}let e=this.parent,t=e.fullpathPosix(),i=t+(!t||!e.parent?"":"/")+this.name;return this.#k=i}isUnknown(){return(this.#r&Pn)===kn}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#r&Pn)===_y}isDirectory(){return(this.#r&Pn)===ai}isCharacterDevice(){return(this.#r&Pn)===by}isBlockDevice(){return(this.#r&Pn)===wy}isFIFO(){return(this.#r&Pn)===yy}isSocket(){return(this.#r&Pn)===Sy}isSymbolicLink(){return(this.#r&_r)===_r}lstatCached(){return this.#r&py?this:void 0}readlinkCached(){return this.#O}realpathCached(){return this.#S}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#O)return!0;if(!this.parent)return!1;let e=this.#r&Pn;return!(e!==kn&&e!==_r||this.#r&Ba||this.#r&Gn)}calledReaddir(){return!!(this.#r&Pd)}isENOENT(){return!!(this.#r&Gn)}isNamed(e){return this.nocase?this.#y===Wa(e):this.#y===co(e)}async readlink(){let e=this.#O;if(e)return e;if(this.canReadlink()&&this.parent)try{let t=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(t);if(i)return this.#O=i}catch(t){this.#L(t.code);return}}readlinkSync(){let e=this.#O;if(e)return e;if(this.canReadlink()&&this.parent)try{let t=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(t);if(i)return this.#O=i}catch(t){this.#L(t.code);return}}#I(e){this.#r|=Pd;for(let t=e.provisional;t<e.length;t++){let i=e[t];i&&i.#C()}}#C(){this.#r&Gn||(this.#r=(this.#r|Gn)&ro,this.#P())}#P(){let e=this.children();e.provisional=0;for(let t of e)t.#C()}#j(){this.#r|=Ka,this.#q()}#q(){if(this.#r&ao)return;let e=this.#r;(e&Pn)===ai&&(e&=ro),this.#r=e|ao,this.#P()}#N(e=""){e==="ENOTDIR"||e==="EPERM"?this.#q():e==="ENOENT"?this.#C():this.children().provisional=0}#l(e=""){e==="ENOTDIR"?this.parent.#q():e==="ENOENT"&&this.#C()}#L(e=""){let t=this.#r;t|=Ba,e==="ENOENT"&&(t|=Gn),(e==="EINVAL"||e==="UNKNOWN")&&(t&=ro),this.#r=t,e==="ENOTDIR"&&this.parent&&this.parent.#q()}#F(e,t){return this.#B(e,t)||this.#H(e,t)}#H(e,t){let i=kd(e),r=this.newChild(e.name,i,{parent:this}),s=r.#r&Pn;return s!==ai&&s!==_r&&s!==kn&&(r.#r|=ao),t.unshift(r),t.provisional++,r}#B(e,t){for(let i=t.provisional;i<t.length;i++){let r=t[i];if((this.nocase?Wa(e.name):co(e.name))===r.#y)return this.#W(e,r,i,t)}}#W(e,t,i,r){let s=t.name;return t.#r=t.#r&ro|kd(e),s!==e.name&&(t.name=e.name),i!==r.provisional&&(i===r.length-1?r.pop():r.splice(i,1),r.unshift(t)),r.provisional++,t}async lstat(){if(!(this.#r&Gn))try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#l(e.code)}}lstatSync(){if(!(this.#r&Gn))try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#l(e.code)}}#$(e){let{atime:t,atimeMs:i,birthtime:r,birthtimeMs:s,blksize:o,blocks:a,ctime:c,ctimeMs:u,dev:l,gid:p,ino:h,mode:x,mtime:f,mtimeMs:y,nlink:w,rdev:S,size:O,uid:k}=e;this.#g=t,this.#v=i,this.#w=r,this.#b=s,this.#c=o,this.#m=a,this.#D=c,this.#p=u,this.#n=l,this.#u=p,this.#o=h,this.#s=x,this.#R=f,this.#f=y,this.#i=w,this.#d=S,this.#t=O,this.#a=k;let N=kd(e);this.#r=this.#r&ro|N|py,N!==kn&&N!==ai&&N!==_r&&(this.#r|=ao)}#U=[];#z=!1;#K(e){this.#z=!1;let t=this.#U.slice();this.#U.length=0,t.forEach(i=>i(null,e))}readdirCB(e,t=!1){if(!this.canReaddir()){t?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);t?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#U.push(e),this.#z)return;this.#z=!0;let r=this.fullpath();this.#e.readdir(r,{withFileTypes:!0},(s,o)=>{if(s)this.#N(s.code),i.provisional=0;else{for(let a of o)this.#F(a,i);this.#I(i)}this.#K(i.slice(0,i.provisional))})}#M;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();if(this.#M)await this.#M;else{let i=()=>{};this.#M=new Promise(r=>i=r);try{for(let r of await this.#e.promises.readdir(t,{withFileTypes:!0}))this.#F(r,e);this.#I(e)}catch(r){this.#N(r.code),e.provisional=0}this.#M=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();try{for(let i of this.#e.readdirSync(t,{withFileTypes:!0}))this.#F(i,e);this.#I(e)}catch(i){this.#N(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#r&fy)return!1;let e=Pn&this.#r;return e===kn||e===ai||e===_r}shouldWalk(e,t){return(this.#r&ai)===ai&&!(this.#r&fy)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#S)return this.#S;if(!((Ka|Ba|Gn)&this.#r))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#S=this.resolve(e)}catch{this.#j()}}realpathSync(){if(this.#S)return this.#S;if(!((Ka|Ba|Gn)&this.#r))try{let e=this.#e.realpathSync(this.fullpath());return this.#S=this.resolve(e)}catch{this.#j()}}[Cy](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let t=new Set([]),i=[],r=this;for(;r&&r.parent;)t.add(r),r.#T=i.join(this.sep),r.#_=i.join("/"),r=r.parent,i.push("..");for(r=e;r&&r.parent&&!t.has(r);)r.#T=void 0,r.#_=void 0,r=r.parent}};Ie.PathBase=It;var lo=class n extends It{sep="\\";splitSep=zO;constructor(e,t=kn,i,r,s,o,a){super(e,t,i,r,s,o,a)}newChild(e,t=kn,i={}){return new n(e,t,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return Ga.win32.parse(e).root}getRoot(e){if(e=UO(e.toUpperCase()),e===this.root.name)return this.root;for(let[t,i]of Object.entries(this.roots))if(this.sameRoot(e,t))return this.roots[e]=i;return this.roots[e]=new ho(e,this).root}sameRoot(e,t=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(xy,"$1\\"),e===t}};Ie.PathWin32=lo;var po=class n extends It{splitSep="/";sep="/";constructor(e,t=kn,i,r,s,o,a){super(e,t,i,r,s,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,t=kn,i={}){return new n(e,t,this.root,this.roots,this.nocase,this.childrenCache(),i)}};Ie.PathPosix=po;var fo=class{root;rootPath;roots;cwd;#e;#n;#s;nocase;#i;constructor(e=process.cwd(),t,i,{nocase:r,childrenCacheSize:s=16*1024,fs:o=oo}={}){this.#i=vy(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,jO.fileURLToPath)(e));let a=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new uo,this.#n=new uo,this.#s=new Va(s);let c=a.substring(this.rootPath.length).split(i);if(c.length===1&&!c[0]&&c.pop(),r===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=r,this.root=this.newRoot(this.#i),this.roots[this.rootPath]=this.root;let u=this.root,l=c.length-1,p=t.sep,h=this.rootPath,x=!1;for(let f of c){let y=l--;u=u.child(f,{relative:new Array(y).fill("..").join(p),relativePosix:new Array(y).fill("..").join("/"),fullpath:h+=(x?"":p)+f}),x=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#s}resolve(...e){let t="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(t=t?`${o}/${t}`:o,this.isAbsolute(o)))break}let i=this.#e.get(t);if(i!==void 0)return i;let r=this.cwd.resolve(t).fullpath();return this.#e.set(t,r),r}resolvePosix(...e){let t="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(t=t?`${o}/${t}`:o,this.isAbsolute(o)))break}let i=this.#n.get(t);if(i!==void 0)return i;let r=this.cwd.resolve(t).fullpathPosix();return this.#n.set(t,r),r}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof It||(t=e,e=this.cwd);let{withFileTypes:i}=t;if(e.canReaddir()){let r=await e.readdir();return i?r:r.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof It||(t=e,e=this.cwd);let{withFileTypes:i=!0}=t;return e.canReaddir()?i?e.readdirSync():e.readdirSync().map(r=>r.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof It||(t=e.withFileTypes,e=this.cwd);let i=await e.readlink();return t?i:i?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof It||(t=e.withFileTypes,e=this.cwd);let i=e.readlinkSync();return t?i:i?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof It||(t=e.withFileTypes,e=this.cwd);let i=await e.realpath();return t?i:i?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof It||(t=e.withFileTypes,e=this.cwd);let i=e.realpathSync();return t?i:i?.fullpath()}async walk(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof It||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:r=!1,filter:s,walkFilter:o}=t,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let c=new Set,u=(p,h)=>{c.add(p),p.readdirCB((x,f)=>{if(x)return h(x);let y=f.length;if(!y)return h();let w=()=>{--y===0&&h()};for(let S of f)(!s||s(S))&&a.push(i?S:S.fullpath()),r&&S.isSymbolicLink()?S.realpath().then(O=>O?.isUnknown()?O.lstat():O).then(O=>O?.shouldWalk(c,o)?u(O,w):w()):S.shouldWalk(c,o)?u(S,w):w()},!0)},l=e;return new Promise((p,h)=>{u(l,x=>{if(x)return h(x);p(a)})})}walkSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof It||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:r=!1,filter:s,walkFilter:o}=t,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let c=new Set([e]);for(let u of c){let l=u.readdirSync();for(let p of l){(!s||s(p))&&a.push(i?p:p.fullpath());let h=p;if(p.isSymbolicLink()){if(!(r&&(h=p.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(c,o)&&c.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof It||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof It||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:r=!1,filter:s,walkFilter:o}=t;(!s||s(e))&&(yield i?e:e.fullpath());let a=new Set([e]);for(let c of a){let u=c.readdirSync();for(let l of u){(!s||s(l))&&(yield i?l:l.fullpath());let p=l;if(l.isSymbolicLink()){if(!(r&&(p=l.realpathSync())))continue;p.isUnknown()&&p.lstatSync()}p.shouldWalk(a,o)&&a.add(p)}}}stream(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof It||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:r=!1,filter:s,walkFilter:o}=t,a=new dy.Minipass({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let c=new Set,u=[e],l=0,p=()=>{let h=!1;for(;!h;){let x=u.shift();if(!x){l===0&&a.end();return}l++,c.add(x);let f=(w,S,O=!1)=>{if(w)return a.emit("error",w);if(r&&!O){let k=[];for(let N of S)N.isSymbolicLink()&&k.push(N.realpath().then(j=>j?.isUnknown()?j.lstat():j));if(k.length){Promise.all(k).then(()=>f(null,S,!0));return}}for(let k of S)k&&(!s||s(k))&&(a.write(i?k:k.fullpath())||(h=!0));l--;for(let k of S){let N=k.realpathCached()||k;N.shouldWalk(c,o)&&u.push(N)}h&&!a.flowing?a.once("drain",p):y||p()},y=!0;x.readdirCB(f,!0),y=!1}};return p(),a}streamSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof It||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:r=!1,filter:s,walkFilter:o}=t,a=new dy.Minipass({objectMode:!0}),c=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],l=0,p=()=>{let h=!1;for(;!h;){let x=u.shift();if(!x){l===0&&a.end();return}l++,c.add(x);let f=x.readdirSync();for(let y of f)(!s||s(y))&&(a.write(i?y:y.fullpath())||(h=!0));l--;for(let y of f){let w=y;if(y.isSymbolicLink()){if(!(r&&(w=y.realpathSync())))continue;w.isUnknown()&&w.lstatSync()}w.shouldWalk(c,o)&&u.push(w)}}h&&!a.flowing&&a.once("drain",p)};return p(),a}chdir(e=this.cwd){let t=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[Cy](t)}};Ie.PathScurryBase=fo;var ho=class extends fo{sep="\\";constructor(e=process.cwd(),t={}){let{nocase:i=!0}=t;super(e,Ga.win32,"\\",{...t,nocase:i}),this.nocase=i;for(let r=this.cwd;r;r=r.parent)r.nocase=this.nocase}parseRootPath(e){return Ga.win32.parse(e).root.toUpperCase()}newRoot(e){return new lo(this.rootPath,ai,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};Ie.PathScurryWin32=ho;var mo=class extends fo{sep="/";constructor(e=process.cwd(),t={}){let{nocase:i=!1}=t;super(e,Ga.posix,"/",{...t,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new po(this.rootPath,ai,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};Ie.PathScurryPosix=mo;var Xa=class extends mo{constructor(e=process.cwd(),t={}){let{nocase:i=!0}=t;super(e,{...t,nocase:i})}};Ie.PathScurryDarwin=Xa;Ie.Path=process.platform==="win32"?lo:po;Ie.PathScurry=process.platform==="win32"?ho:process.platform==="darwin"?Xa:mo});var qd=T(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.Pattern=void 0;var HO=Ui(),BO=n=>n.length>=1,WO=n=>n.length>=1,Od=class n{#e;#n;#s;length;#i;#a;#u;#d;#c;#o;#t=!0;constructor(e,t,i,r){if(!BO(e))throw new TypeError("empty pattern list");if(!WO(t))throw new TypeError("empty glob list");if(t.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#n=t,this.#s=i,this.#i=r,this.#s===0){if(this.isUNC()){let[s,o,a,c,...u]=this.#e,[l,p,h,x,...f]=this.#n;u[0]===""&&(u.shift(),f.shift());let y=[s,o,a,c,""].join("/"),w=[l,p,h,x,""].join("/");this.#e=[y,...u],this.#n=[w,...f],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...c]=this.#n;o[0]===""&&(o.shift(),c.shift());let u=s+"/",l=a+"/";this.#e=[u,...o],this.#n=[l,...c],this.length=this.#e.length}}}pattern(){return this.#e[this.#s]}isString(){return typeof this.#e[this.#s]=="string"}isGlobstar(){return this.#e[this.#s]===HO.GLOBSTAR}isRegExp(){return this.#e[this.#s]instanceof RegExp}globString(){return this.#u=this.#u||(this.#s===0?this.isAbsolute()?this.#n[0]+this.#n.slice(1).join("/"):this.#n.join("/"):this.#n.slice(this.#s).join("/"))}hasMore(){return this.length>this.#s+1}rest(){return this.#a!==void 0?this.#a:this.hasMore()?(this.#a=new n(this.#e,this.#n,this.#s+1,this.#i),this.#a.#o=this.#o,this.#a.#c=this.#c,this.#a.#d=this.#d,this.#a):this.#a=null}isUNC(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#i==="win32"&&this.#s===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#d!==void 0?this.#d:this.#d=this.#i==="win32"&&this.#s===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#o!==void 0?this.#o:this.#o=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#s===0?e:""}checkFollowGlobstar(){return!(this.#s===0||!this.isGlobstar()||!this.#t)}markFollowGlobstar(){return this.#s===0||!this.isGlobstar()||!this.#t?!1:(this.#t=!1,!0)}};Ja.Pattern=Od});var Ty=T(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.Ignore=void 0;var Dy=Ui(),KO=qd(),GO=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Fd=class{relative;relativeChildren;absolute;absoluteChildren;constructor(e,{nobrace:t,nocase:i,noext:r,noglobstar:s,platform:o=GO}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[];let a={dot:!0,nobrace:t,nocase:i,noext:r,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let c of e){let u=new Dy.Minimatch(c,a);for(let l=0;l<u.set.length;l++){let p=u.set[l],h=u.globParts[l];if(!p||!h)throw new Error("invalid pattern object");for(;p[0]==="."&&h[0]===".";)p.shift(),h.shift();let x=new KO.Pattern(p,h,0,o),f=new Dy.Minimatch(x.globString(),a),y=h[h.length-1]==="**",w=x.isAbsolute();w?this.absolute.push(f):this.relative.push(f),y&&(w?this.absoluteChildren.push(f):this.relativeChildren.push(f))}}}ignored(e){let t=e.fullpath(),i=`${t}/`,r=e.relative()||".",s=`${r}/`;for(let o of this.relative)if(o.match(r)||o.match(s))return!0;for(let o of this.absolute)if(o.match(t)||o.match(i))return!0;return!1}childrenIgnored(e){let t=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let r of this.relativeChildren)if(r.match(i))return!0;for(let r of this.absoluteChildren)if(r.match(t))return!0;return!1}};Ya.Ignore=Fd});var Py=T(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.Processor=ci.SubWalks=ci.MatchRecord=ci.HasWalkedCache=void 0;var Ey=Ui(),Qa=class n{store;constructor(e=new Map){this.store=e}copy(){return new n(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){let i=e.fullpath(),r=this.store.get(i);r?r.add(t.globString()):this.store.set(i,new Set([t.globString()]))}};ci.HasWalkedCache=Qa;var Za=class{store=new Map;add(e,t,i){let r=(t?2:0)|(i?1:0),s=this.store.get(e);this.store.set(e,s===void 0?r:r&s)}entries(){return[...this.store.entries()].map(([e,t])=>[e,!!(t&2),!!(t&1)])}};ci.MatchRecord=Za;var ec=class{store=new Map;add(e,t){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(r=>r.globString()===t.globString())||i.push(t):this.store.set(e,[t])}get(e){let t=this.store.get(e);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};ci.SubWalks=ec;var Nd=class n{hasWalkedCache;matches=new Za;subwalks=new ec;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new Qa}processPatterns(e,t){this.patterns=t;let i=t.map(r=>[e,r]);for(let[r,s]of i){this.hasWalkedCache.storeWalked(r,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){r=r.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let p=s.rest();if(p)s=p;else{this.matches.add(r,!0,!1);continue}}if(r.isENOENT())continue;let c,u,l=!1;for(;typeof(c=s.pattern())=="string"&&(u=s.rest());)r=r.resolve(c),s=u,l=!0;if(c=s.pattern(),u=s.rest(),l){if(this.hasWalkedCache.hasWalked(r,s))continue;this.hasWalkedCache.storeWalked(r,s)}if(typeof c=="string"){let p=c===".."||c===""||c===".";this.matches.add(r.resolve(c),a,p);continue}else if(c===Ey.GLOBSTAR){(!r.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(r,s);let p=u?.pattern(),h=u?.rest();if(!u||(p===""||p===".")&&!h)this.matches.add(r,a,p===""||p===".");else if(p===".."){let x=r.parent||r;h?this.hasWalkedCache.hasWalked(x,h)||this.subwalks.add(x,h):this.matches.add(x,a,!0)}}else c instanceof RegExp&&this.subwalks.add(r,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new n(this.opts,this.hasWalkedCache)}filterEntries(e,t){let i=this.subwalks.get(e),r=this.child();for(let s of t)for(let o of i){let a=o.isAbsolute(),c=o.pattern(),u=o.rest();c===Ey.GLOBSTAR?r.testGlobstar(s,o,u,a):c instanceof RegExp?r.testRegExp(s,c,u,a):r.testString(s,c,u,a)}return r}testGlobstar(e,t,i,r){if((this.dot||!e.name.startsWith("."))&&(t.hasMore()||this.matches.add(e,r,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(i&&t.checkFollowGlobstar()?this.subwalks.add(e,i):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),i){let s=i.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,i.rest(),r);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,i)}else s instanceof RegExp&&this.testRegExp(e,s,i.rest(),r)}}testRegExp(e,t,i,r){t.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,r,!1))}testString(e,t,i,r){e.isNamed(t)&&(i?this.subwalks.add(e,i):this.matches.add(e,r,!1))}};ci.Processor=Nd});var qy=T(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.GlobStream=Hi.GlobWalker=Hi.GlobUtil=void 0;var VO=Ed(),ky=Ty(),Oy=Py(),XO=(n,e)=>typeof n=="string"?new ky.Ignore([n],e):Array.isArray(n)?new ky.Ignore(n,e):n,go=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#n;#s;signal;maxDepth;constructor(e,t,i){this.patterns=e,this.path=t,this.opts=i,this.#s=!i.posix&&i.platform==="win32"?"\\":"/",i.ignore&&(this.#n=XO(i.ignore,i)),this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#i(e){return this.seen.has(e)||!!this.#n?.ignored?.(e)}#a(e){return!!this.#n?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,t)}matchCheckTest(e,t){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#i(e)?e:void 0}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,t)}matchFinish(e,t){if(this.#i(e))return;let i=this.opts.absolute===void 0?t:this.opts.absolute;this.seen.add(e);let r=this.opts.mark&&e.isDirectory()?this.#s:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+r)}else{let s=this.opts.posix?e.relativePosix():e.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#s)?"."+this.#s:"";this.matchEmit(s?o+s+r:"."+r)}}async match(e,t,i){let r=await this.matchCheck(e,i);r&&this.matchFinish(r,t)}matchSync(e,t,i){let r=this.matchCheckSync(e,i);r&&this.matchFinish(r,t)}walkCB(e,t,i){this.signal?.aborted&&i(),this.walkCB2(e,t,new Oy.Processor(this.opts),i)}walkCB2(e,t,i,r){if(this.#a(e))return r();if(this.signal?.aborted&&r(),this.paused){this.onResume(()=>this.walkCB2(e,t,i,r));return}i.processPatterns(e,t);let s=1,o=()=>{--s===0&&r()};for(let[a,c,u]of i.matches.entries())this.#i(a)||(s++,this.match(a,c,u).then(()=>o()));for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let c=a.readdirCached();a.calledReaddir()?this.walkCB3(a,c,i,o):a.readdirCB((u,l)=>this.walkCB3(a,l,i,o),!0)}o()}walkCB3(e,t,i,r){i=i.filterEntries(e,t);let s=1,o=()=>{--s===0&&r()};for(let[a,c,u]of i.matches.entries())this.#i(a)||(s++,this.match(a,c,u).then(()=>o()));for(let[a,c]of i.subwalks.entries())s++,this.walkCB2(a,c,i.child(),o);o()}walkCBSync(e,t,i){this.signal?.aborted&&i(),this.walkCB2Sync(e,t,new Oy.Processor(this.opts),i)}walkCB2Sync(e,t,i,r){if(this.#a(e))return r();if(this.signal?.aborted&&r(),this.paused){this.onResume(()=>this.walkCB2Sync(e,t,i,r));return}i.processPatterns(e,t);let s=1,o=()=>{--s===0&&r()};for(let[a,c,u]of i.matches.entries())this.#i(a)||this.matchSync(a,c,u);for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let c=a.readdirSync();this.walkCB3Sync(a,c,i,o)}o()}walkCB3Sync(e,t,i,r){i=i.filterEntries(e,t);let s=1,o=()=>{--s===0&&r()};for(let[a,c,u]of i.matches.entries())this.#i(a)||this.matchSync(a,c,u);for(let[a,c]of i.subwalks.entries())s++,this.walkCB2Sync(a,c,i.child(),o);o()}};Hi.GlobUtil=go;var Ad=class extends go{matches;constructor(e,t,i){super(e,t,i),this.matches=new Set}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,t)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};Hi.GlobWalker=Ad;var Id=class extends go{results;constructor(e,t,i){super(e,t,i),this.results=new VO.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};Hi.GlobStream=Id});var Ld=T(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.Glob=void 0;var JO=Ui(),tc=Ry(),YO=require("node:url"),QO=qd(),nc=qy(),ZO=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",jd=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=(0,YO.fileURLToPath)(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(c=>c.replace(/\\/g,"/"))),this.matchBase){if(t.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(c=>c.includes("/")?c:`./**/${c}`)}if(this.pattern=e,this.platform=t.platform||ZO,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,t.nocase!==void 0&&t.nocase!==t.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let c=t.platform==="win32"?tc.PathScurryWin32:t.platform==="darwin"?tc.PathScurryDarwin:t.platform?tc.PathScurryPosix:tc.PathScurry;this.scurry=new c(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",r={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(c=>new JO.Minimatch(c,r)),[o,a]=s.reduce((c,u)=>(c[0].push(...u.set),c[1].push(...u.globParts),c),[[],[]]);this.patterns=o.map((c,u)=>{let l=a[u];if(!l)throw new Error("invalid pattern object");return new QO.Pattern(c,l,0,this.platform)})}async walk(){return[...await new nc.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).walk()]}walkSync(){return[...new nc.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).walkSync()]}stream(){return new nc.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).stream()}streamSync(){return new nc.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};ic.Glob=jd});var Md=T(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.hasMagic=void 0;var eq=Ui(),tq=(n,e={})=>{Array.isArray(n)||(n=[n]);for(let t of n)if(new eq.Minimatch(t,e).hasMagic())return!0;return!1};rc.hasMagic=tq});var Iy=T(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.glob=ge.hasMagic=ge.Glob=ge.unescape=ge.escape=ge.sync=ge.iterate=ge.iterateSync=ge.stream=ge.streamSync=ge.globIterate=ge.globIterateSync=ge.globSync=ge.globStream=ge.globStreamSync=void 0;var Fy=Ui(),Sr=Ld(),nq=Md();function vo(n,e={}){return new Sr.Glob(n,e).streamSync()}ge.globStreamSync=vo;function Ud(n,e={}){return new Sr.Glob(n,e).stream()}ge.globStream=Ud;function zd(n,e={}){return new Sr.Glob(n,e).walkSync()}ge.globSync=zd;async function Ny(n,e={}){return new Sr.Glob(n,e).walk()}function xo(n,e={}){return new Sr.Glob(n,e).iterateSync()}ge.globIterateSync=xo;function $d(n,e={}){return new Sr.Glob(n,e).iterate()}ge.globIterate=$d;ge.streamSync=vo;ge.stream=Object.assign(Ud,{sync:vo});ge.iterateSync=xo;ge.iterate=Object.assign($d,{sync:xo});ge.sync=Object.assign(zd,{stream:vo,iterate:xo});var Ay=Ui();Object.defineProperty(ge,"escape",{enumerable:!0,get:function(){return Ay.escape}});Object.defineProperty(ge,"unescape",{enumerable:!0,get:function(){return Ay.unescape}});var iq=Ld();Object.defineProperty(ge,"Glob",{enumerable:!0,get:function(){return iq.Glob}});var rq=Md();Object.defineProperty(ge,"hasMagic",{enumerable:!0,get:function(){return rq.hasMagic}});ge.glob=Object.assign(Ny,{glob:Ny,globSync:zd,sync:ge.sync,globStream:Ud,stream:ge.stream,globStreamSync:vo,streamSync:ge.streamSync,globIterate:$d,iterate:ge.iterate,globIterateSync:xo,iterateSync:ge.iterateSync,Glob:Sr.Glob,hasMagic:nq.hasMagic,escape:Fy.escape,unescape:Fy.unescape});ge.glob.glob=ge.glob});var Hd=T(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.optArgSync=On.optArg=On.assertRimrafOptions=On.isRimrafOptions=void 0;var Bi=(n,e)=>typeof n>"u"||typeof n===e,sq=n=>!!n&&typeof n=="object"&&Bi(n.preserveRoot,"boolean")&&Bi(n.tmp,"string")&&Bi(n.maxRetries,"number")&&Bi(n.retryDelay,"number")&&Bi(n.backoff,"number")&&Bi(n.maxBackoff,"number")&&(Bi(n.glob,"boolean")||n.glob&&typeof n.glob=="object")&&Bi(n.filter,"function");On.isRimrafOptions=sq;var oq=n=>{if(!(0,On.isRimrafOptions)(n))throw new Error("invalid rimraf options")};On.assertRimrafOptions=oq;var jy=n=>{(0,On.assertRimrafOptions)(n);let{glob:e,...t}=n;if(!e)return t;let i=e===!0?n.signal?{signal:n.signal}:{}:n.signal?{signal:n.signal,...e}:e;return{...t,glob:{...i,absolute:!0,withFileTypes:!1}}},aq=(n={})=>jy(n);On.optArg=aq;var cq=(n={})=>jy(n);On.optArgSync=cq});var yo=T(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.default=process.env.__TESTING_RIMRAF_PLATFORM__||process.platform});var Ly=T(bo=>{"use strict";var uq=bo&&bo.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(bo,"__esModule",{value:!0});var Wd=require("path"),lq=require("util"),dq=uq(yo()),pq=(n,e={})=>{let t=typeof n;if(t!=="string"){let r=n&&t==="object"&&n.constructor,o=`The "path" argument must be of type string. Received ${r&&r.name?`an instance of ${r.name}`:t==="object"?(0,lq.inspect)(n):`type ${t} ${n}`}`;throw Object.assign(new TypeError(o),{path:n,code:"ERR_INVALID_ARG_TYPE"})}if(/\0/.test(n)){let r="path must be a string without null bytes";throw Object.assign(new TypeError(r),{path:n,code:"ERR_INVALID_ARG_VALUE"})}n=(0,Wd.resolve)(n);let{root:i}=(0,Wd.parse)(n);if(n===i&&e.preserveRoot!==!1){let r="refusing to remove root directory without preserveRoot:false";throw Object.assign(new Error(r),{path:n,code:"ERR_PRESERVE_ROOT"})}if(dq.default==="win32"){let r=/[*|"<>?:]/,{root:s}=(0,Wd.parse)(n);if(r.test(n.substring(s.length)))throw Object.assign(new Error("Illegal characters in path."),{path:n,code:"EINVAL"})}return n};bo.default=pq});var Ki=T(Ze=>{"use strict";var fq=Ze&&Ze.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.promises=Ze.readdirSync=Ze.unlinkSync=Ze.lstatSync=Ze.statSync=Ze.rmSync=Ze.rmdirSync=Ze.renameSync=Ze.mkdirSync=Ze.chmodSync=void 0;var wi=fq(require("fs")),Wi=require("fs");Object.defineProperty(Ze,"chmodSync",{enumerable:!0,get:function(){return Wi.chmodSync}});Object.defineProperty(Ze,"mkdirSync",{enumerable:!0,get:function(){return Wi.mkdirSync}});Object.defineProperty(Ze,"renameSync",{enumerable:!0,get:function(){return Wi.renameSync}});Object.defineProperty(Ze,"rmdirSync",{enumerable:!0,get:function(){return Wi.rmdirSync}});Object.defineProperty(Ze,"rmSync",{enumerable:!0,get:function(){return Wi.rmSync}});Object.defineProperty(Ze,"statSync",{enumerable:!0,get:function(){return Wi.statSync}});Object.defineProperty(Ze,"lstatSync",{enumerable:!0,get:function(){return Wi.lstatSync}});Object.defineProperty(Ze,"unlinkSync",{enumerable:!0,get:function(){return Wi.unlinkSync}});var hq=require("fs"),mq=n=>(0,hq.readdirSync)(n,{withFileTypes:!0});Ze.readdirSync=mq;var gq=(n,e)=>new Promise((t,i)=>wi.default.chmod(n,e,(r,...s)=>r?i(r):t(...s))),vq=(n,e)=>new Promise((t,i)=>wi.default.mkdir(n,e,(r,s)=>r?i(r):t(s))),xq=n=>new Promise((e,t)=>wi.default.readdir(n,{withFileTypes:!0},(i,r)=>i?t(i):e(r))),yq=(n,e)=>new Promise((t,i)=>wi.default.rename(n,e,(r,...s)=>r?i(r):t(...s))),bq=(n,e)=>new Promise((t,i)=>wi.default.rm(n,e,(r,...s)=>r?i(r):t(...s))),wq=n=>new Promise((e,t)=>wi.default.rmdir(n,(i,...r)=>i?t(i):e(...r))),_q=n=>new Promise((e,t)=>wi.default.stat(n,(i,r)=>i?t(i):e(r))),Sq=n=>new Promise((e,t)=>wi.default.lstat(n,(i,r)=>i?t(i):e(r))),Cq=n=>new Promise((e,t)=>wi.default.unlink(n,(i,...r)=>i?t(i):e(...r)));Ze.promises={chmod:gq,mkdir:vq,readdir:xq,rename:yq,rm:bq,rmdir:wq,stat:_q,lstat:Sq,unlink:Cq}});var sc=T(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.readdirOrErrorSync=Xr.readdirOrError=void 0;var My=Ki(),{readdir:Rq}=My.promises,Dq=n=>Rq(n).catch(e=>e);Xr.readdirOrError=Dq;var Tq=n=>{try{return(0,My.readdirSync)(n)}catch(e){return e}};Xr.readdirOrErrorSync=Tq});var oc=T(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.ignoreENOENTSync=Jr.ignoreENOENT=void 0;var Eq=async n=>n.catch(e=>{if(e.code!=="ENOENT")throw e});Jr.ignoreENOENT=Eq;var Pq=n=>{try{return n()}catch(e){if(e?.code!=="ENOENT")throw e}};Jr.ignoreENOENTSync=Pq});var Kd=T(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.rimrafPosixSync=Yr.rimrafPosix=void 0;var ac=Ki(),{lstat:kq,rmdir:Oq,unlink:qq}=ac.promises,cc=require("path"),Uy=sc(),uc=oc(),Fq=async(n,e)=>{if(e?.signal?.aborted)throw e.signal.reason;try{return await zy(n,e,await kq(n))}catch(t){if(t?.code==="ENOENT")return!0;throw t}};Yr.rimrafPosix=Fq;var Nq=(n,e)=>{if(e?.signal?.aborted)throw e.signal.reason;try{return $y(n,e,(0,ac.lstatSync)(n))}catch(t){if(t?.code==="ENOENT")return!0;throw t}};Yr.rimrafPosixSync=Nq;var zy=async(n,e,t)=>{if(e?.signal?.aborted)throw e.signal.reason;let i=t.isDirectory()?await(0,Uy.readdirOrError)(n):null;if(!Array.isArray(i)){if(i){if(i.code==="ENOENT")return!0;if(i.code!=="ENOTDIR")throw i}return e.filter&&!await e.filter(n,t)?!1:(await(0,uc.ignoreENOENT)(qq(n)),!0)}return!(await Promise.all(i.map(s=>zy((0,cc.resolve)(n,s.name),e,s)))).reduce((s,o)=>s&&o,!0)||e.preserveRoot===!1&&n===(0,cc.parse)(n).root||e.filter&&!await e.filter(n,t)?!1:(await(0,uc.ignoreENOENT)(Oq(n)),!0)},$y=(n,e,t)=>{if(e?.signal?.aborted)throw e.signal.reason;let i=t.isDirectory()?(0,Uy.readdirOrErrorSync)(n):null;if(!Array.isArray(i)){if(i){if(i.code==="ENOENT")return!0;if(i.code!=="ENOTDIR")throw i}return e.filter&&!e.filter(n,t)?!1:((0,uc.ignoreENOENTSync)(()=>(0,ac.unlinkSync)(n)),!0)}let r=!0;for(let s of i){let o=(0,cc.resolve)(n,s.name);r=$y(o,e,s)&&r}return e.preserveRoot===!1&&n===(0,cc.parse)(n).root||!r||e.filter&&!e.filter(n,t)?!1:((0,uc.ignoreENOENTSync)(()=>(0,ac.rmdirSync)(n)),!0)}});var By=T(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.fixEPERMSync=Qr.fixEPERM=void 0;var Hy=Ki(),{chmod:Aq}=Hy.promises,Iq=n=>async e=>{try{return await n(e)}catch(t){let i=t;if(i?.code==="ENOENT")return;if(i?.code==="EPERM"){try{await Aq(e,438)}catch(r){if(r?.code==="ENOENT")return;throw t}return await n(e)}throw t}};Qr.fixEPERM=Iq;var jq=n=>e=>{try{return n(e)}catch(t){let i=t;if(i?.code==="ENOENT")return;if(i?.code==="EPERM"){try{(0,Hy.chmodSync)(e,438)}catch(r){if(r?.code==="ENOENT")return;throw t}return n(e)}throw t}};Qr.fixEPERMSync=jq});var Wy=T(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.retryBusySync=_t.retryBusy=_t.codes=_t.MAXRETRIES=_t.RATE=_t.MAXBACKOFF=void 0;_t.MAXBACKOFF=200;_t.RATE=1.2;_t.MAXRETRIES=10;_t.codes=new Set(["EMFILE","ENFILE","EBUSY"]);var Lq=n=>{let e=async(t,i,r=1,s=0)=>{let o=i.maxBackoff||_t.MAXBACKOFF,a=i.backoff||_t.RATE,c=i.maxRetries||_t.MAXRETRIES,u=0;for(;;)try{return await n(t)}catch(l){let p=l;if(p?.path===t&&p?.code&&_t.codes.has(p.code)){if(r=Math.ceil(r*a),s=r+s,s<o)return new Promise((h,x)=>{setTimeout(()=>{e(t,i,r,s).then(h,x)},r)});if(u<c){u++;continue}}throw l}};return e};_t.retryBusy=Lq;var Mq=n=>(t,i)=>{let r=i.maxRetries||_t.MAXRETRIES,s=0;for(;;)try{return n(t)}catch(o){let a=o;if(a?.path===t&&a?.code&&_t.codes.has(a.code)&&s<r){s++;continue}throw o}};_t.retryBusySync=Mq});var Vy=T(Gi=>{"use strict";var Uq=Gi&&Gi.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Gi,"__esModule",{value:!0});Gi.defaultTmpSync=Gi.defaultTmp=void 0;var lc=require("os"),Zr=require("path"),Ky=Ki(),Gy=Uq(yo()),{stat:zq}=Ky.promises,$q=n=>{try{return(0,Ky.statSync)(n).isDirectory()}catch{return!1}},Hq=n=>zq(n).then(e=>e.isDirectory(),()=>!1),Bq=async n=>{let{root:e}=(0,Zr.parse)(n),t=(0,lc.tmpdir)(),{root:i}=(0,Zr.parse)(t);if(e.toLowerCase()===i.toLowerCase())return t;let r=(0,Zr.resolve)(e,"/temp");return await Hq(r)?r:e},Wq=n=>{let{root:e}=(0,Zr.parse)(n),t=(0,lc.tmpdir)(),{root:i}=(0,Zr.parse)(t);if(e.toLowerCase()===i.toLowerCase())return t;let r=(0,Zr.resolve)(e,"/temp");return $q(r)?r:e},Kq=async()=>(0,lc.tmpdir)(),Gq=()=>(0,lc.tmpdir)();Gi.defaultTmp=Gy.default==="win32"?Bq:Kq;Gi.defaultTmpSync=Gy.default==="win32"?Wq:Gq});var Xd=T(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.rimrafMoveRemoveSync=ts.rimrafMoveRemove=void 0;var _i=require("path"),Qy=Vy(),dc=oc(),es=Ki(),{lstat:Vq,rename:Xq,unlink:Xy,rmdir:Jq,chmod:Yq}=es.promises,Zy=sc(),eb=n=>`.${(0,_i.basename)(n)}.${Math.random()}`,Qq=async n=>Xy(n).catch(e=>{if(e.code==="EPERM")return Yq(n,438).then(()=>Xy(n),t=>{if(t.code!=="ENOENT")throw e});if(e.code==="ENOENT")return;throw e}),Zq=n=>{try{(0,es.unlinkSync)(n)}catch(e){if(e?.code==="EPERM")try{return(0,es.chmodSync)(n,438)}catch(t){if(t?.code==="ENOENT")return;throw e}else if(e?.code==="ENOENT")return;throw e}},e1=async(n,e)=>{if(e?.signal?.aborted)throw e.signal.reason;try{return await Gd(n,e,await Vq(n))}catch(t){if(t?.code==="ENOENT")return!0;throw t}};ts.rimrafMoveRemove=e1;var Gd=async(n,e,t)=>{if(e?.signal?.aborted)throw e.signal.reason;if(!e.tmp)return Gd(n,{...e,tmp:await(0,Qy.defaultTmp)(n)},t);if(n===e.tmp&&(0,_i.parse)(n).root!==n)throw new Error("cannot delete temp directory used for deletion");let i=t.isDirectory()?await(0,Zy.readdirOrError)(n):null;if(!Array.isArray(i)){if(i){if(i.code==="ENOENT")return!0;if(i.code!=="ENOTDIR")throw i}return e.filter&&!await e.filter(n,t)?!1:(await(0,dc.ignoreENOENT)(Jy(n,e.tmp,Qq)),!0)}return!(await Promise.all(i.map(s=>Gd((0,_i.resolve)(n,s.name),e,s)))).reduce((s,o)=>s&&o,!0)||e.preserveRoot===!1&&n===(0,_i.parse)(n).root||e.filter&&!await e.filter(n,t)?!1:(await(0,dc.ignoreENOENT)(Jy(n,e.tmp,Jq)),!0)},Jy=async(n,e,t)=>{let i=(0,_i.resolve)(e,eb(n));return await Xq(n,i),await t(i)},t1=(n,e)=>{if(e?.signal?.aborted)throw e.signal.reason;try{return Vd(n,e,(0,es.lstatSync)(n))}catch(t){if(t?.code==="ENOENT")return!0;throw t}};ts.rimrafMoveRemoveSync=t1;var Vd=(n,e,t)=>{if(e?.signal?.aborted)throw e.signal.reason;if(!e.tmp)return Vd(n,{...e,tmp:(0,Qy.defaultTmpSync)(n)},t);let i=e.tmp;if(n===e.tmp&&(0,_i.parse)(n).root!==n)throw new Error("cannot delete temp directory used for deletion");let r=t.isDirectory()?(0,Zy.readdirOrErrorSync)(n):null;if(!Array.isArray(r)){if(r){if(r.code==="ENOENT")return!0;if(r.code!=="ENOTDIR")throw r}return e.filter&&!e.filter(n,t)?!1:((0,dc.ignoreENOENTSync)(()=>Yy(n,i,Zq)),!0)}let s=!0;for(let o of r){let a=(0,_i.resolve)(n,o.name);s=Vd(a,e,o)&&s}return!s||e.preserveRoot===!1&&n===(0,_i.parse)(n).root||e.filter&&!e.filter(n,t)?!1:((0,dc.ignoreENOENTSync)(()=>Yy(n,i,es.rmdirSync)),!0)},Yy=(n,e,t)=>{let i=(0,_i.resolve)(e,eb(n));return(0,es.renameSync)(n,i),t(i)}});var Qd=T(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.rimrafWindowsSync=ns.rimrafWindows=void 0;var pc=require("path"),mc=By(),gc=Ki(),fc=oc(),tb=sc(),vc=Wy(),nb=Xd(),{unlink:n1,rmdir:i1,lstat:r1}=gc.promises,s1=(0,vc.retryBusy)((0,mc.fixEPERM)(n1)),o1=(0,vc.retryBusySync)((0,mc.fixEPERMSync)(gc.unlinkSync)),a1=(0,vc.retryBusy)((0,mc.fixEPERM)(i1)),c1=(0,vc.retryBusySync)((0,mc.fixEPERMSync)(gc.rmdirSync)),u1=async(n,e)=>{if(e?.signal?.aborted)throw e.signal.reason;let{filter:t,...i}=e;try{return await a1(n,i)}catch(r){if(r?.code==="ENOTEMPTY")return await(0,nb.rimrafMoveRemove)(n,i);throw r}},l1=(n,e)=>{if(e?.signal?.aborted)throw e.signal.reason;let{filter:t,...i}=e;try{return c1(n,i)}catch(r){if(r?.code==="ENOTEMPTY")return(0,nb.rimrafMoveRemoveSync)(n,i);throw r}},Vi=Symbol("start"),ib=Symbol("child"),hc=Symbol("finish"),d1=async(n,e)=>{if(e?.signal?.aborted)throw e.signal.reason;try{return await Jd(n,e,await r1(n),Vi)}catch(t){if(t?.code==="ENOENT")return!0;throw t}};ns.rimrafWindows=d1;var p1=(n,e)=>{if(e?.signal?.aborted)throw e.signal.reason;try{return Yd(n,e,(0,gc.lstatSync)(n),Vi)}catch(t){if(t?.code==="ENOENT")return!0;throw t}};ns.rimrafWindowsSync=p1;var Jd=async(n,e,t,i=Vi)=>{if(e?.signal?.aborted)throw e.signal.reason;let r=t.isDirectory()?await(0,tb.readdirOrError)(n):null;if(!Array.isArray(r)){if(r){if(r.code==="ENOENT")return!0;if(r.code!=="ENOTDIR")throw r}return e.filter&&!await e.filter(n,t)?!1:(await(0,fc.ignoreENOENT)(s1(n,e)),!0)}let s=i===Vi?ib:i,o=(await Promise.all(r.map(a=>Jd((0,pc.resolve)(n,a.name),e,a,s)))).reduce((a,c)=>a&&c,!0);if(i===Vi)return Jd(n,e,t,hc);if(i===hc){if(e.preserveRoot===!1&&n===(0,pc.parse)(n).root||!o||e.filter&&!await e.filter(n,t))return!1;await(0,fc.ignoreENOENT)(u1(n,e))}return!0},Yd=(n,e,t,i=Vi)=>{let r=t.isDirectory()?(0,tb.readdirOrErrorSync)(n):null;if(!Array.isArray(r)){if(r){if(r.code==="ENOENT")return!0;if(r.code!=="ENOTDIR")throw r}return e.filter&&!e.filter(n,t)?!1:((0,fc.ignoreENOENTSync)(()=>o1(n,e)),!0)}let s=!0;for(let o of r){let a=i===Vi?ib:i,c=(0,pc.resolve)(n,o.name);s=Yd(c,e,o,a)&&s}if(i===Vi)return Yd(n,e,t,hc);if(i===hc){if(e.preserveRoot===!1&&n===(0,pc.parse)(n).root||!s||e.filter&&!e.filter(n,t))return!1;(0,fc.ignoreENOENTSync)(()=>{l1(n,e)})}return!0}});var ab=T(Xi=>{"use strict";var f1=Xi&&Xi.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.rimrafManualSync=Xi.rimrafManual=void 0;var rb=f1(yo()),sb=Kd(),ob=Qd();Xi.rimrafManual=rb.default==="win32"?ob.rimrafWindows:sb.rimrafPosix;Xi.rimrafManualSync=rb.default==="win32"?ob.rimrafWindowsSync:sb.rimrafPosixSync});var ub=T(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.rimrafNativeSync=is.rimrafNative=void 0;var cb=Ki(),{rm:h1}=cb.promises,m1=async(n,e)=>(await h1(n,{...e,force:!0,recursive:!0}),!0);is.rimrafNative=m1;var g1=(n,e)=>((0,cb.rmSync)(n,{...e,force:!0,recursive:!0}),!0);is.rimrafNativeSync=g1});var fb=T(Ji=>{"use strict";var v1=Ji&&Ji.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ji,"__esModule",{value:!0});Ji.useNativeSync=Ji.useNative=void 0;var db=v1(yo()),x1=process.env.__TESTING_RIMRAF_NODE_VERSION__||process.version,y1=x1.replace(/^v/,"").split("."),[lb=0,b1=0]=y1.map(n=>parseInt(n,10)),pb=lb>14||lb===14&&b1>=14;Ji.useNative=!pb||db.default==="win32"?()=>!1:n=>!n?.signal&&!n?.filter;Ji.useNativeSync=!pb||db.default==="win32"?()=>!1:n=>!n?.signal&&!n?.filter});var _b=T(re=>{"use strict";var w1=re&&re.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(re,"__esModule",{value:!0});re.rimraf=re.sync=re.rimrafSync=re.moveRemove=re.moveRemoveSync=re.posix=re.posixSync=re.windows=re.windowsSync=re.manual=re.manualSync=re.native=re.nativeSync=re.isRimrafOptions=re.assertRimrafOptions=void 0;var mb=Iy(),gb=Hd(),xc=w1(Ly()),yc=ab(),vb=Xd(),bc=ub(),xb=Kd(),yb=Qd(),bb=fb(),wb=Hd();Object.defineProperty(re,"assertRimrafOptions",{enumerable:!0,get:function(){return wb.assertRimrafOptions}});Object.defineProperty(re,"isRimrafOptions",{enumerable:!0,get:function(){return wb.isRimrafOptions}});var rs=n=>async(e,t)=>{let i=(0,gb.optArg)(t);return i.glob&&(e=await(0,mb.glob)(e,i.glob)),Array.isArray(e)?!!(await Promise.all(e.map(r=>n((0,xc.default)(r,i),i)))).reduce((r,s)=>r&&s,!0):!!await n((0,xc.default)(e,i),i)},ss=n=>(e,t)=>{let i=(0,gb.optArgSync)(t);return i.glob&&(e=(0,mb.globSync)(e,i.glob)),Array.isArray(e)?!!e.map(r=>n((0,xc.default)(r,i),i)).reduce((r,s)=>r&&s,!0):!!n((0,xc.default)(e,i),i)};re.nativeSync=ss(bc.rimrafNativeSync);re.native=Object.assign(rs(bc.rimrafNative),{sync:re.nativeSync});re.manualSync=ss(yc.rimrafManualSync);re.manual=Object.assign(rs(yc.rimrafManual),{sync:re.manualSync});re.windowsSync=ss(yb.rimrafWindowsSync);re.windows=Object.assign(rs(yb.rimrafWindows),{sync:re.windowsSync});re.posixSync=ss(xb.rimrafPosixSync);re.posix=Object.assign(rs(xb.rimrafPosix),{sync:re.posixSync});re.moveRemoveSync=ss(vb.rimrafMoveRemoveSync);re.moveRemove=Object.assign(rs(vb.rimrafMoveRemove),{sync:re.moveRemoveSync});re.rimrafSync=ss((n,e)=>(0,bb.useNativeSync)(e)?(0,bc.rimrafNativeSync)(n,e):(0,yc.rimrafManualSync)(n,e));re.sync=re.rimrafSync;var hb=rs((n,e)=>(0,bb.useNative)(e)?(0,bc.rimrafNative)(n,e):(0,yc.rimrafManual)(n,e));re.rimraf=Object.assign(hb,{rimraf:hb,sync:re.rimrafSync,rimrafSync:re.rimrafSync,manual:re.manual,manualSync:re.manualSync,native:re.native,nativeSync:re.nativeSync,posix:re.posix,posixSync:re.posixSync,windows:re.windows,windowsSync:re.windowsSync,moveRemove:re.moveRemove,moveRemoveSync:re.moveRemoveSync});re.rimraf.rimraf=re.rimraf});var Rb=T((UM,Cb)=>{var{createWriteStream:_1,existsSync:Zd,mkdirSync:Sb,mkdtemp:S1}=require("fs"),{join:wc,sep:C1}=require("path"),{spawnSync:ep}=require("child_process"),{tmpdir:R1}=require("os"),D1=Px(),T1=_b(),E1=R1(),wo=n=>{console.error(n),process.exit(1)},tp=class{constructor(e,t,i,r,s){let o=[];if(typeof t!="string")o.push("url must be a string");else try{new URL(t)}catch(a){o.push(a)}if(e&&typeof e!="string"&&o.push("package name must be a string"),e||o.push("You must specify the name of your package"),s&&typeof s!="object"&&o.push("binaries must be a string => string map"),s||o.push("You must specify the binaries in the package"),o.length>0){let a=`One or more of the parameters you passed to the Binary constructor are invalid:
|
|
`;o.forEach(c=>{a+=c}),a+=`
|
|
|
|
Correct usage: new Package("my-binary", "https://example.com/binary/download.tar.gz", {"my-binary": "my-binary"})`,wo(a)}this.url=t,this.name=e,this.filename=i,this.zipExt=r,this.installDirectory=wc(__dirname,"node_modules",".bin_real"),this.binaries=s,Zd(this.installDirectory)||Sb(this.installDirectory,{recursive:!0})}exists(){for(let e in this.binaries){let t=this.binaries[e],i=wc(this.installDirectory,t);if(!Zd(i))return!1}return!0}install(e,t=!1){return this.exists()?(t||console.error(`${this.name} is already installed, skipping installation.`),Promise.resolve()):(Zd(this.installDirectory)&&T1.sync(this.installDirectory),Sb(this.installDirectory,{recursive:!0}),t||console.error(`Downloading release from ${this.url}`),D1({...e,url:this.url,responseType:"stream"}).then(i=>new Promise((r,s)=>{S1(`${E1}${C1}`,(o,a)=>{let c=wc(a,this.filename),u=i.data.pipe(_1(c));u.on("error",l=>s(l)),u.on("close",()=>{if(/\.tar\.*/.test(this.zipExt)){let l=ep("tar",["xf",c,"--strip-components","1","-C",this.installDirectory]);l.status==0?r():l.error?s(l.error):s(new Error(`An error occurred untarring the artifact: stdout: ${l.stdout}; stderr: ${l.stderr}`))}else if(this.zipExt==".zip"){let l=ep("unzip",["-q",c,"-d",this.installDirectory]);l.status==0?r():l.error?s(l.error):s(new Error(`An error occurred unzipping the artifact: stdout: ${l.stdout}; stderr: ${l.stderr}`))}else s(new Error(`Unrecognized file extension: ${this.zipExt}`))})})})).then(()=>{t||console.error(`${this.name} has been installed!`)}).catch(i=>{wo(`Error fetching release: ${i.message}`)}))}run(e,t){(this.exists()?Promise.resolve():this.install(t,!0)).then(()=>{let[,,...r]=process.argv,s={cwd:process.cwd(),stdio:"inherit"},o=this.binaries[e];o||wo(`${e} is not a known binary in ${this.name}`);let a=wc(this.installDirectory,o),c=ep(a,r,s);c.error&&wo(c.error),process.exit(c.status)}).catch(r=>{wo(r.message),process.exit(1)})}};Cb.exports.Package=tp});var Db=T((zM,_c)=>{var P1=function(){"use strict";function n(o,a,c,u){var l;typeof a=="object"&&(c=a.depth,u=a.prototype,l=a.filter,a=a.circular);var p=[],h=[],x=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof c>"u"&&(c=1/0);function f(y,w){if(y===null)return null;if(w==0)return y;var S,O;if(typeof y!="object")return y;if(n.__isArray(y))S=[];else if(n.__isRegExp(y))S=new RegExp(y.source,s(y)),y.lastIndex&&(S.lastIndex=y.lastIndex);else if(n.__isDate(y))S=new Date(y.getTime());else{if(x&&Buffer.isBuffer(y))return Buffer.allocUnsafe?S=Buffer.allocUnsafe(y.length):S=new Buffer(y.length),y.copy(S),S;typeof u>"u"?(O=Object.getPrototypeOf(y),S=Object.create(O)):(S=Object.create(u),O=u)}if(a){var k=p.indexOf(y);if(k!=-1)return h[k];p.push(y),h.push(S)}for(var N in y){var j;O&&(j=Object.getOwnPropertyDescriptor(O,N)),!(j&&j.set==null)&&(S[N]=f(y[N],w-1))}return S}return f(o,c)}n.clonePrototype=function(a){if(a===null)return null;var c=function(){};return c.prototype=a,new c};function e(o){return Object.prototype.toString.call(o)}n.__objToStr=e;function t(o){return typeof o=="object"&&e(o)==="[object Date]"}n.__isDate=t;function i(o){return typeof o=="object"&&e(o)==="[object Array]"}n.__isArray=i;function r(o){return typeof o=="object"&&e(o)==="[object RegExp]"}n.__isRegExp=r;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return n.__getRegExpFlags=s,n}();typeof _c=="object"&&_c.exports&&(_c.exports=P1)});var Eb=T(($M,Tb)=>{var k1=Db();Tb.exports=function(n,e){return n=n||{},Object.keys(e).forEach(function(t){typeof n[t]>"u"&&(n[t]=k1(e[t]))}),n}});var kb=T((HM,Pb)=>{Pb.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Nb=T((BM,np)=>{"use strict";var O1=Eb(),_o=kb(),qb={nul:0,control:0};np.exports=function(e){return Fb(e,qb)};np.exports.config=function(n){return n=O1(n||{},qb),function(t){return Fb(t,n)}};function Fb(n,e){if(typeof n!="string")return Ob(n,e);for(var t=0,i=0;i<n.length;i++){var r=Ob(n.charCodeAt(i),e);if(r<0)return-1;t+=r}return t}function Ob(n,e){return n===0?e.nul:n<32||n>=127&&n<160?e.control:q1(n)?0:1+(n>=4352&&(n<=4447||n==9001||n==9002||n>=11904&&n<=42191&&n!=12351||n>=44032&&n<=55203||n>=63744&&n<=64255||n>=65040&&n<=65049||n>=65072&&n<=65135||n>=65280&&n<=65376||n>=65504&&n<=65510||n>=131072&&n<=196605||n>=196608&&n<=262141))}function q1(n){var e=0,t=_o.length-1,i;if(n<_o[0][0]||n>_o[t][1])return!1;for(;t>=e;)if(i=Math.floor((e+t)/2),n>_o[i][1])e=i+1;else if(n<_o[i][0])t=i-1;else return!0;return!1}});var Lb=T((WM,jb)=>{var ip;try{ip=Nb()}catch{}jb.exports=Me;function Me(){this.rows=[],this.row={__printers:{}}}Me.prototype.newRow=function(){return this.rows.push(this.row),this.row={__printers:{}},this};Me.prototype.cell=function(n,e,t){return this.row[n]=e,this.row.__printers[n]=t||So,this};Me.prototype.separator=" ";function So(n){return n===void 0?"":""+n}function sp(n){var e=n.replace(/\u001b\[\d+m/g,"");return ip==null?e.length:ip(e)}Me.string=So;Me.leftPadder=op;function op(n){return function(e,t){var i=So(e),r=sp(i),s=t>r?Array(t-r+1).join(n):"";return s+i}}var ap=Me.padLeft=op(" ");Me.rightPadder=Ab;function Ab(n){return function(t,i){var r=So(t),s=sp(r),o=i>s?Array(i-s+1).join(n):"";return r+o}}var F1=Ab(" ");Me.number=function(n){return function(e,t){if(e==null)return"";if(typeof e!="number")throw new Error(""+e+" is not a number");var i=n==null?e+"":e.toFixed(n);return ap(i,t)}};function Ib(n,e){for(var t in n)t!="__printers"&&e(t,n[t])}Me.prototype.columns=function(){for(var n={},e=0;e<2;e++)this.rows.forEach(function(t){var i=0;Ib(t,function(r){i=Math.max(i,n[r]||0),n[r]=i,i++})});return Object.keys(n).sort(function(t,i){return n[t]-n[i]})};Me.prototype.print=function(){var n=this.columns(),e=this.separator,t={},i="";return this.rows.forEach(function(r){Ib(r,function(s,o){var a=r.__printers[s].call(r,o);t[s]=Math.max(sp(a),t[s]||0)})}),this.rows.forEach(function(r){var s="";n.forEach(function(o){var a=t[o],c=r.hasOwnProperty(o)?""+r.__printers[o].call(r,r[o],a):"";s+=F1(c,a)+e}),s=s.slice(0,-e.length),i+=s+`
|
|
`}),i};Me.prototype.toString=function(){var n=this.columns(),e=new Me;return e.separator=this.separator,n.forEach(function(t){e.cell(t,t)}),e.newRow(),e.pushDelimeter(n),e.rows=e.rows.concat(this.rows),this.totals&&this.rows.length&&(e.pushDelimeter(n),this.forEachTotal(e.cell.bind(e)),e.newRow()),e.print()};Me.prototype.pushDelimeter=function(n){return n=n||this.columns(),n.forEach(function(e){this.cell(e,void 0,op("-"))},this),this.newRow()};Me.prototype.forEachTotal=function(n){for(var e in this.totals){var t=this.totals[e],i=t.init,r=this.rows.length;this.rows.forEach(function(s,o){i=t.reduce.call(s,i,s[e],o,r)}),n(e,i,t.printer)}};Me.prototype.printTransposed=function(n){n=n||{};var e=new Me;return e.separator=n.separator||this.separator,this.columns().forEach(function(t){e.cell(0,t,n.namePrinter),this.rows.forEach(function(i,r){e.cell(r+1,i[t],i.__printers[t])}),e.newRow()},this),e.print()};Me.prototype.sort=function(n){if(typeof n=="function")return this.rows.sort(n),this;var e=Array.isArray(n)?n:this.columns(),t=e.map(function(i){var r="asc",s=/(.*)\|\s*(asc|des)\s*$/.exec(i);return s&&(i=s[1],r=s[2]),function(o,a){return r=="asc"?rp(o[i],a[i]):rp(a[i],o[i])}});return this.sort(function(i,r){for(var s=0;s<t.length;s++){var o=t[s](i,r);if(o!=0)return o}return 0})};function rp(n,e){return n===e?0:n===void 0?1:e===void 0?-1:n===null?1:e===null?-1:n>e?1:n<e?-1:rp(String(n),String(e))}Me.prototype.total=function(n,e){return e=e||{},this.totals=this.totals||{},this.totals[n]={reduce:e.reduce||Me.aggr.sum,printer:e.printer||ap,init:e.init==null?0:e.init},this};Me.aggr={};Me.aggr.printer=function(n,e){return e=e||So,function(t,i){return ap(n+e(t),i)}};Me.aggr.sum=function(n,e){return n+e};Me.aggr.avg=function(n,e,t,i){return n=n+e,t+1==i?n/i:n};Me.print=function(n,e,t){var i=e||{};e=typeof e=="function"?e:function(o,a){for(var c in o)if(o.hasOwnProperty(c)){var u=i[c]||{};a(u.name||c,o[c],u.printer)}};var r=new Me,s=r.cell.bind(r);return Array.isArray(n)?(t=t||function(o){return o.toString()},n.forEach(function(o){e(o,s),r.newRow()})):(t=t||function(o){return o.printTransposed({separator:" : "})},e(n,s),r.newRow()),t(r)};Me.log=function(n,e,t){console.log(Me.print(n,e,t))};Me.prototype.log=function(){console.log(this.toString())}});var Ub=T((KM,Mb)=>{(function(){"use strict";function n(){if(typeof console>"u")throw new Error("Weird, console object is undefined");if(typeof console.table=="function"&&console.table===x)return;function e(f,y){return typeof y===f}var t=e.bind(null,"string");function i(f,y){return Array.isArray(y)&&y.every(f)}var r=i.bind(null,t),s=i.bind(null,Array.isArray),o=Lb();function a(f){var y=new o;return f.forEach(function(w){typeof w=="string"||typeof w=="number"?y.cell("item",w):Object.keys(w).forEach(function(S){y.cell(S,w[S])}),y.newRow()}),y.toString()}function c(f,y,w){var S=new o;y.forEach(function(k){k.forEach(function(N,j){S.cell(f[j],N)}),S.newRow()});var O=S.toString();return w?O:console.log(O)}function u(f,y){var w=a(y),S=w.indexOf(`
|
|
`);if(S>0){f.length>S&&(S=f.length),console.log(f);var O="-",k,N="";for(k=0;k<S;k+=1)N+=O;console.log(N)}console.log(w)}function l(f,y){var w=a(y),S=w.indexOf(`
|
|
`),O="";if(S>0){f.length>S&&(S=f.length),O+=f+`
|
|
`;var k="-",N,j="";for(N=0;N<S;N+=1)j+=k;O+=j+`
|
|
`}return O+w}function p(f){var y=Object.keys(f);return y.map(function(w){return{key:w,value:f[w]}})}function h(f){return a(p(f))}function x(){var f=Array.prototype.slice.call(arguments);if(f.length===2&&typeof f[0]=="string"&&Array.isArray(f[1]))return u(f[0],f[1]);if(f.length===2&&r(f[0])&&s(f[1]))return c(f[0],f[1]);f.forEach(function(y){if(typeof y=="string")return console.log(y);Array.isArray(y)?console.log(a(y)):typeof y=="object"&&console.log(h(y))})}Mb.exports.getTable=function(){var f=Array.prototype.slice.call(arguments),y="";return f.length===2&&typeof f[0]=="string"&&Array.isArray(f[1])?l(f[0],f[1]):f.length===2&&r(f[0])&&s(f[1])?c(f[0],f[1],!0):(f.forEach(function(w,S){if(typeof w=="string"){y+=w,S!==f.length-1&&(y+=`
|
|
`);return}else Array.isArray(w)?y+=a(w)+`
|
|
`:typeof w=="object"&&(y+=h(w))}),y)},console.table=x}n()})()});var Hb=T((GM,$b)=>{"use strict";var zb=()=>process.platform==="linux",Sc=null,N1=()=>{if(!Sc)if(zb()&&process.report){let n=process.report.excludeNetwork;process.report.excludeNetwork=!0,Sc=process.report.getReport(),process.report.excludeNetwork=n}else Sc={};return Sc};$b.exports={isLinux:zb,getReport:N1}});var Kb=T((VM,Wb)=>{"use strict";var Bb=require("fs"),A1="/usr/bin/ldd",I1=n=>Bb.readFileSync(n,"utf-8"),j1=n=>new Promise((e,t)=>{Bb.readFile(n,"utf-8",(i,r)=>{i?t(i):e(r)})});Wb.exports={LDD_PATH:A1,readFileSync:I1,readFile:j1}});var lw=T((XM,uw)=>{"use strict";var Vb=require("child_process"),{isLinux:as,getReport:Xb}=Hb(),{LDD_PATH:Cc,readFile:Jb,readFileSync:Yb}=Kb(),ui,li,Qb="getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true",Yi="",Zb=()=>Yi||new Promise(n=>{Vb.exec(Qb,(e,t)=>{Yi=e?" ":t,n(Yi)})}),ew=()=>{if(!Yi)try{Yi=Vb.execSync(Qb,{encoding:"utf8"})}catch{Yi=" "}return Yi},Qi="glibc",tw=/LIBC[a-z0-9 \-).]*?(\d+\.\d+)/i,os="musl",L1=n=>n.includes("libc.musl-")||n.includes("ld-musl-"),nw=()=>{let n=Xb();return n.header&&n.header.glibcVersionRuntime?Qi:Array.isArray(n.sharedObjects)&&n.sharedObjects.some(L1)?os:null},iw=n=>{let[e,t]=n.split(/[\r\n]+/);return e&&e.includes(Qi)?Qi:t&&t.includes(os)?os:null},rw=n=>n.includes("musl")?os:n.includes("GNU C Library")?Qi:null,M1=async()=>{if(ui!==void 0)return ui;ui=null;try{let n=await Jb(Cc);ui=rw(n)}catch{}return ui},U1=()=>{if(ui!==void 0)return ui;ui=null;try{let n=Yb(Cc);ui=rw(n)}catch{}return ui},sw=async()=>{let n=null;if(as()&&(n=await M1(),n||(n=nw()),!n)){let e=await Zb();n=iw(e)}return n},ow=()=>{let n=null;if(as()&&(n=U1(),n||(n=nw()),!n)){let e=ew();n=iw(e)}return n},z1=async()=>as()&&await sw()!==Qi,$1=()=>as()&&ow()!==Qi,H1=async()=>{if(li!==void 0)return li;li=null;try{let e=(await Jb(Cc)).match(tw);e&&(li=e[1])}catch{}return li},B1=()=>{if(li!==void 0)return li;li=null;try{let e=Yb(Cc).match(tw);e&&(li=e[1])}catch{}return li},aw=()=>{let n=Xb();return n.header&&n.header.glibcVersionRuntime?n.header.glibcVersionRuntime:null},Gb=n=>n.trim().split(/\s+/)[1],cw=n=>{let[e,t,i]=n.split(/[\r\n]+/);return e&&e.includes(Qi)?Gb(e):t&&i&&t.includes(os)?Gb(i):null},W1=async()=>{let n=null;if(as()&&(n=await H1(),n||(n=aw()),!n)){let e=await Zb();n=cw(e)}return n},K1=()=>{let n=null;if(as()&&(n=B1(),n||(n=aw()),!n)){let e=ew();n=cw(e)}return n};uw.exports={GLIBC:Qi,MUSL:os,family:sw,familySync:ow,isNonGlibcLinux:z1,isNonGlibcLinuxSync:$1,version:W1,versionSync:K1}});var pw=T(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.getProxyEnv=void 0;var dw=n=>n.replace(/^\.*/,".").toLowerCase(),G1=n=>{n=n.trim();let e=n.split(":",2),t=dw(e[0]),i=e[1],r=n.indexOf(":")>-1;return{hostname:t,port:i,hasPort:r}},V1=(n,e)=>{let t=n.port||(n.protocol==="https:"?"443":"80"),i=dw(n.hostname);return e.split(",").map(G1).some(s=>{let o=i.indexOf(s.hostname),a=o>-1&&o===i.length-s.hostname.length;return s.hasPort?t===s.port&&a:a})},X1=n=>{let e=process.env.NO_PROXY||process.env.no_proxy||"";return e==="*"||e!==""&&V1(n,e)?null:n.protocol=="http:"?process.env.HTTP_PROXY||process.env.http_proxy||null:n.protocol=="https:"&&(process.env.HTTPS_PROXY||process.env.https_proxy)||null};Rc.getProxyEnv=X1});var gw=T(cs=>{"use strict";var YM=require("net"),J1=require("tls"),cp=require("http"),fw=require("https"),Y1=require("events"),QM=require("assert"),Q1=require("util");cs.httpOverHttp=Z1;cs.httpsOverHttp=eF;cs.httpOverHttps=tF;cs.httpsOverHttps=nF;function Z1(n){var e=new Si(n);return e.request=cp.request,e}function eF(n){var e=new Si(n);return e.request=cp.request,e.createSocket=hw,e.defaultPort=443,e}function tF(n){var e=new Si(n);return e.request=fw.request,e}function nF(n){var e=new Si(n);return e.request=fw.request,e.createSocket=hw,e.defaultPort=443,e}function Si(n){var e=this;e.options=n||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||cp.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(i,r,s,o){for(var a=mw(r,s,o),c=0,u=e.requests.length;c<u;++c){var l=e.requests[c];if(l.host===a.host&&l.port===a.port){e.requests.splice(c,1),l.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)})}Q1.inherits(Si,Y1.EventEmitter);Si.prototype.addRequest=function(e,t,i,r){var s=this,o=up({request:e},s.options,mw(t,i,r));if(s.sockets.length>=this.maxSockets){s.requests.push(o);return}s.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);function c(){s.emit("free",a,o)}function u(l){s.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};Si.prototype.createSocket=function(e,t){var i=this,r={};i.sockets.push(r);var s=up({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),Zi("making CONNECT request");var o=i.request(s);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",l),o.end();function a(p){p.upgrade=!0}function c(p,h,x){process.nextTick(function(){u(p,h,x)})}function u(p,h,x){if(o.removeAllListeners(),h.removeAllListeners(),p.statusCode!==200){Zi("tunneling socket could not be established, statusCode=%d",p.statusCode),h.destroy();var f=new Error("tunneling socket could not be established, statusCode="+p.statusCode);f.code="ECONNRESET",e.request.emit("error",f),i.removeSocket(r);return}if(x.length>0){Zi("got illegal response body from proxy"),h.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),i.removeSocket(r);return}return Zi("tunneling connection has established"),i.sockets[i.sockets.indexOf(r)]=h,t(h)}function l(p){o.removeAllListeners(),Zi(`tunneling socket could not be established, cause=%s
|
|
`,p.message,p.stack);var h=new Error("tunneling socket could not be established, cause="+p.message);h.code="ECONNRESET",e.request.emit("error",h),i.removeSocket(r)}};Si.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(t!==-1){this.sockets.splice(t,1);var i=this.requests.shift();i&&this.createSocket(i,function(r){i.request.onSocket(r)})}};function hw(n,e){var t=this;Si.prototype.createSocket.call(t,n,function(i){var r=n.request.getHeader("host"),s=up({},t.options,{socket:i,servername:r?r.replace(/:.*$/,""):n.host}),o=J1.connect(0,s);t.sockets[t.sockets.indexOf(i)]=o,e(o)})}function mw(n,e,t){return typeof n=="string"?{host:n,port:e,localAddress:t}:n}function up(n){for(var e=1,t=arguments.length;e<t;++e){var i=arguments[e];if(typeof i=="object")for(var r=Object.keys(i),s=0,o=r.length;s<o;++s){var a=r[s];i[a]!==void 0&&(n[a]=i[a])}}return n}var Zi;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Zi=function(){var n=Array.prototype.slice.call(arguments);typeof n[0]=="string"?n[0]="TUNNEL: "+n[0]:n.unshift("TUNNEL:"),console.error.apply(console,n)}:Zi=function(){};cs.debug=Zi});var xw=T((e2,vw)=>{vw.exports=gw()});var yw=T(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.configureProxy=void 0;var iF=pw(),rF=xw(),sF=n=>{let e=new URL(n),t=(0,iF.getProxyEnv)(e);if(!t)return null;let{hostname:i,port:r,protocol:s,username:o,password:a}=new URL(t);return e.protocol==="https:"&&s==="http:"?{proxy:!1,httpsAgent:(0,rF.httpsOverHttp)({proxy:{host:i,port:parseInt(r)}})}:{proxy:{protocol:s,hostname:i,port:parseInt(r),auth:{username:o,password:a}}}};Dc.configureProxy=sF});var bw=T(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.configureProxy=void 0;var oF=yw();Object.defineProperty(Tc,"configureProxy",{enumerable:!0,get:function(){return oF.configureProxy}})});var ww=T((i2,aF)=>{aF.exports={artifactDownloadUrl:"https://github.com/kdl-org/kdl-rs/releases/download/v6.3.2",bin:{"kdl-lsp":"run-kdl-lsp.js"},contributors:["Kat March\xE1n <kzm@zkat.tech>","KDL Community"],dependencies:{axios:"^1.7.9","axios-proxy-builder":"^0.1.2","console.table":"^0.10.0","detect-libc":"^2.0.3",rimraf:"^5.0.8"},description:"LSP Server for the KDL Document Language",devDependencies:{prettier:"^3.4.2"},engines:{node:">=14",npm:">=6"},glibcMinimum:{major:2,series:31},homepage:"https://kdl.dev",keywords:["kdl","document","config","lsp","language-server"],license:"Apache-2.0",name:"kdl-lsp",preferUnplugged:!0,repository:"https://github.com/kdl-org/kdl-rs",scripts:{fmt:"prettier --write **/*.js","fmt:check":"prettier --check **/*.js",postinstall:"node ./install.js"},supportedPlatforms:{"aarch64-apple-darwin":{artifactName:"kdl-lsp-aarch64-apple-darwin.tar.xz",bins:{"kdl-lsp":"kdl-lsp"},zipExt:".tar.xz"},"aarch64-pc-windows-gnu":{artifactName:"kdl-lsp-aarch64-pc-windows-msvc.zip",bins:{"kdl-lsp":"kdl-lsp.exe"},zipExt:".zip"},"aarch64-pc-windows-msvc":{artifactName:"kdl-lsp-aarch64-pc-windows-msvc.zip",bins:{"kdl-lsp":"kdl-lsp.exe"},zipExt:".zip"},"aarch64-unknown-linux-gnu":{artifactName:"kdl-lsp-aarch64-unknown-linux-gnu.tar.xz",bins:{"kdl-lsp":"kdl-lsp"},zipExt:".tar.xz"},"x86_64-apple-darwin":{artifactName:"kdl-lsp-x86_64-apple-darwin.tar.xz",bins:{"kdl-lsp":"kdl-lsp"},zipExt:".tar.xz"},"x86_64-pc-windows-gnu":{artifactName:"kdl-lsp-x86_64-pc-windows-msvc.zip",bins:{"kdl-lsp":"kdl-lsp.exe"},zipExt:".zip"},"x86_64-pc-windows-msvc":{artifactName:"kdl-lsp-x86_64-pc-windows-msvc.zip",bins:{"kdl-lsp":"kdl-lsp.exe"},zipExt:".zip"},"x86_64-unknown-linux-gnu":{artifactName:"kdl-lsp-x86_64-unknown-linux-gnu.tar.xz",bins:{"kdl-lsp":"kdl-lsp"},zipExt:".tar.xz"}},version:"6.3.2",volta:{node:"18.14.1",npm:"9.5.0"}}});var Ew=T((s2,Tw)=>{var{Package:cF}=Rb(),_w=require("os"),r2=Ub(),lp=lw(),{configureProxy:Cw}=bw(),uF=n=>{console.error(n),process.exit(1)},{name:Rw,artifactDownloadUrl:dp,supportedPlatforms:Sw,glibcMinimum:Dw}=ww(),lF=Dw.major,dF=Dw.series,pF=()=>{let n=_w.type(),e=_w.arch(),t="";switch(n){case"Windows_NT":t="pc-windows-msvc";break;case"Darwin":t="apple-darwin";break;case"Linux":t="unknown-linux-gnu";break}let i="";switch(e){case"x64":i="x86_64";break;case"arm64":i="aarch64";break}if(n==="Linux")if(lp.familySync()=="musl")t="unknown-linux-musl-dynamic";else if(lp.isNonGlibcLinuxSync())console.warn("Your libc is neither glibc nor musl; trying static musl binary instead"),t="unknown-linux-musl-static";else{let a=lp.versionSync().split("."),c=a[0],u=a[1];(c!=lF||u<dF)&&(console.warn("Your glibc isn't compatible; trying static musl binary instead"),t="unknown-linux-musl-static")}let r=`${i}-${t}`,s=Sw[r];return s||uF(`Platform with type "${n}" and architecture "${e}" is not supported by ${Rw}.
|
|
Your system must be one of the following:
|
|
|
|
${Object.keys(Sw).join(",")}`),s},pp=()=>{let n=pF(),e=`${dp}/${n.artifactName}`,t=n.artifactName,i=n.zipExt;return new cF(Rw,e,t,i,n.bins)},fF=n=>{if(!dp||dp.length===0){console.warn("in demo mode, not installing binaries");return}let e=pp(),t=Cw(e.url);return e.install(t,n)},hF=n=>{let e=pp(),t=Cw(e.url);e.run(n,t)};Tw.exports={install:fF,run:hF,getPackage:pp}});var kw=T(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.getProxyEnv=void 0;var Pw=n=>n.replace(/^\.*/,".").toLowerCase(),mF=n=>{n=n.trim();let e=n.split(":",2),t=Pw(e[0]),i=e[1],r=n.indexOf(":")>-1;return{hostname:t,port:i,hasPort:r}},gF=(n,e)=>{let t=n.port||(n.protocol==="https:"?"443":"80"),i=Pw(n.hostname);return e.split(",").map(mF).some(s=>{let o=i.indexOf(s.hostname),a=o>-1&&o===i.length-s.hostname.length;return s.hasPort?t===s.port&&a:a})},vF=n=>{let e=process.env.NO_PROXY||process.env.no_proxy||"";return e==="*"||e!==""&&gF(n,e)?null:n.protocol=="http:"?process.env.HTTP_PROXY||process.env.http_proxy||null:n.protocol=="https:"&&(process.env.HTTPS_PROXY||process.env.https_proxy)||null};Ec.getProxyEnv=vF});var Nw=T(us=>{"use strict";var a2=require("net"),xF=require("tls"),fp=require("http"),Ow=require("https"),yF=require("events"),c2=require("assert"),bF=require("util");us.httpOverHttp=wF;us.httpsOverHttp=_F;us.httpOverHttps=SF;us.httpsOverHttps=CF;function wF(n){var e=new Ci(n);return e.request=fp.request,e}function _F(n){var e=new Ci(n);return e.request=fp.request,e.createSocket=qw,e.defaultPort=443,e}function SF(n){var e=new Ci(n);return e.request=Ow.request,e}function CF(n){var e=new Ci(n);return e.request=Ow.request,e.createSocket=qw,e.defaultPort=443,e}function Ci(n){var e=this;e.options=n||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||fp.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(i,r,s,o){for(var a=Fw(r,s,o),c=0,u=e.requests.length;c<u;++c){var l=e.requests[c];if(l.host===a.host&&l.port===a.port){e.requests.splice(c,1),l.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)})}bF.inherits(Ci,yF.EventEmitter);Ci.prototype.addRequest=function(e,t,i,r){var s=this,o=hp({request:e},s.options,Fw(t,i,r));if(s.sockets.length>=this.maxSockets){s.requests.push(o);return}s.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);function c(){s.emit("free",a,o)}function u(l){s.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};Ci.prototype.createSocket=function(e,t){var i=this,r={};i.sockets.push(r);var s=hp({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),er("making CONNECT request");var o=i.request(s);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",l),o.end();function a(p){p.upgrade=!0}function c(p,h,x){process.nextTick(function(){u(p,h,x)})}function u(p,h,x){if(o.removeAllListeners(),h.removeAllListeners(),p.statusCode!==200){er("tunneling socket could not be established, statusCode=%d",p.statusCode),h.destroy();var f=new Error("tunneling socket could not be established, statusCode="+p.statusCode);f.code="ECONNRESET",e.request.emit("error",f),i.removeSocket(r);return}if(x.length>0){er("got illegal response body from proxy"),h.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),i.removeSocket(r);return}return er("tunneling connection has established"),i.sockets[i.sockets.indexOf(r)]=h,t(h)}function l(p){o.removeAllListeners(),er(`tunneling socket could not be established, cause=%s
|
|
`,p.message,p.stack);var h=new Error("tunneling socket could not be established, cause="+p.message);h.code="ECONNRESET",e.request.emit("error",h),i.removeSocket(r)}};Ci.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(t!==-1){this.sockets.splice(t,1);var i=this.requests.shift();i&&this.createSocket(i,function(r){i.request.onSocket(r)})}};function qw(n,e){var t=this;Ci.prototype.createSocket.call(t,n,function(i){var r=n.request.getHeader("host"),s=hp({},t.options,{socket:i,servername:r?r.replace(/:.*$/,""):n.host}),o=xF.connect(0,s);t.sockets[t.sockets.indexOf(i)]=o,e(o)})}function Fw(n,e,t){return typeof n=="string"?{host:n,port:e,localAddress:t}:n}function hp(n){for(var e=1,t=arguments.length;e<t;++e){var i=arguments[e];if(typeof i=="object")for(var r=Object.keys(i),s=0,o=r.length;s<o;++s){var a=r[s];i[a]!==void 0&&(n[a]=i[a])}}return n}var er;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?er=function(){var n=Array.prototype.slice.call(arguments);typeof n[0]=="string"?n[0]="TUNNEL: "+n[0]:n.unshift("TUNNEL:"),console.error.apply(console,n)}:er=function(){};us.debug=er});var Iw=T((l2,Aw)=>{Aw.exports=Nw()});var jw=T(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.configureProxy=void 0;var RF=kw(),DF=Iw(),TF=n=>{let e=new URL(n),t=(0,RF.getProxyEnv)(e);if(!t)return null;let{hostname:i,port:r,protocol:s,username:o,password:a}=new URL(t);return e.protocol==="https:"&&s==="http:"?{proxy:!1,httpsAgent:(0,DF.httpsOverHttp)({proxy:{host:i,port:parseInt(r)}})}:{proxy:{protocol:s,hostname:i,port:parseInt(r),auth:{username:o,password:a}}}};Pc.configureProxy=TF});var Lw=T(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.configureProxy=void 0;var EF=jw();Object.defineProperty(kc,"configureProxy",{enumerable:!0,get:function(){return EF.configureProxy}})});var qn=T(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.asPromise=pt.thenable=pt.typedArray=pt.stringArray=pt.array=pt.func=pt.error=pt.number=pt.string=pt.boolean=void 0;function PF(n){return n===!0||n===!1}pt.boolean=PF;function Mw(n){return typeof n=="string"||n instanceof String}pt.string=Mw;function kF(n){return typeof n=="number"||n instanceof Number}pt.number=kF;function OF(n){return n instanceof Error}pt.error=OF;function Uw(n){return typeof n=="function"}pt.func=Uw;function zw(n){return Array.isArray(n)}pt.array=zw;function qF(n){return zw(n)&&n.every(e=>Mw(e))}pt.stringArray=qF;function FF(n,e){return Array.isArray(n)&&n.every(e)}pt.typedArray=FF;function $w(n){return n&&Uw(n.then)}pt.thenable=$w;function NF(n){return n instanceof Promise?n:$w(n)?new Promise((e,t)=>{n.then(i=>e(i),i=>t(i))}):Promise.resolve(n)}pt.asPromise=NF});var ls=T(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.stringArray=Ut.array=Ut.func=Ut.error=Ut.number=Ut.string=Ut.boolean=void 0;function AF(n){return n===!0||n===!1}Ut.boolean=AF;function Hw(n){return typeof n=="string"||n instanceof String}Ut.string=Hw;function IF(n){return typeof n=="number"||n instanceof Number}Ut.number=IF;function jF(n){return n instanceof Error}Ut.error=jF;function LF(n){return typeof n=="function"}Ut.func=LF;function Bw(n){return Array.isArray(n)}Ut.array=Bw;function MF(n){return Bw(n)&&n.every(e=>Hw(e))}Ut.stringArray=MF});var Mp=T(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.Message=ne.NotificationType9=ne.NotificationType8=ne.NotificationType7=ne.NotificationType6=ne.NotificationType5=ne.NotificationType4=ne.NotificationType3=ne.NotificationType2=ne.NotificationType1=ne.NotificationType0=ne.NotificationType=ne.RequestType9=ne.RequestType8=ne.RequestType7=ne.RequestType6=ne.RequestType5=ne.RequestType4=ne.RequestType3=ne.RequestType2=ne.RequestType1=ne.RequestType=ne.RequestType0=ne.AbstractMessageSignature=ne.ParameterStructures=ne.ResponseError=ne.ErrorCodes=void 0;var Cr=ls(),mp;(function(n){n.ParseError=-32700,n.InvalidRequest=-32600,n.MethodNotFound=-32601,n.InvalidParams=-32602,n.InternalError=-32603,n.jsonrpcReservedErrorRangeStart=-32099,n.serverErrorStart=-32099,n.MessageWriteError=-32099,n.MessageReadError=-32098,n.PendingResponseRejected=-32097,n.ConnectionInactive=-32096,n.ServerNotInitialized=-32002,n.UnknownErrorCode=-32001,n.jsonrpcReservedErrorRangeEnd=-32e3,n.serverErrorEnd=-32e3})(mp||(ne.ErrorCodes=mp={}));var gp=class n extends Error{constructor(e,t,i){super(t),this.code=Cr.number(e)?e:mp.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,n.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};ne.ResponseError=gp;var sn=class n{constructor(e){this.kind=e}static is(e){return e===n.auto||e===n.byName||e===n.byPosition}toString(){return this.kind}};ne.ParameterStructures=sn;sn.auto=new sn("auto");sn.byPosition=new sn("byPosition");sn.byName=new sn("byName");var Xe=class{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return sn.auto}};ne.AbstractMessageSignature=Xe;var vp=class extends Xe{constructor(e){super(e,0)}};ne.RequestType0=vp;var xp=class extends Xe{constructor(e,t=sn.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ne.RequestType=xp;var yp=class extends Xe{constructor(e,t=sn.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ne.RequestType1=yp;var bp=class extends Xe{constructor(e){super(e,2)}};ne.RequestType2=bp;var wp=class extends Xe{constructor(e){super(e,3)}};ne.RequestType3=wp;var _p=class extends Xe{constructor(e){super(e,4)}};ne.RequestType4=_p;var Sp=class extends Xe{constructor(e){super(e,5)}};ne.RequestType5=Sp;var Cp=class extends Xe{constructor(e){super(e,6)}};ne.RequestType6=Cp;var Rp=class extends Xe{constructor(e){super(e,7)}};ne.RequestType7=Rp;var Dp=class extends Xe{constructor(e){super(e,8)}};ne.RequestType8=Dp;var Tp=class extends Xe{constructor(e){super(e,9)}};ne.RequestType9=Tp;var Ep=class extends Xe{constructor(e,t=sn.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ne.NotificationType=Ep;var Pp=class extends Xe{constructor(e){super(e,0)}};ne.NotificationType0=Pp;var kp=class extends Xe{constructor(e,t=sn.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};ne.NotificationType1=kp;var Op=class extends Xe{constructor(e){super(e,2)}};ne.NotificationType2=Op;var qp=class extends Xe{constructor(e){super(e,3)}};ne.NotificationType3=qp;var Fp=class extends Xe{constructor(e){super(e,4)}};ne.NotificationType4=Fp;var Np=class extends Xe{constructor(e){super(e,5)}};ne.NotificationType5=Np;var Ap=class extends Xe{constructor(e){super(e,6)}};ne.NotificationType6=Ap;var Ip=class extends Xe{constructor(e){super(e,7)}};ne.NotificationType7=Ip;var jp=class extends Xe{constructor(e){super(e,8)}};ne.NotificationType8=jp;var Lp=class extends Xe{constructor(e){super(e,9)}};ne.NotificationType9=Lp;var Ww;(function(n){function e(r){let s=r;return s&&Cr.string(s.method)&&(Cr.string(s.id)||Cr.number(s.id))}n.isRequest=e;function t(r){let s=r;return s&&Cr.string(s.method)&&r.id===void 0}n.isNotification=t;function i(r){let s=r;return s&&(s.result!==void 0||!!s.error)&&(Cr.string(s.id)||Cr.number(s.id)||s.id===null)}n.isResponse=i})(Ww||(ne.Message=Ww={}))});var zp=T(tr=>{"use strict";var Kw;Object.defineProperty(tr,"__esModule",{value:!0});tr.LRUCache=tr.LinkedMap=tr.Touch=void 0;var zt;(function(n){n.None=0,n.First=1,n.AsOld=n.First,n.Last=2,n.AsNew=n.Last})(zt||(tr.Touch=zt={}));var Oc=class{constructor(){this[Kw]="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,t=zt.None){let i=this._map.get(e);if(i)return t!==zt.None&&this.touch(i,t),i.value}set(e,t,i=zt.None){let r=this._map.get(e);if(r)r.value=t,i!==zt.None&&this.touch(r,i);else{switch(r={key:e,value:t,next:void 0,previous:void 0},i){case zt.None:this.addItemLast(r);break;case zt.First:this.addItemFirst(r);break;case zt.Last:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let i=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){let e=this._state,t=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let r={value:t.key,done:!1};return t=t.next,r}else return{value:void 0,done:!0}}};return i}values(){let e=this._state,t=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let r={value:t.value,done:!1};return t=t.next,r}else return{value:void 0,done:!0}}};return i}entries(){let e=this._state,t=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){let r={value:[t.key,t.value],done:!1};return t=t.next,r}else return{value:void 0,done:!0}}};return i}[(Kw=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.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 t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==zt.First&&t!==zt.Last)){if(t===zt.First){if(e===this._head)return;let i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===zt.Last){if(e===this._tail)return;let i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){this.clear();for(let[t,i]of e)this.set(t,i)}};tr.LinkedMap=Oc;var Up=class extends Oc{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=zt.AsNew){return super.get(e,t)}peek(e){return super.get(e,zt.None)}set(e,t){return super.set(e,t,zt.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};tr.LRUCache=Up});var Vw=T(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.Disposable=void 0;var Gw;(function(n){function e(t){return{dispose:t}}n.create=e})(Gw||(qc.Disposable=Gw={}))});var nr=T(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var $p;function Hp(){if($p===void 0)throw new Error("No runtime abstraction layer installed");return $p}(function(n){function e(t){if(t===void 0)throw new Error("No runtime abstraction layer provided");$p=t}n.install=e})(Hp||(Hp={}));Bp.default=Hp});var ps=T(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.Emitter=ds.Event=void 0;var UF=nr(),Xw;(function(n){let e={dispose(){}};n.None=function(){return e}})(Xw||(ds.Event=Xw={}));var Wp=class{add(e,t=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(i)&&i.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let i=!1;for(let r=0,s=this._callbacks.length;r<s;r++)if(this._callbacks[r]===e)if(this._contexts[r]===t){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}else i=!0;if(i)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 t=[],i=this._callbacks.slice(0),r=this._contexts.slice(0);for(let s=0,o=i.length;s<o;s++)try{t.push(i[s].apply(r[s],e))}catch(a){(0,UF.default)().console.error(a)}return t}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Fc=class n{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,i)=>{this._callbacks||(this._callbacks=new Wp),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);let r={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),r.dispose=n._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};ds.Emitter=Fc;Fc._noop=function(){}});var Ic=T(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.CancellationTokenSource=fs.CancellationToken=void 0;var zF=nr(),$F=ls(),Kp=ps(),Nc;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Kp.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Kp.Event.None});function e(t){let i=t;return i&&(i===n.None||i===n.Cancelled||$F.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}n.is=e})(Nc||(fs.CancellationToken=Nc={}));var HF=Object.freeze(function(n,e){let t=(0,zF.default)().timer.setTimeout(n.bind(e),0);return{dispose(){t.dispose()}}}),Ac=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?HF:(this._emitter||(this._emitter=new Kp.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},Gp=class{get token(){return this._token||(this._token=new Ac),this._token}cancel(){this._token?this._token.cancel():this._token=Nc.Cancelled}dispose(){this._token?this._token instanceof Ac&&this._token.dispose():this._token=Nc.None}};fs.CancellationTokenSource=Gp});var Jw=T(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.SharedArrayReceiverStrategy=hs.SharedArraySenderStrategy=void 0;var BF=Ic(),Co;(function(n){n.Continue=0,n.Cancelled=1})(Co||(Co={}));var Vp=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let t=new SharedArrayBuffer(4),i=new Int32Array(t,0,1);i[0]=Co.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let i=this.buffers.get(t);if(i===void 0)return;let r=new Int32Array(i,0,1);Atomics.store(r,0,Co.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};hs.SharedArraySenderStrategy=Vp;var Xp=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===Co.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},Jp=class{constructor(e){this.token=new Xp(e)}cancel(){}dispose(){}},Yp=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let t=e.$cancellationData;return t===void 0?new BF.CancellationTokenSource:new Jp(t)}};hs.SharedArrayReceiverStrategy=Yp});var Zp=T(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.Semaphore=void 0;var WF=nr(),Qp=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((t,i)=>{this._waiting.push({thunk:e,resolve:t,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,WF.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 t=e.thunk();t instanceof Promise?t.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}};jc.Semaphore=Qp});var Qw=T(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.ReadableStreamMessageReader=ir.AbstractMessageReader=ir.MessageReader=void 0;var tf=nr(),ms=ls(),ef=ps(),KF=Zp(),Yw;(function(n){function e(t){let i=t;return i&&ms.func(i.listen)&&ms.func(i.dispose)&&ms.func(i.onError)&&ms.func(i.onClose)&&ms.func(i.onPartialMessage)}n.is=e})(Yw||(ir.MessageReader=Yw={}));var Lc=class{constructor(){this.errorEmitter=new ef.Emitter,this.closeEmitter=new ef.Emitter,this.partialMessageEmitter=new ef.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: ${ms.string(e.message)?e.message:"unknown"}`)}};ir.AbstractMessageReader=Lc;var nf;(function(n){function e(t){let i,r,s,o=new Map,a,c=new Map;if(t===void 0||typeof t=="string")i=t??"utf-8";else{if(i=t.charset??"utf-8",t.contentDecoder!==void 0&&(s=t.contentDecoder,o.set(s.name,s)),t.contentDecoders!==void 0)for(let u of t.contentDecoders)o.set(u.name,u);if(t.contentTypeDecoder!==void 0&&(a=t.contentTypeDecoder,c.set(a.name,a)),t.contentTypeDecoders!==void 0)for(let u of t.contentTypeDecoders)c.set(u.name,u)}return a===void 0&&(a=(0,tf.default)().applicationJson.decoder,c.set(a.name,a)),{charset:i,contentDecoder:s,contentDecoders:o,contentTypeDecoder:a,contentTypeDecoders:c}}n.fromOptions=e})(nf||(nf={}));var rf=class extends Lc{constructor(e,t){super(),this.readable=e,this.options=nf.fromOptions(t),this.buffer=(0,tf.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new KF.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 t=this.readable.onData(i=>{this.onData(i)});return this.readable.onError(i=>this.fireError(i)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let i=this.buffer.tryReadHeaders(!0);if(!i)return;let r=i.get("content-length");if(!r){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
${JSON.stringify(Object.fromEntries(i))}`));return}let s=parseInt(r);if(isNaN(s)){this.fireError(new Error(`Content-Length value must be a number. Got ${r}`));return}this.nextMessageLength=s}let t=this.buffer.tryReadBody(this.nextMessageLength);if(t===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let i=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(t):t,r=await this.options.contentTypeDecoder.decode(i,this.options);this.callback(r)}).catch(i=>{this.fireError(i)})}}catch(t){this.fireError(t)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,tf.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};ir.ReadableStreamMessageReader=rf});var i_=T(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.WriteableStreamMessageWriter=rr.AbstractMessageWriter=rr.MessageWriter=void 0;var Zw=nr(),Ro=ls(),GF=Zp(),e_=ps(),VF="Content-Length: ",t_=`\r
|
|
`,n_;(function(n){function e(t){let i=t;return i&&Ro.func(i.dispose)&&Ro.func(i.onClose)&&Ro.func(i.onError)&&Ro.func(i.write)}n.is=e})(n_||(rr.MessageWriter=n_={}));var Mc=class{constructor(){this.errorEmitter=new e_.Emitter,this.closeEmitter=new e_.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,i){this.errorEmitter.fire([this.asError(e),t,i])}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: ${Ro.string(e.message)?e.message:"unknown"}`)}};rr.AbstractMessageWriter=Mc;var sf;(function(n){function e(t){return t===void 0||typeof t=="string"?{charset:t??"utf-8",contentTypeEncoder:(0,Zw.default)().applicationJson.encoder}:{charset:t.charset??"utf-8",contentEncoder:t.contentEncoder,contentTypeEncoder:t.contentTypeEncoder??(0,Zw.default)().applicationJson.encoder}}n.fromOptions=e})(sf||(sf={}));var of=class extends Mc{constructor(e,t){super(),this.writable=e,this.options=sf.fromOptions(t),this.errorCount=0,this.writeSemaphore=new GF.Semaphore(1),this.writable.onError(i=>this.fireError(i)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(i=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(i):i).then(i=>{let r=[];return r.push(VF,i.byteLength.toString(),t_),r.push(t_),this.doWrite(e,r,i)},i=>{throw this.fireError(i),i}))}async doWrite(e,t,i){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(i)}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}};rr.WriteableStreamMessageWriter=of});var r_=T(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.AbstractMessageBuffer=void 0;var XF=13,JF=10,YF=`\r
|
|
`,af=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let t=0,i=0,r=0,s=0;e:for(;i<this._chunks.length;){let u=this._chunks[i];for(r=0;r<u.length;){switch(u[r]){case XF:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case JF:switch(t){case 1:t=2;break;case 3:t=4,r++;break e;default:t=0}break;default:t=0}r++}s+=u.byteLength,i++}if(t!==4)return;let o=this._read(s+r),a=new Map,c=this.toString(o,"ascii").split(YF);if(c.length<2)return a;for(let u=0;u<c.length-2;u++){let l=c[u],p=l.indexOf(":");if(p===-1)throw new Error(`Message header must separate key and value using ':'
|
|
${l}`);let h=l.substr(0,p),x=l.substr(p+1).trim();a.set(e?h.toLowerCase():h,x)}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 t=this.allocNative(e),i=0,r=0;for(;e>0;){let s=this._chunks[r];if(s.byteLength>e){let o=s.slice(0,e);t.set(o,i),i+=e,this._chunks[r]=s.slice(e),this._totalLength-=e,e-=e}else t.set(s,i),i+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return t}};Uc.AbstractMessageBuffer=af});var u_=T(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.createMessageConnection=pe.ConnectionOptions=pe.MessageStrategy=pe.CancellationStrategy=pe.CancellationSenderStrategy=pe.CancellationReceiverStrategy=pe.RequestCancellationReceiverStrategy=pe.IdCancellationReceiverStrategy=pe.ConnectionStrategy=pe.ConnectionError=pe.ConnectionErrors=pe.LogTraceNotification=pe.SetTraceNotification=pe.TraceFormat=pe.TraceValues=pe.Trace=pe.NullLogger=pe.ProgressType=pe.ProgressToken=void 0;var s_=nr(),rt=ls(),oe=Mp(),o_=zp(),Do=ps(),cf=Ic(),Po;(function(n){n.type=new oe.NotificationType("$/cancelRequest")})(Po||(Po={}));var uf;(function(n){function e(t){return typeof t=="string"||typeof t=="number"}n.is=e})(uf||(pe.ProgressToken=uf={}));var To;(function(n){n.type=new oe.NotificationType("$/progress")})(To||(To={}));var lf=class{constructor(){}};pe.ProgressType=lf;var df;(function(n){function e(t){return rt.func(t)}n.is=e})(df||(df={}));pe.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var qe;(function(n){n[n.Off=0]="Off",n[n.Messages=1]="Messages",n[n.Compact=2]="Compact",n[n.Verbose=3]="Verbose"})(qe||(pe.Trace=qe={}));var a_;(function(n){n.Off="off",n.Messages="messages",n.Compact="compact",n.Verbose="verbose"})(a_||(pe.TraceValues=a_={}));(function(n){function e(i){if(!rt.string(i))return n.Off;switch(i=i.toLowerCase(),i){case"off":return n.Off;case"messages":return n.Messages;case"compact":return n.Compact;case"verbose":return n.Verbose;default:return n.Off}}n.fromString=e;function t(i){switch(i){case n.Off:return"off";case n.Messages:return"messages";case n.Compact:return"compact";case n.Verbose:return"verbose";default:return"off"}}n.toString=t})(qe||(pe.Trace=qe={}));var vn;(function(n){n.Text="text",n.JSON="json"})(vn||(pe.TraceFormat=vn={}));(function(n){function e(t){return rt.string(t)?(t=t.toLowerCase(),t==="json"?n.JSON:n.Text):n.Text}n.fromString=e})(vn||(pe.TraceFormat=vn={}));var pf;(function(n){n.type=new oe.NotificationType("$/setTrace")})(pf||(pe.SetTraceNotification=pf={}));var zc;(function(n){n.type=new oe.NotificationType("$/logTrace")})(zc||(pe.LogTraceNotification=zc={}));var Eo;(function(n){n[n.Closed=1]="Closed",n[n.Disposed=2]="Disposed",n[n.AlreadyListening=3]="AlreadyListening"})(Eo||(pe.ConnectionErrors=Eo={}));var gs=class n extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,n.prototype)}};pe.ConnectionError=gs;var ff;(function(n){function e(t){let i=t;return i&&rt.func(i.cancelUndispatched)}n.is=e})(ff||(pe.ConnectionStrategy=ff={}));var $c;(function(n){function e(t){let i=t;return i&&(i.kind===void 0||i.kind==="id")&&rt.func(i.createCancellationTokenSource)&&(i.dispose===void 0||rt.func(i.dispose))}n.is=e})($c||(pe.IdCancellationReceiverStrategy=$c={}));var hf;(function(n){function e(t){let i=t;return i&&i.kind==="request"&&rt.func(i.createCancellationTokenSource)&&(i.dispose===void 0||rt.func(i.dispose))}n.is=e})(hf||(pe.RequestCancellationReceiverStrategy=hf={}));var Hc;(function(n){n.Message=Object.freeze({createCancellationTokenSource(t){return new cf.CancellationTokenSource}});function e(t){return $c.is(t)||hf.is(t)}n.is=e})(Hc||(pe.CancellationReceiverStrategy=Hc={}));var Bc;(function(n){n.Message=Object.freeze({sendCancellation(t,i){return t.sendNotification(Po.type,{id:i})},cleanup(t){}});function e(t){let i=t;return i&&rt.func(i.sendCancellation)&&rt.func(i.cleanup)}n.is=e})(Bc||(pe.CancellationSenderStrategy=Bc={}));var Wc;(function(n){n.Message=Object.freeze({receiver:Hc.Message,sender:Bc.Message});function e(t){let i=t;return i&&Hc.is(i.receiver)&&Bc.is(i.sender)}n.is=e})(Wc||(pe.CancellationStrategy=Wc={}));var Kc;(function(n){function e(t){let i=t;return i&&rt.func(i.handleMessage)}n.is=e})(Kc||(pe.MessageStrategy=Kc={}));var c_;(function(n){function e(t){let i=t;return i&&(Wc.is(i.cancellationStrategy)||ff.is(i.connectionStrategy)||Kc.is(i.messageStrategy))}n.is=e})(c_||(pe.ConnectionOptions=c_={}));var Vn;(function(n){n[n.New=1]="New",n[n.Listening=2]="Listening",n[n.Closed=3]="Closed",n[n.Disposed=4]="Disposed"})(Vn||(Vn={}));function QF(n,e,t,i){let r=t!==void 0?t:pe.NullLogger,s=0,o=0,a=0,c="2.0",u,l=new Map,p,h=new Map,x=new Map,f,y=new o_.LinkedMap,w=new Map,S=new Set,O=new Map,k=qe.Off,N=vn.Text,j,G=Vn.New,$=new Do.Emitter,Q=new Do.Emitter,te=new Do.Emitter,Oe=new Do.Emitter,Ye=new Do.Emitter,We=i&&i.cancellationStrategy?i.cancellationStrategy:Wc.Message;function Kt(C){if(C===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+C.toString()}function Ne(C){return C===null?"res-unknown-"+(++a).toString():"res-"+C.toString()}function ct(){return"not-"+(++o).toString()}function mt(C,L){oe.Message.isRequest(L)?C.set(Kt(L.id),L):oe.Message.isResponse(L)?C.set(Ne(L.id),L):C.set(ct(),L)}function se(C){}function ie(){return G===Vn.Listening}function de(){return G===Vn.Closed}function ut(){return G===Vn.Disposed}function Re(){(G===Vn.New||G===Vn.Listening)&&(G=Vn.Closed,Q.fire(void 0))}function Ke(C){$.fire([C,void 0,void 0])}function Sn(C){$.fire(C)}n.onClose(Re),n.onError(Ke),e.onClose(Re),e.onError(Sn);function gt(){f||y.size===0||(f=(0,s_.default)().timer.setImmediate(()=>{f=void 0,Cn()}))}function it(C){oe.Message.isRequest(C)?Ge(C):oe.Message.isNotification(C)?Un(C):oe.Message.isResponse(C)?Mn(C):ei(C)}function Cn(){if(y.size===0)return;let C=y.shift();try{let L=i?.messageStrategy;Kc.is(L)?L.handleMessage(C,it):it(C)}finally{gt()}}let Rn=C=>{try{if(oe.Message.isNotification(C)&&C.method===Po.type.method){let L=C.params.id,B=Kt(L),K=y.get(B);if(oe.Message.isRequest(K)){let Se=i?.connectionStrategy,Ae=Se&&Se.cancelUndispatched?Se.cancelUndispatched(K,se):void 0;if(Ae&&(Ae.error!==void 0||Ae.result!==void 0)){y.delete(B),O.delete(L),Ae.id=K.id,Dn(Ae,C.method,Date.now()),e.write(Ae).catch(()=>r.error("Sending response for canceled message failed."));return}}let De=O.get(L);if(De!==void 0){De.cancel(),Tn(C);return}else S.add(L)}mt(y,C)}finally{gt()}};function Ge(C){if(ut())return;function L(me,Pe,ye){let ze={jsonrpc:c,id:C.id};me instanceof oe.ResponseError?ze.error=me.toJson():ze.result=me===void 0?null:me,Dn(ze,Pe,ye),e.write(ze).catch(()=>r.error("Sending response failed."))}function B(me,Pe,ye){let ze={jsonrpc:c,id:C.id,error:me.toJson()};Dn(ze,Pe,ye),e.write(ze).catch(()=>r.error("Sending response failed."))}function K(me,Pe,ye){me===void 0&&(me=null);let ze={jsonrpc:c,id:C.id,result:me};Dn(ze,Pe,ye),e.write(ze).catch(()=>r.error("Sending response failed."))}Fi(C);let De=l.get(C.method),Se,Ae;De&&(Se=De.type,Ae=De.handler);let Ue=Date.now();if(Ae||u){let me=C.id??String(Date.now()),Pe=$c.is(We.receiver)?We.receiver.createCancellationTokenSource(me):We.receiver.createCancellationTokenSource(C);C.id!==null&&S.has(C.id)&&Pe.cancel(),C.id!==null&&O.set(me,Pe);try{let ye;if(Ae)if(C.params===void 0){if(Se!==void 0&&Se.numberOfParams!==0){B(new oe.ResponseError(oe.ErrorCodes.InvalidParams,`Request ${C.method} defines ${Se.numberOfParams} params but received none.`),C.method,Ue);return}ye=Ae(Pe.token)}else if(Array.isArray(C.params)){if(Se!==void 0&&Se.parameterStructures===oe.ParameterStructures.byName){B(new oe.ResponseError(oe.ErrorCodes.InvalidParams,`Request ${C.method} defines parameters by name but received parameters by position`),C.method,Ue);return}ye=Ae(...C.params,Pe.token)}else{if(Se!==void 0&&Se.parameterStructures===oe.ParameterStructures.byPosition){B(new oe.ResponseError(oe.ErrorCodes.InvalidParams,`Request ${C.method} defines parameters by position but received parameters by name`),C.method,Ue);return}ye=Ae(C.params,Pe.token)}else u&&(ye=u(C.method,C.params,Pe.token));let ze=ye;ye?ze.then?ze.then(lt=>{O.delete(me),L(lt,C.method,Ue)},lt=>{O.delete(me),lt instanceof oe.ResponseError?B(lt,C.method,Ue):lt&&rt.string(lt.message)?B(new oe.ResponseError(oe.ErrorCodes.InternalError,`Request ${C.method} failed with message: ${lt.message}`),C.method,Ue):B(new oe.ResponseError(oe.ErrorCodes.InternalError,`Request ${C.method} failed unexpectedly without providing any details.`),C.method,Ue)}):(O.delete(me),L(ye,C.method,Ue)):(O.delete(me),K(ye,C.method,Ue))}catch(ye){O.delete(me),ye instanceof oe.ResponseError?L(ye,C.method,Ue):ye&&rt.string(ye.message)?B(new oe.ResponseError(oe.ErrorCodes.InternalError,`Request ${C.method} failed with message: ${ye.message}`),C.method,Ue):B(new oe.ResponseError(oe.ErrorCodes.InternalError,`Request ${C.method} failed unexpectedly without providing any details.`),C.method,Ue)}}else B(new oe.ResponseError(oe.ErrorCodes.MethodNotFound,`Unhandled method ${C.method}`),C.method,Ue)}function Mn(C){if(!ut())if(C.id===null)C.error?r.error(`Received response message without id: Error is:
|
|
${JSON.stringify(C.error,void 0,4)}`):r.error("Received response message without id. No further error information provided.");else{let L=C.id,B=w.get(L);if(ti(C,B),B!==void 0){w.delete(L);try{if(C.error){let K=C.error;B.reject(new oe.ResponseError(K.code,K.message,K.data))}else if(C.result!==void 0)B.resolve(C.result);else throw new Error("Should never happen.")}catch(K){K.message?r.error(`Response handler '${B.method}' failed with message: ${K.message}`):r.error(`Response handler '${B.method}' failed unexpectedly.`)}}}}function Un(C){if(ut())return;let L,B;if(C.method===Po.type.method){let K=C.params.id;S.delete(K),Tn(C);return}else{let K=h.get(C.method);K&&(B=K.handler,L=K.type)}if(B||p)try{if(Tn(C),B)if(C.params===void 0)L!==void 0&&L.numberOfParams!==0&&L.parameterStructures!==oe.ParameterStructures.byName&&r.error(`Notification ${C.method} defines ${L.numberOfParams} params but received none.`),B();else if(Array.isArray(C.params)){let K=C.params;C.method===To.type.method&&K.length===2&&uf.is(K[0])?B({token:K[0],value:K[1]}):(L!==void 0&&(L.parameterStructures===oe.ParameterStructures.byName&&r.error(`Notification ${C.method} defines parameters by name but received parameters by position`),L.numberOfParams!==C.params.length&&r.error(`Notification ${C.method} defines ${L.numberOfParams} params but received ${K.length} arguments`)),B(...K))}else L!==void 0&&L.parameterStructures===oe.ParameterStructures.byPosition&&r.error(`Notification ${C.method} defines parameters by position but received parameters by name`),B(C.params);else p&&p(C.method,C.params)}catch(K){K.message?r.error(`Notification handler '${C.method}' failed with message: ${K.message}`):r.error(`Notification handler '${C.method}' failed unexpectedly.`)}else te.fire(C)}function ei(C){if(!C){r.error("Received empty message.");return}r.error(`Received message which is neither a response nor a notification message:
|
|
${JSON.stringify(C,null,4)}`);let L=C;if(rt.string(L.id)||rt.number(L.id)){let B=L.id,K=w.get(B);K&&K.reject(new Error("The received response has neither a result nor an error property."))}}function yt(C){if(C!=null)switch(k){case qe.Verbose:return JSON.stringify(C,null,4);case qe.Compact:return JSON.stringify(C);default:return}}function mi(C){if(!(k===qe.Off||!j))if(N===vn.Text){let L;(k===qe.Verbose||k===qe.Compact)&&C.params&&(L=`Params: ${yt(C.params)}
|
|
|
|
`),j.log(`Sending request '${C.method} - (${C.id})'.`,L)}else vt("send-request",C)}function zn(C){if(!(k===qe.Off||!j))if(N===vn.Text){let L;(k===qe.Verbose||k===qe.Compact)&&(C.params?L=`Params: ${yt(C.params)}
|
|
|
|
`:L=`No parameters provided.
|
|
|
|
`),j.log(`Sending notification '${C.method}'.`,L)}else vt("send-notification",C)}function Dn(C,L,B){if(!(k===qe.Off||!j))if(N===vn.Text){let K;(k===qe.Verbose||k===qe.Compact)&&(C.error&&C.error.data?K=`Error data: ${yt(C.error.data)}
|
|
|
|
`:C.result?K=`Result: ${yt(C.result)}
|
|
|
|
`:C.error===void 0&&(K=`No result returned.
|
|
|
|
`)),j.log(`Sending response '${L} - (${C.id})'. Processing request took ${Date.now()-B}ms`,K)}else vt("send-response",C)}function Fi(C){if(!(k===qe.Off||!j))if(N===vn.Text){let L;(k===qe.Verbose||k===qe.Compact)&&C.params&&(L=`Params: ${yt(C.params)}
|
|
|
|
`),j.log(`Received request '${C.method} - (${C.id})'.`,L)}else vt("receive-request",C)}function Tn(C){if(!(k===qe.Off||!j||C.method===zc.type.method))if(N===vn.Text){let L;(k===qe.Verbose||k===qe.Compact)&&(C.params?L=`Params: ${yt(C.params)}
|
|
|
|
`:L=`No parameters provided.
|
|
|
|
`),j.log(`Received notification '${C.method}'.`,L)}else vt("receive-notification",C)}function ti(C,L){if(!(k===qe.Off||!j))if(N===vn.Text){let B;if((k===qe.Verbose||k===qe.Compact)&&(C.error&&C.error.data?B=`Error data: ${yt(C.error.data)}
|
|
|
|
`:C.result?B=`Result: ${yt(C.result)}
|
|
|
|
`:C.error===void 0&&(B=`No result returned.
|
|
|
|
`)),L){let K=C.error?` Request failed: ${C.error.message} (${C.error.code}).`:"";j.log(`Received response '${L.method} - (${C.id})' in ${Date.now()-L.timerStart}ms.${K}`,B)}else j.log(`Received response ${C.id} without active response promise.`,B)}else vt("receive-response",C)}function vt(C,L){if(!j||k===qe.Off)return;let B={isLSPMessage:!0,type:C,message:L,timestamp:Date.now()};j.log(B)}function Lt(){if(de())throw new gs(Eo.Closed,"Connection is closed.");if(ut())throw new gs(Eo.Disposed,"Connection is disposed.")}function Nt(){if(ie())throw new gs(Eo.AlreadyListening,"Connection is already listening")}function fn(){if(!ie())throw new Error("Call listen() first.")}function Zt(C){return C===void 0?null:C}function ni(C){if(C!==null)return C}function gi(C){return C!=null&&!Array.isArray(C)&&typeof C=="object"}function $n(C,L){switch(C){case oe.ParameterStructures.auto:return gi(L)?ni(L):[Zt(L)];case oe.ParameterStructures.byName:if(!gi(L))throw new Error("Received parameters by name but param is not an object literal.");return ni(L);case oe.ParameterStructures.byPosition:return[Zt(L)];default:throw new Error(`Unknown parameter structure ${C.toString()}`)}}function vi(C,L){let B,K=C.numberOfParams;switch(K){case 0:B=void 0;break;case 1:B=$n(C.parameterStructures,L[0]);break;default:B=[];for(let De=0;De<L.length&&De<K;De++)B.push(Zt(L[De]));if(L.length<K)for(let De=L.length;De<K;De++)B.push(null);break}return B}let Gt={sendNotification:(C,...L)=>{Lt();let B,K;if(rt.string(C)){B=C;let Se=L[0],Ae=0,Ue=oe.ParameterStructures.auto;oe.ParameterStructures.is(Se)&&(Ae=1,Ue=Se);let me=L.length,Pe=me-Ae;switch(Pe){case 0:K=void 0;break;case 1:K=$n(Ue,L[Ae]);break;default:if(Ue===oe.ParameterStructures.byName)throw new Error(`Received ${Pe} parameters for 'by Name' notification parameter structure.`);K=L.slice(Ae,me).map(ye=>Zt(ye));break}}else{let Se=L;B=C.method,K=vi(C,Se)}let De={jsonrpc:c,method:B,params:K};return zn(De),e.write(De).catch(Se=>{throw r.error("Sending notification failed."),Se})},onNotification:(C,L)=>{Lt();let B;return rt.func(C)?p=C:L&&(rt.string(C)?(B=C,h.set(C,{type:void 0,handler:L})):(B=C.method,h.set(C.method,{type:C,handler:L}))),{dispose:()=>{B!==void 0?h.delete(B):p=void 0}}},onProgress:(C,L,B)=>{if(x.has(L))throw new Error(`Progress handler for token ${L} already registered`);return x.set(L,B),{dispose:()=>{x.delete(L)}}},sendProgress:(C,L,B)=>Gt.sendNotification(To.type,{token:L,value:B}),onUnhandledProgress:Oe.event,sendRequest:(C,...L)=>{Lt(),fn();let B,K,De;if(rt.string(C)){B=C;let me=L[0],Pe=L[L.length-1],ye=0,ze=oe.ParameterStructures.auto;oe.ParameterStructures.is(me)&&(ye=1,ze=me);let lt=L.length;cf.CancellationToken.is(Pe)&&(lt=lt-1,De=Pe);let Dt=lt-ye;switch(Dt){case 0:K=void 0;break;case 1:K=$n(ze,L[ye]);break;default:if(ze===oe.ParameterStructures.byName)throw new Error(`Received ${Dt} parameters for 'by Name' request parameter structure.`);K=L.slice(ye,lt).map(Ni=>Zt(Ni));break}}else{let me=L;B=C.method,K=vi(C,me);let Pe=C.numberOfParams;De=cf.CancellationToken.is(me[Pe])?me[Pe]:void 0}let Se=s++,Ae;De&&(Ae=De.onCancellationRequested(()=>{let me=We.sender.sendCancellation(Gt,Se);return me===void 0?(r.log(`Received no promise from cancellation strategy when cancelling id ${Se}`),Promise.resolve()):me.catch(()=>{r.log(`Sending cancellation messages for id ${Se} failed`)})}));let Ue={jsonrpc:c,id:Se,method:B,params:K};return mi(Ue),typeof We.sender.enableCancellation=="function"&&We.sender.enableCancellation(Ue),new Promise(async(me,Pe)=>{let ye=Dt=>{me(Dt),We.sender.cleanup(Se),Ae?.dispose()},ze=Dt=>{Pe(Dt),We.sender.cleanup(Se),Ae?.dispose()},lt={method:B,timerStart:Date.now(),resolve:ye,reject:ze};try{await e.write(Ue),w.set(Se,lt)}catch(Dt){throw r.error("Sending request failed."),lt.reject(new oe.ResponseError(oe.ErrorCodes.MessageWriteError,Dt.message?Dt.message:"Unknown reason")),Dt}})},onRequest:(C,L)=>{Lt();let B=null;return df.is(C)?(B=void 0,u=C):rt.string(C)?(B=null,L!==void 0&&(B=C,l.set(C,{handler:L,type:void 0}))):L!==void 0&&(B=C.method,l.set(C.method,{type:C,handler:L})),{dispose:()=>{B!==null&&(B!==void 0?l.delete(B):u=void 0)}}},hasPendingResponse:()=>w.size>0,trace:async(C,L,B)=>{let K=!1,De=vn.Text;B!==void 0&&(rt.boolean(B)?K=B:(K=B.sendNotification||!1,De=B.traceFormat||vn.Text)),k=C,N=De,k===qe.Off?j=void 0:j=L,K&&!de()&&!ut()&&await Gt.sendNotification(pf.type,{value:qe.toString(C)})},onError:$.event,onClose:Q.event,onUnhandledNotification:te.event,onDispose:Ye.event,end:()=>{e.end()},dispose:()=>{if(ut())return;G=Vn.Disposed,Ye.fire(void 0);let C=new oe.ResponseError(oe.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let L of w.values())L.reject(C);w=new Map,O=new Map,S=new Set,y=new o_.LinkedMap,rt.func(e.dispose)&&e.dispose(),rt.func(n.dispose)&&n.dispose()},listen:()=>{Lt(),Nt(),G=Vn.Listening,n.listen(Rn)},inspect:()=>{(0,s_.default)().console.log("inspect")}};return Gt.onNotification(zc.type,C=>{if(k===qe.Off||!j)return;let L=k===qe.Verbose||k===qe.Compact;j.log(C.message,L?C.verbose:void 0)}),Gt.onNotification(To.type,C=>{let L=x.get(C.token);L?L(C.value):Oe.fire(C)}),Gt}pe.createMessageConnection=QF});var Gc=T(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.ProgressType=I.ProgressToken=I.createMessageConnection=I.NullLogger=I.ConnectionOptions=I.ConnectionStrategy=I.AbstractMessageBuffer=I.WriteableStreamMessageWriter=I.AbstractMessageWriter=I.MessageWriter=I.ReadableStreamMessageReader=I.AbstractMessageReader=I.MessageReader=I.SharedArrayReceiverStrategy=I.SharedArraySenderStrategy=I.CancellationToken=I.CancellationTokenSource=I.Emitter=I.Event=I.Disposable=I.LRUCache=I.Touch=I.LinkedMap=I.ParameterStructures=I.NotificationType9=I.NotificationType8=I.NotificationType7=I.NotificationType6=I.NotificationType5=I.NotificationType4=I.NotificationType3=I.NotificationType2=I.NotificationType1=I.NotificationType0=I.NotificationType=I.ErrorCodes=I.ResponseError=I.RequestType9=I.RequestType8=I.RequestType7=I.RequestType6=I.RequestType5=I.RequestType4=I.RequestType3=I.RequestType2=I.RequestType1=I.RequestType0=I.RequestType=I.Message=I.RAL=void 0;I.MessageStrategy=I.CancellationStrategy=I.CancellationSenderStrategy=I.CancellationReceiverStrategy=I.ConnectionError=I.ConnectionErrors=I.LogTraceNotification=I.SetTraceNotification=I.TraceFormat=I.TraceValues=I.Trace=void 0;var Ve=Mp();Object.defineProperty(I,"Message",{enumerable:!0,get:function(){return Ve.Message}});Object.defineProperty(I,"RequestType",{enumerable:!0,get:function(){return Ve.RequestType}});Object.defineProperty(I,"RequestType0",{enumerable:!0,get:function(){return Ve.RequestType0}});Object.defineProperty(I,"RequestType1",{enumerable:!0,get:function(){return Ve.RequestType1}});Object.defineProperty(I,"RequestType2",{enumerable:!0,get:function(){return Ve.RequestType2}});Object.defineProperty(I,"RequestType3",{enumerable:!0,get:function(){return Ve.RequestType3}});Object.defineProperty(I,"RequestType4",{enumerable:!0,get:function(){return Ve.RequestType4}});Object.defineProperty(I,"RequestType5",{enumerable:!0,get:function(){return Ve.RequestType5}});Object.defineProperty(I,"RequestType6",{enumerable:!0,get:function(){return Ve.RequestType6}});Object.defineProperty(I,"RequestType7",{enumerable:!0,get:function(){return Ve.RequestType7}});Object.defineProperty(I,"RequestType8",{enumerable:!0,get:function(){return Ve.RequestType8}});Object.defineProperty(I,"RequestType9",{enumerable:!0,get:function(){return Ve.RequestType9}});Object.defineProperty(I,"ResponseError",{enumerable:!0,get:function(){return Ve.ResponseError}});Object.defineProperty(I,"ErrorCodes",{enumerable:!0,get:function(){return Ve.ErrorCodes}});Object.defineProperty(I,"NotificationType",{enumerable:!0,get:function(){return Ve.NotificationType}});Object.defineProperty(I,"NotificationType0",{enumerable:!0,get:function(){return Ve.NotificationType0}});Object.defineProperty(I,"NotificationType1",{enumerable:!0,get:function(){return Ve.NotificationType1}});Object.defineProperty(I,"NotificationType2",{enumerable:!0,get:function(){return Ve.NotificationType2}});Object.defineProperty(I,"NotificationType3",{enumerable:!0,get:function(){return Ve.NotificationType3}});Object.defineProperty(I,"NotificationType4",{enumerable:!0,get:function(){return Ve.NotificationType4}});Object.defineProperty(I,"NotificationType5",{enumerable:!0,get:function(){return Ve.NotificationType5}});Object.defineProperty(I,"NotificationType6",{enumerable:!0,get:function(){return Ve.NotificationType6}});Object.defineProperty(I,"NotificationType7",{enumerable:!0,get:function(){return Ve.NotificationType7}});Object.defineProperty(I,"NotificationType8",{enumerable:!0,get:function(){return Ve.NotificationType8}});Object.defineProperty(I,"NotificationType9",{enumerable:!0,get:function(){return Ve.NotificationType9}});Object.defineProperty(I,"ParameterStructures",{enumerable:!0,get:function(){return Ve.ParameterStructures}});var mf=zp();Object.defineProperty(I,"LinkedMap",{enumerable:!0,get:function(){return mf.LinkedMap}});Object.defineProperty(I,"LRUCache",{enumerable:!0,get:function(){return mf.LRUCache}});Object.defineProperty(I,"Touch",{enumerable:!0,get:function(){return mf.Touch}});var ZF=Vw();Object.defineProperty(I,"Disposable",{enumerable:!0,get:function(){return ZF.Disposable}});var l_=ps();Object.defineProperty(I,"Event",{enumerable:!0,get:function(){return l_.Event}});Object.defineProperty(I,"Emitter",{enumerable:!0,get:function(){return l_.Emitter}});var d_=Ic();Object.defineProperty(I,"CancellationTokenSource",{enumerable:!0,get:function(){return d_.CancellationTokenSource}});Object.defineProperty(I,"CancellationToken",{enumerable:!0,get:function(){return d_.CancellationToken}});var p_=Jw();Object.defineProperty(I,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return p_.SharedArraySenderStrategy}});Object.defineProperty(I,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return p_.SharedArrayReceiverStrategy}});var gf=Qw();Object.defineProperty(I,"MessageReader",{enumerable:!0,get:function(){return gf.MessageReader}});Object.defineProperty(I,"AbstractMessageReader",{enumerable:!0,get:function(){return gf.AbstractMessageReader}});Object.defineProperty(I,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return gf.ReadableStreamMessageReader}});var vf=i_();Object.defineProperty(I,"MessageWriter",{enumerable:!0,get:function(){return vf.MessageWriter}});Object.defineProperty(I,"AbstractMessageWriter",{enumerable:!0,get:function(){return vf.AbstractMessageWriter}});Object.defineProperty(I,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return vf.WriteableStreamMessageWriter}});var eN=r_();Object.defineProperty(I,"AbstractMessageBuffer",{enumerable:!0,get:function(){return eN.AbstractMessageBuffer}});var jt=u_();Object.defineProperty(I,"ConnectionStrategy",{enumerable:!0,get:function(){return jt.ConnectionStrategy}});Object.defineProperty(I,"ConnectionOptions",{enumerable:!0,get:function(){return jt.ConnectionOptions}});Object.defineProperty(I,"NullLogger",{enumerable:!0,get:function(){return jt.NullLogger}});Object.defineProperty(I,"createMessageConnection",{enumerable:!0,get:function(){return jt.createMessageConnection}});Object.defineProperty(I,"ProgressToken",{enumerable:!0,get:function(){return jt.ProgressToken}});Object.defineProperty(I,"ProgressType",{enumerable:!0,get:function(){return jt.ProgressType}});Object.defineProperty(I,"Trace",{enumerable:!0,get:function(){return jt.Trace}});Object.defineProperty(I,"TraceValues",{enumerable:!0,get:function(){return jt.TraceValues}});Object.defineProperty(I,"TraceFormat",{enumerable:!0,get:function(){return jt.TraceFormat}});Object.defineProperty(I,"SetTraceNotification",{enumerable:!0,get:function(){return jt.SetTraceNotification}});Object.defineProperty(I,"LogTraceNotification",{enumerable:!0,get:function(){return jt.LogTraceNotification}});Object.defineProperty(I,"ConnectionErrors",{enumerable:!0,get:function(){return jt.ConnectionErrors}});Object.defineProperty(I,"ConnectionError",{enumerable:!0,get:function(){return jt.ConnectionError}});Object.defineProperty(I,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return jt.CancellationReceiverStrategy}});Object.defineProperty(I,"CancellationSenderStrategy",{enumerable:!0,get:function(){return jt.CancellationSenderStrategy}});Object.defineProperty(I,"CancellationStrategy",{enumerable:!0,get:function(){return jt.CancellationStrategy}});Object.defineProperty(I,"MessageStrategy",{enumerable:!0,get:function(){return jt.MessageStrategy}});var tN=nr();I.RAL=tN.default});var m_=T(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});var f_=require("util"),Ri=Gc(),Vc=class n extends Ri.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return n.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new f_.TextDecoder(t).decode(e)}asNative(e,t){return t===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}};Vc.emptyBuffer=Buffer.allocUnsafe(0);var xf=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Ri.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Ri.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Ri.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),Ri.Disposable.create(()=>this.stream.off("data",e))}},yf=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Ri.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Ri.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Ri.Disposable.create(()=>this.stream.off("end",e))}write(e,t){return new Promise((i,r)=>{let s=o=>{o==null?i():r(o)};typeof e=="string"?this.stream.write(e,t,s):this.stream.write(e,s)})}end(){this.stream.end()}},h_=Object.freeze({messageBuffer:Object.freeze({create:n=>new Vc(n)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(n,e)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(n,void 0,0),e.charset))}catch(t){return Promise.reject(t)}}}),decoder:Object.freeze({name:"application/json",decode:(n,e)=>{try{return n instanceof Buffer?Promise.resolve(JSON.parse(n.toString(e.charset))):Promise.resolve(JSON.parse(new f_.TextDecoder(e.charset).decode(n)))}catch(t){return Promise.reject(t)}}})}),stream:Object.freeze({asReadableStream:n=>new xf(n),asWritableStream:n=>new yf(n)}),console,timer:Object.freeze({setTimeout(n,e,...t){let i=setTimeout(n,e,...t);return{dispose:()=>clearTimeout(i)}},setImmediate(n,...e){let t=setImmediate(n,...e);return{dispose:()=>clearImmediate(t)}},setInterval(n,e,...t){let i=setInterval(n,e,...t);return{dispose:()=>clearInterval(i)}}})});function bf(){return h_}(function(n){function e(){Ri.RAL.install(h_)}n.install=e})(bf||(bf={}));wf.default=bf});var Tr=T(_e=>{"use strict";var nN=_e&&_e.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),iN=_e&&_e.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&nN(e,n,t)};Object.defineProperty(_e,"__esModule",{value:!0});_e.createMessageConnection=_e.createServerSocketTransport=_e.createClientSocketTransport=_e.createServerPipeTransport=_e.createClientPipeTransport=_e.generateRandomPipeName=_e.StreamMessageWriter=_e.StreamMessageReader=_e.SocketMessageWriter=_e.SocketMessageReader=_e.PortMessageWriter=_e.PortMessageReader=_e.IPCMessageWriter=_e.IPCMessageReader=void 0;var vs=m_();vs.default.install();var g_=require("path"),rN=require("os"),sN=require("crypto"),Yc=require("net"),xn=Gc();iN(Gc(),_e);var _f=class extends xn.AbstractMessageReader{constructor(e){super(),this.process=e;let t=this.process;t.on("error",i=>this.fireError(i)),t.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),xn.Disposable.create(()=>this.process.off("message",e))}};_e.IPCMessageReader=_f;var Sf=class extends xn.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let t=this.process;t.on("error",i=>this.fireError(i)),t.on("close",()=>this.fireClose)}write(e){try{return typeof this.process.send=="function"&&this.process.send(e,void 0,void 0,t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0}),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}};_e.IPCMessageWriter=Sf;var Cf=class extends xn.AbstractMessageReader{constructor(e){super(),this.onData=new xn.Emitter,e.on("close",()=>this.fireClose),e.on("error",t=>this.fireError(t)),e.on("message",t=>{this.onData.fire(t)})}listen(e){return this.onData.event(e)}};_e.PortMessageReader=Cf;var Rf=class extends xn.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.on("close",()=>this.fireClose()),e.on("error",t=>this.fireError(t))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}};_e.PortMessageWriter=Rf;var Rr=class extends xn.ReadableStreamMessageReader{constructor(e,t="utf-8"){super((0,vs.default)().stream.asReadableStream(e),t)}};_e.SocketMessageReader=Rr;var Dr=class extends xn.WriteableStreamMessageWriter{constructor(e,t){super((0,vs.default)().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};_e.SocketMessageWriter=Dr;var Xc=class extends xn.ReadableStreamMessageReader{constructor(e,t){super((0,vs.default)().stream.asReadableStream(e),t)}};_e.StreamMessageReader=Xc;var Jc=class extends xn.WriteableStreamMessageWriter{constructor(e,t){super((0,vs.default)().stream.asWritableStream(e),t)}};_e.StreamMessageWriter=Jc;var v_=process.env.XDG_RUNTIME_DIR,oN=new Map([["linux",107],["darwin",103]]);function aN(){let n=(0,sN.randomBytes)(21).toString("hex");if(process.platform==="win32")return`\\\\.\\pipe\\vscode-jsonrpc-${n}-sock`;let e;v_?e=g_.join(v_,`vscode-ipc-${n}.sock`):e=g_.join(rN.tmpdir(),`vscode-${n}.sock`);let t=oN.get(process.platform);return t!==void 0&&e.length>t&&(0,vs.default)().console.warn(`WARNING: IPC handle "${e}" is longer than ${t} characters.`),e}_e.generateRandomPipeName=aN;function cN(n,e="utf-8"){let t,i=new Promise((r,s)=>{t=r});return new Promise((r,s)=>{let o=(0,Yc.createServer)(a=>{o.close(),t([new Rr(a,e),new Dr(a,e)])});o.on("error",s),o.listen(n,()=>{o.removeListener("error",s),r({onConnected:()=>i})})})}_e.createClientPipeTransport=cN;function uN(n,e="utf-8"){let t=(0,Yc.createConnection)(n);return[new Rr(t,e),new Dr(t,e)]}_e.createServerPipeTransport=uN;function lN(n,e="utf-8"){let t,i=new Promise((r,s)=>{t=r});return new Promise((r,s)=>{let o=(0,Yc.createServer)(a=>{o.close(),t([new Rr(a,e),new Dr(a,e)])});o.on("error",s),o.listen(n,"127.0.0.1",()=>{o.removeListener("error",s),r({onConnected:()=>i})})})}_e.createClientSocketTransport=lN;function dN(n,e="utf-8"){let t=(0,Yc.createConnection)(n,"127.0.0.1");return[new Rr(t,e),new Dr(t,e)]}_e.createServerSocketTransport=dN;function pN(n){let e=n;return e.read!==void 0&&e.addListener!==void 0}function fN(n){let e=n;return e.write!==void 0&&e.addListener!==void 0}function hN(n,e,t,i){t||(t=xn.NullLogger);let r=pN(n)?new Xc(n):n,s=fN(e)?new Jc(e):e;return xn.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,xn.createMessageConnection)(r,s,t,i)}_e.createMessageConnection=hN});var Df=T((k2,x_)=>{"use strict";x_.exports=Tr()});var Zc=T((y_,Qc)=>{(function(n){if(typeof Qc=="object"&&typeof Qc.exports=="object"){var e=n(require,y_);e!==void 0&&(Qc.exports=e)}else typeof define=="function"&&define.amd&&define(["require","exports"],n)})(function(n,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 t;(function(v){function R(D){return typeof D=="string"}v.is=R})(t||(e.DocumentUri=t={}));var i;(function(v){function R(D){return typeof D=="string"}v.is=R})(i||(e.URI=i={}));var r;(function(v){v.MIN_VALUE=-2147483648,v.MAX_VALUE=2147483647;function R(D){return typeof D=="number"&&v.MIN_VALUE<=D&&D<=v.MAX_VALUE}v.is=R})(r||(e.integer=r={}));var s;(function(v){v.MIN_VALUE=0,v.MAX_VALUE=2147483647;function R(D){return typeof D=="number"&&v.MIN_VALUE<=D&&D<=v.MAX_VALUE}v.is=R})(s||(e.uinteger=s={}));var o;(function(v){function R(b,m){return b===Number.MAX_VALUE&&(b=s.MAX_VALUE),m===Number.MAX_VALUE&&(m=s.MAX_VALUE),{line:b,character:m}}v.create=R;function D(b){var m=b;return P.objectLiteral(m)&&P.uinteger(m.line)&&P.uinteger(m.character)}v.is=D})(o||(e.Position=o={}));var a;(function(v){function R(b,m,F,M){if(P.uinteger(b)&&P.uinteger(m)&&P.uinteger(F)&&P.uinteger(M))return{start:o.create(b,m),end:o.create(F,M)};if(o.is(b)&&o.is(m))return{start:b,end:m};throw new Error("Range#create called with invalid arguments[".concat(b,", ").concat(m,", ").concat(F,", ").concat(M,"]"))}v.create=R;function D(b){var m=b;return P.objectLiteral(m)&&o.is(m.start)&&o.is(m.end)}v.is=D})(a||(e.Range=a={}));var c;(function(v){function R(b,m){return{uri:b,range:m}}v.create=R;function D(b){var m=b;return P.objectLiteral(m)&&a.is(m.range)&&(P.string(m.uri)||P.undefined(m.uri))}v.is=D})(c||(e.Location=c={}));var u;(function(v){function R(b,m,F,M){return{targetUri:b,targetRange:m,targetSelectionRange:F,originSelectionRange:M}}v.create=R;function D(b){var m=b;return P.objectLiteral(m)&&a.is(m.targetRange)&&P.string(m.targetUri)&&a.is(m.targetSelectionRange)&&(a.is(m.originSelectionRange)||P.undefined(m.originSelectionRange))}v.is=D})(u||(e.LocationLink=u={}));var l;(function(v){function R(b,m,F,M){return{red:b,green:m,blue:F,alpha:M}}v.create=R;function D(b){var m=b;return P.objectLiteral(m)&&P.numberRange(m.red,0,1)&&P.numberRange(m.green,0,1)&&P.numberRange(m.blue,0,1)&&P.numberRange(m.alpha,0,1)}v.is=D})(l||(e.Color=l={}));var p;(function(v){function R(b,m){return{range:b,color:m}}v.create=R;function D(b){var m=b;return P.objectLiteral(m)&&a.is(m.range)&&l.is(m.color)}v.is=D})(p||(e.ColorInformation=p={}));var h;(function(v){function R(b,m,F){return{label:b,textEdit:m,additionalTextEdits:F}}v.create=R;function D(b){var m=b;return P.objectLiteral(m)&&P.string(m.label)&&(P.undefined(m.textEdit)||j.is(m))&&(P.undefined(m.additionalTextEdits)||P.typedArray(m.additionalTextEdits,j.is))}v.is=D})(h||(e.ColorPresentation=h={}));var x;(function(v){v.Comment="comment",v.Imports="imports",v.Region="region"})(x||(e.FoldingRangeKind=x={}));var f;(function(v){function R(b,m,F,M,ce,Qe){var $e={startLine:b,endLine:m};return P.defined(F)&&($e.startCharacter=F),P.defined(M)&&($e.endCharacter=M),P.defined(ce)&&($e.kind=ce),P.defined(Qe)&&($e.collapsedText=Qe),$e}v.create=R;function D(b){var m=b;return P.objectLiteral(m)&&P.uinteger(m.startLine)&&P.uinteger(m.startLine)&&(P.undefined(m.startCharacter)||P.uinteger(m.startCharacter))&&(P.undefined(m.endCharacter)||P.uinteger(m.endCharacter))&&(P.undefined(m.kind)||P.string(m.kind))}v.is=D})(f||(e.FoldingRange=f={}));var y;(function(v){function R(b,m){return{location:b,message:m}}v.create=R;function D(b){var m=b;return P.defined(m)&&c.is(m.location)&&P.string(m.message)}v.is=D})(y||(e.DiagnosticRelatedInformation=y={}));var w;(function(v){v.Error=1,v.Warning=2,v.Information=3,v.Hint=4})(w||(e.DiagnosticSeverity=w={}));var S;(function(v){v.Unnecessary=1,v.Deprecated=2})(S||(e.DiagnosticTag=S={}));var O;(function(v){function R(D){var b=D;return P.objectLiteral(b)&&P.string(b.href)}v.is=R})(O||(e.CodeDescription=O={}));var k;(function(v){function R(b,m,F,M,ce,Qe){var $e={range:b,message:m};return P.defined(F)&&($e.severity=F),P.defined(M)&&($e.code=M),P.defined(ce)&&($e.source=ce),P.defined(Qe)&&($e.relatedInformation=Qe),$e}v.create=R;function D(b){var m,F=b;return P.defined(F)&&a.is(F.range)&&P.string(F.message)&&(P.number(F.severity)||P.undefined(F.severity))&&(P.integer(F.code)||P.string(F.code)||P.undefined(F.code))&&(P.undefined(F.codeDescription)||P.string((m=F.codeDescription)===null||m===void 0?void 0:m.href))&&(P.string(F.source)||P.undefined(F.source))&&(P.undefined(F.relatedInformation)||P.typedArray(F.relatedInformation,y.is))}v.is=D})(k||(e.Diagnostic=k={}));var N;(function(v){function R(b,m){for(var F=[],M=2;M<arguments.length;M++)F[M-2]=arguments[M];var ce={title:b,command:m};return P.defined(F)&&F.length>0&&(ce.arguments=F),ce}v.create=R;function D(b){var m=b;return P.defined(m)&&P.string(m.title)&&P.string(m.command)}v.is=D})(N||(e.Command=N={}));var j;(function(v){function R(F,M){return{range:F,newText:M}}v.replace=R;function D(F,M){return{range:{start:F,end:F},newText:M}}v.insert=D;function b(F){return{range:F,newText:""}}v.del=b;function m(F){var M=F;return P.objectLiteral(M)&&P.string(M.newText)&&a.is(M.range)}v.is=m})(j||(e.TextEdit=j={}));var G;(function(v){function R(b,m,F){var M={label:b};return m!==void 0&&(M.needsConfirmation=m),F!==void 0&&(M.description=F),M}v.create=R;function D(b){var m=b;return P.objectLiteral(m)&&P.string(m.label)&&(P.boolean(m.needsConfirmation)||m.needsConfirmation===void 0)&&(P.string(m.description)||m.description===void 0)}v.is=D})(G||(e.ChangeAnnotation=G={}));var $;(function(v){function R(D){var b=D;return P.string(b)}v.is=R})($||(e.ChangeAnnotationIdentifier=$={}));var Q;(function(v){function R(F,M,ce){return{range:F,newText:M,annotationId:ce}}v.replace=R;function D(F,M,ce){return{range:{start:F,end:F},newText:M,annotationId:ce}}v.insert=D;function b(F,M){return{range:F,newText:"",annotationId:M}}v.del=b;function m(F){var M=F;return j.is(M)&&(G.is(M.annotationId)||$.is(M.annotationId))}v.is=m})(Q||(e.AnnotatedTextEdit=Q={}));var te;(function(v){function R(b,m){return{textDocument:b,edits:m}}v.create=R;function D(b){var m=b;return P.defined(m)&&de.is(m.textDocument)&&Array.isArray(m.edits)}v.is=D})(te||(e.TextDocumentEdit=te={}));var Oe;(function(v){function R(b,m,F){var M={kind:"create",uri:b};return m!==void 0&&(m.overwrite!==void 0||m.ignoreIfExists!==void 0)&&(M.options=m),F!==void 0&&(M.annotationId=F),M}v.create=R;function D(b){var m=b;return m&&m.kind==="create"&&P.string(m.uri)&&(m.options===void 0||(m.options.overwrite===void 0||P.boolean(m.options.overwrite))&&(m.options.ignoreIfExists===void 0||P.boolean(m.options.ignoreIfExists)))&&(m.annotationId===void 0||$.is(m.annotationId))}v.is=D})(Oe||(e.CreateFile=Oe={}));var Ye;(function(v){function R(b,m,F,M){var ce={kind:"rename",oldUri:b,newUri:m};return F!==void 0&&(F.overwrite!==void 0||F.ignoreIfExists!==void 0)&&(ce.options=F),M!==void 0&&(ce.annotationId=M),ce}v.create=R;function D(b){var m=b;return m&&m.kind==="rename"&&P.string(m.oldUri)&&P.string(m.newUri)&&(m.options===void 0||(m.options.overwrite===void 0||P.boolean(m.options.overwrite))&&(m.options.ignoreIfExists===void 0||P.boolean(m.options.ignoreIfExists)))&&(m.annotationId===void 0||$.is(m.annotationId))}v.is=D})(Ye||(e.RenameFile=Ye={}));var We;(function(v){function R(b,m,F){var M={kind:"delete",uri:b};return m!==void 0&&(m.recursive!==void 0||m.ignoreIfNotExists!==void 0)&&(M.options=m),F!==void 0&&(M.annotationId=F),M}v.create=R;function D(b){var m=b;return m&&m.kind==="delete"&&P.string(m.uri)&&(m.options===void 0||(m.options.recursive===void 0||P.boolean(m.options.recursive))&&(m.options.ignoreIfNotExists===void 0||P.boolean(m.options.ignoreIfNotExists)))&&(m.annotationId===void 0||$.is(m.annotationId))}v.is=D})(We||(e.DeleteFile=We={}));var Kt;(function(v){function R(D){var b=D;return b&&(b.changes!==void 0||b.documentChanges!==void 0)&&(b.documentChanges===void 0||b.documentChanges.every(function(m){return P.string(m.kind)?Oe.is(m)||Ye.is(m)||We.is(m):te.is(m)}))}v.is=R})(Kt||(e.WorkspaceEdit=Kt={}));var Ne=function(){function v(R,D){this.edits=R,this.changeAnnotations=D}return v.prototype.insert=function(R,D,b){var m,F;if(b===void 0?m=j.insert(R,D):$.is(b)?(F=b,m=Q.insert(R,D,b)):(this.assertChangeAnnotations(this.changeAnnotations),F=this.changeAnnotations.manage(b),m=Q.insert(R,D,F)),this.edits.push(m),F!==void 0)return F},v.prototype.replace=function(R,D,b){var m,F;if(b===void 0?m=j.replace(R,D):$.is(b)?(F=b,m=Q.replace(R,D,b)):(this.assertChangeAnnotations(this.changeAnnotations),F=this.changeAnnotations.manage(b),m=Q.replace(R,D,F)),this.edits.push(m),F!==void 0)return F},v.prototype.delete=function(R,D){var b,m;if(D===void 0?b=j.del(R):$.is(D)?(m=D,b=Q.del(R,D)):(this.assertChangeAnnotations(this.changeAnnotations),m=this.changeAnnotations.manage(D),b=Q.del(R,m)),this.edits.push(b),m!==void 0)return m},v.prototype.add=function(R){this.edits.push(R)},v.prototype.all=function(){return this.edits},v.prototype.clear=function(){this.edits.splice(0,this.edits.length)},v.prototype.assertChangeAnnotations=function(R){if(R===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},v}(),ct=function(){function v(R){this._annotations=R===void 0?Object.create(null):R,this._counter=0,this._size=0}return v.prototype.all=function(){return this._annotations},Object.defineProperty(v.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),v.prototype.manage=function(R,D){var b;if($.is(R)?b=R:(b=this.nextId(),D=R),this._annotations[b]!==void 0)throw new Error("Id ".concat(b," is already in use."));if(D===void 0)throw new Error("No annotation provided for id ".concat(b));return this._annotations[b]=D,this._size++,b},v.prototype.nextId=function(){return this._counter++,this._counter.toString()},v}(),mt=function(){function v(R){var D=this;this._textEditChanges=Object.create(null),R!==void 0?(this._workspaceEdit=R,R.documentChanges?(this._changeAnnotations=new ct(R.changeAnnotations),R.changeAnnotations=this._changeAnnotations.all(),R.documentChanges.forEach(function(b){if(te.is(b)){var m=new Ne(b.edits,D._changeAnnotations);D._textEditChanges[b.textDocument.uri]=m}})):R.changes&&Object.keys(R.changes).forEach(function(b){var m=new Ne(R.changes[b]);D._textEditChanges[b]=m})):this._workspaceEdit={}}return Object.defineProperty(v.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}),v.prototype.getTextEditChange=function(R){if(de.is(R)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var D={uri:R.uri,version:R.version},b=this._textEditChanges[D.uri];if(!b){var m=[],F={textDocument:D,edits:m};this._workspaceEdit.documentChanges.push(F),b=new Ne(m,this._changeAnnotations),this._textEditChanges[D.uri]=b}return b}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var b=this._textEditChanges[R];if(!b){var m=[];this._workspaceEdit.changes[R]=m,b=new Ne(m),this._textEditChanges[R]=b}return b}},v.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ct,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},v.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},v.prototype.createFile=function(R,D,b){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var m;G.is(D)||$.is(D)?m=D:b=D;var F,M;if(m===void 0?F=Oe.create(R,b):(M=$.is(m)?m:this._changeAnnotations.manage(m),F=Oe.create(R,b,M)),this._workspaceEdit.documentChanges.push(F),M!==void 0)return M},v.prototype.renameFile=function(R,D,b,m){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var F;G.is(b)||$.is(b)?F=b:m=b;var M,ce;if(F===void 0?M=Ye.create(R,D,m):(ce=$.is(F)?F:this._changeAnnotations.manage(F),M=Ye.create(R,D,m,ce)),this._workspaceEdit.documentChanges.push(M),ce!==void 0)return ce},v.prototype.deleteFile=function(R,D,b){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var m;G.is(D)||$.is(D)?m=D:b=D;var F,M;if(m===void 0?F=We.create(R,b):(M=$.is(m)?m:this._changeAnnotations.manage(m),F=We.create(R,b,M)),this._workspaceEdit.documentChanges.push(F),M!==void 0)return M},v}();e.WorkspaceChange=mt;var se;(function(v){function R(b){return{uri:b}}v.create=R;function D(b){var m=b;return P.defined(m)&&P.string(m.uri)}v.is=D})(se||(e.TextDocumentIdentifier=se={}));var ie;(function(v){function R(b,m){return{uri:b,version:m}}v.create=R;function D(b){var m=b;return P.defined(m)&&P.string(m.uri)&&P.integer(m.version)}v.is=D})(ie||(e.VersionedTextDocumentIdentifier=ie={}));var de;(function(v){function R(b,m){return{uri:b,version:m}}v.create=R;function D(b){var m=b;return P.defined(m)&&P.string(m.uri)&&(m.version===null||P.integer(m.version))}v.is=D})(de||(e.OptionalVersionedTextDocumentIdentifier=de={}));var ut;(function(v){function R(b,m,F,M){return{uri:b,languageId:m,version:F,text:M}}v.create=R;function D(b){var m=b;return P.defined(m)&&P.string(m.uri)&&P.string(m.languageId)&&P.integer(m.version)&&P.string(m.text)}v.is=D})(ut||(e.TextDocumentItem=ut={}));var Re;(function(v){v.PlainText="plaintext",v.Markdown="markdown";function R(D){var b=D;return b===v.PlainText||b===v.Markdown}v.is=R})(Re||(e.MarkupKind=Re={}));var Ke;(function(v){function R(D){var b=D;return P.objectLiteral(D)&&Re.is(b.kind)&&P.string(b.value)}v.is=R})(Ke||(e.MarkupContent=Ke={}));var Sn;(function(v){v.Text=1,v.Method=2,v.Function=3,v.Constructor=4,v.Field=5,v.Variable=6,v.Class=7,v.Interface=8,v.Module=9,v.Property=10,v.Unit=11,v.Value=12,v.Enum=13,v.Keyword=14,v.Snippet=15,v.Color=16,v.File=17,v.Reference=18,v.Folder=19,v.EnumMember=20,v.Constant=21,v.Struct=22,v.Event=23,v.Operator=24,v.TypeParameter=25})(Sn||(e.CompletionItemKind=Sn={}));var gt;(function(v){v.PlainText=1,v.Snippet=2})(gt||(e.InsertTextFormat=gt={}));var it;(function(v){v.Deprecated=1})(it||(e.CompletionItemTag=it={}));var Cn;(function(v){function R(b,m,F){return{newText:b,insert:m,replace:F}}v.create=R;function D(b){var m=b;return m&&P.string(m.newText)&&a.is(m.insert)&&a.is(m.replace)}v.is=D})(Cn||(e.InsertReplaceEdit=Cn={}));var Rn;(function(v){v.asIs=1,v.adjustIndentation=2})(Rn||(e.InsertTextMode=Rn={}));var Ge;(function(v){function R(D){var b=D;return b&&(P.string(b.detail)||b.detail===void 0)&&(P.string(b.description)||b.description===void 0)}v.is=R})(Ge||(e.CompletionItemLabelDetails=Ge={}));var Mn;(function(v){function R(D){return{label:D}}v.create=R})(Mn||(e.CompletionItem=Mn={}));var Un;(function(v){function R(D,b){return{items:D||[],isIncomplete:!!b}}v.create=R})(Un||(e.CompletionList=Un={}));var ei;(function(v){function R(b){return b.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}v.fromPlainText=R;function D(b){var m=b;return P.string(m)||P.objectLiteral(m)&&P.string(m.language)&&P.string(m.value)}v.is=D})(ei||(e.MarkedString=ei={}));var yt;(function(v){function R(D){var b=D;return!!b&&P.objectLiteral(b)&&(Ke.is(b.contents)||ei.is(b.contents)||P.typedArray(b.contents,ei.is))&&(D.range===void 0||a.is(D.range))}v.is=R})(yt||(e.Hover=yt={}));var mi;(function(v){function R(D,b){return b?{label:D,documentation:b}:{label:D}}v.create=R})(mi||(e.ParameterInformation=mi={}));var zn;(function(v){function R(D,b){for(var m=[],F=2;F<arguments.length;F++)m[F-2]=arguments[F];var M={label:D};return P.defined(b)&&(M.documentation=b),P.defined(m)?M.parameters=m:M.parameters=[],M}v.create=R})(zn||(e.SignatureInformation=zn={}));var Dn;(function(v){v.Text=1,v.Read=2,v.Write=3})(Dn||(e.DocumentHighlightKind=Dn={}));var Fi;(function(v){function R(D,b){var m={range:D};return P.number(b)&&(m.kind=b),m}v.create=R})(Fi||(e.DocumentHighlight=Fi={}));var Tn;(function(v){v.File=1,v.Module=2,v.Namespace=3,v.Package=4,v.Class=5,v.Method=6,v.Property=7,v.Field=8,v.Constructor=9,v.Enum=10,v.Interface=11,v.Function=12,v.Variable=13,v.Constant=14,v.String=15,v.Number=16,v.Boolean=17,v.Array=18,v.Object=19,v.Key=20,v.Null=21,v.EnumMember=22,v.Struct=23,v.Event=24,v.Operator=25,v.TypeParameter=26})(Tn||(e.SymbolKind=Tn={}));var ti;(function(v){v.Deprecated=1})(ti||(e.SymbolTag=ti={}));var vt;(function(v){function R(D,b,m,F,M){var ce={name:D,kind:b,location:{uri:F,range:m}};return M&&(ce.containerName=M),ce}v.create=R})(vt||(e.SymbolInformation=vt={}));var Lt;(function(v){function R(D,b,m,F){return F!==void 0?{name:D,kind:b,location:{uri:m,range:F}}:{name:D,kind:b,location:{uri:m}}}v.create=R})(Lt||(e.WorkspaceSymbol=Lt={}));var Nt;(function(v){function R(b,m,F,M,ce,Qe){var $e={name:b,detail:m,kind:F,range:M,selectionRange:ce};return Qe!==void 0&&($e.children=Qe),$e}v.create=R;function D(b){var m=b;return m&&P.string(m.name)&&P.number(m.kind)&&a.is(m.range)&&a.is(m.selectionRange)&&(m.detail===void 0||P.string(m.detail))&&(m.deprecated===void 0||P.boolean(m.deprecated))&&(m.children===void 0||Array.isArray(m.children))&&(m.tags===void 0||Array.isArray(m.tags))}v.is=D})(Nt||(e.DocumentSymbol=Nt={}));var fn;(function(v){v.Empty="",v.QuickFix="quickfix",v.Refactor="refactor",v.RefactorExtract="refactor.extract",v.RefactorInline="refactor.inline",v.RefactorRewrite="refactor.rewrite",v.Source="source",v.SourceOrganizeImports="source.organizeImports",v.SourceFixAll="source.fixAll"})(fn||(e.CodeActionKind=fn={}));var Zt;(function(v){v.Invoked=1,v.Automatic=2})(Zt||(e.CodeActionTriggerKind=Zt={}));var ni;(function(v){function R(b,m,F){var M={diagnostics:b};return m!=null&&(M.only=m),F!=null&&(M.triggerKind=F),M}v.create=R;function D(b){var m=b;return P.defined(m)&&P.typedArray(m.diagnostics,k.is)&&(m.only===void 0||P.typedArray(m.only,P.string))&&(m.triggerKind===void 0||m.triggerKind===Zt.Invoked||m.triggerKind===Zt.Automatic)}v.is=D})(ni||(e.CodeActionContext=ni={}));var gi;(function(v){function R(b,m,F){var M={title:b},ce=!0;return typeof m=="string"?(ce=!1,M.kind=m):N.is(m)?M.command=m:M.edit=m,ce&&F!==void 0&&(M.kind=F),M}v.create=R;function D(b){var m=b;return m&&P.string(m.title)&&(m.diagnostics===void 0||P.typedArray(m.diagnostics,k.is))&&(m.kind===void 0||P.string(m.kind))&&(m.edit!==void 0||m.command!==void 0)&&(m.command===void 0||N.is(m.command))&&(m.isPreferred===void 0||P.boolean(m.isPreferred))&&(m.edit===void 0||Kt.is(m.edit))}v.is=D})(gi||(e.CodeAction=gi={}));var $n;(function(v){function R(b,m){var F={range:b};return P.defined(m)&&(F.data=m),F}v.create=R;function D(b){var m=b;return P.defined(m)&&a.is(m.range)&&(P.undefined(m.command)||N.is(m.command))}v.is=D})($n||(e.CodeLens=$n={}));var vi;(function(v){function R(b,m){return{tabSize:b,insertSpaces:m}}v.create=R;function D(b){var m=b;return P.defined(m)&&P.uinteger(m.tabSize)&&P.boolean(m.insertSpaces)}v.is=D})(vi||(e.FormattingOptions=vi={}));var Gt;(function(v){function R(b,m,F){return{range:b,target:m,data:F}}v.create=R;function D(b){var m=b;return P.defined(m)&&a.is(m.range)&&(P.undefined(m.target)||P.string(m.target))}v.is=D})(Gt||(e.DocumentLink=Gt={}));var C;(function(v){function R(b,m){return{range:b,parent:m}}v.create=R;function D(b){var m=b;return P.objectLiteral(m)&&a.is(m.range)&&(m.parent===void 0||v.is(m.parent))}v.is=D})(C||(e.SelectionRange=C={}));var L;(function(v){v.namespace="namespace",v.type="type",v.class="class",v.enum="enum",v.interface="interface",v.struct="struct",v.typeParameter="typeParameter",v.parameter="parameter",v.variable="variable",v.property="property",v.enumMember="enumMember",v.event="event",v.function="function",v.method="method",v.macro="macro",v.keyword="keyword",v.modifier="modifier",v.comment="comment",v.string="string",v.number="number",v.regexp="regexp",v.operator="operator",v.decorator="decorator"})(L||(e.SemanticTokenTypes=L={}));var B;(function(v){v.declaration="declaration",v.definition="definition",v.readonly="readonly",v.static="static",v.deprecated="deprecated",v.abstract="abstract",v.async="async",v.modification="modification",v.documentation="documentation",v.defaultLibrary="defaultLibrary"})(B||(e.SemanticTokenModifiers=B={}));var K;(function(v){function R(D){var b=D;return P.objectLiteral(b)&&(b.resultId===void 0||typeof b.resultId=="string")&&Array.isArray(b.data)&&(b.data.length===0||typeof b.data[0]=="number")}v.is=R})(K||(e.SemanticTokens=K={}));var De;(function(v){function R(b,m){return{range:b,text:m}}v.create=R;function D(b){var m=b;return m!=null&&a.is(m.range)&&P.string(m.text)}v.is=D})(De||(e.InlineValueText=De={}));var Se;(function(v){function R(b,m,F){return{range:b,variableName:m,caseSensitiveLookup:F}}v.create=R;function D(b){var m=b;return m!=null&&a.is(m.range)&&P.boolean(m.caseSensitiveLookup)&&(P.string(m.variableName)||m.variableName===void 0)}v.is=D})(Se||(e.InlineValueVariableLookup=Se={}));var Ae;(function(v){function R(b,m){return{range:b,expression:m}}v.create=R;function D(b){var m=b;return m!=null&&a.is(m.range)&&(P.string(m.expression)||m.expression===void 0)}v.is=D})(Ae||(e.InlineValueEvaluatableExpression=Ae={}));var Ue;(function(v){function R(b,m){return{frameId:b,stoppedLocation:m}}v.create=R;function D(b){var m=b;return P.defined(m)&&a.is(b.stoppedLocation)}v.is=D})(Ue||(e.InlineValueContext=Ue={}));var me;(function(v){v.Type=1,v.Parameter=2;function R(D){return D===1||D===2}v.is=R})(me||(e.InlayHintKind=me={}));var Pe;(function(v){function R(b){return{value:b}}v.create=R;function D(b){var m=b;return P.objectLiteral(m)&&(m.tooltip===void 0||P.string(m.tooltip)||Ke.is(m.tooltip))&&(m.location===void 0||c.is(m.location))&&(m.command===void 0||N.is(m.command))}v.is=D})(Pe||(e.InlayHintLabelPart=Pe={}));var ye;(function(v){function R(b,m,F){var M={position:b,label:m};return F!==void 0&&(M.kind=F),M}v.create=R;function D(b){var m=b;return P.objectLiteral(m)&&o.is(m.position)&&(P.string(m.label)||P.typedArray(m.label,Pe.is))&&(m.kind===void 0||me.is(m.kind))&&m.textEdits===void 0||P.typedArray(m.textEdits,j.is)&&(m.tooltip===void 0||P.string(m.tooltip)||Ke.is(m.tooltip))&&(m.paddingLeft===void 0||P.boolean(m.paddingLeft))&&(m.paddingRight===void 0||P.boolean(m.paddingRight))}v.is=D})(ye||(e.InlayHint=ye={}));var ze;(function(v){function R(D){return{kind:"snippet",value:D}}v.createSnippet=R})(ze||(e.StringValue=ze={}));var lt;(function(v){function R(D,b,m,F){return{insertText:D,filterText:b,range:m,command:F}}v.create=R})(lt||(e.InlineCompletionItem=lt={}));var Dt;(function(v){function R(D){return{items:D}}v.create=R})(Dt||(e.InlineCompletionList=Dt={}));var Ni;(function(v){v.Invoked=0,v.Automatic=1})(Ni||(e.InlineCompletionTriggerKind=Ni={}));var Ai;(function(v){function R(D,b){return{range:D,text:b}}v.create=R})(Ai||(e.SelectedCompletionInfo=Ai={}));var g;(function(v){function R(D,b){return{triggerKind:D,selectedCompletionInfo:b}}v.create=R})(g||(e.InlineCompletionContext=g={}));var A;(function(v){function R(D){var b=D;return P.objectLiteral(b)&&i.is(b.uri)&&P.string(b.name)}v.is=R})(A||(e.WorkspaceFolder=A={})),e.EOL=[`
|
|
`,`\r
|
|
`,"\r"];var Y;(function(v){function R(F,M,ce,Qe){return new ke(F,M,ce,Qe)}v.create=R;function D(F){var M=F;return!!(P.defined(M)&&P.string(M.uri)&&(P.undefined(M.languageId)||P.string(M.languageId))&&P.uinteger(M.lineCount)&&P.func(M.getText)&&P.func(M.positionAt)&&P.func(M.offsetAt))}v.is=D;function b(F,M){for(var ce=F.getText(),Qe=m(M,function(ii,d){var E=ii.range.start.line-d.range.start.line;return E===0?ii.range.start.character-d.range.start.character:E}),$e=ce.length,en=Qe.length-1;en>=0;en--){var hn=Qe[en],Hn=F.offsetAt(hn.range.start),xe=F.offsetAt(hn.range.end);if(xe<=$e)ce=ce.substring(0,Hn)+hn.newText+ce.substring(xe,ce.length);else throw new Error("Overlapping edit");$e=Hn}return ce}v.applyEdits=b;function m(F,M){if(F.length<=1)return F;var ce=F.length/2|0,Qe=F.slice(0,ce),$e=F.slice(ce);m(Qe,M),m($e,M);for(var en=0,hn=0,Hn=0;en<Qe.length&&hn<$e.length;){var xe=M(Qe[en],$e[hn]);xe<=0?F[Hn++]=Qe[en++]:F[Hn++]=$e[hn++]}for(;en<Qe.length;)F[Hn++]=Qe[en++];for(;hn<$e.length;)F[Hn++]=$e[hn++];return F}})(Y||(e.TextDocument=Y={}));var ke=function(){function v(R,D,b,m){this._uri=R,this._languageId=D,this._version=b,this._content=m,this._lineOffsets=void 0}return Object.defineProperty(v.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),v.prototype.getText=function(R){if(R){var D=this.offsetAt(R.start),b=this.offsetAt(R.end);return this._content.substring(D,b)}return this._content},v.prototype.update=function(R,D){this._content=R.text,this._version=D,this._lineOffsets=void 0},v.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var R=[],D=this._content,b=!0,m=0;m<D.length;m++){b&&(R.push(m),b=!1);var F=D.charAt(m);b=F==="\r"||F===`
|
|
`,F==="\r"&&m+1<D.length&&D.charAt(m+1)===`
|
|
`&&m++}b&&D.length>0&&R.push(D.length),this._lineOffsets=R}return this._lineOffsets},v.prototype.positionAt=function(R){R=Math.max(Math.min(R,this._content.length),0);var D=this.getLineOffsets(),b=0,m=D.length;if(m===0)return o.create(0,R);for(;b<m;){var F=Math.floor((b+m)/2);D[F]>R?m=F:b=F+1}var M=b-1;return o.create(M,R-D[M])},v.prototype.offsetAt=function(R){var D=this.getLineOffsets();if(R.line>=D.length)return this._content.length;if(R.line<0)return 0;var b=D[R.line],m=R.line+1<D.length?D[R.line+1]:this._content.length;return Math.max(Math.min(b+R.character,m),b)},Object.defineProperty(v.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),v}(),P;(function(v){var R=Object.prototype.toString;function D(xe){return typeof xe<"u"}v.defined=D;function b(xe){return typeof xe>"u"}v.undefined=b;function m(xe){return xe===!0||xe===!1}v.boolean=m;function F(xe){return R.call(xe)==="[object String]"}v.string=F;function M(xe){return R.call(xe)==="[object Number]"}v.number=M;function ce(xe,ii,d){return R.call(xe)==="[object Number]"&&ii<=xe&&xe<=d}v.numberRange=ce;function Qe(xe){return R.call(xe)==="[object Number]"&&-2147483648<=xe&&xe<=2147483647}v.integer=Qe;function $e(xe){return R.call(xe)==="[object Number]"&&0<=xe&&xe<=2147483647}v.uinteger=$e;function en(xe){return R.call(xe)==="[object Function]"}v.func=en;function hn(xe){return xe!==null&&typeof xe=="object"}v.objectLiteral=hn;function Hn(xe,ii){return Array.isArray(xe)&&xe.every(ii)}v.typedArray=Hn})(P||(P={}))})});var et=T(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.ProtocolNotificationType=on.ProtocolNotificationType0=on.ProtocolRequestType=on.ProtocolRequestType0=on.RegistrationType=on.MessageDirection=void 0;var xs=Tr(),b_;(function(n){n.clientToServer="clientToServer",n.serverToClient="serverToClient",n.both="both"})(b_||(on.MessageDirection=b_={}));var Tf=class{constructor(e){this.method=e}};on.RegistrationType=Tf;var Ef=class extends xs.RequestType0{constructor(e){super(e)}};on.ProtocolRequestType0=Ef;var Pf=class extends xs.RequestType{constructor(e){super(e,xs.ParameterStructures.byName)}};on.ProtocolRequestType=Pf;var kf=class extends xs.NotificationType0{constructor(e){super(e)}};on.ProtocolNotificationType0=kf;var Of=class extends xs.NotificationType{constructor(e){super(e,xs.ParameterStructures.byName)}};on.ProtocolNotificationType=Of});var eu=T(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.objectLiteral=St.typedArray=St.stringArray=St.array=St.func=St.error=St.number=St.string=St.boolean=void 0;function mN(n){return n===!0||n===!1}St.boolean=mN;function w_(n){return typeof n=="string"||n instanceof String}St.string=w_;function gN(n){return typeof n=="number"||n instanceof Number}St.number=gN;function vN(n){return n instanceof Error}St.error=vN;function xN(n){return typeof n=="function"}St.func=xN;function __(n){return Array.isArray(n)}St.array=__;function yN(n){return __(n)&&n.every(e=>w_(e))}St.stringArray=yN;function bN(n,e){return Array.isArray(n)&&n.every(e)}St.typedArray=bN;function wN(n){return n!==null&&typeof n=="object"}St.objectLiteral=wN});var R_=T(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.ImplementationRequest=void 0;var S_=et(),C_;(function(n){n.method="textDocument/implementation",n.messageDirection=S_.MessageDirection.clientToServer,n.type=new S_.ProtocolRequestType(n.method)})(C_||(tu.ImplementationRequest=C_={}))});var E_=T(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.TypeDefinitionRequest=void 0;var D_=et(),T_;(function(n){n.method="textDocument/typeDefinition",n.messageDirection=D_.MessageDirection.clientToServer,n.type=new D_.ProtocolRequestType(n.method)})(T_||(nu.TypeDefinitionRequest=T_={}))});var O_=T(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.DidChangeWorkspaceFoldersNotification=ys.WorkspaceFoldersRequest=void 0;var iu=et(),P_;(function(n){n.method="workspace/workspaceFolders",n.messageDirection=iu.MessageDirection.serverToClient,n.type=new iu.ProtocolRequestType0(n.method)})(P_||(ys.WorkspaceFoldersRequest=P_={}));var k_;(function(n){n.method="workspace/didChangeWorkspaceFolders",n.messageDirection=iu.MessageDirection.clientToServer,n.type=new iu.ProtocolNotificationType(n.method)})(k_||(ys.DidChangeWorkspaceFoldersNotification=k_={}))});var N_=T(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.ConfigurationRequest=void 0;var q_=et(),F_;(function(n){n.method="workspace/configuration",n.messageDirection=q_.MessageDirection.serverToClient,n.type=new q_.ProtocolRequestType(n.method)})(F_||(ru.ConfigurationRequest=F_={}))});var j_=T(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.ColorPresentationRequest=bs.DocumentColorRequest=void 0;var su=et(),A_;(function(n){n.method="textDocument/documentColor",n.messageDirection=su.MessageDirection.clientToServer,n.type=new su.ProtocolRequestType(n.method)})(A_||(bs.DocumentColorRequest=A_={}));var I_;(function(n){n.method="textDocument/colorPresentation",n.messageDirection=su.MessageDirection.clientToServer,n.type=new su.ProtocolRequestType(n.method)})(I_||(bs.ColorPresentationRequest=I_={}))});var U_=T(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.FoldingRangeRefreshRequest=ws.FoldingRangeRequest=void 0;var ou=et(),L_;(function(n){n.method="textDocument/foldingRange",n.messageDirection=ou.MessageDirection.clientToServer,n.type=new ou.ProtocolRequestType(n.method)})(L_||(ws.FoldingRangeRequest=L_={}));var M_;(function(n){n.method="workspace/foldingRange/refresh",n.messageDirection=ou.MessageDirection.serverToClient,n.type=new ou.ProtocolRequestType0(n.method)})(M_||(ws.FoldingRangeRefreshRequest=M_={}))});var H_=T(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.DeclarationRequest=void 0;var z_=et(),$_;(function(n){n.method="textDocument/declaration",n.messageDirection=z_.MessageDirection.clientToServer,n.type=new z_.ProtocolRequestType(n.method)})($_||(au.DeclarationRequest=$_={}))});var K_=T(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.SelectionRangeRequest=void 0;var B_=et(),W_;(function(n){n.method="textDocument/selectionRange",n.messageDirection=B_.MessageDirection.clientToServer,n.type=new B_.ProtocolRequestType(n.method)})(W_||(cu.SelectionRangeRequest=W_={}))});var J_=T(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.WorkDoneProgressCancelNotification=sr.WorkDoneProgressCreateRequest=sr.WorkDoneProgress=void 0;var _N=Tr(),uu=et(),G_;(function(n){n.type=new _N.ProgressType;function e(t){return t===n.type}n.is=e})(G_||(sr.WorkDoneProgress=G_={}));var V_;(function(n){n.method="window/workDoneProgress/create",n.messageDirection=uu.MessageDirection.serverToClient,n.type=new uu.ProtocolRequestType(n.method)})(V_||(sr.WorkDoneProgressCreateRequest=V_={}));var X_;(function(n){n.method="window/workDoneProgress/cancel",n.messageDirection=uu.MessageDirection.clientToServer,n.type=new uu.ProtocolNotificationType(n.method)})(X_||(sr.WorkDoneProgressCancelNotification=X_={}))});var eS=T(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.CallHierarchyOutgoingCallsRequest=or.CallHierarchyIncomingCallsRequest=or.CallHierarchyPrepareRequest=void 0;var _s=et(),Y_;(function(n){n.method="textDocument/prepareCallHierarchy",n.messageDirection=_s.MessageDirection.clientToServer,n.type=new _s.ProtocolRequestType(n.method)})(Y_||(or.CallHierarchyPrepareRequest=Y_={}));var Q_;(function(n){n.method="callHierarchy/incomingCalls",n.messageDirection=_s.MessageDirection.clientToServer,n.type=new _s.ProtocolRequestType(n.method)})(Q_||(or.CallHierarchyIncomingCallsRequest=Q_={}));var Z_;(function(n){n.method="callHierarchy/outgoingCalls",n.messageDirection=_s.MessageDirection.clientToServer,n.type=new _s.ProtocolRequestType(n.method)})(Z_||(or.CallHierarchyOutgoingCallsRequest=Z_={}))});var oS=T(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.SemanticTokensRefreshRequest=an.SemanticTokensRangeRequest=an.SemanticTokensDeltaRequest=an.SemanticTokensRequest=an.SemanticTokensRegistrationType=an.TokenFormat=void 0;var Di=et(),tS;(function(n){n.Relative="relative"})(tS||(an.TokenFormat=tS={}));var ko;(function(n){n.method="textDocument/semanticTokens",n.type=new Di.RegistrationType(n.method)})(ko||(an.SemanticTokensRegistrationType=ko={}));var nS;(function(n){n.method="textDocument/semanticTokens/full",n.messageDirection=Di.MessageDirection.clientToServer,n.type=new Di.ProtocolRequestType(n.method),n.registrationMethod=ko.method})(nS||(an.SemanticTokensRequest=nS={}));var iS;(function(n){n.method="textDocument/semanticTokens/full/delta",n.messageDirection=Di.MessageDirection.clientToServer,n.type=new Di.ProtocolRequestType(n.method),n.registrationMethod=ko.method})(iS||(an.SemanticTokensDeltaRequest=iS={}));var rS;(function(n){n.method="textDocument/semanticTokens/range",n.messageDirection=Di.MessageDirection.clientToServer,n.type=new Di.ProtocolRequestType(n.method),n.registrationMethod=ko.method})(rS||(an.SemanticTokensRangeRequest=rS={}));var sS;(function(n){n.method="workspace/semanticTokens/refresh",n.messageDirection=Di.MessageDirection.serverToClient,n.type=new Di.ProtocolRequestType0(n.method)})(sS||(an.SemanticTokensRefreshRequest=sS={}))});var uS=T(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.ShowDocumentRequest=void 0;var aS=et(),cS;(function(n){n.method="window/showDocument",n.messageDirection=aS.MessageDirection.serverToClient,n.type=new aS.ProtocolRequestType(n.method)})(cS||(lu.ShowDocumentRequest=cS={}))});var pS=T(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.LinkedEditingRangeRequest=void 0;var lS=et(),dS;(function(n){n.method="textDocument/linkedEditingRange",n.messageDirection=lS.MessageDirection.clientToServer,n.type=new lS.ProtocolRequestType(n.method)})(dS||(du.LinkedEditingRangeRequest=dS={}))});var bS=T($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.WillDeleteFilesRequest=$t.DidDeleteFilesNotification=$t.DidRenameFilesNotification=$t.WillRenameFilesRequest=$t.DidCreateFilesNotification=$t.WillCreateFilesRequest=$t.FileOperationPatternKind=void 0;var Fn=et(),fS;(function(n){n.file="file",n.folder="folder"})(fS||($t.FileOperationPatternKind=fS={}));var hS;(function(n){n.method="workspace/willCreateFiles",n.messageDirection=Fn.MessageDirection.clientToServer,n.type=new Fn.ProtocolRequestType(n.method)})(hS||($t.WillCreateFilesRequest=hS={}));var mS;(function(n){n.method="workspace/didCreateFiles",n.messageDirection=Fn.MessageDirection.clientToServer,n.type=new Fn.ProtocolNotificationType(n.method)})(mS||($t.DidCreateFilesNotification=mS={}));var gS;(function(n){n.method="workspace/willRenameFiles",n.messageDirection=Fn.MessageDirection.clientToServer,n.type=new Fn.ProtocolRequestType(n.method)})(gS||($t.WillRenameFilesRequest=gS={}));var vS;(function(n){n.method="workspace/didRenameFiles",n.messageDirection=Fn.MessageDirection.clientToServer,n.type=new Fn.ProtocolNotificationType(n.method)})(vS||($t.DidRenameFilesNotification=vS={}));var xS;(function(n){n.method="workspace/didDeleteFiles",n.messageDirection=Fn.MessageDirection.clientToServer,n.type=new Fn.ProtocolNotificationType(n.method)})(xS||($t.DidDeleteFilesNotification=xS={}));var yS;(function(n){n.method="workspace/willDeleteFiles",n.messageDirection=Fn.MessageDirection.clientToServer,n.type=new Fn.ProtocolRequestType(n.method)})(yS||($t.WillDeleteFilesRequest=yS={}))});var RS=T(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.MonikerRequest=ar.MonikerKind=ar.UniquenessLevel=void 0;var wS=et(),_S;(function(n){n.document="document",n.project="project",n.group="group",n.scheme="scheme",n.global="global"})(_S||(ar.UniquenessLevel=_S={}));var SS;(function(n){n.$import="import",n.$export="export",n.local="local"})(SS||(ar.MonikerKind=SS={}));var CS;(function(n){n.method="textDocument/moniker",n.messageDirection=wS.MessageDirection.clientToServer,n.type=new wS.ProtocolRequestType(n.method)})(CS||(ar.MonikerRequest=CS={}))});var PS=T(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.TypeHierarchySubtypesRequest=cr.TypeHierarchySupertypesRequest=cr.TypeHierarchyPrepareRequest=void 0;var Ss=et(),DS;(function(n){n.method="textDocument/prepareTypeHierarchy",n.messageDirection=Ss.MessageDirection.clientToServer,n.type=new Ss.ProtocolRequestType(n.method)})(DS||(cr.TypeHierarchyPrepareRequest=DS={}));var TS;(function(n){n.method="typeHierarchy/supertypes",n.messageDirection=Ss.MessageDirection.clientToServer,n.type=new Ss.ProtocolRequestType(n.method)})(TS||(cr.TypeHierarchySupertypesRequest=TS={}));var ES;(function(n){n.method="typeHierarchy/subtypes",n.messageDirection=Ss.MessageDirection.clientToServer,n.type=new Ss.ProtocolRequestType(n.method)})(ES||(cr.TypeHierarchySubtypesRequest=ES={}))});var qS=T(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.InlineValueRefreshRequest=Cs.InlineValueRequest=void 0;var pu=et(),kS;(function(n){n.method="textDocument/inlineValue",n.messageDirection=pu.MessageDirection.clientToServer,n.type=new pu.ProtocolRequestType(n.method)})(kS||(Cs.InlineValueRequest=kS={}));var OS;(function(n){n.method="workspace/inlineValue/refresh",n.messageDirection=pu.MessageDirection.serverToClient,n.type=new pu.ProtocolRequestType0(n.method)})(OS||(Cs.InlineValueRefreshRequest=OS={}))});var IS=T(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.InlayHintRefreshRequest=ur.InlayHintResolveRequest=ur.InlayHintRequest=void 0;var Rs=et(),FS;(function(n){n.method="textDocument/inlayHint",n.messageDirection=Rs.MessageDirection.clientToServer,n.type=new Rs.ProtocolRequestType(n.method)})(FS||(ur.InlayHintRequest=FS={}));var NS;(function(n){n.method="inlayHint/resolve",n.messageDirection=Rs.MessageDirection.clientToServer,n.type=new Rs.ProtocolRequestType(n.method)})(NS||(ur.InlayHintResolveRequest=NS={}));var AS;(function(n){n.method="workspace/inlayHint/refresh",n.messageDirection=Rs.MessageDirection.serverToClient,n.type=new Rs.ProtocolRequestType0(n.method)})(AS||(ur.InlayHintRefreshRequest=AS={}))});var HS=T(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.DiagnosticRefreshRequest=Nn.WorkspaceDiagnosticRequest=Nn.DocumentDiagnosticRequest=Nn.DocumentDiagnosticReportKind=Nn.DiagnosticServerCancellationData=void 0;var $S=Tr(),SN=eu(),Ds=et(),jS;(function(n){function e(t){let i=t;return i&&SN.boolean(i.retriggerRequest)}n.is=e})(jS||(Nn.DiagnosticServerCancellationData=jS={}));var LS;(function(n){n.Full="full",n.Unchanged="unchanged"})(LS||(Nn.DocumentDiagnosticReportKind=LS={}));var MS;(function(n){n.method="textDocument/diagnostic",n.messageDirection=Ds.MessageDirection.clientToServer,n.type=new Ds.ProtocolRequestType(n.method),n.partialResult=new $S.ProgressType})(MS||(Nn.DocumentDiagnosticRequest=MS={}));var US;(function(n){n.method="workspace/diagnostic",n.messageDirection=Ds.MessageDirection.clientToServer,n.type=new Ds.ProtocolRequestType(n.method),n.partialResult=new $S.ProgressType})(US||(Nn.WorkspaceDiagnosticRequest=US={}));var zS;(function(n){n.method="workspace/diagnostic/refresh",n.messageDirection=Ds.MessageDirection.serverToClient,n.type=new Ds.ProtocolRequestType0(n.method)})(zS||(Nn.DiagnosticRefreshRequest=zS={}))});var JS=T(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.DidCloseNotebookDocumentNotification=ft.DidSaveNotebookDocumentNotification=ft.DidChangeNotebookDocumentNotification=ft.NotebookCellArrayChange=ft.DidOpenNotebookDocumentNotification=ft.NotebookDocumentSyncRegistrationType=ft.NotebookDocument=ft.NotebookCell=ft.ExecutionSummary=ft.NotebookCellKind=void 0;var Oo=Zc(),Xn=eu(),di=et(),qf;(function(n){n.Markup=1,n.Code=2;function e(t){return t===1||t===2}n.is=e})(qf||(ft.NotebookCellKind=qf={}));var Ff;(function(n){function e(r,s){let o={executionOrder:r};return(s===!0||s===!1)&&(o.success=s),o}n.create=e;function t(r){let s=r;return Xn.objectLiteral(s)&&Oo.uinteger.is(s.executionOrder)&&(s.success===void 0||Xn.boolean(s.success))}n.is=t;function i(r,s){return r===s?!0:r==null||s===null||s===void 0?!1:r.executionOrder===s.executionOrder&&r.success===s.success}n.equals=i})(Ff||(ft.ExecutionSummary=Ff={}));var fu;(function(n){function e(s,o){return{kind:s,document:o}}n.create=e;function t(s){let o=s;return Xn.objectLiteral(o)&&qf.is(o.kind)&&Oo.DocumentUri.is(o.document)&&(o.metadata===void 0||Xn.objectLiteral(o.metadata))}n.is=t;function i(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)&&!r(s.metadata,o.metadata)&&a.add("metadata"),(s.executionSummary!==void 0||o.executionSummary!==void 0)&&!Ff.equals(s.executionSummary,o.executionSummary)&&a.add("executionSummary"),a}n.diff=i;function r(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),c=Array.isArray(o);if(a!==c)return!1;if(a&&c){if(s.length!==o.length)return!1;for(let u=0;u<s.length;u++)if(!r(s[u],o[u]))return!1}if(Xn.objectLiteral(s)&&Xn.objectLiteral(o)){let u=Object.keys(s),l=Object.keys(o);if(u.length!==l.length||(u.sort(),l.sort(),!r(u,l)))return!1;for(let p=0;p<u.length;p++){let h=u[p];if(!r(s[h],o[h]))return!1}}return!0}})(fu||(ft.NotebookCell=fu={}));var BS;(function(n){function e(i,r,s,o){return{uri:i,notebookType:r,version:s,cells:o}}n.create=e;function t(i){let r=i;return Xn.objectLiteral(r)&&Xn.string(r.uri)&&Oo.integer.is(r.version)&&Xn.typedArray(r.cells,fu.is)}n.is=t})(BS||(ft.NotebookDocument=BS={}));var Ts;(function(n){n.method="notebookDocument/sync",n.messageDirection=di.MessageDirection.clientToServer,n.type=new di.RegistrationType(n.method)})(Ts||(ft.NotebookDocumentSyncRegistrationType=Ts={}));var WS;(function(n){n.method="notebookDocument/didOpen",n.messageDirection=di.MessageDirection.clientToServer,n.type=new di.ProtocolNotificationType(n.method),n.registrationMethod=Ts.method})(WS||(ft.DidOpenNotebookDocumentNotification=WS={}));var KS;(function(n){function e(i){let r=i;return Xn.objectLiteral(r)&&Oo.uinteger.is(r.start)&&Oo.uinteger.is(r.deleteCount)&&(r.cells===void 0||Xn.typedArray(r.cells,fu.is))}n.is=e;function t(i,r,s){let o={start:i,deleteCount:r};return s!==void 0&&(o.cells=s),o}n.create=t})(KS||(ft.NotebookCellArrayChange=KS={}));var GS;(function(n){n.method="notebookDocument/didChange",n.messageDirection=di.MessageDirection.clientToServer,n.type=new di.ProtocolNotificationType(n.method),n.registrationMethod=Ts.method})(GS||(ft.DidChangeNotebookDocumentNotification=GS={}));var VS;(function(n){n.method="notebookDocument/didSave",n.messageDirection=di.MessageDirection.clientToServer,n.type=new di.ProtocolNotificationType(n.method),n.registrationMethod=Ts.method})(VS||(ft.DidSaveNotebookDocumentNotification=VS={}));var XS;(function(n){n.method="notebookDocument/didClose",n.messageDirection=di.MessageDirection.clientToServer,n.type=new di.ProtocolNotificationType(n.method),n.registrationMethod=Ts.method})(XS||(ft.DidCloseNotebookDocumentNotification=XS={}))});var ZS=T(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.InlineCompletionRequest=void 0;var YS=et(),QS;(function(n){n.method="textDocument/inlineCompletion",n.messageDirection=YS.MessageDirection.clientToServer,n.type=new YS.ProtocolRequestType(n.method)})(QS||(hu.InlineCompletionRequest=QS={}))});var p0=T(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.WorkspaceSymbolRequest=_.CodeActionResolveRequest=_.CodeActionRequest=_.DocumentSymbolRequest=_.DocumentHighlightRequest=_.ReferencesRequest=_.DefinitionRequest=_.SignatureHelpRequest=_.SignatureHelpTriggerKind=_.HoverRequest=_.CompletionResolveRequest=_.CompletionRequest=_.CompletionTriggerKind=_.PublishDiagnosticsNotification=_.WatchKind=_.RelativePattern=_.FileChangeType=_.DidChangeWatchedFilesNotification=_.WillSaveTextDocumentWaitUntilRequest=_.WillSaveTextDocumentNotification=_.TextDocumentSaveReason=_.DidSaveTextDocumentNotification=_.DidCloseTextDocumentNotification=_.DidChangeTextDocumentNotification=_.TextDocumentContentChangeEvent=_.DidOpenTextDocumentNotification=_.TextDocumentSyncKind=_.TelemetryEventNotification=_.LogMessageNotification=_.ShowMessageRequest=_.ShowMessageNotification=_.MessageType=_.DidChangeConfigurationNotification=_.ExitNotification=_.ShutdownRequest=_.InitializedNotification=_.InitializeErrorCodes=_.InitializeRequest=_.WorkDoneProgressOptions=_.TextDocumentRegistrationOptions=_.StaticRegistrationOptions=_.PositionEncodingKind=_.FailureHandlingKind=_.ResourceOperationKind=_.UnregistrationRequest=_.RegistrationRequest=_.DocumentSelector=_.NotebookCellTextDocumentFilter=_.NotebookDocumentFilter=_.TextDocumentFilter=void 0;_.MonikerRequest=_.MonikerKind=_.UniquenessLevel=_.WillDeleteFilesRequest=_.DidDeleteFilesNotification=_.WillRenameFilesRequest=_.DidRenameFilesNotification=_.WillCreateFilesRequest=_.DidCreateFilesNotification=_.FileOperationPatternKind=_.LinkedEditingRangeRequest=_.ShowDocumentRequest=_.SemanticTokensRegistrationType=_.SemanticTokensRefreshRequest=_.SemanticTokensRangeRequest=_.SemanticTokensDeltaRequest=_.SemanticTokensRequest=_.TokenFormat=_.CallHierarchyPrepareRequest=_.CallHierarchyOutgoingCallsRequest=_.CallHierarchyIncomingCallsRequest=_.WorkDoneProgressCancelNotification=_.WorkDoneProgressCreateRequest=_.WorkDoneProgress=_.SelectionRangeRequest=_.DeclarationRequest=_.FoldingRangeRefreshRequest=_.FoldingRangeRequest=_.ColorPresentationRequest=_.DocumentColorRequest=_.ConfigurationRequest=_.DidChangeWorkspaceFoldersNotification=_.WorkspaceFoldersRequest=_.TypeDefinitionRequest=_.ImplementationRequest=_.ApplyWorkspaceEditRequest=_.ExecuteCommandRequest=_.PrepareRenameRequest=_.RenameRequest=_.PrepareSupportDefaultBehavior=_.DocumentOnTypeFormattingRequest=_.DocumentRangesFormattingRequest=_.DocumentRangeFormattingRequest=_.DocumentFormattingRequest=_.DocumentLinkResolveRequest=_.DocumentLinkRequest=_.CodeLensRefreshRequest=_.CodeLensResolveRequest=_.CodeLensRequest=_.WorkspaceSymbolResolveRequest=void 0;_.InlineCompletionRequest=_.DidCloseNotebookDocumentNotification=_.DidSaveNotebookDocumentNotification=_.DidChangeNotebookDocumentNotification=_.NotebookCellArrayChange=_.DidOpenNotebookDocumentNotification=_.NotebookDocumentSyncRegistrationType=_.NotebookDocument=_.NotebookCell=_.ExecutionSummary=_.NotebookCellKind=_.DiagnosticRefreshRequest=_.WorkspaceDiagnosticRequest=_.DocumentDiagnosticRequest=_.DocumentDiagnosticReportKind=_.DiagnosticServerCancellationData=_.InlayHintRefreshRequest=_.InlayHintResolveRequest=_.InlayHintRequest=_.InlineValueRefreshRequest=_.InlineValueRequest=_.TypeHierarchySupertypesRequest=_.TypeHierarchySubtypesRequest=_.TypeHierarchyPrepareRequest=void 0;var H=et(),eC=Zc(),Ot=eu(),CN=R_();Object.defineProperty(_,"ImplementationRequest",{enumerable:!0,get:function(){return CN.ImplementationRequest}});var RN=E_();Object.defineProperty(_,"TypeDefinitionRequest",{enumerable:!0,get:function(){return RN.TypeDefinitionRequest}});var c0=O_();Object.defineProperty(_,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return c0.WorkspaceFoldersRequest}});Object.defineProperty(_,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return c0.DidChangeWorkspaceFoldersNotification}});var DN=N_();Object.defineProperty(_,"ConfigurationRequest",{enumerable:!0,get:function(){return DN.ConfigurationRequest}});var u0=j_();Object.defineProperty(_,"DocumentColorRequest",{enumerable:!0,get:function(){return u0.DocumentColorRequest}});Object.defineProperty(_,"ColorPresentationRequest",{enumerable:!0,get:function(){return u0.ColorPresentationRequest}});var l0=U_();Object.defineProperty(_,"FoldingRangeRequest",{enumerable:!0,get:function(){return l0.FoldingRangeRequest}});Object.defineProperty(_,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return l0.FoldingRangeRefreshRequest}});var TN=H_();Object.defineProperty(_,"DeclarationRequest",{enumerable:!0,get:function(){return TN.DeclarationRequest}});var EN=K_();Object.defineProperty(_,"SelectionRangeRequest",{enumerable:!0,get:function(){return EN.SelectionRangeRequest}});var Lf=J_();Object.defineProperty(_,"WorkDoneProgress",{enumerable:!0,get:function(){return Lf.WorkDoneProgress}});Object.defineProperty(_,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Lf.WorkDoneProgressCreateRequest}});Object.defineProperty(_,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Lf.WorkDoneProgressCancelNotification}});var Mf=eS();Object.defineProperty(_,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Mf.CallHierarchyIncomingCallsRequest}});Object.defineProperty(_,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Mf.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(_,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Mf.CallHierarchyPrepareRequest}});var Es=oS();Object.defineProperty(_,"TokenFormat",{enumerable:!0,get:function(){return Es.TokenFormat}});Object.defineProperty(_,"SemanticTokensRequest",{enumerable:!0,get:function(){return Es.SemanticTokensRequest}});Object.defineProperty(_,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return Es.SemanticTokensDeltaRequest}});Object.defineProperty(_,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return Es.SemanticTokensRangeRequest}});Object.defineProperty(_,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return Es.SemanticTokensRefreshRequest}});Object.defineProperty(_,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return Es.SemanticTokensRegistrationType}});var PN=uS();Object.defineProperty(_,"ShowDocumentRequest",{enumerable:!0,get:function(){return PN.ShowDocumentRequest}});var kN=pS();Object.defineProperty(_,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return kN.LinkedEditingRangeRequest}});var Er=bS();Object.defineProperty(_,"FileOperationPatternKind",{enumerable:!0,get:function(){return Er.FileOperationPatternKind}});Object.defineProperty(_,"DidCreateFilesNotification",{enumerable:!0,get:function(){return Er.DidCreateFilesNotification}});Object.defineProperty(_,"WillCreateFilesRequest",{enumerable:!0,get:function(){return Er.WillCreateFilesRequest}});Object.defineProperty(_,"DidRenameFilesNotification",{enumerable:!0,get:function(){return Er.DidRenameFilesNotification}});Object.defineProperty(_,"WillRenameFilesRequest",{enumerable:!0,get:function(){return Er.WillRenameFilesRequest}});Object.defineProperty(_,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return Er.DidDeleteFilesNotification}});Object.defineProperty(_,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return Er.WillDeleteFilesRequest}});var Uf=RS();Object.defineProperty(_,"UniquenessLevel",{enumerable:!0,get:function(){return Uf.UniquenessLevel}});Object.defineProperty(_,"MonikerKind",{enumerable:!0,get:function(){return Uf.MonikerKind}});Object.defineProperty(_,"MonikerRequest",{enumerable:!0,get:function(){return Uf.MonikerRequest}});var zf=PS();Object.defineProperty(_,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return zf.TypeHierarchyPrepareRequest}});Object.defineProperty(_,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return zf.TypeHierarchySubtypesRequest}});Object.defineProperty(_,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return zf.TypeHierarchySupertypesRequest}});var d0=qS();Object.defineProperty(_,"InlineValueRequest",{enumerable:!0,get:function(){return d0.InlineValueRequest}});Object.defineProperty(_,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return d0.InlineValueRefreshRequest}});var $f=IS();Object.defineProperty(_,"InlayHintRequest",{enumerable:!0,get:function(){return $f.InlayHintRequest}});Object.defineProperty(_,"InlayHintResolveRequest",{enumerable:!0,get:function(){return $f.InlayHintResolveRequest}});Object.defineProperty(_,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return $f.InlayHintRefreshRequest}});var qo=HS();Object.defineProperty(_,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return qo.DiagnosticServerCancellationData}});Object.defineProperty(_,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return qo.DocumentDiagnosticReportKind}});Object.defineProperty(_,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return qo.DocumentDiagnosticRequest}});Object.defineProperty(_,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return qo.WorkspaceDiagnosticRequest}});Object.defineProperty(_,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return qo.DiagnosticRefreshRequest}});var pi=JS();Object.defineProperty(_,"NotebookCellKind",{enumerable:!0,get:function(){return pi.NotebookCellKind}});Object.defineProperty(_,"ExecutionSummary",{enumerable:!0,get:function(){return pi.ExecutionSummary}});Object.defineProperty(_,"NotebookCell",{enumerable:!0,get:function(){return pi.NotebookCell}});Object.defineProperty(_,"NotebookDocument",{enumerable:!0,get:function(){return pi.NotebookDocument}});Object.defineProperty(_,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return pi.NotebookDocumentSyncRegistrationType}});Object.defineProperty(_,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return pi.DidOpenNotebookDocumentNotification}});Object.defineProperty(_,"NotebookCellArrayChange",{enumerable:!0,get:function(){return pi.NotebookCellArrayChange}});Object.defineProperty(_,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return pi.DidChangeNotebookDocumentNotification}});Object.defineProperty(_,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return pi.DidSaveNotebookDocumentNotification}});Object.defineProperty(_,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return pi.DidCloseNotebookDocumentNotification}});var ON=ZS();Object.defineProperty(_,"InlineCompletionRequest",{enumerable:!0,get:function(){return ON.InlineCompletionRequest}});var Nf;(function(n){function e(t){let i=t;return Ot.string(i)||Ot.string(i.language)||Ot.string(i.scheme)||Ot.string(i.pattern)}n.is=e})(Nf||(_.TextDocumentFilter=Nf={}));var Af;(function(n){function e(t){let i=t;return Ot.objectLiteral(i)&&(Ot.string(i.notebookType)||Ot.string(i.scheme)||Ot.string(i.pattern))}n.is=e})(Af||(_.NotebookDocumentFilter=Af={}));var If;(function(n){function e(t){let i=t;return Ot.objectLiteral(i)&&(Ot.string(i.notebook)||Af.is(i.notebook))&&(i.language===void 0||Ot.string(i.language))}n.is=e})(If||(_.NotebookCellTextDocumentFilter=If={}));var jf;(function(n){function e(t){if(!Array.isArray(t))return!1;for(let i of t)if(!Ot.string(i)&&!Nf.is(i)&&!If.is(i))return!1;return!0}n.is=e})(jf||(_.DocumentSelector=jf={}));var tC;(function(n){n.method="client/registerCapability",n.messageDirection=H.MessageDirection.serverToClient,n.type=new H.ProtocolRequestType(n.method)})(tC||(_.RegistrationRequest=tC={}));var nC;(function(n){n.method="client/unregisterCapability",n.messageDirection=H.MessageDirection.serverToClient,n.type=new H.ProtocolRequestType(n.method)})(nC||(_.UnregistrationRequest=nC={}));var iC;(function(n){n.Create="create",n.Rename="rename",n.Delete="delete"})(iC||(_.ResourceOperationKind=iC={}));var rC;(function(n){n.Abort="abort",n.Transactional="transactional",n.TextOnlyTransactional="textOnlyTransactional",n.Undo="undo"})(rC||(_.FailureHandlingKind=rC={}));var sC;(function(n){n.UTF8="utf-8",n.UTF16="utf-16",n.UTF32="utf-32"})(sC||(_.PositionEncodingKind=sC={}));var oC;(function(n){function e(t){let i=t;return i&&Ot.string(i.id)&&i.id.length>0}n.hasId=e})(oC||(_.StaticRegistrationOptions=oC={}));var aC;(function(n){function e(t){let i=t;return i&&(i.documentSelector===null||jf.is(i.documentSelector))}n.is=e})(aC||(_.TextDocumentRegistrationOptions=aC={}));var cC;(function(n){function e(i){let r=i;return Ot.objectLiteral(r)&&(r.workDoneProgress===void 0||Ot.boolean(r.workDoneProgress))}n.is=e;function t(i){let r=i;return r&&Ot.boolean(r.workDoneProgress)}n.hasWorkDoneProgress=t})(cC||(_.WorkDoneProgressOptions=cC={}));var uC;(function(n){n.method="initialize",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(uC||(_.InitializeRequest=uC={}));var lC;(function(n){n.unknownProtocolVersion=1})(lC||(_.InitializeErrorCodes=lC={}));var dC;(function(n){n.method="initialized",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolNotificationType(n.method)})(dC||(_.InitializedNotification=dC={}));var pC;(function(n){n.method="shutdown",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType0(n.method)})(pC||(_.ShutdownRequest=pC={}));var fC;(function(n){n.method="exit",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolNotificationType0(n.method)})(fC||(_.ExitNotification=fC={}));var hC;(function(n){n.method="workspace/didChangeConfiguration",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolNotificationType(n.method)})(hC||(_.DidChangeConfigurationNotification=hC={}));var mC;(function(n){n.Error=1,n.Warning=2,n.Info=3,n.Log=4,n.Debug=5})(mC||(_.MessageType=mC={}));var gC;(function(n){n.method="window/showMessage",n.messageDirection=H.MessageDirection.serverToClient,n.type=new H.ProtocolNotificationType(n.method)})(gC||(_.ShowMessageNotification=gC={}));var vC;(function(n){n.method="window/showMessageRequest",n.messageDirection=H.MessageDirection.serverToClient,n.type=new H.ProtocolRequestType(n.method)})(vC||(_.ShowMessageRequest=vC={}));var xC;(function(n){n.method="window/logMessage",n.messageDirection=H.MessageDirection.serverToClient,n.type=new H.ProtocolNotificationType(n.method)})(xC||(_.LogMessageNotification=xC={}));var yC;(function(n){n.method="telemetry/event",n.messageDirection=H.MessageDirection.serverToClient,n.type=new H.ProtocolNotificationType(n.method)})(yC||(_.TelemetryEventNotification=yC={}));var bC;(function(n){n.None=0,n.Full=1,n.Incremental=2})(bC||(_.TextDocumentSyncKind=bC={}));var wC;(function(n){n.method="textDocument/didOpen",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolNotificationType(n.method)})(wC||(_.DidOpenTextDocumentNotification=wC={}));var _C;(function(n){function e(i){let r=i;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}n.isIncremental=e;function t(i){let r=i;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}n.isFull=t})(_C||(_.TextDocumentContentChangeEvent=_C={}));var SC;(function(n){n.method="textDocument/didChange",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolNotificationType(n.method)})(SC||(_.DidChangeTextDocumentNotification=SC={}));var CC;(function(n){n.method="textDocument/didClose",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolNotificationType(n.method)})(CC||(_.DidCloseTextDocumentNotification=CC={}));var RC;(function(n){n.method="textDocument/didSave",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolNotificationType(n.method)})(RC||(_.DidSaveTextDocumentNotification=RC={}));var DC;(function(n){n.Manual=1,n.AfterDelay=2,n.FocusOut=3})(DC||(_.TextDocumentSaveReason=DC={}));var TC;(function(n){n.method="textDocument/willSave",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolNotificationType(n.method)})(TC||(_.WillSaveTextDocumentNotification=TC={}));var EC;(function(n){n.method="textDocument/willSaveWaitUntil",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(EC||(_.WillSaveTextDocumentWaitUntilRequest=EC={}));var PC;(function(n){n.method="workspace/didChangeWatchedFiles",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolNotificationType(n.method)})(PC||(_.DidChangeWatchedFilesNotification=PC={}));var kC;(function(n){n.Created=1,n.Changed=2,n.Deleted=3})(kC||(_.FileChangeType=kC={}));var OC;(function(n){function e(t){let i=t;return Ot.objectLiteral(i)&&(eC.URI.is(i.baseUri)||eC.WorkspaceFolder.is(i.baseUri))&&Ot.string(i.pattern)}n.is=e})(OC||(_.RelativePattern=OC={}));var qC;(function(n){n.Create=1,n.Change=2,n.Delete=4})(qC||(_.WatchKind=qC={}));var FC;(function(n){n.method="textDocument/publishDiagnostics",n.messageDirection=H.MessageDirection.serverToClient,n.type=new H.ProtocolNotificationType(n.method)})(FC||(_.PublishDiagnosticsNotification=FC={}));var NC;(function(n){n.Invoked=1,n.TriggerCharacter=2,n.TriggerForIncompleteCompletions=3})(NC||(_.CompletionTriggerKind=NC={}));var AC;(function(n){n.method="textDocument/completion",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(AC||(_.CompletionRequest=AC={}));var IC;(function(n){n.method="completionItem/resolve",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(IC||(_.CompletionResolveRequest=IC={}));var jC;(function(n){n.method="textDocument/hover",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(jC||(_.HoverRequest=jC={}));var LC;(function(n){n.Invoked=1,n.TriggerCharacter=2,n.ContentChange=3})(LC||(_.SignatureHelpTriggerKind=LC={}));var MC;(function(n){n.method="textDocument/signatureHelp",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(MC||(_.SignatureHelpRequest=MC={}));var UC;(function(n){n.method="textDocument/definition",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(UC||(_.DefinitionRequest=UC={}));var zC;(function(n){n.method="textDocument/references",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(zC||(_.ReferencesRequest=zC={}));var $C;(function(n){n.method="textDocument/documentHighlight",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})($C||(_.DocumentHighlightRequest=$C={}));var HC;(function(n){n.method="textDocument/documentSymbol",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(HC||(_.DocumentSymbolRequest=HC={}));var BC;(function(n){n.method="textDocument/codeAction",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(BC||(_.CodeActionRequest=BC={}));var WC;(function(n){n.method="codeAction/resolve",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(WC||(_.CodeActionResolveRequest=WC={}));var KC;(function(n){n.method="workspace/symbol",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(KC||(_.WorkspaceSymbolRequest=KC={}));var GC;(function(n){n.method="workspaceSymbol/resolve",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(GC||(_.WorkspaceSymbolResolveRequest=GC={}));var VC;(function(n){n.method="textDocument/codeLens",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(VC||(_.CodeLensRequest=VC={}));var XC;(function(n){n.method="codeLens/resolve",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(XC||(_.CodeLensResolveRequest=XC={}));var JC;(function(n){n.method="workspace/codeLens/refresh",n.messageDirection=H.MessageDirection.serverToClient,n.type=new H.ProtocolRequestType0(n.method)})(JC||(_.CodeLensRefreshRequest=JC={}));var YC;(function(n){n.method="textDocument/documentLink",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(YC||(_.DocumentLinkRequest=YC={}));var QC;(function(n){n.method="documentLink/resolve",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(QC||(_.DocumentLinkResolveRequest=QC={}));var ZC;(function(n){n.method="textDocument/formatting",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(ZC||(_.DocumentFormattingRequest=ZC={}));var e0;(function(n){n.method="textDocument/rangeFormatting",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(e0||(_.DocumentRangeFormattingRequest=e0={}));var t0;(function(n){n.method="textDocument/rangesFormatting",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(t0||(_.DocumentRangesFormattingRequest=t0={}));var n0;(function(n){n.method="textDocument/onTypeFormatting",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(n0||(_.DocumentOnTypeFormattingRequest=n0={}));var i0;(function(n){n.Identifier=1})(i0||(_.PrepareSupportDefaultBehavior=i0={}));var r0;(function(n){n.method="textDocument/rename",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(r0||(_.RenameRequest=r0={}));var s0;(function(n){n.method="textDocument/prepareRename",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(s0||(_.PrepareRenameRequest=s0={}));var o0;(function(n){n.method="workspace/executeCommand",n.messageDirection=H.MessageDirection.clientToServer,n.type=new H.ProtocolRequestType(n.method)})(o0||(_.ExecuteCommandRequest=o0={}));var a0;(function(n){n.method="workspace/applyEdit",n.messageDirection=H.MessageDirection.serverToClient,n.type=new H.ProtocolRequestType("workspace/applyEdit")})(a0||(_.ApplyWorkspaceEditRequest=a0={}))});var h0=T(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.createProtocolConnection=void 0;var f0=Tr();function qN(n,e,t,i){return f0.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,f0.createMessageConnection)(n,e,t,i)}mu.createProtocolConnection=qN});var g0=T(cn=>{"use strict";var FN=cn&&cn.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),gu=cn&&cn.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&FN(e,n,t)};Object.defineProperty(cn,"__esModule",{value:!0});cn.LSPErrorCodes=cn.createProtocolConnection=void 0;gu(Tr(),cn);gu(Zc(),cn);gu(et(),cn);gu(p0(),cn);var NN=h0();Object.defineProperty(cn,"createProtocolConnection",{enumerable:!0,get:function(){return NN.createProtocolConnection}});var m0;(function(n){n.lspReservedErrorRangeStart=-32899,n.RequestFailed=-32803,n.ServerCancelled=-32802,n.ContentModified=-32801,n.RequestCancelled=-32800,n.lspReservedErrorRangeEnd=-32800})(m0||(cn.LSPErrorCodes=m0={}))});var ue=T(fi=>{"use strict";var AN=fi&&fi.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),v0=fi&&fi.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&AN(e,n,t)};Object.defineProperty(fi,"__esModule",{value:!0});fi.createProtocolConnection=void 0;var IN=Df();v0(Df(),fi);v0(g0(),fi);function jN(n,e,t,i){return(0,IN.createMessageConnection)(n,e,t,i)}fi.createProtocolConnection=jN});var vu=T(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.forEach=Ht.mapAsync=Ht.map=Ht.clearTestMode=Ht.setTestMode=Ht.Semaphore=Ht.Delayer=void 0;var No=ue(),Hf=class{constructor(e){this.defaultDelay=e,this.timeout=void 0,this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0}trigger(e,t=this.defaultDelay){return this.task=e,t>=0&&this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(i=>{this.onSuccess=i}).then(()=>{this.completionPromise=void 0,this.onSuccess=void 0;var i=this.task();return this.task=void 0,i})),(t>=0||this.timeout===void 0)&&(this.timeout=(0,No.RAL)().timer.setTimeout(()=>{this.timeout=void 0,this.onSuccess(void 0)},t>=0?t:this.defaultDelay)),this.completionPromise}forceDelivery(){if(!this.completionPromise)return;this.cancelTimeout();let e=this.task();return this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0,e}isTriggered(){return this.timeout!==void 0}cancel(){this.cancelTimeout(),this.completionPromise=void 0}cancelTimeout(){this.timeout!==void 0&&(this.timeout.dispose(),this.timeout=void 0)}};Ht.Delayer=Hf;var Bf=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((t,i)=>{this._waiting.push({thunk:e,resolve:t,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,No.RAL)().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 t=e.thunk();t instanceof Promise?t.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}};Ht.Semaphore=Bf;var Wf=!1;function LN(){Wf=!0}Ht.setTestMode=LN;function MN(){Wf=!1}Ht.clearTestMode=MN;var x0=15,Fo=class{constructor(e=x0){this.yieldAfter=Wf===!0?Math.max(e,2):Math.max(e,x0),this.startTime=Date.now(),this.counter=0,this.total=0,this.counterInterval=1}start(){this.counter=0,this.total=0,this.counterInterval=1,this.startTime=Date.now()}shouldYield(){if(++this.counter>=this.counterInterval){let e=Date.now()-this.startTime,t=Math.max(0,this.yieldAfter-e);if(this.total+=this.counter,this.counter=0,e>=this.yieldAfter||t<=1)return this.counterInterval=1,this.total=0,!0;switch(e){case 0:case 1:this.counterInterval=this.total*2;break}}return!1}};async function UN(n,e,t,i){if(n.length===0)return[];let r=new Array(n.length),s=new Fo(i?.yieldAfter);function o(c){s.start();for(let u=c;u<n.length;u++)if(r[u]=e(n[u]),s.shouldYield())return i?.yieldCallback&&i.yieldCallback(),u+1;return-1}let a=o(0);for(;a!==-1&&!(t!==void 0&&t.isCancellationRequested);)a=await new Promise(c=>{(0,No.RAL)().timer.setImmediate(()=>{c(o(a))})});return r}Ht.map=UN;async function zN(n,e,t,i){if(n.length===0)return[];let r=new Array(n.length),s=new Fo(i?.yieldAfter);async function o(c){s.start();for(let u=c;u<n.length;u++)if(r[u]=await e(n[u],t),s.shouldYield())return i?.yieldCallback&&i.yieldCallback(),u+1;return-1}let a=await o(0);for(;a!==-1&&!(t!==void 0&&t.isCancellationRequested);)a=await new Promise(c=>{(0,No.RAL)().timer.setImmediate(()=>{c(o(a))})});return r}Ht.mapAsync=zN;async function $N(n,e,t,i){if(n.length===0)return;let r=new Fo(i?.yieldAfter);function s(a){r.start();for(let c=a;c<n.length;c++)if(e(n[c]),r.shouldYield())return i?.yieldCallback&&i.yieldCallback(),c+1;return-1}let o=s(0);for(;o!==-1&&!(t!==void 0&&t.isCancellationRequested);)o=await new Promise(a=>{(0,No.RAL)().timer.setImmediate(()=>{a(s(o))})})}Ht.forEach=$N});var Vf=T(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var HN=require("vscode"),Kf=class extends HN.CompletionItem{constructor(e){super(e)}};Gf.default=Kf});var Yf=T(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var BN=require("vscode"),Xf=class extends BN.CodeLens{constructor(e){super(e)}};Jf.default=Xf});var eh=T(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var WN=require("vscode"),Qf=class extends WN.DocumentLink{constructor(e,t){super(e,t)}};Zf.default=Qf});var ih=T(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var KN=require("vscode"),th=class extends KN.CodeAction{constructor(e,t){super(e),this.data=t}};nh.default=th});var oh=T(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.ProtocolDiagnostic=Ps.DiagnosticCode=void 0;var GN=require("vscode"),rh=qn(),y0;(function(n){function e(t){let i=t;return i!=null&&(rh.number(i.value)||rh.string(i.value))&&rh.string(i.target)}n.is=e})(y0||(Ps.DiagnosticCode=y0={}));var sh=class extends GN.Diagnostic{constructor(e,t,i,r){super(e,t,i),this.data=r,this.hasDiagnosticCode=!1}};Ps.ProtocolDiagnostic=sh});var uh=T(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var VN=require("vscode"),ah=class extends VN.CallHierarchyItem{constructor(e,t,i,r,s,o,a){super(e,t,i,r,s,o),a!==void 0&&(this.data=a)}};ch.default=ah});var ph=T(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var XN=require("vscode"),lh=class extends XN.TypeHierarchyItem{constructor(e,t,i,r,s,o,a){super(e,t,i,r,s,o),a!==void 0&&(this.data=a)}};dh.default=lh});var mh=T(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});var xu=require("vscode"),fh=class extends xu.SymbolInformation{constructor(e,t,i,r,s){let o=!(r instanceof xu.Uri);super(e,t,i,o?r:new xu.Location(r,new xu.Range(0,0,0,0))),this.hasRange=o,s!==void 0&&(this.data=s)}};hh.default=fh});var xh=T(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var JN=require("vscode"),gh=class extends JN.InlayHint{constructor(e,t,i){super(e,t,i)}};vh.default=gh});var S0=T(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.createConverter=void 0;var Ct=require("vscode"),le=ue(),Pr=qn(),b0=vu(),YN=Vf(),QN=Yf(),ZN=eh(),w0=ih(),_0=oh(),eA=uh(),tA=ph(),nA=mh(),iA=xh(),yh;(function(n){function e(t){let i=t;return i&&!!i.inserting&&!!i.replacing}n.is=e})(yh||(yh={}));function rA(n){let t=n||(g=>g.toString());function i(g){return t(g)}function r(g){return{uri:t(g.uri)}}function s(g){return{uri:t(g.uri),languageId:g.languageId,version:g.version,text:g.getText()}}function o(g){return{uri:t(g.uri),version:g.version}}function a(g){return{textDocument:s(g)}}function c(g){let A=g;return!!A.document&&!!A.contentChanges}function u(g){let A=g;return!!A.uri&&!!A.version}function l(g,A,Y){if(u(g))return{textDocument:{uri:t(g.uri),version:g.version},contentChanges:[{text:g.getText()}]};if(c(g)){let ke=A,P=Y;return{textDocument:{uri:t(ke),version:P},contentChanges:g.contentChanges.map(R=>{let D=R.range;return{range:{start:{line:D.start.line,character:D.start.character},end:{line:D.end.line,character:D.end.character}},rangeLength:R.rangeLength,text:R.text}})}}else throw Error("Unsupported text document change parameter")}function p(g){return{textDocument:r(g)}}function h(g,A=!1){let Y={textDocument:r(g)};return A&&(Y.text=g.getText()),Y}function x(g){switch(g){case Ct.TextDocumentSaveReason.Manual:return le.TextDocumentSaveReason.Manual;case Ct.TextDocumentSaveReason.AfterDelay:return le.TextDocumentSaveReason.AfterDelay;case Ct.TextDocumentSaveReason.FocusOut:return le.TextDocumentSaveReason.FocusOut}return le.TextDocumentSaveReason.Manual}function f(g){return{textDocument:r(g.document),reason:x(g.reason)}}function y(g){return{files:g.files.map(A=>({uri:t(A)}))}}function w(g){return{files:g.files.map(A=>({oldUri:t(A.oldUri),newUri:t(A.newUri)}))}}function S(g){return{files:g.files.map(A=>({uri:t(A)}))}}function O(g){return{files:g.files.map(A=>({uri:t(A)}))}}function k(g){return{files:g.files.map(A=>({oldUri:t(A.oldUri),newUri:t(A.newUri)}))}}function N(g){return{files:g.files.map(A=>({uri:t(A)}))}}function j(g,A){return{textDocument:r(g),position:ct(A)}}function G(g){switch(g){case Ct.CompletionTriggerKind.TriggerCharacter:return le.CompletionTriggerKind.TriggerCharacter;case Ct.CompletionTriggerKind.TriggerForIncompleteCompletions:return le.CompletionTriggerKind.TriggerForIncompleteCompletions;default:return le.CompletionTriggerKind.Invoked}}function $(g,A,Y){return{textDocument:r(g),position:ct(A),context:{triggerKind:G(Y.triggerKind),triggerCharacter:Y.triggerCharacter}}}function Q(g){switch(g){case Ct.SignatureHelpTriggerKind.Invoke:return le.SignatureHelpTriggerKind.Invoked;case Ct.SignatureHelpTriggerKind.TriggerCharacter:return le.SignatureHelpTriggerKind.TriggerCharacter;case Ct.SignatureHelpTriggerKind.ContentChange:return le.SignatureHelpTriggerKind.ContentChange}}function te(g){return{label:g.label}}function Oe(g){return g.map(te)}function Ye(g){return{label:g.label,parameters:Oe(g.parameters)}}function We(g){return g.map(Ye)}function Kt(g){return g===void 0?g:{signatures:We(g.signatures),activeSignature:g.activeSignature,activeParameter:g.activeParameter}}function Ne(g,A,Y){return{textDocument:r(g),position:ct(A),context:{isRetrigger:Y.isRetrigger,triggerCharacter:Y.triggerCharacter,triggerKind:Q(Y.triggerKind),activeSignatureHelp:Kt(Y.activeSignatureHelp)}}}function ct(g){return{line:g.line,character:g.character}}function mt(g){return g==null?g:{line:g.line>le.uinteger.MAX_VALUE?le.uinteger.MAX_VALUE:g.line,character:g.character>le.uinteger.MAX_VALUE?le.uinteger.MAX_VALUE:g.character}}function se(g,A){return b0.map(g,mt,A)}function ie(g){return g.map(mt)}function de(g){return g==null?g:{start:mt(g.start),end:mt(g.end)}}function ut(g){return g.map(de)}function Re(g){return g==null?g:le.Location.create(i(g.uri),de(g.range))}function Ke(g){switch(g){case Ct.DiagnosticSeverity.Error:return le.DiagnosticSeverity.Error;case Ct.DiagnosticSeverity.Warning:return le.DiagnosticSeverity.Warning;case Ct.DiagnosticSeverity.Information:return le.DiagnosticSeverity.Information;case Ct.DiagnosticSeverity.Hint:return le.DiagnosticSeverity.Hint}}function Sn(g){if(!g)return;let A=[];for(let Y of g){let ke=gt(Y);ke!==void 0&&A.push(ke)}return A.length>0?A:void 0}function gt(g){switch(g){case Ct.DiagnosticTag.Unnecessary:return le.DiagnosticTag.Unnecessary;case Ct.DiagnosticTag.Deprecated:return le.DiagnosticTag.Deprecated;default:return}}function it(g){return{message:g.message,location:Re(g.location)}}function Cn(g){return g.map(it)}function Rn(g){if(g!=null)return Pr.number(g)||Pr.string(g)?g:{value:g.value,target:i(g.target)}}function Ge(g){let A=le.Diagnostic.create(de(g.range),g.message),Y=g instanceof _0.ProtocolDiagnostic?g:void 0;Y!==void 0&&Y.data!==void 0&&(A.data=Y.data);let ke=Rn(g.code);return _0.DiagnosticCode.is(ke)?Y!==void 0&&Y.hasDiagnosticCode?A.code=ke:(A.code=ke.value,A.codeDescription={href:ke.target}):A.code=ke,Pr.number(g.severity)&&(A.severity=Ke(g.severity)),Array.isArray(g.tags)&&(A.tags=Sn(g.tags)),g.relatedInformation&&(A.relatedInformation=Cn(g.relatedInformation)),g.source&&(A.source=g.source),A}function Mn(g,A){return g==null?g:b0.map(g,Ge,A)}function Un(g){return g==null?g:g.map(Ge)}function ei(g,A){switch(g){case"$string":return A;case le.MarkupKind.PlainText:return{kind:g,value:A};case le.MarkupKind.Markdown:return{kind:g,value:A.value};default:return`Unsupported Markup content received. Kind is: ${g}`}}function yt(g){switch(g){case Ct.CompletionItemTag.Deprecated:return le.CompletionItemTag.Deprecated}}function mi(g){if(g===void 0)return g;let A=[];for(let Y of g){let ke=yt(Y);ke!==void 0&&A.push(ke)}return A}function zn(g,A){return A!==void 0?A:g+1}function Dn(g,A=!1){let Y,ke;Pr.string(g.label)?Y=g.label:(Y=g.label.label,A&&(g.label.detail!==void 0||g.label.description!==void 0)&&(ke={detail:g.label.detail,description:g.label.description}));let P={label:Y};ke!==void 0&&(P.labelDetails=ke);let v=g instanceof YN.default?g:void 0;g.detail&&(P.detail=g.detail),g.documentation&&(!v||v.documentationFormat==="$string"?P.documentation=g.documentation:P.documentation=ei(v.documentationFormat,g.documentation)),g.filterText&&(P.filterText=g.filterText),Fi(P,g),Pr.number(g.kind)&&(P.kind=zn(g.kind,v&&v.originalItemKind)),g.sortText&&(P.sortText=g.sortText),g.additionalTextEdits&&(P.additionalTextEdits=vt(g.additionalTextEdits)),g.commitCharacters&&(P.commitCharacters=g.commitCharacters.slice()),g.command&&(P.command=K(g.command)),(g.preselect===!0||g.preselect===!1)&&(P.preselect=g.preselect);let R=mi(g.tags);if(v){if(v.data!==void 0&&(P.data=v.data),v.deprecated===!0||v.deprecated===!1){if(v.deprecated===!0&&R!==void 0&&R.length>0){let D=R.indexOf(Ct.CompletionItemTag.Deprecated);D!==-1&&R.splice(D,1)}P.deprecated=v.deprecated}v.insertTextMode!==void 0&&(P.insertTextMode=v.insertTextMode)}return R!==void 0&&R.length>0&&(P.tags=R),P.insertTextMode===void 0&&g.keepWhitespace===!0&&(P.insertTextMode=le.InsertTextMode.adjustIndentation),P}function Fi(g,A){let Y=le.InsertTextFormat.PlainText,ke,P;A.textEdit?(ke=A.textEdit.newText,P=A.textEdit.range):A.insertText instanceof Ct.SnippetString?(Y=le.InsertTextFormat.Snippet,ke=A.insertText.value):ke=A.insertText,A.range&&(P=A.range),g.insertTextFormat=Y,A.fromEdit&&ke!==void 0&&P!==void 0?g.textEdit=Tn(ke,P):g.insertText=ke}function Tn(g,A){return yh.is(A)?le.InsertReplaceEdit.create(g,de(A.inserting),de(A.replacing)):{newText:g,range:de(A)}}function ti(g){return{range:de(g.range),newText:g.newText}}function vt(g){return g==null?g:g.map(ti)}function Lt(g){return g<=Ct.SymbolKind.TypeParameter?g+1:le.SymbolKind.Property}function Nt(g){return g}function fn(g){return g.map(Nt)}function Zt(g,A,Y){return{textDocument:r(g),position:ct(A),context:{includeDeclaration:Y.includeDeclaration}}}async function ni(g,A){let Y=le.CodeAction.create(g.title);if(g instanceof w0.default&&g.data!==void 0&&(Y.data=g.data),g.kind!==void 0&&(Y.kind=C(g.kind)),g.diagnostics!==void 0&&(Y.diagnostics=await Mn(g.diagnostics,A)),g.edit!==void 0)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return g.command!==void 0&&(Y.command=K(g.command)),g.isPreferred!==void 0&&(Y.isPreferred=g.isPreferred),g.disabled!==void 0&&(Y.disabled={reason:g.disabled.reason}),Y}function gi(g){let A=le.CodeAction.create(g.title);if(g instanceof w0.default&&g.data!==void 0&&(A.data=g.data),g.kind!==void 0&&(A.kind=C(g.kind)),g.diagnostics!==void 0&&(A.diagnostics=Un(g.diagnostics)),g.edit!==void 0)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return g.command!==void 0&&(A.command=K(g.command)),g.isPreferred!==void 0&&(A.isPreferred=g.isPreferred),g.disabled!==void 0&&(A.disabled={reason:g.disabled.reason}),A}async function $n(g,A){if(g==null)return g;let Y;return g.only&&Pr.string(g.only.value)&&(Y=[g.only.value]),le.CodeActionContext.create(await Mn(g.diagnostics,A),Y,Gt(g.triggerKind))}function vi(g){if(g==null)return g;let A;return g.only&&Pr.string(g.only.value)&&(A=[g.only.value]),le.CodeActionContext.create(Un(g.diagnostics),A,Gt(g.triggerKind))}function Gt(g){switch(g){case Ct.CodeActionTriggerKind.Invoke:return le.CodeActionTriggerKind.Invoked;case Ct.CodeActionTriggerKind.Automatic:return le.CodeActionTriggerKind.Automatic;default:return}}function C(g){if(g!=null)return g.value}function L(g){return g==null?g:le.InlineValueContext.create(g.frameId,de(g.stoppedLocation))}function B(g,A,Y){return{context:le.InlineCompletionContext.create(Y.triggerKind,Y.selectedCompletionInfo),textDocument:r(g),position:mt(A)}}function K(g){let A=le.Command.create(g.title,g.command);return g.arguments&&(A.arguments=g.arguments),A}function De(g){let A=le.CodeLens.create(de(g.range));return g.command&&(A.command=K(g.command)),g instanceof QN.default&&g.data&&(A.data=g.data),A}function Se(g,A){let Y={tabSize:g.tabSize,insertSpaces:g.insertSpaces};return A.trimTrailingWhitespace&&(Y.trimTrailingWhitespace=!0),A.trimFinalNewlines&&(Y.trimFinalNewlines=!0),A.insertFinalNewline&&(Y.insertFinalNewline=!0),Y}function Ae(g){return{textDocument:r(g)}}function Ue(g){return{textDocument:r(g)}}function me(g){let A=le.DocumentLink.create(de(g.range));g.target&&(A.target=i(g.target)),g.tooltip!==void 0&&(A.tooltip=g.tooltip);let Y=g instanceof ZN.default?g:void 0;return Y&&Y.data&&(A.data=Y.data),A}function Pe(g){return{textDocument:r(g)}}function ye(g){let A={name:g.name,kind:Lt(g.kind),uri:i(g.uri),range:de(g.range),selectionRange:de(g.selectionRange)};return g.detail!==void 0&&g.detail.length>0&&(A.detail=g.detail),g.tags!==void 0&&(A.tags=fn(g.tags)),g instanceof eA.default&&g.data!==void 0&&(A.data=g.data),A}function ze(g){let A={name:g.name,kind:Lt(g.kind),uri:i(g.uri),range:de(g.range),selectionRange:de(g.selectionRange)};return g.detail!==void 0&&g.detail.length>0&&(A.detail=g.detail),g.tags!==void 0&&(A.tags=fn(g.tags)),g instanceof tA.default&&g.data!==void 0&&(A.data=g.data),A}function lt(g){let A=g instanceof nA.default?{name:g.name,kind:Lt(g.kind),location:g.hasRange?Re(g.location):{uri:t(g.location.uri)},data:g.data}:{name:g.name,kind:Lt(g.kind),location:Re(g.location)};return g.tags!==void 0&&(A.tags=fn(g.tags)),g.containerName!==""&&(A.containerName=g.containerName),A}function Dt(g){let A=typeof g.label=="string"?g.label:g.label.map(Ni),Y=le.InlayHint.create(mt(g.position),A);return g.kind!==void 0&&(Y.kind=g.kind),g.textEdits!==void 0&&(Y.textEdits=vt(g.textEdits)),g.tooltip!==void 0&&(Y.tooltip=Ai(g.tooltip)),g.paddingLeft!==void 0&&(Y.paddingLeft=g.paddingLeft),g.paddingRight!==void 0&&(Y.paddingRight=g.paddingRight),g instanceof iA.default&&g.data!==void 0&&(Y.data=g.data),Y}function Ni(g){let A=le.InlayHintLabelPart.create(g.value);return g.location!==void 0&&(A.location=Re(g.location)),g.command!==void 0&&(A.command=K(g.command)),g.tooltip!==void 0&&(A.tooltip=Ai(g.tooltip)),A}function Ai(g){return typeof g=="string"?g:{kind:le.MarkupKind.Markdown,value:g.value}}return{asUri:i,asTextDocumentIdentifier:r,asTextDocumentItem:s,asVersionedTextDocumentIdentifier:o,asOpenTextDocumentParams:a,asChangeTextDocumentParams:l,asCloseTextDocumentParams:p,asSaveTextDocumentParams:h,asWillSaveTextDocumentParams:f,asDidCreateFilesParams:y,asDidRenameFilesParams:w,asDidDeleteFilesParams:S,asWillCreateFilesParams:O,asWillRenameFilesParams:k,asWillDeleteFilesParams:N,asTextDocumentPositionParams:j,asCompletionParams:$,asSignatureHelpParams:Ne,asWorkerPosition:ct,asRange:de,asRanges:ut,asPosition:mt,asPositions:se,asPositionsSync:ie,asLocation:Re,asDiagnosticSeverity:Ke,asDiagnosticTag:gt,asDiagnostic:Ge,asDiagnostics:Mn,asDiagnosticsSync:Un,asCompletionItem:Dn,asTextEdit:ti,asSymbolKind:Lt,asSymbolTag:Nt,asSymbolTags:fn,asReferenceParams:Zt,asCodeAction:ni,asCodeActionSync:gi,asCodeActionContext:$n,asCodeActionContextSync:vi,asInlineValueContext:L,asCommand:K,asCodeLens:De,asFormattingOptions:Se,asDocumentSymbolParams:Ae,asCodeLensParams:Ue,asDocumentLink:me,asDocumentLinkParams:Pe,asCallHierarchyItem:ye,asTypeHierarchyItem:ze,asInlayHint:Dt,asWorkspaceSymbol:lt,asInlineCompletionParams:B}}yu.createConverter=rA});var D0=T(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.createConverter=void 0;var W=require("vscode"),ae=ue(),An=qn(),Ee=vu(),sA=Vf(),oA=Yf(),aA=eh(),cA=ih(),C0=oh(),uA=uh(),lA=ph(),dA=mh(),pA=xh(),R0=ue(),bu;(function(n){function e(t){let i=t;return i&&An.string(i.language)&&An.string(i.value)}n.is=e})(bu||(bu={}));function fA(n,e,t){let r=n||(d=>W.Uri.parse(d));function s(d){return r(d)}function o(d){let E=[];for(let U of d)if(typeof U=="string")E.push(U);else if(R0.NotebookCellTextDocumentFilter.is(U))if(typeof U.notebook=="string")E.push({notebookType:U.notebook,language:U.language});else{let Z=U.notebook.notebookType??"*";E.push({notebookType:Z,scheme:U.notebook.scheme,pattern:U.notebook.pattern,language:U.language})}else R0.TextDocumentFilter.is(U)&&E.push({language:U.language,scheme:U.scheme,pattern:U.pattern});return E}async function a(d,E){return Ee.map(d,u,E)}function c(d){let E=new Array(d.length);for(let U=0;U<d.length;U++)E[U]=u(d[U]);return E}function u(d){let E=new C0.ProtocolDiagnostic(f(d.range),d.message,w(d.severity),d.data);if(d.code!==void 0){if(typeof d.code=="string"||typeof d.code=="number")ae.CodeDescription.is(d.codeDescription)?E.code={value:d.code,target:s(d.codeDescription.href)}:E.code=d.code;else if(C0.DiagnosticCode.is(d.code)){E.hasDiagnosticCode=!0;let U=d.code;E.code={value:U.value,target:s(U.target)}}}return d.source&&(E.source=d.source),d.relatedInformation&&(E.relatedInformation=l(d.relatedInformation)),Array.isArray(d.tags)&&(E.tags=p(d.tags)),E}function l(d){let E=new Array(d.length);for(let U=0;U<d.length;U++){let Z=d[U];E[U]=new W.DiagnosticRelatedInformation(Ke(Z.location),Z.message)}return E}function p(d){if(!d)return;let E=[];for(let U of d){let Z=h(U);Z!==void 0&&E.push(Z)}return E.length>0?E:void 0}function h(d){switch(d){case ae.DiagnosticTag.Unnecessary:return W.DiagnosticTag.Unnecessary;case ae.DiagnosticTag.Deprecated:return W.DiagnosticTag.Deprecated;default:return}}function x(d){return d?new W.Position(d.line,d.character):void 0}function f(d){return d?new W.Range(d.start.line,d.start.character,d.end.line,d.end.character):void 0}async function y(d,E){return Ee.map(d,U=>new W.Range(U.start.line,U.start.character,U.end.line,U.end.character),E)}function w(d){if(d==null)return W.DiagnosticSeverity.Error;switch(d){case ae.DiagnosticSeverity.Error:return W.DiagnosticSeverity.Error;case ae.DiagnosticSeverity.Warning:return W.DiagnosticSeverity.Warning;case ae.DiagnosticSeverity.Information:return W.DiagnosticSeverity.Information;case ae.DiagnosticSeverity.Hint:return W.DiagnosticSeverity.Hint}return W.DiagnosticSeverity.Error}function S(d){if(An.string(d))return k(d);if(bu.is(d))return k().appendCodeblock(d.value,d.language);if(Array.isArray(d)){let E=[];for(let U of d){let Z=k();bu.is(U)?Z.appendCodeblock(U.value,U.language):Z.appendMarkdown(U),E.push(Z)}return E}else return k(d)}function O(d){if(An.string(d))return d;switch(d.kind){case ae.MarkupKind.Markdown:return k(d.value);case ae.MarkupKind.PlainText:return d.value;default:return`Unsupported Markup content received. Kind is: ${d.kind}`}}function k(d){let E;if(d===void 0||typeof d=="string")E=new W.MarkdownString(d);else switch(d.kind){case ae.MarkupKind.Markdown:E=new W.MarkdownString(d.value);break;case ae.MarkupKind.PlainText:E=new W.MarkdownString,E.appendText(d.value);break;default:E=new W.MarkdownString,E.appendText(`Unsupported Markup content received. Kind is: ${d.kind}`);break}return E.isTrusted=e,E.supportHtml=t,E}function N(d){if(d)return new W.Hover(S(d.contents),f(d.range))}async function j(d,E,U){if(!d)return;if(Array.isArray(d))return Ee.map(d,ri=>Oe(ri,E),U);let Z=d,{defaultRange:Tt,commitCharacters:At}=G(Z,E),Le=await Ee.map(Z.items,ri=>Oe(ri,At,Tt,Z.itemDefaults?.insertTextMode,Z.itemDefaults?.insertTextFormat,Z.itemDefaults?.data),U);return new W.CompletionList(Le,Z.isIncomplete)}function G(d,E){let U=d.itemDefaults?.editRange,Z=d.itemDefaults?.commitCharacters??E;return ae.Range.is(U)?{defaultRange:f(U),commitCharacters:Z}:U!==void 0?{defaultRange:{inserting:f(U.insert),replacing:f(U.replace)},commitCharacters:Z}:{defaultRange:void 0,commitCharacters:Z}}function $(d){return ae.CompletionItemKind.Text<=d&&d<=ae.CompletionItemKind.TypeParameter?[d-1,void 0]:[W.CompletionItemKind.Text,d]}function Q(d){switch(d){case ae.CompletionItemTag.Deprecated:return W.CompletionItemTag.Deprecated}}function te(d){if(d==null)return[];let E=[];for(let U of d){let Z=Q(U);Z!==void 0&&E.push(Z)}return E}function Oe(d,E,U,Z,Tt,At){let Le=te(d.tags),ri=Ye(d),He=new sA.default(ri);d.detail&&(He.detail=d.detail),d.documentation&&(He.documentation=O(d.documentation),He.documentationFormat=An.string(d.documentation)?"$string":d.documentation.kind),d.filterText&&(He.filterText=d.filterText);let aa=We(d,U,Tt);if(aa&&(He.insertText=aa.text,He.range=aa.range,He.fromEdit=aa.fromEdit),An.number(d.kind)){let[sT,Wg]=$(d.kind);He.kind=sT,Wg&&(He.originalItemKind=Wg)}d.sortText&&(He.sortText=d.sortText),d.additionalTextEdits&&(He.additionalTextEdits=mt(d.additionalTextEdits));let Hg=d.commitCharacters!==void 0?An.stringArray(d.commitCharacters)?d.commitCharacters:void 0:E;Hg&&(He.commitCharacters=Hg.slice()),d.command&&(He.command=vt(d.command)),(d.deprecated===!0||d.deprecated===!1)&&(He.deprecated=d.deprecated,d.deprecated===!0&&Le.push(W.CompletionItemTag.Deprecated)),(d.preselect===!0||d.preselect===!1)&&(He.preselect=d.preselect);let Bg=d.data??At;Bg!==void 0&&(He.data=Bg),Le.length>0&&(He.tags=Le);let yl=d.insertTextMode??Z;return yl!==void 0&&(He.insertTextMode=yl,yl===ae.InsertTextMode.asIs&&(He.keepWhitespace=!0)),He}function Ye(d){return ae.CompletionItemLabelDetails.is(d.labelDetails)?{label:d.label,detail:d.labelDetails.detail,description:d.labelDetails.description}:d.label}function We(d,E,U){let Z=d.insertTextFormat??U;if(d.textEdit!==void 0||E!==void 0){let[Tt,At]=d.textEdit!==void 0?Kt(d.textEdit):[E,d.textEditText??d.label];return Z===ae.InsertTextFormat.Snippet?{text:new W.SnippetString(At),range:Tt,fromEdit:!0}:{text:At,range:Tt,fromEdit:!0}}else return d.insertText?Z===ae.InsertTextFormat.Snippet?{text:new W.SnippetString(d.insertText),fromEdit:!1}:{text:d.insertText,fromEdit:!1}:void 0}function Kt(d){return ae.InsertReplaceEdit.is(d)?[{inserting:f(d.insert),replacing:f(d.replace)},d.newText]:[f(d.range),d.newText]}function Ne(d){if(d)return new W.TextEdit(f(d.range),d.newText)}async function ct(d,E){if(d)return Ee.map(d,Ne,E)}function mt(d){if(!d)return;let E=new Array(d.length);for(let U=0;U<d.length;U++)E[U]=Ne(d[U]);return E}async function se(d,E){if(!d)return;let U=new W.SignatureHelp;return An.number(d.activeSignature)?U.activeSignature=d.activeSignature:U.activeSignature=0,An.number(d.activeParameter)?U.activeParameter=d.activeParameter:U.activeParameter=0,d.signatures&&(U.signatures=await ie(d.signatures,E)),U}async function ie(d,E){return Ee.mapAsync(d,de,E)}async function de(d,E){let U=new W.SignatureInformation(d.label);return d.documentation!==void 0&&(U.documentation=O(d.documentation)),d.parameters!==void 0&&(U.parameters=await ut(d.parameters,E)),d.activeParameter!==void 0&&(U.activeParameter=d.activeParameter),U}function ut(d,E){return Ee.map(d,Re,E)}function Re(d){let E=new W.ParameterInformation(d.label);return d.documentation&&(E.documentation=O(d.documentation)),E}function Ke(d){return d?new W.Location(r(d.uri),f(d.range)):void 0}async function Sn(d,E){if(d)return Cn(d,E)}async function gt(d,E){if(d)return Cn(d,E)}function it(d){if(!d)return;let E={targetUri:r(d.targetUri),targetRange:f(d.targetRange),originSelectionRange:f(d.originSelectionRange),targetSelectionRange:f(d.targetSelectionRange)};if(!E.targetSelectionRange)throw new Error("targetSelectionRange must not be undefined or null");return E}async function Cn(d,E){if(d)if(An.array(d)){if(d.length===0)return[];if(ae.LocationLink.is(d[0])){let U=d;return Ee.map(U,it,E)}else{let U=d;return Ee.map(U,Ke,E)}}else return ae.LocationLink.is(d)?[it(d)]:Ke(d)}async function Rn(d,E){if(d)return Ee.map(d,Ke,E)}async function Ge(d,E){if(d)return Ee.map(d,Mn,E)}function Mn(d){let E=new W.DocumentHighlight(f(d.range));return An.number(d.kind)&&(E.kind=Un(d.kind)),E}function Un(d){switch(d){case ae.DocumentHighlightKind.Text:return W.DocumentHighlightKind.Text;case ae.DocumentHighlightKind.Read:return W.DocumentHighlightKind.Read;case ae.DocumentHighlightKind.Write:return W.DocumentHighlightKind.Write}return W.DocumentHighlightKind.Text}async function ei(d,E){if(d)return Ee.map(d,Dn,E)}function yt(d){return d<=ae.SymbolKind.TypeParameter?d-1:W.SymbolKind.Property}function mi(d){switch(d){case ae.SymbolTag.Deprecated:return W.SymbolTag.Deprecated;default:return}}function zn(d){if(d==null)return;let E=[];for(let U of d){let Z=mi(U);Z!==void 0&&E.push(Z)}return E.length===0?void 0:E}function Dn(d){let E=d.data,U=d.location,Z=U.range===void 0||E!==void 0?new dA.default(d.name,yt(d.kind),d.containerName??"",U.range===void 0?r(U.uri):new W.Location(r(d.location.uri),f(U.range)),E):new W.SymbolInformation(d.name,yt(d.kind),d.containerName??"",new W.Location(r(d.location.uri),f(U.range)));return ti(Z,d),Z}async function Fi(d,E){if(d!=null)return Ee.map(d,Tn,E)}function Tn(d){let E=new W.DocumentSymbol(d.name,d.detail||"",yt(d.kind),f(d.range),f(d.selectionRange));if(ti(E,d),d.children!==void 0&&d.children.length>0){let U=[];for(let Z of d.children)U.push(Tn(Z));E.children=U}return E}function ti(d,E){d.tags=zn(E.tags),E.deprecated&&(d.tags?d.tags.includes(W.SymbolTag.Deprecated)||(d.tags=d.tags.concat(W.SymbolTag.Deprecated)):d.tags=[W.SymbolTag.Deprecated])}function vt(d){let E={title:d.title,command:d.command};return d.arguments&&(E.arguments=d.arguments),E}async function Lt(d,E){if(d)return Ee.map(d,vt,E)}let Nt=new Map;Nt.set(ae.CodeActionKind.Empty,W.CodeActionKind.Empty),Nt.set(ae.CodeActionKind.QuickFix,W.CodeActionKind.QuickFix),Nt.set(ae.CodeActionKind.Refactor,W.CodeActionKind.Refactor),Nt.set(ae.CodeActionKind.RefactorExtract,W.CodeActionKind.RefactorExtract),Nt.set(ae.CodeActionKind.RefactorInline,W.CodeActionKind.RefactorInline),Nt.set(ae.CodeActionKind.RefactorRewrite,W.CodeActionKind.RefactorRewrite),Nt.set(ae.CodeActionKind.Source,W.CodeActionKind.Source),Nt.set(ae.CodeActionKind.SourceOrganizeImports,W.CodeActionKind.SourceOrganizeImports);function fn(d){if(d==null)return;let E=Nt.get(d);if(E)return E;let U=d.split(".");E=W.CodeActionKind.Empty;for(let Z of U)E=E.append(Z);return E}function Zt(d){if(d!=null)return d.map(E=>fn(E))}async function ni(d,E){if(d==null)return;let U=new cA.default(d.title,d.data);return d.kind!==void 0&&(U.kind=fn(d.kind)),d.diagnostics!==void 0&&(U.diagnostics=c(d.diagnostics)),d.edit!==void 0&&(U.edit=await Gt(d.edit,E)),d.command!==void 0&&(U.command=vt(d.command)),d.isPreferred!==void 0&&(U.isPreferred=d.isPreferred),d.disabled!==void 0&&(U.disabled={reason:d.disabled.reason}),U}function gi(d,E){return Ee.mapAsync(d,async U=>ae.Command.is(U)?vt(U):ni(U,E),E)}function $n(d){if(!d)return;let E=new oA.default(f(d.range));return d.command&&(E.command=vt(d.command)),d.data!==void 0&&d.data!==null&&(E.data=d.data),E}async function vi(d,E){if(d)return Ee.map(d,$n,E)}async function Gt(d,E){if(!d)return;let U=new Map;if(d.changeAnnotations!==void 0){let At=d.changeAnnotations;await Ee.forEach(Object.keys(At),Le=>{let ri=C(At[Le]);U.set(Le,ri)},E)}let Z=At=>{if(At!==void 0)return U.get(At)},Tt=new W.WorkspaceEdit;if(d.documentChanges){let At=d.documentChanges;await Ee.forEach(At,Le=>{if(ae.CreateFile.is(Le))Tt.createFile(r(Le.uri),Le.options,Z(Le.annotationId));else if(ae.RenameFile.is(Le))Tt.renameFile(r(Le.oldUri),r(Le.newUri),Le.options,Z(Le.annotationId));else if(ae.DeleteFile.is(Le))Tt.deleteFile(r(Le.uri),Le.options,Z(Le.annotationId));else if(ae.TextDocumentEdit.is(Le)){let ri=r(Le.textDocument.uri);for(let He of Le.edits)ae.AnnotatedTextEdit.is(He)?Tt.replace(ri,f(He.range),He.newText,Z(He.annotationId)):Tt.replace(ri,f(He.range),He.newText)}else throw new Error(`Unknown workspace edit change received:
|
|
${JSON.stringify(Le,void 0,4)}`)},E)}else if(d.changes){let At=d.changes;await Ee.forEach(Object.keys(At),Le=>{Tt.set(r(Le),mt(At[Le]))},E)}return Tt}function C(d){if(d!==void 0)return{label:d.label,needsConfirmation:!!d.needsConfirmation,description:d.description}}function L(d){let E=f(d.range),U=d.target?s(d.target):void 0,Z=new aA.default(E,U);return d.tooltip!==void 0&&(Z.tooltip=d.tooltip),d.data!==void 0&&d.data!==null&&(Z.data=d.data),Z}async function B(d,E){if(d)return Ee.map(d,L,E)}function K(d){return new W.Color(d.red,d.green,d.blue,d.alpha)}function De(d){return new W.ColorInformation(f(d.range),K(d.color))}async function Se(d,E){if(d)return Ee.map(d,De,E)}function Ae(d){let E=new W.ColorPresentation(d.label);return E.additionalTextEdits=mt(d.additionalTextEdits),d.textEdit&&(E.textEdit=Ne(d.textEdit)),E}async function Ue(d,E){if(d)return Ee.map(d,Ae,E)}function me(d){if(d)switch(d){case ae.FoldingRangeKind.Comment:return W.FoldingRangeKind.Comment;case ae.FoldingRangeKind.Imports:return W.FoldingRangeKind.Imports;case ae.FoldingRangeKind.Region:return W.FoldingRangeKind.Region}}function Pe(d){return new W.FoldingRange(d.startLine,d.endLine,me(d.kind))}async function ye(d,E){if(d)return Ee.map(d,Pe,E)}function ze(d){return new W.SelectionRange(f(d.range),d.parent?ze(d.parent):void 0)}async function lt(d,E){return Array.isArray(d)?Ee.map(d,ze,E):[]}function Dt(d){return ae.InlineValueText.is(d)?new W.InlineValueText(f(d.range),d.text):ae.InlineValueVariableLookup.is(d)?new W.InlineValueVariableLookup(f(d.range),d.variableName,d.caseSensitiveLookup):new W.InlineValueEvaluatableExpression(f(d.range),d.expression)}async function Ni(d,E){return Array.isArray(d)?Ee.map(d,Dt,E):[]}async function Ai(d,E){let U=typeof d.label=="string"?d.label:await Ee.map(d.label,g,E),Z=new pA.default(x(d.position),U);return d.kind!==void 0&&(Z.kind=d.kind),d.textEdits!==void 0&&(Z.textEdits=await ct(d.textEdits,E)),d.tooltip!==void 0&&(Z.tooltip=A(d.tooltip)),d.paddingLeft!==void 0&&(Z.paddingLeft=d.paddingLeft),d.paddingRight!==void 0&&(Z.paddingRight=d.paddingRight),d.data!==void 0&&(Z.data=d.data),Z}function g(d){let E=new W.InlayHintLabelPart(d.value);return d.location!==void 0&&(E.location=Ke(d.location)),d.tooltip!==void 0&&(E.tooltip=A(d.tooltip)),d.command!==void 0&&(E.command=vt(d.command)),E}function A(d){return typeof d=="string"?d:k(d)}async function Y(d,E){if(Array.isArray(d))return Ee.mapAsync(d,Ai,E)}function ke(d){if(d===null)return;let E=new uA.default(yt(d.kind),d.name,d.detail||"",s(d.uri),f(d.range),f(d.selectionRange),d.data);return d.tags!==void 0&&(E.tags=zn(d.tags)),E}async function P(d,E){if(d!==null)return Ee.map(d,ke,E)}async function v(d,E){return new W.CallHierarchyIncomingCall(ke(d.from),await y(d.fromRanges,E))}async function R(d,E){if(d!==null)return Ee.mapAsync(d,v,E)}async function D(d,E){return new W.CallHierarchyOutgoingCall(ke(d.to),await y(d.fromRanges,E))}async function b(d,E){if(d!==null)return Ee.mapAsync(d,D,E)}async function m(d,E){if(d!=null)return new W.SemanticTokens(new Uint32Array(d.data),d.resultId)}function F(d){return new W.SemanticTokensEdit(d.start,d.deleteCount,d.data!==void 0?new Uint32Array(d.data):void 0)}async function M(d,E){if(d!=null)return new W.SemanticTokensEdits(d.edits.map(F),d.resultId)}function ce(d){return d}async function Qe(d,E){if(d!=null)return new W.LinkedEditingRanges(await y(d.ranges,E),$e(d.wordPattern))}function $e(d){if(d!=null)return new RegExp(d)}function en(d){if(d===null)return;let E=new lA.default(yt(d.kind),d.name,d.detail||"",s(d.uri),f(d.range),f(d.selectionRange),d.data);return d.tags!==void 0&&(E.tags=zn(d.tags)),E}async function hn(d,E){if(d!==null)return Ee.map(d,en,E)}function Hn(d){if(An.string(d))return d;if(ae.RelativePattern.is(d)){if(ae.URI.is(d.baseUri))return new W.RelativePattern(s(d.baseUri),d.pattern);if(ae.WorkspaceFolder.is(d.baseUri)){let E=W.workspace.getWorkspaceFolder(s(d.baseUri.uri));return E!==void 0?new W.RelativePattern(E,d.pattern):void 0}}}async function xe(d,E){if(!d)return;if(Array.isArray(d))return Ee.map(d,Tt=>ii(Tt),E);let U=d,Z=await Ee.map(U.items,Tt=>ii(Tt),E);return new W.InlineCompletionList(Z)}function ii(d){let E;typeof d.insertText=="string"?E=d.insertText:E=new W.SnippetString(d.insertText.value);let U;d.command&&(U=vt(d.command));let Z=new W.InlineCompletionItem(E,f(d.range),U);return d.filterText&&(Z.filterText=d.filterText),Z}return{asUri:s,asDocumentSelector:o,asDiagnostics:a,asDiagnostic:u,asRange:f,asRanges:y,asPosition:x,asDiagnosticSeverity:w,asDiagnosticTag:h,asHover:N,asCompletionResult:j,asCompletionItem:Oe,asTextEdit:Ne,asTextEdits:ct,asSignatureHelp:se,asSignatureInformations:ie,asSignatureInformation:de,asParameterInformations:ut,asParameterInformation:Re,asDeclarationResult:Sn,asDefinitionResult:gt,asLocation:Ke,asReferences:Rn,asDocumentHighlights:Ge,asDocumentHighlight:Mn,asDocumentHighlightKind:Un,asSymbolKind:yt,asSymbolTag:mi,asSymbolTags:zn,asSymbolInformations:ei,asSymbolInformation:Dn,asDocumentSymbols:Fi,asDocumentSymbol:Tn,asCommand:vt,asCommands:Lt,asCodeAction:ni,asCodeActionKind:fn,asCodeActionKinds:Zt,asCodeActionResult:gi,asCodeLens:$n,asCodeLenses:vi,asWorkspaceEdit:Gt,asDocumentLink:L,asDocumentLinks:B,asFoldingRangeKind:me,asFoldingRange:Pe,asFoldingRanges:ye,asColor:K,asColorInformation:De,asColorInformations:Se,asColorPresentation:Ae,asColorPresentations:Ue,asSelectionRange:ze,asSelectionRanges:lt,asInlineValue:Dt,asInlineValues:Ni,asInlayHint:Ai,asInlayHints:Y,asSemanticTokensLegend:ce,asSemanticTokens:m,asSemanticTokensEdit:F,asSemanticTokensEdits:M,asCallHierarchyItem:ke,asCallHierarchyItems:P,asCallHierarchyIncomingCall:v,asCallHierarchyIncomingCalls:R,asCallHierarchyOutgoingCall:D,asCallHierarchyOutgoingCalls:b,asLinkedEditingRanges:Qe,asTypeHierarchyItem:en,asTypeHierarchyItems:hn,asGlobPattern:Hn,asInlineCompletionResult:xe,asInlineCompletionItem:ii}}wu.createConverter=fA});var tt=T(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.generateUuid=In.parse=In.isUUID=In.v4=In.empty=void 0;var Ao=class{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}},Io=class n extends Ao{static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return n._oneOf(n._chars)}constructor(){super([n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),"-",n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),"-","4",n._randomHex(),n._randomHex(),n._randomHex(),"-",n._oneOf(n._timeHighBits),n._randomHex(),n._randomHex(),n._randomHex(),"-",n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex()].join(""))}};Io._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Io._timeHighBits=["8","9","a","b"];In.empty=new Ao("00000000-0000-0000-0000-000000000000");function T0(){return new Io}In.v4=T0;var hA=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function E0(n){return hA.test(n)}In.isUUID=E0;function mA(n){if(!E0(n))throw new Error("invalid uuid");return new Ao(n)}In.parse=mA;function gA(){return T0().asHex()}In.generateUuid=gA});var wh=T(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.ProgressPart=void 0;var P0=require("vscode"),k0=ue(),O0=qn(),bh=class{constructor(e,t,i){this._client=e,this._token=t,this._reported=0,this._infinite=!1,this._lspProgressDisposable=this._client.onProgress(k0.WorkDoneProgress.type,this._token,r=>{switch(r.kind){case"begin":this.begin(r);break;case"report":this.report(r);break;case"end":this.done(),i&&i(this);break}})}begin(e){this._infinite=e.percentage===void 0,this._lspProgressDisposable!==void 0&&P0.window.withProgress({location:P0.ProgressLocation.Window,cancellable:e.cancellable,title:e.title},async(t,i)=>{if(this._lspProgressDisposable!==void 0)return this._progress=t,this._cancellationToken=i,this._tokenDisposable=this._cancellationToken.onCancellationRequested(()=>{this._client.sendNotification(k0.WorkDoneProgressCancelNotification.type,{token:this._token})}),this.report(e),new Promise((r,s)=>{this._resolve=r,this._reject=s})})}report(e){if(this._infinite&&O0.string(e.message))this._progress!==void 0&&this._progress.report({message:e.message});else if(O0.number(e.percentage)){let t=Math.max(0,Math.min(e.percentage,100)),i=Math.max(0,t-this._reported);this._reported+=i,this._progress!==void 0&&this._progress.report({message:e.message,increment:i})}}cancel(){this.cleanup(),this._reject!==void 0&&(this._reject(),this._resolve=void 0,this._reject=void 0)}done(){this.cleanup(),this._resolve!==void 0&&(this._resolve(),this._resolve=void 0,this._reject=void 0)}cleanup(){this._lspProgressDisposable!==void 0&&(this._lspProgressDisposable.dispose(),this._lspProgressDisposable=void 0),this._tokenDisposable!==void 0&&(this._tokenDisposable.dispose(),this._tokenDisposable=void 0),this._progress=void 0,this._cancellationToken=void 0}};_u.ProgressPart=bh});var Ce=T(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.WorkspaceFeature=qt.TextDocumentLanguageFeature=qt.TextDocumentEventFeature=qt.DynamicDocumentFeature=qt.DynamicFeature=qt.StaticFeature=qt.ensure=qt.LSPCancellationError=void 0;var kr=require("vscode"),_h=ue(),Jt=qn(),q0=tt(),Sh=class extends kr.CancellationError{constructor(e){super(),this.data=e}};qt.LSPCancellationError=Sh;function vA(n,e){return n[e]===void 0&&(n[e]={}),n[e]}qt.ensure=vA;var F0;(function(n){function e(t){let i=t;return i!=null&&Jt.func(i.fillClientCapabilities)&&Jt.func(i.initialize)&&Jt.func(i.getState)&&Jt.func(i.clear)&&(i.fillInitializeParams===void 0||Jt.func(i.fillInitializeParams))}n.is=e})(F0||(qt.StaticFeature=F0={}));var N0;(function(n){function e(t){let i=t;return i!=null&&Jt.func(i.fillClientCapabilities)&&Jt.func(i.initialize)&&Jt.func(i.getState)&&Jt.func(i.clear)&&(i.fillInitializeParams===void 0||Jt.func(i.fillInitializeParams))&&Jt.func(i.register)&&Jt.func(i.unregister)&&i.registrationType!==void 0}n.is=e})(N0||(qt.DynamicFeature=N0={}));var jo=class{constructor(e){this._client=e}getState(){let e=this.getDocumentSelectors(),t=0;for(let r of e){t++;for(let s of kr.workspace.textDocuments)if(kr.languages.match(r,s)>0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}let i=t>0;return{kind:"document",id:this.registrationType.method,registrations:i,matches:!1}}};qt.DynamicDocumentFeature=jo;var Ch=class extends jo{static textDocumentFilter(e,t){for(let i of e)if(kr.languages.match(i,t)>0)return!0;return!1}constructor(e,t,i,r,s,o,a){super(e),this._event=t,this._type=i,this._middleware=r,this._createParams=s,this._textDocument=o,this._selectorFilter=a,this._selectors=new Map,this._onNotificationSent=new kr.EventEmitter}getStateInfo(){return[this._selectors.values(),!1]}getDocumentSelectors(){return this._selectors.values()}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=this._event(t=>{this.callback(t).catch(i=>{this._client.error(`Sending document notification ${this._type.method} failed.`,i)})})),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}async callback(e){let t=async i=>{let r=this._createParams(i);await this._client.sendNotification(this._type,r),this.notificationSent(this.getTextDocument(i),this._type,r)};if(this.matches(e)){let i=this._middleware();return i?i(e,r=>t(r)):t(e)}}matches(e){return this._client.hasDedicatedTextSynchronizationFeature(this._textDocument(e))?!1:!this._selectorFilter||this._selectorFilter(this._selectors.values(),e)}get onNotificationSent(){return this._onNotificationSent.event}notificationSent(e,t,i){this._onNotificationSent.fire({textDocument:e,type:t,params:i})}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._onNotificationSent.dispose(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(let t of this._selectors.values())if(kr.languages.match(t,e)>0)return{send:i=>this.callback(i)}}};qt.TextDocumentEventFeature=Ch;var Rh=class extends jo{constructor(e,t){super(e),this._registrationType=t,this._registrations=new Map}*getDocumentSelectors(){for(let e of this._registrations.values()){let t=e.data.registerOptions.documentSelector;t!==null&&(yield this._client.protocol2CodeConverter.asDocumentSelector(t))}}get registrationType(){return this._registrationType}register(e){if(!e.registerOptions.documentSelector)return;let t=this.registerLanguageProvider(e.registerOptions,e.id);this._registrations.set(e.id,{disposable:t[0],data:e,provider:t[1]})}unregister(e){let t=this._registrations.get(e);t!==void 0&&t.disposable.dispose()}clear(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getRegistration(e,t){if(t){if(_h.TextDocumentRegistrationOptions.is(t)){let i=_h.StaticRegistrationOptions.hasId(t)?t.id:q0.generateUuid(),r=t.documentSelector??e;if(r)return[i,Object.assign({},t,{documentSelector:r})]}else if(Jt.boolean(t)&&t===!0||_h.WorkDoneProgressOptions.is(t)){if(!e)return[void 0,void 0];let i=Jt.boolean(t)&&t===!0?{documentSelector:e}:Object.assign({},t,{documentSelector:e});return[q0.generateUuid(),i]}}else return[void 0,void 0];return[void 0,void 0]}getRegistrationOptions(e,t){if(!(!e||!t))return Jt.boolean(t)&&t===!0?{documentSelector:e}:Object.assign({},t,{documentSelector:e})}getProvider(e){for(let t of this._registrations.values()){let i=t.data.registerOptions.documentSelector;if(i!==null&&kr.languages.match(this._client.protocol2CodeConverter.asDocumentSelector(i),e)>0)return t.provider}}getAllProviders(){let e=[];for(let t of this._registrations.values())e.push(t.provider);return e}};qt.TextDocumentLanguageFeature=Rh;var Dh=class{constructor(e,t){this._client=e,this._registrationType=t,this._registrations=new Map}getState(){let e=this._registrations.size>0;return{kind:"workspace",id:this._registrationType.method,registrations:e}}get registrationType(){return this._registrationType}register(e){let t=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:t[0],provider:t[1]})}unregister(e){let t=this._registrations.get(e);t!==void 0&&t.disposable.dispose()}clear(){this._registrations.forEach(e=>{e.disposable.dispose()}),this._registrations.clear()}getProviders(){let e=[];for(let t of this._registrations.values())e.push(t.provider);return e}};qt.WorkspaceFeature=Dh});var I0=T((yU,A0)=>{var xA=typeof process=="object"&&process&&process.platform==="win32";A0.exports=xA?{sep:"\\"}:{sep:"/"}});var z0=T((bU,U0)=>{"use strict";U0.exports=L0;function L0(n,e,t){n instanceof RegExp&&(n=j0(n,t)),e instanceof RegExp&&(e=j0(e,t));var i=M0(n,e,t);return i&&{start:i[0],end:i[1],pre:t.slice(0,i[0]),body:t.slice(i[0]+n.length,i[1]),post:t.slice(i[1]+e.length)}}function j0(n,e){var t=e.match(n);return t?t[0]:null}L0.range=M0;function M0(n,e,t){var i,r,s,o,a,c=t.indexOf(n),u=t.indexOf(e,c+1),l=c;if(c>=0&&u>0){if(n===e)return[c,u];for(i=[],s=t.length;l>=0&&!a;)l==c?(i.push(l),c=t.indexOf(n,l+1)):i.length==1?a=[i.pop(),u]:(r=i.pop(),r<s&&(s=r,o=u),u=t.indexOf(e,l+1)),l=c<u&&c>=0?c:u;i.length&&(a=[s,o])}return a}});var X0=T((wU,V0)=>{var $0=z0();V0.exports=wA;var H0="\0SLASH"+Math.random()+"\0",B0="\0OPEN"+Math.random()+"\0",Eh="\0CLOSE"+Math.random()+"\0",W0="\0COMMA"+Math.random()+"\0",K0="\0PERIOD"+Math.random()+"\0";function Th(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function yA(n){return n.split("\\\\").join(H0).split("\\{").join(B0).split("\\}").join(Eh).split("\\,").join(W0).split("\\.").join(K0)}function bA(n){return n.split(H0).join("\\").split(B0).join("{").split(Eh).join("}").split(W0).join(",").split(K0).join(".")}function G0(n){if(!n)return[""];var e=[],t=$0("{","}",n);if(!t)return n.split(",");var i=t.pre,r=t.body,s=t.post,o=i.split(",");o[o.length-1]+="{"+r+"}";var a=G0(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function wA(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),Lo(yA(n),!0).map(bA)):[]}function _A(n){return"{"+n+"}"}function SA(n){return/^-?0\d/.test(n)}function CA(n,e){return n<=e}function RA(n,e){return n>=e}function Lo(n,e){var t=[],i=$0("{","}",n);if(!i)return[n];var r=i.pre,s=i.post.length?Lo(i.post,!1):[""];if(/\$$/.test(i.pre))for(var o=0;o<s.length;o++){var a=r+"{"+i.body+"}"+s[o];t.push(a)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),l=c||u,p=i.body.indexOf(",")>=0;if(!l&&!p)return i.post.match(/,.*\}/)?(n=i.pre+"{"+i.body+Eh+i.post,Lo(n)):[n];var h;if(l)h=i.body.split(/\.\./);else if(h=G0(i.body),h.length===1&&(h=Lo(h[0],!1).map(_A),h.length===1))return s.map(function(Oe){return i.pre+h[0]+Oe});var x;if(l){var f=Th(h[0]),y=Th(h[1]),w=Math.max(h[0].length,h[1].length),S=h.length==3?Math.abs(Th(h[2])):1,O=CA,k=y<f;k&&(S*=-1,O=RA);var N=h.some(SA);x=[];for(var j=f;O(j,y);j+=S){var G;if(u)G=String.fromCharCode(j),G==="\\"&&(G="");else if(G=String(j),N){var $=w-G.length;if($>0){var Q=new Array($+1).join("0");j<0?G="-"+Q+G.slice(1):G=Q+G}}x.push(G)}}else{x=[];for(var te=0;te<h.length;te++)x.push.apply(x,Lo(h[te],!1))}for(var te=0;te<x.length;te++)for(var o=0;o<s.length;o++){var a=r+x[te]+s[o];(!e||l||a)&&t.push(a)}}return t}});var Cu=T((SU,Fh)=>{var yn=Fh.exports=(n,e,t={})=>(Su(e),!t.nocomment&&e.charAt(0)==="#"?!1:new ks(e,t).match(n));Fh.exports=yn;var Oh=I0();yn.sep=Oh.sep;var Jn=Symbol("globstar **");yn.GLOBSTAR=Jn;var DA=X0(),J0={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},qh="[^/]",Ph=qh+"*?",TA="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",EA="(?:(?!(?:\\/|^)\\.).)*?",Z0=n=>n.split("").reduce((e,t)=>(e[t]=!0,e),{}),Y0=Z0("().*{}+?[]^$\\!"),PA=Z0("[.("),Q0=/\/+/;yn.filter=(n,e={})=>(t,i,r)=>yn(t,n,e);var lr=(n,e={})=>{let t={};return Object.keys(n).forEach(i=>t[i]=n[i]),Object.keys(e).forEach(i=>t[i]=e[i]),t};yn.defaults=n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return yn;let e=yn,t=(i,r,s)=>e(i,r,lr(n,s));return t.Minimatch=class extends e.Minimatch{constructor(r,s){super(r,lr(n,s))}},t.Minimatch.defaults=i=>e.defaults(lr(n,i)).Minimatch,t.filter=(i,r)=>e.filter(i,lr(n,r)),t.defaults=i=>e.defaults(lr(n,i)),t.makeRe=(i,r)=>e.makeRe(i,lr(n,r)),t.braceExpand=(i,r)=>e.braceExpand(i,lr(n,r)),t.match=(i,r,s)=>e.match(i,r,lr(n,s)),t};yn.braceExpand=(n,e)=>eR(n,e);var eR=(n,e={})=>(Su(n),e.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:DA(n)),kA=1024*64,Su=n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>kA)throw new TypeError("pattern is too long")},kh=Symbol("subparse");yn.makeRe=(n,e)=>new ks(n,e||{}).makeRe();yn.match=(n,e,t={})=>{let i=new ks(e,t);return n=n.filter(r=>i.match(r)),i.options.nonull&&!n.length&&n.push(e),n};var OA=n=>n.replace(/\\(.)/g,"$1"),qA=n=>n.replace(/\\([^-\]])/g,"$1"),FA=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),NA=n=>n.replace(/[[\]\\]/g,"\\$&"),ks=class{constructor(e,t){Su(e),t||(t={}),this.options=t,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let i=this.globSet=this.braceExpand();t.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,i),i=this.globParts=i.map(r=>r.split(Q0)),this.debug(this.pattern,i),i=i.map((r,s,o)=>r.map(this.parse,this)),this.debug(this.pattern,i),i=i.filter(r=>r.indexOf(!1)===-1),this.debug(this.pattern,i),this.set=i}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,t=!1,i=0;for(let r=0;r<e.length&&e.charAt(r)==="!";r++)t=!t,i++;i&&(this.pattern=e.slice(i)),this.negate=t}matchOne(e,t,i){var r=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var s=0,o=0,a=e.length,c=t.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var u=t[o],l=e[s];if(this.debug(t,u,l),u===!1)return!1;if(u===Jn){this.debug("GLOBSTAR",[t,u,l]);var p=s,h=o+1;if(h===c){for(this.debug("** at the end");s<a;s++)if(e[s]==="."||e[s]===".."||!r.dot&&e[s].charAt(0)===".")return!1;return!0}for(;p<a;){var x=e[p];if(this.debug(`
|
|
globstar while`,e,p,t,h,x),this.matchOne(e.slice(p),t.slice(h),i))return this.debug("globstar found match!",p,a,x),!0;if(x==="."||x===".."||!r.dot&&x.charAt(0)==="."){this.debug("dot detected!",e,p,t,h);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(i&&(this.debug(`
|
|
>>> no match, partial?`,e,p,t,h),p===a))}var f;if(typeof u=="string"?(f=l===u,this.debug("string match",u,l,f)):(f=l.match(u),this.debug("pattern match",u,l,f)),!f)return!1}if(s===a&&o===c)return!0;if(s===a)return i;if(o===c)return s===a-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return eR(this.pattern,this.options)}parse(e,t){Su(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return Jn;if(e==="")return"";let r="",s=!1,o=!1,a=[],c=[],u,l=!1,p=-1,h=-1,x,f,y,w=e.charAt(0)===".",S=i.dot||w,O=()=>w?"":S?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",k=$=>$.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",N=()=>{if(u){switch(u){case"*":r+=Ph,s=!0;break;case"?":r+=qh,s=!0;break;default:r+="\\"+u;break}this.debug("clearStateChar %j %j",u,r),u=!1}};for(let $=0,Q;$<e.length&&(Q=e.charAt($));$++){if(this.debug("%s %s %s %j",e,$,r,Q),o){if(Q==="/")return!1;Y0[Q]&&(r+="\\"),r+=Q,o=!1;continue}switch(Q){case"/":return!1;case"\\":if(l&&e.charAt($+1)==="-"){r+=Q;continue}N(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,$,r,Q),l){this.debug(" in class"),Q==="!"&&$===h+1&&(Q="^"),r+=Q;continue}this.debug("call clearStateChar %j",u),N(),u=Q,i.noext&&N();continue;case"(":{if(l){r+="(";continue}if(!u){r+="\\(";continue}let te={type:u,start:$-1,reStart:r.length,open:J0[u].open,close:J0[u].close};this.debug(this.pattern," ",te),a.push(te),r+=te.open,te.start===0&&te.type!=="!"&&(w=!0,r+=k(e.slice($+1))),this.debug("plType %j %j",u,r),u=!1;continue}case")":{let te=a[a.length-1];if(l||!te){r+="\\)";continue}a.pop(),N(),s=!0,f=te,r+=f.close,f.type==="!"&&c.push(Object.assign(f,{reEnd:r.length}));continue}case"|":{let te=a[a.length-1];if(l||!te){r+="\\|";continue}N(),r+="|",te.start===0&&te.type!=="!"&&(w=!0,r+=k(e.slice($+1)));continue}case"[":if(N(),l){r+="\\"+Q;continue}l=!0,h=$,p=r.length,r+=Q;continue;case"]":if($===h+1||!l){r+="\\"+Q;continue}x=e.substring(h+1,$);try{RegExp("["+NA(qA(x))+"]"),r+=Q}catch{r=r.substring(0,p)+"(?:$.)"}s=!0,l=!1;continue;default:N(),Y0[Q]&&!(Q==="^"&&l)&&(r+="\\"),r+=Q;break}}for(l&&(x=e.slice(h+1),y=this.parse(x,kh),r=r.substring(0,p)+"\\["+y[0],s=s||y[1]),f=a.pop();f;f=a.pop()){let $;$=r.slice(f.reStart+f.open.length),this.debug("setting tail",r,f),$=$.replace(/((?:\\{2}){0,64})(\\?)\|/g,(te,Oe,Ye)=>(Ye||(Ye="\\"),Oe+Oe+Ye+"|")),this.debug(`tail=%j
|
|
%s`,$,$,f,r);let Q=f.type==="*"?Ph:f.type==="?"?qh:"\\"+f.type;s=!0,r=r.slice(0,f.reStart)+Q+"\\("+$}N(),o&&(r+="\\\\");let j=PA[r.charAt(0)];for(let $=c.length-1;$>-1;$--){let Q=c[$],te=r.slice(0,Q.reStart),Oe=r.slice(Q.reStart,Q.reEnd-8),Ye=r.slice(Q.reEnd),We=r.slice(Q.reEnd-8,Q.reEnd)+Ye,Kt=te.split(")").length,Ne=te.split("(").length-Kt,ct=Ye;for(let se=0;se<Ne;se++)ct=ct.replace(/\)[+*?]?/,"");Ye=ct;let mt=Ye===""&&t!==kh?"(?:$|\\/)":"";r=te+Oe+Ye+mt+We}if(r!==""&&s&&(r="(?=.)"+r),j&&(r=O()+r),t===kh)return[r,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return OA(e);let G=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+r+"$",G),{_glob:e,_src:r})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,i=t.noglobstar?Ph:t.dot?TA:EA,r=t.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?FA(a):a===Jn?Jn:a._src).reduce((a,c)=>(a[a.length-1]===Jn&&c===Jn||a.push(c),a),[]),o.forEach((a,c)=>{a!==Jn||o[c-1]===Jn||(c===0?o.length>1?o[c+1]="(?:\\/|"+i+"\\/)?"+o[c+1]:o[c]=i:c===o.length-1?o[c-1]+="(?:\\/|"+i+")?":(o[c-1]+="(?:\\/|\\/"+i+"\\/)"+o[c+1],o[c+1]=Jn))}),o.filter(a=>a!==Jn).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,r)}catch{this.regexp=!1}return this.regexp}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let i=this.options;Oh.sep!=="/"&&(e=e.split(Oh.sep).join("/")),e=e.split(Q0),this.debug(this.pattern,"split",e);let r=this.set;this.debug(this.pattern,"set",r);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<r.length;o++){let a=r[o],c=e;if(i.matchBase&&a.length===1&&(c=[s]),this.matchOne(c,a,t))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return yn.defaults(e).Minimatch}};yn.Minimatch=ks});var zh=T(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.DiagnosticFeature=dr.DiagnosticPullMode=dr.vsdiag=void 0;var AA=Cu(),be=require("vscode"),ht=ue(),IA=tt(),Nh=Ce();function Ru(n,e){return n[e]===void 0&&(n[e]={}),n[e]}var jn;(function(n){let e;(function(t){t.full="full",t.unChanged="unChanged"})(e=n.DocumentDiagnosticReportKind||(n.DocumentDiagnosticReportKind={}))})(jn||(dr.vsdiag=jn={}));var Du;(function(n){n.onType="onType",n.onSave="onSave"})(Du||(dr.DiagnosticPullMode=Du={}));var Bt;(function(n){n.active="open",n.reschedule="reschedule",n.outDated="drop"})(Bt||(Bt={}));var Ah=class n{constructor(){this.open=new Set,this._onOpen=new be.EventEmitter,this._onClose=new be.EventEmitter,n.fillTabResources(this.open);let e=t=>{if(t.closed.length===0&&t.opened.length===0)return;let i=this.open,r=new Set;n.fillTabResources(r);let s=new Set,o=new Set(r);for(let a of i.values())r.has(a)?o.delete(a):s.add(a);if(this.open=r,s.size>0){let a=new Set;for(let c of s)a.add(be.Uri.parse(c));this._onClose.fire(a)}if(o.size>0){let a=new Set;for(let c of o)a.add(be.Uri.parse(c));this._onOpen.fire(a)}};be.window.tabGroups.onDidChangeTabs!==void 0?this.disposable=be.window.tabGroups.onDidChangeTabs(e):this.disposable={dispose:()=>{}}}get onClose(){return this._onClose.event}get onOpen(){return this._onOpen.event}dispose(){this.disposable.dispose()}isActive(e){return e instanceof be.Uri?be.window.activeTextEditor?.document.uri===e:be.window.activeTextEditor?.document===e}isVisible(e){let t=e instanceof be.Uri?e:e.uri;return this.open.has(t.toString())}getTabResources(){let e=new Set;return n.fillTabResources(new Set,e),e}static fillTabResources(e,t){let i=e??new Set;for(let r of be.window.tabGroups.all)for(let s of r.tabs){let o=s.input,a;o instanceof be.TabInputText?a=o.uri:o instanceof be.TabInputTextDiff?a=o.modified:o instanceof be.TabInputCustom&&(a=o.uri),a!==void 0&&!i.has(a.toString())&&(i.add(a.toString()),t!==void 0&&t.add(a))}}},Rt;(function(n){n[n.document=1]="document",n[n.workspace=2]="workspace"})(Rt||(Rt={}));var Ti;(function(n){function e(t){return t instanceof be.Uri?t.toString():t.uri.toString()}n.asKey=e})(Ti||(Ti={}));var Ih=class{constructor(){this.documentPullStates=new Map,this.workspacePullStates=new Map}track(e,t,i){let r=e===Rt.document?this.documentPullStates:this.workspacePullStates,[s,o,a]=t instanceof be.Uri?[t.toString(),t,i]:[t.uri.toString(),t.uri,t.version],c=r.get(s);return c===void 0&&(c={document:o,pulledVersion:a,resultId:void 0},r.set(s,c)),c}update(e,t,i,r){let s=e===Rt.document?this.documentPullStates:this.workspacePullStates,[o,a,c,u]=t instanceof be.Uri?[t.toString(),t,i,r]:[t.uri.toString(),t.uri,t.version,i],l=s.get(o);l===void 0?(l={document:a,pulledVersion:c,resultId:u},s.set(o,l)):(l.pulledVersion=c,l.resultId=u)}unTrack(e,t){let i=Ti.asKey(t);(e===Rt.document?this.documentPullStates:this.workspacePullStates).delete(i)}tracks(e,t){let i=Ti.asKey(t);return(e===Rt.document?this.documentPullStates:this.workspacePullStates).has(i)}getResultId(e,t){let i=Ti.asKey(t);return(e===Rt.document?this.documentPullStates:this.workspacePullStates).get(i)?.resultId}getAllResultIds(){let e=[];for(let[t,i]of this.workspacePullStates)this.documentPullStates.has(t)&&(i=this.documentPullStates.get(t)),i.resultId!==void 0&&e.push({uri:t,value:i.resultId});return e}},jh=class{constructor(e,t,i){this.client=e,this.tabs=t,this.options=i,this.isDisposed=!1,this.onDidChangeDiagnosticsEmitter=new be.EventEmitter,this.provider=this.createProvider(),this.diagnostics=be.languages.createDiagnosticCollection(i.identifier),this.openRequests=new Map,this.documentStates=new Ih,this.workspaceErrorCounter=0}knows(e,t){let i=t instanceof be.Uri?t:t.uri;return this.documentStates.tracks(e,t)||this.openRequests.has(i.toString())}forget(e,t){this.documentStates.unTrack(e,t)}pull(e,t){if(this.isDisposed)return;let i=e instanceof be.Uri?e:e.uri;this.pullAsync(e).then(()=>{t&&t()},r=>{this.client.error(`Document pull failed for text document ${i.toString()}`,r,!1)})}async pullAsync(e,t){if(this.isDisposed)return;let i=e instanceof be.Uri,r=i?e:e.uri,s=r.toString();t=i?t:e.version;let o=this.openRequests.get(s),a=i?this.documentStates.track(Rt.document,e,t):this.documentStates.track(Rt.document,e);if(o===void 0){let c=new be.CancellationTokenSource;this.openRequests.set(s,{state:Bt.active,document:e,version:t,tokenSource:c});let u,l;try{u=await this.provider.provideDiagnostics(e,a.resultId,c.token)??{kind:jn.DocumentDiagnosticReportKind.full,items:[]}}catch(p){if(p instanceof Nh.LSPCancellationError&&ht.DiagnosticServerCancellationData.is(p.data)&&p.data.retriggerRequest===!1&&(l={state:Bt.outDated,document:e}),l===void 0&&p instanceof be.CancellationError)l={state:Bt.reschedule,document:e};else throw p}if(l=l??this.openRequests.get(s),l===void 0){this.client.error(`Lost request state in diagnostic pull model. Clearing diagnostics for ${s}`),this.diagnostics.delete(r);return}if(this.openRequests.delete(s),!this.tabs.isVisible(e)){this.documentStates.unTrack(Rt.document,e);return}if(l.state===Bt.outDated)return;u!==void 0&&(u.kind===jn.DocumentDiagnosticReportKind.full&&this.diagnostics.set(r,u.items),a.pulledVersion=t,a.resultId=u.resultId),l.state===Bt.reschedule&&this.pull(e)}else o.state===Bt.active?(o.tokenSource.cancel(),this.openRequests.set(s,{state:Bt.reschedule,document:o.document})):o.state===Bt.outDated&&this.openRequests.set(s,{state:Bt.reschedule,document:o.document})}forgetDocument(e){let t=e instanceof be.Uri?e:e.uri,i=t.toString(),r=this.openRequests.get(i);this.options.workspaceDiagnostics?r!==void 0?this.openRequests.set(i,{state:Bt.reschedule,document:e}):this.pull(e,()=>{this.forget(Rt.document,e)}):(r!==void 0&&(r.state===Bt.active&&r.tokenSource.cancel(),this.openRequests.set(i,{state:Bt.outDated,document:e})),this.diagnostics.delete(t),this.forget(Rt.document,e))}pullWorkspace(){this.isDisposed||this.pullWorkspaceAsync().then(()=>{this.workspaceTimeout=(0,ht.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3)},e=>{!(e instanceof Nh.LSPCancellationError)&&!ht.DiagnosticServerCancellationData.is(e.data)&&(this.client.error("Workspace diagnostic pull failed.",e,!1),this.workspaceErrorCounter++),this.workspaceErrorCounter<=5&&(this.workspaceTimeout=(0,ht.RAL)().timer.setTimeout(()=>{this.pullWorkspace()},2e3))})}async pullWorkspaceAsync(){if(!this.provider.provideWorkspaceDiagnostics||this.isDisposed)return;this.workspaceCancellation!==void 0&&(this.workspaceCancellation.cancel(),this.workspaceCancellation=void 0),this.workspaceCancellation=new be.CancellationTokenSource;let e=this.documentStates.getAllResultIds().map(t=>({uri:this.client.protocol2CodeConverter.asUri(t.uri),value:t.value}));await this.provider.provideWorkspaceDiagnostics(e,this.workspaceCancellation.token,t=>{if(!(!t||this.isDisposed))for(let i of t.items)i.kind===jn.DocumentDiagnosticReportKind.full&&(this.documentStates.tracks(Rt.document,i.uri)||this.diagnostics.set(i.uri,i.items)),this.documentStates.update(Rt.workspace,i.uri,i.version??void 0,i.resultId)})}createProvider(){let e={onDidChangeDiagnostics:this.onDidChangeDiagnosticsEmitter.event,provideDiagnostics:(t,i,r)=>{let s=(a,c,u)=>{let l={identifier:this.options.identifier,textDocument:{uri:this.client.code2ProtocolConverter.asUri(a instanceof be.Uri?a:a.uri)},previousResultId:c};return this.isDisposed===!0||!this.client.isRunning()?{kind:jn.DocumentDiagnosticReportKind.full,items:[]}:this.client.sendRequest(ht.DocumentDiagnosticRequest.type,l,u).then(async p=>p==null||this.isDisposed||u.isCancellationRequested?{kind:jn.DocumentDiagnosticReportKind.full,items:[]}:p.kind===ht.DocumentDiagnosticReportKind.Full?{kind:jn.DocumentDiagnosticReportKind.full,resultId:p.resultId,items:await this.client.protocol2CodeConverter.asDiagnostics(p.items,u)}:{kind:jn.DocumentDiagnosticReportKind.unChanged,resultId:p.resultId},p=>this.client.handleFailedRequest(ht.DocumentDiagnosticRequest.type,u,p,{kind:jn.DocumentDiagnosticReportKind.full,items:[]}))},o=this.client.middleware;return o.provideDiagnostics?o.provideDiagnostics(t,i,r,s):s(t,i,r)}};return this.options.workspaceDiagnostics&&(e.provideWorkspaceDiagnostics=(t,i,r)=>{let s=async u=>u.kind===ht.DocumentDiagnosticReportKind.Full?{kind:jn.DocumentDiagnosticReportKind.full,uri:this.client.protocol2CodeConverter.asUri(u.uri),resultId:u.resultId,version:u.version,items:await this.client.protocol2CodeConverter.asDiagnostics(u.items,i)}:{kind:jn.DocumentDiagnosticReportKind.unChanged,uri:this.client.protocol2CodeConverter.asUri(u.uri),resultId:u.resultId,version:u.version},o=u=>{let l=[];for(let p of u)l.push({uri:this.client.code2ProtocolConverter.asUri(p.uri),value:p.value});return l},a=(u,l)=>{let p=(0,IA.generateUuid)(),h=this.client.onProgress(ht.WorkspaceDiagnosticRequest.partialResult,p,async f=>{if(f==null){r(null);return}let y={items:[]};for(let w of f.items)try{y.items.push(await s(w))}catch(S){this.client.error("Converting workspace diagnostics failed.",S)}r(y)}),x={identifier:this.options.identifier,previousResultIds:o(u),partialResultToken:p};return this.isDisposed===!0||!this.client.isRunning()?{items:[]}:this.client.sendRequest(ht.WorkspaceDiagnosticRequest.type,x,l).then(async f=>{if(l.isCancellationRequested)return{items:[]};let y={items:[]};for(let w of f.items)y.items.push(await s(w));return h.dispose(),r(y),{items:[]}},f=>(h.dispose(),this.client.handleFailedRequest(ht.DocumentDiagnosticRequest.type,l,f,{items:[]})))},c=this.client.middleware;return c.provideWorkspaceDiagnostics?c.provideWorkspaceDiagnostics(t,i,r,a):a(t,i,r)}),e}dispose(){this.isDisposed=!0,this.workspaceCancellation?.cancel(),this.workspaceTimeout?.dispose();for(let[e,t]of this.openRequests)t.state===Bt.active&&t.tokenSource.cancel(),this.openRequests.set(e,{state:Bt.outDated,document:t.document});this.diagnostics.dispose()}},Lh=class{constructor(e){this.diagnosticRequestor=e,this.documents=new ht.LinkedMap,this.isDisposed=!1}add(e){if(this.isDisposed===!0)return;let t=Ti.asKey(e);this.documents.has(t)||(this.documents.set(t,e,ht.Touch.Last),this.trigger())}remove(e){let t=Ti.asKey(e);this.documents.delete(t),this.documents.size===0?this.stop():t===this.endDocumentKey()&&(this.endDocument=this.documents.last)}trigger(){if(this.isDisposed!==!0){if(this.intervalHandle!==void 0){this.endDocument=this.documents.last;return}this.endDocument=this.documents.last,this.intervalHandle=(0,ht.RAL)().timer.setInterval(()=>{let e=this.documents.first;if(e!==void 0){let t=Ti.asKey(e);this.diagnosticRequestor.pull(e),this.documents.set(t,e,ht.Touch.Last),t===this.endDocumentKey()&&this.stop()}},200)}}dispose(){this.isDisposed=!0,this.stop(),this.documents.clear()}stop(){this.intervalHandle?.dispose(),this.intervalHandle=void 0,this.endDocument=void 0}endDocumentKey(){return this.endDocument!==void 0?Ti.asKey(this.endDocument):void 0}},Mh=class{constructor(e,t,i){let r=e.clientOptions.diagnosticPullOptions??{onChange:!0,onSave:!1},s=e.protocol2CodeConverter.asDocumentSelector(i.documentSelector),o=[],a=f=>{let y=i.documentSelector;if(r.match!==void 0)return r.match(y,f);for(let w of y)if(ht.TextDocumentFilter.is(w)){if(typeof w=="string"||w.language!==void 0&&w.language!=="*"||w.scheme!==void 0&&w.scheme!=="*"&&w.scheme!==f.scheme)return!1;if(w.pattern!==void 0){let S=new AA.Minimatch(w.pattern,{noext:!0});if(!S.makeRe()||!S.match(f.fsPath))return!1}}return!0},c=f=>f instanceof be.Uri?a(f):be.languages.match(s,f)>0&&t.isVisible(f),u=f=>f instanceof be.Uri?this.activeTextDocument?.uri.toString()===f.toString():this.activeTextDocument===f;this.diagnosticRequestor=new jh(e,t,i),this.backgroundScheduler=new Lh(this.diagnosticRequestor);let l=f=>{!c(f)||!i.interFileDependencies||u(f)||this.backgroundScheduler.add(f)};this.activeTextDocument=be.window.activeTextEditor?.document,be.window.onDidChangeActiveTextEditor(f=>{let y=this.activeTextDocument;this.activeTextDocument=f?.document,y!==void 0&&l(y),this.activeTextDocument!==void 0&&this.backgroundScheduler.remove(this.activeTextDocument)});let p=e.getFeature(ht.DidOpenTextDocumentNotification.method);o.push(p.onNotificationSent(f=>{let y=f.textDocument;this.diagnosticRequestor.knows(Rt.document,y)||c(y)&&this.diagnosticRequestor.pull(y,()=>{l(y)})})),o.push(t.onOpen(f=>{for(let y of f){if(this.diagnosticRequestor.knows(Rt.document,y))continue;let w=y.toString(),S;for(let O of be.workspace.textDocuments)if(w===O.uri.toString()){S=O;break}S!==void 0&&c(S)&&this.diagnosticRequestor.pull(S,()=>{l(S)})}}));let h=new Set;for(let f of be.workspace.textDocuments)c(f)&&(this.diagnosticRequestor.pull(f,()=>{l(f)}),h.add(f.uri.toString()));if(r.onTabs===!0)for(let f of t.getTabResources())!h.has(f.toString())&&c(f)&&this.diagnosticRequestor.pull(f,()=>{l(f)});if(r.onChange===!0){let f=e.getFeature(ht.DidChangeTextDocumentNotification.method);o.push(f.onNotificationSent(async y=>{let w=y.textDocument;(r.filter===void 0||!r.filter(w,Du.onType))&&this.diagnosticRequestor.knows(Rt.document,w)&&this.diagnosticRequestor.pull(w,()=>{this.backgroundScheduler.trigger()})}))}if(r.onSave===!0){let f=e.getFeature(ht.DidSaveTextDocumentNotification.method);o.push(f.onNotificationSent(y=>{let w=y.textDocument;(r.filter===void 0||!r.filter(w,Du.onSave))&&this.diagnosticRequestor.knows(Rt.document,w)&&this.diagnosticRequestor.pull(y.textDocument,()=>{this.backgroundScheduler.trigger()})}))}let x=e.getFeature(ht.DidCloseTextDocumentNotification.method);o.push(x.onNotificationSent(f=>{this.cleanUpDocument(f.textDocument)})),t.onClose(f=>{for(let y of f)this.cleanUpDocument(y)}),this.diagnosticRequestor.onDidChangeDiagnosticsEmitter.event(()=>{for(let f of be.workspace.textDocuments)c(f)&&this.diagnosticRequestor.pull(f)}),i.workspaceDiagnostics===!0&&i.identifier!=="da348dc5-c30a-4515-9d98-31ff3be38d14"&&this.diagnosticRequestor.pullWorkspace(),this.disposable=be.Disposable.from(...o,this.backgroundScheduler,this.diagnosticRequestor)}get onDidChangeDiagnosticsEmitter(){return this.diagnosticRequestor.onDidChangeDiagnosticsEmitter}get diagnostics(){return this.diagnosticRequestor.provider}cleanUpDocument(e){this.diagnosticRequestor.knows(Rt.document,e)&&(this.diagnosticRequestor.forgetDocument(e),this.backgroundScheduler.remove(e))}},Uh=class extends Nh.TextDocumentLanguageFeature{constructor(e){super(e,ht.DocumentDiagnosticRequest.type)}fillClientCapabilities(e){let t=Ru(Ru(e,"textDocument"),"diagnostic");t.dynamicRegistration=!0,t.relatedDocumentSupport=!1,Ru(Ru(e,"workspace"),"diagnostics").refreshSupport=!0}initialize(e,t){this._client.onRequest(ht.DiagnosticRefreshRequest.type,async()=>{for(let o of this.getAllProviders())o.onDidChangeDiagnosticsEmitter.fire()});let[r,s]=this.getRegistration(t,e.diagnosticProvider);!r||!s||this.register({id:r,registerOptions:s})}clear(){this.tabs!==void 0&&(this.tabs.dispose(),this.tabs=void 0),super.clear()}registerLanguageProvider(e){this.tabs===void 0&&(this.tabs=new Ah);let t=new Mh(this._client,this.tabs,e);return[t.disposable,t]}};dr.DiagnosticFeature=Uh});var iR=T(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.NotebookDocumentSyncFeature=void 0;var Wt=require("vscode"),jA=Cu(),Ei=ue(),LA=tt(),tR=qn();function nR(n,e){return n[e]===void 0&&(n[e]={}),n[e]}var Os;(function(n){let e;(function(t){function i(h,x){return{version:h.version,uri:x.asUri(h.uri)}}t.asVersionedNotebookDocumentIdentifier=i;function r(h,x,f){let y=Ei.NotebookDocument.create(f.asUri(h.uri),h.notebookType,h.version,s(x,f));return Object.keys(h.metadata).length>0&&(y.metadata=o(h.metadata)),y}t.asNotebookDocument=r;function s(h,x){return h.map(f=>a(f,x))}t.asNotebookCells=s;function o(h){return u(new Set,h)}t.asMetadata=o;function a(h,x){let f=Ei.NotebookCell.create(c(h.kind),x.asUri(h.document.uri));return Object.keys(h.metadata).length>0&&(f.metadata=o(h.metadata)),h.executionSummary!==void 0&&tR.number(h.executionSummary.executionOrder)&&tR.boolean(h.executionSummary.success)&&(f.executionSummary={executionOrder:h.executionSummary.executionOrder,success:h.executionSummary.success}),f}t.asNotebookCell=a;function c(h){switch(h){case Wt.NotebookCellKind.Markup:return Ei.NotebookCellKind.Markup;case Wt.NotebookCellKind.Code:return Ei.NotebookCellKind.Code}}function u(h,x){if(h.has(x))throw new Error("Can't deep copy cyclic structures.");if(Array.isArray(x)){let f=[];for(let y of x)if(y!==null&&typeof y=="object"||Array.isArray(y))f.push(u(h,y));else{if(y instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");f.push(y)}return f}else{let f=Object.keys(x),y=Object.create(null);for(let w of f){let S=x[w];if(S!==null&&typeof S=="object"||Array.isArray(S))y[w]=u(h,S);else{if(S instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");y[w]=S}}return y}}function l(h,x){let f=x.asChangeTextDocumentParams(h,h.document.uri,h.document.version);return{document:f.textDocument,changes:f.contentChanges}}t.asTextContentChange=l;function p(h,x){let f=Object.create(null);if(h.metadata&&(f.metadata=n.c2p.asMetadata(h.metadata)),h.cells!==void 0){let y=Object.create(null),w=h.cells;w.structure&&(y.structure={array:{start:w.structure.array.start,deleteCount:w.structure.array.deleteCount,cells:w.structure.array.cells!==void 0?w.structure.array.cells.map(S=>n.c2p.asNotebookCell(S,x)):void 0},didOpen:w.structure.didOpen!==void 0?w.structure.didOpen.map(S=>x.asOpenTextDocumentParams(S.document).textDocument):void 0,didClose:w.structure.didClose!==void 0?w.structure.didClose.map(S=>x.asCloseTextDocumentParams(S.document).textDocument):void 0}),w.data!==void 0&&(y.data=w.data.map(S=>n.c2p.asNotebookCell(S,x))),w.textContent!==void 0&&(y.textContent=w.textContent.map(S=>n.c2p.asTextContentChange(S,x))),Object.keys(y).length>0&&(f.cells=y)}return f}t.asNotebookDocumentChangeEvent=p})(e=n.c2p||(n.c2p={}))})(Os||(Os={}));var $h;(function(n){function e(a,c,u){let l=a.length,p=c.length,h=0;for(;h<p&&h<l&&t(a[h],c[h],u);)h++;if(h<p&&h<l){let x=l-1,f=p-1;for(;x>=0&&f>=0&&t(a[x],c[f],u);)x--,f--;let y=x+1-h,w=h===f+1?void 0:c.slice(h,f+1);return w!==void 0?{start:h,deleteCount:y,cells:w}:{start:h,deleteCount:y}}else return h<p?{start:h,deleteCount:0,cells:c.slice(h)}:h<l?{start:h,deleteCount:l-h}:void 0}n.computeDiff=e;function t(a,c,u=!0){return a.kind!==c.kind||a.document.uri.toString()!==c.document.uri.toString()||a.document.languageId!==c.document.languageId||!i(a.executionSummary,c.executionSummary)?!1:!u||u&&s(a.metadata,c.metadata)}function i(a,c){return a===c?!0:a===void 0||c===void 0?!1:a.executionOrder===c.executionOrder&&a.success===c.success&&r(a.timing,c.timing)}function r(a,c){return a===c?!0:a===void 0||c===void 0?!1:a.startTime===c.startTime&&a.endTime===c.endTime}function s(a,c){if(a===c)return!0;if(a==null||c===null||c===void 0||typeof a!=typeof c||typeof a!="object")return!1;let u=Array.isArray(a),l=Array.isArray(c);if(u!==l)return!1;if(u&&l){if(a.length!==c.length)return!1;for(let p=0;p<a.length;p++)if(!s(a[p],c[p]))return!1}if(o(a)&&o(c)){let p=Object.keys(a),h=Object.keys(c);if(p.length!==h.length||(p.sort(),h.sort(),!s(p,h)))return!1;for(let x=0;x<p.length;x++){let f=p[x];if(!s(a[f],c[f]))return!1}return!0}return!1}function o(a){return a!==null&&typeof a=="object"}n.isObjectLiteral=o})($h||($h={}));var Hh;(function(n){function e(t,i){if(typeof t=="string")return t==="*"||i.notebookType===t;if(t.notebookType!==void 0&&t.notebookType!=="*"&&i.notebookType!==t.notebookType)return!1;let r=i.uri;if(t.scheme!==void 0&&t.scheme!=="*"&&r.scheme!==t.scheme)return!1;if(t.pattern!==void 0){let s=new jA.Minimatch(t.pattern,{noext:!0});if(!s.makeRe()||!s.match(r.fsPath))return!1}return!0}n.matchNotebook=e})(Hh||(Hh={}));var Tu;(function(n){function e(i){let r=i.notebookSelector,s=[];for(let o of r){let a=(typeof o.notebook=="string"?o.notebook:o.notebook?.notebookType)??"*",c=typeof o.notebook=="string"?void 0:o.notebook?.scheme,u=typeof o.notebook=="string"?void 0:o.notebook?.pattern;if(o.cells!==void 0)for(let l of o.cells)s.push(t(a,c,u,l.language));else s.push(t(a,c,u,void 0))}return s}n.asDocumentSelector=e;function t(i,r,s,o){return r===void 0&&s===void 0?{notebook:i,language:o}:{notebook:{notebookType:i,scheme:r,pattern:s},language:o}}})(Tu||(Tu={}));var Eu;(function(n){function e(t){return{cells:t,uris:new Set(t.map(i=>i.document.uri.toString()))}}n.create=e})(Eu||(Eu={}));var qs=class{constructor(e,t){this.client=e,this.options=t,this.notebookSyncInfo=new Map,this.notebookDidOpen=new Set,this.disposables=[],this.selector=e.protocol2CodeConverter.asDocumentSelector(Tu.asDocumentSelector(t)),Wt.workspace.onDidOpenNotebookDocument(i=>{this.notebookDidOpen.add(i.uri.toString()),this.didOpen(i)},void 0,this.disposables);for(let i of Wt.workspace.notebookDocuments)this.notebookDidOpen.add(i.uri.toString()),this.didOpen(i);Wt.workspace.onDidChangeNotebookDocument(i=>this.didChangeNotebookDocument(i),void 0,this.disposables),this.options.save===!0&&Wt.workspace.onDidSaveNotebookDocument(i=>this.didSave(i),void 0,this.disposables),Wt.workspace.onDidCloseNotebookDocument(i=>{this.didClose(i),this.notebookDidOpen.delete(i.uri.toString())},void 0,this.disposables)}getState(){for(let e of Wt.workspace.notebookDocuments)if(this.getMatchingCells(e)!==void 0)return{kind:"document",id:"$internal",registrations:!0,matches:!0};return{kind:"document",id:"$internal",registrations:!0,matches:!1}}get mode(){return"notebook"}handles(e){return Wt.languages.match(this.selector,e)>0}didOpenNotebookCellTextDocument(e,t){if(Wt.languages.match(this.selector,t.document)===0||!this.notebookDidOpen.has(e.uri.toString()))return;let i=this.notebookSyncInfo.get(e.uri.toString()),r=this.cellMatches(e,t);if(i!==void 0){let s=i.uris.has(t.document.uri.toString());if(r&&s||!r&&!s)return;if(r){let o=this.getMatchingCells(e);if(o!==void 0){let a=this.asNotebookDocumentChangeEvent(e,void 0,i,o);a!==void 0&&this.doSendChange(a,o).catch(()=>{})}}}else r&&this.doSendOpen(e,[t]).catch(()=>{})}didChangeNotebookCellTextDocument(e,t){Wt.languages.match(this.selector,t.document)!==0&&this.doSendChange({notebook:e,cells:{textContent:[t]}},void 0).catch(()=>{})}didCloseNotebookCellTextDocument(e,t){let i=this.notebookSyncInfo.get(e.uri.toString());if(i===void 0)return;let r=t.document.uri,s=i.cells.findIndex(o=>o.document.uri.toString()===r.toString());if(s!==-1)if(s===0&&i.cells.length===1)this.doSendClose(e,i.cells).catch(()=>{});else{let o=i.cells.slice(),a=o.splice(s,1);this.doSendChange({notebook:e,cells:{structure:{array:{start:s,deleteCount:1},didClose:a}}},o).catch(()=>{})}}dispose(){for(let e of this.disposables)e.dispose()}didOpen(e,t=this.getMatchingCells(e),i=this.notebookSyncInfo.get(e.uri.toString())){if(i!==void 0)if(t!==void 0){let r=this.asNotebookDocumentChangeEvent(e,void 0,i,t);r!==void 0&&this.doSendChange(r,t).catch(()=>{})}else this.doSendClose(e,[]).catch(()=>{});else{if(t===void 0)return;this.doSendOpen(e,t).catch(()=>{})}}didChangeNotebookDocument(e){let t=e.notebook,i=this.notebookSyncInfo.get(t.uri.toString());if(i===void 0){if(e.contentChanges.length===0)return;let r=this.getMatchingCells(t);if(r===void 0)return;this.didOpen(t,r,i)}else{let r=this.getMatchingCells(t);if(r===void 0){this.didClose(t,i);return}let s=this.asNotebookDocumentChangeEvent(e.notebook,e,i,r);s!==void 0&&this.doSendChange(s,r).catch(()=>{})}}didSave(e){this.notebookSyncInfo.get(e.uri.toString())!==void 0&&this.doSendSave(e).catch(()=>{})}didClose(e,t=this.notebookSyncInfo.get(e.uri.toString())){if(t===void 0)return;let i=e.getCells().filter(r=>t.uris.has(r.document.uri.toString()));this.doSendClose(e,i).catch(()=>{})}async sendDidOpenNotebookDocument(e){let t=this.getMatchingCells(e);if(t!==void 0)return this.doSendOpen(e,t)}async doSendOpen(e,t){let i=async(s,o)=>{let a=Os.c2p.asNotebookDocument(s,o,this.client.code2ProtocolConverter),c=o.map(u=>this.client.code2ProtocolConverter.asTextDocumentItem(u.document));try{await this.client.sendNotification(Ei.DidOpenNotebookDocumentNotification.type,{notebookDocument:a,cellTextDocuments:c})}catch(u){throw this.client.error("Sending DidOpenNotebookDocumentNotification failed",u),u}},r=this.client.middleware?.notebooks;return this.notebookSyncInfo.set(e.uri.toString(),Eu.create(t)),r?.didOpen!==void 0?r.didOpen(e,t,i):i(e,t)}async sendDidChangeNotebookDocument(e){return this.doSendChange(e,void 0)}async doSendChange(e,t=this.getMatchingCells(e.notebook)){let i=async s=>{try{await this.client.sendNotification(Ei.DidChangeNotebookDocumentNotification.type,{notebookDocument:Os.c2p.asVersionedNotebookDocumentIdentifier(s.notebook,this.client.code2ProtocolConverter),change:Os.c2p.asNotebookDocumentChangeEvent(s,this.client.code2ProtocolConverter)})}catch(o){throw this.client.error("Sending DidChangeNotebookDocumentNotification failed",o),o}},r=this.client.middleware?.notebooks;return e.cells?.structure!==void 0&&this.notebookSyncInfo.set(e.notebook.uri.toString(),Eu.create(t??[])),r?.didChange!==void 0?r?.didChange(e,i):i(e)}async sendDidSaveNotebookDocument(e){return this.doSendSave(e)}async doSendSave(e){let t=async r=>{try{await this.client.sendNotification(Ei.DidSaveNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(r.uri)}})}catch(s){throw this.client.error("Sending DidSaveNotebookDocumentNotification failed",s),s}},i=this.client.middleware?.notebooks;return i?.didSave!==void 0?i.didSave(e,t):t(e)}async sendDidCloseNotebookDocument(e){return this.doSendClose(e,this.getMatchingCells(e)??[])}async doSendClose(e,t){let i=async(s,o)=>{try{await this.client.sendNotification(Ei.DidCloseNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(s.uri)},cellTextDocuments:o.map(a=>this.client.code2ProtocolConverter.asTextDocumentIdentifier(a.document))})}catch(a){throw this.client.error("Sending DidCloseNotebookDocumentNotification failed",a),a}},r=this.client.middleware?.notebooks;return this.notebookSyncInfo.delete(e.uri.toString()),r?.didClose!==void 0?r.didClose(e,t,i):i(e,t)}asNotebookDocumentChangeEvent(e,t,i,r){if(t!==void 0&&t.notebook!==e)throw new Error("Notebook must be identical");let s={notebook:e};t?.metadata!==void 0&&(s.metadata=Os.c2p.asMetadata(t.metadata));let o;if(t?.cellChanges!==void 0&&t.cellChanges.length>0){let a=[];o=new Set(r.map(c=>c.document.uri.toString()));for(let c of t.cellChanges)o.has(c.cell.document.uri.toString())&&(c.executionSummary!==void 0||c.metadata!==void 0)&&a.push(c.cell);a.length>0&&(s.cells=s.cells??{},s.cells.data=a)}if((t?.contentChanges!==void 0&&t.contentChanges.length>0||t===void 0)&&i!==void 0&&r!==void 0){let a=i.cells,c=r,u=$h.computeDiff(a,c,!1),l,p;if(u!==void 0){l=u.cells===void 0?new Map:new Map(u.cells.map(f=>[f.document.uri.toString(),f])),p=u.deleteCount===0?new Map:new Map(a.slice(u.start,u.start+u.deleteCount).map(f=>[f.document.uri.toString(),f]));for(let f of Array.from(p.keys()))l.has(f)&&(p.delete(f),l.delete(f));s.cells=s.cells??{};let h=[],x=[];if(l.size>0||p.size>0){for(let f of l.values())h.push(f);for(let f of p.values())x.push(f)}s.cells.structure={array:u,didOpen:h,didClose:x}}}return Object.keys(s).length>1?s:void 0}getMatchingCells(e,t=e.getCells()){if(this.options.notebookSelector!==void 0){for(let i of this.options.notebookSelector)if(i.notebook===void 0||Hh.matchNotebook(i.notebook,e)){let r=this.filterCells(e,t,i.cells);return r.length===0?void 0:r}}}cellMatches(e,t){let i=this.getMatchingCells(e,[t]);return i!==void 0&&i[0]===t}filterCells(e,t,i){let r=i!==void 0?t.filter(s=>{let o=s.document.languageId;return i.some(a=>a.language==="*"||o===a.language)}):t;return typeof this.client.clientOptions.notebookDocumentOptions?.filterCells=="function"?this.client.clientOptions.notebookDocumentOptions.filterCells(e,r):r}},Pu=class n{constructor(e){this.client=e,this.registrations=new Map,this.registrationType=Ei.NotebookDocumentSyncRegistrationType.type,Wt.workspace.onDidOpenTextDocument(t=>{if(t.uri.scheme!==n.CellScheme)return;let[i,r]=this.findNotebookDocumentAndCell(t);if(!(i===void 0||r===void 0))for(let s of this.registrations.values())s instanceof qs&&s.didOpenNotebookCellTextDocument(i,r)}),Wt.workspace.onDidChangeTextDocument(t=>{if(t.contentChanges.length===0)return;let i=t.document;if(i.uri.scheme!==n.CellScheme)return;let[r]=this.findNotebookDocumentAndCell(i);if(r!==void 0)for(let s of this.registrations.values())s instanceof qs&&s.didChangeNotebookCellTextDocument(r,t)}),Wt.workspace.onDidCloseTextDocument(t=>{if(t.uri.scheme!==n.CellScheme)return;let[i,r]=this.findNotebookDocumentAndCell(t);if(!(i===void 0||r===void 0))for(let s of this.registrations.values())s instanceof qs&&s.didCloseNotebookCellTextDocument(i,r)})}getState(){if(this.registrations.size===0)return{kind:"document",id:this.registrationType.method,registrations:!1,matches:!1};for(let e of this.registrations.values()){let t=e.getState();if(t.kind==="document"&&t.registrations===!0&&t.matches===!0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!1}}fillClientCapabilities(e){let t=nR(nR(e,"notebookDocument"),"synchronization");t.dynamicRegistration=!0,t.executionSummarySupport=!0}preInitialize(e){let t=e.notebookDocumentSync;t!==void 0&&(this.dedicatedChannel=this.client.protocol2CodeConverter.asDocumentSelector(Tu.asDocumentSelector(t)))}initialize(e){let t=e.notebookDocumentSync;if(t===void 0)return;let i=t.id??LA.generateUuid();this.register({id:i,registerOptions:t})}register(e){let t=new qs(this.client,e.registerOptions);this.registrations.set(e.id,t)}unregister(e){let t=this.registrations.get(e);t&&t.dispose()}clear(){for(let e of this.registrations.values())e.dispose();this.registrations.clear()}handles(e){if(e.uri.scheme!==n.CellScheme)return!1;if(this.dedicatedChannel!==void 0&&Wt.languages.match(this.dedicatedChannel,e)>0)return!0;for(let t of this.registrations.values())if(t.handles(e))return!0;return!1}getProvider(e){for(let t of this.registrations.values())if(t.handles(e.document))return t}findNotebookDocumentAndCell(e){let t=e.uri.toString();for(let i of Wt.workspace.notebookDocuments)for(let r of i.getCells())if(r.document.uri.toString()===t)return[i,r];return[void 0,void 0]}};ku.NotebookDocumentSyncFeature=Pu;Pu.CellScheme="vscode-notebook-cell"});var sR=T(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.SyncConfigurationFeature=pr.toJSONObject=pr.ConfigurationFeature=void 0;var Fs=require("vscode"),Mo=ue(),MA=qn(),UA=tt(),rR=Ce(),Bh=class{constructor(e){this._client=e}getState(){return{kind:"static"}}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.configuration=!0}initialize(){let e=this._client;e.onRequest(Mo.ConfigurationRequest.type,(t,i)=>{let r=o=>{let a=[];for(let c of o.items){let u=c.scopeUri!==void 0&&c.scopeUri!==null?this._client.protocol2CodeConverter.asUri(c.scopeUri):void 0;a.push(this.getConfiguration(u,c.section!==null?c.section:void 0))}return a},s=e.middleware.workspace;return s&&s.configuration?s.configuration(t,i,r):r(t,i)})}getConfiguration(e,t){let i=null;if(t){let r=t.lastIndexOf(".");if(r===-1)i=Or(Fs.workspace.getConfiguration(void 0,e).get(t));else{let s=Fs.workspace.getConfiguration(t.substr(0,r),e);s&&(i=Or(s.get(t.substr(r+1))))}}else{let r=Fs.workspace.getConfiguration(void 0,e);i={};for(let s of Object.keys(r))r.has(s)&&(i[s]=Or(r.get(s)))}return i===void 0&&(i=null),i}clear(){}};pr.ConfigurationFeature=Bh;function Or(n){if(n){if(Array.isArray(n))return n.map(Or);if(typeof n=="object"){let e=Object.create(null);for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=Or(n[t]));return e}}return n}pr.toJSONObject=Or;var Wh=class{constructor(e){this._client=e,this.isCleared=!1,this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return Mo.DidChangeConfigurationNotification.type}fillClientCapabilities(e){(0,rR.ensure)((0,rR.ensure)(e,"workspace"),"didChangeConfiguration").dynamicRegistration=!0}initialize(){this.isCleared=!1;let e=this._client.clientOptions.synchronize?.configurationSection;e!==void 0&&this.register({id:UA.generateUuid(),registerOptions:{section:e}})}register(e){let t=Fs.workspace.onDidChangeConfiguration(i=>{this.onDidChangeConfiguration(e.registerOptions.section,i)});this._listeners.set(e.id,t),e.registerOptions.section!==void 0&&this.onDidChangeConfiguration(e.registerOptions.section,void 0)}unregister(e){let t=this._listeners.get(e);t&&(this._listeners.delete(e),t.dispose())}clear(){for(let e of this._listeners.values())e.dispose();this._listeners.clear(),this.isCleared=!0}onDidChangeConfiguration(e,t){if(this.isCleared)return;let i;if(MA.string(e)?i=[e]:i=e,i!==void 0&&t!==void 0&&!i.some(a=>t.affectsConfiguration(a)))return;let r=async o=>o===void 0?this._client.sendNotification(Mo.DidChangeConfigurationNotification.type,{settings:null}):this._client.sendNotification(Mo.DidChangeConfigurationNotification.type,{settings:this.extractSettingsInformation(o)}),s=this._client.middleware.workspace?.didChangeConfiguration;(s?s(i,r):r(i)).catch(o=>{this._client.error(`Sending notification ${Mo.DidChangeConfigurationNotification.type.method} failed`,o)})}extractSettingsInformation(e){function t(s,o){let a=s;for(let c=0;c<o.length-1;c++){let u=a[o[c]];u||(u=Object.create(null),a[o[c]]=u),a=u}return a}let i=this._client.clientOptions.workspaceFolder?this._client.clientOptions.workspaceFolder.uri:void 0,r=Object.create(null);for(let s=0;s<e.length;s++){let o=e[s],a=o.indexOf("."),c=null;if(a>=0?c=Fs.workspace.getConfiguration(o.substr(0,a),i).get(o.substr(a+1)):c=Fs.workspace.getConfiguration(void 0,i).get(o),c){let u=e[s].split(".");t(r,u)[u[u.length-1]]=Or(c)}}return r}};pr.SyncConfigurationFeature=Wh});var oR=T(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.DidSaveTextDocumentFeature=un.WillSaveWaitUntilFeature=un.WillSaveFeature=un.DidChangeTextDocumentFeature=un.DidCloseTextDocumentFeature=un.DidOpenTextDocumentFeature=void 0;var bn=require("vscode"),Be=ue(),st=Ce(),Ns=tt(),Kh=class extends st.TextDocumentEventFeature{constructor(e,t){super(e,bn.workspace.onDidOpenTextDocument,Be.DidOpenTextDocumentNotification.type,()=>e.middleware.didOpen,i=>e.code2ProtocolConverter.asOpenTextDocumentParams(i),i=>i,st.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=t}get openDocuments(){return this._syncedDocuments.values()}fillClientCapabilities(e){(0,st.ensure)((0,st.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.openClose&&this.register({id:Ns.generateUuid(),registerOptions:{documentSelector:t}})}get registrationType(){return Be.DidOpenTextDocumentNotification.type}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;let t=this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector);bn.workspace.textDocuments.forEach(i=>{let r=i.uri.toString();if(!this._syncedDocuments.has(r)&&bn.languages.match(t,i)>0&&!this._client.hasDedicatedTextSynchronizationFeature(i)){let s=this._client.middleware,o=a=>this._client.sendNotification(this._type,this._createParams(a));(s.didOpen?s.didOpen(i,o):o(i)).catch(a=>{this._client.error(`Sending document notification ${this._type.method} failed`,a)}),this._syncedDocuments.set(r,i)}})}getTextDocument(e){return e}notificationSent(e,t,i){this._syncedDocuments.set(e.uri.toString(),e),super.notificationSent(e,t,i)}};un.DidOpenTextDocumentFeature=Kh;var Gh=class extends st.TextDocumentEventFeature{constructor(e,t,i){super(e,bn.workspace.onDidCloseTextDocument,Be.DidCloseTextDocumentNotification.type,()=>e.middleware.didClose,r=>e.code2ProtocolConverter.asCloseTextDocumentParams(r),r=>r,st.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=t,this._pendingTextDocumentChanges=i}get registrationType(){return Be.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){(0,st.ensure)((0,st.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.openClose&&this.register({id:Ns.generateUuid(),registerOptions:{documentSelector:t}})}async callback(e){await super.callback(e),this._pendingTextDocumentChanges.delete(e.uri.toString())}getTextDocument(e){return e}notificationSent(e,t,i){this._syncedDocuments.delete(e.uri.toString()),super.notificationSent(e,t,i)}unregister(e){let t=this._selectors.get(e);super.unregister(e);let i=this._selectors.values();this._syncedDocuments.forEach(r=>{if(bn.languages.match(t,r)>0&&!this._selectorFilter(i,r)&&!this._client.hasDedicatedTextSynchronizationFeature(r)){let s=this._client.middleware,o=a=>this._client.sendNotification(this._type,this._createParams(a));this._syncedDocuments.delete(r.uri.toString()),(s.didClose?s.didClose(r,o):o(r)).catch(a=>{this._client.error(`Sending document notification ${this._type.method} failed`,a)})}})}};un.DidCloseTextDocumentFeature=Gh;var Vh=class extends st.DynamicDocumentFeature{constructor(e,t){super(e),this._changeData=new Map,this._onNotificationSent=new bn.EventEmitter,this._onPendingChangeAdded=new bn.EventEmitter,this._pendingTextDocumentChanges=t,this._syncKind=Be.TextDocumentSyncKind.None}get onNotificationSent(){return this._onNotificationSent.event}get onPendingChangeAdded(){return this._onPendingChangeAdded.event}get syncKind(){return this._syncKind}get registrationType(){return Be.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){(0,st.ensure)((0,st.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.change!==void 0&&i.change!==Be.TextDocumentSyncKind.None&&this.register({id:Ns.generateUuid(),registerOptions:Object.assign({},{documentSelector:t},{syncKind:i.change})})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=bn.workspace.onDidChangeTextDocument(this.callback,this)),this._changeData.set(e.id,{syncKind:e.registerOptions.syncKind,documentSelector:this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)}),this.updateSyncKind(e.registerOptions.syncKind))}*getDocumentSelectors(){for(let e of this._changeData.values())yield e.documentSelector}async callback(e){if(e.contentChanges.length===0)return;let t=e.document.uri,i=e.document.version,r=[];for(let s of this._changeData.values())if(bn.languages.match(s.documentSelector,e.document)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){let o=this._client.middleware;if(s.syncKind===Be.TextDocumentSyncKind.Incremental){let a=async c=>{let u=this._client.code2ProtocolConverter.asChangeTextDocumentParams(c,t,i);await this._client.sendNotification(Be.DidChangeTextDocumentNotification.type,u),this.notificationSent(c.document,Be.DidChangeTextDocumentNotification.type,u)};r.push(o.didChange?o.didChange(e,c=>a(c)):a(e))}else if(s.syncKind===Be.TextDocumentSyncKind.Full){let a=async c=>{let u=c.document.uri.toString();this._pendingTextDocumentChanges.set(u,c.document),this._onPendingChangeAdded.fire()};r.push(o.didChange?o.didChange(e,c=>a(c)):a(e))}}return Promise.all(r).then(void 0,s=>{throw this._client.error(`Sending document notification ${Be.DidChangeTextDocumentNotification.type.method} failed`,s),s})}notificationSent(e,t,i){this._onNotificationSent.fire({textDocument:e,type:t,params:i})}unregister(e){if(this._changeData.delete(e),this._changeData.size===0)this._listener&&(this._listener.dispose(),this._listener=void 0),this._syncKind=Be.TextDocumentSyncKind.None;else{this._syncKind=Be.TextDocumentSyncKind.None;for(let t of this._changeData.values())if(this.updateSyncKind(t.syncKind),this._syncKind===Be.TextDocumentSyncKind.Full)break}}clear(){this._pendingTextDocumentChanges.clear(),this._changeData.clear(),this._syncKind=Be.TextDocumentSyncKind.None,this._listener&&(this._listener.dispose(),this._listener=void 0)}getPendingDocumentChanges(e){if(this._pendingTextDocumentChanges.size===0)return[];let t;if(e.size===0)t=Array.from(this._pendingTextDocumentChanges.values()),this._pendingTextDocumentChanges.clear();else{t=[];for(let i of this._pendingTextDocumentChanges)e.has(i[0])||(t.push(i[1]),this._pendingTextDocumentChanges.delete(i[0]))}return t}getProvider(e){for(let t of this._changeData.values())if(bn.languages.match(t.documentSelector,e)>0)return{send:i=>this.callback(i)}}updateSyncKind(e){if(this._syncKind!==Be.TextDocumentSyncKind.Full)switch(e){case Be.TextDocumentSyncKind.Full:this._syncKind=e;break;case Be.TextDocumentSyncKind.Incremental:this._syncKind===Be.TextDocumentSyncKind.None&&(this._syncKind=Be.TextDocumentSyncKind.Incremental);break}}};un.DidChangeTextDocumentFeature=Vh;var Xh=class extends st.TextDocumentEventFeature{constructor(e){super(e,bn.workspace.onWillSaveTextDocument,Be.WillSaveTextDocumentNotification.type,()=>e.middleware.willSave,t=>e.code2ProtocolConverter.asWillSaveTextDocumentParams(t),t=>t.document,(t,i)=>st.TextDocumentEventFeature.textDocumentFilter(t,i.document))}get registrationType(){return Be.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){let t=(0,st.ensure)((0,st.ensure)(e,"textDocument"),"synchronization");t.willSave=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.willSave&&this.register({id:Ns.generateUuid(),registerOptions:{documentSelector:t}})}getTextDocument(e){return e.document}};un.WillSaveFeature=Xh;var Jh=class extends st.DynamicDocumentFeature{constructor(e){super(e),this._selectors=new Map}getDocumentSelectors(){return this._selectors.values()}get registrationType(){return Be.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){let t=(0,st.ensure)((0,st.ensure)(e,"textDocument"),"synchronization");t.willSaveWaitUntil=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;t&&i&&i.willSaveWaitUntil&&this.register({id:Ns.generateUuid(),registerOptions:{documentSelector:t}})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=bn.workspace.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}callback(e){if(st.TextDocumentEventFeature.textDocumentFilter(this._selectors.values(),e.document)&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){let t=this._client.middleware,i=r=>this._client.sendRequest(Be.WillSaveTextDocumentWaitUntilRequest.type,this._client.code2ProtocolConverter.asWillSaveTextDocumentParams(r)).then(async s=>{let o=await this._client.protocol2CodeConverter.asTextEdits(s);return o===void 0?[]:o});e.waitUntil(t.willSaveWaitUntil?t.willSaveWaitUntil(e,i):i(e))}}unregister(e){this._selectors.delete(e),this._selectors.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}};un.WillSaveWaitUntilFeature=Jh;var Yh=class extends st.TextDocumentEventFeature{constructor(e){super(e,bn.workspace.onDidSaveTextDocument,Be.DidSaveTextDocumentNotification.type,()=>e.middleware.didSave,t=>e.code2ProtocolConverter.asSaveTextDocumentParams(t,this._includeText),t=>t,st.TextDocumentEventFeature.textDocumentFilter),this._includeText=!1}get registrationType(){return Be.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){(0,st.ensure)((0,st.ensure)(e,"textDocument"),"synchronization").didSave=!0}initialize(e,t){let i=e.resolvedTextDocumentSync;if(t&&i&&i.save){let r=typeof i.save=="boolean"?{includeText:!1}:{includeText:!!i.save.includeText};this.register({id:Ns.generateUuid(),registerOptions:Object.assign({},{documentSelector:t},r)})}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e)}getTextDocument(e){return e}};un.DidSaveTextDocumentFeature=Yh});var aR=T(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.CompletionItemFeature=void 0;var zA=require("vscode"),we=ue(),Qh=Ce(),$A=tt(),HA=[we.CompletionItemKind.Text,we.CompletionItemKind.Method,we.CompletionItemKind.Function,we.CompletionItemKind.Constructor,we.CompletionItemKind.Field,we.CompletionItemKind.Variable,we.CompletionItemKind.Class,we.CompletionItemKind.Interface,we.CompletionItemKind.Module,we.CompletionItemKind.Property,we.CompletionItemKind.Unit,we.CompletionItemKind.Value,we.CompletionItemKind.Enum,we.CompletionItemKind.Keyword,we.CompletionItemKind.Snippet,we.CompletionItemKind.Color,we.CompletionItemKind.File,we.CompletionItemKind.Reference,we.CompletionItemKind.Folder,we.CompletionItemKind.EnumMember,we.CompletionItemKind.Constant,we.CompletionItemKind.Struct,we.CompletionItemKind.Event,we.CompletionItemKind.Operator,we.CompletionItemKind.TypeParameter],Zh=class extends Qh.TextDocumentLanguageFeature{constructor(e){super(e,we.CompletionRequest.type),this.labelDetailsSupport=new Map}fillClientCapabilities(e){let t=(0,Qh.ensure)((0,Qh.ensure)(e,"textDocument"),"completion");t.dynamicRegistration=!0,t.contextSupport=!0,t.completionItem={snippetSupport:!0,commitCharactersSupport:!0,documentationFormat:[we.MarkupKind.Markdown,we.MarkupKind.PlainText],deprecatedSupport:!0,preselectSupport:!0,tagSupport:{valueSet:[we.CompletionItemTag.Deprecated]},insertReplaceSupport:!0,resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},insertTextModeSupport:{valueSet:[we.InsertTextMode.asIs,we.InsertTextMode.adjustIndentation]},labelDetailsSupport:!0},t.insertTextMode=we.InsertTextMode.adjustIndentation,t.completionItemKind={valueSet:HA},t.completionList={itemDefaults:["commitCharacters","editRange","insertTextFormat","insertTextMode","data"]}}initialize(e,t){let i=this.getRegistrationOptions(t,e.completionProvider);i&&this.register({id:$A.generateUuid(),registerOptions:i})}registerLanguageProvider(e,t){this.labelDetailsSupport.set(t,!!e.completionItem?.labelDetailsSupport);let i=e.triggerCharacters??[],r=e.allCommitCharacters,s=e.documentSelector,o={provideCompletionItems:(a,c,u,l)=>{let p=this._client,h=this._client.middleware,x=(f,y,w,S)=>p.sendRequest(we.CompletionRequest.type,p.code2ProtocolConverter.asCompletionParams(f,y,w),S).then(O=>S.isCancellationRequested?null:p.protocol2CodeConverter.asCompletionResult(O,r,S),O=>p.handleFailedRequest(we.CompletionRequest.type,S,O,null));return h.provideCompletionItem?h.provideCompletionItem(a,c,l,u,x):x(a,c,l,u)},resolveCompletionItem:e.resolveProvider?(a,c)=>{let u=this._client,l=this._client.middleware,p=(h,x)=>u.sendRequest(we.CompletionResolveRequest.type,u.code2ProtocolConverter.asCompletionItem(h,!!this.labelDetailsSupport.get(t)),x).then(f=>x.isCancellationRequested?null:u.protocol2CodeConverter.asCompletionItem(f),f=>u.handleFailedRequest(we.CompletionResolveRequest.type,x,f,h));return l.resolveCompletionItem?l.resolveCompletionItem(a,c,p):p(a,c)}:void 0};return[zA.languages.registerCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(s),o,...i),o]}};Ou.CompletionItemFeature=Zh});var cR=T(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.HoverFeature=void 0;var BA=require("vscode"),Uo=ue(),em=Ce(),WA=tt(),tm=class extends em.TextDocumentLanguageFeature{constructor(e){super(e,Uo.HoverRequest.type)}fillClientCapabilities(e){let t=(0,em.ensure)((0,em.ensure)(e,"textDocument"),"hover");t.dynamicRegistration=!0,t.contentFormat=[Uo.MarkupKind.Markdown,Uo.MarkupKind.PlainText]}initialize(e,t){let i=this.getRegistrationOptions(t,e.hoverProvider);i&&this.register({id:WA.generateUuid(),registerOptions:i})}registerLanguageProvider(e){let t=e.documentSelector,i={provideHover:(r,s,o)=>{let a=this._client,c=(l,p,h)=>a.sendRequest(Uo.HoverRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(l,p),h).then(x=>h.isCancellationRequested?null:a.protocol2CodeConverter.asHover(x),x=>a.handleFailedRequest(Uo.HoverRequest.type,h,x,null)),u=a.middleware;return u.provideHover?u.provideHover(r,s,o,c):c(r,s,o)}};return[this.registerProvider(t,i),i]}registerProvider(e,t){return BA.languages.registerHoverProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}};qu.HoverFeature=tm});var uR=T(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.DefinitionFeature=void 0;var KA=require("vscode"),nm=ue(),im=Ce(),GA=tt(),rm=class extends im.TextDocumentLanguageFeature{constructor(e){super(e,nm.DefinitionRequest.type)}fillClientCapabilities(e){let t=(0,im.ensure)((0,im.ensure)(e,"textDocument"),"definition");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.definitionProvider);i&&this.register({id:GA.generateUuid(),registerOptions:i})}registerLanguageProvider(e){let t=e.documentSelector,i={provideDefinition:(r,s,o)=>{let a=this._client,c=(l,p,h)=>a.sendRequest(nm.DefinitionRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(l,p),h).then(x=>h.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(x,h),x=>a.handleFailedRequest(nm.DefinitionRequest.type,h,x,null)),u=a.middleware;return u.provideDefinition?u.provideDefinition(r,s,o,c):c(r,s,o)}};return[this.registerProvider(t,i),i]}registerProvider(e,t){return KA.languages.registerDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}};Fu.DefinitionFeature=rm});var dR=T(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.SignatureHelpFeature=void 0;var lR=require("vscode"),zo=ue(),sm=Ce(),VA=tt(),om=class extends sm.TextDocumentLanguageFeature{constructor(e){super(e,zo.SignatureHelpRequest.type)}fillClientCapabilities(e){let t=(0,sm.ensure)((0,sm.ensure)(e,"textDocument"),"signatureHelp");t.dynamicRegistration=!0,t.signatureInformation={documentationFormat:[zo.MarkupKind.Markdown,zo.MarkupKind.PlainText]},t.signatureInformation.parameterInformation={labelOffsetSupport:!0},t.signatureInformation.activeParameterSupport=!0,t.contextSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.signatureHelpProvider);i&&this.register({id:VA.generateUuid(),registerOptions:i})}registerLanguageProvider(e){let t={provideSignatureHelp:(i,r,s,o)=>{let a=this._client,c=(l,p,h,x)=>a.sendRequest(zo.SignatureHelpRequest.type,a.code2ProtocolConverter.asSignatureHelpParams(l,p,h),x).then(f=>x.isCancellationRequested?null:a.protocol2CodeConverter.asSignatureHelp(f,x),f=>a.handleFailedRequest(zo.SignatureHelpRequest.type,x,f,null)),u=a.middleware;return u.provideSignatureHelp?u.provideSignatureHelp(i,r,o,s,c):c(i,r,o,s)}};return[this.registerProvider(e,t),t]}registerProvider(e,t){let i=this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector);if(e.retriggerCharacters===void 0){let r=e.triggerCharacters||[];return lR.languages.registerSignatureHelpProvider(i,t,...r)}else{let r={triggerCharacters:e.triggerCharacters||[],retriggerCharacters:e.retriggerCharacters||[]};return lR.languages.registerSignatureHelpProvider(i,t,r)}}};Nu.SignatureHelpFeature=om});var pR=T(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.DocumentHighlightFeature=void 0;var XA=require("vscode"),am=ue(),cm=Ce(),JA=tt(),um=class extends cm.TextDocumentLanguageFeature{constructor(e){super(e,am.DocumentHighlightRequest.type)}fillClientCapabilities(e){(0,cm.ensure)((0,cm.ensure)(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentHighlightProvider);i&&this.register({id:JA.generateUuid(),registerOptions:i})}registerLanguageProvider(e){let t=e.documentSelector,i={provideDocumentHighlights:(r,s,o)=>{let a=this._client,c=(l,p,h)=>a.sendRequest(am.DocumentHighlightRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(l,p),h).then(x=>h.isCancellationRequested?null:a.protocol2CodeConverter.asDocumentHighlights(x,h),x=>a.handleFailedRequest(am.DocumentHighlightRequest.type,h,x,null)),u=a.middleware;return u.provideDocumentHighlights?u.provideDocumentHighlights(r,s,o,c):c(r,s,o)}};return[XA.languages.registerDocumentHighlightProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),i),i]}};Au.DocumentHighlightFeature=um});var pm=T(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.DocumentSymbolFeature=hi.SupportedSymbolTags=hi.SupportedSymbolKinds=void 0;var YA=require("vscode"),Fe=ue(),lm=Ce(),QA=tt();hi.SupportedSymbolKinds=[Fe.SymbolKind.File,Fe.SymbolKind.Module,Fe.SymbolKind.Namespace,Fe.SymbolKind.Package,Fe.SymbolKind.Class,Fe.SymbolKind.Method,Fe.SymbolKind.Property,Fe.SymbolKind.Field,Fe.SymbolKind.Constructor,Fe.SymbolKind.Enum,Fe.SymbolKind.Interface,Fe.SymbolKind.Function,Fe.SymbolKind.Variable,Fe.SymbolKind.Constant,Fe.SymbolKind.String,Fe.SymbolKind.Number,Fe.SymbolKind.Boolean,Fe.SymbolKind.Array,Fe.SymbolKind.Object,Fe.SymbolKind.Key,Fe.SymbolKind.Null,Fe.SymbolKind.EnumMember,Fe.SymbolKind.Struct,Fe.SymbolKind.Event,Fe.SymbolKind.Operator,Fe.SymbolKind.TypeParameter];hi.SupportedSymbolTags=[Fe.SymbolTag.Deprecated];var dm=class extends lm.TextDocumentLanguageFeature{constructor(e){super(e,Fe.DocumentSymbolRequest.type)}fillClientCapabilities(e){let t=(0,lm.ensure)((0,lm.ensure)(e,"textDocument"),"documentSymbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:hi.SupportedSymbolKinds},t.hierarchicalDocumentSymbolSupport=!0,t.tagSupport={valueSet:hi.SupportedSymbolTags},t.labelSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentSymbolProvider);i&&this.register({id:QA.generateUuid(),registerOptions:i})}registerLanguageProvider(e){let t=e.documentSelector,i={provideDocumentSymbols:(s,o)=>{let a=this._client,c=async(l,p)=>{try{let h=await a.sendRequest(Fe.DocumentSymbolRequest.type,a.code2ProtocolConverter.asDocumentSymbolParams(l),p);if(p.isCancellationRequested||h===void 0||h===null)return null;if(h.length===0)return[];{let x=h[0];return Fe.DocumentSymbol.is(x)?await a.protocol2CodeConverter.asDocumentSymbols(h,p):await a.protocol2CodeConverter.asSymbolInformations(h,p)}}catch(h){return a.handleFailedRequest(Fe.DocumentSymbolRequest.type,p,h,null)}},u=a.middleware;return u.provideDocumentSymbols?u.provideDocumentSymbols(s,o,c):c(s,o)}},r=e.label!==void 0?{label:e.label}:void 0;return[YA.languages.registerDocumentSymbolProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),i,r),i]}};hi.DocumentSymbolFeature=dm});var hR=T(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.WorkspaceSymbolFeature=void 0;var ZA=require("vscode"),$o=ue(),fm=Ce(),fR=pm(),eI=tt(),hm=class extends fm.WorkspaceFeature{constructor(e){super(e,$o.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){let t=(0,fm.ensure)((0,fm.ensure)(e,"workspace"),"symbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:fR.SupportedSymbolKinds},t.tagSupport={valueSet:fR.SupportedSymbolTags},t.resolveSupport={properties:["location.range"]}}initialize(e){e.workspaceSymbolProvider&&this.register({id:eI.generateUuid(),registerOptions:e.workspaceSymbolProvider===!0?{workDoneProgress:!1}:e.workspaceSymbolProvider})}registerLanguageProvider(e){let t={provideWorkspaceSymbols:(i,r)=>{let s=this._client,o=(c,u)=>s.sendRequest($o.WorkspaceSymbolRequest.type,{query:c},u).then(l=>u.isCancellationRequested?null:s.protocol2CodeConverter.asSymbolInformations(l,u),l=>s.handleFailedRequest($o.WorkspaceSymbolRequest.type,u,l,null)),a=s.middleware;return a.provideWorkspaceSymbols?a.provideWorkspaceSymbols(i,r,o):o(i,r)},resolveWorkspaceSymbol:e.resolveProvider===!0?(i,r)=>{let s=this._client,o=(c,u)=>s.sendRequest($o.WorkspaceSymbolResolveRequest.type,s.code2ProtocolConverter.asWorkspaceSymbol(c),u).then(l=>u.isCancellationRequested?null:s.protocol2CodeConverter.asSymbolInformation(l),l=>s.handleFailedRequest($o.WorkspaceSymbolResolveRequest.type,u,l,null)),a=s.middleware;return a.resolveWorkspaceSymbol?a.resolveWorkspaceSymbol(i,r,o):o(i,r)}:void 0};return[ZA.languages.registerWorkspaceSymbolProvider(t),t]}};Iu.WorkspaceSymbolFeature=hm});var mR=T(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.ReferencesFeature=void 0;var tI=require("vscode"),mm=ue(),gm=Ce(),nI=tt(),vm=class extends gm.TextDocumentLanguageFeature{constructor(e){super(e,mm.ReferencesRequest.type)}fillClientCapabilities(e){(0,gm.ensure)((0,gm.ensure)(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.referencesProvider);i&&this.register({id:nI.generateUuid(),registerOptions:i})}registerLanguageProvider(e){let t=e.documentSelector,i={provideReferences:(r,s,o,a)=>{let c=this._client,u=(p,h,x,f)=>c.sendRequest(mm.ReferencesRequest.type,c.code2ProtocolConverter.asReferenceParams(p,h,x),f).then(y=>f.isCancellationRequested?null:c.protocol2CodeConverter.asReferences(y,f),y=>c.handleFailedRequest(mm.ReferencesRequest.type,f,y,null)),l=c.middleware;return l.provideReferences?l.provideReferences(r,s,o,a,u):u(r,s,o,a)}};return[this.registerProvider(t,i),i]}registerProvider(e,t){return tI.languages.registerReferenceProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}};ju.ReferencesFeature=vm});var gR=T(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.CodeActionFeature=void 0;var iI=require("vscode"),wn=ue(),rI=tt(),xm=Ce(),ym=class extends xm.TextDocumentLanguageFeature{constructor(e){super(e,wn.CodeActionRequest.type)}fillClientCapabilities(e){let t=(0,xm.ensure)((0,xm.ensure)(e,"textDocument"),"codeAction");t.dynamicRegistration=!0,t.isPreferredSupport=!0,t.disabledSupport=!0,t.dataSupport=!0,t.resolveSupport={properties:["edit"]},t.codeActionLiteralSupport={codeActionKind:{valueSet:[wn.CodeActionKind.Empty,wn.CodeActionKind.QuickFix,wn.CodeActionKind.Refactor,wn.CodeActionKind.RefactorExtract,wn.CodeActionKind.RefactorInline,wn.CodeActionKind.RefactorRewrite,wn.CodeActionKind.Source,wn.CodeActionKind.SourceOrganizeImports]}},t.honorsChangeAnnotations=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.codeActionProvider);i&&this.register({id:rI.generateUuid(),registerOptions:i})}registerLanguageProvider(e){let t=e.documentSelector,i={provideCodeActions:(r,s,o,a)=>{let c=this._client,u=async(p,h,x,f)=>{let y={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),range:c.code2ProtocolConverter.asRange(h),context:c.code2ProtocolConverter.asCodeActionContextSync(x)};return c.sendRequest(wn.CodeActionRequest.type,y,f).then(w=>f.isCancellationRequested||w===null||w===void 0?null:c.protocol2CodeConverter.asCodeActionResult(w,f),w=>c.handleFailedRequest(wn.CodeActionRequest.type,f,w,null))},l=c.middleware;return l.provideCodeActions?l.provideCodeActions(r,s,o,a,u):u(r,s,o,a)},resolveCodeAction:e.resolveProvider?(r,s)=>{let o=this._client,a=this._client.middleware,c=async(u,l)=>o.sendRequest(wn.CodeActionResolveRequest.type,o.code2ProtocolConverter.asCodeActionSync(u),l).then(p=>l.isCancellationRequested?u:o.protocol2CodeConverter.asCodeAction(p,l),p=>o.handleFailedRequest(wn.CodeActionResolveRequest.type,l,p,u));return a.resolveCodeAction?a.resolveCodeAction(r,s,c):c(r,s)}:void 0};return[iI.languages.registerCodeActionsProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),i,e.codeActionKinds?{providedCodeActionKinds:this._client.protocol2CodeConverter.asCodeActionKinds(e.codeActionKinds)}:void 0),i]}};Lu.CodeActionFeature=ym});var xR=T(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.CodeLensFeature=void 0;var vR=require("vscode"),As=ue(),sI=tt(),Ho=Ce(),bm=class extends Ho.TextDocumentLanguageFeature{constructor(e){super(e,As.CodeLensRequest.type)}fillClientCapabilities(e){(0,Ho.ensure)((0,Ho.ensure)(e,"textDocument"),"codeLens").dynamicRegistration=!0,(0,Ho.ensure)((0,Ho.ensure)(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,t){this._client.onRequest(As.CodeLensRefreshRequest.type,async()=>{for(let s of this.getAllProviders())s.onDidChangeCodeLensEmitter.fire()});let r=this.getRegistrationOptions(t,e.codeLensProvider);r&&this.register({id:sI.generateUuid(),registerOptions:r})}registerLanguageProvider(e){let t=e.documentSelector,i=new vR.EventEmitter,r={onDidChangeCodeLenses:i.event,provideCodeLenses:(s,o)=>{let a=this._client,c=(l,p)=>a.sendRequest(As.CodeLensRequest.type,a.code2ProtocolConverter.asCodeLensParams(l),p).then(h=>p.isCancellationRequested?null:a.protocol2CodeConverter.asCodeLenses(h,p),h=>a.handleFailedRequest(As.CodeLensRequest.type,p,h,null)),u=a.middleware;return u.provideCodeLenses?u.provideCodeLenses(s,o,c):c(s,o)},resolveCodeLens:e.resolveProvider?(s,o)=>{let a=this._client,c=(l,p)=>a.sendRequest(As.CodeLensResolveRequest.type,a.code2ProtocolConverter.asCodeLens(l),p).then(h=>p.isCancellationRequested?l:a.protocol2CodeConverter.asCodeLens(h),h=>a.handleFailedRequest(As.CodeLensResolveRequest.type,p,h,l)),u=a.middleware;return u.resolveCodeLens?u.resolveCodeLens(s,o,c):c(s,o)}:void 0};return[vR.languages.registerCodeLensProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),r),{provider:r,onDidChangeCodeLensEmitter:i}]}};Mu.CodeLensFeature=bm});var yR=T(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.DocumentOnTypeFormattingFeature=fr.DocumentRangeFormattingFeature=fr.DocumentFormattingFeature=void 0;var Uu=require("vscode"),Yn=ue(),Cm=tt(),Pi=Ce(),Is;(function(n){function e(t){let i=Uu.workspace.getConfiguration("files",t);return{trimTrailingWhitespace:i.get("trimTrailingWhitespace"),trimFinalNewlines:i.get("trimFinalNewlines"),insertFinalNewline:i.get("insertFinalNewline")}}n.fromConfiguration=e})(Is||(Is={}));var wm=class extends Pi.TextDocumentLanguageFeature{constructor(e){super(e,Yn.DocumentFormattingRequest.type)}fillClientCapabilities(e){(0,Pi.ensure)((0,Pi.ensure)(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentFormattingProvider);i&&this.register({id:Cm.generateUuid(),registerOptions:i})}registerLanguageProvider(e){let t=e.documentSelector,i={provideDocumentFormattingEdits:(r,s,o)=>{let a=this._client,c=(l,p,h)=>{let x={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(l),options:a.code2ProtocolConverter.asFormattingOptions(p,Is.fromConfiguration(l))};return a.sendRequest(Yn.DocumentFormattingRequest.type,x,h).then(f=>h.isCancellationRequested?null:a.protocol2CodeConverter.asTextEdits(f,h),f=>a.handleFailedRequest(Yn.DocumentFormattingRequest.type,h,f,null))},u=a.middleware;return u.provideDocumentFormattingEdits?u.provideDocumentFormattingEdits(r,s,o,c):c(r,s,o)}};return[Uu.languages.registerDocumentFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),i),i]}};fr.DocumentFormattingFeature=wm;var _m=class extends Pi.TextDocumentLanguageFeature{constructor(e){super(e,Yn.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){let t=(0,Pi.ensure)((0,Pi.ensure)(e,"textDocument"),"rangeFormatting");t.dynamicRegistration=!0,t.rangesSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentRangeFormattingProvider);i&&this.register({id:Cm.generateUuid(),registerOptions:i})}registerLanguageProvider(e){let t=e.documentSelector,i={provideDocumentRangeFormattingEdits:(r,s,o,a)=>{let c=this._client,u=(p,h,x,f)=>{let y={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),range:c.code2ProtocolConverter.asRange(h),options:c.code2ProtocolConverter.asFormattingOptions(x,Is.fromConfiguration(p))};return c.sendRequest(Yn.DocumentRangeFormattingRequest.type,y,f).then(w=>f.isCancellationRequested?null:c.protocol2CodeConverter.asTextEdits(w,f),w=>c.handleFailedRequest(Yn.DocumentRangeFormattingRequest.type,f,w,null))},l=c.middleware;return l.provideDocumentRangeFormattingEdits?l.provideDocumentRangeFormattingEdits(r,s,o,a,u):u(r,s,o,a)}};return e.rangesSupport&&(i.provideDocumentRangesFormattingEdits=(r,s,o,a)=>{let c=this._client,u=(p,h,x,f)=>{let y={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),ranges:c.code2ProtocolConverter.asRanges(h),options:c.code2ProtocolConverter.asFormattingOptions(x,Is.fromConfiguration(p))};return c.sendRequest(Yn.DocumentRangesFormattingRequest.type,y,f).then(w=>f.isCancellationRequested?null:c.protocol2CodeConverter.asTextEdits(w,f),w=>c.handleFailedRequest(Yn.DocumentRangesFormattingRequest.type,f,w,null))},l=c.middleware;return l.provideDocumentRangesFormattingEdits?l.provideDocumentRangesFormattingEdits(r,s,o,a,u):u(r,s,o,a)}),[Uu.languages.registerDocumentRangeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),i),i]}};fr.DocumentRangeFormattingFeature=_m;var Sm=class extends Pi.TextDocumentLanguageFeature{constructor(e){super(e,Yn.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){(0,Pi.ensure)((0,Pi.ensure)(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentOnTypeFormattingProvider);i&&this.register({id:Cm.generateUuid(),registerOptions:i})}registerLanguageProvider(e){let t=e.documentSelector,i={provideOnTypeFormattingEdits:(s,o,a,c,u)=>{let l=this._client,p=(x,f,y,w,S)=>{let O={textDocument:l.code2ProtocolConverter.asTextDocumentIdentifier(x),position:l.code2ProtocolConverter.asPosition(f),ch:y,options:l.code2ProtocolConverter.asFormattingOptions(w,Is.fromConfiguration(x))};return l.sendRequest(Yn.DocumentOnTypeFormattingRequest.type,O,S).then(k=>S.isCancellationRequested?null:l.protocol2CodeConverter.asTextEdits(k,S),k=>l.handleFailedRequest(Yn.DocumentOnTypeFormattingRequest.type,S,k,null))},h=l.middleware;return h.provideOnTypeFormattingEdits?h.provideOnTypeFormattingEdits(s,o,a,c,u,p):p(s,o,a,c,u)}},r=e.moreTriggerCharacter||[];return[Uu.languages.registerOnTypeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),i,e.firstTriggerCharacter,...r),i]}};fr.DocumentOnTypeFormattingFeature=Sm});var wR=T(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.RenameFeature=void 0;var oI=require("vscode"),qr=ue(),aI=tt(),bR=qn(),Rm=Ce(),Dm=class extends Rm.TextDocumentLanguageFeature{constructor(e){super(e,qr.RenameRequest.type)}fillClientCapabilities(e){let t=(0,Rm.ensure)((0,Rm.ensure)(e,"textDocument"),"rename");t.dynamicRegistration=!0,t.prepareSupport=!0,t.prepareSupportDefaultBehavior=qr.PrepareSupportDefaultBehavior.Identifier,t.honorsChangeAnnotations=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.renameProvider);i&&(bR.boolean(e.renameProvider)&&(i.prepareProvider=!1),this.register({id:aI.generateUuid(),registerOptions:i}))}registerLanguageProvider(e){let t=e.documentSelector,i={provideRenameEdits:(r,s,o,a)=>{let c=this._client,u=(p,h,x,f)=>{let y={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),position:c.code2ProtocolConverter.asPosition(h),newName:x};return c.sendRequest(qr.RenameRequest.type,y,f).then(w=>f.isCancellationRequested?null:c.protocol2CodeConverter.asWorkspaceEdit(w,f),w=>c.handleFailedRequest(qr.RenameRequest.type,f,w,null,!1))},l=c.middleware;return l.provideRenameEdits?l.provideRenameEdits(r,s,o,a,u):u(r,s,o,a)},prepareRename:e.prepareProvider?(r,s,o)=>{let a=this._client,c=(l,p,h)=>{let x={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(l),position:a.code2ProtocolConverter.asPosition(p)};return a.sendRequest(qr.PrepareRenameRequest.type,x,h).then(f=>h.isCancellationRequested?null:qr.Range.is(f)?a.protocol2CodeConverter.asRange(f):this.isDefaultBehavior(f)?f.defaultBehavior===!0?null:Promise.reject(new Error("The element can't be renamed.")):f&&qr.Range.is(f.range)?{range:a.protocol2CodeConverter.asRange(f.range),placeholder:f.placeholder}:Promise.reject(new Error("The element can't be renamed.")),f=>{throw typeof f.message=="string"?new Error(f.message):new Error("The element can't be renamed.")})},u=a.middleware;return u.prepareRename?u.prepareRename(r,s,o,c):c(r,s,o)}:void 0};return[this.registerProvider(t,i),i]}registerProvider(e,t){return oI.languages.registerRenameProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}isDefaultBehavior(e){let t=e;return t&&bR.boolean(t.defaultBehavior)}};zu.RenameFeature=Dm});var _R=T($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.DocumentLinkFeature=void 0;var cI=require("vscode"),Bo=ue(),Tm=Ce(),uI=tt(),Em=class extends Tm.TextDocumentLanguageFeature{constructor(e){super(e,Bo.DocumentLinkRequest.type)}fillClientCapabilities(e){let t=(0,Tm.ensure)((0,Tm.ensure)(e,"textDocument"),"documentLink");t.dynamicRegistration=!0,t.tooltipSupport=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.documentLinkProvider);i&&this.register({id:uI.generateUuid(),registerOptions:i})}registerLanguageProvider(e){let t=e.documentSelector,i={provideDocumentLinks:(r,s)=>{let o=this._client,a=(u,l)=>o.sendRequest(Bo.DocumentLinkRequest.type,o.code2ProtocolConverter.asDocumentLinkParams(u),l).then(p=>l.isCancellationRequested?null:o.protocol2CodeConverter.asDocumentLinks(p,l),p=>o.handleFailedRequest(Bo.DocumentLinkRequest.type,l,p,null)),c=o.middleware;return c.provideDocumentLinks?c.provideDocumentLinks(r,s,a):a(r,s)},resolveDocumentLink:e.resolveProvider?(r,s)=>{let o=this._client,a=(u,l)=>o.sendRequest(Bo.DocumentLinkResolveRequest.type,o.code2ProtocolConverter.asDocumentLink(u),l).then(p=>l.isCancellationRequested?u:o.protocol2CodeConverter.asDocumentLink(p),p=>o.handleFailedRequest(Bo.DocumentLinkResolveRequest.type,l,p,u)),c=o.middleware;return c.resolveDocumentLink?c.resolveDocumentLink(r,s,a):a(r,s)}:void 0};return[cI.languages.registerDocumentLinkProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),i),i]}};$u.DocumentLinkFeature=Em});var CR=T(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.ExecuteCommandFeature=void 0;var lI=require("vscode"),Pm=ue(),dI=tt(),SR=Ce(),km=class{constructor(e){this._client=e,this._commands=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._commands.size>0}}get registrationType(){return Pm.ExecuteCommandRequest.type}fillClientCapabilities(e){(0,SR.ensure)((0,SR.ensure)(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){e.executeCommandProvider&&this.register({id:dI.generateUuid(),registerOptions:Object.assign({},e.executeCommandProvider)})}register(e){let t=this._client,i=t.middleware,r=(s,o)=>{let a={command:s,arguments:o};return t.sendRequest(Pm.ExecuteCommandRequest.type,a).then(void 0,c=>t.handleFailedRequest(Pm.ExecuteCommandRequest.type,void 0,c,void 0))};if(e.registerOptions.commands){let s=[];for(let o of e.registerOptions.commands)s.push(lI.commands.registerCommand(o,(...a)=>i.executeCommand?i.executeCommand(o,a,r):r(o,a)));this._commands.set(e.id,s)}}unregister(e){let t=this._commands.get(e);t&&t.forEach(i=>i.dispose())}clear(){this._commands.forEach(e=>{e.forEach(t=>t.dispose())}),this._commands.clear()}};Hu.ExecuteCommandFeature=km});var RR=T(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.FileSystemWatcherFeature=void 0;var pI=require("vscode"),Fr=ue(),Bu=Ce(),Om=class{constructor(e,t){this._client=e,this._notifyFileEvent=t,this._watchers=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._watchers.size>0}}get registrationType(){return Fr.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){(0,Bu.ensure)((0,Bu.ensure)(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0,(0,Bu.ensure)((0,Bu.ensure)(e,"workspace"),"didChangeWatchedFiles").relativePatternSupport=!0}initialize(e,t){}register(e){if(!Array.isArray(e.registerOptions.watchers))return;let t=[];for(let i of e.registerOptions.watchers){let r=this._client.protocol2CodeConverter.asGlobPattern(i.globPattern);if(r===void 0)continue;let s=!0,o=!0,a=!0;i.kind!==void 0&&i.kind!==null&&(s=(i.kind&Fr.WatchKind.Create)!==0,o=(i.kind&Fr.WatchKind.Change)!==0,a=(i.kind&Fr.WatchKind.Delete)!==0);let c=pI.workspace.createFileSystemWatcher(r,!s,!o,!a);this.hookListeners(c,s,o,a,t),t.push(c)}this._watchers.set(e.id,t)}registerRaw(e,t){let i=[];for(let r of t)this.hookListeners(r,!0,!0,!0,i);this._watchers.set(e,i)}hookListeners(e,t,i,r,s){t&&e.onDidCreate(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:Fr.FileChangeType.Created}),null,s),i&&e.onDidChange(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:Fr.FileChangeType.Changed}),null,s),r&&e.onDidDelete(o=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(o),type:Fr.FileChangeType.Deleted}),null,s)}unregister(e){let t=this._watchers.get(e);if(t)for(let i of t)i.dispose()}clear(){this._watchers.forEach(e=>{for(let t of e)t.dispose()}),this._watchers.clear()}};Wu.FileSystemWatcherFeature=Om});var DR=T(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.ColorProviderFeature=void 0;var fI=require("vscode"),Wo=ue(),qm=Ce(),Fm=class extends qm.TextDocumentLanguageFeature{constructor(e){super(e,Wo.DocumentColorRequest.type)}fillClientCapabilities(e){(0,qm.ensure)((0,qm.ensure)(e,"textDocument"),"colorProvider").dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.colorProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=e.documentSelector,i={provideColorPresentations:(r,s,o)=>{let a=this._client,c=(l,p,h)=>{let x={color:l,textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(p.document),range:a.code2ProtocolConverter.asRange(p.range)};return a.sendRequest(Wo.ColorPresentationRequest.type,x,h).then(f=>h.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorPresentations(f,h),f=>a.handleFailedRequest(Wo.ColorPresentationRequest.type,h,f,null))},u=a.middleware;return u.provideColorPresentations?u.provideColorPresentations(r,s,o,c):c(r,s,o)},provideDocumentColors:(r,s)=>{let o=this._client,a=(u,l)=>{let p={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(u)};return o.sendRequest(Wo.DocumentColorRequest.type,p,l).then(h=>l.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorInformations(h,l),h=>o.handleFailedRequest(Wo.DocumentColorRequest.type,l,h,null))},c=o.middleware;return c.provideDocumentColors?c.provideDocumentColors(r,s,a):a(r,s)}};return[fI.languages.registerColorProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),i),i]}};Ku.ColorProviderFeature=Fm});var TR=T(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.ImplementationFeature=void 0;var hI=require("vscode"),Nm=ue(),Am=Ce(),Im=class extends Am.TextDocumentLanguageFeature{constructor(e){super(e,Nm.ImplementationRequest.type)}fillClientCapabilities(e){let t=(0,Am.ensure)((0,Am.ensure)(e,"textDocument"),"implementation");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.implementationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=e.documentSelector,i={provideImplementation:(r,s,o)=>{let a=this._client,c=(l,p,h)=>a.sendRequest(Nm.ImplementationRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(l,p),h).then(x=>h.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(x,h),x=>a.handleFailedRequest(Nm.ImplementationRequest.type,h,x,null)),u=a.middleware;return u.provideImplementation?u.provideImplementation(r,s,o,c):c(r,s,o)}};return[this.registerProvider(t,i),i]}registerProvider(e,t){return hI.languages.registerImplementationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}};Gu.ImplementationFeature=Im});var ER=T(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.TypeDefinitionFeature=void 0;var mI=require("vscode"),jm=ue(),Ko=Ce(),Lm=class extends Ko.TextDocumentLanguageFeature{constructor(e){super(e,jm.TypeDefinitionRequest.type)}fillClientCapabilities(e){(0,Ko.ensure)((0,Ko.ensure)(e,"textDocument"),"typeDefinition").dynamicRegistration=!0;let t=(0,Ko.ensure)((0,Ko.ensure)(e,"textDocument"),"typeDefinition");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.typeDefinitionProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=e.documentSelector,i={provideTypeDefinition:(r,s,o)=>{let a=this._client,c=(l,p,h)=>a.sendRequest(jm.TypeDefinitionRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(l,p),h).then(x=>h.isCancellationRequested?null:a.protocol2CodeConverter.asDefinitionResult(x,h),x=>a.handleFailedRequest(jm.TypeDefinitionRequest.type,h,x,null)),u=a.middleware;return u.provideTypeDefinition?u.provideTypeDefinition(r,s,o,c):c(r,s,o)}};return[this.registerProvider(t,i),i]}registerProvider(e,t){return mI.languages.registerTypeDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}};Vu.TypeDefinitionFeature=Lm});var PR=T(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.WorkspaceFoldersFeature=js.arrayDiff=void 0;var gI=tt(),Xu=require("vscode"),Go=ue();function Mm(n,e){if(n!=null)return n[e]}function Um(n,e){return n.filter(t=>e.indexOf(t)<0)}js.arrayDiff=Um;var zm=class{constructor(e){this._client=e,this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return Go.DidChangeWorkspaceFoldersNotification.type}fillInitializeParams(e){let t=Xu.workspace.workspaceFolders;this.initializeWithFolders(t),t===void 0?e.workspaceFolders=null:e.workspaceFolders=t.map(i=>this.asProtocol(i))}initializeWithFolders(e){this._initialFolders=e}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0}initialize(e){let t=this._client;t.onRequest(Go.WorkspaceFoldersRequest.type,s=>{let o=()=>{let c=Xu.workspace.workspaceFolders;return c===void 0?null:c.map(l=>this.asProtocol(l))},a=t.middleware.workspace;return a&&a.workspaceFolders?a.workspaceFolders(s,o):o(s)});let i=Mm(Mm(Mm(e,"workspace"),"workspaceFolders"),"changeNotifications"),r;typeof i=="string"?r=i:i===!0&&(r=gI.generateUuid()),r&&this.register({id:r,registerOptions:void 0})}sendInitialEvent(e){let t;if(this._initialFolders&&e){let i=Um(this._initialFolders,e),r=Um(e,this._initialFolders);(r.length>0||i.length>0)&&(t=this.doSendEvent(r,i))}else this._initialFolders?t=this.doSendEvent([],this._initialFolders):e&&(t=this.doSendEvent(e,[]));t!==void 0&&t.catch(i=>{this._client.error(`Sending notification ${Go.DidChangeWorkspaceFoldersNotification.type.method} failed`,i)})}doSendEvent(e,t){let i={event:{added:e.map(r=>this.asProtocol(r)),removed:t.map(r=>this.asProtocol(r))}};return this._client.sendNotification(Go.DidChangeWorkspaceFoldersNotification.type,i)}register(e){let t=e.id,i=this._client,r=Xu.workspace.onDidChangeWorkspaceFolders(s=>{let o=u=>this.doSendEvent(u.added,u.removed),a=i.middleware.workspace;(a&&a.didChangeWorkspaceFolders?a.didChangeWorkspaceFolders(s,o):o(s)).catch(u=>{this._client.error(`Sending notification ${Go.DidChangeWorkspaceFoldersNotification.type.method} failed`,u)})});this._listeners.set(t,r),this.sendInitialEvent(Xu.workspace.workspaceFolders)}unregister(e){let t=this._listeners.get(e);t!==void 0&&(this._listeners.delete(e),t.dispose())}clear(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}asProtocol(e){return e===void 0?null:{uri:this._client.code2ProtocolConverter.asUri(e.uri),name:e.name}}};js.WorkspaceFoldersFeature=zm});var OR=T(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.FoldingRangeFeature=void 0;var kR=require("vscode"),Nr=ue(),Vo=Ce(),$m=class extends Vo.TextDocumentLanguageFeature{constructor(e){super(e,Nr.FoldingRangeRequest.type)}fillClientCapabilities(e){let t=(0,Vo.ensure)((0,Vo.ensure)(e,"textDocument"),"foldingRange");t.dynamicRegistration=!0,t.rangeLimit=5e3,t.lineFoldingOnly=!0,t.foldingRangeKind={valueSet:[Nr.FoldingRangeKind.Comment,Nr.FoldingRangeKind.Imports,Nr.FoldingRangeKind.Region]},t.foldingRange={collapsedText:!1},(0,Vo.ensure)((0,Vo.ensure)(e,"workspace"),"foldingRange").refreshSupport=!0}initialize(e,t){this._client.onRequest(Nr.FoldingRangeRefreshRequest.type,async()=>{for(let s of this.getAllProviders())s.onDidChangeFoldingRange.fire()});let[i,r]=this.getRegistration(t,e.foldingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=e.documentSelector,i=new kR.EventEmitter,r={onDidChangeFoldingRanges:i.event,provideFoldingRanges:(s,o,a)=>{let c=this._client,u=(p,h,x)=>{let f={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p)};return c.sendRequest(Nr.FoldingRangeRequest.type,f,x).then(y=>x.isCancellationRequested?null:c.protocol2CodeConverter.asFoldingRanges(y,x),y=>c.handleFailedRequest(Nr.FoldingRangeRequest.type,x,y,null))},l=c.middleware;return l.provideFoldingRanges?l.provideFoldingRanges(s,o,a,u):u(s,o,a)}};return[kR.languages.registerFoldingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),r),{provider:r,onDidChangeFoldingRange:i}]}};Ju.FoldingRangeFeature=$m});var qR=T(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.DeclarationFeature=void 0;var vI=require("vscode"),Hm=ue(),Bm=Ce(),Wm=class extends Bm.TextDocumentLanguageFeature{constructor(e){super(e,Hm.DeclarationRequest.type)}fillClientCapabilities(e){let t=(0,Bm.ensure)((0,Bm.ensure)(e,"textDocument"),"declaration");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.declarationProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=e.documentSelector,i={provideDeclaration:(r,s,o)=>{let a=this._client,c=(l,p,h)=>a.sendRequest(Hm.DeclarationRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(l,p),h).then(x=>h.isCancellationRequested?null:a.protocol2CodeConverter.asDeclarationResult(x,h),x=>a.handleFailedRequest(Hm.DeclarationRequest.type,h,x,null)),u=a.middleware;return u.provideDeclaration?u.provideDeclaration(r,s,o,c):c(r,s,o)}};return[this.registerProvider(t,i),i]}registerProvider(e,t){return vI.languages.registerDeclarationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}};Yu.DeclarationFeature=Wm});var FR=T(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.SelectionRangeFeature=void 0;var xI=require("vscode"),Km=ue(),Gm=Ce(),Vm=class extends Gm.TextDocumentLanguageFeature{constructor(e){super(e,Km.SelectionRangeRequest.type)}fillClientCapabilities(e){let t=(0,Gm.ensure)((0,Gm.ensure)(e,"textDocument"),"selectionRange");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.selectionRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=e.documentSelector,i={provideSelectionRanges:(r,s,o)=>{let a=this._client,c=async(l,p,h)=>{let x={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(l),positions:a.code2ProtocolConverter.asPositionsSync(p,h)};return a.sendRequest(Km.SelectionRangeRequest.type,x,h).then(f=>h.isCancellationRequested?null:a.protocol2CodeConverter.asSelectionRanges(f,h),f=>a.handleFailedRequest(Km.SelectionRangeRequest.type,h,f,null))},u=a.middleware;return u.provideSelectionRanges?u.provideSelectionRanges(r,s,o,c):c(r,s,o)}};return[this.registerProvider(t,i),i]}registerProvider(e,t){return xI.languages.registerSelectionRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}};Qu.SelectionRangeFeature=Vm});var AR=T(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.ProgressFeature=void 0;var NR=ue(),yI=wh();function bI(n,e){return n[e]===void 0&&(n[e]=Object.create(null)),n[e]}var Xm=class{constructor(e){this._client=e,this.activeParts=new Set}getState(){return{kind:"window",id:NR.WorkDoneProgressCreateRequest.method,registrations:this.activeParts.size>0}}fillClientCapabilities(e){bI(e,"window").workDoneProgress=!0}initialize(){let e=this._client,t=r=>{this.activeParts.delete(r)},i=r=>{this.activeParts.add(new yI.ProgressPart(this._client,r.token,t))};e.onRequest(NR.WorkDoneProgressCreateRequest.type,i)}clear(){for(let e of this.activeParts)e.done();this.activeParts.clear()}};Zu.ProgressFeature=Xm});var IR=T(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.CallHierarchyFeature=void 0;var wI=require("vscode"),Ar=ue(),Jm=Ce(),Ym=class{constructor(e){this.client=e,this.middleware=e.middleware}prepareCallHierarchy(e,t,i){let r=this.client,s=this.middleware,o=(a,c,u)=>{let l=r.code2ProtocolConverter.asTextDocumentPositionParams(a,c);return r.sendRequest(Ar.CallHierarchyPrepareRequest.type,l,u).then(p=>u.isCancellationRequested?null:r.protocol2CodeConverter.asCallHierarchyItems(p,u),p=>r.handleFailedRequest(Ar.CallHierarchyPrepareRequest.type,u,p,null))};return s.prepareCallHierarchy?s.prepareCallHierarchy(e,t,i,o):o(e,t,i)}provideCallHierarchyIncomingCalls(e,t){let i=this.client,r=this.middleware,s=(o,a)=>{let c={item:i.code2ProtocolConverter.asCallHierarchyItem(o)};return i.sendRequest(Ar.CallHierarchyIncomingCallsRequest.type,c,a).then(u=>a.isCancellationRequested?null:i.protocol2CodeConverter.asCallHierarchyIncomingCalls(u,a),u=>i.handleFailedRequest(Ar.CallHierarchyIncomingCallsRequest.type,a,u,null))};return r.provideCallHierarchyIncomingCalls?r.provideCallHierarchyIncomingCalls(e,t,s):s(e,t)}provideCallHierarchyOutgoingCalls(e,t){let i=this.client,r=this.middleware,s=(o,a)=>{let c={item:i.code2ProtocolConverter.asCallHierarchyItem(o)};return i.sendRequest(Ar.CallHierarchyOutgoingCallsRequest.type,c,a).then(u=>a.isCancellationRequested?null:i.protocol2CodeConverter.asCallHierarchyOutgoingCalls(u,a),u=>i.handleFailedRequest(Ar.CallHierarchyOutgoingCallsRequest.type,a,u,null))};return r.provideCallHierarchyOutgoingCalls?r.provideCallHierarchyOutgoingCalls(e,t,s):s(e,t)}},Qm=class extends Jm.TextDocumentLanguageFeature{constructor(e){super(e,Ar.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){let t=e,i=(0,Jm.ensure)((0,Jm.ensure)(t,"textDocument"),"callHierarchy");i.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.callHierarchyProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=this._client,i=new Ym(t);return[wI.languages.registerCallHierarchyProvider(this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector),i),i]}};el.CallHierarchyFeature=Qm});var jR=T(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.SemanticTokensFeature=void 0;var tl=require("vscode"),fe=ue(),Xo=Ce(),_I=qn(),Zm=class extends Xo.TextDocumentLanguageFeature{constructor(e){super(e,fe.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){let t=(0,Xo.ensure)((0,Xo.ensure)(e,"textDocument"),"semanticTokens");t.dynamicRegistration=!0,t.tokenTypes=[fe.SemanticTokenTypes.namespace,fe.SemanticTokenTypes.type,fe.SemanticTokenTypes.class,fe.SemanticTokenTypes.enum,fe.SemanticTokenTypes.interface,fe.SemanticTokenTypes.struct,fe.SemanticTokenTypes.typeParameter,fe.SemanticTokenTypes.parameter,fe.SemanticTokenTypes.variable,fe.SemanticTokenTypes.property,fe.SemanticTokenTypes.enumMember,fe.SemanticTokenTypes.event,fe.SemanticTokenTypes.function,fe.SemanticTokenTypes.method,fe.SemanticTokenTypes.macro,fe.SemanticTokenTypes.keyword,fe.SemanticTokenTypes.modifier,fe.SemanticTokenTypes.comment,fe.SemanticTokenTypes.string,fe.SemanticTokenTypes.number,fe.SemanticTokenTypes.regexp,fe.SemanticTokenTypes.operator,fe.SemanticTokenTypes.decorator],t.tokenModifiers=[fe.SemanticTokenModifiers.declaration,fe.SemanticTokenModifiers.definition,fe.SemanticTokenModifiers.readonly,fe.SemanticTokenModifiers.static,fe.SemanticTokenModifiers.deprecated,fe.SemanticTokenModifiers.abstract,fe.SemanticTokenModifiers.async,fe.SemanticTokenModifiers.modification,fe.SemanticTokenModifiers.documentation,fe.SemanticTokenModifiers.defaultLibrary],t.formats=[fe.TokenFormat.Relative],t.requests={range:!0,full:{delta:!0}},t.multilineTokenSupport=!1,t.overlappingTokenSupport=!1,t.serverCancelSupport=!0,t.augmentsSyntaxTokens=!0,(0,Xo.ensure)((0,Xo.ensure)(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,t){this._client.onRequest(fe.SemanticTokensRefreshRequest.type,async()=>{for(let o of this.getAllProviders())o.onDidChangeSemanticTokensEmitter.fire()});let[r,s]=this.getRegistration(t,e.semanticTokensProvider);!r||!s||this.register({id:r,registerOptions:s})}registerLanguageProvider(e){let t=e.documentSelector,i=_I.boolean(e.full)?e.full:e.full!==void 0,r=e.full!==void 0&&typeof e.full!="boolean"&&e.full.delta===!0,s=new tl.EventEmitter,o=i?{onDidChangeSemanticTokens:s.event,provideDocumentSemanticTokens:(x,f)=>{let y=this._client,w=y.middleware,S=(O,k)=>{let N={textDocument:y.code2ProtocolConverter.asTextDocumentIdentifier(O)};return y.sendRequest(fe.SemanticTokensRequest.type,N,k).then(j=>k.isCancellationRequested?null:y.protocol2CodeConverter.asSemanticTokens(j,k),j=>y.handleFailedRequest(fe.SemanticTokensRequest.type,k,j,null))};return w.provideDocumentSemanticTokens?w.provideDocumentSemanticTokens(x,f,S):S(x,f)},provideDocumentSemanticTokensEdits:r?(x,f,y)=>{let w=this._client,S=w.middleware,O=(k,N,j)=>{let G={textDocument:w.code2ProtocolConverter.asTextDocumentIdentifier(k),previousResultId:N};return w.sendRequest(fe.SemanticTokensDeltaRequest.type,G,j).then(async $=>j.isCancellationRequested?null:fe.SemanticTokens.is($)?await w.protocol2CodeConverter.asSemanticTokens($,j):await w.protocol2CodeConverter.asSemanticTokensEdits($,j),$=>w.handleFailedRequest(fe.SemanticTokensDeltaRequest.type,j,$,null))};return S.provideDocumentSemanticTokensEdits?S.provideDocumentSemanticTokensEdits(x,f,y,O):O(x,f,y)}:void 0}:void 0,c=e.range===!0?{provideDocumentRangeSemanticTokens:(x,f,y)=>{let w=this._client,S=w.middleware,O=(k,N,j)=>{let G={textDocument:w.code2ProtocolConverter.asTextDocumentIdentifier(k),range:w.code2ProtocolConverter.asRange(N)};return w.sendRequest(fe.SemanticTokensRangeRequest.type,G,j).then($=>j.isCancellationRequested?null:w.protocol2CodeConverter.asSemanticTokens($,j),$=>w.handleFailedRequest(fe.SemanticTokensRangeRequest.type,j,$,null))};return S.provideDocumentRangeSemanticTokens?S.provideDocumentRangeSemanticTokens(x,f,y,O):O(x,f,y)}}:void 0,u=[],l=this._client,p=l.protocol2CodeConverter.asSemanticTokensLegend(e.legend),h=l.protocol2CodeConverter.asDocumentSelector(t);return o!==void 0&&u.push(tl.languages.registerDocumentSemanticTokensProvider(h,o,p)),c!==void 0&&u.push(tl.languages.registerDocumentRangeSemanticTokensProvider(h,c,p)),[new tl.Disposable(()=>u.forEach(x=>x.dispose())),{range:c,full:o,onDidChangeSemanticTokensEmitter:s}]}};nl.SemanticTokensFeature=Zm});var UR=T(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.WillDeleteFilesFeature=ln.WillRenameFilesFeature=ln.WillCreateFilesFeature=ln.DidDeleteFilesFeature=ln.DidRenameFilesFeature=ln.DidCreateFilesFeature=void 0;var Ln=require("vscode"),SI=Cu(),ki=ue(),CI=tt();function LR(n,e){return n[e]===void 0&&(n[e]={}),n[e]}function RI(n,e){return n[e]}function MR(n,e,t){n[e]=t}var Jo=class n{constructor(e,t,i,r,s){this._client=e,this._event=t,this._registrationType=i,this._clientCapability=r,this._serverCapability=s,this._filters=new Map}getState(){return{kind:"workspace",id:this._registrationType.method,registrations:this._filters.size>0}}filterSize(){return this._filters.size}get registrationType(){return this._registrationType}fillClientCapabilities(e){let t=LR(LR(e,"workspace"),"fileOperations");MR(t,"dynamicRegistration",!0),MR(t,this._clientCapability,!0)}initialize(e){let t=e.workspace?.fileOperations,i=t!==void 0?RI(t,this._serverCapability):void 0;if(i?.filters!==void 0)try{this.register({id:CI.generateUuid(),registerOptions:{filters:i.filters}})}catch(r){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${r}`)}}register(e){this._listener||(this._listener=this._event(this.send,this));let t=e.registerOptions.filters.map(i=>{let r=new SI.Minimatch(i.pattern.glob,n.asMinimatchOptions(i.pattern.options));if(!r.makeRe())throw new Error(`Invalid pattern ${i.pattern.glob}!`);return{scheme:i.scheme,matcher:r,kind:i.pattern.matches}});this._filters.set(e.id,t)}unregister(e){this._filters.delete(e),this._filters.size===0&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._filters.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getFileType(e){return n.getFileType(e)}async filter(e,t){let i=await Promise.all(e.files.map(async s=>{let o=t(s),a=o.fsPath.replace(/\\/g,"/");for(let c of this._filters.values())for(let u of c)if(!(u.scheme!==void 0&&u.scheme!==o.scheme)){if(u.matcher.match(a)){if(u.kind===void 0)return!0;let l=await this.getFileType(o);if(l===void 0)return this._client.error(`Failed to determine file type for ${o.toString()}.`),!0;if(l===Ln.FileType.File&&u.kind===ki.FileOperationPatternKind.file||l===Ln.FileType.Directory&&u.kind===ki.FileOperationPatternKind.folder)return!0}else if(u.kind===ki.FileOperationPatternKind.folder&&await n.getFileType(o)===Ln.FileType.Directory&&u.matcher.match(`${a}/`))return!0}return!1})),r=e.files.filter((s,o)=>i[o]);return{...e,files:r}}static async getFileType(e){try{return(await Ln.workspace.fs.stat(e)).type}catch{return}}static asMinimatchOptions(e){let t={dot:!0};return e?.ignoreCase===!0&&(t.nocase=!0),t}},il=class extends Jo{constructor(e,t,i,r,s,o,a){super(e,t,i,r,s),this._notificationType=i,this._accessUri=o,this._createParams=a}async send(e){let t=await this.filter(e,this._accessUri);if(t.files.length){let i=async r=>this._client.sendNotification(this._notificationType,this._createParams(r));return this.doSend(t,i)}}},rl=class extends il{constructor(){super(...arguments),this._fsPathFileTypes=new Map}async getFileType(e){let t=e.fsPath;if(this._fsPathFileTypes.has(t))return this._fsPathFileTypes.get(t);let i=await Jo.getFileType(e);return i&&this._fsPathFileTypes.set(t,i),i}async cacheFileTypes(e,t){await this.filter(e,t)}clearFileTypeCache(){this._fsPathFileTypes.clear()}unregister(e){super.unregister(e),this.filterSize()===0&&this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}clear(){super.clear(),this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}},eg=class extends il{constructor(e){super(e,Ln.workspace.onDidCreateFiles,ki.DidCreateFilesNotification.type,"didCreate","didCreate",t=>t,e.code2ProtocolConverter.asDidCreateFilesParams)}doSend(e,t){let i=this._client.middleware.workspace;return i?.didCreateFiles?i.didCreateFiles(e,t):t(e)}};ln.DidCreateFilesFeature=eg;var tg=class extends rl{constructor(e){super(e,Ln.workspace.onDidRenameFiles,ki.DidRenameFilesNotification.type,"didRename","didRename",t=>t.oldUri,e.code2ProtocolConverter.asDidRenameFilesParams)}register(e){this._willListener||(this._willListener=Ln.workspace.onWillRenameFiles(this.willRename,this)),super.register(e)}willRename(e){e.waitUntil(this.cacheFileTypes(e,t=>t.oldUri))}doSend(e,t){this.clearFileTypeCache();let i=this._client.middleware.workspace;return i?.didRenameFiles?i.didRenameFiles(e,t):t(e)}};ln.DidRenameFilesFeature=tg;var ng=class extends rl{constructor(e){super(e,Ln.workspace.onDidDeleteFiles,ki.DidDeleteFilesNotification.type,"didDelete","didDelete",t=>t,e.code2ProtocolConverter.asDidDeleteFilesParams)}register(e){this._willListener||(this._willListener=Ln.workspace.onWillDeleteFiles(this.willDelete,this)),super.register(e)}willDelete(e){e.waitUntil(this.cacheFileTypes(e,t=>t))}doSend(e,t){this.clearFileTypeCache();let i=this._client.middleware.workspace;return i?.didDeleteFiles?i.didDeleteFiles(e,t):t(e)}};ln.DidDeleteFilesFeature=ng;var Yo=class extends Jo{constructor(e,t,i,r,s,o,a){super(e,t,i,r,s),this._requestType=i,this._accessUri=o,this._createParams=a}async send(e){let t=this.waitUntil(e);e.waitUntil(t)}async waitUntil(e){let t=await this.filter(e,this._accessUri);if(t.files.length){let i=r=>this._client.sendRequest(this._requestType,this._createParams(r),r.token).then(this._client.protocol2CodeConverter.asWorkspaceEdit);return this.doSend(t,i)}else return}},ig=class extends Yo{constructor(e){super(e,Ln.workspace.onWillCreateFiles,ki.WillCreateFilesRequest.type,"willCreate","willCreate",t=>t,e.code2ProtocolConverter.asWillCreateFilesParams)}doSend(e,t){let i=this._client.middleware.workspace;return i?.willCreateFiles?i.willCreateFiles(e,t):t(e)}};ln.WillCreateFilesFeature=ig;var rg=class extends Yo{constructor(e){super(e,Ln.workspace.onWillRenameFiles,ki.WillRenameFilesRequest.type,"willRename","willRename",t=>t.oldUri,e.code2ProtocolConverter.asWillRenameFilesParams)}doSend(e,t){let i=this._client.middleware.workspace;return i?.willRenameFiles?i.willRenameFiles(e,t):t(e)}};ln.WillRenameFilesFeature=rg;var sg=class extends Yo{constructor(e){super(e,Ln.workspace.onWillDeleteFiles,ki.WillDeleteFilesRequest.type,"willDelete","willDelete",t=>t,e.code2ProtocolConverter.asWillDeleteFilesParams)}doSend(e,t){let i=this._client.middleware.workspace;return i?.willDeleteFiles?i.willDeleteFiles(e,t):t(e)}};ln.WillDeleteFilesFeature=sg});var zR=T(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.LinkedEditingFeature=void 0;var DI=require("vscode"),og=ue(),ag=Ce(),cg=class extends ag.TextDocumentLanguageFeature{constructor(e){super(e,og.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){let t=(0,ag.ensure)((0,ag.ensure)(e,"textDocument"),"linkedEditingRange");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.linkedEditingRangeProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=e.documentSelector,i={provideLinkedEditingRanges:(r,s,o)=>{let a=this._client,c=(l,p,h)=>a.sendRequest(og.LinkedEditingRangeRequest.type,a.code2ProtocolConverter.asTextDocumentPositionParams(l,p),h).then(x=>h.isCancellationRequested?null:a.protocol2CodeConverter.asLinkedEditingRanges(x,h),x=>a.handleFailedRequest(og.LinkedEditingRangeRequest.type,h,x,null)),u=a.middleware;return u.provideLinkedEditingRange?u.provideLinkedEditingRange(r,s,o,c):c(r,s,o)}};return[this.registerProvider(t,i),i]}registerProvider(e,t){return DI.languages.registerLinkedEditingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}};sl.LinkedEditingFeature=cg});var $R=T(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.TypeHierarchyFeature=void 0;var TI=require("vscode"),Ir=ue(),ug=Ce(),lg=class{constructor(e){this.client=e,this.middleware=e.middleware}prepareTypeHierarchy(e,t,i){let r=this.client,s=this.middleware,o=(a,c,u)=>{let l=r.code2ProtocolConverter.asTextDocumentPositionParams(a,c);return r.sendRequest(Ir.TypeHierarchyPrepareRequest.type,l,u).then(p=>u.isCancellationRequested?null:r.protocol2CodeConverter.asTypeHierarchyItems(p,u),p=>r.handleFailedRequest(Ir.TypeHierarchyPrepareRequest.type,u,p,null))};return s.prepareTypeHierarchy?s.prepareTypeHierarchy(e,t,i,o):o(e,t,i)}provideTypeHierarchySupertypes(e,t){let i=this.client,r=this.middleware,s=(o,a)=>{let c={item:i.code2ProtocolConverter.asTypeHierarchyItem(o)};return i.sendRequest(Ir.TypeHierarchySupertypesRequest.type,c,a).then(u=>a.isCancellationRequested?null:i.protocol2CodeConverter.asTypeHierarchyItems(u,a),u=>i.handleFailedRequest(Ir.TypeHierarchySupertypesRequest.type,a,u,null))};return r.provideTypeHierarchySupertypes?r.provideTypeHierarchySupertypes(e,t,s):s(e,t)}provideTypeHierarchySubtypes(e,t){let i=this.client,r=this.middleware,s=(o,a)=>{let c={item:i.code2ProtocolConverter.asTypeHierarchyItem(o)};return i.sendRequest(Ir.TypeHierarchySubtypesRequest.type,c,a).then(u=>a.isCancellationRequested?null:i.protocol2CodeConverter.asTypeHierarchyItems(u,a),u=>i.handleFailedRequest(Ir.TypeHierarchySubtypesRequest.type,a,u,null))};return r.provideTypeHierarchySubtypes?r.provideTypeHierarchySubtypes(e,t,s):s(e,t)}},dg=class extends ug.TextDocumentLanguageFeature{constructor(e){super(e,Ir.TypeHierarchyPrepareRequest.type)}fillClientCapabilities(e){let t=(0,ug.ensure)((0,ug.ensure)(e,"textDocument"),"typeHierarchy");t.dynamicRegistration=!0}initialize(e,t){let[i,r]=this.getRegistration(t,e.typeHierarchyProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=this._client,i=new lg(t);return[TI.languages.registerTypeHierarchyProvider(t.protocol2CodeConverter.asDocumentSelector(e.documentSelector),i),i]}};ol.TypeHierarchyFeature=dg});var BR=T(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.InlineValueFeature=void 0;var HR=require("vscode"),al=ue(),Qo=Ce(),pg=class extends Qo.TextDocumentLanguageFeature{constructor(e){super(e,al.InlineValueRequest.type)}fillClientCapabilities(e){(0,Qo.ensure)((0,Qo.ensure)(e,"textDocument"),"inlineValue").dynamicRegistration=!0,(0,Qo.ensure)((0,Qo.ensure)(e,"workspace"),"inlineValue").refreshSupport=!0}initialize(e,t){this._client.onRequest(al.InlineValueRefreshRequest.type,async()=>{for(let s of this.getAllProviders())s.onDidChangeInlineValues.fire()});let[i,r]=this.getRegistration(t,e.inlineValueProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=e.documentSelector,i=new HR.EventEmitter,r={onDidChangeInlineValues:i.event,provideInlineValues:(s,o,a,c)=>{let u=this._client,l=(h,x,f,y)=>{let w={textDocument:u.code2ProtocolConverter.asTextDocumentIdentifier(h),range:u.code2ProtocolConverter.asRange(x),context:u.code2ProtocolConverter.asInlineValueContext(f)};return u.sendRequest(al.InlineValueRequest.type,w,y).then(S=>y.isCancellationRequested?null:u.protocol2CodeConverter.asInlineValues(S,y),S=>u.handleFailedRequest(al.InlineValueRequest.type,y,S,null))},p=u.middleware;return p.provideInlineValues?p.provideInlineValues(s,o,a,c,l):l(s,o,a,c)}};return[this.registerProvider(t,r),{provider:r,onDidChangeInlineValues:i}]}registerProvider(e,t){return HR.languages.registerInlineValuesProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}};cl.InlineValueFeature=pg});var KR=T(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.InlayHintsFeature=void 0;var WR=require("vscode"),Ls=ue(),Zo=Ce(),fg=class extends Zo.TextDocumentLanguageFeature{constructor(e){super(e,Ls.InlayHintRequest.type)}fillClientCapabilities(e){let t=(0,Zo.ensure)((0,Zo.ensure)(e,"textDocument"),"inlayHint");t.dynamicRegistration=!0,t.resolveSupport={properties:["tooltip","textEdits","label.tooltip","label.location","label.command"]},(0,Zo.ensure)((0,Zo.ensure)(e,"workspace"),"inlayHint").refreshSupport=!0}initialize(e,t){this._client.onRequest(Ls.InlayHintRefreshRequest.type,async()=>{for(let s of this.getAllProviders())s.onDidChangeInlayHints.fire()});let[i,r]=this.getRegistration(t,e.inlayHintProvider);!i||!r||this.register({id:i,registerOptions:r})}registerLanguageProvider(e){let t=e.documentSelector,i=new WR.EventEmitter,r={onDidChangeInlayHints:i.event,provideInlayHints:(s,o,a)=>{let c=this._client,u=async(p,h,x)=>{let f={textDocument:c.code2ProtocolConverter.asTextDocumentIdentifier(p),range:c.code2ProtocolConverter.asRange(h)};try{let y=await c.sendRequest(Ls.InlayHintRequest.type,f,x);return x.isCancellationRequested?null:c.protocol2CodeConverter.asInlayHints(y,x)}catch(y){return c.handleFailedRequest(Ls.InlayHintRequest.type,x,y,null)}},l=c.middleware;return l.provideInlayHints?l.provideInlayHints(s,o,a,u):u(s,o,a)}};return r.resolveInlayHint=e.resolveProvider===!0?(s,o)=>{let a=this._client,c=async(l,p)=>{try{let h=await a.sendRequest(Ls.InlayHintResolveRequest.type,a.code2ProtocolConverter.asInlayHint(l),p);if(p.isCancellationRequested)return null;let x=a.protocol2CodeConverter.asInlayHint(h,p);return p.isCancellationRequested?null:x}catch(h){return a.handleFailedRequest(Ls.InlayHintResolveRequest.type,p,h,null)}},u=a.middleware;return u.resolveInlayHint?u.resolveInlayHint(s,o,c):c(s,o)}:void 0,[this.registerProvider(t,r),{provider:r,onDidChangeInlayHints:i}]}registerProvider(e,t){return WR.languages.registerInlayHintsProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}};ul.InlayHintsFeature=fg});var GR=T(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.InlineCompletionItemFeature=void 0;var EI=require("vscode"),hg=ue(),mg=Ce(),PI=tt(),gg=class extends mg.TextDocumentLanguageFeature{constructor(e){super(e,hg.InlineCompletionRequest.type)}fillClientCapabilities(e){let t=(0,mg.ensure)((0,mg.ensure)(e,"textDocument"),"inlineCompletion");t.dynamicRegistration=!0}initialize(e,t){let i=this.getRegistrationOptions(t,e.inlineCompletionProvider);i&&this.register({id:PI.generateUuid(),registerOptions:i})}registerLanguageProvider(e){let t=e.documentSelector,i={provideInlineCompletionItems:(r,s,o,a)=>{let c=this._client,u=this._client.middleware,l=(p,h,x,f)=>c.sendRequest(hg.InlineCompletionRequest.type,c.code2ProtocolConverter.asInlineCompletionParams(p,h,x),f).then(y=>f.isCancellationRequested?null:c.protocol2CodeConverter.asInlineCompletionResult(y,f),y=>c.handleFailedRequest(hg.InlineCompletionRequest.type,f,y,null));return u.provideInlineCompletionItems?u.provideInlineCompletionItems(r,s,o,a,l):l(r,s,o,a)}};return[EI.languages.registerInlineCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),i),i]}};ll.InlineCompletionItemFeature=gg});var _g=T(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.ProposedFeatures=Ft.BaseLanguageClient=Ft.MessageTransports=Ft.SuspendMode=Ft.State=Ft.CloseAction=Ft.ErrorAction=Ft.RevealOutputChannelOn=void 0;var je=require("vscode"),z=ue(),kI=S0(),OI=D0(),Zn=qn(),dl=vu(),VR=tt(),qI=wh(),Qn=Ce(),FI=zh(),XR=iR(),JR=sR(),Ms=oR(),NI=aR(),AI=cR(),II=uR(),jI=dR(),LI=pR(),MI=pm(),UI=hR(),zI=mR(),$I=gR(),HI=xR(),vg=yR(),BI=wR(),WI=_R(),KI=CR(),GI=RR(),VI=DR(),XI=TR(),JI=ER(),YI=PR(),QI=OR(),ZI=qR(),ej=FR(),tj=AR(),nj=IR(),ij=jR(),Us=UR(),rj=zR(),sj=$R(),oj=BR(),aj=KR(),cj=GR(),jr;(function(n){n[n.Debug=0]="Debug",n[n.Info=1]="Info",n[n.Warn=2]="Warn",n[n.Error=3]="Error",n[n.Never=4]="Never"})(jr||(Ft.RevealOutputChannelOn=jr={}));var ta;(function(n){n[n.Continue=1]="Continue",n[n.Shutdown=2]="Shutdown"})(ta||(Ft.ErrorAction=ta={}));var hr;(function(n){n[n.DoNotRestart=1]="DoNotRestart",n[n.Restart=2]="Restart"})(hr||(Ft.CloseAction=hr={}));var ea;(function(n){n[n.Stopped=1]="Stopped",n[n.Starting=3]="Starting",n[n.Running=2]="Running"})(ea||(Ft.State=ea={}));var YR;(function(n){n.off="off",n.on="on"})(YR||(Ft.SuspendMode=YR={}));var xg;(function(n){function e(t){return t==null?!1:typeof t=="boolean"||typeof t=="object"&&t!==null&&Zn.stringArray(t.enabledCommands)?t:!1}n.sanitizeIsTrusted=e})(xg||(xg={}));var yg=class{constructor(e,t){this.client=e,this.maxRestartCount=t,this.restarts=[]}error(e,t,i){return i&&i<=3?{action:ta.Continue}:{action:ta.Shutdown}}closed(){return this.restarts.push(Date.now()),this.restarts.length<=this.maxRestartCount?{action:hr.Restart}:this.restarts[this.restarts.length-1]-this.restarts[0]<=3*60*1e3?{action:hr.DoNotRestart,message:`The ${this.client.name} server crashed ${this.maxRestartCount+1} times in the last 3 minutes. The server will not be restarted. See the output for more information.`}:(this.restarts.shift(),{action:hr.Restart})}},ve;(function(n){n.Initial="initial",n.Starting="starting",n.StartFailed="startFailed",n.Running="running",n.Stopping="stopping",n.Stopped="stopped"})(ve||(ve={}));var QR;(function(n){function e(t){return t&&z.MessageReader.is(t.reader)&&z.MessageWriter.is(t.writer)}n.is=e})(QR||(Ft.MessageTransports=QR={}));var na=class n{constructor(e,t,i){this._traceFormat=z.TraceFormat.Text,this._diagnosticQueue=new Map,this._diagnosticQueueState={state:"idle"},this._features=[],this._dynamicFeatures=new Map,this.workspaceEditLock=new dl.Semaphore(1),this._id=e,this._name=t,i=i||{};let r={isTrusted:!1,supportHtml:!1};i.markdown!==void 0&&(r.isTrusted=xg.sanitizeIsTrusted(i.markdown.isTrusted),r.supportHtml=i.markdown.supportHtml===!0),this._clientOptions={documentSelector:i.documentSelector??[],synchronize:i.synchronize??{},diagnosticCollectionName:i.diagnosticCollectionName,outputChannelName:i.outputChannelName??this._name,revealOutputChannelOn:i.revealOutputChannelOn??jr.Error,stdioEncoding:i.stdioEncoding??"utf8",initializationOptions:i.initializationOptions,initializationFailedHandler:i.initializationFailedHandler,progressOnInitialization:!!i.progressOnInitialization,errorHandler:i.errorHandler??this.createDefaultErrorHandler(i.connectionOptions?.maxRestartCount),middleware:i.middleware??{},uriConverters:i.uriConverters,workspaceFolder:i.workspaceFolder,connectionOptions:i.connectionOptions,markdown:r,diagnosticPullOptions:i.diagnosticPullOptions??{onChange:!0,onSave:!1},notebookDocumentOptions:i.notebookDocumentOptions??{}},this._clientOptions.synchronize=this._clientOptions.synchronize||{},this._state=ve.Initial,this._ignoredRegistrations=new Set,this._listeners=[],this._notificationHandlers=new Map,this._pendingNotificationHandlers=new Map,this._notificationDisposables=new Map,this._requestHandlers=new Map,this._pendingRequestHandlers=new Map,this._requestDisposables=new Map,this._progressHandlers=new Map,this._pendingProgressHandlers=new Map,this._progressDisposables=new Map,this._connection=void 0,this._initializeResult=void 0,i.outputChannel?(this._outputChannel=i.outputChannel,this._disposeOutputChannel=!1):(this._outputChannel=void 0,this._disposeOutputChannel=!0),this._traceOutputChannel=i.traceOutputChannel,this._diagnostics=void 0,this._pendingOpenNotifications=new Set,this._pendingChangeSemaphore=new dl.Semaphore(1),this._pendingChangeDelayer=new dl.Delayer(250),this._fileEvents=[],this._fileEventDelayer=new dl.Delayer(250),this._onStop=void 0,this._telemetryEmitter=new z.Emitter,this._stateChangeEmitter=new z.Emitter,this._trace=z.Trace.Off,this._tracer={log:(s,o)=>{Zn.string(s)?this.logTrace(s,o):this.logObjectTrace(s)}},this._c2p=kI.createConverter(i.uriConverters?i.uriConverters.code2Protocol:void 0),this._p2c=OI.createConverter(i.uriConverters?i.uriConverters.protocol2Code:void 0,this._clientOptions.markdown.isTrusted,this._clientOptions.markdown.supportHtml),this._syncedDocuments=new Map,this.registerBuiltinFeatures()}get name(){return this._name}get middleware(){return this._clientOptions.middleware??Object.create(null)}get clientOptions(){return this._clientOptions}get protocol2CodeConverter(){return this._p2c}get code2ProtocolConverter(){return this._c2p}get onTelemetry(){return this._telemetryEmitter.event}get onDidChangeState(){return this._stateChangeEmitter.event}get outputChannel(){return this._outputChannel||(this._outputChannel=je.window.createOutputChannel(this._clientOptions.outputChannelName?this._clientOptions.outputChannelName:this._name)),this._outputChannel}get traceOutputChannel(){return this._traceOutputChannel?this._traceOutputChannel:this.outputChannel}get diagnostics(){return this._diagnostics}get state(){return this.getPublicState()}get $state(){return this._state}set $state(e){let t=this.getPublicState();this._state=e;let i=this.getPublicState();i!==t&&this._stateChangeEmitter.fire({oldState:t,newState:i})}getPublicState(){switch(this.$state){case ve.Starting:return ea.Starting;case ve.Running:return ea.Running;default:return ea.Stopped}}get initializeResult(){return this._initializeResult}async sendRequest(e,...t){if(this.$state===ve.StartFailed||this.$state===ve.Stopping||this.$state===ve.Stopped)return Promise.reject(new z.ResponseError(z.ErrorCodes.ConnectionInactive,"Client is not running"));let i=await this.$start();this._didChangeTextDocumentFeature.syncKind===z.TextDocumentSyncKind.Full&&await this.sendPendingFullTextDocumentChanges(i);let r=this._clientOptions.middleware?.sendRequest;if(r!==void 0){let s,o;return t.length===1?z.CancellationToken.is(t[0])?o=t[0]:s=t[0]:t.length===2&&(s=t[0],o=t[1]),r(e,s,o,(a,c,u)=>{let l=[];return c!==void 0&&l.push(c),u!==void 0&&l.push(u),i.sendRequest(a,...l)})}else return i.sendRequest(e,...t)}onRequest(e,t){let i=typeof e=="string"?e:e.method;this._requestHandlers.set(i,t);let r=this.activeConnection(),s;return r!==void 0?(this._requestDisposables.set(i,r.onRequest(e,t)),s={dispose:()=>{let o=this._requestDisposables.get(i);o!==void 0&&(o.dispose(),this._requestDisposables.delete(i))}}):(this._pendingRequestHandlers.set(i,t),s={dispose:()=>{this._pendingRequestHandlers.delete(i);let o=this._requestDisposables.get(i);o!==void 0&&(o.dispose(),this._requestDisposables.delete(i))}}),{dispose:()=>{this._requestHandlers.delete(i),s.dispose()}}}async sendNotification(e,t){if(this.$state===ve.StartFailed||this.$state===ve.Stopping||this.$state===ve.Stopped)return Promise.reject(new z.ResponseError(z.ErrorCodes.ConnectionInactive,"Client is not running"));let i=this._didChangeTextDocumentFeature.syncKind===z.TextDocumentSyncKind.Full,r;i&&typeof e!="string"&&e.method===z.DidOpenTextDocumentNotification.method&&(r=t?.textDocument.uri,this._pendingOpenNotifications.add(r));let s=await this.$start();i&&await this.sendPendingFullTextDocumentChanges(s),r!==void 0&&this._pendingOpenNotifications.delete(r);let o=this._clientOptions.middleware?.sendNotification;return o?o(e,s.sendNotification.bind(s),t):s.sendNotification(e,t)}onNotification(e,t){let i=typeof e=="string"?e:e.method;this._notificationHandlers.set(i,t);let r=this.activeConnection(),s;return r!==void 0?(this._notificationDisposables.set(i,r.onNotification(e,t)),s={dispose:()=>{let o=this._notificationDisposables.get(i);o!==void 0&&(o.dispose(),this._notificationDisposables.delete(i))}}):(this._pendingNotificationHandlers.set(i,t),s={dispose:()=>{this._pendingNotificationHandlers.delete(i);let o=this._notificationDisposables.get(i);o!==void 0&&(o.dispose(),this._notificationDisposables.delete(i))}}),{dispose:()=>{this._notificationHandlers.delete(i),s.dispose()}}}async sendProgress(e,t,i){if(this.$state===ve.StartFailed||this.$state===ve.Stopping||this.$state===ve.Stopped)return Promise.reject(new z.ResponseError(z.ErrorCodes.ConnectionInactive,"Client is not running"));try{return(await this.$start()).sendProgress(e,t,i)}catch(r){throw this.error(`Sending progress for token ${t} failed.`,r),r}}onProgress(e,t,i){this._progressHandlers.set(t,{type:e,handler:i});let r=this.activeConnection(),s,o=this._clientOptions.middleware?.handleWorkDoneProgress,a=z.WorkDoneProgress.is(e)&&o!==void 0?c=>{o(t,c,()=>i(c))}:i;return r!==void 0?(this._progressDisposables.set(t,r.onProgress(e,t,a)),s={dispose:()=>{let c=this._progressDisposables.get(t);c!==void 0&&(c.dispose(),this._progressDisposables.delete(t))}}):(this._pendingProgressHandlers.set(t,{type:e,handler:i}),s={dispose:()=>{this._pendingProgressHandlers.delete(t);let c=this._progressDisposables.get(t);c!==void 0&&(c.dispose(),this._progressDisposables.delete(t))}}),{dispose:()=>{this._progressHandlers.delete(t),s.dispose()}}}createDefaultErrorHandler(e){if(e!==void 0&&e<0)throw new Error(`Invalid maxRestartCount: ${e}`);return new yg(this,e??4)}async setTrace(e){this._trace=e;let t=this.activeConnection();t!==void 0&&await t.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat})}data2String(e){if(e instanceof z.ResponseError){let t=e;return` Message: ${t.message}
|
|
Code: ${t.code} ${t.data?`
|
|
`+t.data.toString():""}`}return e instanceof Error?Zn.string(e.stack)?e.stack:e.message:Zn.string(e)?e:e.toString()}debug(e,t,i=!0){this.logOutputMessage(z.MessageType.Debug,jr.Debug,"Debug",e,t,i)}info(e,t,i=!0){this.logOutputMessage(z.MessageType.Info,jr.Info,"Info",e,t,i)}warn(e,t,i=!0){this.logOutputMessage(z.MessageType.Warning,jr.Warn,"Warn",e,t,i)}error(e,t,i=!0){this.logOutputMessage(z.MessageType.Error,jr.Error,"Error",e,t,i)}logOutputMessage(e,t,i,r,s,o){this.outputChannel.appendLine(`[${i.padEnd(5)} - ${new Date().toLocaleTimeString()}] ${r}`),s!=null&&this.outputChannel.appendLine(this.data2String(s)),(o==="force"||o&&this._clientOptions.revealOutputChannelOn<=t)&&this.showNotificationMessage(e,r)}showNotificationMessage(e,t){t=t??"A request has failed. See the output for more information.",(e===z.MessageType.Error?je.window.showErrorMessage:e===z.MessageType.Warning?je.window.showWarningMessage:je.window.showInformationMessage)(t,"Go to output").then(r=>{r!==void 0&&this.outputChannel.show(!0)})}logTrace(e,t){this.traceOutputChannel.appendLine(`[Trace - ${new Date().toLocaleTimeString()}] ${e}`),t&&this.traceOutputChannel.appendLine(this.data2String(t))}logObjectTrace(e){e.isLSPMessage&&e.type?this.traceOutputChannel.append(`[LSP - ${new Date().toLocaleTimeString()}] `):this.traceOutputChannel.append(`[Trace - ${new Date().toLocaleTimeString()}] `),e&&this.traceOutputChannel.appendLine(`${JSON.stringify(e)}`)}needsStart(){return this.$state===ve.Initial||this.$state===ve.Stopping||this.$state===ve.Stopped}needsStop(){return this.$state===ve.Starting||this.$state===ve.Running}activeConnection(){return this.$state===ve.Running&&this._connection!==void 0?this._connection:void 0}isRunning(){return this.$state===ve.Running}async start(){if(this._disposed==="disposing"||this._disposed==="disposed")throw new Error("Client got disposed and can't be restarted.");if(this.$state===ve.Stopping)throw new Error("Client is currently stopping. Can only restart a full stopped client");if(this._onStart!==void 0)return this._onStart;let[e,t,i]=this.createOnStartPromise();this._onStart=e,this._diagnostics===void 0&&(this._diagnostics=this._clientOptions.diagnosticCollectionName?je.languages.createDiagnosticCollection(this._clientOptions.diagnosticCollectionName):je.languages.createDiagnosticCollection());for(let[r,s]of this._notificationHandlers)this._pendingNotificationHandlers.has(r)||this._pendingNotificationHandlers.set(r,s);for(let[r,s]of this._requestHandlers)this._pendingRequestHandlers.has(r)||this._pendingRequestHandlers.set(r,s);for(let[r,s]of this._progressHandlers)this._pendingProgressHandlers.has(r)||this._pendingProgressHandlers.set(r,s);this.$state=ve.Starting;try{let r=await this.createConnection();r.onNotification(z.LogMessageNotification.type,s=>{switch(s.type){case z.MessageType.Error:this.error(s.message,void 0,!1);break;case z.MessageType.Warning:this.warn(s.message,void 0,!1);break;case z.MessageType.Info:this.info(s.message,void 0,!1);break;case z.MessageType.Debug:this.debug(s.message,void 0,!1);break;default:this.outputChannel.appendLine(s.message)}}),r.onNotification(z.ShowMessageNotification.type,s=>{switch(s.type){case z.MessageType.Error:je.window.showErrorMessage(s.message);break;case z.MessageType.Warning:je.window.showWarningMessage(s.message);break;case z.MessageType.Info:je.window.showInformationMessage(s.message);break;default:je.window.showInformationMessage(s.message)}}),r.onRequest(z.ShowMessageRequest.type,s=>{let o;switch(s.type){case z.MessageType.Error:o=je.window.showErrorMessage;break;case z.MessageType.Warning:o=je.window.showWarningMessage;break;case z.MessageType.Info:o=je.window.showInformationMessage;break;default:o=je.window.showInformationMessage}let a=s.actions||[];return o(s.message,...a)}),r.onNotification(z.TelemetryEventNotification.type,s=>{this._telemetryEmitter.fire(s)}),r.onRequest(z.ShowDocumentRequest.type,async s=>{let o=async c=>{let u=this.protocol2CodeConverter.asUri(c.uri);try{if(c.external===!0)return{success:await je.env.openExternal(u)};{let l={};return c.selection!==void 0&&(l.selection=this.protocol2CodeConverter.asRange(c.selection)),c.takeFocus===void 0||c.takeFocus===!1?l.preserveFocus=!0:c.takeFocus===!0&&(l.preserveFocus=!1),await je.window.showTextDocument(u,l),{success:!0}}}catch{return{success:!1}}},a=this._clientOptions.middleware.window?.showDocument;return a!==void 0?a(s,o):o(s)}),r.listen(),await this.initialize(r),t()}catch(r){this.$state=ve.StartFailed,this.error(`${this._name} client: couldn't create connection to server.`,r,"force"),i(r)}return this._onStart}createOnStartPromise(){let e,t;return[new Promise((r,s)=>{e=r,t=s}),e,t]}async initialize(e){this.refreshTrace(e,!1);let t=this._clientOptions.initializationOptions,[i,r]=this._clientOptions.workspaceFolder!==void 0?[this._clientOptions.workspaceFolder.uri.fsPath,[{uri:this._c2p.asUri(this._clientOptions.workspaceFolder.uri),name:this._clientOptions.workspaceFolder.name}]]:[this._clientGetRootPath(),null],s={processId:null,clientInfo:{name:je.env.appName,version:je.version},locale:this.getLocale(),rootPath:i||null,rootUri:i?this._c2p.asUri(je.Uri.file(i)):null,capabilities:this.computeClientCapabilities(),initializationOptions:Zn.func(t)?t():t,trace:z.Trace.toString(this._trace),workspaceFolders:r};if(this.fillInitializeParams(s),this._clientOptions.progressOnInitialization){let o=VR.generateUuid(),a=new qI.ProgressPart(e,o);s.workDoneToken=o;try{let c=await this.doInitialize(e,s);return a.done(),c}catch(c){throw a.cancel(),c}}else return this.doInitialize(e,s)}async doInitialize(e,t){try{let i=await e.initialize(t);if(i.capabilities.positionEncoding!==void 0&&i.capabilities.positionEncoding!==z.PositionEncodingKind.UTF16)throw new Error(`Unsupported position encoding (${i.capabilities.positionEncoding}) received from server ${this.name}`);this._initializeResult=i,this.$state=ve.Running;let r;Zn.number(i.capabilities.textDocumentSync)?i.capabilities.textDocumentSync===z.TextDocumentSyncKind.None?r={openClose:!1,change:z.TextDocumentSyncKind.None,save:void 0}:r={openClose:!0,change:i.capabilities.textDocumentSync,save:{includeText:!1}}:i.capabilities.textDocumentSync!==void 0&&i.capabilities.textDocumentSync!==null&&(r=i.capabilities.textDocumentSync),this._capabilities=Object.assign({},i.capabilities,{resolvedTextDocumentSync:r}),e.onNotification(z.PublishDiagnosticsNotification.type,s=>this.handleDiagnostics(s)),e.onRequest(z.RegistrationRequest.type,s=>this.handleRegistrationRequest(s)),e.onRequest("client/registerFeature",s=>this.handleRegistrationRequest(s)),e.onRequest(z.UnregistrationRequest.type,s=>this.handleUnregistrationRequest(s)),e.onRequest("client/unregisterFeature",s=>this.handleUnregistrationRequest(s)),e.onRequest(z.ApplyWorkspaceEditRequest.type,s=>this.handleApplyWorkspaceEdit(s));for(let[s,o]of this._pendingNotificationHandlers)this._notificationDisposables.set(s,e.onNotification(s,o));this._pendingNotificationHandlers.clear();for(let[s,o]of this._pendingRequestHandlers)this._requestDisposables.set(s,e.onRequest(s,o));this._pendingRequestHandlers.clear();for(let[s,o]of this._pendingProgressHandlers)this._progressDisposables.set(s,e.onProgress(o.type,s,o.handler));return this._pendingProgressHandlers.clear(),await e.sendNotification(z.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),i}catch(i){throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(i)?this.initialize(e):this.stop():i instanceof z.ResponseError&&i.data&&i.data.retry?je.window.showErrorMessage(i.message,{title:"Retry",id:"retry"}).then(r=>{r&&r.id==="retry"?this.initialize(e):this.stop()}):(i&&i.message&&je.window.showErrorMessage(i.message),this.error("Server initialization failed.",i),this.stop()),i}}_clientGetRootPath(){let e=je.workspace.workspaceFolders;if(!e||e.length===0)return;let t=e[0];if(t.uri.scheme==="file")return t.uri.fsPath}stop(e=2e3){return this.shutdown("stop",e)}dispose(e=2e3){try{return this._disposed="disposing",this.stop(e)}finally{this._disposed="disposed"}}async shutdown(e,t){if(this.$state===ve.Stopped||this.$state===ve.Initial)return;if(this.$state===ve.Stopping){if(this._onStop!==void 0)return this._onStop;throw new Error("Client is stopping but no stop promise available.")}let i=this.activeConnection();if(i===void 0||this.$state!==ve.Running)throw new Error(`Client is not running and can't be stopped. It's current state is: ${this.$state}`);this._initializeResult=void 0,this.$state=ve.Stopping,this.cleanUp(e);let r=new Promise(o=>{(0,z.RAL)().timer.setTimeout(o,t)}),s=(async o=>(await o.shutdown(),await o.exit(),o))(i);return this._onStop=Promise.race([r,s]).then(o=>{if(o!==void 0)o.end(),o.dispose();else throw this.error("Stopping server timed out",void 0,!1),new Error("Stopping the server timed out")},o=>{throw this.error("Stopping server failed",o,!1),o}).finally(()=>{this.$state=ve.Stopped,e==="stop"&&this.cleanUpChannel(),this._onStart=void 0,this._onStop=void 0,this._connection=void 0,this._ignoredRegistrations.clear()})}cleanUp(e){this._fileEvents=[],this._fileEventDelayer.cancel();let t=this._listeners.splice(0,this._listeners.length);for(let i of t)i.dispose();this._syncedDocuments&&this._syncedDocuments.clear();for(let i of Array.from(this._features.entries()).map(r=>r[1]).reverse())i.clear();e==="stop"&&this._diagnostics!==void 0&&(this._diagnostics.dispose(),this._diagnostics=void 0),this._idleInterval!==void 0&&(this._idleInterval.dispose(),this._idleInterval=void 0)}cleanUpChannel(){this._outputChannel!==void 0&&this._disposeOutputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}notifyFileEvent(e){let t=this;async function i(s){return t._fileEvents.push(s),t._fileEventDelayer.trigger(async()=>{await t.sendNotification(z.DidChangeWatchedFilesNotification.type,{changes:t._fileEvents}),t._fileEvents=[]})}let r=this.clientOptions.middleware?.workspace;(r?.didChangeWatchedFile?r.didChangeWatchedFile(e,i):i(e)).catch(s=>{t.error("Notify file events failed.",s)})}async sendPendingFullTextDocumentChanges(e){return this._pendingChangeSemaphore.lock(async()=>{try{let t=this._didChangeTextDocumentFeature.getPendingDocumentChanges(this._pendingOpenNotifications);if(t.length===0)return;for(let i of t){let r=this.code2ProtocolConverter.asChangeTextDocumentParams(i);await e.sendNotification(z.DidChangeTextDocumentNotification.type,r),this._didChangeTextDocumentFeature.notificationSent(i,z.DidChangeTextDocumentNotification.type,r)}}catch(t){throw this.error("Sending pending changes failed",t,!1),t}})}triggerPendingChangeDelivery(){this._pendingChangeDelayer.trigger(async()=>{let e=this.activeConnection();if(e===void 0){this.triggerPendingChangeDelivery();return}await this.sendPendingFullTextDocumentChanges(e)}).catch(e=>this.error("Delivering pending changes failed",e,!1))}handleDiagnostics(e){if(!this._diagnostics)return;let t=e.uri;this._diagnosticQueueState.state==="busy"&&this._diagnosticQueueState.document===t&&this._diagnosticQueueState.tokenSource.cancel(),this._diagnosticQueue.set(e.uri,e.diagnostics),this.triggerDiagnosticQueue()}triggerDiagnosticQueue(){(0,z.RAL)().timer.setImmediate(()=>{this.workDiagnosticQueue()})}workDiagnosticQueue(){if(this._diagnosticQueueState.state==="busy")return;let e=this._diagnosticQueue.entries().next();if(e.done===!0)return;let[t,i]=e.value;this._diagnosticQueue.delete(t);let r=new je.CancellationTokenSource;this._diagnosticQueueState={state:"busy",document:t,tokenSource:r},this._p2c.asDiagnostics(i,r.token).then(s=>{if(!r.token.isCancellationRequested){let o=this._p2c.asUri(t),a=this.clientOptions.middleware;a.handleDiagnostics?a.handleDiagnostics(o,s,(c,u)=>this.setDiagnostics(c,u)):this.setDiagnostics(o,s)}}).finally(()=>{this._diagnosticQueueState={state:"idle"},this.triggerDiagnosticQueue()})}setDiagnostics(e,t){this._diagnostics&&this._diagnostics.set(e,t)}getLocale(){return je.env.language}async $start(){if(this.$state===ve.StartFailed)throw new Error("Previous start failed. Can't restart server.");await this.start();let e=this.activeConnection();if(e===void 0)throw new Error("Starting server failed");return e}async createConnection(){let e=(r,s,o)=>{this.handleConnectionError(r,s,o).catch(a=>this.error("Handling connection error failed",a))},t=()=>{this.handleConnectionClosed().catch(r=>this.error("Handling connection close failed",r))},i=await this.createMessageTransports(this._clientOptions.stdioEncoding||"utf8");return this._connection=uj(i.reader,i.writer,e,t,this._clientOptions.connectionOptions),this._connection}async handleConnectionClosed(){if(this.$state===ve.Stopped)return;try{this._connection!==void 0&&this._connection.dispose()}catch{}let e={action:hr.DoNotRestart};if(this.$state!==ve.Stopping)try{e=await this._clientOptions.errorHandler.closed()}catch{}this._connection=void 0,e.action===hr.DoNotRestart?(this.error(e.message??"Connection to server got closed. Server will not be restarted.",void 0,e.handled===!0?!1:"force"),this.cleanUp("stop"),this.$state===ve.Starting?this.$state=ve.StartFailed:this.$state=ve.Stopped,this._onStop=Promise.resolve(),this._onStart=void 0):e.action===hr.Restart&&(this.info(e.message??"Connection to server got closed. Server will restart.",!e.handled),this.cleanUp("restart"),this.$state=ve.Initial,this._onStop=Promise.resolve(),this._onStart=void 0,this.start().catch(t=>this.error("Restarting server failed",t,"force")))}async handleConnectionError(e,t,i){let r=await this._clientOptions.errorHandler.error(e,t,i);r.action===ta.Shutdown?(this.error(r.message??`Client ${this._name}: connection to server is erroring.
|
|
${e.message}
|
|
Shutting down server.`,void 0,r.handled===!0?!1:"force"),this.stop().catch(s=>{this.error("Stopping server failed",s,!1)})):this.error(r.message??`Client ${this._name}: connection to server is erroring.
|
|
${e.message}`,void 0,r.handled===!0?!1:"force")}hookConfigurationChanged(e){this._listeners.push(je.workspace.onDidChangeConfiguration(()=>{this.refreshTrace(e,!0)}))}refreshTrace(e,t=!1){let i=je.workspace.getConfiguration(this._id),r=z.Trace.Off,s=z.TraceFormat.Text;if(i){let o=i.get("trace.server","off");typeof o=="string"?r=z.Trace.fromString(o):(r=z.Trace.fromString(i.get("trace.server.verbosity","off")),s=z.TraceFormat.fromString(i.get("trace.server.format","text")))}this._trace=r,this._traceFormat=s,e.trace(this._trace,this._tracer,{sendNotification:t,traceFormat:this._traceFormat}).catch(o=>{this.error("Updating trace failed with error",o,!1)})}hookFileEvents(e){let t=this._clientOptions.synchronize.fileEvents;if(!t)return;let i;Zn.array(t)?i=t:i=[t],i&&this._dynamicFeatures.get(z.DidChangeWatchedFilesNotification.type.method).registerRaw(VR.generateUuid(),i)}registerFeatures(e){for(let t of e)this.registerFeature(t)}registerFeature(e){if(this._features.push(e),Qn.DynamicFeature.is(e)){let t=e.registrationType;this._dynamicFeatures.set(t.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}hasDedicatedTextSynchronizationFeature(e){let t=this.getFeature(z.NotebookDocumentSyncRegistrationType.method);return t===void 0||!(t instanceof XR.NotebookDocumentSyncFeature)?!1:t.handles(e)}registerBuiltinFeatures(){let e=new Map;this.registerFeature(new JR.ConfigurationFeature(this)),this.registerFeature(new Ms.DidOpenTextDocumentFeature(this,this._syncedDocuments)),this._didChangeTextDocumentFeature=new Ms.DidChangeTextDocumentFeature(this,e),this._didChangeTextDocumentFeature.onPendingChangeAdded(()=>{this.triggerPendingChangeDelivery()}),this.registerFeature(this._didChangeTextDocumentFeature),this.registerFeature(new Ms.WillSaveFeature(this)),this.registerFeature(new Ms.WillSaveWaitUntilFeature(this)),this.registerFeature(new Ms.DidSaveTextDocumentFeature(this)),this.registerFeature(new Ms.DidCloseTextDocumentFeature(this,this._syncedDocuments,e)),this.registerFeature(new GI.FileSystemWatcherFeature(this,t=>this.notifyFileEvent(t))),this.registerFeature(new NI.CompletionItemFeature(this)),this.registerFeature(new AI.HoverFeature(this)),this.registerFeature(new jI.SignatureHelpFeature(this)),this.registerFeature(new II.DefinitionFeature(this)),this.registerFeature(new zI.ReferencesFeature(this)),this.registerFeature(new LI.DocumentHighlightFeature(this)),this.registerFeature(new MI.DocumentSymbolFeature(this)),this.registerFeature(new UI.WorkspaceSymbolFeature(this)),this.registerFeature(new $I.CodeActionFeature(this)),this.registerFeature(new HI.CodeLensFeature(this)),this.registerFeature(new vg.DocumentFormattingFeature(this)),this.registerFeature(new vg.DocumentRangeFormattingFeature(this)),this.registerFeature(new vg.DocumentOnTypeFormattingFeature(this)),this.registerFeature(new BI.RenameFeature(this)),this.registerFeature(new WI.DocumentLinkFeature(this)),this.registerFeature(new KI.ExecuteCommandFeature(this)),this.registerFeature(new JR.SyncConfigurationFeature(this)),this.registerFeature(new JI.TypeDefinitionFeature(this)),this.registerFeature(new XI.ImplementationFeature(this)),this.registerFeature(new VI.ColorProviderFeature(this)),this.clientOptions.workspaceFolder===void 0&&this.registerFeature(new YI.WorkspaceFoldersFeature(this)),this.registerFeature(new QI.FoldingRangeFeature(this)),this.registerFeature(new ZI.DeclarationFeature(this)),this.registerFeature(new ej.SelectionRangeFeature(this)),this.registerFeature(new tj.ProgressFeature(this)),this.registerFeature(new nj.CallHierarchyFeature(this)),this.registerFeature(new ij.SemanticTokensFeature(this)),this.registerFeature(new rj.LinkedEditingFeature(this)),this.registerFeature(new Us.DidCreateFilesFeature(this)),this.registerFeature(new Us.DidRenameFilesFeature(this)),this.registerFeature(new Us.DidDeleteFilesFeature(this)),this.registerFeature(new Us.WillCreateFilesFeature(this)),this.registerFeature(new Us.WillRenameFilesFeature(this)),this.registerFeature(new Us.WillDeleteFilesFeature(this)),this.registerFeature(new sj.TypeHierarchyFeature(this)),this.registerFeature(new oj.InlineValueFeature(this)),this.registerFeature(new aj.InlayHintsFeature(this)),this.registerFeature(new FI.DiagnosticFeature(this)),this.registerFeature(new XR.NotebookDocumentSyncFeature(this))}registerProposedFeatures(){this.registerFeatures(wg.createAll(this))}fillInitializeParams(e){for(let t of this._features)Zn.func(t.fillInitializeParams)&&t.fillInitializeParams(e)}computeClientCapabilities(){let e={};(0,Qn.ensure)(e,"workspace").applyEdit=!0;let t=(0,Qn.ensure)((0,Qn.ensure)(e,"workspace"),"workspaceEdit");t.documentChanges=!0,t.resourceOperations=[z.ResourceOperationKind.Create,z.ResourceOperationKind.Rename,z.ResourceOperationKind.Delete],t.failureHandling=z.FailureHandlingKind.TextOnlyTransactional,t.normalizesLineEndings=!0,t.changeAnnotationSupport={groupsOnLabel:!0};let i=(0,Qn.ensure)((0,Qn.ensure)(e,"textDocument"),"publishDiagnostics");i.relatedInformation=!0,i.versionSupport=!1,i.tagSupport={valueSet:[z.DiagnosticTag.Unnecessary,z.DiagnosticTag.Deprecated]},i.codeDescriptionSupport=!0,i.dataSupport=!0;let r=(0,Qn.ensure)(e,"window"),s=(0,Qn.ensure)(r,"showMessage");s.messageActionItem={additionalPropertiesSupport:!0};let o=(0,Qn.ensure)(r,"showDocument");o.support=!0;let a=(0,Qn.ensure)(e,"general");a.staleRequestSupport={cancel:!0,retryOnContentModified:Array.from(n.RequestsToCancelOnContentModified)},a.regularExpressions={engine:"ECMAScript",version:"ES2020"},a.markdown={parser:"marked",version:"1.1.0"},a.positionEncodings=["utf-16"],this._clientOptions.markdown.supportHtml&&(a.markdown.allowedTags=["ul","li","p","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"]);for(let c of this._features)c.fillClientCapabilities(e);return e}initializeFeatures(e){let t=this._clientOptions.documentSelector;for(let i of this._features)Zn.func(i.preInitialize)&&i.preInitialize(this._capabilities,t);for(let i of this._features)i.initialize(this._capabilities,t)}async handleRegistrationRequest(e){let t=this.clientOptions.middleware?.handleRegisterCapability;return t?t(e,i=>this.doRegisterCapability(i)):this.doRegisterCapability(e)}async doRegisterCapability(e){if(!this.isRunning()){for(let t of e.registrations)this._ignoredRegistrations.add(t.id);return}for(let t of e.registrations){let i=this._dynamicFeatures.get(t.method);if(i===void 0)return Promise.reject(new Error(`No feature implementation for ${t.method} found. Registration failed.`));let r=t.registerOptions??{};r.documentSelector=r.documentSelector??this._clientOptions.documentSelector;let s={id:t.id,registerOptions:r};try{i.register(s)}catch(o){return Promise.reject(o)}}}async handleUnregistrationRequest(e){let t=this.clientOptions.middleware?.handleUnregisterCapability;return t?t(e,i=>this.doUnregisterCapability(i)):this.doUnregisterCapability(e)}async doUnregisterCapability(e){for(let t of e.unregisterations){if(this._ignoredRegistrations.has(t.id))continue;let i=this._dynamicFeatures.get(t.method);if(!i)return Promise.reject(new Error(`No feature implementation for ${t.method} found. Unregistration failed.`));i.unregister(t.id)}}async handleApplyWorkspaceEdit(e){let t=e.edit,i=await this.workspaceEditLock.lock(()=>this._p2c.asWorkspaceEdit(t)),r=new Map;je.workspace.textDocuments.forEach(o=>r.set(o.uri.toString(),o));let s=!1;if(t.documentChanges){for(let o of t.documentChanges)if(z.TextDocumentEdit.is(o)&&o.textDocument.version&&o.textDocument.version>=0){let a=this._p2c.asUri(o.textDocument.uri).toString(),c=r.get(a);if(c&&c.version!==o.textDocument.version){s=!0;break}}}return s?Promise.resolve({applied:!1}):Zn.asPromise(je.workspace.applyEdit(i).then(o=>({applied:o})))}handleFailedRequest(e,t,i,r,s=!0){if(i instanceof z.ResponseError){if(i.code===z.ErrorCodes.PendingResponseRejected||i.code===z.ErrorCodes.ConnectionInactive)return r;if(i.code===z.LSPErrorCodes.RequestCancelled||i.code===z.LSPErrorCodes.ServerCancelled){if(t!==void 0&&t.isCancellationRequested)return r;throw i.data!==void 0?new Qn.LSPCancellationError(i.data):new je.CancellationError}else if(i.code===z.LSPErrorCodes.ContentModified){if(n.RequestsToCancelOnContentModified.has(e.method)||n.CancellableResolveCalls.has(e.method))throw new je.CancellationError;return r}}throw this.error(`Request ${e.method} failed.`,i,s),i}};Ft.BaseLanguageClient=na;na.RequestsToCancelOnContentModified=new Set([z.SemanticTokensRequest.method,z.SemanticTokensRangeRequest.method,z.SemanticTokensDeltaRequest.method]);na.CancellableResolveCalls=new Set([z.CompletionResolveRequest.method,z.CodeLensResolveRequest.method,z.CodeActionResolveRequest.method,z.InlayHintResolveRequest.method,z.DocumentLinkResolveRequest.method,z.WorkspaceSymbolResolveRequest.method]);var bg=class{error(e){(0,z.RAL)().console.error(e)}warn(e){(0,z.RAL)().console.warn(e)}info(e){(0,z.RAL)().console.info(e)}log(e){(0,z.RAL)().console.log(e)}};function uj(n,e,t,i,r){let s=new bg,o=(0,z.createProtocolConnection)(n,e,s,r);return o.onError(c=>{t(c[0],c[1],c[2])}),o.onClose(i),{listen:()=>o.listen(),sendRequest:o.sendRequest,onRequest:o.onRequest,hasPendingResponse:o.hasPendingResponse,sendNotification:o.sendNotification,onNotification:o.onNotification,onProgress:o.onProgress,sendProgress:o.sendProgress,trace:(c,u,l)=>{let p={sendNotification:!1,traceFormat:z.TraceFormat.Text};return l===void 0?o.trace(c,u,p):(Zn.boolean(l),o.trace(c,u,l))},initialize:c=>o.sendRequest(z.InitializeRequest.type,c),shutdown:()=>o.sendRequest(z.ShutdownRequest.type,void 0),exit:()=>o.sendNotification(z.ExitNotification.type),end:()=>o.end(),dispose:()=>o.dispose()}}var wg;(function(n){function e(t){return[new cj.InlineCompletionItemFeature(t)]}n.createAll=e})(wg||(Ft.ProposedFeatures=wg={}))});var eD=T(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.terminate=void 0;var ZR=require("child_process"),lj=require("path"),dj=process.platform==="win32",pj=process.platform==="darwin",fj=process.platform==="linux";function hj(n,e){if(dj)try{let r={stdio:["pipe","pipe","ignore"]};return e&&(r.cwd=e),ZR.execFileSync("taskkill",["/T","/F","/PID",n.pid.toString()],r),!0}catch{return!1}else if(fj||pj)try{var t=(0,lj.join)(__dirname,"terminateProcess.sh"),i=ZR.spawnSync(t,[n.pid.toString()]);return!i.error}catch{return!1}else return n.kill("SIGKILL"),!0}pl.terminate=hj});var Sg=T((az,tD)=>{"use strict";tD.exports=ue()});var ia=T((cz,nD)=>{var mj=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};nD.exports=mj});var fl=T((uz,iD)=>{var gj="2.0.0",vj=Number.MAX_SAFE_INTEGER||9007199254740991,xj=16,yj=250,bj=["major","premajor","minor","preminor","patch","prepatch","prerelease"];iD.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:xj,MAX_SAFE_BUILD_LENGTH:yj,MAX_SAFE_INTEGER:vj,RELEASE_TYPES:bj,SEMVER_SPEC_VERSION:gj,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var hl=T((Oi,rD)=>{var{MAX_SAFE_COMPONENT_LENGTH:Cg,MAX_SAFE_BUILD_LENGTH:wj,MAX_LENGTH:_j}=fl(),Sj=ia();Oi=rD.exports={};var Cj=Oi.re=[],Rj=Oi.safeRe=[],X=Oi.src=[],J=Oi.t={},Dj=0,Rg="[a-zA-Z0-9-]",Tj=[["\\s",1],["\\d",_j],[Rg,wj]],Ej=n=>{for(let[e,t]of Tj)n=n.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return n},he=(n,e,t)=>{let i=Ej(e),r=Dj++;Sj(n,r,e),J[n]=r,X[r]=e,Cj[r]=new RegExp(e,t?"g":void 0),Rj[r]=new RegExp(i,t?"g":void 0)};he("NUMERICIDENTIFIER","0|[1-9]\\d*");he("NUMERICIDENTIFIERLOOSE","\\d+");he("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Rg}*`);he("MAINVERSION",`(${X[J.NUMERICIDENTIFIER]})\\.(${X[J.NUMERICIDENTIFIER]})\\.(${X[J.NUMERICIDENTIFIER]})`);he("MAINVERSIONLOOSE",`(${X[J.NUMERICIDENTIFIERLOOSE]})\\.(${X[J.NUMERICIDENTIFIERLOOSE]})\\.(${X[J.NUMERICIDENTIFIERLOOSE]})`);he("PRERELEASEIDENTIFIER",`(?:${X[J.NUMERICIDENTIFIER]}|${X[J.NONNUMERICIDENTIFIER]})`);he("PRERELEASEIDENTIFIERLOOSE",`(?:${X[J.NUMERICIDENTIFIERLOOSE]}|${X[J.NONNUMERICIDENTIFIER]})`);he("PRERELEASE",`(?:-(${X[J.PRERELEASEIDENTIFIER]}(?:\\.${X[J.PRERELEASEIDENTIFIER]})*))`);he("PRERELEASELOOSE",`(?:-?(${X[J.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${X[J.PRERELEASEIDENTIFIERLOOSE]})*))`);he("BUILDIDENTIFIER",`${Rg}+`);he("BUILD",`(?:\\+(${X[J.BUILDIDENTIFIER]}(?:\\.${X[J.BUILDIDENTIFIER]})*))`);he("FULLPLAIN",`v?${X[J.MAINVERSION]}${X[J.PRERELEASE]}?${X[J.BUILD]}?`);he("FULL",`^${X[J.FULLPLAIN]}$`);he("LOOSEPLAIN",`[v=\\s]*${X[J.MAINVERSIONLOOSE]}${X[J.PRERELEASELOOSE]}?${X[J.BUILD]}?`);he("LOOSE",`^${X[J.LOOSEPLAIN]}$`);he("GTLT","((?:<|>)?=?)");he("XRANGEIDENTIFIERLOOSE",`${X[J.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);he("XRANGEIDENTIFIER",`${X[J.NUMERICIDENTIFIER]}|x|X|\\*`);he("XRANGEPLAIN",`[v=\\s]*(${X[J.XRANGEIDENTIFIER]})(?:\\.(${X[J.XRANGEIDENTIFIER]})(?:\\.(${X[J.XRANGEIDENTIFIER]})(?:${X[J.PRERELEASE]})?${X[J.BUILD]}?)?)?`);he("XRANGEPLAINLOOSE",`[v=\\s]*(${X[J.XRANGEIDENTIFIERLOOSE]})(?:\\.(${X[J.XRANGEIDENTIFIERLOOSE]})(?:\\.(${X[J.XRANGEIDENTIFIERLOOSE]})(?:${X[J.PRERELEASELOOSE]})?${X[J.BUILD]}?)?)?`);he("XRANGE",`^${X[J.GTLT]}\\s*${X[J.XRANGEPLAIN]}$`);he("XRANGELOOSE",`^${X[J.GTLT]}\\s*${X[J.XRANGEPLAINLOOSE]}$`);he("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Cg}})(?:\\.(\\d{1,${Cg}}))?(?:\\.(\\d{1,${Cg}}))?`);he("COERCE",`${X[J.COERCEPLAIN]}(?:$|[^\\d])`);he("COERCEFULL",X[J.COERCEPLAIN]+`(?:${X[J.PRERELEASE]})?(?:${X[J.BUILD]})?(?:$|[^\\d])`);he("COERCERTL",X[J.COERCE],!0);he("COERCERTLFULL",X[J.COERCEFULL],!0);he("LONETILDE","(?:~>?)");he("TILDETRIM",`(\\s*)${X[J.LONETILDE]}\\s+`,!0);Oi.tildeTrimReplace="$1~";he("TILDE",`^${X[J.LONETILDE]}${X[J.XRANGEPLAIN]}$`);he("TILDELOOSE",`^${X[J.LONETILDE]}${X[J.XRANGEPLAINLOOSE]}$`);he("LONECARET","(?:\\^)");he("CARETTRIM",`(\\s*)${X[J.LONECARET]}\\s+`,!0);Oi.caretTrimReplace="$1^";he("CARET",`^${X[J.LONECARET]}${X[J.XRANGEPLAIN]}$`);he("CARETLOOSE",`^${X[J.LONECARET]}${X[J.XRANGEPLAINLOOSE]}$`);he("COMPARATORLOOSE",`^${X[J.GTLT]}\\s*(${X[J.LOOSEPLAIN]})$|^$`);he("COMPARATOR",`^${X[J.GTLT]}\\s*(${X[J.FULLPLAIN]})$|^$`);he("COMPARATORTRIM",`(\\s*)${X[J.GTLT]}\\s*(${X[J.LOOSEPLAIN]}|${X[J.XRANGEPLAIN]})`,!0);Oi.comparatorTrimReplace="$1$2$3";he("HYPHENRANGE",`^\\s*(${X[J.XRANGEPLAIN]})\\s+-\\s+(${X[J.XRANGEPLAIN]})\\s*$`);he("HYPHENRANGELOOSE",`^\\s*(${X[J.XRANGEPLAINLOOSE]})\\s+-\\s+(${X[J.XRANGEPLAINLOOSE]})\\s*$`);he("STAR","(<|>)?=?\\s*\\*");he("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");he("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ml=T((lz,sD)=>{var Pj=Object.freeze({loose:!0}),kj=Object.freeze({}),Oj=n=>n?typeof n!="object"?Pj:n:kj;sD.exports=Oj});var uD=T((dz,cD)=>{var oD=/^[0-9]+$/,aD=(n,e)=>{let t=oD.test(n),i=oD.test(e);return t&&i&&(n=+n,e=+e),n===e?0:t&&!i?-1:i&&!t?1:n<e?-1:1},qj=(n,e)=>aD(e,n);cD.exports={compareIdentifiers:aD,rcompareIdentifiers:qj}});var ra=T((pz,fD)=>{var gl=ia(),{MAX_LENGTH:lD,MAX_SAFE_INTEGER:vl}=fl(),{safeRe:dD,t:pD}=hl(),Fj=ml(),{compareIdentifiers:zs}=uD(),Dg=class n{constructor(e,t){if(t=Fj(t),e instanceof n){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>lD)throw new TypeError(`version is longer than ${lD} characters`);gl("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let i=e.trim().match(t.loose?dD[pD.LOOSE]:dD[pD.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>vl||this.major<0)throw new TypeError("Invalid major version");if(this.minor>vl||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>vl||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let s=+r;if(s>=0&&s<vl)return s}return r}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(gl("SemVer.compare",this.version,this.options,e),!(e instanceof n)){if(typeof e=="string"&&e===this.version)return 0;e=new n(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof n||(e=new n(e,this.options)),zs(this.major,e.major)||zs(this.minor,e.minor)||zs(this.patch,e.patch)}comparePre(e){if(e instanceof n||(e=new n(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let i=this.prerelease[t],r=e.prerelease[t];if(gl("prerelease compare",t,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return zs(i,r)}while(++t)}compareBuild(e){e instanceof n||(e=new n(e,this.options));let t=0;do{let i=this.build[t],r=e.build[t];if(gl("build compare",t,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return zs(i,r)}while(++t)}inc(e,t,i){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,i),this.inc("pre",t,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,i),this.inc("pre",t,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let r=Number(i)?1:0;if(!t&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[r];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(t===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(t){let s=[t,r];i===!1&&(s=[t]),zs(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};fD.exports=Dg});var gD=T((fz,mD)=>{var hD=ra(),Nj=(n,e,t=!1)=>{if(n instanceof hD)return n;try{return new hD(n,e)}catch(i){if(!t)return null;throw i}};mD.exports=Nj});var xD=T((hz,vD)=>{var Tg=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let r=this.map.keys().next().value;this.delete(r)}this.map.set(e,t)}return this}};vD.exports=Tg});var Lr=T((mz,bD)=>{var yD=ra(),Aj=(n,e,t)=>new yD(n,t).compare(new yD(e,t));bD.exports=Aj});var _D=T((gz,wD)=>{var Ij=Lr(),jj=(n,e,t)=>Ij(n,e,t)===0;wD.exports=jj});var CD=T((vz,SD)=>{var Lj=Lr(),Mj=(n,e,t)=>Lj(n,e,t)!==0;SD.exports=Mj});var DD=T((xz,RD)=>{var Uj=Lr(),zj=(n,e,t)=>Uj(n,e,t)>0;RD.exports=zj});var ED=T((yz,TD)=>{var $j=Lr(),Hj=(n,e,t)=>$j(n,e,t)>=0;TD.exports=Hj});var kD=T((bz,PD)=>{var Bj=Lr(),Wj=(n,e,t)=>Bj(n,e,t)<0;PD.exports=Wj});var qD=T((wz,OD)=>{var Kj=Lr(),Gj=(n,e,t)=>Kj(n,e,t)<=0;OD.exports=Gj});var ND=T((_z,FD)=>{var Vj=_D(),Xj=CD(),Jj=DD(),Yj=ED(),Qj=kD(),Zj=qD(),eL=(n,e,t,i)=>{switch(e){case"===":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n===t;case"!==":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n!==t;case"":case"=":case"==":return Vj(n,t,i);case"!=":return Xj(n,t,i);case">":return Jj(n,t,i);case">=":return Yj(n,t,i);case"<":return Qj(n,t,i);case"<=":return Zj(n,t,i);default:throw new TypeError(`Invalid operator: ${e}`)}};FD.exports=eL});var zD=T((Sz,UD)=>{var sa=Symbol("SemVer ANY"),kg=class n{static get ANY(){return sa}constructor(e,t){if(t=AD(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Pg("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===sa?this.value="":this.value=this.operator+this.semver.version,Pg("comp",this)}parse(e){let t=this.options.loose?ID[jD.COMPARATORLOOSE]:ID[jD.COMPARATOR],i=e.match(t);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new LD(i[2],this.options.loose):this.semver=sa}toString(){return this.value}test(e){if(Pg("Comparator.test",e,this.options.loose),this.semver===sa||e===sa)return!0;if(typeof e=="string")try{e=new LD(e,this.options)}catch{return!1}return Eg(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new MD(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new MD(this.value,t).test(e.semver):(t=AD(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Eg(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Eg(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};UD.exports=kg;var AD=ml(),{safeRe:ID,t:jD}=hl(),Eg=ND(),Pg=ia(),LD=ra(),MD=Og()});var Og=T((Cz,WD)=>{var tL=/\s+/g,qg=class n{constructor(e,t){if(t=iL(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof Fg)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(tL," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(r=>!HD(r[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&lL(r[0])){this.set=[r];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let i=0;i<t.length;i++)i>0&&(this.formatted+=" "),this.formatted+=t[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let i=((this.options.includePrerelease&&cL)|(this.options.loose&&uL))+":"+e,r=$D.get(i);if(r)return r;let s=this.options.loose,o=s?dn[Yt.HYPHENRANGELOOSE]:dn[Yt.HYPHENRANGE];e=e.replace(o,bL(this.options.includePrerelease)),Je("hyphen replace",e),e=e.replace(dn[Yt.COMPARATORTRIM],sL),Je("comparator trim",e),e=e.replace(dn[Yt.TILDETRIM],oL),Je("tilde trim",e),e=e.replace(dn[Yt.CARETTRIM],aL),Je("caret trim",e);let a=e.split(" ").map(p=>dL(p,this.options)).join(" ").split(/\s+/).map(p=>yL(p,this.options));s&&(a=a.filter(p=>(Je("loose invalid filter",p,this.options),!!p.match(dn[Yt.COMPARATORLOOSE])))),Je("range list",a);let c=new Map,u=a.map(p=>new Fg(p,this.options));for(let p of u){if(HD(p))return[p];c.set(p.value,p)}c.size>1&&c.has("")&&c.delete("");let l=[...c.values()];return $D.set(i,l),l}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some(i=>BD(i,t)&&e.set.some(r=>BD(r,t)&&i.every(s=>r.every(o=>s.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new rL(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(wL(this.set[t],e,this.options))return!0;return!1}};WD.exports=qg;var nL=xD(),$D=new nL,iL=ml(),Fg=zD(),Je=ia(),rL=ra(),{safeRe:dn,t:Yt,comparatorTrimReplace:sL,tildeTrimReplace:oL,caretTrimReplace:aL}=hl(),{FLAG_INCLUDE_PRERELEASE:cL,FLAG_LOOSE:uL}=fl(),HD=n=>n.value==="<0.0.0-0",lL=n=>n.value==="",BD=(n,e)=>{let t=!0,i=n.slice(),r=i.pop();for(;t&&i.length;)t=i.every(s=>r.intersects(s,e)),r=i.pop();return t},dL=(n,e)=>(Je("comp",n,e),n=hL(n,e),Je("caret",n),n=pL(n,e),Je("tildes",n),n=gL(n,e),Je("xrange",n),n=xL(n,e),Je("stars",n),n),Qt=n=>!n||n.toLowerCase()==="x"||n==="*",pL=(n,e)=>n.trim().split(/\s+/).map(t=>fL(t,e)).join(" "),fL=(n,e)=>{let t=e.loose?dn[Yt.TILDELOOSE]:dn[Yt.TILDE];return n.replace(t,(i,r,s,o,a)=>{Je("tilde",n,i,r,s,o,a);let c;return Qt(r)?c="":Qt(s)?c=`>=${r}.0.0 <${+r+1}.0.0-0`:Qt(o)?c=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:a?(Je("replaceTilde pr",a),c=`>=${r}.${s}.${o}-${a} <${r}.${+s+1}.0-0`):c=`>=${r}.${s}.${o} <${r}.${+s+1}.0-0`,Je("tilde return",c),c})},hL=(n,e)=>n.trim().split(/\s+/).map(t=>mL(t,e)).join(" "),mL=(n,e)=>{Je("caret",n,e);let t=e.loose?dn[Yt.CARETLOOSE]:dn[Yt.CARET],i=e.includePrerelease?"-0":"";return n.replace(t,(r,s,o,a,c)=>{Je("caret",n,r,s,o,a,c);let u;return Qt(s)?u="":Qt(o)?u=`>=${s}.0.0${i} <${+s+1}.0.0-0`:Qt(a)?s==="0"?u=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.0${i} <${+s+1}.0.0-0`:c?(Je("replaceCaret pr",c),s==="0"?o==="0"?u=`>=${s}.${o}.${a}-${c} <${s}.${o}.${+a+1}-0`:u=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.${a}-${c} <${+s+1}.0.0-0`):(Je("no pr"),s==="0"?o==="0"?u=`>=${s}.${o}.${a}${i} <${s}.${o}.${+a+1}-0`:u=`>=${s}.${o}.${a}${i} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),Je("caret return",u),u})},gL=(n,e)=>(Je("replaceXRanges",n,e),n.split(/\s+/).map(t=>vL(t,e)).join(" ")),vL=(n,e)=>{n=n.trim();let t=e.loose?dn[Yt.XRANGELOOSE]:dn[Yt.XRANGE];return n.replace(t,(i,r,s,o,a,c)=>{Je("xRange",n,i,r,s,o,a,c);let u=Qt(s),l=u||Qt(o),p=l||Qt(a),h=p;return r==="="&&h&&(r=""),c=e.includePrerelease?"-0":"",u?r===">"||r==="<"?i="<0.0.0-0":i="*":r&&h?(l&&(o=0),a=0,r===">"?(r=">=",l?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):r==="<="&&(r="<",l?s=+s+1:o=+o+1),r==="<"&&(c="-0"),i=`${r+s}.${o}.${a}${c}`):l?i=`>=${s}.0.0${c} <${+s+1}.0.0-0`:p&&(i=`>=${s}.${o}.0${c} <${s}.${+o+1}.0-0`),Je("xRange return",i),i})},xL=(n,e)=>(Je("replaceStars",n,e),n.trim().replace(dn[Yt.STAR],"")),yL=(n,e)=>(Je("replaceGTE0",n,e),n.trim().replace(dn[e.includePrerelease?Yt.GTE0PRE:Yt.GTE0],"")),bL=n=>(e,t,i,r,s,o,a,c,u,l,p,h)=>(Qt(i)?t="":Qt(r)?t=`>=${i}.0.0${n?"-0":""}`:Qt(s)?t=`>=${i}.${r}.0${n?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${n?"-0":""}`,Qt(u)?c="":Qt(l)?c=`<${+u+1}.0.0-0`:Qt(p)?c=`<${u}.${+l+1}.0-0`:h?c=`<=${u}.${l}.${p}-${h}`:n?c=`<${u}.${l}.${+p+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),wL=(n,e,t)=>{for(let i=0;i<n.length;i++)if(!n[i].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let i=0;i<n.length;i++)if(Je(n[i].semver),n[i].semver!==Fg.ANY&&n[i].semver.prerelease.length>0){let r=n[i].semver;if(r.major===e.major&&r.minor===e.minor&&r.patch===e.patch)return!0}return!1}return!0}});var GD=T((Rz,KD)=>{var _L=Og(),SL=(n,e,t)=>{try{e=new _L(e,t)}catch{return!1}return e.test(n)};KD.exports=SL});var XD=T(_n=>{"use strict";var CL=_n&&_n.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),Ng=_n&&_n.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&CL(e,n,t)};Object.defineProperty(_n,"__esModule",{value:!0});_n.DiagnosticPullMode=_n.vsdiag=void 0;Ng(ue(),_n);Ng(Ce(),_n);var VD=zh();Object.defineProperty(_n,"vsdiag",{enumerable:!0,get:function(){return VD.vsdiag}});Object.defineProperty(_n,"DiagnosticPullMode",{enumerable:!0,get:function(){return VD.DiagnosticPullMode}});Ng(_g(),_n)});var ZD=T(pn=>{"use strict";var RL=pn&&pn.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,r)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),QD=pn&&pn.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&RL(e,n,t)};Object.defineProperty(pn,"__esModule",{value:!0});pn.SettingMonitor=pn.LanguageClient=pn.TransportKind=void 0;var qi=require("child_process"),Ag=require("fs"),Ig=require("path"),gr=require("vscode"),nt=qn(),JD=_g(),DL=eD(),ot=Sg(),TL=gD(),EL=GD();QD(Sg(),pn);QD(XD(),pn);var YD="^1.82.0",at;(function(n){n[n.stdio=0]="stdio",n[n.ipc=1]="ipc",n[n.pipe=2]="pipe",n[n.socket=3]="socket"})(at||(pn.TransportKind=at={}));var mr;(function(n){function e(t){let i=t;return i&&i.kind===at.socket&&nt.number(i.port)}n.isSocket=e})(mr||(mr={}));var jg;(function(n){function e(t){return nt.string(t.command)}n.is=e})(jg||(jg={}));var Lg;(function(n){function e(t){return nt.string(t.module)}n.is=e})(Lg||(Lg={}));var Mg;(function(n){function e(t){let i=t;return i&&i.writer!==void 0&&i.reader!==void 0}n.is=e})(Mg||(Mg={}));var Ug;(function(n){function e(t){let i=t;return i&&i.process!==void 0&&typeof i.detached=="boolean"}n.is=e})(Ug||(Ug={}));var zg=class extends JD.BaseLanguageClient{constructor(e,t,i,r,s){let o,a,c,u,l;nt.string(t)?(o=e,a=t,c=i,u=r,l=!!s):(o=e.toLowerCase(),a=e,c=t,u=i,l=r),l===void 0&&(l=!1),super(o,a,u),this._serverOptions=c,this._forceDebug=l,this._isInDebugMode=l;try{this.checkVersion()}catch(p){throw nt.string(p.message)&&this.outputChannel.appendLine(p.message),p}}checkVersion(){let e=TL(gr.version);if(!e)throw new Error(`No valid VS Code version detected. Version string is: ${gr.version}`);if(e.prerelease&&e.prerelease.length>0&&(e.prerelease=[]),!EL(e,YD))throw new Error(`The language client requires VS Code version ${YD} but received version ${gr.version}`)}get isInDebugMode(){return this._isInDebugMode}async restart(){await this.stop(),this.isInDebugMode?(await new Promise(e=>setTimeout(e,1e3)),await this.start()):await this.start()}stop(e=2e3){return super.stop(e).finally(()=>{if(this._serverProcess){let t=this._serverProcess;this._serverProcess=void 0,(this._isDetached===void 0||!this._isDetached)&&this.checkProcessDied(t),this._isDetached=void 0}})}checkProcessDied(e){!e||e.pid===void 0||setTimeout(()=>{try{e.pid!==void 0&&(process.kill(e.pid,0),(0,DL.terminate)(e))}catch{}},2e3)}handleConnectionClosed(){return this._serverProcess=void 0,super.handleConnectionClosed()}fillInitializeParams(e){super.fillInitializeParams(e),e.processId===null&&(e.processId=process.pid)}createMessageTransports(e){function t(l,p){if(!l&&!p)return;let h=Object.create(null);return Object.keys(process.env).forEach(x=>h[x]=process.env[x]),p&&(h.ELECTRON_RUN_AS_NODE="1",h.ELECTRON_NO_ASAR="1"),l&&Object.keys(l).forEach(x=>h[x]=l[x]),h}let i=["--debug=","--debug-brk=","--inspect=","--inspect-brk="],r=["--debug","--debug-brk","--inspect","--inspect-brk"];function s(){let l=process.execArgv;return l?l.some(p=>i.some(h=>p.startsWith(h))||r.some(h=>p===h)):!1}function o(l){if(l.stdin===null||l.stdout===null||l.stderr===null)throw new Error("Process created without stdio streams")}let a=this._serverOptions;if(nt.func(a))return a().then(l=>{if(JD.MessageTransports.is(l))return this._isDetached=!!l.detached,l;if(Mg.is(l))return this._isDetached=!!l.detached,{reader:new ot.StreamMessageReader(l.reader),writer:new ot.StreamMessageWriter(l.writer)};{let p;return Ug.is(l)?(p=l.process,this._isDetached=l.detached):(p=l,this._isDetached=!1),p.stderr.on("data",h=>this.outputChannel.append(nt.string(h)?h:h.toString(e))),{reader:new ot.StreamMessageReader(p.stdout),writer:new ot.StreamMessageWriter(p.stdin)}}});let c,u=a;return u.run||u.debug?this._forceDebug||s()?(c=u.debug,this._isInDebugMode=!0):(c=u.run,this._isInDebugMode=!1):c=a,this._getServerWorkingDir(c.options).then(l=>{if(Lg.is(c)&&c.module){let p=c,h=p.transport||at.stdio;if(p.runtime){let x=[],f=p.options??Object.create(null);f.execArgv&&f.execArgv.forEach(O=>x.push(O)),x.push(p.module),p.args&&p.args.forEach(O=>x.push(O));let y=Object.create(null);y.cwd=l,y.env=t(f.env,!1);let w=this._getRuntimePath(p.runtime,l),S;if(h===at.ipc?(y.stdio=[null,null,null,"ipc"],x.push("--node-ipc")):h===at.stdio?x.push("--stdio"):h===at.pipe?(S=(0,ot.generateRandomPipeName)(),x.push(`--pipe=${S}`)):mr.isSocket(h)&&x.push(`--socket=${h.port}`),x.push(`--clientProcessId=${process.pid.toString()}`),h===at.ipc||h===at.stdio){let O=qi.spawn(w,x,y);return!O||!O.pid?$s(O,`Launching server using runtime ${w} failed.`):(this._serverProcess=O,O.stderr.on("data",k=>this.outputChannel.append(nt.string(k)?k:k.toString(e))),h===at.ipc?(O.stdout.on("data",k=>this.outputChannel.append(nt.string(k)?k:k.toString(e))),Promise.resolve({reader:new ot.IPCMessageReader(O),writer:new ot.IPCMessageWriter(O)})):Promise.resolve({reader:new ot.StreamMessageReader(O.stdout),writer:new ot.StreamMessageWriter(O.stdin)}))}else{if(h===at.pipe)return(0,ot.createClientPipeTransport)(S).then(O=>{let k=qi.spawn(w,x,y);return!k||!k.pid?$s(k,`Launching server using runtime ${w} failed.`):(this._serverProcess=k,k.stderr.on("data",N=>this.outputChannel.append(nt.string(N)?N:N.toString(e))),k.stdout.on("data",N=>this.outputChannel.append(nt.string(N)?N:N.toString(e))),O.onConnected().then(N=>({reader:N[0],writer:N[1]})))});if(mr.isSocket(h))return(0,ot.createClientSocketTransport)(h.port).then(O=>{let k=qi.spawn(w,x,y);return!k||!k.pid?$s(k,`Launching server using runtime ${w} failed.`):(this._serverProcess=k,k.stderr.on("data",N=>this.outputChannel.append(nt.string(N)?N:N.toString(e))),k.stdout.on("data",N=>this.outputChannel.append(nt.string(N)?N:N.toString(e))),O.onConnected().then(N=>({reader:N[0],writer:N[1]})))})}}else{let x;return new Promise((f,y)=>{let w=(p.args&&p.args.slice())??[];h===at.ipc?w.push("--node-ipc"):h===at.stdio?w.push("--stdio"):h===at.pipe?(x=(0,ot.generateRandomPipeName)(),w.push(`--pipe=${x}`)):mr.isSocket(h)&&w.push(`--socket=${h.port}`),w.push(`--clientProcessId=${process.pid.toString()}`);let S=p.options??Object.create(null);if(S.env=t(S.env,!0),S.execArgv=S.execArgv||[],S.cwd=l,S.silent=!0,h===at.ipc||h===at.stdio){let O=qi.fork(p.module,w||[],S);o(O),this._serverProcess=O,O.stderr.on("data",k=>this.outputChannel.append(nt.string(k)?k:k.toString(e))),h===at.ipc?(O.stdout.on("data",k=>this.outputChannel.append(nt.string(k)?k:k.toString(e))),f({reader:new ot.IPCMessageReader(this._serverProcess),writer:new ot.IPCMessageWriter(this._serverProcess)})):f({reader:new ot.StreamMessageReader(O.stdout),writer:new ot.StreamMessageWriter(O.stdin)})}else h===at.pipe?(0,ot.createClientPipeTransport)(x).then(O=>{let k=qi.fork(p.module,w||[],S);o(k),this._serverProcess=k,k.stderr.on("data",N=>this.outputChannel.append(nt.string(N)?N:N.toString(e))),k.stdout.on("data",N=>this.outputChannel.append(nt.string(N)?N:N.toString(e))),O.onConnected().then(N=>{f({reader:N[0],writer:N[1]})},y)},y):mr.isSocket(h)&&(0,ot.createClientSocketTransport)(h.port).then(O=>{let k=qi.fork(p.module,w||[],S);o(k),this._serverProcess=k,k.stderr.on("data",N=>this.outputChannel.append(nt.string(N)?N:N.toString(e))),k.stdout.on("data",N=>this.outputChannel.append(nt.string(N)?N:N.toString(e))),O.onConnected().then(N=>{f({reader:N[0],writer:N[1]})},y)},y)})}}else if(jg.is(c)&&c.command){let p=c,h=c.args!==void 0?c.args.slice(0):[],x,f=c.transport;if(f===at.stdio)h.push("--stdio");else if(f===at.pipe)x=(0,ot.generateRandomPipeName)(),h.push(`--pipe=${x}`);else if(mr.isSocket(f))h.push(`--socket=${f.port}`);else if(f===at.ipc)throw new Error("Transport kind ipc is not support for command executable");let y=Object.assign({},p.options);if(y.cwd=y.cwd||l,f===void 0||f===at.stdio){let w=qi.spawn(p.command,h,y);return!w||!w.pid?$s(w,`Launching server using command ${p.command} failed.`):(w.stderr.on("data",S=>this.outputChannel.append(nt.string(S)?S:S.toString(e))),this._serverProcess=w,this._isDetached=!!y.detached,Promise.resolve({reader:new ot.StreamMessageReader(w.stdout),writer:new ot.StreamMessageWriter(w.stdin)}))}else{if(f===at.pipe)return(0,ot.createClientPipeTransport)(x).then(w=>{let S=qi.spawn(p.command,h,y);return!S||!S.pid?$s(S,`Launching server using command ${p.command} failed.`):(this._serverProcess=S,this._isDetached=!!y.detached,S.stderr.on("data",O=>this.outputChannel.append(nt.string(O)?O:O.toString(e))),S.stdout.on("data",O=>this.outputChannel.append(nt.string(O)?O:O.toString(e))),w.onConnected().then(O=>({reader:O[0],writer:O[1]})))});if(mr.isSocket(f))return(0,ot.createClientSocketTransport)(f.port).then(w=>{let S=qi.spawn(p.command,h,y);return!S||!S.pid?$s(S,`Launching server using command ${p.command} failed.`):(this._serverProcess=S,this._isDetached=!!y.detached,S.stderr.on("data",O=>this.outputChannel.append(nt.string(O)?O:O.toString(e))),S.stdout.on("data",O=>this.outputChannel.append(nt.string(O)?O:O.toString(e))),w.onConnected().then(O=>({reader:O[0],writer:O[1]})))})}}return Promise.reject(new Error("Unsupported server configuration "+JSON.stringify(a,null,4)))}).finally(()=>{this._serverProcess!==void 0&&this._serverProcess.on("exit",(l,p)=>{l!==null&&this.error(`Server process exited with code ${l}.`,void 0,!1),p!==null&&this.error(`Server process exited with signal ${p}.`,void 0,!1)})})}_getRuntimePath(e,t){if(Ig.isAbsolute(e))return e;let i=this._mainGetRootPath();if(i!==void 0){let r=Ig.join(i,e);if(Ag.existsSync(r))return r}if(t!==void 0){let r=Ig.join(t,e);if(Ag.existsSync(r))return r}return e}_mainGetRootPath(){let e=gr.workspace.workspaceFolders;if(!e||e.length===0)return;let t=e[0];if(t.uri.scheme==="file")return t.uri.fsPath}_getServerWorkingDir(e){let t=e&&e.cwd;return t||(t=this.clientOptions.workspaceFolder?this.clientOptions.workspaceFolder.uri.fsPath:this._mainGetRootPath()),t?new Promise(i=>{Ag.lstat(t,(r,s)=>{i(!r&&s.isDirectory()?t:void 0)})}):Promise.resolve(void 0)}};pn.LanguageClient=zg;var $g=class{constructor(e,t){this._client=e,this._setting=t,this._listeners=[]}start(){return gr.workspace.onDidChangeConfiguration(this.onDidChangeConfiguration,this,this._listeners),this.onDidChangeConfiguration(),new gr.Disposable(()=>{this._client.needsStop()&&this._client.stop()})}onDidChangeConfiguration(){let e=this._setting.indexOf("."),t=e>=0?this._setting.substr(0,e):this._setting,i=e>=0?this._setting.substr(e+1):void 0,r=i?gr.workspace.getConfiguration(t).get(i,!1):gr.workspace.getConfiguration(t);r&&this._client.needsStart()?this._client.start().catch(s=>this._client.error("Start failed after configuration change",s,"force")):!r&&this._client.needsStop()&&this._client.stop().catch(s=>this._client.error("Stop failed after configuration change",s,"force"))}};pn.SettingMonitor=$g;function $s(n,e){return n===null?Promise.reject(e):new Promise((t,i)=>{n.on("error",r=>{i(`${e} ${r}`)}),setImmediate(()=>i(e))})}});var tT=T((Ez,eT)=>{"use strict";eT.exports=ZD()});var qL={};dT(qL,{activate:()=>kL,deactivate:()=>OL});module.exports=pT(qL);var oa=require("vscode"),nT=bl(Ew()),iT=bl(Lw()),rT=bl(tT()),PL=require("node:path"),xl;async function kL(n){let e=oa.window.createOutputChannel("KDL LSP Client"),t=oa.workspace.getConfiguration("kdl"),i=process.env.SERVER_PATH||t.get("command"),r=t.get("argv",[]);if(!i){let c=(0,nT.getPackage)();if(!c.exists()){let l=(0,iT.configureProxy)(c.url);await c.install(l,!1)}let u=c.binaries["kdl-lsp"];i=PL.join(c.installDirectory,u)}let s={command:i,args:r,options:{env:{...process.env,RUST_LOG:t.get("loglevel","debug")}}},o={run:s,debug:s},a={documentSelector:[{scheme:"file",language:"kdl"}],outputChannel:oa.window.createOutputChannel("KDL Language Server Stderr"),traceOutputChannel:e,diagnosticPullOptions:{onChange:!0,onSave:!0,onTabs:!1}};xl=new rT.LanguageClient("kdl-lsp","KDL Language Server",o,a),xl.start()}function OL(){if(xl)return xl.stop()}0&&(module.exports={activate,deactivate});
|
|
/*! Bundled license information:
|
|
|
|
mime-db/index.js:
|
|
(*!
|
|
* mime-db
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
* MIT Licensed
|
|
*)
|
|
|
|
mime-types/index.js:
|
|
(*!
|
|
* mime-types
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
* MIT Licensed
|
|
*)
|
|
*/
|