UNPKG

@stacksjs/dtsx

Version:

A modern, fast .d.ts generation tool, powered by Bun.

17 lines (15 loc) 3.72 MB
var Y68=Object.create;var{getPrototypeOf:J68,defineProperty:cI0,getOwnPropertyNames:$68}=Object;var Z68=Object.prototype.hasOwnProperty;var lI0=(s,a,W0)=>{W0=s!=null?Y68(J68(s)):{};let w0=a||!s||!s.__esModule?cI0(W0,"default",{value:s,enumerable:!0}):W0;for(let S0 of $68(s))if(!Z68.call(w0,S0))cI0(w0,S0,{get:()=>s[S0],enumerable:!0});return w0};var dG=(s,a)=>()=>(a||s((a={exports:{}}).exports,a),a.exports);var yU=import.meta.require;var zx0=dG((b68)=>{var Qx0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");b68.encode=function(s){if(0<=s&&s<Qx0.length)return Qx0[s];throw new TypeError("Must be between 0 and 63: "+s)};b68.decode=function(s){var a=65,W0=90,w0=97,S0=122,g0=48,X8=57,u8=43,S8=47,H1=26,_1=52;if(a<=s&&s<=W0)return s-a;if(w0<=s&&s<=S0)return s-w0+H1;if(g0<=s&&s<=X8)return s-g0+_1;if(s==u8)return 62;if(s==S8)return 63;return-1}});var V40=dG((S68)=>{var Kx0=zx0(),_40=5,Hx0=1<<_40,Gx0=Hx0-1,_x0=Hx0;function I68(s){return s<0?(-s<<1)+1:(s<<1)+0}function x68(s){var a=(s&1)===1,W0=s>>1;return a?-W0:W0}S68.encode=function s(a){var W0="",w0,S0=I68(a);do{if(w0=S0&Gx0,S0>>>=_40,S0>0)w0|=_x0;W0+=Kx0.encode(w0)}while(S0>0);return W0};S68.decode=function s(a,W0,w0){var S0=a.length,g0=0,X8=0,u8,S8;do{if(W0>=S0)throw new Error("Expected more digits in base 64 VLQ value.");if(S8=Kx0.decode(a.charCodeAt(W0++)),S8===-1)throw new Error("Invalid base64 digit: "+a.charAt(W0-1));u8=!!(S8&_x0),S8&=Gx0,g0=g0+(S8<<X8),X8+=_40}while(u8);w0.value=x68(g0),w0.rest=W0}});var PM=dG((s68)=>{function h68(s,a,W0){if(a in s)return s[a];else if(arguments.length===3)return W0;else throw new Error('"'+a+'" is a required argument.')}s68.getArg=h68;var Vx0=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,f68=/^data:.+\,.+$/;function Wf(s){var a=s.match(Vx0);if(!a)return null;return{scheme:a[1],auth:a[2],host:a[3],port:a[4],path:a[5]}}s68.urlParse=Wf;function TM(s){var a="";if(s.scheme)a+=s.scheme+":";if(a+="//",s.auth)a+=s.auth+"@";if(s.host)a+=s.host;if(s.port)a+=":"+s.port;if(s.path)a+=s.path;return a}s68.urlGenerate=TM;function U40(s){var a=s,W0=Wf(s);if(W0){if(!W0.path)return s;a=W0.path}var w0=s68.isAbsolute(a),S0=a.split(/\/+/);for(var g0,X8=0,u8=S0.length-1;u8>=0;u8--)if(g0=S0[u8],g0===".")S0.splice(u8,1);else if(g0==="..")X8++;else if(X8>0)if(g0==="")S0.splice(u8+1,X8),X8=0;else S0.splice(u8,2),X8--;if(a=S0.join("/"),a==="")a=w0?"/":".";if(W0)return W0.path=a,TM(W0);return a}s68.normalize=U40;function Ux0(s,a){if(s==="")s=".";if(a==="")a=".";var W0=Wf(a),w0=Wf(s);if(w0)s=w0.path||"/";if(W0&&!W0.scheme){if(w0)W0.scheme=w0.scheme;return TM(W0)}if(W0||a.match(f68))return a;if(w0&&!w0.host&&!w0.path)return w0.host=a,TM(w0);var S0=a.charAt(0)==="/"?a:U40(s.replace(/\/+$/,"")+"/"+a);if(w0)return w0.path=S0,TM(w0);return S0}s68.join=Ux0;s68.isAbsolute=function(s){return s.charAt(0)==="/"||Vx0.test(s)};function g68(s,a){if(s==="")s=".";s=s.replace(/\/$/,"");var W0=0;while(a.indexOf(s+"/")!==0){var w0=s.lastIndexOf("/");if(w0<0)return a;if(s=s.slice(0,w0),s.match(/^([^\/]+:\/)?\/*$/))return a;++W0}return Array(W0+1).join("../")+a.substr(s.length+1)}s68.relative=g68;var qx0=function(){var s=Object.create(null);return!("__proto__"in s)}();function Bx0(s){return s}function u68(s){if(Ex0(s))return"$"+s;return s}s68.toSetString=qx0?Bx0:u68;function d68(s){if(Ex0(s))return s.slice(1);return s}s68.fromSetString=qx0?Bx0:d68;function Ex0(s){if(!s)return!1;var a=s.length;if(a<9)return!1;if(s.charCodeAt(a-1)!==95||s.charCodeAt(a-2)!==95||s.charCodeAt(a-3)!==111||s.charCodeAt(a-4)!==116||s.charCodeAt(a-5)!==111||s.charCodeAt(a-6)!==114||s.charCodeAt(a-7)!==112||s.charCodeAt(a-8)!==95||s.charCodeAt(a-9)!==95)return!1;for(var W0=a-10;W0>=0;W0--)if(s.charCodeAt(W0)!==36)return!1;return!0}function m68(s,a,W0){var w0=NM(s.source,a.source);if(w0!==0)return w0;if(w0=s.originalLine-a.originalLine,w0!==0)return w0;if(w0=s.originalColumn-a.originalColumn,w0!==0||W0)return w0;if(w0=s.generatedColumn-a.generatedColumn,w0!==0)return w0;if(w0=s.generatedLine-a.generatedLine,w0!==0)return w0;return NM(s.name,a.name)}s68.compareByOriginalPositions=m68;function p68(s,a,W0){var w0=s.generatedLine-a.generatedLine;if(w0!==0)return w0;if(w0=s.generatedColumn-a.generatedColumn,w0!==0||W0)return w0;if(w0=NM(s.source,a.source),w0!==0)return w0;if(w0=s.originalLine-a.originalLine,w0!==0)return w0;if(w0=s.originalColumn-a.originalColumn,w0!==0)return w0;return NM(s.name,a.name)}s68.compareByGeneratedPositionsDeflated=p68;function NM(s,a){if(s===a)return 0;if(s===null)return 1;if(a===null)return-1;if(s>a)return 1;return-1}function c68(s,a){var W0=s.generatedLine-a.generatedLine;if(W0!==0)return W0;if(W0=s.generatedColumn-a.generatedColumn,W0!==0)return W0;if(W0=NM(s.source,a.source),W0!==0)return W0;if(W0=s.originalLine-a.originalLine,W0!==0)return W0;if(W0=s.originalColumn-a.originalColumn,W0!==0)return W0;return NM(s.name,a.name)}s68.compareByGeneratedPositionsInflated=c68;function l68(s){return JSON.parse(s.replace(/^\)]}'[^\n]*\n/,""))}s68.parseSourceMapInput=l68;function o68(s,a,W0){if(a=a||"",s){if(s[s.length-1]!=="/"&&a[0]!=="/")s+="/";a=s+a}if(W0){var w0=Wf(W0);if(!w0)throw new Error("sourceMapURL could not be parsed");if(w0.path){var S0=w0.path.lastIndexOf("/");if(S0>=0)w0.path=w0.path.substring(0,S0+1)}a=Ux0(TM(w0),a)}return U40(a)}s68.computeSourceURL=o68});var E40=dG((KK8)=>{var q40=PM(),B40=Object.prototype.hasOwnProperty,JT=typeof Map!=="undefined";function l3(){this._array=[],this._set=JT?new Map:Object.create(null)}l3.fromArray=function s(a,W0){var w0=new l3;for(var S0=0,g0=a.length;S0<g0;S0++)w0.add(a[S0],W0);return w0};l3.prototype.size=function s(){return JT?this._set.size:Object.getOwnPropertyNames(this._set).length};l3.prototype.add=function s(a,W0){var w0=JT?a:q40.toSetString(a),S0=JT?this.has(a):B40.call(this._set,w0),g0=this._array.length;if(!S0||W0)this._array.push(a);if(!S0)if(JT)this._set.set(a,g0);else this._set[w0]=g0};l3.prototype.has=function s(a){if(JT)return this._set.has(a);else{var W0=q40.toSetString(a);return B40.call(this._set,W0)}};l3.prototype.indexOf=function s(a){if(JT){var W0=this._set.get(a);if(W0>=0)return W0}else{var w0=q40.toSetString(a);if(B40.call(this._set,w0))return this._set[w0]}throw new Error('"'+a+'" is not in the set.')};l3.prototype.at=function s(a){if(a>=0&&a<this._array.length)return this._array[a];throw new Error("No element indexed by "+a)};l3.prototype.toArray=function s(){return this._array.slice()};KK8.ArraySet=l3});var Ox0=dG((_K8)=>{var Dx0=PM();function GK8(s,a){var W0=s.generatedLine,w0=a.generatedLine,S0=s.generatedColumn,g0=a.generatedColumn;return w0>W0||w0==W0&&g0>=S0||Dx0.compareByGeneratedPositionsInflated(s,a)<=0}function pr(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}pr.prototype.unsortedForEach=function s(a,W0){this._array.forEach(a,W0)};pr.prototype.add=function s(a){if(GK8(this._last,a))this._last=a,this._array.push(a);else this._sorted=!1,this._array.push(a)};pr.prototype.toArray=function s(){if(!this._sorted)this._array.sort(Dx0.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};_K8.MappingList=pr});var D40=dG((qK8)=>{var Qf=V40(),N7=PM(),cr=E40().ArraySet,UK8=Ox0().MappingList;function hU(s){if(!s)s={};this._file=N7.getArg(s,"file",null),this._sourceRoot=N7.getArg(s,"sourceRoot",null),this._skipValidation=N7.getArg(s,"skipValidation",!1),this._sources=new cr,this._names=new cr,this._mappings=new UK8,this._sourcesContents=null}hU.prototype._version=3;hU.fromSourceMap=function s(a){var W0=a.sourceRoot,w0=new hU({file:a.file,sourceRoot:W0});return a.eachMapping(function(S0){var g0={generated:{line:S0.generatedLine,column:S0.generatedColumn}};if(S0.source!=null){if(g0.source=S0.source,W0!=null)g0.source=N7.relative(W0,g0.source);if(g0.original={line:S0.originalLine,column:S0.originalColumn},S0.name!=null)g0.name=S0.name}w0.addMapping(g0)}),a.sources.forEach(function(S0){var g0=S0;if(W0!==null)g0=N7.relative(W0,S0);if(!w0._sources.has(g0))w0._sources.add(g0);var X8=a.sourceContentFor(S0);if(X8!=null)w0.setSourceContent(S0,X8)}),w0};hU.prototype.addMapping=function s(a){var W0=N7.getArg(a,"generated"),w0=N7.getArg(a,"original",null),S0=N7.getArg(a,"source",null),g0=N7.getArg(a,"name",null);if(!this._skipValidation)this._validateMapping(W0,w0,S0,g0);if(S0!=null){if(S0=String(S0),!this._sources.has(S0))this._sources.add(S0)}if(g0!=null){if(g0=String(g0),!this._names.has(g0))this._names.add(g0)}this._mappings.add({generatedLine:W0.line,generatedColumn:W0.column,originalLine:w0!=null&&w0.line,originalColumn:w0!=null&&w0.column,source:S0,name:g0})};hU.prototype.setSourceContent=function s(a,W0){var w0=a;if(this._sourceRoot!=null)w0=N7.relative(this._sourceRoot,w0);if(W0!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[N7.toSetString(w0)]=W0}else if(this._sourcesContents){if(delete this._sourcesContents[N7.toSetString(w0)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};hU.prototype.applySourceMap=function s(a,W0,w0){var S0=W0;if(W0==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);S0=a.file}var g0=this._sourceRoot;if(g0!=null)S0=N7.relative(g0,S0);var X8=new cr,u8=new cr;this._mappings.unsortedForEach(function(S8){if(S8.source===S0&&S8.originalLine!=null){var H1=a.originalPositionFor({line:S8.originalLine,column:S8.originalColumn});if(H1.source!=null){if(S8.source=H1.source,w0!=null)S8.source=N7.join(w0,S8.source);if(g0!=null)S8.source=N7.relative(g0,S8.source);if(S8.originalLine=H1.line,S8.originalColumn=H1.column,H1.name!=null)S8.name=H1.name}}var _1=S8.source;if(_1!=null&&!X8.has(_1))X8.add(_1);var GX=S8.name;if(GX!=null&&!u8.has(GX))u8.add(GX)},this),this._sources=X8,this._names=u8,a.sources.forEach(function(S8){var H1=a.sourceContentFor(S8);if(H1!=null){if(w0!=null)S8=N7.join(w0,S8);if(g0!=null)S8=N7.relative(g0,S8);this.setSourceContent(S8,H1)}},this)};hU.prototype._validateMapping=function s(a,W0,w0,S0){if(W0&&typeof W0.line!=="number"&&typeof W0.column!=="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!W0&&!w0&&!S0)return;else if(a&&"line"in a&&"column"in a&&W0&&"line"in W0&&"column"in W0&&a.line>0&&a.column>=0&&W0.line>0&&W0.column>=0&&w0)return;else throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:w0,original:W0,name:S0}))};hU.prototype._serializeMappings=function s(){var a=0,W0=1,w0=0,S0=0,g0=0,X8=0,u8="",S8,H1,_1,GX,I0=this._mappings.toArray();for(var _J=0,D1=I0.length;_J<D1;_J++){if(H1=I0[_J],S8="",H1.generatedLine!==W0){a=0;while(H1.generatedLine!==W0)S8+=";",W0++}else if(_J>0){if(!N7.compareByGeneratedPositionsInflated(H1,I0[_J-1]))continue;S8+=","}if(S8+=Qf.encode(H1.generatedColumn-a),a=H1.generatedColumn,H1.source!=null){if(GX=this._sources.indexOf(H1.source),S8+=Qf.encode(GX-X8),X8=GX,S8+=Qf.encode(H1.originalLine-1-S0),S0=H1.originalLine-1,S8+=Qf.encode(H1.originalColumn-w0),w0=H1.originalColumn,H1.name!=null)_1=this._names.indexOf(H1.name),S8+=Qf.encode(_1-g0),g0=_1}u8+=S8}return u8};hU.prototype._generateSourcesContent=function s(a,W0){return a.map(function(w0){if(!this._sourcesContents)return null;if(W0!=null)w0=N7.relative(W0,w0);var S0=N7.toSetString(w0);return Object.prototype.hasOwnProperty.call(this._sourcesContents,S0)?this._sourcesContents[S0]:null},this)};hU.prototype.toJSON=function s(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)a.file=this._file;if(this._sourceRoot!=null)a.sourceRoot=this._sourceRoot;if(this._sourcesContents)a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot);return a};hU.prototype.toString=function s(){return JSON.stringify(this.toJSON())};qK8.SourceMapGenerator=hU});var Fx0=dG((EK8)=>{EK8.GREATEST_LOWER_BOUND=1;EK8.LEAST_UPPER_BOUND=2;function O40(s,a,W0,w0,S0,g0){var X8=Math.floor((a-s)/2)+s,u8=S0(W0,w0[X8],!0);if(u8===0)return X8;else if(u8>0){if(a-X8>1)return O40(X8,a,W0,w0,S0,g0);if(g0==EK8.LEAST_UPPER_BOUND)return a<w0.length?a:-1;else return X8}else{if(X8-s>1)return O40(s,X8,W0,w0,S0,g0);if(g0==EK8.LEAST_UPPER_BOUND)return X8;else return s<0?-1:s}}EK8.search=function s(a,W0,w0,S0){if(W0.length===0)return-1;var g0=O40(-1,W0.length,a,W0,w0,S0||EK8.GREATEST_LOWER_BOUND);if(g0<0)return-1;while(g0-1>=0){if(w0(W0[g0],W0[g0-1],!0)!==0)break;--g0}return g0}});var Ax0=dG((wK8)=>{function F40(s,a,W0){var w0=s[a];s[a]=s[W0],s[W0]=w0}function OK8(s,a){return Math.round(s+Math.random()*(a-s))}function A40(s,a,W0,w0){if(W0<w0){var S0=OK8(W0,w0),g0=W0-1;F40(s,S0,w0);var X8=s[w0];for(var u8=W0;u8<w0;u8++)if(a(s[u8],X8)<=0)g0+=1,F40(s,g0,u8);F40(s,g0+1,u8);var S8=g0+1;A40(s,a,W0,S8-1),A40(s,a,S8+1,w0)}}wK8.quickSort=function(s,a){A40(s,a,0,s.length-1)}});var Lx0=dG((jK8)=>{var r$=PM(),j40=Fx0(),kM=E40().ArraySet,AK8=V40(),zf=Ax0().quickSort;function TQ(s,a){var W0=s;if(typeof s==="string")W0=r$.parseSourceMapInput(s);return W0.sections!=null?new RB(W0,a):new cK(W0,a)}TQ.fromSourceMap=function(s,a){return cK.fromSourceMap(s,a)};TQ.prototype._version=3;TQ.prototype.__generatedMappings=null;Object.defineProperty(TQ.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});TQ.prototype.__originalMappings=null;Object.defineProperty(TQ.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});TQ.prototype._charIsMappingSeparator=function s(a,W0){var w0=a.charAt(W0);return w0===";"||w0===","};TQ.prototype._parseMappings=function s(a,W0){throw new Error("Subclasses must implement _parseMappings")};TQ.GENERATED_ORDER=1;TQ.ORIGINAL_ORDER=2;TQ.GREATEST_LOWER_BOUND=1;TQ.LEAST_UPPER_BOUND=2;TQ.prototype.eachMapping=function s(a,W0,w0){var S0=W0||null,g0=w0||TQ.GENERATED_ORDER,X8;switch(g0){case TQ.GENERATED_ORDER:X8=this._generatedMappings;break;case TQ.ORIGINAL_ORDER:X8=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u8=this.sourceRoot;X8.map(function(S8){var H1=S8.source===null?null:this._sources.at(S8.source);return H1=r$.computeSourceURL(u8,H1,this._sourceMapURL),{source:H1,generatedLine:S8.generatedLine,generatedColumn:S8.generatedColumn,originalLine:S8.originalLine,originalColumn:S8.originalColumn,name:S8.name===null?null:this._names.at(S8.name)}},this).forEach(a,S0)};TQ.prototype.allGeneratedPositionsFor=function s(a){var W0=r$.getArg(a,"line"),w0={source:r$.getArg(a,"source"),originalLine:W0,originalColumn:r$.getArg(a,"column",0)};if(w0.source=this._findSourceIndex(w0.source),w0.source<0)return[];var S0=[],g0=this._findMapping(w0,this._originalMappings,"originalLine","originalColumn",r$.compareByOriginalPositions,j40.LEAST_UPPER_BOUND);if(g0>=0){var X8=this._originalMappings[g0];if(a.column===void 0){var u8=X8.originalLine;while(X8&&X8.originalLine===u8)S0.push({line:r$.getArg(X8,"generatedLine",null),column:r$.getArg(X8,"generatedColumn",null),lastColumn:r$.getArg(X8,"lastGeneratedColumn",null)}),X8=this._originalMappings[++g0]}else{var S8=X8.originalColumn;while(X8&&X8.originalLine===W0&&X8.originalColumn==S8)S0.push({line:r$.getArg(X8,"generatedLine",null),column:r$.getArg(X8,"generatedColumn",null),lastColumn:r$.getArg(X8,"lastGeneratedColumn",null)}),X8=this._originalMappings[++g0]}}return S0};jK8.SourceMapConsumer=TQ;function cK(s,a){var W0=s;if(typeof s==="string")W0=r$.parseSourceMapInput(s);var w0=r$.getArg(W0,"version"),S0=r$.getArg(W0,"sources"),g0=r$.getArg(W0,"names",[]),X8=r$.getArg(W0,"sourceRoot",null),u8=r$.getArg(W0,"sourcesContent",null),S8=r$.getArg(W0,"mappings"),H1=r$.getArg(W0,"file",null);if(w0!=this._version)throw new Error("Unsupported version: "+w0);if(X8)X8=r$.normalize(X8);S0=S0.map(String).map(r$.normalize).map(function(_1){return X8&&r$.isAbsolute(X8)&&r$.isAbsolute(_1)?r$.relative(X8,_1):_1}),this._names=kM.fromArray(g0.map(String),!0),this._sources=kM.fromArray(S0,!0),this._absoluteSources=this._sources.toArray().map(function(_1){return r$.computeSourceURL(X8,_1,a)}),this.sourceRoot=X8,this.sourcesContent=u8,this._mappings=S8,this._sourceMapURL=a,this.file=H1}cK.prototype=Object.create(TQ.prototype);cK.prototype.consumer=TQ;cK.prototype._findSourceIndex=function(s){var a=s;if(this.sourceRoot!=null)a=r$.relative(this.sourceRoot,a);if(this._sources.has(a))return this._sources.indexOf(a);var W0;for(W0=0;W0<this._absoluteSources.length;++W0)if(this._absoluteSources[W0]==s)return W0;return-1};cK.fromSourceMap=function s(a,W0){var w0=Object.create(cK.prototype),S0=w0._names=kM.fromArray(a._names.toArray(),!0),g0=w0._sources=kM.fromArray(a._sources.toArray(),!0);w0.sourceRoot=a._sourceRoot,w0.sourcesContent=a._generateSourcesContent(w0._sources.toArray(),w0.sourceRoot),w0.file=a._file,w0._sourceMapURL=W0,w0._absoluteSources=w0._sources.toArray().map(function(_J){return r$.computeSourceURL(w0.sourceRoot,_J,W0)});var X8=a._mappings.toArray().slice(),u8=w0.__generatedMappings=[],S8=w0.__originalMappings=[];for(var H1=0,_1=X8.length;H1<_1;H1++){var GX=X8[H1],I0=new jx0;if(I0.generatedLine=GX.generatedLine,I0.generatedColumn=GX.generatedColumn,GX.source){if(I0.source=g0.indexOf(GX.source),I0.originalLine=GX.originalLine,I0.originalColumn=GX.originalColumn,GX.name)I0.name=S0.indexOf(GX.name);S8.push(I0)}u8.push(I0)}return zf(w0.__originalMappings,r$.compareByOriginalPositions),w0};cK.prototype._version=3;Object.defineProperty(cK.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function jx0(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}cK.prototype._parseMappings=function s(a,W0){var w0=1,S0=0,g0=0,X8=0,u8=0,S8=0,H1=a.length,_1=0,GX={},I0={},_J=[],D1=[],$1,J5,x$,d4,s3;while(_1<H1)if(a.charAt(_1)===";")w0++,_1++,S0=0;else if(a.charAt(_1)===",")_1++;else{$1=new jx0,$1.generatedLine=w0;for(d4=_1;d4<H1;d4++)if(this._charIsMappingSeparator(a,d4))break;if(J5=a.slice(_1,d4),x$=GX[J5],x$)_1+=J5.length;else{x$=[];while(_1<d4)AK8.decode(a,_1,I0),s3=I0.value,_1=I0.rest,x$.push(s3);if(x$.length===2)throw new Error("Found a source, but no line and column");if(x$.length===3)throw new Error("Found a source and line, but no column");GX[J5]=x$}if($1.generatedColumn=S0+x$[0],S0=$1.generatedColumn,x$.length>1){if($1.source=u8+x$[1],u8+=x$[1],$1.originalLine=g0+x$[2],g0=$1.originalLine,$1.originalLine+=1,$1.originalColumn=X8+x$[3],X8=$1.originalColumn,x$.length>4)$1.name=S8+x$[4],S8+=x$[4]}if(D1.push($1),typeof $1.originalLine==="number")_J.push($1)}zf(D1,r$.compareByGeneratedPositionsDeflated),this.__generatedMappings=D1,zf(_J,r$.compareByOriginalPositions),this.__originalMappings=_J};cK.prototype._findMapping=function s(a,W0,w0,S0,g0,X8){if(a[w0]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+a[w0]);if(a[S0]<0)throw new TypeError("Column must be greater than or equal to 0, got "+a[S0]);return j40.search(a,W0,g0,X8)};cK.prototype.computeColumnSpans=function s(){for(var a=0;a<this._generatedMappings.length;++a){var W0=this._generatedMappings[a];if(a+1<this._generatedMappings.length){var w0=this._generatedMappings[a+1];if(W0.generatedLine===w0.generatedLine){W0.lastGeneratedColumn=w0.generatedColumn-1;continue}}W0.lastGeneratedColumn=1/0}};cK.prototype.originalPositionFor=function s(a){var W0={generatedLine:r$.getArg(a,"line"),generatedColumn:r$.getArg(a,"column")},w0=this._findMapping(W0,this._generatedMappings,"generatedLine","generatedColumn",r$.compareByGeneratedPositionsDeflated,r$.getArg(a,"bias",TQ.GREATEST_LOWER_BOUND));if(w0>=0){var S0=this._generatedMappings[w0];if(S0.generatedLine===W0.generatedLine){var g0=r$.getArg(S0,"source",null);if(g0!==null)g0=this._sources.at(g0),g0=r$.computeSourceURL(this.sourceRoot,g0,this._sourceMapURL);var X8=r$.getArg(S0,"name",null);if(X8!==null)X8=this._names.at(X8);return{source:g0,line:r$.getArg(S0,"originalLine",null),column:r$.getArg(S0,"originalColumn",null),name:X8}}}return{source:null,line:null,column:null,name:null}};cK.prototype.hasContentsOfAllSources=function s(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return a==null})};cK.prototype.sourceContentFor=function s(a,W0){if(!this.sourcesContent)return null;var w0=this._findSourceIndex(a);if(w0>=0)return this.sourcesContent[w0];var S0=a;if(this.sourceRoot!=null)S0=r$.relative(this.sourceRoot,S0);var g0;if(this.sourceRoot!=null&&(g0=r$.urlParse(this.sourceRoot))){var X8=S0.replace(/^file:\/\//,"");if(g0.scheme=="file"&&this._sources.has(X8))return this.sourcesContent[this._sources.indexOf(X8)];if((!g0.path||g0.path=="/")&&this._sources.has("/"+S0))return this.sourcesContent[this._sources.indexOf("/"+S0)]}if(W0)return null;else throw new Error('"'+S0+'" is not in the SourceMap.')};cK.prototype.generatedPositionFor=function s(a){var W0=r$.getArg(a,"source");if(W0=this._findSourceIndex(W0),W0<0)return{line:null,column:null,lastColumn:null};var w0={source:W0,originalLine:r$.getArg(a,"line"),originalColumn:r$.getArg(a,"column")},S0=this._findMapping(w0,this._originalMappings,"originalLine","originalColumn",r$.compareByOriginalPositions,r$.getArg(a,"bias",TQ.GREATEST_LOWER_BOUND));if(S0>=0){var g0=this._originalMappings[S0];if(g0.source===w0.source)return{line:r$.getArg(g0,"generatedLine",null),column:r$.getArg(g0,"generatedColumn",null),lastColumn:r$.getArg(g0,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};jK8.BasicSourceMapConsumer=cK;function RB(s,a){var W0=s;if(typeof s==="string")W0=r$.parseSourceMapInput(s);var w0=r$.getArg(W0,"version"),S0=r$.getArg(W0,"sections");if(w0!=this._version)throw new Error("Unsupported version: "+w0);this._sources=new kM,this._names=new kM;var g0={line:-1,column:0};this._sections=S0.map(function(X8){if(X8.url)throw new Error("Support for url field in sections not implemented.");var u8=r$.getArg(X8,"offset"),S8=r$.getArg(u8,"line"),H1=r$.getArg(u8,"column");if(S8<g0.line||S8===g0.line&&H1<g0.column)throw new Error("Section offsets must be ordered and non-overlapping.");return g0=u8,{generatedOffset:{generatedLine:S8+1,generatedColumn:H1+1},consumer:new TQ(r$.getArg(X8,"map"),a)}})}RB.prototype=Object.create(TQ.prototype);RB.prototype.constructor=TQ;RB.prototype._version=3;Object.defineProperty(RB.prototype,"sources",{get:function(){var s=[];for(var a=0;a<this._sections.length;a++)for(var W0=0;W0<this._sections[a].consumer.sources.length;W0++)s.push(this._sections[a].consumer.sources[W0]);return s}});RB.prototype.originalPositionFor=function s(a){var W0={generatedLine:r$.getArg(a,"line"),generatedColumn:r$.getArg(a,"column")},w0=j40.search(W0,this._sections,function(g0,X8){var u8=g0.generatedLine-X8.generatedOffset.generatedLine;if(u8)return u8;return g0.generatedColumn-X8.generatedOffset.generatedColumn}),S0=this._sections[w0];if(!S0)return{source:null,line:null,column:null,name:null};return S0.consumer.originalPositionFor({line:W0.generatedLine-(S0.generatedOffset.generatedLine-1),column:W0.generatedColumn-(S0.generatedOffset.generatedLine===W0.generatedLine?S0.generatedOffset.generatedColumn-1:0),bias:a.bias})};RB.prototype.hasContentsOfAllSources=function s(){return this._sections.every(function(a){return a.consumer.hasContentsOfAllSources()})};RB.prototype.sourceContentFor=function s(a,W0){for(var w0=0;w0<this._sections.length;w0++){var S0=this._sections[w0],g0=S0.consumer.sourceContentFor(a,!0);if(g0)return g0}if(W0)return null;else throw new Error('"'+a+'" is not in the SourceMap.')};RB.prototype.generatedPositionFor=function s(a){for(var W0=0;W0<this._sections.length;W0++){var w0=this._sections[W0];if(w0.consumer._findSourceIndex(r$.getArg(a,"source"))===-1)continue;var S0=w0.consumer.generatedPositionFor(a);if(S0){var g0={line:S0.line+(w0.generatedOffset.generatedLine-1),column:S0.column+(w0.generatedOffset.generatedLine===S0.line?w0.generatedOffset.generatedColumn-1:0)};return g0}}return{line:null,column:null}};RB.prototype._parseMappings=function s(a,W0){this.__generatedMappings=[],this.__originalMappings=[];for(var w0=0;w0<this._sections.length;w0++){var S0=this._sections[w0],g0=S0.consumer._generatedMappings;for(var X8=0;X8<g0.length;X8++){var u8=g0[X8],S8=S0.consumer._sources.at(u8.source);S8=r$.computeSourceURL(S0.consumer.sourceRoot,S8,this._sourceMapURL),this._sources.add(S8),S8=this._sources.indexOf(S8);var H1=null;if(u8.name)H1=S0.consumer._names.at(u8.name),this._names.add(H1),H1=this._names.indexOf(H1);var _1={source:S8,generatedLine:u8.generatedLine+(S0.generatedOffset.generatedLine-1),generatedColumn:u8.generatedColumn+(S0.generatedOffset.generatedLine===u8.generatedLine?S0.generatedOffset.generatedColumn-1:0),originalLine:u8.originalLine,originalColumn:u8.originalColumn,name:H1};if(this.__generatedMappings.push(_1),typeof _1.originalLine==="number")this.__originalMappings.push(_1)}}zf(this.__generatedMappings,r$.compareByGeneratedPositionsDeflated),zf(this.__originalMappings,r$.compareByOriginalPositions)};jK8.IndexedSourceMapConsumer=RB});var Rx0=dG((bK8)=>{var NK8=D40().SourceMapGenerator,lr=PM(),PK8=/(\r?\n)/,kK8=10,bM="$$$isSourceNode$$$";function zV(s,a,W0,w0,S0){if(this.children=[],this.sourceContents={},this.line=s==null?null:s,this.column=a==null?null:a,this.source=W0==null?null:W0,this.name=S0==null?null:S0,this[bM]=!0,w0!=null)this.add(w0)}zV.fromStringWithSourceMap=function s(a,W0,w0){var S0=new zV,g0=a.split(PK8),X8=0,u8=function(){var I0=D1(),_J=D1()||"";return I0+_J;function D1(){return X8<g0.length?g0[X8++]:void 0}},S8=1,H1=0,_1=null;if(W0.eachMapping(function(I0){if(_1!==null)if(S8<I0.generatedLine)GX(_1,u8()),S8++,H1=0;else{var _J=g0[X8]||"",D1=_J.substr(0,I0.generatedColumn-H1);g0[X8]=_J.substr(I0.generatedColumn-H1),H1=I0.generatedColumn,GX(_1,D1),_1=I0;return}while(S8<I0.generatedLine)S0.add(u8()),S8++;if(H1<I0.generatedColumn){var _J=g0[X8]||"";S0.add(_J.substr(0,I0.generatedColumn)),g0[X8]=_J.substr(I0.generatedColumn),H1=I0.generatedColumn}_1=I0},this),X8<g0.length){if(_1)GX(_1,u8());S0.add(g0.splice(X8).join(""))}return W0.sources.forEach(function(I0){var _J=W0.sourceContentFor(I0);if(_J!=null){if(w0!=null)I0=lr.join(w0,I0);S0.setSourceContent(I0,_J)}}),S0;function GX(I0,_J){if(I0===null||I0.source===void 0)S0.add(_J);else{var D1=w0?lr.join(w0,I0.source):I0.source;S0.add(new zV(I0.originalLine,I0.originalColumn,D1,_J,I0.name))}}};zV.prototype.add=function s(a){if(Array.isArray(a))a.forEach(function(W0){this.add(W0)},this);else if(a[bM]||typeof a==="string"){if(a)this.children.push(a)}else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+a);return this};zV.prototype.prepend=function s(a){if(Array.isArray(a))for(var W0=a.length-1;W0>=0;W0--)this.prepend(a[W0]);else if(a[bM]||typeof a==="string")this.children.unshift(a);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+a);return this};zV.prototype.walk=function s(a){var W0;for(var w0=0,S0=this.children.length;w0<S0;w0++)if(W0=this.children[w0],W0[bM])W0.walk(a);else if(W0!=="")a(W0,{source:this.source,line:this.line,column:this.column,name:this.name})};zV.prototype.join=function s(a){var W0,w0,S0=this.children.length;if(S0>0){W0=[];for(w0=0;w0<S0-1;w0++)W0.push(this.children[w0]),W0.push(a);W0.push(this.children[w0]),this.children=W0}return this};zV.prototype.replaceRight=function s(a,W0){var w0=this.children[this.children.length-1];if(w0[bM])w0.replaceRight(a,W0);else if(typeof w0==="string")this.children[this.children.length-1]=w0.replace(a,W0);else this.children.push("".replace(a,W0));return this};zV.prototype.setSourceContent=function s(a,W0){this.sourceContents[lr.toSetString(a)]=W0};zV.prototype.walkSourceContents=function s(a){for(var W0=0,w0=this.children.length;W0<w0;W0++)if(this.children[W0][bM])this.children[W0].walkSourceContents(a);var S0=Object.keys(this.sourceContents);for(var W0=0,w0=S0.length;W0<w0;W0++)a(lr.fromSetString(S0[W0]),this.sourceContents[S0[W0]])};zV.prototype.toString=function s(){var a="";return this.walk(function(W0){a+=W0}),a};zV.prototype.toStringWithSourceMap=function s(a){var W0={code:"",line:1,column:0},w0=new NK8(a),S0=!1,g0=null,X8=null,u8=null,S8=null;return this.walk(function(H1,_1){if(W0.code+=H1,_1.source!==null&&_1.line!==null&&_1.column!==null){if(g0!==_1.source||X8!==_1.line||u8!==_1.column||S8!==_1.name)w0.addMapping({source:_1.source,original:{line:_1.line,column:_1.column},generated:{line:W0.line,column:W0.column},name:_1.name});g0=_1.source,X8=_1.line,u8=_1.column,S8=_1.name,S0=!0}else if(S0)w0.addMapping({generated:{line:W0.line,column:W0.column}}),g0=null,S0=!1;for(var GX=0,I0=H1.length;GX<I0;GX++)if(H1.charCodeAt(GX)===kK8){if(W0.line++,W0.column=0,GX+1===I0)g0=null,S0=!1;else if(S0)w0.addMapping({source:_1.source,original:{line:_1.line,column:_1.column},generated:{line:W0.line,column:W0.column},name:_1.name})}else W0.column++}),this.walkSourceContents(function(H1,_1){w0.setSourceContent(H1,_1)}),{code:W0.code,map:w0}};bK8.SourceNode=zV});var Tx0=dG((vK8)=>{vK8.SourceMapGenerator=D40().SourceMapGenerator;vK8.SourceMapConsumer=Lx0().SourceMapConsumer;vK8.SourceNode=Rx0().SourceNode});var Px0=dG((eH8,Nx0)=>{var CK8=Object.prototype.toString,L40=typeof Buffer!=="undefined"&&typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function yK8(s){return CK8.call(s).slice(8,-1)==="ArrayBuffer"}function hK8(s,a,W0){a>>>=0;var w0=s.byteLength-a;if(w0<0)throw new RangeError("'offset' is out of bounds");if(W0===void 0)W0=w0;else if(W0>>>=0,W0>w0)throw new RangeError("'length' is out of bounds");return L40?Buffer.from(s.slice(a,a+W0)):new Buffer(new Uint8Array(s.slice(a,a+W0)))}function fK8(s,a){if(typeof a!=="string"||a==="")a="utf8";if(!Buffer.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');return L40?Buffer.from(s,a):new Buffer(s,a)}function gK8(s,a,W0){if(typeof s==="number")throw new TypeError('"value" argument must not be a number');if(yK8(s))return hK8(s,a,W0);if(typeof s==="string")return fK8(s,a);return L40?Buffer.from(s):new Buffer(s)}Nx0.exports=gK8});var Cx0=dG((X48,P40)=>{var uK8=Tx0().SourceMapConsumer,R40=yU("path"),UD;try{if(UD=yU("fs"),!UD.existsSync||!UD.readFileSync)UD=null}catch(s){}var dK8=Px0();function kx0(s,a){return s.require(a)}var bx0=!1,Mx0=!1,T40=!1,Kf="auto",$T={},Hf={},mK8=/^data:application\/json[^,]+base64,/,vA=[],IA=[];function k40(){if(Kf==="browser")return!0;if(Kf==="node")return!1;return typeof window!=="undefined"&&typeof XMLHttpRequest==="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function pK8(){return typeof process==="object"&&process!==null&&typeof process.on==="function"}function cK8(){if(typeof process==="object"&&process!==null)return process.version;else return""}function lK8(){if(typeof process==="object"&&process!==null)return process.stderr}function oK8(s){if(typeof process==="object"&&process!==null&&typeof process.exit==="function")return process.exit(s)}function or(s){return function(a){for(var W0=0;W0<s.length;W0++){var w0=s[W0](a);if(w0)return w0}return null}}var b40=or(vA);vA.push(function(s){if(s=s.trim(),/^file:/.test(s))s=s.replace(/file:\/\/\/(\w:)?/,function(w0,S0){return S0?"":"/"});if(s in $T)return $T[s];var a="";try{if(!UD){var W0=new XMLHttpRequest;if(W0.open("GET",s,!1),W0.send(null),W0.readyState===4&&W0.status===200)a=W0.responseText}else if(UD.existsSync(s))a=UD.readFileSync(s,"utf8")}catch(w0){}return $T[s]=a});function N40(s,a){if(!s)return a;var W0=R40.dirname(s),w0=/^\w+:\/\/[^\/]*/.exec(W0),S0=w0?w0[0]:"",g0=W0.slice(S0.length);if(S0&&/^\/\w\:/.test(g0))return S0+="/",S0+R40.resolve(W0.slice(S0.length),a).replace(/\\/g,"/");return S0+R40.resolve(W0.slice(S0.length),a)}function sK8(s){var a;if(k40())try{var W0=new XMLHttpRequest;W0.open("GET",s,!1),W0.send(null),a=W0.readyState===4?W0.responseText:null;var w0=W0.getResponseHeader("SourceMap")||W0.getResponseHeader("X-SourceMap");if(w0)return w0}catch(u8){}a=b40(s);var S0=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,g0,X8;while(X8=S0.exec(a))g0=X8;if(!g0)return null;return g0[1]}var M40=or(IA);IA.push(function(s){var a=sK8(s);if(!a)return null;var W0;if(mK8.test(a)){var w0=a.slice(a.indexOf(",")+1);W0=dK8(w0,"base64").toString(),a=s}else a=N40(s,a),W0=b40(a);if(!W0)return null;return{url:a,map:W0}});function v40(s){var a=Hf[s.source];if(!a){var W0=M40(s.source);if(W0){if(a=Hf[s.source]={url:W0.url,map:new uK8(W0.map)},a.map.sourcesContent)a.map.sources.forEach(function(S0,g0){var X8=a.map.sourcesContent[g0];if(X8){var u8=N40(a.url,S0);$T[u8]=X8}})}else a=Hf[s.source]={url:null,map:null}}if(a&&a.map&&typeof a.map.originalPositionFor==="function"){var w0=a.map.originalPositionFor(s);if(w0.source!==null)return w0.source=N40(a.url,w0.source),w0}return s}function Ix0(s){var a=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(s);if(a){var W0=v40({source:a[2],line:+a[3],column:a[4]-1});return"eval at "+a[1]+" ("+W0.source+":"+W0.line+":"+(W0.column+1)+")"}if(a=/^eval at ([^(]+) \((.+)\)$/.exec(s),a)return"eval at "+a[1]+" ("+Ix0(a[2])+")";return s}function iK8(){var s,a="";if(this.isNative())a="native";else{if(s=this.getScriptNameOrSourceURL(),!s&&this.isEval())a=this.getEvalOrigin(),a+=", ";if(s)a+=s;else a+="<anonymous>";var W0=this.getLineNumber();if(W0!=null){a+=":"+W0;var w0=this.getColumnNumber();if(w0)a+=":"+w0}}var S0="",g0=this.getFunctionName(),X8=!0,u8=this.isConstructor(),S8=!(this.isToplevel()||u8);if(S8){var H1=this.getTypeName();if(H1==="[object Object]")H1="null";var _1=this.getMethodName();if(g0){if(H1&&g0.indexOf(H1)!=0)S0+=H1+".";if(S0+=g0,_1&&g0.indexOf("."+_1)!=g0.length-_1.length-1)S0+=" [as "+_1+"]"}else S0+=H1+"."+(_1||"<anonymous>")}else if(u8)S0+="new "+(g0||"<anonymous>");else if(g0)S0+=g0;else S0+=a,X8=!1;if(X8)S0+=" ("+a+")";return S0}function vx0(s){var a={};return Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(function(W0){a[W0]=/^(?:is|get)/.test(W0)?function(){return s[W0].call(s)}:s[W0]}),a.toString=iK8,a}function xx0(s,a){if(a===void 0)a={nextPosition:null,curPosition:null};if(s.isNative())return a.curPosition=null,s;var W0=s.getFileName()||s.getScriptNameOrSourceURL();if(W0){var w0=s.getLineNumber(),S0=s.getColumnNumber()-1,g0=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,X8=g0.test(cK8())?0:62;if(w0===1&&S0>X8&&!k40()&&!s.isEval())S0-=X8;var u8=v40({source:W0,line:w0,column:S0});a.curPosition=u8,s=vx0(s);var S8=s.getFunctionName;return s.getFunctionName=function(){if(a.nextPosition==null)return S8();return a.nextPosition.name||S8()},s.getFileName=function(){return u8.source},s.getLineNumber=function(){return u8.line},s.getColumnNumber=function(){return u8.column+1},s.getScriptNameOrSourceURL=function(){return u8.source},s}var H1=s.isEval()&&s.getEvalOrigin();if(H1)return H1=Ix0(H1),s=vx0(s),s.getEvalOrigin=function(){return H1},s;return s}function nK8(s,a){if(T40)$T={},Hf={};var W0=s.name||"Error",w0=s.message||"",S0=W0+": "+w0,g0={nextPosition:null,curPosition:null},X8=[];for(var u8=a.length-1;u8>=0;u8--)X8.push(` at `+xx0(a[u8],g0)),g0.nextPosition=g0.curPosition;return g0.curPosition=g0.nextPosition=null,S0+X8.reverse().join("")}function Sx0(s){var a=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(s.stack);if(a){var W0=a[1],w0=+a[2],S0=+a[3],g0=$T[W0];if(!g0&&UD&&UD.existsSync(W0))try{g0=UD.readFileSync(W0,"utf8")}catch(u8){g0=""}if(g0){var X8=g0.split(/(?:\r\n|\r|\n)/)[w0-1];if(X8)return W0+":"+w0+` `+X8+` `+new Array(S0).join(" ")+"^"}}return null}function rK8(s){var a=Sx0(s),W0=lK8();if(W0&&W0._handle&&W0._handle.setBlocking)W0._handle.setBlocking(!0);if(a)console.error(),console.error(a);console.error(s.stack),oK8(1)}function tK8(){var s=process.emit;process.emit=function(a){if(a==="uncaughtException"){var W0=arguments[1]&&arguments[1].stack,w0=this.listeners(a).length>0;if(W0&&!w0)return rK8(arguments[1])}return s.apply(this,arguments)}}var aK8=vA.slice(0),eK8=IA.slice(0);X48.wrapCallSite=xx0;X48.getErrorSource=Sx0;X48.mapSourcePosition=v40;X48.retrieveSourceMap=M40;X48.install=function(s){if(s=s||{},s.environment){if(Kf=s.environment,["node","browser","auto"].indexOf(Kf)===-1)throw new Error("environment "+Kf+" was unknown. Available options are {auto, browser, node}")}if(s.retrieveFile){if(s.overrideRetrieveFile)vA.length=0;vA.unshift(s.retrieveFile)}if(s.retrieveSourceMap){if(s.overrideRetrieveSourceMap)IA.length=0;IA.unshift(s.retrieveSourceMap)}if(s.hookRequire&&!k40()){var a=kx0(P40,"module"),W0=a.prototype._compile;if(!W0.__sourceMapSupport)a.prototype._compile=function(g0,X8){return $T[X8]=g0,Hf[X8]=void 0,W0.call(this,g0,X8)},a.prototype._compile.__sourceMapSupport=!0}if(!T40)T40="emptyCacheBetweenOperations"in s?s.emptyCacheBetweenOperations:!1;if(!bx0)bx0=!0,Error.prepareStackTrace=nK8;if(!Mx0){var w0="handleUncaughtExceptions"in s?s.handleUncaughtExceptions:!0;try{var S0=kx0(P40,"worker_threads");if(S0.isMainThread===!1)w0=!1}catch(g0){}if(w0&&pK8())Mx0=!0,tK8()}};X48.resetRetrieveHandlers=function(){vA.length=0,IA.length=0,vA=aK8.slice(0),IA=eK8.slice(0),M40=or(IA),b40=or(vA)}});var hx0=dG((XG8,sr)=>{var __dirname="/home/runner/work/dtsx/dtsx/node_modules/typescript/lib",__filename="/home/runner/work/dtsx/dtsx/node_modules/typescript/lib/typescript.js";/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var yx0={};((s)=>{var{defineProperty:a,getOwnPropertyDescriptor:W0,getOwnPropertyNames:w0}=Object,S0=Object.prototype.hasOwnProperty,g0=(X,Y)=>{for(var $ in Y)a(X,$,{get:Y[$],enumerable:!0})},X8=(X,Y,$,Z)=>{if(Y&&typeof Y==="object"||typeof Y==="function"){for(let W of w0(Y))if(!S0.call(X,W)&&W!==$)a(X,W,{get:()=>Y[W],enumerable:!(Z=W0(Y,W))||Z.enumerable})}return X},u8=(X)=>X,S8={};g0(S8,{ANONYMOUS:()=>sl,AccessFlags:()=>rt,AssertionLevel:()=>Qt,AssignmentDeclarationKind:()=>Wa,AssignmentKind:()=>M00,Associativity:()=>f00,BreakpointResolver:()=>oo,BuilderFileEmit:()=>CJ0,BuilderProgramKind:()=>pJ0,BuilderState:()=>u7,CallHierarchy:()=>gO,CharacterCodes:()=>Ea,CheckFlags:()=>ot,CheckMode:()=>qp,ClassificationType:()=>Jl,ClassificationTypeNames:()=>l$0,CommentDirectiveType:()=>vt,Comparison:()=>GX,CompletionInfoFlags:()=>f$0,CompletionTriggerKind:()=>Xl,Completions:()=>cO,ContainerFlags:()=>BY0,ContextFlags:()=>ft,Debug:()=>N,DiagnosticCategory:()=>uM,Diagnostics:()=>U,DocumentHighlights:()=>yC,ElementFlags:()=>nt,EmitFlags:()=>ef,EmitHint:()=>Fa,EmitOnly:()=>xt,EndOfLineState:()=>d$0,ExitStatus:()=>St,ExportKind:()=>hZ0,Extension:()=>Da,ExternalEmitHelpers:()=>wa,FileIncludeKind:()=>mf,FilePreprocessingDiagnosticsKind:()=>It,FileSystemEntryKind:()=>ba,FileWatcherEventKind:()=>Na,FindAllReferences:()=>CZ,FlattenLevel:()=>hY0,FlowFlags:()=>gM,ForegroundColorEscapeSequences:()=>TJ0,FunctionFlags:()=>y00,GeneratedIdentifierFlags:()=>df,GetLiteralTextFlags:()=>se,GoToDefinition:()=>hF,HighlightSpanKind:()=>y$0,IdentifierNameMap:()=>VF,ImportKind:()=>yZ0,ImportsNotUsedAsValues:()=>_a,IndentStyle:()=>h$0,IndexFlags:()=>tt,IndexKind:()=>Xa,InferenceFlags:()=>$a,InferencePriority:()=>Ja,InlayHintKind:()=>C$0,InlayHints:()=>hs,InternalEmitFlags:()=>Oa,InternalNodeBuilderFlags:()=>ut,InternalSymbolName:()=>st,IntersectionFlags:()=>ht,InvalidatedProjectKind:()=>V$0,JSDocParsingMode:()=>Ta,JsDoc:()=>tV,JsTyping:()=>S_,JsxEmit:()=>Ga,JsxFlags:()=>Pt,JsxReferenceKind:()=>at,LanguageFeatureMinimumTarget:()=>S9,LanguageServiceMode:()=>x$0,LanguageVariant:()=>qa,LexicalEnvironmentFlags:()=>ja,ListFormat:()=>La,LogLevel:()=>Et,MapCode:()=>fs,MemberOverrideStatus:()=>Ct,ModifierFlags:()=>gf,ModuleDetectionKind:()=>Qa,ModuleInstanceState:()=>UY0,ModuleKind:()=>Xw,ModuleResolutionKind:()=>e3,ModuleSpecifierEnding:()=>S80,NavigateTo:()=>z20,NavigationBar:()=>H20,NewLineKind:()=>Va,NodeBuilderFlags:()=>gt,NodeCheckFlags:()=>lf,NodeFactoryFlags:()=>H10,NodeFlags:()=>ff,NodeResolutionFeatures:()=>$Y0,ObjectFlags:()=>sf,OperationCanceledException:()=>cA,OperatorPrecedence:()=>g00,OrganizeImports:()=>aV,OrganizeImportsMode:()=>ec,OuterExpressionKinds:()=>Aa,OutliningElementsCollector:()=>us,OutliningSpanKind:()=>g$0,OutputFileType:()=>u$0,PackageJsonAutoImportPreference:()=>I$0,PackageJsonDependencyGroup:()=>v$0,PatternMatchKind:()=>Vo,PollingInterval:()=>Xg,PollingWatchKind:()=>Ha,PragmaKindFlags:()=>Ra,PredicateSemantics:()=>kt,PreparePasteEdits:()=>Yi,PrivateIdentifierKind:()=>w10,ProcessLevel:()=>dY0,ProgramUpdateLevel:()=>FJ0,QuotePreference:()=>UZ0,RegularExpressionFlags:()=>bt,RelationComparisonResult:()=>uf,Rename:()=>wy,ScriptElementKind:()=>p$0,ScriptElementKindModifier:()=>c$0,ScriptKind:()=>rf,ScriptSnapshot:()=>iS,ScriptTarget:()=>Ua,SemanticClassificationFormat:()=>S$0,SemanticMeaning:()=>o$0,SemicolonPreference:()=>Yl,SignatureCheckMode:()=>Bp,SignatureFlags:()=>nf,SignatureHelp:()=>Xb,SignatureInfo:()=>SJ0,SignatureKind:()=>et,SmartSelectionRange:()=>ps,SnippetKind:()=>af,StatisticType:()=>A$0,StructureIsReused:()=>pf,SymbolAccessibility:()=>pt,SymbolDisplay:()=>WG,SymbolDisplayPartKind:()=>rS,SymbolFlags:()=>cf,SymbolFormatFlags:()=>mt,SyntaxKind:()=>hf,Ternary:()=>Za,ThrottledCancellationToken:()=>D90,TokenClass:()=>m$0,TokenFlags:()=>Mt,TransformFlags:()=>tf,TypeFacts:()=>Up,TypeFlags:()=>of,TypeFormatFlags:()=>dt,TypeMapKind:()=>Ya,TypePredicateKind:()=>ct,TypeReferenceSerializationKind:()=>lt,UnionReduction:()=>yt,UpToDateStatusType:()=>W$0,VarianceFlags:()=>it,Version:()=>P7,VersionRange:()=>fM,WatchDirectoryFlags:()=>Ba,WatchDirectoryKind:()=>Ka,WatchFileKind:()=>za,WatchLogLevel:()=>jJ0,WatchType:()=>u9,accessPrivateIdentifier:()=>yY0,addEmitFlags:()=>A6,addEmitHelper:()=>QO,addEmitHelpers:()=>G4,addInternalEmitFlags:()=>eB,addNodeFactoryPatcher:()=>RG0,addObjectAllocatorPatcher:()=>HG0,addRange:()=>dX,addRelatedInfo:()=>eJ,addSyntheticLeadingComment:()=>Uq,addSyntheticTrailingComment:()=>$L,addToSeen:()=>oz,advancedAsyncSuperHelper:()=>Wx,affectsDeclarationPathOptionDeclarations:()=>NX0,affectsEmitOptionDeclarations:()=>TX0,allKeysStartWithDot:()=>ex,altDirectorySeparator:()=>cM,and:()=>CM,append:()=>u1,appendIfUnique:()=>m4,arrayFrom:()=>BJ,arrayIsEqualTo:()=>pQ,arrayIsHomogeneous:()=>m80,arrayOf:()=>Jt,arrayReverseIterator:()=>Df,arrayToMap:()=>n3,arrayToMultiMap:()=>HT,arrayToNumericMap:()=>Zt,assertType:()=>GV,assign:()=>NB,asyncSuperHelper:()=>Zx,attachFileToDiagnostics:()=>tD,base64decode:()=>Q80,base64encode:()=>W80,binarySearch:()=>oG,binarySearchKey:()=>BD,bindSourceFile:()=>EY0,breakIntoCharacterSpans:()=>eZ0,breakIntoWordSpans:()=>X20,buildLinkParts:()=>AZ0,buildOpts:()=>NP,buildOverload:()=>GT0,bundlerModuleNameResolver:()=>ZY0,canBeConvertedToAsync:()=>Oo,canHaveDecorators:()=>Lq,canHaveExportModifier:()=>rN,canHaveFlowNode:()=>Rw,canHaveIllegalDecorators:()=>jm,canHaveIllegalModifiers:()=>WX0,canHaveIllegalType:()=>rG0,canHaveIllegalTypeParameters:()=>ZX0,canHaveJSDoc:()=>ON,canHaveLocals:()=>HK,canHaveModifiers:()=>rz,canHaveModuleSpecifier:()=>P00,canHaveSymbol:()=>M7,canIncludeBindAndCheckDiagnostics:()=>sj,canJsonReportNoInputFiles:()=>IP,canProduceDiagnostics:()=>mP,canUsePropertyAccess:()=>bd,canWatchAffectingLocation:()=>tJ0,canWatchAtTypes:()=>rJ0,canWatchDirectoryOrFile:()=>Ec,canWatchDirectoryOrFilePath:()=>$k,cartesianProduct:()=>qt,cast:()=>Y$,chainBundle:()=>g7,chainDiagnosticMessages:()=>MJ,changeAnyExtension:()=>ET,changeCompilerHostLikeToUseCache:()=>gL,changeExtension:()=>YH,changeFullExtension:()=>sM,changesAffectModuleResolution:()=>Fv,changesAffectingProgramStructure:()=>ge,characterCodeToRegularExpressionFlag:()=>_g,childIsDecorated:()=>Oj,classElementOrClassElementParameterIsDecorated:()=>Gu,classHasClassThisAssignment:()=>Mp,classHasDeclaredOrExplicitlyAssignedName:()=>vp,classHasExplicitlyAssignedName:()=>VS,classOrConstructorParameterIsDecorated:()=>dH,classicNameResolver:()=>_Y0,classifier:()=>A90,cleanExtendedConfigCache:()=>OS,clear:()=>A5,clearMap:()=>u5,clearSharedExtendedConfigFileWatcher:()=>lp,climbPastPropertyAccess:()=>eS,clone:()=>Wt,cloneCompilerOptions:()=>Al,closeFileWatcher:()=>_7,closeFileWatcherOf:()=>Nz,codefix:()=>SW,collapseTextChangeRangesAcrossMultipleVersions:()=>aa,collectExternalModuleInfo:()=>Np,combine:()=>qD,combinePaths:()=>pX,commandLineOptionOfCustomType:()=>bX0,commentPragmas:()=>dM,commonOptionsWithBuild:()=>Ix,compact:()=>zT,compareBooleans:()=>HV,compareDataObjects:()=>$d,compareDiagnostics:()=>uj,compareEmitHelpers:()=>A10,compareNumberOfDirectorySeparators:()=>sN,comparePaths:()=>c4,comparePathsCaseInsensitive:()=>HH0,comparePathsCaseSensitive:()=>KH0,comparePatternKeys:()=>Qp,compareProperties:()=>Gt,compareStringsCaseInsensitive:()=>_T,compareStringsCaseInsensitiveEslintCompatible:()=>zt,compareStringsCaseSensitive:()=>EW,compareStringsCaseSensitiveUI:()=>VT,compareTextSpans:()=>xM,compareValues:()=>PZ,compilerOptionsAffectDeclarationPath:()=>k80,compilerOptionsAffectEmit:()=>P80,compilerOptionsAffectSemanticDiagnostics:()=>N80,compilerOptionsDidYouMeanDiagnostics:()=>yx,compilerOptionsIndicateEsModules:()=>Pl,computeCommonSourceDirectoryOfFilenames:()=>LJ0,computeLineAndCharacterOfPosition:()=>$w,computeLineOfPosition:()=>nA,computeLineStarts:()=>RD,computePositionOfLineAndCharacter:()=>tM,computeSignatureWithDiagnostics:()=>Gc,computeSuggestionDiagnostics:()=>Bo,computedOptions:()=>dj,concatenate:()=>aY,concatenateDiagnosticMessageChains:()=>w80,consumesNodeCoreModules:()=>PC,contains:()=>nY,containsIgnoredPath:()=>rj,containsObjectRestOrSpread:()=>jP,containsParseError:()=>SD,containsPath:()=>Uz,convertCompilerOptionsForTelemetry:()=>lX0,convertCompilerOptionsFromJson:()=>ZV0,convertJsonOption:()=>UE,convertToBase64:()=>Z80,convertToJson:()=>bP,convertToObject:()=>fX0,convertToOptionsWithAbsolutePaths:()=>ux,convertToRelativePath:()=>sA,convertToTSConfig:()=>pm,convertTypeAcquisitionFromJson:()=>WV0,copyComments:()=>jE,copyEntries:()=>Av,copyLeadingComments:()=>bF,copyProperties:()=>Lf,copyTrailingAsLeadingComments:()=>Tk,copyTrailingComments:()=>YR,couldStartTrivia:()=>fa,countWhere:()=>$5,createAbstractBuilder:()=>_q0,createAccessorPropertyBackingField:()=>Tm,createAccessorPropertyGetRedirector:()=>UX0,createAccessorPropertySetRedirector:()=>qX0,createBaseNodeFactory:()=>Z10,createBinaryExpressionTrampoline:()=>Px,createBuilderProgram:()=>_c,createBuilderProgramUsingIncrementalBuildInfo:()=>sJ0,createBuilderStatusReporter:()=>uS,createCacheableExportInfoMap:()=>Zo,createCachedDirectoryStructureHost:()=>ES,createClassifier:()=>mB0,createCommentDirectivesMap:()=>le,createCompilerDiagnostic:()=>Z2,createCompilerDiagnosticForInvalidCustomType:()=>MX0,createCompilerDiagnosticFromMessageChain:()=>TI,createCompilerHost:()=>RJ0,createCompilerHostFromProgramHost:()=>vc,createCompilerHostWorker:()=>wS,createDetachedDiagnostic:()=>rD,createDiagnosticCollection:()=>Mj,createDiagnosticForFileFromMessageChain:()=>Wu,createDiagnosticForNode:()=>VX,createDiagnosticForNodeArray:()=>Ew,createDiagnosticForNodeArrayFromMessageChain:()=>iT,createDiagnosticForNodeFromMessageChain:()=>X4,createDiagnosticForNodeInSourceFile:()=>Bz,createDiagnosticForRange:()=>W00,createDiagnosticMessageChainFromDiagnostic:()=>Z00,createDiagnosticReporter:()=>vO,createDocumentPositionMapper:()=>vY0,createDocumentRegistry:()=>mZ0,createDocumentRegistryInternal:()=>Ho,createEmitAndSemanticDiagnosticsBuilderProgram:()=>Bc,createEmitHelperFactory:()=>F10,createEmptyExports:()=>qP,createEvaluator:()=>a80,createExpressionForJsxElement:()=>a10,createExpressionForJsxFragment:()=>e10,createExpressionForObjectLiteralElementLike:()=>XX0,createExpressionForPropertyName:()=>Em,createExpressionFromEntityName:()=>BP,createExternalHelpersImportDeclarationIfNeeded:()=>wm,createFileDiagnostic:()=>E9,createFileDiagnosticFromMessageChain:()=>vv,createFlowNode:()=>OK,createForOfBindingStatement:()=>Bm,createFutureSourceFile:()=>xC,createGetCanonicalFileName:()=>$W,createGetIsolatedDeclarationErrors:()=>GJ0,createGetSourceFile:()=>rp,createGetSymbolAccessibilityDiagnosticForNode:()=>uV,createGetSymbolAccessibilityDiagnosticForNodeName:()=>HJ0,createGetSymbolWalker:()=>DY0,createIncrementalCompilerHost:()=>gS,createIncrementalProgram:()=>Z$0,createJsxFactoryExpression:()=>qm,createLanguageService:()=>O90,createLanguageServiceSourceFile:()=>aC,createMemberAccessForPropertyName:()=>_E,createModeAwareCache:()=>zF,createModeAwareCacheKey:()=>TL,createModeMismatchDetails:()=>pg,createModuleNotFoundChain:()=>Lv,createModuleResolutionCache:()=>KF,createModuleResolutionLoader:()=>Jc,createModuleResolutionLoaderUsingGlobalCache:()=>Y$0,createModuleSpecifierResolutionHost:()=>cV,createMultiMap:()=>gz,createNameResolv