tsx 4.21.0 → 4.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/api/index.cjs +1 -1
- package/dist/cjs/api/index.mjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.mjs +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/client-D3mGB526.cjs +1 -0
- package/dist/client-D_mPDF5S.mjs +1 -0
- package/dist/esm/api/index.cjs +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/index.cjs +1 -2
- package/dist/esm/index.mjs +1 -2
- package/dist/get-pipe-path-D4YM6rQt.cjs +1 -0
- package/dist/get-pipe-path-_tAJyU_v.mjs +1 -0
- package/dist/index-C8LOAU3M.cjs +14 -0
- package/dist/index-CDeh32pY.mjs +14 -0
- package/dist/loader.cjs +1 -1
- package/dist/loader.mjs +1 -1
- package/dist/node-features-Bdn6JLJo.cjs +1 -0
- package/dist/node-features-Eq_kCbjt.mjs +1 -0
- package/dist/package-CTKdXtQo.cjs +1 -0
- package/dist/package-jo6LuyYP.mjs +1 -0
- package/dist/preflight.cjs +1 -1
- package/dist/preflight.mjs +1 -1
- package/dist/register-BQpI82el.mjs +10 -0
- package/dist/register-BwcD2ly9.cjs +2 -0
- package/dist/register-DJgoUG_Q.cjs +10 -0
- package/dist/register-lJYvHe5s.mjs +2 -0
- package/dist/repl.cjs +3 -3
- package/dist/repl.mjs +3 -3
- package/dist/{require-DQxpCAr4.mjs → require-CS-YsV04.mjs} +1 -1
- package/dist/{require-D4F1Lv60.cjs → require-CsVor_0B.cjs} +1 -1
- package/dist/temporary-directory-BDDVQOvU.mjs +1 -0
- package/package.json +3 -4
- package/dist/client-BQVF1NaW.mjs +0 -1
- package/dist/client-D6NvIMSC.cjs +0 -1
- package/dist/get-pipe-path-BHW2eJdv.mjs +0 -1
- package/dist/get-pipe-path-BoR10qr8.cjs +0 -1
- package/dist/index-7AaEi15b.mjs +0 -14
- package/dist/index-gckBtVBf.cjs +0 -14
- package/dist/node-features-_8ZFwP_x.mjs +0 -1
- package/dist/node-features-roYmp9jK.cjs +0 -1
- package/dist/package-CeBgXWuR.mjs +0 -1
- package/dist/package-Dxt5kIHw.cjs +0 -1
- package/dist/register-2sWVXuRQ.cjs +0 -1
- package/dist/register-B7jrtLTO.mjs +0 -1
- package/dist/register-CFH5oNdT.mjs +0 -4
- package/dist/register-D46fvsV_.cjs +0 -4
- package/dist/temporary-directory-CwHp0_NW.mjs +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var Xt=Object.defineProperty;var h=(s,e)=>Xt(s,"name",{value:e,configurable:!0});import J from"node:path";import{fileURLToPath as Kt,pathToFileURL as Yt}from"node:url";import{version as ye,transform as Qt,transformSync as Te}from"esbuild";import Zt from"node:crypto";import{i as Vt,c as er}from"./node-features-Eq_kCbjt.mjs";import U from"node:fs";import tr from"node:os";import{t as rr}from"./temporary-directory-BDDVQOvU.mjs";const Ce=h(s=>Zt.createHash("sha1").update(s).digest("hex"),"sha1");var nr=44,ir=59,De="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fe=new Uint8Array(64),sr=new Uint8Array(128);for(let s=0;s<De.length;s++){const e=De.charCodeAt(s);Fe[s]=e,sr[e]=s}function Y(s,e,r){let i=e-r;i=i<0?-i<<1|1:i<<1;do{let o=i&31;i>>>=5,i>0&&(o|=32),s.write(Fe[o])}while(i>0);return e}h(Y,"encodeInteger$1");var Be=1024*16,We=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(s){return Buffer.from(s.buffer,s.byteOffset,s.byteLength).toString()}}:{decode(s){let e="";for(let r=0;r<s.length;r++)e+=String.fromCharCode(s[r]);return e}},or=class{static{h(this,"StringWriter")}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Be)}write(s){const{buffer:e}=this;e[this.pos++]=s,this.pos===Be&&(this.out+=We.decode(e),this.pos=0)}flush(){const{buffer:s,out:e,pos:r}=this;return r>0?e+We.decode(s.subarray(0,r)):e}};function ar(s){const e=new or;let r=0,i=0,o=0,c=0;for(let u=0;u<s.length;u++){const p=s[u];if(u>0&&e.write(ir),p.length===0)continue;let g=0;for(let b=0;b<p.length;b++){const d=p[b];b>0&&e.write(nr),g=Y(e,d[0],g),d.length!==1&&(r=Y(e,d[1],r),i=Y(e,d[2],i),o=Y(e,d[3],o),d.length!==4&&(c=Y(e,d[4],c)))}}return e.flush()}h(ar,"encode$1");class ue{static{h(this,"BitSet")}constructor(e){this.bits=e instanceof ue?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}}class re{static{h(this,"Chunk")}constructor(e,r,i){this.start=e,this.end=r,this.original=i,this.intro="",this.outro="",this.content=i,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new re(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let r=this;for(;r;)e(r),r=r.next}eachPrevious(e){let r=this;for(;r;)e(r),r=r.previous}edit(e,r,i){return this.content=e,i||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){const r=e-this.start,i=this.original.slice(0,r),o=this.original.slice(r);this.original=i;const c=new re(e,this.end,o);return c.outro=this.outro,this.outro="",this.end=e,this.edited?(c.edit("",!1),this.content=""):this.content=i,c.next=this.next,c.next&&(c.next.previous=c),c.previous=this,this.next=c,c}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const r=this.content.replace(e,"");if(r.length){if(r!==this.content){const i=this.split(this.end-r.length);this.edited&&i.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}}function cr(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?s=>globalThis.btoa(unescape(encodeURIComponent(s))):typeof Buffer=="function"?s=>Buffer.from(s,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}h(cr,"getBtoa");const ur=cr();let lr=class{static{h(this,"SourceMap")}constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=ar(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+ur(this.toString())}};function fr(s){const e=s.split(`
|
|
2
|
+
`),r=e.filter(c=>/^\t+/.test(c)),i=e.filter(c=>/^ {2,}/.test(c));if(r.length===0&&i.length===0)return null;if(r.length>=i.length)return" ";const o=i.reduce((c,u)=>{const p=/^ +/.exec(u)[0].length;return Math.min(p,c)},1/0);return new Array(o+1).join(" ")}h(fr,"guessIndent");function hr(s,e){const r=s.split(/[/\\]/),i=e.split(/[/\\]/);for(r.pop();r[0]===i[0];)r.shift(),i.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(i).join("/")}h(hr,"getRelativePath");const dr=Object.prototype.toString;function gr(s){return dr.call(s)==="[object Object]"}h(gr,"isObject");function Pe(s){const e=s.split(`
|
|
3
|
+
`),r=[];for(let i=0,o=0;i<e.length;i++)r.push(o),o+=e[i].length+1;return h(function(o){let c=0,u=r.length;for(;c<u;){const b=c+u>>1;o<r[b]?u=b:c=b+1}const p=c-1,g=o-r[p];return{line:p,column:g}},"locate")}h(Pe,"getLocator");const br=/\w/;class pr{static{h(this,"Mappings")}constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,r,i,o){if(r.length){const c=r.length-1;let u=r.indexOf(`
|
|
4
|
+
`,0),p=-1;for(;u>=0&&c>u;){const b=[this.generatedCodeColumn,e,i.line,i.column];o>=0&&b.push(o),this.rawSegments.push(b),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,p=u,u=r.indexOf(`
|
|
5
|
+
`,u+1)}const g=[this.generatedCodeColumn,e,i.line,i.column];o>=0&&g.push(o),this.rawSegments.push(g),this.advance(r.slice(p+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null}addUneditedChunk(e,r,i,o,c){let u=r.start,p=!0,g=!1;for(;u<r.end;){if(i[u]===`
|
|
6
|
+
`)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,p=!0,g=!1;else{if(this.hires||p||c.has(u)){const b=[this.generatedCodeColumn,e,o.line,o.column];this.hires==="boundary"?br.test(i[u])?g||(this.rawSegments.push(b),g=!0):(this.rawSegments.push(b),g=!1):this.rawSegments.push(b)}o.column+=1,this.generatedCodeColumn+=1,p=!1}u+=1}this.pending=null}advance(e){if(!e)return;const r=e.split(`
|
|
7
|
+
`);if(r.length>1){for(let i=0;i<r.length-1;i++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=r[r.length-1].length}}const Q=`
|
|
8
|
+
`,G={insertLeft:!1,insertRight:!1,storeName:!1};class Ne{static{h(this,"MagicString")}constructor(e,r={}){const i=new re(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:i},lastChunk:{writable:!0,value:i},lastSearchedChunk:{writable:!0,value:i},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new ue},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList},offset:{writable:!0,value:r.offset||0}}),this.byStart[0]=i,this.byEnd[e.length]=i}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,r){if(e=e+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.appendLeft(r):this.intro+=r,this}appendRight(e,r){if(e=e+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.appendRight(r):this.outro+=r,this}clone(){const e=new Ne(this.original,{filename:this.filename,offset:this.offset});let r=this.firstChunk,i=e.firstChunk=e.lastSearchedChunk=r.clone();for(;r;){e.byStart[i.start]=i,e.byEnd[i.end]=i;const o=r.next,c=o&&o.clone();c&&(i.next=c,c.previous=i,i=c),r=o}return e.lastChunk=i,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new ue(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const r=0,i=Object.keys(this.storedNames),o=new pr(e.hires),c=Pe(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(u=>{const p=c(u.start);u.intro.length&&o.advance(u.intro),u.edited?o.addEdit(r,u.content,p,u.storeName?i.indexOf(u.original):-1):o.addUneditedChunk(r,u,this.original,p,this.sourcemapLocations),u.outro.length&&o.advance(u.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?hr(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:i,mappings:o.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(e){return new lr(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=fr(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,r){const i=/^[^\r\n]/gm;if(gr(e)&&(r=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;r=r||{};const o={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(d=>{for(let n=d[0];n<d[1];n+=1)o[n]=!0});let c=r.indentStart!==!1;const u=h(b=>c?`${e}${b}`:(c=!0,b),"replacer");this.intro=this.intro.replace(i,u);let p=0,g=this.firstChunk;for(;g;){const b=g.end;if(g.edited)o[p]||(g.content=g.content.replace(i,u),g.content.length&&(c=g.content[g.content.length-1]===`
|
|
9
|
+
`));else for(p=g.start;p<b;){if(!o[p]){const d=this.original[p];d===`
|
|
10
|
+
`?c=!0:d!=="\r"&&c&&(c=!1,p===g.start||(this._splitChunk(g,p),g=g.next),g.prependRight(e))}p+=1}p=g.end,g=g.next}return this.outro=this.outro.replace(i,u),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,r){return G.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),G.insertLeft=!0),this.appendLeft(e,r)}insertRight(e,r){return G.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),G.insertRight=!0),this.prependRight(e,r)}move(e,r,i){if(e=e+this.offset,r=r+this.offset,i=i+this.offset,i>=e&&i<=r)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(r),this._split(i);const o=this.byStart[e],c=this.byEnd[r],u=o.previous,p=c.next,g=this.byStart[i];if(!g&&c===this.lastChunk)return this;const b=g?g.previous:this.lastChunk;return u&&(u.next=p),p&&(p.previous=u),b&&(b.next=o),g&&(g.previous=c),o.previous||(this.firstChunk=c.next),c.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=b,c.next=g||null,b||(this.firstChunk=o),g||(this.lastChunk=c),this}overwrite(e,r,i,o){return o=o||{},this.update(e,r,i,{...o,overwrite:!o.contentOnly})}update(e,r,i,o){if(e=e+this.offset,r=r+this.offset,typeof i!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(r>this.original.length)throw new Error("end is out of bounds");if(e===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(r),o===!0&&(G.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),G.storeName=!0),o={storeName:!0});const c=o!==void 0?o.storeName:!1,u=o!==void 0?o.overwrite:!1;if(c){const b=this.original.slice(e,r);Object.defineProperty(this.storedNames,b,{writable:!0,value:!0,enumerable:!0})}const p=this.byStart[e],g=this.byEnd[r];if(p){let b=p;for(;b!==g;){if(b.next!==this.byStart[b.end])throw new Error("Cannot overwrite across a split point");b=b.next,b.edit("",!1)}p.edit(i,c,!u)}else{const b=new re(e,r,"").edit(i,c);g.next=b,b.previous=g}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,r){if(e=e+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.prependLeft(r):this.intro=r+this.intro,this}prependRight(e,r){if(e=e+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.prependRight(r):this.outro=r+this.outro,this}remove(e,r){if(e=e+this.offset,r=r+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");this._split(e),this._split(r);let i=this.byStart[e];for(;i;)i.intro="",i.outro="",i.edit(""),i=r>i.end?this.byStart[i.end]:null;return this}reset(e,r){if(e=e+this.offset,r=r+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");this._split(e),this._split(r);let i=this.byStart[e];for(;i;)i.reset(),i=r>i.end?this.byStart[i.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(Q);if(e!==-1)return this.outro.substr(e+1);let r=this.outro,i=this.lastChunk;do{if(i.outro.length>0){if(e=i.outro.lastIndexOf(Q),e!==-1)return i.outro.substr(e+1)+r;r=i.outro+r}if(i.content.length>0){if(e=i.content.lastIndexOf(Q),e!==-1)return i.content.substr(e+1)+r;r=i.content+r}if(i.intro.length>0){if(e=i.intro.lastIndexOf(Q),e!==-1)return i.intro.substr(e+1)+r;r=i.intro+r}}while(i=i.previous);return e=this.intro.lastIndexOf(Q),e!==-1?this.intro.substr(e+1)+r:this.intro+r}slice(e=0,r=this.original.length-this.offset){if(e=e+this.offset,r=r+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}let i="",o=this.firstChunk;for(;o&&(o.start>e||o.end<=e);){if(o.start<r&&o.end>=r)return i;o=o.next}if(o&&o.edited&&o.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const c=o;for(;o;){o.intro&&(c!==o||o.start===e)&&(i+=o.intro);const u=o.start<r&&o.end>=r;if(u&&o.edited&&o.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);const p=c===o?e-o.start:0,g=u?o.content.length+r-o.end:o.content.length;if(i+=o.content.slice(p,g),o.outro&&(!u||o.end===r)&&(i+=o.outro),u)break;o=o.next}return i}snip(e,r){const i=this.clone();return i.remove(0,e),i.remove(r,i.original.length),i}_split(e){if(this.byStart[e]||this.byEnd[e])return;let r=this.lastSearchedChunk,i=r;const o=e>r.end;for(;r;){if(r.contains(e))return this._splitChunk(r,e);if(r=o?this.byStart[r.end]:this.byEnd[r.start],r===i)return;i=r}}_splitChunk(e,r){if(e.edited&&e.content.length){const o=Pe(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${e.original}")`)}const i=e.split(r);return this.byEnd[r]=e,this.byStart[r]=i,this.byEnd[i.end]=i,e===this.lastChunk&&(this.lastChunk=i),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,r=this.firstChunk;for(;r;)e+=r.toString(),r=r.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,r=0;do r+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const r=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let i=this.lastChunk;do{const o=i.end,c=i.trimEnd(r);if(i.end!==o&&(this.lastChunk===i&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),c)return!0;i=i.previous}while(i);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const r=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let i=this.firstChunk;do{const o=i.end,c=i.trimStart(r);if(i.end!==o&&(i===this.lastChunk&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),c)return!0;i=i.next}while(i);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,r){function i(c,u){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(p,g)=>g==="$"?"$":g==="&"?c[0]:+g<c.length?c[+g]:`$${g}`):r(...c,c.index,u,c.groups)}h(i,"getReplacement");function o(c,u){let p;const g=[];for(;p=c.exec(u);)g.push(p);return g}if(h(o,"matchAll"),e.global)o(e,this.original).forEach(u=>{if(u.index!=null){const p=i(u,this.original);p!==u[0]&&this.overwrite(u.index,u.index+u[0].length,p)}});else{const c=this.original.match(e);if(c&&c.index!=null){const u=i(c,this.original);u!==c[0]&&this.overwrite(c.index,c.index+c[0].length,u)}}return this}_replaceString(e,r){const{original:i}=this,o=i.indexOf(e);return o!==-1&&this.overwrite(o,o+e.length,r),this}replace(e,r){return typeof e=="string"?this._replaceString(e,r):this._replaceRegexp(e,r)}_replaceAllString(e,r){const{original:i}=this,o=e.length;for(let c=i.indexOf(e);c!==-1;c=i.indexOf(e,c+o))i.slice(c,c+o)!==r&&this.overwrite(c,c+o,r);return this}replaceAll(e,r){if(typeof e=="string")return this._replaceAllString(e,r);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,r)}}let x,se,Se,Z=2<<19;const Je=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(s,e){const r=s.length;let i=0;for(;i<r;)e[i]=s.charCodeAt(i++)}:function(s,e){const r=s.length;let i=0;for(;i<r;){const o=s.charCodeAt(i);e[i++]=(255&o)<<8|o>>>8}},mr="xportmportlassforetaourceromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileifcatcfinallels";let _,Ge,y;function wr(s,e="@"){_=s,Ge=e;const r=2*_.length+(2<<18);if(r>Z||!x){for(;r>Z;)Z*=2;se=new ArrayBuffer(Z),Je(mr,new Uint16Array(se,16,110)),x=function(u,p,g){var b=new u.Int8Array(g),d=new u.Int16Array(g),n=new u.Int32Array(g),O=new u.Uint8Array(g),L=new u.Uint16Array(g),A=1040;function I(){var t=0,a=0,f=0,l=0,m=0,w=0,C=0;C=A,A=A+10240|0,b[804]=1,b[803]=0,d[399]=0,d[400]=0,n[69]=n[2],b[805]=0,n[68]=0,b[802]=0,n[70]=C+2048,n[71]=C,b[806]=0,t=(n[3]|0)+-2|0,n[72]=t,a=t+(n[66]<<1)|0,n[73]=a;e:for(;;){if(f=t+2|0,n[72]=f,t>>>0>=a>>>0){l=18;break}t:do switch(d[f>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(d[400]|0)&&X(f)|0&&!(R(t+4|0,16,10)|0)&&($(),(b[804]|0)==0)){l=9;break e}else l=17;break}case 105:{X(f)|0&&!(R(t+4|0,26,10)|0)&&B(),l=17;break}case 59:{l=17;break}case 47:switch(d[t+4>>1]|0){case 47:{ge();break t}case 42:{he(1);break t}default:{l=16;break e}}default:{l=16;break e}}while(!1);(l|0)==17&&(l=0,n[69]=n[72]),t=n[72]|0,a=n[73]|0}(l|0)==9?(t=n[72]|0,n[69]=t,l=19):(l|0)==16?(b[804]=0,n[72]=t,l=19):(l|0)==18&&(b[802]|0?t=0:(t=f,l=19));do if((l|0)==19){e:for(;;){if(a=t+2|0,n[72]=a,t>>>0>=(n[73]|0)>>>0){l=92;break}t:do switch(d[a>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(d[400]|0)&&X(a)|0&&!(R(t+4|0,16,10)|0)&&$(),l=91;break}case 105:{X(a)|0&&!(R(t+4|0,26,10)|0)&&B(),l=91;break}case 99:{X(a)|0&&!(R(t+4|0,36,8)|0)&&P(d[t+12>>1]|0)|0&&(b[806]=1),l=91;break}case 40:{f=n[70]|0,t=d[400]|0,l=t&65535,n[f+(l<<3)>>2]=1,a=n[69]|0,d[400]=t+1<<16>>16,n[f+(l<<3)+4>>2]=a,l=91;break}case 41:{if(a=d[400]|0,!(a<<16>>16)){l=36;break e}f=a+-1<<16>>16,d[400]=f,l=d[399]|0,a=l&65535,l<<16>>16&&(n[(n[70]|0)+((f&65535)<<3)>>2]|0)==5&&(a=n[(n[71]|0)+(a+-1<<2)>>2]|0,f=a+4|0,n[f>>2]|0||(n[f>>2]=(n[69]|0)+2),n[a+12>>2]=t+4,d[399]=l+-1<<16>>16),l=91;break}case 123:{l=n[69]|0,f=n[63]|0,t=l;do if((d[l>>1]|0)==41&(f|0)!=0&&(n[f+4>>2]|0)==(l|0))if(a=n[64]|0,n[63]=a,a){n[a+32>>2]=0;break}else{n[59]=0;break}while(!1);f=n[70]|0,a=d[400]|0,l=a&65535,n[f+(l<<3)>>2]=b[806]|0?6:2,d[400]=a+1<<16>>16,n[f+(l<<3)+4>>2]=t,b[806]=0,l=91;break}case 125:{if(t=d[400]|0,!(t<<16>>16)){l=49;break e}f=n[70]|0,l=t+-1<<16>>16,d[400]=l,(n[f+((l&65535)<<3)>>2]|0)==4&&Me(),l=91;break}case 39:{N(39),l=91;break}case 34:{N(34),l=91;break}case 47:switch(d[t+4>>1]|0){case 47:{ge();break t}case 42:{he(1);break t}default:{t=n[69]|0,a=d[t>>1]|0;r:do if(!(_t(a)|0))a<<16>>16==41?(f=d[400]|0,Ot(n[(n[70]|0)+((f&65535)<<3)+4>>2]|0)|0||(l=65)):l=64;else switch(a<<16>>16){case 46:if(((d[t+-2>>1]|0)+-48&65535)<10){l=64;break r}else break r;case 43:if((d[t+-2>>1]|0)==43){l=64;break r}else break r;case 45:if((d[t+-2>>1]|0)==45){l=64;break r}else break r;default:break r}while(!1);(l|0)==64&&(f=d[400]|0,l=65);r:do if((l|0)==65){if(l=0,f<<16>>16&&(m=n[70]|0,w=(f&65535)+-1|0,a<<16>>16==102?(n[m+(w<<3)>>2]|0)==1:0)){if((d[t+-2>>1]|0)==111&&E(n[m+(w<<3)+4>>2]|0,44,3)|0)break}else l=69;if((l|0)==69&&a<<16>>16==125&&(l=n[70]|0,f=f&65535,xt(n[l+(f<<3)+4>>2]|0)|0||(n[l+(f<<3)>>2]|0)==6))break;if(!(St(t)|0)){switch(a<<16>>16){case 0:break r;case 47:{if(b[805]|0)break r;break}default:}if(l=n[65]|0,l|0&&t>>>0>=(n[l>>2]|0)>>>0&&t>>>0<=(n[l+4>>2]|0)>>>0){fe(),b[805]=0,l=91;break t}f=n[3]|0;do{if(t>>>0<=f>>>0)break;t=t+-2|0,n[69]=t,a=d[t>>1]|0}while(!(de(a)|0));if(ie(a)|0){do{if(t>>>0<=f>>>0)break;t=t+-2|0,n[69]=t}while(ie(d[t>>1]|0)|0);if(Lt(t)|0){fe(),b[805]=0,l=91;break t}}b[805]=1,l=91;break t}}while(!1);fe(),b[805]=0,l=91;break t}}case 96:{f=n[70]|0,a=d[400]|0,l=a&65535,n[f+(l<<3)+4>>2]=n[69],d[400]=a+1<<16>>16,n[f+(l<<3)>>2]=3,Me(),l=91;break}default:l=91}while(!1);(l|0)==91&&(l=0,n[69]=n[72]),t=n[72]|0}if((l|0)==36){M(),t=0;break}else if((l|0)==49){M(),t=0;break}else if((l|0)==92){t=b[802]|0?0:(d[399]|d[400])<<16>>16==0;break}}while(!1);return A=C,t|0}h(I,"b");function $(){var t=0,a=0,f=0,l=0,m=0,w=0,C=0,D=0,pe=0,me=0,we=0,ke=0,S=0,v=0;D=n[72]|0,pe=n[65]|0,v=D+12|0,n[72]=v,f=k(1)|0,t=n[72]|0,(t|0)==(v|0)&&!(ne(f)|0)||(S=3);e:do if((S|0)==3){t:do switch(f<<16>>16){case 123:{for(n[72]=t+2,t=k(1)|0,a=n[72]|0;;){if(K(t)|0?(N(t),t=(n[72]|0)+2|0,n[72]=t):(j(t)|0,t=n[72]|0),k(1)|0,t=$e(a,t)|0,t<<16>>16==44&&(n[72]=(n[72]|0)+2,t=k(1)|0),t<<16>>16==125){S=15;break}if(v=a,a=n[72]|0,(a|0)==(v|0)){S=12;break}if(a>>>0>(n[73]|0)>>>0){S=14;break}}if((S|0)==12){M();break e}else if((S|0)==14){M();break e}else if((S|0)==15){b[803]=1,n[72]=(n[72]|0)+2;break t}break}case 42:{n[72]=t+2,k(1)|0,v=n[72]|0,$e(v,v)|0;break}default:{switch(b[804]=0,f<<16>>16){case 100:{switch(D=t+14|0,n[72]=D,(k(1)|0)<<16>>16){case 97:{a=n[72]|0,!(R(a+2|0,72,8)|0)&&(m=a+10|0,ie(d[m>>1]|0)|0)&&(n[72]=m,k(0)|0,S=22);break}case 102:{S=22;break}case 99:{a=n[72]|0,!(R(a+2|0,36,8)|0)&&(l=a+10|0,v=d[l>>1]|0,P(v)|0|v<<16>>16==123)&&(n[72]=l,w=k(1)|0,w<<16>>16!=123)&&(ke=w,S=31);break}default:}r:do if((S|0)==22&&(C=n[72]|0,(R(C+2|0,80,14)|0)==0)){if(f=C+16|0,a=d[f>>1]|0,!(P(a)|0))switch(a<<16>>16){case 40:case 42:break;default:break r}n[72]=f,a=k(1)|0,a<<16>>16==42&&(n[72]=(n[72]|0)+2,a=k(1)|0),a<<16>>16!=40&&(ke=a,S=31)}while(!1);if((S|0)==31&&(me=n[72]|0,j(ke)|0,we=n[72]|0,we>>>0>me>>>0)){W(t,D,me,we),n[72]=(n[72]|0)+-2;break e}W(t,D,0,0),n[72]=t+12;break e}case 97:{n[72]=t+10,k(0)|0,t=n[72]|0,S=35;break}case 102:{S=35;break}case 99:{if(!(R(t+2|0,36,8)|0)&&(a=t+10|0,de(d[a>>1]|0)|0)){n[72]=a,v=k(1)|0,S=n[72]|0,j(v)|0,v=n[72]|0,W(S,v,S,v),n[72]=(n[72]|0)+-2;break e}t=t+4|0,n[72]=t;break}case 108:case 118:break;default:break e}if((S|0)==35){n[72]=t+16,t=k(1)|0,t<<16>>16==42&&(n[72]=(n[72]|0)+2,t=k(1)|0),S=n[72]|0,j(t)|0,v=n[72]|0,W(S,v,S,v),n[72]=(n[72]|0)+-2;break e}n[72]=t+6,b[804]=0,f=k(1)|0,t=n[72]|0,f=(j(f)|0|32)<<16>>16==123,l=n[72]|0,f&&(n[72]=l+2,v=k(1)|0,t=n[72]|0,j(v)|0);r:for(;a=n[72]|0,(a|0)!=(t|0);){if(W(t,a,t,a),a=k(1)|0,f)switch(a<<16>>16){case 93:case 125:break e;default:}if(t=n[72]|0,a<<16>>16!=44){S=51;break}switch(n[72]=t+2,a=k(1)|0,t=n[72]|0,a<<16>>16){case 91:case 123:{S=51;break r}default:}j(a)|0}if((S|0)==51&&(n[72]=t+-2),!f)break e;n[72]=l+-2;break e}}while(!1);if(v=(k(1)|0)<<16>>16==102,t=n[72]|0,v&&!(R(t+2|0,66,6)|0))for(n[72]=t+8,z(D,k(1)|0,0),t=pe|0?pe+16|0:240;;){if(t=n[t>>2]|0,!t)break e;n[t+12>>2]=0,n[t+8>>2]=0,t=t+16|0}n[72]=t+-2}while(!1)}h($,"k");function B(){var t=0,a=0,f=0,l=0,m=0,w=0,C=0;m=n[72]|0,f=m+12|0,n[72]=f,l=k(1)|0,a=n[72]|0;e:do if(l<<16>>16!=46)l<<16>>16==115&a>>>0>f>>>0?!(R(a+2|0,56,10)|0)&&(t=a+12|0,P(d[t>>1]|0)|0)?w=14:(a=6,f=0,w=46):(t=l,f=0,w=15);else switch(n[72]=a+2,(k(1)|0)<<16>>16){case 109:{if(t=n[72]|0,R(t+2|0,50,6)|0||(a=n[69]|0,!(be(a)|0)&&(d[a>>1]|0)==46))break e;le(m,m,t+8|0,2);break e}case 115:{if(t=n[72]|0,R(t+2|0,56,10)|0||(a=n[69]|0,!(be(a)|0)&&(d[a>>1]|0)==46))break e;t=t+12|0,w=14;break e}default:break e}while(!1);(w|0)==14&&(n[72]=t,t=k(1)|0,f=1,w=15);e:do if((w|0)==15)switch(t<<16>>16){case 40:{if(a=n[70]|0,C=d[400]|0,l=C&65535,n[a+(l<<3)>>2]=5,t=n[72]|0,d[400]=C+1<<16>>16,n[a+(l<<3)+4>>2]=t,(d[n[69]>>1]|0)==46)break e;switch(n[72]=t+2,a=k(1)|0,le(m,n[72]|0,0,t),f?(t=n[63]|0,n[t+28>>2]=5):t=n[63]|0,m=n[71]|0,C=d[399]|0,d[399]=C+1<<16>>16,n[m+((C&65535)<<2)>>2]=t,a<<16>>16){case 39:{N(39);break}case 34:{N(34);break}default:{n[72]=(n[72]|0)+-2;break e}}switch(t=(n[72]|0)+2|0,n[72]=t,(k(1)|0)<<16>>16){case 44:{n[72]=(n[72]|0)+2,k(1)|0,m=n[63]|0,n[m+4>>2]=t,C=n[72]|0,n[m+16>>2]=C,b[m+24>>0]=1,n[72]=C+-2;break e}case 41:{d[400]=(d[400]|0)+-1<<16>>16,C=n[63]|0,n[C+4>>2]=t,n[C+12>>2]=(n[72]|0)+2,b[C+24>>0]=1,d[399]=(d[399]|0)+-1<<16>>16;break e}default:{n[72]=(n[72]|0)+-2;break e}}}case 123:{if(f){a=12,f=1,w=46;break e}if(t=n[72]|0,d[400]|0){n[72]=t+-2;break e}for(;!(t>>>0>=(n[73]|0)>>>0);){if(t=k(1)|0,K(t)|0)N(t);else if(t<<16>>16==125){w=36;break}t=(n[72]|0)+2|0,n[72]=t}if((w|0)==36&&(n[72]=(n[72]|0)+2),C=(k(1)|0)<<16>>16==102,t=n[72]|0,C&&R(t+2|0,66,6)|0){M();break e}if(n[72]=t+8,t=k(1)|0,K(t)|0){z(m,t,0);break e}else{M();break e}}default:{if(f){a=12,f=1,w=46;break e}switch(t<<16>>16){case 42:case 39:case 34:{f=0,w=48;break e}default:{a=6,f=0,w=46;break e}}}}while(!1);(w|0)==46&&(t=n[72]|0,(t|0)==(m+(a<<1)|0)?n[72]=t+-2:w=48);do if((w|0)==48){if(d[400]|0){n[72]=(n[72]|0)+-2;break}for(t=n[73]|0,a=n[72]|0;;){if(a>>>0>=t>>>0){w=55;break}if(l=d[a>>1]|0,K(l)|0){w=53;break}C=a+2|0,n[72]=C,a=C}if((w|0)==53){z(m,l,f);break}else if((w|0)==55){M();break}}while(!1)}h(B,"l");function z(t,a,f){t=t|0,a=a|0,f=f|0;var l=0,m=0;switch(l=(n[72]|0)+2|0,a<<16>>16){case 39:{N(39),m=5;break}case 34:{N(34),m=5;break}default:M()}do if((m|0)==5){if(le(t,l,n[72]|0,1),f&&(n[(n[63]|0)+28>>2]=4),n[72]=(n[72]|0)+2,a=k(0)|0,f=a<<16>>16==97,f?(l=n[72]|0,R(l+2|0,94,10)|0&&(m=13)):(l=n[72]|0,a<<16>>16==119&&(d[l+2>>1]|0)==105&&(d[l+4>>1]|0)==116&&(d[l+6>>1]|0)==104||(m=13)),(m|0)==13){n[72]=l+-2;break}if(n[72]=l+((f?6:4)<<1),(k(1)|0)<<16>>16!=123){n[72]=l;break}f=n[72]|0,a=f;e:for(;;){switch(n[72]=a+2,a=k(1)|0,a<<16>>16){case 39:{N(39),n[72]=(n[72]|0)+2,a=k(1)|0;break}case 34:{N(34),n[72]=(n[72]|0)+2,a=k(1)|0;break}default:a=j(a)|0}if(a<<16>>16!=58){m=22;break}switch(n[72]=(n[72]|0)+2,(k(1)|0)<<16>>16){case 39:{N(39);break}case 34:{N(34);break}default:{m=26;break e}}switch(n[72]=(n[72]|0)+2,(k(1)|0)<<16>>16){case 125:{m=31;break e}case 44:break;default:{m=30;break e}}if(n[72]=(n[72]|0)+2,(k(1)|0)<<16>>16==125){m=31;break}a=n[72]|0}if((m|0)==22){n[72]=l;break}else if((m|0)==26){n[72]=l;break}else if((m|0)==30){n[72]=l;break}else if((m|0)==31){m=n[63]|0,n[m+16>>2]=f,n[m+12>>2]=(n[72]|0)+2;break}}while(!1)}h(z,"u");function St(t){t=t|0;e:do switch(d[t>>1]|0){case 100:switch(d[t+-2>>1]|0){case 105:{t=E(t+-4|0,104,2)|0;break e}case 108:{t=E(t+-4|0,108,3)|0;break e}default:{t=0;break e}}case 101:switch(d[t+-2>>1]|0){case 115:switch(d[t+-4>>1]|0){case 108:{t=H(t+-6|0,101)|0;break e}case 97:{t=H(t+-6|0,99)|0;break e}default:{t=0;break e}}case 116:{t=E(t+-4|0,114,4)|0;break e}case 117:{t=E(t+-4|0,122,6)|0;break e}default:{t=0;break e}}case 102:{if((d[t+-2>>1]|0)==111&&(d[t+-4>>1]|0)==101)switch(d[t+-6>>1]|0){case 99:{t=E(t+-8|0,134,6)|0;break e}case 112:{t=E(t+-8|0,146,2)|0;break e}default:{t=0;break e}}else t=0;break}case 107:{t=E(t+-2|0,150,4)|0;break}case 110:{t=t+-2|0,H(t,105)|0?t=1:t=E(t,158,5)|0;break}case 111:{t=H(t+-2|0,100)|0;break}case 114:{t=E(t+-2|0,168,7)|0;break}case 116:{t=E(t+-2|0,182,4)|0;break}case 119:switch(d[t+-2>>1]|0){case 101:{t=H(t+-4|0,110)|0;break e}case 111:{t=E(t+-4|0,190,3)|0;break e}default:{t=0;break e}}default:t=0}while(!1);return t|0}h(St,"o");function Me(){var t=0,a=0,f=0,l=0;a=n[73]|0,f=n[72]|0;e:for(;;){if(t=f+2|0,f>>>0>=a>>>0){a=10;break}switch(d[t>>1]|0){case 96:{a=7;break e}case 36:{if((d[f+4>>1]|0)==123){a=6;break e}break}case 92:{t=f+4|0;break}default:}f=t}(a|0)==6?(t=f+4|0,n[72]=t,a=n[70]|0,l=d[400]|0,f=l&65535,n[a+(f<<3)>>2]=4,d[400]=l+1<<16>>16,n[a+(f<<3)+4>>2]=t):(a|0)==7?(n[72]=t,f=n[70]|0,l=(d[400]|0)+-1<<16>>16,d[400]=l,(n[f+((l&65535)<<3)>>2]|0)!=3&&M()):(a|0)==10&&(n[72]=t,M())}h(Me,"h");function k(t){t=t|0;var a=0,f=0,l=0;f=n[72]|0;e:do{a=d[f>>1]|0;t:do if(a<<16>>16!=47)if(t){if(P(a)|0)break;break e}else{if(ie(a)|0)break;break e}else switch(d[f+2>>1]|0){case 47:{ge();break t}case 42:{he(t);break t}default:{a=47;break e}}while(!1);l=n[72]|0,f=l+2|0,n[72]=f}while(l>>>0<(n[73]|0)>>>0);return a|0}h(k,"w");function le(t,a,f,l){t=t|0,a=a|0,f=f|0,l=l|0;var m=0,w=0;w=n[67]|0,n[67]=w+36,m=n[63]|0,n[(m|0?m+32|0:236)>>2]=w,n[64]=m,n[63]=w,n[w+8>>2]=t,(l|0)==2?(t=3,m=f):(m=(l|0)==1,t=m?1:2,m=m?f+2|0:0),n[w+12>>2]=m,n[w+28>>2]=t,n[w>>2]=a,n[w+4>>2]=f,n[w+16>>2]=0,n[w+20>>2]=l,a=(l|0)==1,b[w+24>>0]=a&1,n[w+32>>2]=0,a|(l|0)==2&&(b[803]=1)}h(le,"d");function N(t){t=t|0;var a=0,f=0,l=0,m=0;for(m=n[73]|0,a=n[72]|0;;){if(l=a+2|0,a>>>0>=m>>>0){a=9;break}if(f=d[l>>1]|0,f<<16>>16==t<<16>>16){a=10;break}if(f<<16>>16==92)f=a+4|0,(d[f>>1]|0)==13?(a=a+6|0,a=(d[a>>1]|0)==10?a:f):a=f;else if(je(f)|0){a=9;break}else a=l}(a|0)==9?(n[72]=l,M()):(a|0)==10&&(n[72]=l)}h(N,"v");function $e(t,a){t=t|0,a=a|0;var f=0,l=0,m=0,w=0;return f=n[72]|0,l=d[f>>1]|0,w=(t|0)==(a|0),m=w?0:t,w=w?0:a,l<<16>>16==97&&(n[72]=f+4,f=k(1)|0,t=n[72]|0,K(f)|0?(N(f),a=(n[72]|0)+2|0,n[72]=a):(j(f)|0,a=n[72]|0),l=k(1)|0,f=n[72]|0),(f|0)!=(t|0)&&W(t,a,m,w),l|0}h($e,"A");function vt(){var t=0,a=0,f=0;f=n[73]|0,a=n[72]|0;e:for(;;){if(t=a+2|0,a>>>0>=f>>>0){a=6;break}switch(d[t>>1]|0){case 13:case 10:{a=6;break e}case 93:{a=7;break e}case 92:{t=a+4|0;break}default:}a=t}return(a|0)==6?(n[72]=t,M(),t=0):(a|0)==7&&(n[72]=t,t=93),t|0}h(vt,"C");function fe(){var t=0,a=0,f=0;e:for(;;){if(t=n[72]|0,a=t+2|0,n[72]=a,t>>>0>=(n[73]|0)>>>0){f=7;break}switch(d[a>>1]|0){case 13:case 10:{f=7;break e}case 47:break e;case 91:{vt()|0;break}case 92:{n[72]=t+4;break}default:}}(f|0)==7&&M()}h(fe,"g");function xt(t){switch(t=t|0,d[t>>1]|0){case 62:{t=(d[t+-2>>1]|0)==61;break}case 41:case 59:{t=1;break}case 104:{t=E(t+-2|0,210,4)|0;break}case 121:{t=E(t+-2|0,218,6)|0;break}case 101:{t=E(t+-2|0,230,3)|0;break}default:t=0}return t|0}h(xt,"p");function he(t){t=t|0;var a=0,f=0,l=0,m=0,w=0;for(m=(n[72]|0)+2|0,n[72]=m,f=n[73]|0;a=m+2|0,!(m>>>0>=f>>>0||(l=d[a>>1]|0,!t&&je(l)|0));){if(l<<16>>16==42&&(d[m+4>>1]|0)==47){w=8;break}m=a}(w|0)==8&&(n[72]=a,a=m+4|0),n[72]=a}h(he,"y");function R(t,a,f){t=t|0,a=a|0,f=f|0;var l=0,m=0;e:do if(!f)t=0;else{for(;l=b[t>>0]|0,m=b[a>>0]|0,l<<24>>24==m<<24>>24;)if(f=f+-1|0,f)t=t+1|0,a=a+1|0;else{t=0;break e}t=(l&255)-(m&255)|0}while(!1);return t|0}h(R,"m");function ne(t){t=t|0;e:do switch(t<<16>>16){case 38:case 37:case 33:{t=1;break}default:if((t&-8)<<16>>16==40|(t+-58&65535)<6)t=1;else{switch(t<<16>>16){case 91:case 93:case 94:{t=1;break e}default:}t=(t+-123&65535)<4}}while(!1);return t|0}h(ne,"I");function _t(t){t=t|0;e:do switch(t<<16>>16){case 38:case 37:case 33:break;default:if(!((t+-58&65535)<6|(t+-40&65535)<7&t<<16>>16!=41)){switch(t<<16>>16){case 91:case 94:break e;default:}return t<<16>>16!=125&(t+-123&65535)<4|0}}while(!1);return 1}h(_t,"U");function Ue(t){t=t|0;var a=0;a=d[t>>1]|0;e:do if((a+-9&65535)>=5){switch(a<<16>>16){case 160:case 32:{a=1;break e}default:}if(ne(a)|0)return a<<16>>16!=46|(be(t)|0)|0;a=0}else a=1;while(!1);return a|0}h(Ue,"x");function Et(t){t=t|0;var a=0,f=0,l=0,m=0;return f=A,A=A+16|0,l=f,n[l>>2]=0,n[66]=t,a=n[3]|0,m=a+(t<<1)|0,t=m+2|0,d[m>>1]=0,n[l>>2]=t,n[67]=t,n[59]=0,n[63]=0,n[61]=0,n[60]=0,n[65]=0,n[62]=0,A=f,a|0}h(Et,"S");function W(t,a,f,l){t=t|0,a=a|0,f=f|0,l=l|0;var m=0,w=0;m=n[67]|0,n[67]=m+20,w=n[65]|0,n[(w|0?w+16|0:240)>>2]=m,n[65]=m,n[m>>2]=t,n[m+4>>2]=a,n[m+8>>2]=f,n[m+12>>2]=l,n[m+16>>2]=0,b[803]=1}h(W,"O");function E(t,a,f){t=t|0,a=a|0,f=f|0;var l=0,m=0;return l=t+(0-f<<1)|0,m=l+2|0,t=n[3]|0,m>>>0>=t>>>0&&!(R(m,a,f<<1)|0)?(m|0)==(t|0)?t=1:t=Ue(l)|0:t=0,t|0}h(E,"$");function Lt(t){switch(t=t|0,d[t>>1]|0){case 107:{t=E(t+-2|0,150,4)|0;break}case 101:{(d[t+-2>>1]|0)==117?t=E(t+-4|0,122,6)|0:t=0;break}default:t=0}return t|0}h(Lt,"j");function H(t,a){t=t|0,a=a|0;var f=0;return f=n[3]|0,f>>>0<=t>>>0&&(d[t>>1]|0)==a<<16>>16?(f|0)==(t|0)?f=1:f=de(d[t+-2>>1]|0)|0:f=0,f|0}h(H,"B");function de(t){t=t|0;e:do if((t+-9&65535)<5)t=1;else{switch(t<<16>>16){case 32:case 160:{t=1;break e}default:}t=t<<16>>16!=46&(ne(t)|0)}while(!1);return t|0}h(de,"E");function ge(){var t=0,a=0,f=0;t=n[73]|0,f=n[72]|0;e:for(;a=f+2|0,!(f>>>0>=t>>>0);)switch(d[a>>1]|0){case 13:case 10:break e;default:f=a}n[72]=a}h(ge,"P");function j(t){for(t=t|0;!(P(t)|0||ne(t)|0);)if(t=(n[72]|0)+2|0,n[72]=t,t=d[t>>1]|0,!(t<<16>>16)){t=0;break}return t|0}h(j,"q");function At(){var t=0;switch(t=n[(n[61]|0)+20>>2]|0,t|0){case 1:{t=-1;break}case 2:{t=-2;break}default:t=t-(n[3]|0)>>1}return t|0}h(At,"z");function Ot(t){return t=t|0,!(E(t,196,5)|0)&&!(E(t,44,3)|0)?t=E(t,206,2)|0:t=1,t|0}h(Ot,"D");function ie(t){switch(t=t|0,t<<16>>16){case 160:case 32:case 12:case 11:case 9:{t=1;break}default:t=0}return t|0}h(ie,"F");function be(t){return t=t|0,(d[t>>1]|0)==46&&(d[t+-2>>1]|0)==46?t=(d[t+-4>>1]|0)==46:t=0,t|0}h(be,"G");function X(t){return t=t|0,(n[3]|0)==(t|0)?t=1:t=Ue(t+-2|0)|0,t|0}h(X,"H");function Rt(){var t=0;return t=n[(n[62]|0)+12>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}h(Rt,"J");function It(){var t=0;return t=n[(n[61]|0)+12>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}h(It,"K");function Nt(){var t=0;return t=n[(n[62]|0)+8>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}h(Nt,"L");function Mt(){var t=0;return t=n[(n[61]|0)+16>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}h(Mt,"M");function $t(){var t=0;return t=n[(n[61]|0)+4>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}h($t,"N");function Ut(){var t=0;return t=n[61]|0,t=n[(t|0?t+32|0:236)>>2]|0,n[61]=t,(t|0)!=0|0}h(Ut,"Q");function jt(){var t=0;return t=n[62]|0,t=n[(t|0?t+16|0:240)>>2]|0,n[62]=t,(t|0)!=0|0}h(jt,"R");function M(){b[802]=1,n[68]=(n[72]|0)-(n[3]|0)>>1,n[72]=(n[73]|0)+2}h(M,"T");function P(t){return t=t|0,(t|128)<<16>>16==160|(t+-9&65535)<5|0}h(P,"V");function K(t){return t=t|0,t<<16>>16==39|t<<16>>16==34|0}h(K,"W");function Tt(){return(n[(n[61]|0)+8>>2]|0)-(n[3]|0)>>1|0}h(Tt,"X");function Dt(){return(n[(n[62]|0)+4>>2]|0)-(n[3]|0)>>1|0}h(Dt,"Y");function je(t){return t=t|0,t<<16>>16==13|t<<16>>16==10|0}h(je,"Z");function Ft(){return(n[n[61]>>2]|0)-(n[3]|0)>>1|0}h(Ft,"_");function Bt(){return(n[n[62]>>2]|0)-(n[3]|0)>>1|0}h(Bt,"ee");function Wt(){return O[(n[61]|0)+24>>0]|0|0}h(Wt,"ae");function Pt(t){t=t|0,n[3]=t}h(Pt,"re");function Jt(){return n[(n[61]|0)+28>>2]|0}h(Jt,"ie");function Gt(){return(b[803]|0)!=0|0}h(Gt,"se");function qt(){return(b[804]|0)!=0|0}h(qt,"fe");function zt(){return n[68]|0}h(zt,"te");function Ht(t){return t=t|0,A=t+992+15&-16,992}return h(Ht,"ce"),{su:Ht,ai:Mt,e:zt,ee:Dt,ele:Rt,els:Nt,es:Bt,f:qt,id:At,ie:$t,ip:Wt,is:Ft,it:Jt,ms:Gt,p:I,re:jt,ri:Ut,sa:Et,se:It,ses:Pt,ss:Tt}}(typeof self<"u"?self:global,{},se),Se=x.su(Z-(2<<17))}const i=_.length+1;x.ses(Se),x.sa(i-1),Je(_,new Uint16Array(se,Se,i)),x.p()||(y=x.e(),T());const o=[],c=[];for(;x.ri();){const u=x.is(),p=x.ie(),g=x.ai(),b=x.id(),d=x.ss(),n=x.se(),O=x.it();let L;x.ip()&&(L=ve(b===-1?u:u+1,_.charCodeAt(b===-1?u-1:u))),o.push({t:O,n:L,s:u,e:p,ss:d,se:n,d:b,a:g})}for(;x.re();){const u=x.es(),p=x.ee(),g=x.els(),b=x.ele(),d=_.charCodeAt(u),n=g>=0?_.charCodeAt(g):-1;c.push({s:u,e:p,ls:g,le:b,n:d===34||d===39?ve(u+1,d):_.slice(u,p),ln:g<0?void 0:n===34||n===39?ve(g+1,n):_.slice(g,b)})}return[o,c,!!x.f(),!!x.ms()]}h(wr,"parse");function ve(s,e){y=s;let r="",i=y;for(;;){y>=_.length&&T();const o=_.charCodeAt(y);if(o===e)break;o===92?(r+=_.slice(i,y),r+=kr(),i=y):(o===8232||o===8233||qe(o)&&T(),++y)}return r+=_.slice(i,y++),r}h(ve,"b");function kr(){let s=_.charCodeAt(++y);switch(++y,s){case 110:return`
|
|
11
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(xe(2));case 117:return function(){const e=_.charCodeAt(y);let r;return e===123?(++y,r=xe(_.indexOf("}",y)-y),++y,r>1114111&&T()):r=xe(4),r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode(55296+(r>>10),56320+(1023&r)))}();case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:_.charCodeAt(y)===10&&++y;case 10:return"";case 56:case 57:T();default:if(s>=48&&s<=55){let e=_.substr(y-1,3).match(/^[0-7]+/)[0],r=parseInt(e,8);return r>255&&(e=e.slice(0,-1),r=parseInt(e,8)),y+=e.length-1,s=_.charCodeAt(y),e==="0"&&s!==56&&s!==57||T(),String.fromCharCode(r)}return qe(s)?"":String.fromCharCode(s)}}h(kr,"k");function xe(s){const e=y;let r=0,i=0;for(let o=0;o<s;++o,++y){let c,u=_.charCodeAt(y);if(u!==95){if(u>=97)c=u-97+10;else if(u>=65)c=u-65+10;else{if(!(u>=48&&u<=57))break;c=u-48}if(c>=16)break;i=u,r=16*r+c}else i!==95&&o!==0||T(),i=u}return i!==95&&y-e===s||T(),r}h(xe,"l");function qe(s){return s===13||s===10}h(qe,"u");function T(){throw Object.assign(Error(`Parse error ${Ge}:${_.slice(0,y).split(`
|
|
12
|
+
`).length}:${y-_.lastIndexOf(`
|
|
13
|
+
`,y-1)}`),{idx:y})}h(T,"o");let _e;typeof WebAssembly<"u"&&(async()=>{const{parse:s,init:e}=await import("./lexer-DQCqS3nf.mjs");await e,_e=s})();const ze=h((s,e)=>_e?_e(s,e):wr(s,e),"parseEsm"),yr=h(s=>{if(!s.includes("import")&&!s.includes("export"))return!1;try{return ze(s)[3]}catch{return!0}},"isESM"),Ee="2",Cr=(s=>{const e="default";return s[e]&&typeof s[e]=="object"&&"__esModule"in s[e]?s[e]:s}).toString(),Sr=`.then(${Cr})`,oe=h((s,e,r)=>{if(r){if(!e.includes("import("))return}else if(!e.includes("import"))return;const o=ze(e,s)[0].filter(g=>g.d>-1);if(o.length===0)return;const c=new Ne(e);for(const g of o)c.appendRight(g.se,Sr);const u=c.toString(),p=c.generateMap({source:s,includeContent:!1,hires:"boundary"});return{code:u,map:p}},"transformDynamicImport"),He=h(s=>{try{const e=U.readFileSync(s,"utf8");return JSON.parse(e)}catch{}},"readJsonFile"),Xe=h(()=>{},"noop"),Ke=h(()=>Math.floor(Date.now()/1e8),"getTime");class vr extends Map{static{h(this,"FileCache")}cacheDirectory=rr;oldCacheDirectory=J.join(tr.tmpdir(),"tsx");cacheFiles;constructor(){super(),U.mkdirSync(this.cacheDirectory,{recursive:!0}),this.cacheFiles=U.readdirSync(this.cacheDirectory).map(e=>{const[r,i]=e.split("-");return{time:Number(r),key:i,fileName:e}}),setImmediate(()=>{this.expireDiskCache(),this.removeOldCacheDirectory()})}get(e){const r=super.get(e);if(r)return r;const i=this.cacheFiles.find(u=>u.key===e);if(!i)return;const o=J.join(this.cacheDirectory,i.fileName),c=He(o);if(!c){U.promises.unlink(o).then(()=>{const u=this.cacheFiles.indexOf(i);this.cacheFiles.splice(u,1)},()=>{});return}return super.set(e,c),c}set(e,r){if(super.set(e,r),r){const i=Ke();U.promises.writeFile(J.join(this.cacheDirectory,`${i}-${e}`),JSON.stringify(r)).catch(Xe)}return this}expireDiskCache(){const e=Ke();for(const r of this.cacheFiles)e-r.time>7&&U.promises.unlink(J.join(this.cacheDirectory,r.fileName)).catch(Xe)}async removeOldCacheDirectory(){try{await U.promises.access(this.oldCacheDirectory).then(()=>!0)&&("rm"in U.promises?await U.promises.rm(this.oldCacheDirectory,{recursive:!0,force:!0}):await U.promises.rmdir(this.oldCacheDirectory,{recursive:!0}))}catch{}}}var q=process.env.TSX_DISABLE_CACHE?new Map:new vr;const Ye=44,xr=59,Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ze=new Uint8Array(64),Ve=new Uint8Array(128);for(let s=0;s<Qe.length;s++){const e=Qe.charCodeAt(s);Ze[s]=e,Ve[e]=s}const Le=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(s){return Buffer.from(s.buffer,s.byteOffset,s.byteLength).toString()}}:{decode(s){let e="";for(let r=0;r<s.length;r++)e+=String.fromCharCode(s[r]);return e}};function _r(s){const e=new Int32Array(5),r=[];let i=0;do{const o=Er(s,i),c=[];let u=!0,p=0;e[0]=0;for(let g=i;g<o;g++){let b;g=V(s,g,e,0);const d=e[0];d<p&&(u=!1),p=d,et(s,g,o)?(g=V(s,g,e,1),g=V(s,g,e,2),g=V(s,g,e,3),et(s,g,o)?(g=V(s,g,e,4),b=[d,e[1],e[2],e[3],e[4]]):b=[d,e[1],e[2],e[3]]):b=[d],c.push(b)}u||Lr(c),r.push(c),i=o+1}while(i<=s.length);return r}h(_r,"decode");function Er(s,e){const r=s.indexOf(";",e);return r===-1?s.length:r}h(Er,"indexOf");function V(s,e,r,i){let o=0,c=0,u=0;do{const g=s.charCodeAt(e++);u=Ve[g],o|=(u&31)<<c,c+=5}while(u&32);const p=o&1;return o>>>=1,p&&(o=-2147483648|-o),r[i]+=o,e}h(V,"decodeInteger");function et(s,e,r){return e>=r?!1:s.charCodeAt(e)!==Ye}h(et,"hasMoreVlq");function Lr(s){s.sort(Ar)}h(Lr,"sort");function Ar(s,e){return s[0]-e[0]}h(Ar,"sortComparator$1");function Or(s){const e=new Int32Array(5),r=1024*16,i=r-36,o=new Uint8Array(r),c=o.subarray(0,i);let u=0,p="";for(let g=0;g<s.length;g++){const b=s[g];if(g>0&&(u===r&&(p+=Le.decode(o),u=0),o[u++]=xr),b.length!==0){e[0]=0;for(let d=0;d<b.length;d++){const n=b[d];u>i&&(p+=Le.decode(c),o.copyWithin(0,i,u),u-=i),d>0&&(o[u++]=Ye),u=ee(o,u,e,n,0),n.length!==1&&(u=ee(o,u,e,n,1),u=ee(o,u,e,n,2),u=ee(o,u,e,n,3),n.length!==4&&(u=ee(o,u,e,n,4)))}}}return p+Le.decode(o.subarray(0,u))}h(Or,"encode");function ee(s,e,r,i,o){const c=i[o];let u=c-r[o];r[o]=c,u=u<0?-u<<1|1:u<<1;do{let p=u&31;u>>>=5,u>0&&(p|=32),s[e++]=Ze[p]}while(u>0);return e}h(ee,"encodeInteger");const Rr=/^[\w+.-]+:\/\//,Ir=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Nr=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function Mr(s){return Rr.test(s)}h(Mr,"isAbsoluteUrl");function $r(s){return s.startsWith("//")}h($r,"isSchemeRelativeUrl");function tt(s){return s.startsWith("/")}h(tt,"isAbsolutePath");function Ur(s){return s.startsWith("file:")}h(Ur,"isFileUrl");function rt(s){return/^[.?#]/.test(s)}h(rt,"isRelative");function ae(s){const e=Ir.exec(s);return nt(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}h(ae,"parseAbsoluteUrl");function jr(s){const e=Nr.exec(s),r=e[2];return nt("file:","",e[1]||"","",tt(r)?r:"/"+r,e[3]||"",e[4]||"")}h(jr,"parseFileUrl");function nt(s,e,r,i,o,c,u){return{scheme:s,user:e,host:r,port:i,path:o,query:c,hash:u,type:7}}h(nt,"makeUrl");function it(s){if($r(s)){const r=ae("http:"+s);return r.scheme="",r.type=6,r}if(tt(s)){const r=ae("http://foo.com"+s);return r.scheme="",r.host="",r.type=5,r}if(Ur(s))return jr(s);if(Mr(s))return ae(s);const e=ae("http://foo.com/"+s);return e.scheme="",e.host="",e.type=s?s.startsWith("?")?3:s.startsWith("#")?2:4:1,e}h(it,"parseUrl");function Tr(s){if(s.endsWith("/.."))return s;const e=s.lastIndexOf("/");return s.slice(0,e+1)}h(Tr,"stripPathFilename");function Dr(s,e){st(e,e.type),s.path==="/"?s.path=e.path:s.path=Tr(e.path)+s.path}h(Dr,"mergePaths");function st(s,e){const r=e<=4,i=s.path.split("/");let o=1,c=0,u=!1;for(let g=1;g<i.length;g++){const b=i[g];if(!b){u=!0;continue}if(u=!1,b!=="."){if(b===".."){c?(u=!0,c--,o--):r&&(i[o++]=b);continue}i[o++]=b,c++}}let p="";for(let g=1;g<o;g++)p+="/"+i[g];(!p||u&&!p.endsWith("/.."))&&(p+="/"),s.path=p}h(st,"normalizePath");function Fr(s,e){if(!s&&!e)return"";const r=it(s);let i=r.type;if(e&&i!==7){const c=it(e),u=c.type;switch(i){case 1:r.hash=c.hash;case 2:r.query=c.query;case 3:case 4:Dr(r,c);case 5:r.user=c.user,r.host=c.host,r.port=c.port;case 6:r.scheme=c.scheme}u>i&&(i=u)}st(r,i);const o=r.query+r.hash;switch(i){case 2:case 3:return o;case 4:{const c=r.path.slice(1);return c?rt(e||s)&&!rt(c)?"./"+c+o:c+o:o||"."}case 5:return r.path+o;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+o}}h(Fr,"resolve$1");function ot(s,e){return e&&!e.endsWith("/")&&(e+="/"),Fr(s,e)}h(ot,"resolve");function Br(s){if(!s)return"";const e=s.lastIndexOf("/");return s.slice(0,e+1)}h(Br,"stripFilename");const F=0;function Wr(s,e){const r=at(s,0);if(r===s.length)return s;e||(s=s.slice());for(let i=r;i<s.length;i=at(s,i+1))s[i]=Jr(s[i],e);return s}h(Wr,"maybeSort");function at(s,e){for(let r=e;r<s.length;r++)if(!Pr(s[r]))return r;return s.length}h(at,"nextUnsortedSegmentLine");function Pr(s){for(let e=1;e<s.length;e++)if(s[e][F]<s[e-1][F])return!1;return!0}h(Pr,"isSorted");function Jr(s,e){return e||(s=s.slice()),s.sort(Gr)}h(Jr,"sortSegments");function Gr(s,e){return s[F]-e[F]}h(Gr,"sortComparator");let ce=!1;function qr(s,e,r,i){for(;r<=i;){const o=r+(i-r>>1),c=s[o][F]-e;if(c===0)return ce=!0,o;c<0?r=o+1:i=o-1}return ce=!1,r-1}h(qr,"binarySearch");function zr(s,e,r){for(let i=r-1;i>=0&&s[i][F]===e;r=i--);return r}h(zr,"lowerBound");function Hr(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}h(Hr,"memoizedState");function Xr(s,e,r,i){const{lastKey:o,lastNeedle:c,lastIndex:u}=r;let p=0,g=s.length-1;if(i===o){if(e===c)return ce=u!==-1&&s[u][F]===e,u;e>=c?p=u===-1?0:u:g=u}return r.lastKey=i,r.lastNeedle=e,r.lastIndex=qr(s,e,p,g)}h(Xr,"memoizedBinarySearch");class ct{static{h(this,"TraceMap")}constructor(e,r){const i=typeof e=="string";if(!i&&e._decodedMemo)return e;const o=i?JSON.parse(e):e,{version:c,file:u,names:p,sourceRoot:g,sources:b,sourcesContent:d}=o;this.version=c,this.file=u,this.names=p||[],this.sourceRoot=g,this.sources=b,this.sourcesContent=d,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const n=ot(g||"",Br(r));this.resolvedSources=b.map(L=>ot(L||"",n));const{mappings:O}=o;typeof O=="string"?(this._encoded=O,this._decoded=void 0):(this._encoded=void 0,this._decoded=Wr(O,i)),this._decodedMemo=Hr(),this._bySources=void 0,this._bySourceMemos=void 0}}function Fn(s){return s}h(Fn,"cast$2");function ut(s){var e;return(e=s)._decoded||(e._decoded=_r(s._encoded))}h(ut,"decodedMappings");function Kr(s,e,r){const i=ut(s);if(e>=i.length)return null;const o=i[e],c=Yr(o,s._decodedMemo,e,r);return c===-1?null:o[c]}h(Kr,"traceSegment");function Yr(s,e,r,i,o){let c=Xr(s,i,e,r);return ce&&(c=zr(s,i,c)),c===-1||c===s.length?-1:c}h(Yr,"traceSegmentInternal");class Ae{static{h(this,"SetArray")}constructor(){this._indexes={__proto__:null},this.array=[]}}function Bn(s){return s}h(Bn,"cast$1");function lt(s,e){return s._indexes[e]}h(lt,"get");function te(s,e){const r=lt(s,e);if(r!==void 0)return r;const{array:i,_indexes:o}=s,c=i.push(e);return o[e]=c-1}h(te,"put");function Qr(s,e){const r=lt(s,e);if(r===void 0)return;const{array:i,_indexes:o}=s;for(let c=r+1;c<i.length;c++){const u=i[c];i[c-1]=u,o[u]--}o[e]=void 0,i.pop()}h(Qr,"remove");const Zr=0,Vr=1,en=2,tn=3,rn=4,ft=-1;class nn{static{h(this,"GenMapping")}constructor({file:e,sourceRoot:r}={}){this._names=new Ae,this._sources=new Ae,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=r,this._ignoreList=new Ae}}function Wn(s){return s}h(Wn,"cast");const sn=h((s,e,r,i,o,c,u,p)=>un(!0,s,e,r,i,o,c,u),"maybeAddSegment");function on(s,e,r){const{_sources:i,_sourcesContent:o}=s,c=te(i,e);o[c]=r}h(on,"setSourceContent");function an(s,e,r=!0){const{_sources:i,_sourcesContent:o,_ignoreList:c}=s,u=te(i,e);u===o.length&&(o[u]=null),r?te(c,u):Qr(c,u)}h(an,"setIgnore");function ht(s){const{_mappings:e,_sources:r,_sourcesContent:i,_names:o,_ignoreList:c}=s;return hn(e),{version:3,file:s.file||void 0,names:o.array,sourceRoot:s.sourceRoot||void 0,sources:r.array,sourcesContent:i,mappings:e,ignoreList:c.array}}h(ht,"toDecodedMap");function cn(s){const e=ht(s);return Object.assign(Object.assign({},e),{mappings:Or(e.mappings)})}h(cn,"toEncodedMap");function un(s,e,r,i,o,c,u,p,g){const{_mappings:b,_sources:d,_sourcesContent:n,_names:O}=e,L=ln(b,r),A=fn(L,i);if(!o)return dn(L,A)?void 0:dt(L,A,[i]);const I=te(d,o),$=p?te(O,p):ft;if(I===n.length&&(n[I]=null),!gn(L,A,I,c,u,$))return dt(L,A,p?[i,I,c,u,$]:[i,I,c,u])}h(un,"addSegmentInternal");function ln(s,e){for(let r=s.length;r<=e;r++)s[r]=[];return s[e]}h(ln,"getLine");function fn(s,e){let r=s.length;for(let i=r-1;i>=0;r=i--){const o=s[i];if(e>=o[Zr])break}return r}h(fn,"getColumnIndex");function dt(s,e,r){for(let i=s.length;i>e;i--)s[i]=s[i-1];s[e]=r}h(dt,"insert");function hn(s){const{length:e}=s;let r=e;for(let i=r-1;i>=0&&!(s[i].length>0);r=i,i--);r<e&&(s.length=r)}h(hn,"removeEmptyFinalLines");function dn(s,e){return e===0?!0:s[e-1].length===1}h(dn,"skipSourceless");function gn(s,e,r,i,o,c){if(e===0)return!1;const u=s[e-1];return u.length===1?!1:r===u[Vr]&&i===u[en]&&o===u[tn]&&c===(u.length===5?u[rn]:ft)}h(gn,"skipSource");const gt=bt("",-1,-1,"",null,!1),bn=[];function bt(s,e,r,i,o,c){return{source:s,line:e,column:r,name:i,content:o,ignore:c}}h(bt,"SegmentObject");function pt(s,e,r,i,o){return{map:s,sources:e,source:r,content:i,ignore:o}}h(pt,"Source");function mt(s,e){return pt(s,e,"",null,!1)}h(mt,"MapSource");function pn(s,e,r){return pt(null,bn,s,e,r)}h(pn,"OriginalSource");function mn(s){const e=new nn({file:s.map.file}),{sources:r,map:i}=s,o=i.names,c=ut(i);for(let u=0;u<c.length;u++){const p=c[u];for(let g=0;g<p.length;g++){const b=p[g],d=b[0];let n=gt;if(b.length!==1){const z=r[b[1]];if(n=wt(z,b[2],b[3],b.length===5?o[b[4]]:""),n==null)continue}const{column:O,line:L,name:A,content:I,source:$,ignore:B}=n;sn(e,u,d,$,L,O,A),$&&I!=null&&on(e,$,I),B&&an(e,$,!0)}}return e}h(mn,"traceMappings");function wt(s,e,r,i){if(!s.map)return bt(s.source,e,r,i,s.content,s.ignore);const o=Kr(s.map,e,r);return o==null?null:o.length===1?gt:wt(s.sources[o[1]],o[2],o[3],o.length===5?s.map.names[o[4]]:i)}h(wt,"originalPositionFor");function wn(s){return Array.isArray(s)?s:[s]}h(wn,"asArray");function kn(s,e){const r=wn(s).map(c=>new ct(c,"")),i=r.pop();for(let c=0;c<r.length;c++)if(r[c].sources.length>1)throw new Error(`Transformation map ${c} must have exactly one source file.
|
|
14
|
+
Did you specify these with the most recent transformation maps first?`);let o=kt(i,e,"",0);for(let c=r.length-1;c>=0;c--)o=mt(r[c],[o]);return o}h(kn,"buildSourceMapTree");function kt(s,e,r,i){const{resolvedSources:o,sourcesContent:c,ignoreList:u}=s,p=i+1,g=o.map((b,d)=>{const n={importer:r,depth:p,source:b||"",content:void 0,ignore:void 0},O=e(n.source,n),{source:L,content:A,ignore:I}=n;if(O)return kt(new ct(O,L),e,L,p);const $=A!==void 0?A:c?c[d]:null,B=I!==void 0?I:u?u.includes(d):!1;return pn(L,$,B)});return mt(s,g)}h(kt,"build");class yn{static{h(this,"SourceMap")}constructor(e,r){const i=r.decodedMappings?ht(e):cn(e);this.version=i.version,this.file=i.file,this.mappings=i.mappings,this.names=i.names,this.ignoreList=i.ignoreList,this.sourceRoot=i.sourceRoot,this.sources=i.sources,r.excludeContent||(this.sourcesContent=i.sourcesContent)}toString(){return JSON.stringify(this)}}function yt(s,e,r){const i={excludeContent:!!r,decodedMappings:!1},o=kn(s,e);return new yn(mn(o),i)}h(yt,"remapping");const Ct=h((s,e,r)=>{const i=[],o={code:e};for(const c of r){const u=c(s,o.code);u&&(Object.assign(o,u),i.unshift(u.map))}return{...o,map:yt(i,()=>null)}},"applyTransformersSync"),Cn=h(async(s,e,r)=>{const i=[],o={code:e};for(const c of r){const u=await c(s,o.code);u&&(Object.assign(o,u),i.unshift(u.map))}return{...o,map:yt(i,()=>null)}},"applyTransformers"),Sn=Object.freeze({target:`node${process.versions.node}`,loader:"default"}),vn=/^--inspect(?:-brk|-port|-publish-uid|-wait)?(?:=|$)/,xn=process.execArgv.some(s=>vn.test(s)),Oe={...Sn,sourcemap:!0,sourcesContent:!!process.env.NODE_V8_COVERAGE||xn,minifyWhitespace:!0,keepNames:!0},Re=h(s=>{const e=s.sourcefile;if(e){const r=J.extname(e.split("?")[0]);r?r===".cts"||r===".mts"?s.sourcefile=`${e.slice(0,-3)}ts`:r===".mjs"&&(s.sourcefile=`${e.slice(0,-3)}js`):s.sourcefile+=".js"}return r=>(r.map&&(s.sourcefile!==e&&(r.map=r.map.replace(JSON.stringify(s.sourcefile),JSON.stringify(e))),r.map=JSON.parse(r.map)),r)},"patchOptions"),Ie=h(s=>{throw s.name="TransformError",delete s.errors,delete s.warnings,s},"formatEsbuildError"),_n=h((s,e)=>({...Vt(er)?{dirname:J.dirname(s),filename:s}:{},url:e}),"getImportMeta"),En=h((s,e,r)=>{let i,o,c;if(e.startsWith("file://")){i=e;const b=new URL(e);o=Kt(b)}else[o,c]=e.split("?"),i=Yt(o)+(c?`?${c}`:"");const u={...Oe,format:"cjs",sourcefile:o,banner:`__filename=${JSON.stringify(o)};(()=>{`,footer:"})()",platform:"node",...r};s.includes("import.meta")&&u.format==="cjs"&&!o.endsWith(".cjs")&&!o.endsWith(".cts")&&(u.define={...u.define,"import.meta":JSON.stringify(_n(o,i))});const p=Ce([s,i,JSON.stringify(u),ye,Ee].join("-"));let g=q.get(p);return g||(g=Ct(e,s,[(b,d)=>{const n=Re(u);let O;try{O=Te(d,u)}catch(L){throw Ie(L)}return n(O)},(b,d)=>oe(b,d,!0)]),q.set(p,g)),g},"transformSync"),Ln=h(async(s,e,r)=>{const i={...Oe,format:"esm",sourcefile:e,...r},o=Ce([s,JSON.stringify(i),ye,Ee].join("-"));let c=q.get(o);return c||(c=await Cn(e,s,[async(u,p)=>{const g=Re(i);let b;try{b=await Qt(p,i)}catch(d){throw Ie(d)}return g(b)},(u,p)=>oe(u,p,!0)]),q.set(o,c)),c},"transform"),An=h((s,e,r)=>{const i={...Oe,format:"esm",sourcefile:e,...r},o=Ce([s,JSON.stringify(i),ye,Ee].join("-"));let c=q.get(o);return c||(c=Ct(e,s,[(u,p)=>{const g=Re(i);let b;try{b=Te(p,i)}catch(d){throw Ie(d)}return g(b)},(u,p)=>oe(u,p,!0)]),q.set(o,c)),c},"transformEsmSync");export{En as a,oe as b,An as c,yr as i,He as r,Ln as t};
|
package/dist/loader.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var r=require("./get-pipe-path-D4YM6rQt.cjs");require("./esm/index.cjs");var e=require("./register-BwcD2ly9.cjs");require("module"),require("node:path"),require("./temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:worker_threads"),require("./node-features-Bdn6JLJo.cjs"),require("node:module"),require("node:url"),require("./register-DJgoUG_Q.cjs"),require("node:fs"),require("fs"),require("os"),require("path"),require("./index-C8LOAU3M.cjs"),require("esbuild"),require("node:crypto"),require("./client-D3mGB526.cjs"),require("node:net"),require("node:util"),require("./index-BWFBUo6r.cjs"),require("./require-CsVor_0B.cjs"),require("node:fs/promises"),r.require("./cjs/index.cjs"),exports.globalPreload=e.globalPreload,exports.initialize=e.initialize,exports.load=e.load,exports.resolve=e.resolve;
|
package/dist/loader.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./get-pipe-path-
|
|
1
|
+
import{r}from"./get-pipe-path-_tAJyU_v.mjs";import"./esm/index.mjs";import{g as A,i as B,l as C,r as D}from"./register-lJYvHe5s.mjs";import"module";import"node:path";import"./temporary-directory-BDDVQOvU.mjs";import"node:os";import"node:worker_threads";import"./node-features-Eq_kCbjt.mjs";import"node:module";import"node:url";import"./register-BQpI82el.mjs";import"node:fs";import"fs";import"os";import"path";import"./index-CDeh32pY.mjs";import"esbuild";import"node:crypto";import"./client-D_mPDF5S.mjs";import"node:net";import"node:util";import"./index-gbaejti9.mjs";import"./require-CS-YsV04.mjs";import"node:fs/promises";r("./cjs/index.cjs");export{A as globalPreload,B as initialize,C as load,D as resolve};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var n=Object.defineProperty;var s=(e,t)=>n(e,"name",{value:t,configurable:!0});const i=s((e,t)=>{const o=e[0]-t[0];if(o===0){const r=e[1]-t[1];return r===0?e[2]>=t[2]:r>0}return o>0},"isVersionGreaterOrEqual"),u=process.versions.node.split(".").map(Number),a=s((e,t=u)=>{for(let o=0;o<e.length;o+=1){const r=e[o];if(o===e.length-1||t[0]===r[0])return i(t,r)}return!1},"isFeatureSupported"),l=[[18,19,0],[20,6,0]],d=[[24,11,1],[25,1,0],[26,0,0]],m=[[18,19,0],[20,10,0],[21,0,0]],c=[[21,0,0]],p=[[20,11,0],[21,3,0]],f=[[20,11,0],[21,2,0]];exports.esmLoadReadFile=p,exports.importAttributes=m,exports.importMetaPathProperties=f,exports.isFeatureSupported=a,exports.moduleRegister=l,exports.moduleRegisterHooksCjsReload=d,exports.testRunnerGlob=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=Object.defineProperty;var r=(e,t)=>i(e,"name",{value:t,configurable:!0});const n=r((e,t)=>{const s=e[0]-t[0];if(s===0){const o=e[1]-t[1];return o===0?e[2]>=t[2]:o>0}return s>0},"isVersionGreaterOrEqual"),a=process.versions.node.split(".").map(Number),c=r((e,t=a)=>{for(let s=0;s<e.length;s+=1){const o=e[s];if(s===e.length-1||t[0]===o[0])return n(t,o)}return!1},"isFeatureSupported"),u=[[18,19,0],[20,6,0]],l=[[24,11,1],[25,1,0],[26,0,0]],f=[[18,19,0],[20,10,0],[21,0,0]],m=[[21,0,0]],p=[[20,11,0],[21,3,0]],d=[[20,11,0],[21,2,0]];export{u as a,f as b,d as c,p as e,c as i,l as m,m as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r="4.22.0";exports.version=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r="4.22.0";export{r as v};
|
package/dist/preflight.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var a=Object.defineProperty;var i=(r,s)=>a(r,"name",{value:s,configurable:!0});var l=require("./get-pipe-path-
|
|
1
|
+
"use strict";var a=Object.defineProperty;var i=(r,s)=>a(r,"name",{value:s,configurable:!0});var l=require("./get-pipe-path-D4YM6rQt.cjs"),d=require("node:os"),p=require("node:worker_threads"),f=require("./client-D3mGB526.cjs");require("./suppress-warnings.cjs"),require("module"),require("node:path"),require("./temporary-directory-B83uKxJF.cjs"),require("node:net");const q=i((r,s)=>{const o=new Map;for(const e of r){const n=i(t=>{s(t),process.listenerCount(e)===0&&process.exit(128+d.constants.signals[e])},"hiddenHandler");process.on(e,n),o.set(e,n)}const{listenerCount:c,listeners:u}=process;process.listenerCount=function(e){let n=Reflect.apply(c,this,arguments);return r.includes(e)&&(n-=1),n},process.listeners=function(e){const n=Reflect.apply(u,this,arguments);return r.includes(e)?n.filter(t=>t!==o.get(e)):n}},"bindHiddenSignalsHandler");p.isMainThread&&(l.require("./cjs/index.cjs"),(async()=>{const r=await f.connectingToServer;r&&q(["SIGINT","SIGTERM"],s=>{r({type:"signal",signal:s})})})());
|
package/dist/preflight.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var l=Object.defineProperty;var i=(n,r)=>l(n,"name",{value:r,configurable:!0});import{r as a}from"./get-pipe-path-
|
|
1
|
+
var l=Object.defineProperty;var i=(n,r)=>l(n,"name",{value:r,configurable:!0});import{r as a}from"./get-pipe-path-_tAJyU_v.mjs";import{constants as f}from"node:os";import{isMainThread as d}from"node:worker_threads";import{c as u}from"./client-D_mPDF5S.mjs";import"./suppress-warnings.mjs";import"module";import"node:path";import"./temporary-directory-BDDVQOvU.mjs";import"node:net";const m=i((n,r)=>{const o=new Map;for(const e of n){const t=i(s=>{r(s),process.listenerCount(e)===0&&process.exit(128+f.signals[e])},"hiddenHandler");process.on(e,t),o.set(e,t)}const{listenerCount:c,listeners:p}=process;process.listenerCount=function(e){let t=Reflect.apply(c,this,arguments);return n.includes(e)&&(t-=1),t},process.listeners=function(e){const t=Reflect.apply(p,this,arguments);return n.includes(e)?t.filter(s=>s!==o.get(e)):t}},"bindHiddenSignalsHandler");d&&(a("./cjs/index.cjs"),(async()=>{const n=await u;n&&m(["SIGINT","SIGTERM"],r=>{n({type:"signal",signal:r})})})());
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var ht=Object.defineProperty;var f=(e,t)=>ht(e,"name",{value:t,configurable:!0});import{r as gt}from"./get-pipe-path-_tAJyU_v.mjs";import _ from"node:module";import m from"node:path";import{fileURLToPath as Oe}from"node:url";import ce,{writeSync as bt}from"node:fs";import yt from"fs";import kt from"os";import xt from"path";import{b as vt,i as wt,a as Et}from"./index-CDeh32pY.mjs";import{p as Ae}from"./client-D_mPDF5S.mjs";import{inspect as Ct}from"node:util";import{b as Tt,a as jt,c as Ot,d as At,o as Se}from"./index-gbaejti9.mjs";const Pe=f(e=>{if(!e.startsWith("data:text/javascript,"))return;const t=e.indexOf("?");if(t===-1)return;const n=new URLSearchParams(e.slice(t+1)).get("filePath");if(n)return n},"getOriginalFilePath"),$e=f(e=>{const t=Pe(e);return t&&(_._cache[t]=_._cache[e],delete _._cache[e],e=t),e},"interopCjsExports"),De=f(e=>e!==null&&typeof e=="object","A"),B=f((e,t)=>Object.assign(new Error(`[${e}]: ${t}`),{code:e}),"a"),_e="ERR_INVALID_PACKAGE_CONFIG",le="ERR_INVALID_PACKAGE_TARGET",St="ERR_PACKAGE_PATH_NOT_EXPORTED",Pt=/^\d+$/,$t=/^(\.{1,2}|node_modules)$/i,Dt=/\/|\\/;var Le=(e=>(e.Export="exports",e.Import="imports",e))(Le||{});const fe=f((e,t,r,n,o)=>{if(t==null)return[];if(typeof t=="string"){const[s,...a]=t.split(Dt);if(s===".."||a.some(c=>$t.test(c)))throw B(le,`Invalid "${e}" target "${t}" defined in the package config`);return[o?t.replace(/\*/g,o):t]}if(Array.isArray(t))return t.flatMap(s=>fe(e,s,r,n,o));if(De(t)){for(const s of Object.keys(t)){if(Pt.test(s))throw B(_e,"Cannot contain numeric property keys");if(s==="default"||n.includes(s))return fe(e,t[s],r,n,o)}return[]}throw B(le,`Invalid "${e}" target "${t}"`)},"f"),V="*",_t=f((e,t)=>{const r=e.indexOf(V),n=t.indexOf(V);return r===n?t.length>e.length:n>r},"m");function Lt(e,t){if(!t.includes(V)&&e.hasOwnProperty(t))return[t];let r,n;for(const o of Object.keys(e))if(o.includes(V)){const[s,a,c]=o.split(V);if(c===void 0&&t.startsWith(s)&&t.endsWith(a)){const l=t.slice(s.length,-a.length||void 0);l&&(!r||_t(r,o))&&(r=o,n=l)}}return[r,n]}f(Lt,"d");const Ft=f(e=>Object.keys(e).reduce((t,r)=>{const n=r===""||r[0]!==".";if(t===void 0||t===n)return n;throw B(_e,'"exports" cannot contain some keys starting with "." and some not')},void 0),"p"),Ut=/^\w+:/,It=f((e,t,r)=>{if(!e)throw new Error('"exports" is required');t=t===""?".":`./${t}`,(typeof e=="string"||Array.isArray(e)||De(e)&&Ft(e))&&(e={".":e});const[n,o]=Lt(e,t),s=fe(Le.Export,e[n],t,r,o);if(s.length===0)throw B(St,t==="."?'No "exports" main defined':`Package subpath '${t}' is not defined by "exports"`);for(const a of s)if(!a.startsWith("./")&&!Ut.test(a))throw B(le,`Invalid "exports" target "${a}" defined in the package config`);return s},"v");var Rt=Object.defineProperty,i=f((e,t)=>Rt(e,"name",{value:t,configurable:!0}),"i");function S(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}f(S,"x"),i(S,"slash");const Bt=i((e,t)=>{const r=`readFileSync:${t}`;let n=e?.get(r);return n===void 0&&(n=ce.readFileSync(t,"utf8"),e?.set(r,n)),n},"readFile"),$=i((e,t)=>{const r=`tryStat:${t}`;let n=e?.get(r);if(n===void 0){try{n=ce.statSync(t)}catch{n=null}e?.set(r,n)}return n??void 0},"tryStat"),J=i((e,t,r)=>{for(;;){const n=m.posix.join(e,t);if($(r,n))return n;const o=m.dirname(e);if(o===e)return;e=o}},"findUp");function Fe(e,t=!1){const r=e.length;let n=0,o="",s=0,a=16,c=0,l=0,h=0,g=0,p=0;function w(d,E){let O=0,v=0;for(;O<d;){let x=e.charCodeAt(n);if(x>=48&&x<=57)v=v*16+x-48;else if(x>=65&&x<=70)v=v*16+x-65+10;else if(x>=97&&x<=102)v=v*16+x-97+10;else break;n++,O++}return O<d&&(v=-1),v}f(w,"A"),i(w,"scanHexDigits");function k(d){n=d,o="",s=0,a=16,p=0}f(k,"O"),i(k,"setPosition");function y(){let d=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&U(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&U(e.charCodeAt(n)))for(n++;n<e.length&&U(e.charCodeAt(n));)n++;else return p=3,e.substring(d,n);let E=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&U(e.charCodeAt(n))){for(n++;n<e.length&&U(e.charCodeAt(n));)n++;E=n}else p=3;return e.substring(d,E)}f(y,"h"),i(y,"scanNumber");function C(){let d="",E=n;for(;;){if(n>=r){d+=e.substring(E,n),p=2;break}const O=e.charCodeAt(n);if(O===34){d+=e.substring(E,n),n++;break}if(O===92){if(d+=e.substring(E,n),n++,n>=r){p=2;break}switch(e.charCodeAt(n++)){case 34:d+='"';break;case 92:d+="\\";break;case 47:d+="/";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+=`
|
|
2
|
+
`;break;case 114:d+="\r";break;case 116:d+=" ";break;case 117:const v=w(4);v>=0?d+=String.fromCharCode(v):p=4;break;default:p=5}E=n;continue}if(O>=0&&O<=31)if(N(O)){d+=e.substring(E,n),p=2;break}else p=6;n++}return d}f(C,"D"),i(C,"scanString");function u(){if(o="",p=0,s=n,l=c,g=h,n>=r)return s=r,a=17;let d=e.charCodeAt(n);if(Y(d)){do n++,o+=String.fromCharCode(d),d=e.charCodeAt(n);while(Y(d));return a=15}if(N(d))return n++,o+=String.fromCharCode(d),d===13&&e.charCodeAt(n)===10&&(n++,o+=`
|
|
3
|
+
`),c++,h=n,a=14;switch(d){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,o=C(),a=10;case 47:const E=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!N(e.charCodeAt(n));)n++;return o=e.substring(E,n),a=12}if(e.charCodeAt(n+1)===42){n+=2;const O=r-1;let v=!1;for(;n<O;){const x=e.charCodeAt(n);if(x===42&&e.charCodeAt(n+1)===47){n+=2,v=!0;break}n++,N(x)&&(x===13&&e.charCodeAt(n)===10&&n++,c++,h=n)}return v||(n++,p=1),o=e.substring(E,n),a=13}return o+=String.fromCharCode(d),n++,a=16;case 45:if(o+=String.fromCharCode(d),n++,n===r||!U(e.charCodeAt(n)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=y(),a=11;default:for(;n<r&&b(d);)n++,d=e.charCodeAt(n);if(s!==n){switch(o=e.substring(s,n),o){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return o+=String.fromCharCode(d),n++,a=16}}f(u,"c"),i(u,"scanNext");function b(d){if(Y(d)||N(d))return!1;switch(d){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}f(b,"p"),i(b,"isUnknownContentCharacter");function j(){let d;do d=u();while(d>=12&&d<=15);return d}return f(j,"b"),i(j,"scanNextNonTrivia"),{setPosition:k,getPosition:i(()=>n,"getPosition"),scan:t?j:u,getToken:i(()=>a,"getToken"),getTokenValue:i(()=>o,"getTokenValue"),getTokenOffset:i(()=>s,"getTokenOffset"),getTokenLength:i(()=>n-s,"getTokenLength"),getTokenStartLine:i(()=>l,"getTokenStartLine"),getTokenStartCharacter:i(()=>s-g,"getTokenStartCharacter"),getTokenError:i(()=>p,"getTokenError")}}f(Fe,"Ne"),i(Fe,"createScanner");function Y(e){return e===32||e===9}f(Y,"X"),i(Y,"isWhiteSpace");function N(e){return e===10||e===13}f(N,"P"),i(N,"isLineBreak");function U(e){return e>=48&&e<=57}f(U,"S"),i(U,"isDigit");var Ue;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Ue||(Ue={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));const M=200;new Array(M).fill(0).map((e,t)=>`
|
|
4
|
+
`+" ".repeat(t)),new Array(M).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(M).fill(0).map((e,t)=>`\r
|
|
5
|
+
`+" ".repeat(t)),new Array(M).fill(0).map((e,t)=>`
|
|
6
|
+
`+" ".repeat(t)),new Array(M).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(M).fill(0).map((e,t)=>`\r
|
|
7
|
+
`+" ".repeat(t));var Z;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Z||(Z={}));function Ie(e,t=[],r=Z.DEFAULT){let n=null,o=[];const s=[];function a(c){Array.isArray(o)?o.push(c):n!==null&&(o[n]=c)}return f(a,"l"),i(a,"onValue"),Re(e,{onObjectBegin:i(()=>{const c={};a(c),s.push(o),o=c,n=null},"onObjectBegin"),onObjectProperty:i(c=>{n=c},"onObjectProperty"),onObjectEnd:i(()=>{o=s.pop()},"onObjectEnd"),onArrayBegin:i(()=>{const c=[];a(c),s.push(o),o=c,n=null},"onArrayBegin"),onArrayEnd:i(()=>{o=s.pop()},"onArrayEnd"),onLiteralValue:a,onError:i((c,l,h)=>{t.push({error:c,offset:l,length:h})},"onError")},r),o[0]}f(Ie,"Re"),i(Ie,"parse$1");function Re(e,t,r=Z.DEFAULT){const n=Fe(e,!1),o=[];let s=0;function a(T){return T?()=>s===0&&T(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}f(a,"l"),i(a,"toNoArgVisit");function c(T){return T?A=>s===0&&T(A,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}f(c,"g"),i(c,"toOneArgVisit");function l(T){return T?A=>s===0&&T(A,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>o.slice()):()=>!0}f(l,"m"),i(l,"toOneArgVisitWithPath");function h(T){return T?()=>{s>0?s++:T(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>o.slice())===!1&&(s=1)}:()=>!0}f(h,"k"),i(h,"toBeginVisit");function g(T){return T?()=>{s>0&&s--,s===0&&T(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}f(g,"w"),i(g,"toEndVisit");const p=h(t.onObjectBegin),w=l(t.onObjectProperty),k=g(t.onObjectEnd),y=h(t.onArrayBegin),C=g(t.onArrayEnd),u=l(t.onLiteralValue),b=c(t.onSeparator),j=a(t.onComment),d=c(t.onError),E=r&&r.disallowComments,O=r&&r.allowTrailingComma;function v(){for(;;){const T=n.scan();switch(n.getTokenError()){case 4:x(14);break;case 5:x(15);break;case 3:x(13);break;case 1:E||x(11);break;case 2:x(12);break;case 6:x(16);break}switch(T){case 12:case 13:E?x(10):j();break;case 16:x(1);break;case 15:case 14:break;default:return T}}}f(v,"v"),i(v,"scanNext");function x(T,A=[],je=[]){if(d(T),A.length+je.length>0){let X=n.getToken();for(;X!==17;){if(A.indexOf(X)!==-1){v();break}else if(je.indexOf(X)!==-1)break;X=v()}}}f(x,"d"),i(x,"handleError");function D(T){const A=n.getTokenValue();return T?u(A):(w(A),o.push(A)),v(),!0}f(D,"L"),i(D,"parseString");function L(){switch(n.getToken()){case 11:const T=n.getTokenValue();let A=Number(T);isNaN(A)&&(x(2),A=0),u(A);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return v(),!0}f(L,"B"),i(L,"parseLiteral");function P(){return n.getToken()!==10?(x(3,[],[2,5]),!1):(D(!1),n.getToken()===6?(b(":"),v(),H()||x(4,[],[2,5])):x(5,[],[2,5]),o.pop(),!0)}f(P,"$"),i(P,"parseProperty");function R(){p(),v();let T=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(T||x(4,[],[]),b(","),v(),n.getToken()===2&&O)break}else T&&x(6,[],[]);P()||x(4,[],[2,5]),T=!0}return k(),n.getToken()!==2?x(7,[2],[]):v(),!0}f(R,"N"),i(R,"parseObject");function Te(){y(),v();let T=!0,A=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(A||x(4,[],[]),b(","),v(),n.getToken()===4&&O)break}else A&&x(6,[],[]);T?(o.push(0),T=!1):o[o.length-1]++,H()||x(4,[],[4,5]),A=!0}return C(),T||o.pop(),n.getToken()!==4?x(8,[4],[]):v(),!0}f(Te,"$e"),i(Te,"parseArray");function H(){switch(n.getToken()){case 3:return Te();case 1:return R();case 10:return D(!0);default:return L()}}return f(H,"H"),i(H,"parseValue"),v(),n.getToken()===17?r.allowEmptyContent?!0:(x(4,[],[]),!1):H()?(n.getToken()!==17&&x(9,[],[]),!0):(x(4,[],[]),!1)}f(Re,"Pe"),i(Re,"visit");var Be;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Be||(Be={}));var Ne;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(Ne||(Ne={}));const Nt=Ie;var Me;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Me||(Me={}));const ue=i((e,t)=>Nt(Bt(t,e)),"readJsonc"),We=i(()=>{const{findPnpApi:e}=_;return e&&e(process.cwd())},"getPnpApi"),Mt="detectTypeScriptVersion:",Wt=i((e,t)=>{const r=`${Mt}${e}`,n=t?.get(r);if(n!==void 0)return n??void 0;let o;const s=We();if(s)try{o=s.resolveRequest("typescript/package.json",e)??void 0}catch{}o??=J(m.resolve(e),m.join("node_modules","typescript","package.json"),t);let a;if(o)try{const c=ue(o,t);typeof c?.version=="string"&&(a=c.version)}catch{}return t?.set(r,a??null),a},"detectTypeScriptVersion"),I="package.json",q="tsconfig.json",Vt=i((e,t,r)=>{const n=_.createRequire(m.join(r,"tsconfig.json"));if(e!==t)try{return n.resolve(e)}catch{}try{return n.resolve(t)}catch{}try{return n.resolve(`${t}/${I}`)}catch{}},"resolvePackageEntryWithNode"),pe=i((e,t,r,n)=>{const o=`resolveFromPackageJsonPath:${e}:${t}:${r}`;if(n?.has(o))return n.get(o)||!1;const s=ue(e,n);if(!s)return;let a=t||q;if(!r&&s.exports)try{const[c]=It(s.exports,t,["require","types"]);a=c}catch{return n?.set(o,""),!1}else!t&&s.tsconfig&&(a=s.tsconfig);return a=m.join(e,"..",a),n?.set(o,a),a},"resolveFromPackageJsonPath"),Jt=i((e,t,r)=>{const n=`resolveExtendsPath:${e}:${t}`;if(r?.has(n))return r.get(n)||void 0;const o=Gt(e,t,r);return r?.set(n,o||""),o},"resolveExtendsPath"),Gt=i((e,t,r)=>{let n=e;if(e===".."&&(n=m.join(n,q)),e[0]==="."&&(n=m.resolve(t,n)),m.isAbsolute(n)){const u=$(r,n);if(u){if(u.isFile())return n}else if(!n.endsWith(".json")){const b=`${n}.json`;if($(r,b))return b}return}const[o,...s]=e.split("/"),a=o[0]==="@"?`${o}/${s.shift()}`:o,c=s.join("/"),l=We();if(l){const{resolveRequest:u}=l;try{if(a===e){const b=u(m.join(a,I),t);if(b){const j=pe(b,c,!1,r);if(j&&$(r,j))return j}}else{let b;try{b=u(e,t,{extensions:[".json"]})}catch{b=u(m.join(e,q),t)}if(b)return b}}catch{}}const h=Vt(e,a,t);let g;if(h){if(m.basename(h)!==I&&h.endsWith(".json"))return h;g=m.basename(h)===I?h:J(m.dirname(h),I,r)}const p=g&&m.dirname(g)||J(m.resolve(t),m.join("node_modules",a),r);if(!p||!$(r,p)?.isDirectory())return;const w=m.join(p,I);if($(r,w)){const u=pe(w,c,!1,r);if(u===!1)return;if(u&&$(r,u)?.isFile())return u}const k=m.join(p,c),y=k.endsWith(".json");if(!y){const u=`${k}.json`;if($(r,u))return u}const C=$(r,k);if(C){if(C.isDirectory()){const u=m.join(k,I);if($(r,u)){const j=pe(u,"",!0,r);if(j&&$(r,j))return j}const b=m.join(k,q);if($(r,b))return b}else if(y)return k}},"resolveExtendsPathUncached"),de=Symbol("implicitBaseUrl"),F="${configDir}",me=/^\.{1,2}(\/.*)?$/,ee=i(e=>{const t=S(e);return me.test(t)?t:`./${t}`},"normalizeRelativePath"),Kt=i(e=>{const t={...e};if(t.strict){const r=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const n of r)t[n]===void 0&&(t[n]=!0)}if(t.composite&&(t.declaration??=!0,t.incremental??=!0),t.target){let r=t.target.toLowerCase();r==="es2015"&&(r="es6"),t.target=r,r==="esnext"&&(t.module??="es6",t.useDefineForClassFields??=!0),(r==="es6"||r==="es2016"||r==="es2017"||r==="es2018"||r==="es2019"||r==="es2020"||r==="es2021"||r==="es2022"||r==="es2023"||r==="es2024"||r==="es2025")&&(t.module??="es6"),(r==="es2022"||r==="es2023"||r==="es2024"||r==="es2025")&&(t.useDefineForClassFields??=!0)}if(t.module){let r=t.module.toLowerCase();if(r==="es2015"&&(r="es6"),t.module=r,(r==="es6"||r==="es2020"||r==="es2022"||r==="esnext"||r==="none"||r==="system"||r==="umd"||r==="amd")&&(t.moduleResolution??="classic"),r==="system"&&(t.allowSyntheticDefaultImports??=!0),(r==="node16"||r==="node18"||r==="node20"||r==="nodenext"||r==="preserve")&&(t.esModuleInterop??=!0,t.allowSyntheticDefaultImports??=!0),(r==="node16"||r==="node18"||r==="node20"||r==="nodenext")&&(t.moduleDetection??="force"),(r==="node16"||r==="node18")&&(t.target??="es2022",t.moduleResolution??="node16"),r==="node20"&&(t.target??="es2023",t.moduleResolution??="node16",t.resolveJsonModule??=!0),r==="nodenext"&&(t.target??="esnext",t.moduleResolution??="nodenext",t.resolveJsonModule??=!0),r==="node16"||r==="node18"||r==="node20"||r==="nodenext"){const n=t.target;(n==="es3"||n==="es2022"||n==="es2023"||n==="es2024"||n==="esnext")&&(t.useDefineForClassFields??=!0)}r==="preserve"&&(t.moduleResolution??="bundler")}if(t.moduleResolution){let r=t.moduleResolution.toLowerCase();r==="node"&&(r="node10"),t.moduleResolution=r,(r==="node16"||r==="nodenext"||r==="bundler")&&(t.resolvePackageJsonExports??=!0,t.resolvePackageJsonImports??=!0),r==="bundler"&&(t.allowSyntheticDefaultImports??=!0,t.resolveJsonModule??=!0)}for(const r of["jsx","moduleDetection","importsNotUsedAsValues","newLine"])t[r]&&(t[r]=t[r].toLowerCase());return t.esModuleInterop&&(t.allowSyntheticDefaultImports??=!0),t.verbatimModuleSyntax&&(t.isolatedModules??=!0,t.preserveConstEnums??=!0),t.isolatedModules&&(t.preserveConstEnums??=!0),t.rewriteRelativeImportExtensions&&(t.allowImportingTsExtensions??=!0),t.lib&&(t.lib=t.lib.map(r=>r.toLowerCase())),t.checkJs&&(t.allowJs??=!0),t},"normalizeCompilerOptions"),Qt=i((e,t)=>{!t.has("target")&&!zt(e.module)&&(e.target="es3")},"applyV4Defaults"),zt=i(e=>e==="node16"||e==="node18"||e==="node20"||e==="nodenext","moduleDictatesTarget$1"),Ht=i((e,t)=>{!t.has("target")&&!Xt(e.module)&&(e.target="es5")},"applyV5Defaults"),Xt=i(e=>e==="node16"||e==="node18"||e==="node20"||e==="nodenext","moduleDictatesTarget"),Yt=i((e,t)=>{t.has("strict")||(e.strict=!0),t.has("target")||(e.target="es2025"),t.has("module")||(e.module="es2022"),t.has("moduleResolution")||(e.moduleResolution="bundler"),t.has("rootDir")||(e.rootDir="."),t.has("types")||(e.types=[]),t.has("noUncheckedSideEffectImports")||(e.noUncheckedSideEffectImports=!0),t.has("libReplacement")||(e.libReplacement=!1)},"applyV6Defaults"),Zt=[[4,Qt],[5,Ht],[6,Yt]],qt=i(e=>{const t=/^v?(\d+)/.exec(e);return t?Number(t[1]):void 0},"parseMajor"),en=i((e,t)=>{const r=qt(t);if(r===void 0)return;const n=new Set(Object.keys(e));for(const[o,s]of Zt)o<=r&&s(e,n)},"applyVersionDefaults"),he=i((e,t)=>ee(m.relative(e,t)),"pathRelative"),Ve=["files","include","exclude"],Je=i((e,t,r)=>{const n=m.join(t,r),o=m.relative(e,n);return S(o)||"./"},"resolveAndRelativize"),tn=i((e,t,r)=>{const n=m.relative(e,t);if(!n)return r;const o=r.startsWith("./")?r.slice(2):r;return S(`${n}/${o}`)},"prefixPattern"),Ge=["outDir","declarationDir"],te=i((e,t)=>{if(e.startsWith(F))return S(m.join(t,e.slice(F.length)))},"interpolateConfigDir"),nn=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],rn=i((e,t={})=>{if(e.length===0)throw new Error("Chain must not be empty");const{typescriptVersion:r}=t,n=new Map(e.map(p=>[p.path,p])),o=new Map,s=i(p=>{const w=o.get(p);if(w)return w;const k=n.get(p);if(!k)throw new Error(`Config not found in chain: ${p}`);const y=k.config,C=m.dirname(p);let u={...y,...y.compilerOptions&&{compilerOptions:{...y.compilerOptions}},...y.watchOptions&&{watchOptions:{...y.watchOptions}}};if(delete u.extends,u.compilerOptions?.paths&&!u.compilerOptions.baseUrl&&(u.compilerOptions[de]=C),y.extends){const b=Array.isArray(y.extends)?y.extends:[y.extends];for(const j of b.toReversed()){const d=s(j),E=m.dirname(j),{references:O,...v}=d;if(v.compilerOptions){const D={...v.compilerOptions};for(const L of["baseUrl","outDir","declarationDir","rootDir"]){const P=D[L];P&&!P.startsWith(F)&&(D[L]=Je(C,E,P))}for(const L of["rootDirs","typeRoots"]){const P=D[L];P&&(D[L]=P.map(R=>R.startsWith(F)?R:Je(C,E,R)))}v.compilerOptions=D}for(const D of Ve){const L=v[D];L&&(v[D]=L.map(P=>P.startsWith(F)?P:tn(C,E,P)))}const x={...v,...u,compilerOptions:{...v.compilerOptions,...u.compilerOptions}};v.watchOptions&&(x.watchOptions={...v.watchOptions,...u.watchOptions}),u=x}}if(u.compilerOptions){const{compilerOptions:b}=u,j=["baseUrl","rootDir"];for(const d of j){const E=b[d];if(E&&!E.startsWith(F)){const O=m.resolve(C,E),v=he(C,O);b[d]=v}}for(const d of Ge){let E=b[d];E&&(Array.isArray(u.exclude)||(u.exclude=Ge.map(O=>b[O]).filter(Boolean)),E.startsWith(F)||(E=ee(E)),b[d]=E)}}else u.compilerOptions={};if(u.include&&(u.include=u.include.map(S)),u.files&&(u.files=u.files.map(b=>b.startsWith(F)?b:ee(b))),u.watchOptions){const{watchOptions:b}=u;for(const j of["excludeDirectories","excludeFiles"])b[j]&&(b[j]=b[j].map(d=>S(m.resolve(C,d))));for(const j of["watchFile","watchDirectory","fallbackPolling"])if(b[j]){const d=b;d[j]=b[j].toLowerCase()}}return o.set(p,u),u},"resolveEntry"),a=e[0],c=s(a.path),l=m.dirname(a.path),h={...c,compilerOptions:c.compilerOptions?{...c.compilerOptions}:{}},{compilerOptions:g}=h;if(g){for(const p of nn){const w=g[p];if(w){const k=te(w,l);g[p]=k?he(l,k):w}}for(const p of["rootDirs","typeRoots"]){const w=g[p];w&&(g[p]=w.map(k=>{const y=te(k,l);return y?he(l,y):ee(k)}))}if(g.paths){const p={};for(const[w,k]of Object.entries(g.paths))p[w]=k.map(y=>te(y,l)??y);g.paths=p}r&&en(g,r),h.compilerOptions=Kt(g)}for(const p of Ve){const w=h[p];w&&(h[p]=w.map(k=>te(k,l)??k))}return{path:a.path,config:h,sources:e.map(p=>p.path)}},"resolveExtendsChain"),on=i((e,t={})=>{const{cache:r=new Map}=t,n=m.resolve(e),o=[],s=new Set,a=i((c,l)=>{const h=S(c);if(s.has(h))return;s.add(h);let g;try{g=ue(c,r)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${c}`)}if(typeof g!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${c}`);const p=m.dirname(c);if(g.extends){const w=Array.isArray(g.extends),k=(w?g.extends:[g.extends]).map(C=>{const u=Jt(C,p,r);if(!u)throw new Error(`File '${C}' not found.`);const b=S(u);if(l.has(b)||b===h)throw new Error(`Circularity detected while resolving configuration: ${b}`);return b});g.extends=w?k:k[0],o.push({path:h,config:g});const y=new Set(l);y.add(h);for(const C of[...k].reverse())a(C,y)}else o.push({path:h,config:g})},"collect");return a(n,new Set),o},"getExtendsChain"),ge=i((e,t={})=>{const{cache:r=new Map,typescriptVersion:n="auto"}=t,o=on(e,{cache:r});let s;return n==="auto"?s=Wt(m.dirname(o[0].path),r):n!==!1&&(s=n),rn(o,{typescriptVersion:s})},"readTsconfig");var sn=Object.defineProperty,ne=i((e,t)=>sn(e,"name",{value:t,configurable:!0}),"s");const Ke=ne(e=>{let t="";for(let r=0;r<e.length;r+=1){const n=e[r],o=n.toUpperCase();t+=n===o?n.toLowerCase():o}return t},"invertCase"),be=new Map,Qe=ne((e,t)=>{const r=xt.join(e,`.is-fs-case-sensitive-test-${process.pid}`);try{return t.writeFileSync(r,""),!t.existsSync(Ke(r))}finally{try{t.unlinkSync(r)}catch{}}},"checkDirectoryCaseWithWrite"),an=ne((e,t,r)=>{try{return Qe(e,r)}catch(n){if(t===void 0)return Qe(kt.tmpdir(),r);throw n}},"checkDirectoryCaseWithFallback"),cn=ne((e,t=yt,r=!0)=>{const n=e??process.cwd();if(r&&be.has(n))return be.get(n);let o;const s=Ke(n);return s!==n&&t.existsSync(n)?o=!t.existsSync(s):o=an(n,e,t),r&&be.set(n,o),o},"isFsCaseSensitive"),{join:ze}=m.posix,ye={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},ln=i(e=>{const t=[...ye.ts],r=[...ye.cts],n=[...ye.mts];return e?.allowJs&&(t.push(".js",".jsx"),r.push(".cjs"),n.push(".mjs")),[...t,...r,...n]},"getSupportedExtensions"),fn=i(e=>{const t=[];if(!e)return t;const{outDir:r,declarationDir:n}=e;return r&&t.push(r),n&&t.push(n),t},"getDefaultExcludeSpec"),He=i(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),un=["node_modules","bower_components","jspm_packages"],ke=`(?!(${un.join("|")})(/|$))`,pn=/(?:^|\/)[^.*?]+$/,Xe="**/*",re="[^/]",xe="[^./]",Ye=process.platform==="win32",dn=i(({config:e,path:t},r)=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or readTsconfig to resolve it.");if(!m.isAbsolute(t))throw new Error("The tsconfig path must be absolute");Ye&&(t=S(t));const n=m.dirname(t),{files:o,include:s,exclude:a,compilerOptions:c}=e,l=i(C=>m.isAbsolute(C)?C:ze(n,C),"resolvePattern"),h=o?new Set(o.map(l)):void 0,g=ln(c),p=r?"":"i",w=(a||fn(c)).map(C=>{const u=l(C),b=He(u).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${re}*`).replaceAll(String.raw`\?`,re);return new RegExp(`^${b}($|/)`,p)}),k=o||s?s:[Xe],y=k?k.map(C=>{let u=l(C);pn.test(u)&&(u=ze(u,Xe));const b=He(u).replaceAll(String.raw`/\*\*`,`(/${ke}${xe}${re}*)*?`).replaceAll(/(\/)?\\\*/g,(j,d)=>{const E=String.raw`(${xe}|(\.(?!min\.js$))?)*`;return d?`/${ke}${xe}${E}`:E}).replaceAll(/(\/)?\\\?/g,(j,d)=>{const E=re;return d?`/${ke}${E}`:E});return new RegExp(`^${b}$`,p)}):void 0;return{filesSet:h,extensions:g,excludePatterns:w,includePatterns:y}},"compilePatterns"),Ze=new WeakMap,ve=i((e,t)=>{if(!m.isAbsolute(t))return!1;Ye&&(t=S(t));let r=Ze.get(e);r||(r=dn(e,cn()),Ze.set(e,r));const{filesSet:n,extensions:o,excludePatterns:s,includePatterns:a}=r;return n?.has(t)?!0:!o.some(c=>t.endsWith(c))||s.some(c=>c.test(t))?!1:!!(a&&a.some(c=>c.test(t)))},"isFileIncluded"),qe=i((e,t,r,n)=>{const o=m.resolve(e);let s=S(e);for(;;){const a=J(s,t,r);if(!a)return;const c=m.resolve(a),l=ge(c,{cache:r,typescriptVersion:n});if(ve(l,o))return l;const h=m.dirname(a),g=m.dirname(h);if(g===h)return;s=g}},"findConfigApplicable"),mn=i((e=process.cwd(),t={})=>{const{configName:r="tsconfig.json",cache:n=new Map,includes:o=!1}=t;if(!o){const s=m.resolve(e);return m.basename(s)===r&&$(n,s)?.isFile()?S(s):J(S(e),r,n)}return qe(e,r,n,!1)?.path},"findTsconfig"),hn=i((e=process.cwd(),t={})=>{const{configName:r="tsconfig.json",cache:n=new Map,includes:o=!1,typescriptVersion:s="auto"}=t;if(!o){const a=mn(e,{configName:r,cache:n});return a?ge(a,{cache:n,typescriptVersion:s}):void 0}return qe(e,r,n,s)},"getTsconfig"),gn=/\*/g,et=i((e,t)=>{const r=e.match(gn);if(r&&r.length>1)throw new Error(t)},"assertStarCount"),bn=i(e=>{if(e.includes("*")){const[t,r]=e.split("*");return{prefix:t,suffix:r}}return e},"parsePattern"),yn=i(({prefix:e,suffix:t},r)=>r.startsWith(e)&&r.endsWith(t),"isPatternMatch"),kn=i((e,t,r)=>Object.entries(e).map(([n,o])=>(et(n,`Pattern '${n}' can have at most one '*' character.`),{pattern:bn(n),substitutions:o.map(s=>{if(et(s,`Substitution '${s}' in pattern '${n}' can have at most one '*' character.`),!t&&!me.test(s)&&!m.isAbsolute(s))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return m.resolve(r,s)})})),"parsePaths"),xn=i(e=>{const{compilerOptions:t}=e.config;if(!t)return null;const{baseUrl:r,paths:n}=t;if(!r&&!n)return null;const o=de in t&&t[de],s=m.resolve(m.dirname(e.path),r||o||"."),a=n?kn(n,r,s):[],c=new Map,l=[];for(const h of a)typeof h.pattern=="string"?c.set(h.pattern,h.substitutions):l.push(h);return{exactEntries:c,patternEntries:l,resolvedBaseUrl:s,baseUrl:r}},"compilePaths"),tt=new WeakMap,nt=i((e,t)=>{let r=tt.get(e);if(r===void 0&&(r=xn(e),tt.set(e,r)),!r)return[];if(me.test(t))return[];const{exactEntries:n,patternEntries:o,resolvedBaseUrl:s,baseUrl:a}=r,c=n.get(t);if(c)return c.map(S);let l,h=-1;for(const p of o)yn(p.pattern,t)&&p.pattern.prefix.length>h&&(h=p.pattern.prefix.length,l=p);if(!l)return a?[S(m.join(s,t))]:[];const g=t.slice(l.pattern.prefix.length,t.length-l.pattern.suffix.length);return l.substitutions.map(p=>S(p.replace("*",g)))},"resolvePathAlias"),rt=f(e=>{if(e)return ge(e);try{return hn()??void 0}catch{}},"loadTsconfig"),vn=`
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,`,ot=f(()=>process.sourceMapsEnabled??!0,"shouldApplySourceMap"),we=f(({code:e,map:t})=>e+vn+Buffer.from(JSON.stringify(t),"utf8").toString("base64"),"inlineSourceMap"),G=Symbol.for("tsx:global-cjs-loader-count"),K=globalThis,wn=f(()=>(K[G]??0)>0,"isGlobalCjsLoaderActive"),En=f(()=>(K[G]=(K[G]??0)+1,()=>{K[G]=Math.max((K[G]??1)-1,0)}),"activateGlobalCjsLoader"),Cn=f(e=>{const t=e.indexOf(":");if(t!==-1)return e.slice(0,t)},"getScheme"),st=f(e=>e[0]==="."&&(e[1]==="/"||e[1]==="."||e[2]==="/"),"isRelativePath"),Q=f(e=>st(e)||m.isAbsolute(e),"isFilePath"),Tn=f(e=>{if(Q(e))return!0;const t=Cn(e);return t&&t!=="node"},"requestAcceptsQuery"),oe="file://",jn=[".ts",".tsx",".jsx",".mts",".cts"],at=/\.([cm]?ts|[tj]sx)($|\?)/,On=/[/\\].+\.(?:cts|cjs)(?:$|\?)/,An=/\.json($|\?)/,se=/\/(?:$|\?)/,Sn=/^(?:@[^/]+\/)?[^/\\]+$/,it=`${m.sep}node_modules${m.sep}`,ae=Number(process.env.TSX_DEBUG);ae&&(Se.enabled=!0,Se.supportLevel=3);const ct=f(e=>(t,...r)=>{if(!ae||t>ae)return;const n=`${At(` tsx P${process.pid} `)} ${e}`,o=r.map(s=>typeof s=="string"?s:Ct(s,{colors:!0})).join(" ");bt(1,`${n} ${o}
|
|
9
|
+
`)},"createLog"),W=ct(Tt(jt(" CJS "))),Pn=ct(Ot(" ESM ")),lt=[".js",".json"],ft=[".ts",".tsx",".jsx"],$n=[...ft,...lt],Dn=[...lt,...ft],z=Object.create(null);z[".js"]=[".ts",".tsx",".js",".jsx"],z[".jsx"]=[".tsx",".ts",".jsx",".js"],z[".cjs"]=[".cts"],z[".mjs"]=[".mts"];const ut=f(e=>{const t=e.split("?"),r=t[1]?`?${t[1]}`:"",[n]=t,o=m.extname(n),s=[],a=z[o];if(a){const l=n.slice(0,-o.length);s.push(...a.map(h=>l+h+r))}const c=!(e.startsWith(oe)||Q(n))||n.includes(it)||n.includes("/node_modules/")?Dn:$n;return s.push(...c.map(l=>n+l+r)),s},"mapTsExtensions"),Ee=f(e=>Array.from(e).length>0?`?${e.toString()}`:"","urlSearchParamsStringify"),_n=[".cts",".mts",".ts",".tsx",".jsx"],Ln=[".js",".cjs",".mjs"],pt=[".ts",".tsx",".jsx"],Ce=f((e,t,r,n)=>{const o=Object.getOwnPropertyDescriptor(e,t);o?.set?e[t]=r:(!o||o.configurable)&&Object.defineProperty(e,t,{value:r,enumerable:o?.enumerable||n?.enumerable,writable:n?.writable??(o?o.writable:!0),configurable:n?.configurable??(o?o.configurable:!0)})},"safeSet"),Fn=f((e,t,r,n)=>{const o=t[".js"],s=f((a,c)=>{if(e.enabled===!1)return o(a,c);const[l,h]=c.split("?");if((new URLSearchParams(h).get("namespace")??void 0)!==n)return o(a,c);W(2,"load",{filePath:c}),a.id.startsWith("data:text/javascript,")&&(a.path=m.dirname(l)),Ae?.send&&Ae.send({type:"dependency",path:l});const p=_n.some(y=>l.endsWith(y)),w=Ln.some(y=>l.endsWith(y));if(!p&&!w)return o(a,l);let k=ce.readFileSync(l,"utf8");if(l.endsWith(".cjs")){const y=vt(c,k);y&&(k=ot()?we(y):y.code)}else if(p||wt(k)){const y=Et(k,c,{tsconfigRaw:r&&ve(r,l)?r.config:void 0});k=ot()?we(y):y.code}W(1,"loaded",{filePath:l}),a._compile(k,l)},"transformer");Ce(t,".js",s);for(const a of pt)Ce(t,a,s,{enumerable:!n,writable:!0,configurable:!0});return Ce(t,".mjs",s,{writable:!0,configurable:!0}),()=>{t[".js"]===s&&(t[".js"]=o);for(const a of[...pt,".mjs"])t[a]===s&&delete t[a]}},"createExtensions"),Un=f(e=>t=>{if((t==="."||t===".."||t.endsWith("/.."))&&(t+="/"),se.test(t)){let r=m.join(t,"index");t.startsWith("./")&&(r=`./${r}`);try{return e(r)}catch{}}try{return e(t)}catch(r){const n=r;if(n.code==="MODULE_NOT_FOUND")try{return e(`${t}${m.sep}index`)}catch{}throw n}},"createImplicitResolver"),ie=f((e,t,r,n)=>{if(W(3,"resolveTsFilename",{request:t,isDirectory:se.test(t),isTsParent:r,allowJs:n}),se.test(t)||!r&&!n)return;const o=ut(t);if(o)for(const s of o)try{return e(s)}catch(a){const{code:c}=a;if(c!=="MODULE_NOT_FOUND"&&c!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw a}},"resolveTsFilename"),In=f((e,t,r)=>n=>{if(W(3,"resolveTsFilename",{request:n,isTsParent:t,isFilePath:Q(n)}),Q(n)){const o=ie(e,n,t,r);if(o)return o}try{return e(n)}catch(o){const s=o;if(s.code==="MODULE_NOT_FOUND"){if(s.path){const c=s.message.match(/^Cannot find module '([^']+)'$/);if(c){const h=c[1],g=ie(e,h,t,r);if(g)return g}const l=s.message.match(/^Cannot find module '([^']+)'. Please verify that the package.json has a valid "main" entry$/);if(l){const h=l[1],g=ie(e,h,t,r);if(g)return g}}const a=ie(e,n,t,r);if(a)return a}throw s}},"createTsExtensionResolver"),dt="at cjsPreparseModuleExports (node:internal",Rn=f(e=>{const t=e.stack.split(`
|
|
10
|
+
`).slice(1);return t[1].includes(dt)||t[2].includes(dt)},"isFromCjsLexer"),Bn=f((e,t)=>{const r=e.split("?"),n=new URLSearchParams(r[1]);if(t?.filename){const o=Pe(t.filename);let s;if(o){const l=o.split("?"),h=l[0];s=l[1],t.filename=h,t.path=m.dirname(h),t.paths=_._nodeModulePaths(t.path),_._cache[h]=t}s||(s=t.filename.split("?")[1]);const c=new URLSearchParams(s).get("namespace");c&&n.append("namespace",c)}return[r[0],n,(o,s)=>(m.isAbsolute(o)&&!o.endsWith(".json")&&!o.endsWith(".node")&&!(s===0&&Rn(new Error))&&(o+=Ee(n)),o)]},"preserveQuery"),Nn=f((e,t,r,n)=>{if(e.startsWith(oe)&&(e=Oe(e)),n&&!Q(e)&&!t?.filename?.includes(it)){const o=nt(n,e);for(const s of o)try{return r(s)}catch{}}return r(e)},"resolveTsPaths"),Mn=f((e,t,r,n)=>(o,s,...a)=>{if(e.enabled===!1)return t(o,s,...a);o=$e(o);const[c,l,h]=Bn(o,s);if((l.get("namespace")??void 0)!==n)return t(o,s,...a);W(2,"resolve",{request:o,parent:s?.filename??s,restOfArgs:a});let g=f(w=>t(w,s,...a),"nextResolveSimple");g=In(g,!!(n||s?.filename&&at.test(s.filename)),r?.config.compilerOptions?.allowJs??!1),g=Un(g);const p=h(Nn(c,s,g,r),a.length);return W(1,"resolved",{request:o,parent:s?.filename??s,resolved:p}),p},"createResolveFilename"),mt=f((e,t)=>{if(!t)throw new Error("The current file path (__filename or import.meta.url) must be provided in the second argument of tsx.require()");return e.startsWith(".")?((typeof t=="string"&&t.startsWith(oe)||t instanceof URL)&&(t=Oe(t)),m.resolve(m.dirname(t),e)):e},"resolveContext"),Wn=f(e=>{const{sourceMapsEnabled:t}=process,r={enabled:!0},n=rt(process.env.TSX_TSCONFIG_PATH);process.setSourceMapsEnabled(!0);const o=_._resolveFilename,s=Mn(r,o,n,e?.namespace);_._resolveFilename=s;const a=Fn(r,_._extensions,n,e?.namespace),c=e?.namespace?void 0:En(),l=f(()=>{t===!1&&process.setSourceMapsEnabled(!1),r.enabled=!1,_._resolveFilename===s&&(_._resolveFilename=o),a(),c?.()},"unregister");if(e?.namespace){const h=f((p,w)=>{const k=mt(p,w),[y,C]=k.split("?"),u=new URLSearchParams(C);return e.namespace&&!y.startsWith("node:")&&u.set("namespace",e.namespace),gt(y+Ee(u))},"scopedRequire");l.require=h;const g=f((p,w,k)=>{const y=mt(p,w),[C,u]=y.split("?"),b=new URLSearchParams(u);return e.namespace&&!C.startsWith("node:")&&b.set("namespace",e.namespace),s(C+Ee(b),module,!1,k)},"scopedResolve");l.resolve=g,l.unregister=l}return l},"register");export{Pn as a,we as b,On as c,ae as d,at as e,oe as f,wn as g,An as h,Sn as i,ve as j,Tn as k,rt as l,se as m,ut as n,st as o,$e as p,Wn as r,jn as t,nt as w};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var Q=Object.defineProperty;var l=(e,r)=>Q(e,"name",{value:r,configurable:!0});var R=require("node:module"),X=require("node:worker_threads"),g=require("./node-features-Bdn6JLJo.cjs"),o=require("./register-DJgoUG_Q.cjs"),y=require("node:url"),w=require("node:fs"),z=require("node:fs/promises"),f=require("./index-C8LOAU3M.cjs"),N=require("./client-D3mGB526.cjs"),E=require("node:path"),I=typeof document<"u"?document.currentScript:null;const T={active:!0,parsedTsconfig:void 0},M=l(e=>{const r={active:!0,namespace:e?.namespace,onImport:e?.onImport,parsedTsconfig:void 0,port:e?.port,tsconfig:e?.tsconfig};return e?.tsconfig!==!1&&(r.parsedTsconfig=o.loadTsconfig(e?.tsconfig??process.env.TSX_TSCONFIG_PATH)),r},"createData"),D=l(async e=>{if(!e)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
+
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);Object.assign(T,M(e)),e.port&&e.port.on("message",r=>{r==="deactivate"&&(T.active=!1,e.port.postMessage({type:"deactivated"}))})},"initialize"),K=l(()=>(T.parsedTsconfig=o.loadTsconfig(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"globalPreload"),h=new Map,V=l(async e=>{if(h.has(e))return h.get(e);if(!await w.promises.access(e).then(()=>!0,()=>!1)){h.set(e,void 0);return}const s=await w.promises.readFile(e,"utf8");try{const n=JSON.parse(s);return h.set(e,n),n}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJson"),Y=l(e=>{if(h.has(e))return h.get(e);if(!w.existsSync(e)){h.set(e,void 0);return}const r=w.readFileSync(e,"utf8");try{const s=JSON.parse(r);return h.set(e,s),s}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJsonSync"),Z=l(async e=>{let r=new URL("package.json",e);for(;!r.pathname.endsWith("/node_modules/package.json");){const s=y.fileURLToPath(r),n=await V(s);if(n)return n;const a=r;if(r=new URL("../package.json",r),r.pathname===a.pathname)break}},"findPackageJson"),x=l(e=>{let r=new URL("package.json",e);for(;!r.pathname.endsWith("/node_modules/package.json");){const s=y.fileURLToPath(r),n=Y(s);if(n)return n;const a=r;if(r=new URL("../package.json",r),r.pathname===a.pathname)break}},"findPackageJsonSync"),ee=l(async e=>(await Z(e))?.type??"commonjs","getPackageType"),se=l(e=>x(e)?.type??"commonjs","getPackageTypeSync"),re=l(e=>{const{pathname:r}=new URL(e),s=E.extname(r);if(s===".mts"||s===".mjs")return"module";if(s===".cts"||s===".cjs")return"commonjs";if(s===".js"||o.tsExtensions.includes(s))return ee(e)},"getFormatFromFileUrl"),te=l(e=>{const{pathname:r}=new URL(e),s=E.extname(r);if(s===".mts"||s===".mjs")return"module";if(s===".cts"||s===".cjs")return"commonjs";if(s===".js"||o.tsExtensions.includes(s))return se(e)},"getFormatFromFileUrlSync"),P="tsx-namespace=",S=l(e=>{const r=e.indexOf(P);if(r===-1)return;const s=e[r-1];if(s!=="?"&&s!=="&")return;const n=r+P.length,a=e.indexOf("&",n);return a===-1?e.slice(n):e.slice(n,a)},"getNamespace"),W=g.isFeatureSupported(g.importAttributes)?"importAttributes":"importAssertions",O=l(e=>e==="commonjs"||e==="commonjs-typescript","isCommonJsFormat"),q=l(e=>e==="module-typescript"||e==="typescript","isModuleTypeScriptFormat"),v=l((e,r)=>r.parsedTsconfig&&o.je(r.parsedTsconfig,e)?r.parsedTsconfig.config:void 0,"getTsconfigRaw"),ne=l((e,r)=>{const s=new URL(r);s.searchParams.delete("tsx-namespace");const n=s.toString();e.port&&e.port.postMessage({type:"load",url:n}),e.onImport?.(n)},"notifyLoad"),k=l((e,r)=>{if(!e.active)return!1;const s=S(r);return e.namespace&&e.namespace!==s?!1:(ne(e,r),N.parent.send&&N.parent.send({type:"dependency",path:r}),!0)},"prepareLoad"),A=l((e,r)=>{if(!o.isJsonPattern.test(e))return r;const s=r[W];return s?.type?r:{...r,[W]:{...s,type:"json"}}},"prepareJsonAttributes"),oe=l(e=>e.conditions.includes("require")&&!e.conditions.includes("import"),"isCommonJsRequireContext$1"),ae=l(e=>{const r=l(async(s,n,a)=>{if(!k(e,s))return a(s,n);const c=S(s),d=A(s,n),i=await a(s,d);o.logEsm(3,"loaded by next loader",{url:s,loaded:i});const t=s.startsWith(o.fileUrlPrefix)?y.fileURLToPath(s):s,m=i.format;if(O(m)&&g.isFeatureSupported(g.esmLoadReadFile)&&i.responseURL?.startsWith("file:")&&!t.endsWith(".cjs")){const u=await z.readFile(new URL(s),"utf8");if(m==="commonjs-typescript"||!t.endsWith(".js")||f.isESM(u)){const U=f.transformSync(u,t,{tsconfigRaw:v(t,e)}),b=c?`${t}?namespace=${encodeURIComponent(c)}`:t;return i.format="commonjs",(m==="commonjs-typescript"||t.endsWith(".cts"))&&(i.source=o.inlineSourceMap(U)),i.responseURL=`data:text/javascript,${encodeURIComponent(U.code)}?filePath=${encodeURIComponent(b)}`,o.logEsm(3,"returning CJS export annotation",i),i}}if(!i.source)return i;const p=i.source.toString();if(m==="commonjs-typescript"){const u=f.transformSync(p,t,{tsconfigRaw:v(t,e)});return{...i,format:"commonjs",source:o.inlineSourceMap(u)}}if(i.format==="json"||q(m)||o.tsExtensionsPattern.test(s)){const u=await f.transform(p,t,{tsconfigRaw:v(t,e)});return{format:"module",source:o.inlineSourceMap(u)}}if(i.format==="module"){const u=f.transformDynamicImport(t,p);u&&(i.source=o.inlineSourceMap(u))}return i},"load2");return o.debugEnabled?async(s,n,a)=>{o.logEsm(2,"load",{url:s,context:n});const c=await r(s,n,a);return o.logEsm(1,"loaded",{url:s,result:c}),c}:r},"createLoad"),ce=l(e=>{const r=l((s,n,a)=>{if(oe(n)&&o.isGlobalCjsLoaderActive()||!k(e,s))return a(s,n);const c=S(s),d=A(s,n),i=a(s,d);o.logEsm(3,"loaded by next loader",{url:s,loaded:i});const t=s.startsWith(o.fileUrlPrefix)?y.fileURLToPath(s):s,m=i.format;if(O(m)&&g.isFeatureSupported(g.esmLoadReadFile)&&i.responseURL?.startsWith("file:")&&!t.endsWith(".cjs")){const u=w.readFileSync(new URL(s),"utf8");if(m==="commonjs-typescript"||!t.endsWith(".js")||f.isESM(u)){const U=f.transformSync(u,t,{tsconfigRaw:v(t,e)}),b=c?`${t}?namespace=${encodeURIComponent(c)}`:t,C=!c&&o.isGlobalCjsLoaderActive();return i.format="commonjs",i.shouldBeReloadedByCJSLoader=C,i.source=o.inlineSourceMap(U),C||(i.responseURL=`data:text/javascript,${encodeURIComponent(U.code)}?filePath=${encodeURIComponent(b)}`),o.logEsm(3,"returning CJS export annotation",i),i}}if(!i.source)return i;const p=i.source.toString();if(m==="commonjs-typescript"){const u=f.transformSync(p,t,{tsconfigRaw:v(t,e)});return{...i,format:"commonjs",shouldBeReloadedByCJSLoader:!1,source:o.inlineSourceMap(u)}}if(i.format==="json"||q(m)||o.tsExtensionsPattern.test(s)){const u=f.transformEsmSync(p,t,{tsconfigRaw:v(t,e)});return{format:"module",source:o.inlineSourceMap(u)}}if(i.format==="module"){const u=f.transformDynamicImport(t,p);u&&(i.source=o.inlineSourceMap(u))}return i},"load2");return o.debugEnabled?(s,n,a)=>{o.logEsm(2,"loadSync",{url:s,context:n});const c=r(s,n,a);return o.logEsm(1,"loadedSync",{url:s,result:c}),c}:r},"createLoadSync"),ie=ae(T),L=l(e=>{if(e.url)return e.url;const r=e.message.match(/^Cannot find module '([^']+)'/);if(r){const[,n]=r;return n}const s=e.message.match(/^Cannot find package '([^']+)'/);if(s){const[,n]=s;if(!E.isAbsolute(n))return;const a=y.pathToFileURL(n);if(a.pathname.endsWith("/")&&(a.pathname+="package.json"),a.pathname.endsWith("/package.json")){const c=f.readJsonFile(a);if(c?.main)return new URL(c.main,a).toString()}else return a.toString()}},"getMissingPathFromNotFound"),j=l(e=>e==="ERR_MODULE_NOT_FOUND"||e==="MODULE_NOT_FOUND","isModuleNotFound"),F=l(async(e,r,s,n)=>{const a=o.mapTsExtensions(e);if(o.logEsm(3,"resolveExtensions",{url:e,context:r,throwError:n,tryPaths:a}),!a)return;let c;for(const d of a)try{return await s(d,r)}catch(i){const{code:t}=i;if(!j(t)&&t!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw i;c=i}if(n)throw c},"resolveExtensions"),_=l((e,r,s,n)=>{const a=o.mapTsExtensions(e);if(o.logEsm(3,"resolveExtensionsSync",{url:e,context:r,throwError:n,tryPaths:a}),!a)return;let c;for(const d of a)try{return s(d,r)}catch(i){const{code:t}=i;if(!j(t)&&t!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw i;c=i}if(n)throw c},"resolveExtensionsSync"),le=l(async(e,r,s,n)=>{const a=n.parsedTsconfig?.config.compilerOptions?.allowJs??!1;if(o.logEsm(3,"resolveBase",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(o.fileUrlPrefix),isRelativePath:o.isRelativePath(e),tsExtensionsPattern:o.tsExtensionsPattern.test(r.parentURL),allowJs:a}),(e.startsWith(o.fileUrlPrefix)||o.isRelativePath(e))&&(o.tsExtensionsPattern.test(r.parentURL)||a)){const c=await F(e,r,s);if(o.logEsm(3,"resolveBase resolved",{specifier:e,context:r,resolved:c}),c)return c}try{return await s(e,r)}catch(c){if(o.logEsm(3,"resolveBase error",{specifier:e,context:r,error:c}),c instanceof Error){const d=c;if(j(d.code)){const i=L(d);if(i){const t=await F(i,r,s);if(t)return t}}}throw c}},"resolveBase"),me=l((e,r,s,n)=>{const a=n.parsedTsconfig?.config.compilerOptions?.allowJs??!1;if(o.logEsm(3,"resolveBaseSync",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(o.fileUrlPrefix),isRelativePath:o.isRelativePath(e),tsExtensionsPattern:o.tsExtensionsPattern.test(r.parentURL),allowJs:a}),(e.startsWith(o.fileUrlPrefix)||o.isRelativePath(e))&&(o.tsExtensionsPattern.test(r.parentURL)||a)){const c=_(e,r,s);if(o.logEsm(3,"resolveBaseSync resolved",{specifier:e,context:r,resolved:c}),c)return c}try{return s(e,r)}catch(c){if(o.logEsm(3,"resolveBaseSync error",{specifier:e,context:r,error:c}),c instanceof Error){const d=c;if(j(d.code)){const i=L(d);if(i){const t=_(i,r,s);if(t)return t}}}throw c}},"resolveBaseSync"),$=l(async(e,r,s,n)=>{if(o.logEsm(3,"resolveDirectory",{specifier:e,context:r,isDirectory:o.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),o.isDirectoryPattern.test(e)){const a=new URL(e,r.parentURL);return a.pathname=E.join(a.pathname,"index"),await F(a.toString(),r,s,!0)}try{return await le(e,r,s,n)}catch(a){if(a instanceof Error){o.logEsm(3,"resolveDirectory error",{specifier:e,context:r,error:a});const c=a;if(c.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const d=L(c);if(d)try{return await F(`${d}/index`,r,s,!0)}catch(i){const t=i,{message:m}=t;throw t.message=t.message.replace(`${"/index".replace("/",E.sep)}'`,"'"),t.stack=t.stack.replace(m,t.message),t}}}throw a}},"resolveDirectory"),B=l((e,r,s,n)=>{if(o.logEsm(3,"resolveDirectorySync",{specifier:e,context:r,isDirectory:o.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),o.isDirectoryPattern.test(e)){const a=new URL(e,r.parentURL);return a.pathname=E.join(a.pathname,"index"),_(a.toString(),r,s,!0)}try{return me(e,r,s,n)}catch(a){if(a instanceof Error){o.logEsm(3,"resolveDirectorySync error",{specifier:e,context:r,error:a});const c=a;if(c.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const d=L(c);if(d)try{return _(`${d}/index`,r,s,!0)}catch(i){const t=i,{message:m}=t;throw t.message=t.message.replace(`${"/index".replace("/",E.sep)}'`,"'"),t.stack=t.stack.replace(m,t.message),t}}}throw a}},"resolveDirectorySync"),de=l(async(e,r,s,n)=>{if(o.logEsm(3,"resolveTsPaths",{specifier:e,context:r,requestAcceptsQuery:o.requestAcceptsQuery(e),tsconfig:n.parsedTsconfig,fromNodeModules:r.parentURL?.includes("/node_modules/")}),!o.requestAcceptsQuery(e)&&n.parsedTsconfig&&!r.parentURL?.includes("/node_modules/")){const a=o.wt(n.parsedTsconfig,e);o.logEsm(3,"resolveTsPaths",{possiblePaths:a});for(const c of a)try{return await $(y.pathToFileURL(c).toString(),r,s,n)}catch{}}return $(e,r,s,n)},"resolveTsPaths"),ue=l((e,r,s,n)=>{if(o.logEsm(3,"resolveTsPathsSync",{specifier:e,context:r,requestAcceptsQuery:o.requestAcceptsQuery(e),tsconfig:n.parsedTsconfig,fromNodeModules:r.parentURL?.includes("/node_modules/")}),!o.requestAcceptsQuery(e)&&n.parsedTsconfig&&!r.parentURL?.includes("/node_modules/")){const a=o.wt(n.parsedTsconfig,e);o.logEsm(3,"resolveTsPathsSync",{possiblePaths:a});for(const c of a)try{return B(y.pathToFileURL(c).toString(),r,s,n)}catch{}}return B(e,r,s,n)},"resolveTsPathsSync"),J="tsx://",pe=l(e=>e.conditions.includes("require")&&!e.conditions.includes("import"),"isCommonJsRequireContext"),fe=l(e=>{const r=l(async(s,n,a)=>{if(!e.active||s.startsWith("node:"))return a(s,n);let c=S(s)??(n.parentURL&&S(n.parentURL));if(e.namespace){let m;if(s.startsWith(J)){try{m=JSON.parse(s.slice(J.length))}catch{}m?.namespace&&(c=m.namespace)}if(e.namespace!==c)return a(s,n);m&&(s=m.specifier,n.parentURL=m.parentURL)}const[d,i]=s.split("?"),t=await de(d,n,a,e);return o.logEsm(2,"nextResolve",{resolved:t}),t.format==="builtin"||((!t.format||t.format==="commonjs-typescript"||t.format==="module-typescript")&&t.url.startsWith(o.fileUrlPrefix)&&(t.format=await re(t.url),o.logEsm(2,"getFormatFromFileUrl",{resolved:t,format:t.format})),i&&(t.url+=`?${i}`),c&&!t.url.includes(P)&&(t.url+=(t.url.includes("?")?"&":"?")+P+c)),t},"resolve2");return o.debugEnabled?async(s,n,a)=>{o.logEsm(2,"resolve",{specifier:s,context:n});const c=await r(s,n,a);return o.logEsm(1,"resolved",{specifier:s,context:n,result:c}),c}:r},"createResolve"),ge=l(e=>{const r=l((s,n,a)=>{if(!e.active||s.startsWith("node:")||pe(n)&&o.isGlobalCjsLoaderActive())return a(s,n);let c=S(s)??(n.parentURL&&S(n.parentURL));if(e.namespace){let m;if(s.startsWith(J)){try{m=JSON.parse(s.slice(J.length))}catch{}m?.namespace&&(c=m.namespace)}if(e.namespace!==c)return a(s,n);m&&(s=m.specifier,n.parentURL=m.parentURL)}const[d,i]=s.split("?"),t=ue(d,n,a,e);return o.logEsm(2,"nextResolve",{resolved:t}),t.format==="builtin"||((!t.format||t.format==="commonjs-typescript"||t.format==="module-typescript")&&t.url.startsWith(o.fileUrlPrefix)&&(t.format=te(t.url),o.logEsm(2,"getFormatFromFileUrlSync",{resolved:t,format:t.format})),i&&(t.url+=`?${i}`),c&&!t.url.includes(P)&&(t.url+=(t.url.includes("?")?"&":"?")+P+c)),t},"resolve2");return o.debugEnabled?(s,n,a)=>{o.logEsm(2,"resolveSync",{specifier:s,context:n});const c=r(s,n,a);return o.logEsm(1,"resolvedSync",{specifier:s,context:n,result:c}),c}:r},"createResolveSync"),ye=fe(T),H=l(e=>(r,s)=>{if(!s)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const n=s.startsWith(o.fileUrlPrefix)?s:y.pathToFileURL(s).toString();return import(`tsx://${JSON.stringify({specifier:r,parentURL:n,namespace:e})}`)},"createScopedImport");let G=!1;const he=l(e=>{const r=typeof R.registerHooks=="function"&&g.isFeatureSupported(g.moduleRegisterHooksCjsReload);if(!R.register&&!r)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!G){const{_resolveFilename:t}=R;R._resolveFilename=(m,...p)=>t(o.interopCjsExports(m),...p),G=!0}const{sourceMapsEnabled:s}=process;if(process.setSourceMapsEnabled(!0),r){const t=M({namespace:e?.namespace,onImport:e?.onImport,tsconfig:e?.tsconfig}),m=R.registerHooks({load:ce(t),resolve:ge(t)}),p=l(async()=>{t.active=!1,m.deregister(),s===!1&&process.setSourceMapsEnabled(!1)},"unregister2");return e?.namespace&&(p.import=H(e.namespace),p.unregister=p),p}const{port1:n,port2:a}=new X.MessageChannel;R.register(`./esm/index.mjs?${Date.now()}`,{parentURL:typeof document>"u"?require("url").pathToFileURL(__filename).href:I&&I.src||new URL("register-BwcD2ly9.cjs",document.baseURI).href,data:{port:a,namespace:e?.namespace,tsconfig:e?.tsconfig},transferList:[a]});const c=e?.onImport,d=c&&(t=>{t.type==="load"&&c(t.url)});d&&(n.on("message",d),n.unref());const i=l(()=>(s===!1&&process.setSourceMapsEnabled(!1),d&&n.off("message",d),n.postMessage("deactivate"),new Promise(t=>{const m=l(p=>{p.type==="deactivated"&&(t(),n.off("message",m))},"onDeactivated");n.on("message",m)})),"unregister");return e?.namespace&&(i.import=H(e.namespace),i.unregister=i),i},"register");exports.globalPreload=K,exports.initialize=D,exports.load=ie,exports.register=he,exports.resolve=ye;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";var gt=Object.defineProperty;var u=(e,t)=>gt(e,"name",{value:t,configurable:!0});var bt=require("./get-pipe-path-D4YM6rQt.cjs"),_=require("node:module"),h=require("node:path"),Pe=require("node:url"),Z=require("node:fs"),yt=require("fs"),vt=require("os"),kt=require("path"),ue=require("./index-C8LOAU3M.cjs"),Se=require("./client-D3mGB526.cjs"),xt=require("node:util"),B=require("./index-BWFBUo6r.cjs");const $e=u(e=>{if(!e.startsWith("data:text/javascript,"))return;const t=e.indexOf("?");if(t===-1)return;const n=new URLSearchParams(e.slice(t+1)).get("filePath");if(n)return n},"getOriginalFilePath"),De=u(e=>{const t=$e(e);return t&&(_._cache[t]=_._cache[e],delete _._cache[e],e=t),e},"interopCjsExports"),_e=u(e=>e!==null&&typeof e=="object","A"),N=u((e,t)=>Object.assign(new Error(`[${e}]: ${t}`),{code:e}),"a"),Le="ERR_INVALID_PACKAGE_CONFIG",fe="ERR_INVALID_PACKAGE_TARGET",wt="ERR_PACKAGE_PATH_NOT_EXPORTED",Et=/^\d+$/,Ct=/^(\.{1,2}|node_modules)$/i,Tt=/\/|\\/;var Fe=(e=>(e.Export="exports",e.Import="imports",e))(Fe||{});const de=u((e,t,r,n,o)=>{if(t==null)return[];if(typeof t=="string"){const[s,...i]=t.split(Tt);if(s===".."||i.some(c=>Ct.test(c)))throw N(fe,`Invalid "${e}" target "${t}" defined in the package config`);return[o?t.replace(/\*/g,o):t]}if(Array.isArray(t))return t.flatMap(s=>de(e,s,r,n,o));if(_e(t)){for(const s of Object.keys(t)){if(Et.test(s))throw N(Le,"Cannot contain numeric property keys");if(s==="default"||n.includes(s))return de(e,t[s],r,n,o)}return[]}throw N(fe,`Invalid "${e}" target "${t}"`)},"f"),J="*",jt=u((e,t)=>{const r=e.indexOf(J),n=t.indexOf(J);return r===n?t.length>e.length:n>r},"m");function Ot(e,t){if(!t.includes(J)&&e.hasOwnProperty(t))return[t];let r,n;for(const o of Object.keys(e))if(o.includes(J)){const[s,i,c]=o.split(J);if(c===void 0&&t.startsWith(s)&&t.endsWith(i)){const l=t.slice(s.length,-i.length||void 0);l&&(!r||jt(r,o))&&(r=o,n=l)}}return[r,n]}u(Ot,"d");const At=u(e=>Object.keys(e).reduce((t,r)=>{const n=r===""||r[0]!==".";if(t===void 0||t===n)return n;throw N(Le,'"exports" cannot contain some keys starting with "." and some not')},void 0),"p"),Pt=/^\w+:/,St=u((e,t,r)=>{if(!e)throw new Error('"exports" is required');t=t===""?".":`./${t}`,(typeof e=="string"||Array.isArray(e)||_e(e)&&At(e))&&(e={".":e});const[n,o]=Ot(e,t),s=de(Fe.Export,e[n],t,r,o);if(s.length===0)throw N(wt,t==="."?'No "exports" main defined':`Package subpath '${t}' is not defined by "exports"`);for(const i of s)if(!i.startsWith("./")&&!Pt.test(i))throw N(fe,`Invalid "exports" target "${i}" defined in the package config`);return s},"v");var $t=Object.defineProperty,a=u((e,t)=>$t(e,"name",{value:t,configurable:!0}),"i");function P(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}u(P,"x"),a(P,"slash");const Dt=a((e,t)=>{const r=`readFileSync:${t}`;let n=e?.get(r);return n===void 0&&(n=Z.readFileSync(t,"utf8"),e?.set(r,n)),n},"readFile"),$=a((e,t)=>{const r=`tryStat:${t}`;let n=e?.get(r);if(n===void 0){try{n=Z.statSync(t)}catch{n=null}e?.set(r,n)}return n??void 0},"tryStat"),G=a((e,t,r)=>{for(;;){const n=h.posix.join(e,t);if($(r,n))return n;const o=h.dirname(e);if(o===e)return;e=o}},"findUp");function Ue(e,t=!1){const r=e.length;let n=0,o="",s=0,i=16,c=0,l=0,m=0,g=0,d=0;function w(p,E){let O=0,x=0;for(;O<p;){let k=e.charCodeAt(n);if(k>=48&&k<=57)x=x*16+k-48;else if(k>=65&&k<=70)x=x*16+k-65+10;else if(k>=97&&k<=102)x=x*16+k-97+10;else break;n++,O++}return O<p&&(x=-1),x}u(w,"A"),a(w,"scanHexDigits");function v(p){n=p,o="",s=0,i=16,d=0}u(v,"O"),a(v,"setPosition");function y(){let p=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&U(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&U(e.charCodeAt(n)))for(n++;n<e.length&&U(e.charCodeAt(n));)n++;else return d=3,e.substring(p,n);let E=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&U(e.charCodeAt(n))){for(n++;n<e.length&&U(e.charCodeAt(n));)n++;E=n}else d=3;return e.substring(p,E)}u(y,"h"),a(y,"scanNumber");function C(){let p="",E=n;for(;;){if(n>=r){p+=e.substring(E,n),d=2;break}const O=e.charCodeAt(n);if(O===34){p+=e.substring(E,n),n++;break}if(O===92){if(p+=e.substring(E,n),n++,n>=r){d=2;break}switch(e.charCodeAt(n++)){case 34:p+='"';break;case 92:p+="\\";break;case 47:p+="/";break;case 98:p+="\b";break;case 102:p+="\f";break;case 110:p+=`
|
|
2
|
+
`;break;case 114:p+="\r";break;case 116:p+=" ";break;case 117:const x=w(4);x>=0?p+=String.fromCharCode(x):d=4;break;default:d=5}E=n;continue}if(O>=0&&O<=31)if(M(O)){p+=e.substring(E,n),d=2;break}else d=6;n++}return p}u(C,"D"),a(C,"scanString");function f(){if(o="",d=0,s=n,l=c,g=m,n>=r)return s=r,i=17;let p=e.charCodeAt(n);if(q(p)){do n++,o+=String.fromCharCode(p),p=e.charCodeAt(n);while(q(p));return i=15}if(M(p))return n++,o+=String.fromCharCode(p),p===13&&e.charCodeAt(n)===10&&(n++,o+=`
|
|
3
|
+
`),c++,m=n,i=14;switch(p){case 123:return n++,i=1;case 125:return n++,i=2;case 91:return n++,i=3;case 93:return n++,i=4;case 58:return n++,i=6;case 44:return n++,i=5;case 34:return n++,o=C(),i=10;case 47:const E=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!M(e.charCodeAt(n));)n++;return o=e.substring(E,n),i=12}if(e.charCodeAt(n+1)===42){n+=2;const O=r-1;let x=!1;for(;n<O;){const k=e.charCodeAt(n);if(k===42&&e.charCodeAt(n+1)===47){n+=2,x=!0;break}n++,M(k)&&(k===13&&e.charCodeAt(n)===10&&n++,c++,m=n)}return x||(n++,d=1),o=e.substring(E,n),i=13}return o+=String.fromCharCode(p),n++,i=16;case 45:if(o+=String.fromCharCode(p),n++,n===r||!U(e.charCodeAt(n)))return i=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=y(),i=11;default:for(;n<r&&b(p);)n++,p=e.charCodeAt(n);if(s!==n){switch(o=e.substring(s,n),o){case"true":return i=8;case"false":return i=9;case"null":return i=7}return i=16}return o+=String.fromCharCode(p),n++,i=16}}u(f,"c"),a(f,"scanNext");function b(p){if(q(p)||M(p))return!1;switch(p){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}u(b,"p"),a(b,"isUnknownContentCharacter");function j(){let p;do p=f();while(p>=12&&p<=15);return p}return u(j,"b"),a(j,"scanNextNonTrivia"),{setPosition:v,getPosition:a(()=>n,"getPosition"),scan:t?j:f,getToken:a(()=>i,"getToken"),getTokenValue:a(()=>o,"getTokenValue"),getTokenOffset:a(()=>s,"getTokenOffset"),getTokenLength:a(()=>n-s,"getTokenLength"),getTokenStartLine:a(()=>l,"getTokenStartLine"),getTokenStartCharacter:a(()=>s-g,"getTokenStartCharacter"),getTokenError:a(()=>d,"getTokenError")}}u(Ue,"Ne"),a(Ue,"createScanner");function q(e){return e===32||e===9}u(q,"X"),a(q,"isWhiteSpace");function M(e){return e===10||e===13}u(M,"P"),a(M,"isLineBreak");function U(e){return e>=48&&e<=57}u(U,"S"),a(U,"isDigit");var Re;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Re||(Re={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));const W=200;new Array(W).fill(0).map((e,t)=>`
|
|
4
|
+
`+" ".repeat(t)),new Array(W).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(W).fill(0).map((e,t)=>`\r
|
|
5
|
+
`+" ".repeat(t)),new Array(W).fill(0).map((e,t)=>`
|
|
6
|
+
`+" ".repeat(t)),new Array(W).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(W).fill(0).map((e,t)=>`\r
|
|
7
|
+
`+" ".repeat(t));var ee;(function(e){e.DEFAULT={allowTrailingComma:!1}})(ee||(ee={}));function Ie(e,t=[],r=ee.DEFAULT){let n=null,o=[];const s=[];function i(c){Array.isArray(o)?o.push(c):n!==null&&(o[n]=c)}return u(i,"l"),a(i,"onValue"),Be(e,{onObjectBegin:a(()=>{const c={};i(c),s.push(o),o=c,n=null},"onObjectBegin"),onObjectProperty:a(c=>{n=c},"onObjectProperty"),onObjectEnd:a(()=>{o=s.pop()},"onObjectEnd"),onArrayBegin:a(()=>{const c=[];i(c),s.push(o),o=c,n=null},"onArrayBegin"),onArrayEnd:a(()=>{o=s.pop()},"onArrayEnd"),onLiteralValue:i,onError:a((c,l,m)=>{t.push({error:c,offset:l,length:m})},"onError")},r),o[0]}u(Ie,"Re"),a(Ie,"parse$1");function Be(e,t,r=ee.DEFAULT){const n=Ue(e,!1),o=[];let s=0;function i(T){return T?()=>s===0&&T(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}u(i,"l"),a(i,"toNoArgVisit");function c(T){return T?A=>s===0&&T(A,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}u(c,"g"),a(c,"toOneArgVisit");function l(T){return T?A=>s===0&&T(A,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>o.slice()):()=>!0}u(l,"m"),a(l,"toOneArgVisitWithPath");function m(T){return T?()=>{s>0?s++:T(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>o.slice())===!1&&(s=1)}:()=>!0}u(m,"k"),a(m,"toBeginVisit");function g(T){return T?()=>{s>0&&s--,s===0&&T(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}u(g,"w"),a(g,"toEndVisit");const d=m(t.onObjectBegin),w=l(t.onObjectProperty),v=g(t.onObjectEnd),y=m(t.onArrayBegin),C=g(t.onArrayEnd),f=l(t.onLiteralValue),b=c(t.onSeparator),j=i(t.onComment),p=c(t.onError),E=r&&r.disallowComments,O=r&&r.allowTrailingComma;function x(){for(;;){const T=n.scan();switch(n.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:E||k(11);break;case 2:k(12);break;case 6:k(16);break}switch(T){case 12:case 13:E?k(10):j();break;case 16:k(1);break;case 15:case 14:break;default:return T}}}u(x,"v"),a(x,"scanNext");function k(T,A=[],Ae=[]){if(p(T),A.length+Ae.length>0){let Y=n.getToken();for(;Y!==17;){if(A.indexOf(Y)!==-1){x();break}else if(Ae.indexOf(Y)!==-1)break;Y=x()}}}u(k,"d"),a(k,"handleError");function D(T){const A=n.getTokenValue();return T?f(A):(w(A),o.push(A)),x(),!0}u(D,"L"),a(D,"parseString");function L(){switch(n.getToken()){case 11:const T=n.getTokenValue();let A=Number(T);isNaN(A)&&(k(2),A=0),f(A);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return x(),!0}u(L,"B"),a(L,"parseLiteral");function S(){return n.getToken()!==10?(k(3,[],[2,5]),!1):(D(!1),n.getToken()===6?(b(":"),x(),X()||k(4,[],[2,5])):k(5,[],[2,5]),o.pop(),!0)}u(S,"$"),a(S,"parseProperty");function I(){d(),x();let T=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(T||k(4,[],[]),b(","),x(),n.getToken()===2&&O)break}else T&&k(6,[],[]);S()||k(4,[],[2,5]),T=!0}return v(),n.getToken()!==2?k(7,[2],[]):x(),!0}u(I,"N"),a(I,"parseObject");function Oe(){y(),x();let T=!0,A=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(A||k(4,[],[]),b(","),x(),n.getToken()===4&&O)break}else A&&k(6,[],[]);T?(o.push(0),T=!1):o[o.length-1]++,X()||k(4,[],[4,5]),A=!0}return C(),T||o.pop(),n.getToken()!==4?k(8,[4],[]):x(),!0}u(Oe,"$e"),a(Oe,"parseArray");function X(){switch(n.getToken()){case 3:return Oe();case 1:return I();case 10:return D(!0);default:return L()}}return u(X,"H"),a(X,"parseValue"),x(),n.getToken()===17?r.allowEmptyContent?!0:(k(4,[],[]),!1):X()?(n.getToken()!==17&&k(9,[],[]),!0):(k(4,[],[]),!1)}u(Be,"Pe"),a(Be,"visit");var Ne;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Ne||(Ne={}));var Me;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(Me||(Me={}));const _t=Ie;var We;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(We||(We={}));const pe=a((e,t)=>_t(Dt(t,e)),"readJsonc"),Ve=a(()=>{const{findPnpApi:e}=_;return e&&e(process.cwd())},"getPnpApi"),Lt="detectTypeScriptVersion:",Ft=a((e,t)=>{const r=`${Lt}${e}`,n=t?.get(r);if(n!==void 0)return n??void 0;let o;const s=Ve();if(s)try{o=s.resolveRequest("typescript/package.json",e)??void 0}catch{}o??=G(h.resolve(e),h.join("node_modules","typescript","package.json"),t);let i;if(o)try{const c=pe(o,t);typeof c?.version=="string"&&(i=c.version)}catch{}return t?.set(r,i??null),i},"detectTypeScriptVersion"),R="package.json",te="tsconfig.json",Ut=a((e,t,r)=>{const n=_.createRequire(h.join(r,"tsconfig.json"));if(e!==t)try{return n.resolve(e)}catch{}try{return n.resolve(t)}catch{}try{return n.resolve(`${t}/${R}`)}catch{}},"resolvePackageEntryWithNode"),he=a((e,t,r,n)=>{const o=`resolveFromPackageJsonPath:${e}:${t}:${r}`;if(n?.has(o))return n.get(o)||!1;const s=pe(e,n);if(!s)return;let i=t||te;if(!r&&s.exports)try{const[c]=St(s.exports,t,["require","types"]);i=c}catch{return n?.set(o,""),!1}else!t&&s.tsconfig&&(i=s.tsconfig);return i=h.join(e,"..",i),n?.set(o,i),i},"resolveFromPackageJsonPath"),Rt=a((e,t,r)=>{const n=`resolveExtendsPath:${e}:${t}`;if(r?.has(n))return r.get(n)||void 0;const o=It(e,t,r);return r?.set(n,o||""),o},"resolveExtendsPath"),It=a((e,t,r)=>{let n=e;if(e===".."&&(n=h.join(n,te)),e[0]==="."&&(n=h.resolve(t,n)),h.isAbsolute(n)){const f=$(r,n);if(f){if(f.isFile())return n}else if(!n.endsWith(".json")){const b=`${n}.json`;if($(r,b))return b}return}const[o,...s]=e.split("/"),i=o[0]==="@"?`${o}/${s.shift()}`:o,c=s.join("/"),l=Ve();if(l){const{resolveRequest:f}=l;try{if(i===e){const b=f(h.join(i,R),t);if(b){const j=he(b,c,!1,r);if(j&&$(r,j))return j}}else{let b;try{b=f(e,t,{extensions:[".json"]})}catch{b=f(h.join(e,te),t)}if(b)return b}}catch{}}const m=Ut(e,i,t);let g;if(m){if(h.basename(m)!==R&&m.endsWith(".json"))return m;g=h.basename(m)===R?m:G(h.dirname(m),R,r)}const d=g&&h.dirname(g)||G(h.resolve(t),h.join("node_modules",i),r);if(!d||!$(r,d)?.isDirectory())return;const w=h.join(d,R);if($(r,w)){const f=he(w,c,!1,r);if(f===!1)return;if(f&&$(r,f)?.isFile())return f}const v=h.join(d,c),y=v.endsWith(".json");if(!y){const f=`${v}.json`;if($(r,f))return f}const C=$(r,v);if(C){if(C.isDirectory()){const f=h.join(v,R);if($(r,f)){const j=he(f,"",!0,r);if(j&&$(r,j))return j}const b=h.join(v,te);if($(r,b))return b}else if(y)return v}},"resolveExtendsPathUncached"),me=Symbol("implicitBaseUrl"),F="${configDir}",ge=/^\.{1,2}(\/.*)?$/,ne=a(e=>{const t=P(e);return ge.test(t)?t:`./${t}`},"normalizeRelativePath"),Bt=a(e=>{const t={...e};if(t.strict){const r=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const n of r)t[n]===void 0&&(t[n]=!0)}if(t.composite&&(t.declaration??=!0,t.incremental??=!0),t.target){let r=t.target.toLowerCase();r==="es2015"&&(r="es6"),t.target=r,r==="esnext"&&(t.module??="es6",t.useDefineForClassFields??=!0),(r==="es6"||r==="es2016"||r==="es2017"||r==="es2018"||r==="es2019"||r==="es2020"||r==="es2021"||r==="es2022"||r==="es2023"||r==="es2024"||r==="es2025")&&(t.module??="es6"),(r==="es2022"||r==="es2023"||r==="es2024"||r==="es2025")&&(t.useDefineForClassFields??=!0)}if(t.module){let r=t.module.toLowerCase();if(r==="es2015"&&(r="es6"),t.module=r,(r==="es6"||r==="es2020"||r==="es2022"||r==="esnext"||r==="none"||r==="system"||r==="umd"||r==="amd")&&(t.moduleResolution??="classic"),r==="system"&&(t.allowSyntheticDefaultImports??=!0),(r==="node16"||r==="node18"||r==="node20"||r==="nodenext"||r==="preserve")&&(t.esModuleInterop??=!0,t.allowSyntheticDefaultImports??=!0),(r==="node16"||r==="node18"||r==="node20"||r==="nodenext")&&(t.moduleDetection??="force"),(r==="node16"||r==="node18")&&(t.target??="es2022",t.moduleResolution??="node16"),r==="node20"&&(t.target??="es2023",t.moduleResolution??="node16",t.resolveJsonModule??=!0),r==="nodenext"&&(t.target??="esnext",t.moduleResolution??="nodenext",t.resolveJsonModule??=!0),r==="node16"||r==="node18"||r==="node20"||r==="nodenext"){const n=t.target;(n==="es3"||n==="es2022"||n==="es2023"||n==="es2024"||n==="esnext")&&(t.useDefineForClassFields??=!0)}r==="preserve"&&(t.moduleResolution??="bundler")}if(t.moduleResolution){let r=t.moduleResolution.toLowerCase();r==="node"&&(r="node10"),t.moduleResolution=r,(r==="node16"||r==="nodenext"||r==="bundler")&&(t.resolvePackageJsonExports??=!0,t.resolvePackageJsonImports??=!0),r==="bundler"&&(t.allowSyntheticDefaultImports??=!0,t.resolveJsonModule??=!0)}for(const r of["jsx","moduleDetection","importsNotUsedAsValues","newLine"])t[r]&&(t[r]=t[r].toLowerCase());return t.esModuleInterop&&(t.allowSyntheticDefaultImports??=!0),t.verbatimModuleSyntax&&(t.isolatedModules??=!0,t.preserveConstEnums??=!0),t.isolatedModules&&(t.preserveConstEnums??=!0),t.rewriteRelativeImportExtensions&&(t.allowImportingTsExtensions??=!0),t.lib&&(t.lib=t.lib.map(r=>r.toLowerCase())),t.checkJs&&(t.allowJs??=!0),t},"normalizeCompilerOptions"),Nt=a((e,t)=>{!t.has("target")&&!Mt(e.module)&&(e.target="es3")},"applyV4Defaults"),Mt=a(e=>e==="node16"||e==="node18"||e==="node20"||e==="nodenext","moduleDictatesTarget$1"),Wt=a((e,t)=>{!t.has("target")&&!Vt(e.module)&&(e.target="es5")},"applyV5Defaults"),Vt=a(e=>e==="node16"||e==="node18"||e==="node20"||e==="nodenext","moduleDictatesTarget"),Jt=a((e,t)=>{t.has("strict")||(e.strict=!0),t.has("target")||(e.target="es2025"),t.has("module")||(e.module="es2022"),t.has("moduleResolution")||(e.moduleResolution="bundler"),t.has("rootDir")||(e.rootDir="."),t.has("types")||(e.types=[]),t.has("noUncheckedSideEffectImports")||(e.noUncheckedSideEffectImports=!0),t.has("libReplacement")||(e.libReplacement=!1)},"applyV6Defaults"),Gt=[[4,Nt],[5,Wt],[6,Jt]],Qt=a(e=>{const t=/^v?(\d+)/.exec(e);return t?Number(t[1]):void 0},"parseMajor"),Kt=a((e,t)=>{const r=Qt(t);if(r===void 0)return;const n=new Set(Object.keys(e));for(const[o,s]of Gt)o<=r&&s(e,n)},"applyVersionDefaults"),be=a((e,t)=>ne(h.relative(e,t)),"pathRelative"),Je=["files","include","exclude"],Ge=a((e,t,r)=>{const n=h.join(t,r),o=h.relative(e,n);return P(o)||"./"},"resolveAndRelativize"),zt=a((e,t,r)=>{const n=h.relative(e,t);if(!n)return r;const o=r.startsWith("./")?r.slice(2):r;return P(`${n}/${o}`)},"prefixPattern"),Qe=["outDir","declarationDir"],re=a((e,t)=>{if(e.startsWith(F))return P(h.join(t,e.slice(F.length)))},"interpolateConfigDir"),Ht=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],Xt=a((e,t={})=>{if(e.length===0)throw new Error("Chain must not be empty");const{typescriptVersion:r}=t,n=new Map(e.map(d=>[d.path,d])),o=new Map,s=a(d=>{const w=o.get(d);if(w)return w;const v=n.get(d);if(!v)throw new Error(`Config not found in chain: ${d}`);const y=v.config,C=h.dirname(d);let f={...y,...y.compilerOptions&&{compilerOptions:{...y.compilerOptions}},...y.watchOptions&&{watchOptions:{...y.watchOptions}}};if(delete f.extends,f.compilerOptions?.paths&&!f.compilerOptions.baseUrl&&(f.compilerOptions[me]=C),y.extends){const b=Array.isArray(y.extends)?y.extends:[y.extends];for(const j of b.toReversed()){const p=s(j),E=h.dirname(j),{references:O,...x}=p;if(x.compilerOptions){const D={...x.compilerOptions};for(const L of["baseUrl","outDir","declarationDir","rootDir"]){const S=D[L];S&&!S.startsWith(F)&&(D[L]=Ge(C,E,S))}for(const L of["rootDirs","typeRoots"]){const S=D[L];S&&(D[L]=S.map(I=>I.startsWith(F)?I:Ge(C,E,I)))}x.compilerOptions=D}for(const D of Je){const L=x[D];L&&(x[D]=L.map(S=>S.startsWith(F)?S:zt(C,E,S)))}const k={...x,...f,compilerOptions:{...x.compilerOptions,...f.compilerOptions}};x.watchOptions&&(k.watchOptions={...x.watchOptions,...f.watchOptions}),f=k}}if(f.compilerOptions){const{compilerOptions:b}=f,j=["baseUrl","rootDir"];for(const p of j){const E=b[p];if(E&&!E.startsWith(F)){const O=h.resolve(C,E),x=be(C,O);b[p]=x}}for(const p of Qe){let E=b[p];E&&(Array.isArray(f.exclude)||(f.exclude=Qe.map(O=>b[O]).filter(Boolean)),E.startsWith(F)||(E=ne(E)),b[p]=E)}}else f.compilerOptions={};if(f.include&&(f.include=f.include.map(P)),f.files&&(f.files=f.files.map(b=>b.startsWith(F)?b:ne(b))),f.watchOptions){const{watchOptions:b}=f;for(const j of["excludeDirectories","excludeFiles"])b[j]&&(b[j]=b[j].map(p=>P(h.resolve(C,p))));for(const j of["watchFile","watchDirectory","fallbackPolling"])if(b[j]){const p=b;p[j]=b[j].toLowerCase()}}return o.set(d,f),f},"resolveEntry"),i=e[0],c=s(i.path),l=h.dirname(i.path),m={...c,compilerOptions:c.compilerOptions?{...c.compilerOptions}:{}},{compilerOptions:g}=m;if(g){for(const d of Ht){const w=g[d];if(w){const v=re(w,l);g[d]=v?be(l,v):w}}for(const d of["rootDirs","typeRoots"]){const w=g[d];w&&(g[d]=w.map(v=>{const y=re(v,l);return y?be(l,y):ne(v)}))}if(g.paths){const d={};for(const[w,v]of Object.entries(g.paths))d[w]=v.map(y=>re(y,l)??y);g.paths=d}r&&Kt(g,r),m.compilerOptions=Bt(g)}for(const d of Je){const w=m[d];w&&(m[d]=w.map(v=>re(v,l)??v))}return{path:i.path,config:m,sources:e.map(d=>d.path)}},"resolveExtendsChain"),Yt=a((e,t={})=>{const{cache:r=new Map}=t,n=h.resolve(e),o=[],s=new Set,i=a((c,l)=>{const m=P(c);if(s.has(m))return;s.add(m);let g;try{g=pe(c,r)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${c}`)}if(typeof g!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${c}`);const d=h.dirname(c);if(g.extends){const w=Array.isArray(g.extends),v=(w?g.extends:[g.extends]).map(C=>{const f=Rt(C,d,r);if(!f)throw new Error(`File '${C}' not found.`);const b=P(f);if(l.has(b)||b===m)throw new Error(`Circularity detected while resolving configuration: ${b}`);return b});g.extends=w?v:v[0],o.push({path:m,config:g});const y=new Set(l);y.add(m);for(const C of[...v].reverse())i(C,y)}else o.push({path:m,config:g})},"collect");return i(n,new Set),o},"getExtendsChain"),ye=a((e,t={})=>{const{cache:r=new Map,typescriptVersion:n="auto"}=t,o=Yt(e,{cache:r});let s;return n==="auto"?s=Ft(h.dirname(o[0].path),r):n!==!1&&(s=n),Xt(o,{typescriptVersion:s})},"readTsconfig");var Zt=Object.defineProperty,oe=a((e,t)=>Zt(e,"name",{value:t,configurable:!0}),"s");const Ke=oe(e=>{let t="";for(let r=0;r<e.length;r+=1){const n=e[r],o=n.toUpperCase();t+=n===o?n.toLowerCase():o}return t},"invertCase"),ve=new Map,ze=oe((e,t)=>{const r=kt.join(e,`.is-fs-case-sensitive-test-${process.pid}`);try{return t.writeFileSync(r,""),!t.existsSync(Ke(r))}finally{try{t.unlinkSync(r)}catch{}}},"checkDirectoryCaseWithWrite"),qt=oe((e,t,r)=>{try{return ze(e,r)}catch(n){if(t===void 0)return ze(vt.tmpdir(),r);throw n}},"checkDirectoryCaseWithFallback"),en=oe((e,t=yt,r=!0)=>{const n=e??process.cwd();if(r&&ve.has(n))return ve.get(n);let o;const s=Ke(n);return s!==n&&t.existsSync(n)?o=!t.existsSync(s):o=qt(n,e,t),r&&ve.set(n,o),o},"isFsCaseSensitive"),{join:He}=h.posix,ke={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},tn=a(e=>{const t=[...ke.ts],r=[...ke.cts],n=[...ke.mts];return e?.allowJs&&(t.push(".js",".jsx"),r.push(".cjs"),n.push(".mjs")),[...t,...r,...n]},"getSupportedExtensions"),nn=a(e=>{const t=[];if(!e)return t;const{outDir:r,declarationDir:n}=e;return r&&t.push(r),n&&t.push(n),t},"getDefaultExcludeSpec"),Xe=a(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),rn=["node_modules","bower_components","jspm_packages"],xe=`(?!(${rn.join("|")})(/|$))`,on=/(?:^|\/)[^.*?]+$/,Ye="**/*",se="[^/]",we="[^./]",Ze=process.platform==="win32",sn=a(({config:e,path:t},r)=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or readTsconfig to resolve it.");if(!h.isAbsolute(t))throw new Error("The tsconfig path must be absolute");Ze&&(t=P(t));const n=h.dirname(t),{files:o,include:s,exclude:i,compilerOptions:c}=e,l=a(C=>h.isAbsolute(C)?C:He(n,C),"resolvePattern"),m=o?new Set(o.map(l)):void 0,g=tn(c),d=r?"":"i",w=(i||nn(c)).map(C=>{const f=l(C),b=Xe(f).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${se}*`).replaceAll(String.raw`\?`,se);return new RegExp(`^${b}($|/)`,d)}),v=o||s?s:[Ye],y=v?v.map(C=>{let f=l(C);on.test(f)&&(f=He(f,Ye));const b=Xe(f).replaceAll(String.raw`/\*\*`,`(/${xe}${we}${se}*)*?`).replaceAll(/(\/)?\\\*/g,(j,p)=>{const E=String.raw`(${we}|(\.(?!min\.js$))?)*`;return p?`/${xe}${we}${E}`:E}).replaceAll(/(\/)?\\\?/g,(j,p)=>{const E=se;return p?`/${xe}${E}`:E});return new RegExp(`^${b}$`,d)}):void 0;return{filesSet:m,extensions:g,excludePatterns:w,includePatterns:y}},"compilePatterns"),qe=new WeakMap,Ee=a((e,t)=>{if(!h.isAbsolute(t))return!1;Ze&&(t=P(t));let r=qe.get(e);r||(r=sn(e,en()),qe.set(e,r));const{filesSet:n,extensions:o,excludePatterns:s,includePatterns:i}=r;return n?.has(t)?!0:!o.some(c=>t.endsWith(c))||s.some(c=>c.test(t))?!1:!!(i&&i.some(c=>c.test(t)))},"isFileIncluded"),et=a((e,t,r,n)=>{const o=h.resolve(e);let s=P(e);for(;;){const i=G(s,t,r);if(!i)return;const c=h.resolve(i),l=ye(c,{cache:r,typescriptVersion:n});if(Ee(l,o))return l;const m=h.dirname(i),g=h.dirname(m);if(g===m)return;s=g}},"findConfigApplicable"),an=a((e=process.cwd(),t={})=>{const{configName:r="tsconfig.json",cache:n=new Map,includes:o=!1}=t;if(!o){const s=h.resolve(e);return h.basename(s)===r&&$(n,s)?.isFile()?P(s):G(P(e),r,n)}return et(e,r,n,!1)?.path},"findTsconfig"),cn=a((e=process.cwd(),t={})=>{const{configName:r="tsconfig.json",cache:n=new Map,includes:o=!1,typescriptVersion:s="auto"}=t;if(!o){const i=an(e,{configName:r,cache:n});return i?ye(i,{cache:n,typescriptVersion:s}):void 0}return et(e,r,n,s)},"getTsconfig"),ln=/\*/g,tt=a((e,t)=>{const r=e.match(ln);if(r&&r.length>1)throw new Error(t)},"assertStarCount"),un=a(e=>{if(e.includes("*")){const[t,r]=e.split("*");return{prefix:t,suffix:r}}return e},"parsePattern"),fn=a(({prefix:e,suffix:t},r)=>r.startsWith(e)&&r.endsWith(t),"isPatternMatch"),dn=a((e,t,r)=>Object.entries(e).map(([n,o])=>(tt(n,`Pattern '${n}' can have at most one '*' character.`),{pattern:un(n),substitutions:o.map(s=>{if(tt(s,`Substitution '${s}' in pattern '${n}' can have at most one '*' character.`),!t&&!ge.test(s)&&!h.isAbsolute(s))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return h.resolve(r,s)})})),"parsePaths"),pn=a(e=>{const{compilerOptions:t}=e.config;if(!t)return null;const{baseUrl:r,paths:n}=t;if(!r&&!n)return null;const o=me in t&&t[me],s=h.resolve(h.dirname(e.path),r||o||"."),i=n?dn(n,r,s):[],c=new Map,l=[];for(const m of i)typeof m.pattern=="string"?c.set(m.pattern,m.substitutions):l.push(m);return{exactEntries:c,patternEntries:l,resolvedBaseUrl:s,baseUrl:r}},"compilePaths"),nt=new WeakMap,rt=a((e,t)=>{let r=nt.get(e);if(r===void 0&&(r=pn(e),nt.set(e,r)),!r)return[];if(ge.test(t))return[];const{exactEntries:n,patternEntries:o,resolvedBaseUrl:s,baseUrl:i}=r,c=n.get(t);if(c)return c.map(P);let l,m=-1;for(const d of o)fn(d.pattern,t)&&d.pattern.prefix.length>m&&(m=d.pattern.prefix.length,l=d);if(!l)return i?[P(h.join(s,t))]:[];const g=t.slice(l.pattern.prefix.length,t.length-l.pattern.suffix.length);return l.substitutions.map(d=>P(d.replace("*",g)))},"resolvePathAlias"),ot=u(e=>{if(e)return ye(e);try{return cn()??void 0}catch{}},"loadTsconfig"),hn=`
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,`,st=u(()=>process.sourceMapsEnabled??!0,"shouldApplySourceMap"),Ce=u(({code:e,map:t})=>e+hn+Buffer.from(JSON.stringify(t),"utf8").toString("base64"),"inlineSourceMap"),Q=Symbol.for("tsx:global-cjs-loader-count"),K=globalThis,mn=u(()=>(K[Q]??0)>0,"isGlobalCjsLoaderActive"),gn=u(()=>(K[Q]=(K[Q]??0)+1,()=>{K[Q]=Math.max((K[Q]??1)-1,0)}),"activateGlobalCjsLoader"),bn=u(e=>{const t=e.indexOf(":");if(t!==-1)return e.slice(0,t)},"getScheme"),it=u(e=>e[0]==="."&&(e[1]==="/"||e[1]==="."||e[2]==="/"),"isRelativePath"),z=u(e=>it(e)||h.isAbsolute(e),"isFilePath"),yn=u(e=>{if(z(e))return!0;const t=bn(e);return t&&t!=="node"},"requestAcceptsQuery"),ie="file://",vn=[".ts",".tsx",".jsx",".mts",".cts"],at=/\.([cm]?ts|[tj]sx)($|\?)/,kn=/[/\\].+\.(?:cts|cjs)(?:$|\?)/,xn=/\.json($|\?)/,ae=/\/(?:$|\?)/,wn=/^(?:@[^/]+\/)?[^/\\]+$/,ct=`${h.sep}node_modules${h.sep}`,ce=Number(process.env.TSX_DEBUG);ce&&(B.options.enabled=!0,B.options.supportLevel=3);const lt=u(e=>(t,...r)=>{if(!ce||t>ce)return;const n=`${B.bgGray(` tsx P${process.pid} `)} ${e}`,o=r.map(s=>typeof s=="string"?s:xt.inspect(s,{colors:!0})).join(" ");Z.writeSync(1,`${n} ${o}
|
|
9
|
+
`)},"createLog"),V=lt(B.bgLightYellow(B.black(" CJS "))),En=lt(B.bgBlue(" ESM ")),ut=[".js",".json"],ft=[".ts",".tsx",".jsx"],Cn=[...ft,...ut],Tn=[...ut,...ft],H=Object.create(null);H[".js"]=[".ts",".tsx",".js",".jsx"],H[".jsx"]=[".tsx",".ts",".jsx",".js"],H[".cjs"]=[".cts"],H[".mjs"]=[".mts"];const dt=u(e=>{const t=e.split("?"),r=t[1]?`?${t[1]}`:"",[n]=t,o=h.extname(n),s=[],i=H[o];if(i){const l=n.slice(0,-o.length);s.push(...i.map(m=>l+m+r))}const c=!(e.startsWith(ie)||z(n))||n.includes(ct)||n.includes("/node_modules/")?Tn:Cn;return s.push(...c.map(l=>n+l+r)),s},"mapTsExtensions"),Te=u(e=>Array.from(e).length>0?`?${e.toString()}`:"","urlSearchParamsStringify"),jn=[".cts",".mts",".ts",".tsx",".jsx"],On=[".js",".cjs",".mjs"],pt=[".ts",".tsx",".jsx"],je=u((e,t,r,n)=>{const o=Object.getOwnPropertyDescriptor(e,t);o?.set?e[t]=r:(!o||o.configurable)&&Object.defineProperty(e,t,{value:r,enumerable:o?.enumerable||n?.enumerable,writable:n?.writable??(o?o.writable:!0),configurable:n?.configurable??(o?o.configurable:!0)})},"safeSet"),An=u((e,t,r,n)=>{const o=t[".js"],s=u((i,c)=>{if(e.enabled===!1)return o(i,c);const[l,m]=c.split("?");if((new URLSearchParams(m).get("namespace")??void 0)!==n)return o(i,c);V(2,"load",{filePath:c}),i.id.startsWith("data:text/javascript,")&&(i.path=h.dirname(l)),Se.parent?.send&&Se.parent.send({type:"dependency",path:l});const d=jn.some(y=>l.endsWith(y)),w=On.some(y=>l.endsWith(y));if(!d&&!w)return o(i,l);let v=Z.readFileSync(l,"utf8");if(l.endsWith(".cjs")){const y=ue.transformDynamicImport(c,v);y&&(v=st()?Ce(y):y.code)}else if(d||ue.isESM(v)){const y=ue.transformSync(v,c,{tsconfigRaw:r&&Ee(r,l)?r.config:void 0});v=st()?Ce(y):y.code}V(1,"loaded",{filePath:l}),i._compile(v,l)},"transformer");je(t,".js",s);for(const i of pt)je(t,i,s,{enumerable:!n,writable:!0,configurable:!0});return je(t,".mjs",s,{writable:!0,configurable:!0}),()=>{t[".js"]===s&&(t[".js"]=o);for(const i of[...pt,".mjs"])t[i]===s&&delete t[i]}},"createExtensions"),Pn=u(e=>t=>{if((t==="."||t===".."||t.endsWith("/.."))&&(t+="/"),ae.test(t)){let r=h.join(t,"index");t.startsWith("./")&&(r=`./${r}`);try{return e(r)}catch{}}try{return e(t)}catch(r){const n=r;if(n.code==="MODULE_NOT_FOUND")try{return e(`${t}${h.sep}index`)}catch{}throw n}},"createImplicitResolver"),le=u((e,t,r,n)=>{if(V(3,"resolveTsFilename",{request:t,isDirectory:ae.test(t),isTsParent:r,allowJs:n}),ae.test(t)||!r&&!n)return;const o=dt(t);if(o)for(const s of o)try{return e(s)}catch(i){const{code:c}=i;if(c!=="MODULE_NOT_FOUND"&&c!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw i}},"resolveTsFilename"),Sn=u((e,t,r)=>n=>{if(V(3,"resolveTsFilename",{request:n,isTsParent:t,isFilePath:z(n)}),z(n)){const o=le(e,n,t,r);if(o)return o}try{return e(n)}catch(o){const s=o;if(s.code==="MODULE_NOT_FOUND"){if(s.path){const c=s.message.match(/^Cannot find module '([^']+)'$/);if(c){const m=c[1],g=le(e,m,t,r);if(g)return g}const l=s.message.match(/^Cannot find module '([^']+)'. Please verify that the package.json has a valid "main" entry$/);if(l){const m=l[1],g=le(e,m,t,r);if(g)return g}}const i=le(e,n,t,r);if(i)return i}throw s}},"createTsExtensionResolver"),ht="at cjsPreparseModuleExports (node:internal",$n=u(e=>{const t=e.stack.split(`
|
|
10
|
+
`).slice(1);return t[1].includes(ht)||t[2].includes(ht)},"isFromCjsLexer"),Dn=u((e,t)=>{const r=e.split("?"),n=new URLSearchParams(r[1]);if(t?.filename){const o=$e(t.filename);let s;if(o){const l=o.split("?"),m=l[0];s=l[1],t.filename=m,t.path=h.dirname(m),t.paths=_._nodeModulePaths(t.path),_._cache[m]=t}s||(s=t.filename.split("?")[1]);const c=new URLSearchParams(s).get("namespace");c&&n.append("namespace",c)}return[r[0],n,(o,s)=>(h.isAbsolute(o)&&!o.endsWith(".json")&&!o.endsWith(".node")&&!(s===0&&$n(new Error))&&(o+=Te(n)),o)]},"preserveQuery"),_n=u((e,t,r,n)=>{if(e.startsWith(ie)&&(e=Pe.fileURLToPath(e)),n&&!z(e)&&!t?.filename?.includes(ct)){const o=rt(n,e);for(const s of o)try{return r(s)}catch{}}return r(e)},"resolveTsPaths"),Ln=u((e,t,r,n)=>(o,s,...i)=>{if(e.enabled===!1)return t(o,s,...i);o=De(o);const[c,l,m]=Dn(o,s);if((l.get("namespace")??void 0)!==n)return t(o,s,...i);V(2,"resolve",{request:o,parent:s?.filename??s,restOfArgs:i});let g=u(w=>t(w,s,...i),"nextResolveSimple");g=Sn(g,!!(n||s?.filename&&at.test(s.filename)),r?.config.compilerOptions?.allowJs??!1),g=Pn(g);const d=m(_n(c,s,g,r),i.length);return V(1,"resolved",{request:o,parent:s?.filename??s,resolved:d}),d},"createResolveFilename"),mt=u((e,t)=>{if(!t)throw new Error("The current file path (__filename or import.meta.url) must be provided in the second argument of tsx.require()");return e.startsWith(".")?((typeof t=="string"&&t.startsWith(ie)||t instanceof URL)&&(t=Pe.fileURLToPath(t)),h.resolve(h.dirname(t),e)):e},"resolveContext"),Fn=u(e=>{const{sourceMapsEnabled:t}=process,r={enabled:!0},n=ot(process.env.TSX_TSCONFIG_PATH);process.setSourceMapsEnabled(!0);const o=_._resolveFilename,s=Ln(r,o,n,e?.namespace);_._resolveFilename=s;const i=An(r,_._extensions,n,e?.namespace),c=e?.namespace?void 0:gn(),l=u(()=>{t===!1&&process.setSourceMapsEnabled(!1),r.enabled=!1,_._resolveFilename===s&&(_._resolveFilename=o),i(),c?.()},"unregister");if(e?.namespace){const m=u((d,w)=>{const v=mt(d,w),[y,C]=v.split("?"),f=new URLSearchParams(C);return e.namespace&&!y.startsWith("node:")&&f.set("namespace",e.namespace),bt.require(y+Te(f))},"scopedRequire");l.require=m;const g=u((d,w,v)=>{const y=mt(d,w),[C,f]=y.split("?"),b=new URLSearchParams(f);return e.namespace&&!C.startsWith("node:")&&b.set("namespace",e.namespace),s(C+Te(b),module,!1,v)},"scopedResolve");l.resolve=g,l.unregister=l}return l},"register");exports.cjsExtensionPattern=kn,exports.debugEnabled=ce,exports.fileUrlPrefix=ie,exports.inlineSourceMap=Ce,exports.interopCjsExports=De,exports.isBarePackageNamePattern=wn,exports.isDirectoryPattern=ae,exports.isGlobalCjsLoaderActive=mn,exports.isJsonPattern=xn,exports.isRelativePath=it,exports.je=Ee,exports.loadTsconfig=ot,exports.logEsm=En,exports.mapTsExtensions=dt,exports.register=Fn,exports.requestAcceptsQuery=yn,exports.tsExtensions=vn,exports.tsExtensionsPattern=at,exports.wt=rt;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var ae=Object.defineProperty;var i=(e,t)=>ae(e,"name",{value:t,configurable:!0});import S from"node:module";import{MessageChannel as ce}from"node:worker_threads";import{i as j,b as ie,e as q,m as me}from"./node-features-Eq_kCbjt.mjs";import{l as H,t as G,d as E,a as d,f,b as g,e as w,g as $,j as de,h as pe,k as L,w as Q,m as J,n as X,o as _,p as le}from"./register-BQpI82el.mjs";import{fileURLToPath as F,pathToFileURL as b}from"node:url";import N,{readFileSync as ue}from"node:fs";import{readFile as fe}from"node:fs/promises";import{i as K,a as W,t as ge,b as z,c as ye,r as he}from"./index-CDeh32pY.mjs";import{p as V}from"./client-D_mPDF5S.mjs";import h from"node:path";const T={active:!0,parsedTsconfig:void 0},Y=i(e=>{const t={active:!0,namespace:e?.namespace,onImport:e?.onImport,parsedTsconfig:void 0,port:e?.port,tsconfig:e?.tsconfig};return e?.tsconfig!==!1&&(t.parsedTsconfig=H(e?.tsconfig??process.env.TSX_TSCONFIG_PATH)),t},"createData"),Re=i(async e=>{if(!e)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
+
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);Object.assign(T,Y(e)),e.port&&e.port.on("message",t=>{t==="deactivate"&&(T.active=!1,e.port.postMessage({type:"deactivated"}))})},"initialize"),Se=i(()=>(T.parsedTsconfig=H(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"globalPreload"),y=new Map,we=i(async e=>{if(y.has(e))return y.get(e);if(!await N.promises.access(e).then(()=>!0,()=>!1)){y.set(e,void 0);return}const s=await N.promises.readFile(e,"utf8");try{const n=JSON.parse(s);return y.set(e,n),n}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJson"),ve=i(e=>{if(y.has(e))return y.get(e);if(!N.existsSync(e)){y.set(e,void 0);return}const t=N.readFileSync(e,"utf8");try{const s=JSON.parse(t);return y.set(e,s),s}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJsonSync"),Ue=i(async e=>{let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const s=F(t),n=await we(s);if(n)return n;const o=t;if(t=new URL("../package.json",t),t.pathname===o.pathname)break}},"findPackageJson"),Pe=i(e=>{let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const s=F(t),n=ve(s);if(n)return n;const o=t;if(t=new URL("../package.json",t),t.pathname===o.pathname)break}},"findPackageJsonSync"),Te=i(async e=>(await Ue(e))?.type??"commonjs","getPackageType"),je=i(e=>Pe(e)?.type??"commonjs","getPackageTypeSync"),Ee=i(e=>{const{pathname:t}=new URL(e),s=h.extname(t);if(s===".mts"||s===".mjs")return"module";if(s===".cts"||s===".cjs")return"commonjs";if(s===".js"||G.includes(s))return Te(e)},"getFormatFromFileUrl"),Le=i(e=>{const{pathname:t}=new URL(e),s=h.extname(t);if(s===".mts"||s===".mjs")return"module";if(s===".cts"||s===".cjs")return"commonjs";if(s===".js"||G.includes(s))return je(e)},"getFormatFromFileUrlSync"),v="tsx-namespace=",R=i(e=>{const t=e.indexOf(v);if(t===-1)return;const s=e[t-1];if(s!=="?"&&s!=="&")return;const n=t+v.length,o=e.indexOf("&",n);return o===-1?e.slice(n):e.slice(n,o)},"getNamespace"),Z=j(ie)?"importAttributes":"importAssertions",D=i(e=>e==="commonjs"||e==="commonjs-typescript","isCommonJsFormat"),x=i(e=>e==="module-typescript"||e==="typescript","isModuleTypeScriptFormat"),U=i((e,t)=>t.parsedTsconfig&&de(t.parsedTsconfig,e)?t.parsedTsconfig.config:void 0,"getTsconfigRaw"),Je=i((e,t)=>{const s=new URL(t);s.searchParams.delete("tsx-namespace");const n=s.toString();e.port&&e.port.postMessage({type:"load",url:n}),e.onImport?.(n)},"notifyLoad"),ee=i((e,t)=>{if(!e.active)return!1;const s=R(t);return e.namespace&&e.namespace!==s?!1:(Je(e,t),V.send&&V.send({type:"dependency",path:t}),!0)},"prepareLoad"),se=i((e,t)=>{if(!pe.test(e))return t;const s=t[Z];return s?.type?t:{...t,[Z]:{...s,type:"json"}}},"prepareJsonAttributes"),_e=i(e=>e.conditions.includes("require")&&!e.conditions.includes("import"),"isCommonJsRequireContext$1"),Fe=i(e=>{const t=i(async(s,n,o)=>{if(!ee(e,s))return o(s,n);const a=R(s),p=se(s,n),c=await o(s,p);d(3,"loaded by next loader",{url:s,loaded:c});const r=s.startsWith(f)?F(s):s,m=c.format;if(D(m)&&j(q)&&c.responseURL?.startsWith("file:")&&!r.endsWith(".cjs")){const l=await fe(new URL(s),"utf8");if(m==="commonjs-typescript"||!r.endsWith(".js")||K(l)){const P=W(l,r,{tsconfigRaw:U(r,e)}),A=a?`${r}?namespace=${encodeURIComponent(a)}`:r;return c.format="commonjs",(m==="commonjs-typescript"||r.endsWith(".cts"))&&(c.source=g(P)),c.responseURL=`data:text/javascript,${encodeURIComponent(P.code)}?filePath=${encodeURIComponent(A)}`,d(3,"returning CJS export annotation",c),c}}if(!c.source)return c;const u=c.source.toString();if(m==="commonjs-typescript"){const l=W(u,r,{tsconfigRaw:U(r,e)});return{...c,format:"commonjs",source:g(l)}}if(c.format==="json"||x(m)||w.test(s)){const l=await ge(u,r,{tsconfigRaw:U(r,e)});return{format:"module",source:g(l)}}if(c.format==="module"){const l=z(r,u);l&&(c.source=g(l))}return c},"load2");return E?async(s,n,o)=>{d(2,"load",{url:s,context:n});const a=await t(s,n,o);return d(1,"loaded",{url:s,result:a}),a}:t},"createLoad"),be=i(e=>{const t=i((s,n,o)=>{if(_e(n)&&$()||!ee(e,s))return o(s,n);const a=R(s),p=se(s,n),c=o(s,p);d(3,"loaded by next loader",{url:s,loaded:c});const r=s.startsWith(f)?F(s):s,m=c.format;if(D(m)&&j(q)&&c.responseURL?.startsWith("file:")&&!r.endsWith(".cjs")){const l=ue(new URL(s),"utf8");if(m==="commonjs-typescript"||!r.endsWith(".js")||K(l)){const P=W(l,r,{tsconfigRaw:U(r,e)}),A=a?`${r}?namespace=${encodeURIComponent(a)}`:r,B=!a&&$();return c.format="commonjs",c.shouldBeReloadedByCJSLoader=B,c.source=g(P),B||(c.responseURL=`data:text/javascript,${encodeURIComponent(P.code)}?filePath=${encodeURIComponent(A)}`),d(3,"returning CJS export annotation",c),c}}if(!c.source)return c;const u=c.source.toString();if(m==="commonjs-typescript"){const l=W(u,r,{tsconfigRaw:U(r,e)});return{...c,format:"commonjs",shouldBeReloadedByCJSLoader:!1,source:g(l)}}if(c.format==="json"||x(m)||w.test(s)){const l=ye(u,r,{tsconfigRaw:U(r,e)});return{format:"module",source:g(l)}}if(c.format==="module"){const l=z(r,u);l&&(c.source=g(l))}return c},"load2");return E?(s,n,o)=>{d(2,"loadSync",{url:s,context:n});const a=t(s,n,o);return d(1,"loadedSync",{url:s,result:a}),a}:t},"createLoadSync"),Ne=Fe(T),C=i(e=>{if(e.url)return e.url;const t=e.message.match(/^Cannot find module '([^']+)'/);if(t){const[,n]=t;return n}const s=e.message.match(/^Cannot find package '([^']+)'/);if(s){const[,n]=s;if(!h.isAbsolute(n))return;const o=b(n);if(o.pathname.endsWith("/")&&(o.pathname+="package.json"),o.pathname.endsWith("/package.json")){const a=he(o);if(a?.main)return new URL(a.main,o).toString()}else return o.toString()}},"getMissingPathFromNotFound"),I=i(e=>e==="ERR_MODULE_NOT_FOUND"||e==="MODULE_NOT_FOUND","isModuleNotFound"),O=i(async(e,t,s,n)=>{const o=X(e);if(d(3,"resolveExtensions",{url:e,context:t,throwError:n,tryPaths:o}),!o)return;let a;for(const p of o)try{return await s(p,t)}catch(c){const{code:r}=c;if(!I(r)&&r!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;a=c}if(n)throw a},"resolveExtensions"),k=i((e,t,s,n)=>{const o=X(e);if(d(3,"resolveExtensionsSync",{url:e,context:t,throwError:n,tryPaths:o}),!o)return;let a;for(const p of o)try{return s(p,t)}catch(c){const{code:r}=c;if(!I(r)&&r!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;a=c}if(n)throw a},"resolveExtensionsSync"),We=i(async(e,t,s,n)=>{const o=n.parsedTsconfig?.config.compilerOptions?.allowJs??!1;if(d(3,"resolveBase",{specifier:e,context:t,specifierStartsWithFileUrl:e.startsWith(f),isRelativePath:_(e),tsExtensionsPattern:w.test(t.parentURL),allowJs:o}),(e.startsWith(f)||_(e))&&(w.test(t.parentURL)||o)){const a=await O(e,t,s);if(d(3,"resolveBase resolved",{specifier:e,context:t,resolved:a}),a)return a}try{return await s(e,t)}catch(a){if(d(3,"resolveBase error",{specifier:e,context:t,error:a}),a instanceof Error){const p=a;if(I(p.code)){const c=C(p);if(c){const r=await O(c,t,s);if(r)return r}}}throw a}},"resolveBase"),Ce=i((e,t,s,n)=>{const o=n.parsedTsconfig?.config.compilerOptions?.allowJs??!1;if(d(3,"resolveBaseSync",{specifier:e,context:t,specifierStartsWithFileUrl:e.startsWith(f),isRelativePath:_(e),tsExtensionsPattern:w.test(t.parentURL),allowJs:o}),(e.startsWith(f)||_(e))&&(w.test(t.parentURL)||o)){const a=k(e,t,s);if(d(3,"resolveBaseSync resolved",{specifier:e,context:t,resolved:a}),a)return a}try{return s(e,t)}catch(a){if(d(3,"resolveBaseSync error",{specifier:e,context:t,error:a}),a instanceof Error){const p=a;if(I(p.code)){const c=C(p);if(c){const r=k(c,t,s);if(r)return r}}}throw a}},"resolveBaseSync"),te=i(async(e,t,s,n)=>{if(d(3,"resolveDirectory",{specifier:e,context:t,isDirectory:J.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),J.test(e)){const o=new URL(e,t.parentURL);return o.pathname=h.join(o.pathname,"index"),await O(o.toString(),t,s,!0)}try{return await We(e,t,s,n)}catch(o){if(o instanceof Error){d(3,"resolveDirectory error",{specifier:e,context:t,error:o});const a=o;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const p=C(a);if(p)try{return await O(`${p}/index`,t,s,!0)}catch(c){const r=c,{message:m}=r;throw r.message=r.message.replace(`${"/index".replace("/",h.sep)}'`,"'"),r.stack=r.stack.replace(m,r.message),r}}}throw o}},"resolveDirectory"),re=i((e,t,s,n)=>{if(d(3,"resolveDirectorySync",{specifier:e,context:t,isDirectory:J.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),J.test(e)){const o=new URL(e,t.parentURL);return o.pathname=h.join(o.pathname,"index"),k(o.toString(),t,s,!0)}try{return Ce(e,t,s,n)}catch(o){if(o instanceof Error){d(3,"resolveDirectorySync error",{specifier:e,context:t,error:o});const a=o;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const p=C(a);if(p)try{return k(`${p}/index`,t,s,!0)}catch(c){const r=c,{message:m}=r;throw r.message=r.message.replace(`${"/index".replace("/",h.sep)}'`,"'"),r.stack=r.stack.replace(m,r.message),r}}}throw o}},"resolveDirectorySync"),Ie=i(async(e,t,s,n)=>{if(d(3,"resolveTsPaths",{specifier:e,context:t,requestAcceptsQuery:L(e),tsconfig:n.parsedTsconfig,fromNodeModules:t.parentURL?.includes("/node_modules/")}),!L(e)&&n.parsedTsconfig&&!t.parentURL?.includes("/node_modules/")){const o=Q(n.parsedTsconfig,e);d(3,"resolveTsPaths",{possiblePaths:o});for(const a of o)try{return await te(b(a).toString(),t,s,n)}catch{}}return te(e,t,s,n)},"resolveTsPaths"),Oe=i((e,t,s,n)=>{if(d(3,"resolveTsPathsSync",{specifier:e,context:t,requestAcceptsQuery:L(e),tsconfig:n.parsedTsconfig,fromNodeModules:t.parentURL?.includes("/node_modules/")}),!L(e)&&n.parsedTsconfig&&!t.parentURL?.includes("/node_modules/")){const o=Q(n.parsedTsconfig,e);d(3,"resolveTsPathsSync",{possiblePaths:o});for(const a of o)try{return re(b(a).toString(),t,s,n)}catch{}}return re(e,t,s,n)},"resolveTsPathsSync"),M="tsx://",ke=i(e=>e.conditions.includes("require")&&!e.conditions.includes("import"),"isCommonJsRequireContext"),Me=i(e=>{const t=i(async(s,n,o)=>{if(!e.active||s.startsWith("node:"))return o(s,n);let a=R(s)??(n.parentURL&&R(n.parentURL));if(e.namespace){let m;if(s.startsWith(M)){try{m=JSON.parse(s.slice(M.length))}catch{}m?.namespace&&(a=m.namespace)}if(e.namespace!==a)return o(s,n);m&&(s=m.specifier,n.parentURL=m.parentURL)}const[p,c]=s.split("?"),r=await Ie(p,n,o,e);return d(2,"nextResolve",{resolved:r}),r.format==="builtin"||((!r.format||r.format==="commonjs-typescript"||r.format==="module-typescript")&&r.url.startsWith(f)&&(r.format=await Ee(r.url),d(2,"getFormatFromFileUrl",{resolved:r,format:r.format})),c&&(r.url+=`?${c}`),a&&!r.url.includes(v)&&(r.url+=(r.url.includes("?")?"&":"?")+v+a)),r},"resolve2");return E?async(s,n,o)=>{d(2,"resolve",{specifier:s,context:n});const a=await t(s,n,o);return d(1,"resolved",{specifier:s,context:n,result:a}),a}:t},"createResolve"),Ae=i(e=>{const t=i((s,n,o)=>{if(!e.active||s.startsWith("node:")||ke(n)&&$())return o(s,n);let a=R(s)??(n.parentURL&&R(n.parentURL));if(e.namespace){let m;if(s.startsWith(M)){try{m=JSON.parse(s.slice(M.length))}catch{}m?.namespace&&(a=m.namespace)}if(e.namespace!==a)return o(s,n);m&&(s=m.specifier,n.parentURL=m.parentURL)}const[p,c]=s.split("?"),r=Oe(p,n,o,e);return d(2,"nextResolve",{resolved:r}),r.format==="builtin"||((!r.format||r.format==="commonjs-typescript"||r.format==="module-typescript")&&r.url.startsWith(f)&&(r.format=Le(r.url),d(2,"getFormatFromFileUrlSync",{resolved:r,format:r.format})),c&&(r.url+=`?${c}`),a&&!r.url.includes(v)&&(r.url+=(r.url.includes("?")?"&":"?")+v+a)),r},"resolve2");return E?(s,n,o)=>{d(2,"resolveSync",{specifier:s,context:n});const a=t(s,n,o);return d(1,"resolvedSync",{specifier:s,context:n,result:a}),a}:t},"createResolveSync"),$e=Me(T),ne=i(e=>(t,s)=>{if(!s)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const n=s.startsWith(f)?s:b(s).toString();return import(`tsx://${JSON.stringify({specifier:t,parentURL:n,namespace:e})}`)},"createScopedImport");let oe=!1;const Be=i(e=>{const t=typeof S.registerHooks=="function"&&j(me);if(!S.register&&!t)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!oe){const{_resolveFilename:r}=S;S._resolveFilename=(m,...u)=>r(le(m),...u),oe=!0}const{sourceMapsEnabled:s}=process;if(process.setSourceMapsEnabled(!0),t){const r=Y({namespace:e?.namespace,onImport:e?.onImport,tsconfig:e?.tsconfig}),m=S.registerHooks({load:be(r),resolve:Ae(r)}),u=i(async()=>{r.active=!1,m.deregister(),s===!1&&process.setSourceMapsEnabled(!1)},"unregister2");return e?.namespace&&(u.import=ne(e.namespace),u.unregister=u),u}const{port1:n,port2:o}=new ce;S.register(`./esm/index.mjs?${Date.now()}`,{parentURL:import.meta.url,data:{port:o,namespace:e?.namespace,tsconfig:e?.tsconfig},transferList:[o]});const a=e?.onImport,p=a&&(r=>{r.type==="load"&&a(r.url)});p&&(n.on("message",p),n.unref());const c=i(()=>(s===!1&&process.setSourceMapsEnabled(!1),p&&n.off("message",p),n.postMessage("deactivate"),new Promise(r=>{const m=i(u=>{u.type==="deactivated"&&(r(),n.off("message",m))},"onDeactivated");n.on("message",m)})),"unregister");return e?.namespace&&(c.import=ne(e.namespace),c.unregister=c),c},"register");export{Be as a,Se as g,Re as i,Ne as l,$e as r};
|
package/dist/repl.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
Type ".help" for more information.`);const
|
|
3
|
-
`}));return p.call(this,a.code,r,o,
|
|
1
|
+
"use strict";var u=Object.defineProperty;var s=(e,r)=>u(e,"name",{value:r,configurable:!0});var c=require("node:repl"),l=require("./package-CTKdXtQo.cjs"),q=require("./index-C8LOAU3M.cjs");require("node:path"),require("node:url"),require("esbuild"),require("node:crypto"),require("./node-features-Bdn6JLJo.cjs"),require("node:fs"),require("node:os"),require("./temporary-directory-B83uKxJF.cjs"),console.log(`Welcome to tsx v${l.version} (Node.js ${process.version}).
|
|
2
|
+
Type ".help" for more information.`);const i=c.start(),{eval:p}=i,v=s(async function(e,r,o,t){const a=await q.transform(e,o,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(n=>(console.log(n.message),{code:`
|
|
3
|
+
`}));return p.call(this,a.code,r,o,t)},"preEval");i.eval=v;
|
package/dist/repl.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
2
|
-
Type ".help" for more information.`);const s=
|
|
3
|
-
`}));return f.call(this,
|
|
1
|
+
var p=Object.defineProperty;var t=(o,r)=>p(o,"name",{value:r,configurable:!0});import a from"node:repl";import{v as l}from"./package-jo6LuyYP.mjs";import{t as c}from"./index-CDeh32pY.mjs";import"node:path";import"node:url";import"esbuild";import"node:crypto";import"./node-features-Eq_kCbjt.mjs";import"node:fs";import"node:os";import"./temporary-directory-BDDVQOvU.mjs";console.log(`Welcome to tsx v${l} (Node.js ${process.version}).
|
|
2
|
+
Type ".help" for more information.`);const s=a.start(),{eval:f}=s,v=t(async function(o,r,e,i){const m=await c(o,e,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(n=>(console.log(n.message),{code:`
|
|
3
|
+
`}));return f.call(this,m.code,r,e,i)},"preEval");s.eval=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=Object.defineProperty;var a=(r,t)=>m(r,"name",{value:t,configurable:!0});import{r as o}from"./get-pipe-path-
|
|
1
|
+
var m=Object.defineProperty;var a=(r,t)=>m(r,"name",{value:t,configurable:!0});import{r as o}from"./get-pipe-path-_tAJyU_v.mjs";import{r as n}from"./register-BQpI82el.mjs";let e;const s=a((r,t)=>(e||(e=n({namespace:Date.now().toString()})),e.require(r,t)),"tsxRequire"),i=a((r,t,c)=>(e||(e=n({namespace:Date.now().toString()})),e.resolve(r,t,c)),"resolve");i.paths=o.resolve.paths,s.resolve=i,s.main=o.main,s.extensions=o.extensions,s.cache=o.cache;export{s as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var a=(r,t)=>c(r,"name",{value:t,configurable:!0});var s=require("./get-pipe-path-
|
|
1
|
+
"use strict";var c=Object.defineProperty;var a=(r,t)=>c(r,"name",{value:t,configurable:!0});var s=require("./get-pipe-path-D4YM6rQt.cjs"),n=require("./register-DJgoUG_Q.cjs");let e;const i=a((r,t)=>(e||(e=n.register({namespace:Date.now().toString()})),e.require(r,t)),"tsxRequire"),o=a((r,t,u)=>(e||(e=n.register({namespace:Date.now().toString()})),e.resolve(r,t,u)),"resolve");o.paths=s.require.resolve.paths,i.resolve=o,i.main=s.require.main,i.extensions=s.require.extensions,i.cache=s.require.cache,exports.tsxRequire=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import s from"node:path";import o from"node:os";const{geteuid:r}=process,t=r?r():o.userInfo().username,e=s.join(o.tmpdir(),`tsx-${t}`);export{e as t};
|