Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@esbuild-kit/core-utils

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esbuild-kit/core-utils - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

10

dist/index.js
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Re=require("source-map-support"),xe=require("url"),rt=require("esbuild"),Ue=require("crypto"),Fe=require("fs"),Me=require("path"),Ye=require("os");function _(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var Ge=_(Re),He=_(Ue),R=_(Fe),Y=_(Me),je=_(Ye);const qe="setSourceMapsEnabled"in process&&typeof Error.prepareStackTrace!="function";function Oe(){if(qe){process.setSourceMapsEnabled(!0);return}const i=new Map;return Ge.default.install({environment:"node",retrieveSourceMap(t){const A=i.get(t);return A?{url:t,map:A}:null}}),i}const _e=`
//# sourceMappingURL=data:application/json;base64,`;function Pe({code:i,map:t},A,r){const s=typeof t=="string"?t:t.toString();return r?(r.set(A,s),i):i+_e+Buffer.from(s,"utf8").toString("base64")}const Jt=i=>He.default.createHash("sha1").update(i).digest("hex");for(var Xe={},Ct="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",nt=0;nt<Ct.length;nt++)Xe[Ct.charCodeAt(nt)]=nt;function Te(i){for(var t=0,A=0,r=0,s=0,o="",c=0;c<i.length;c++){var g=i[c];if(c>0&&(o+=";"),g.length!==0){for(var h=0,C=[],f=0,n=g;f<n.length;f++){var B=n[f],m=P(B[0]-h);h=B[0],B.length>1&&(m+=P(B[1]-t)+P(B[2]-A)+P(B[3]-r),t=B[1],A=B[2],r=B[3]),B.length===5&&(m+=P(B[4]-s),s=B[4]),C.push(m)}o+=C.join(",")}}return o}function P(i){var t="";i=i<0?-i<<1|1:i<<1;do{var A=i&31;i>>>=5,i>0&&(A|=32),t+=Ct[A]}while(i>0);return t}class lt{constructor(t){this.bits=t instanceof lt?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}}class Z{constructor(t,A,r){this.start=t,this.end=A,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){const t=new Z(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let A=this;for(;A;)t(A),A=A.next}eachPrevious(t){let A=this;for(;A;)t(A),A=A.previous}edit(t,A,r){return this.content=t,r||(this.intro="",this.outro=""),this.storeName=A,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}split(t){const A=t-this.start,r=this.original.slice(0,A),s=this.original.slice(A);this.original=r;const o=new Z(t,this.end,s);return o.outro=this.outro,this.outro="",this.end=t,this.edited?(o.edit("",!1),this.content=""):this.content=r,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;const A=this.content.replace(t,"");if(A.length)return A!==this.content&&this.split(this.start+A.length).edit("",void 0,!0),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;const A=this.content.replace(t,"");if(A.length)return A!==this.content&&(this.split(this.end-A.length),this.edit("",void 0,!0)),!0;if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}}let Bt=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};typeof window<"u"&&typeof window.btoa=="function"?Bt=i=>window.btoa(unescape(encodeURIComponent(i))):typeof Buffer=="function"&&(Bt=i=>Buffer.from(i,"utf-8").toString("base64"));class $e{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Te(t.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Bt(this.toString())}}function We(i){const t=i.split(`
//# sourceMappingURL=data:application/json;base64,`;function Xe({code:i,map:t},A,r){const s=typeof t=="string"?t:t.toString();return r?(r.set(A,s),i):i+_e+Buffer.from(s,"utf8").toString("base64")}const Jt=i=>He.default.createHash("sha1").update(i).digest("hex");for(var Pe={},Ct="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",nt=0;nt<Ct.length;nt++)Pe[Ct.charCodeAt(nt)]=nt;function Te(i){for(var t=0,A=0,r=0,s=0,o="",c=0;c<i.length;c++){var g=i[c];if(c>0&&(o+=";"),g.length!==0){for(var h=0,C=[],f=0,n=g;f<n.length;f++){var B=n[f],m=X(B[0]-h);h=B[0],B.length>1&&(m+=X(B[1]-t)+X(B[2]-A)+X(B[3]-r),t=B[1],A=B[2],r=B[3]),B.length===5&&(m+=X(B[4]-s),s=B[4]),C.push(m)}o+=C.join(",")}}return o}function X(i){var t="";i=i<0?-i<<1|1:i<<1;do{var A=i&31;i>>>=5,i>0&&(A|=32),t+=Ct[A]}while(i>0);return t}class lt{constructor(t){this.bits=t instanceof lt?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}}class Z{constructor(t,A,r){this.start=t,this.end=A,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){const t=new Z(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let A=this;for(;A;)t(A),A=A.next}eachPrevious(t){let A=this;for(;A;)t(A),A=A.previous}edit(t,A,r){return this.content=t,r||(this.intro="",this.outro=""),this.storeName=A,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}split(t){const A=t-this.start,r=this.original.slice(0,A),s=this.original.slice(A);this.original=r;const o=new Z(t,this.end,s);return o.outro=this.outro,this.outro="",this.end=t,this.edited?(o.edit("",!1),this.content=""):this.content=r,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;const A=this.content.replace(t,"");if(A.length)return A!==this.content&&this.split(this.start+A.length).edit("",void 0,!0),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;const A=this.content.replace(t,"");if(A.length)return A!==this.content&&(this.split(this.end-A.length),this.edit("",void 0,!0)),!0;if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}}let Bt=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};typeof window<"u"&&typeof window.btoa=="function"?Bt=i=>window.btoa(unescape(encodeURIComponent(i))):typeof Buffer=="function"&&(Bt=i=>Buffer.from(i,"utf-8").toString("base64"));class $e{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Te(t.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Bt(this.toString())}}function We(i){const t=i.split(`
`),A=t.filter(o=>/^\t+/.test(o)),r=t.filter(o=>/^ {2,}/.test(o));if(A.length===0&&r.length===0)return null;if(A.length>=r.length)return" ";const s=r.reduce((o,c)=>{const g=/^ +/.exec(c)[0].length;return Math.min(g,o)},1/0);return new Array(s+1).join(" ")}function Ve(i,t){const A=i.split(/[/\\]/),r=t.split(/[/\\]/);for(A.pop();A[0]===r[0];)A.shift(),r.shift();if(A.length){let s=A.length;for(;s--;)A[s]=".."}return A.concat(r).join("/")}const Ze=Object.prototype.toString;function ze(i){return Ze.call(i)==="[object Object]"}function yt(i){const t=i.split(`
`),A=[];for(let r=0,s=0;r<t.length;r++)A.push(s),s+=t[r].length+1;return function(s){let o=0,c=A.length;for(;o<c;){const C=o+c>>1;s<A[C]?c=C:o=C+1}const g=o-1,h=s-A[g];return{line:g,column:h}}}class tA{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,A,r,s){if(A.length){const o=[this.generatedCodeColumn,t,r.line,r.column];s>=0&&o.push(s),this.rawSegments.push(o)}else this.pending&&this.rawSegments.push(this.pending);this.advance(A),this.pending=null}addUneditedChunk(t,A,r,s,o){let c=A.start,g=!0;for(;c<A.end;)(this.hires||g||o.has(c))&&this.rawSegments.push([this.generatedCodeColumn,t,s.line,s.column]),r[c]===`
`?(s.line+=1,s.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,g=!0):(s.column+=1,this.generatedCodeColumn+=1,g=!1),c+=1;this.pending=null}advance(t){if(!t)return;const A=t.split(`
`);if(A.length>1){for(let r=0;r<A.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=A[A.length-1].length}}const X=`
`);if(A.length>1){for(let r=0;r<A.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=A[A.length-1].length}}const P=`
`,G={insertLeft:!1,insertRight:!1,storeName:!1};class mt{constructor(t,A={}){const r=new Z(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:A.filename},indentExclusionRanges:{writable:!0,value:A.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new lt},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:We(t)}}),this.byStart[0]=r,this.byEnd[t.length]=r}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,A){if(typeof A!="string")throw new TypeError("inserted content must be a string");this._split(t);const r=this.byEnd[t];return r?r.appendLeft(A):this.intro+=A,this}appendRight(t,A){if(typeof A!="string")throw new TypeError("inserted content must be a string");this._split(t);const r=this.byStart[t];return r?r.appendRight(A):this.outro+=A,this}clone(){const t=new mt(this.original,{filename:this.filename});let A=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=A.clone();for(;A;){t.byStart[r.start]=r,t.byEnd[r.end]=r;const s=A.next,o=s&&s.clone();o&&(r.next=o,o.previous=r,r=o),A=s}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new lt(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};const A=0,r=Object.keys(this.storedNames),s=new tA(t.hires),o=yt(this.original);return this.intro&&s.advance(this.intro),this.firstChunk.eachNext(c=>{const g=o(c.start);c.intro.length&&s.advance(c.intro),c.edited?s.addEdit(A,c.content,g,c.storeName?r.indexOf(c.original):-1):s.addUneditedChunk(A,c,this.original,g,this.sourcemapLocations),c.outro.length&&s.advance(c.outro)}),{file:t.file?t.file.split(/[/\\]/).pop():null,sources:[t.source?Ve(t.file||"",t.source):null],sourcesContent:t.includeContent?[this.original]:[null],names:r,mappings:s.raw}}generateMap(t){return new $e(this.generateDecodedMap(t))}getIndentString(){return this.indentStr===null?" ":this.indentStr}indent(t,A){const r=/^[^\r\n]/gm;if(ze(t)&&(A=t,t=void 0),t=t!==void 0?t:this.indentStr||" ",t==="")return this;A=A||{};const s={};A.exclude&&(typeof A.exclude[0]=="number"?[A.exclude]:A.exclude).forEach(f=>{for(let n=f[0];n<f[1];n+=1)s[n]=!0});let o=A.indentStart!==!1;const c=C=>o?`${t}${C}`:(o=!0,C);this.intro=this.intro.replace(r,c);let g=0,h=this.firstChunk;for(;h;){const C=h.end;if(h.edited)s[g]||(h.content=h.content.replace(r,c),h.content.length&&(o=h.content[h.content.length-1]===`
`));else for(g=h.start;g<C;){if(!s[g]){const f=this.original[g];f===`
`?o=!0:f!=="\r"&&o&&(o=!1,g===h.start||(this._splitChunk(h,g),h=h.next),h.prependRight(t))}g+=1}g=h.end,h=h.next}return this.outro=this.outro.replace(r,c),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,A){return G.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),G.insertLeft=!0),this.appendLeft(t,A)}insertRight(t,A){return G.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),G.insertRight=!0),this.prependRight(t,A)}move(t,A,r){if(r>=t&&r<=A)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(A),this._split(r);const s=this.byStart[t],o=this.byEnd[A],c=s.previous,g=o.next,h=this.byStart[r];if(!h&&o===this.lastChunk)return this;const C=h?h.previous:this.lastChunk;return c&&(c.next=g),g&&(g.previous=c),C&&(C.next=s),h&&(h.previous=o),s.previous||(this.firstChunk=o.next),o.next||(this.lastChunk=s.previous,this.lastChunk.next=null),s.previous=C,o.next=h||null,C||(this.firstChunk=s),h||(this.lastChunk=o),this}overwrite(t,A,r,s){if(typeof r!="string")throw new TypeError("replacement content must be a string");for(;t<0;)t+=this.original.length;for(;A<0;)A+=this.original.length;if(A>this.original.length)throw new Error("end is out of bounds");if(t===A)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(A),s===!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),s={storeName:!0});const o=s!==void 0?s.storeName:!1,c=s!==void 0?s.contentOnly:!1;if(o){const C=this.original.slice(t,A);Object.defineProperty(this.storedNames,C,{writable:!0,value:!0,enumerable:!0})}const g=this.byStart[t],h=this.byEnd[A];if(g){let C=g;for(;C!==h;){if(C.next!==this.byStart[C.end])throw new Error("Cannot overwrite across a split point");C=C.next,C.edit("",!1)}g.edit(r,o,c)}else{const C=new Z(t,A,"").edit(r,o);h.next=C,C.previous=h}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,A){if(typeof A!="string")throw new TypeError("inserted content must be a string");this._split(t);const r=this.byEnd[t];return r?r.prependLeft(A):this.intro=A+this.intro,this}prependRight(t,A){if(typeof A!="string")throw new TypeError("inserted content must be a string");this._split(t);const r=this.byStart[t];return r?r.prependRight(A):this.outro=A+this.outro,this}remove(t,A){for(;t<0;)t+=this.original.length;for(;A<0;)A+=this.original.length;if(t===A)return this;if(t<0||A>this.original.length)throw new Error("Character is out of bounds");if(t>A)throw new Error("end must be greater than start");this._split(t),this._split(A);let r=this.byStart[t];for(;r;)r.intro="",r.outro="",r.edit(""),r=A>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(X);if(t!==-1)return this.outro.substr(t+1);let A=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(t=r.outro.lastIndexOf(X),t!==-1)return r.outro.substr(t+1)+A;A=r.outro+A}if(r.content.length>0){if(t=r.content.lastIndexOf(X),t!==-1)return r.content.substr(t+1)+A;A=r.content+A}if(r.intro.length>0){if(t=r.intro.lastIndexOf(X),t!==-1)return r.intro.substr(t+1)+A;A=r.intro+A}}while(r=r.previous);return t=this.intro.lastIndexOf(X),t!==-1?this.intro.substr(t+1)+A:this.intro+A}slice(t=0,A=this.original.length){for(;t<0;)t+=this.original.length;for(;A<0;)A+=this.original.length;let r="",s=this.firstChunk;for(;s&&(s.start>t||s.end<=t);){if(s.start<A&&s.end>=A)return r;s=s.next}if(s&&s.edited&&s.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);const o=s;for(;s;){s.intro&&(o!==s||s.start===t)&&(r+=s.intro);const c=s.start<A&&s.end>=A;if(c&&s.edited&&s.end!==A)throw new Error(`Cannot use replaced character ${A} as slice end anchor.`);const g=o===s?t-s.start:0,h=c?s.content.length+A-s.end:s.content.length;if(r+=s.content.slice(g,h),s.outro&&(!c||s.end===A)&&(r+=s.outro),c)break;s=s.next}return r}snip(t,A){const r=this.clone();return r.remove(0,t),r.remove(A,r.original.length),r}_split(t){if(this.byStart[t]||this.byEnd[t])return;let A=this.lastSearchedChunk;const r=t>A.end;for(;A;){if(A.contains(t))return this._splitChunk(A,t);A=r?this.byStart[A.end]:this.byEnd[A.start]}}_splitChunk(t,A){if(t.edited&&t.content.length){const s=yt(this.original)(A);throw new Error(`Cannot split a chunk that has already been edited (${s.line}:${s.column} \u2013 "${t.original}")`)}const r=t.split(A);return this.byEnd[A]=t,this.byStart[A]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,A=this.firstChunk;for(;A;)t+=A.toString(),A=A.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,A=0;do A+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return A}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){const A=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(A,""),this.outro.length)return!0;let r=this.lastChunk;do{const s=r.end,o=r.trimEnd(A);if(r.end!==s&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),o)return!0;r=r.previous}while(r);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){const A=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(A,""),this.intro.length)return!0;let r=this.firstChunk;do{const s=r.end,o=r.trimStart(A);if(r.end!==s&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),o)return!0;r=r.next}while(r);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}replace(t,A){function r(o,c){return typeof A=="string"?A.replace(/\$(\$|&|\d+)/g,(g,h)=>h==="$"?"$":h==="&"?o[0]:+h<o.length?o[+h]:`$${h}`):A(...o,o.index,c,o.groups)}function s(o,c){let g;const h=[];for(;g=o.exec(c);)h.push(g);return h}if(typeof t!="string"&&t.global)s(t,this.original).forEach(c=>{c.index!=null&&this.overwrite(c.index,c.index+c[0].length,r(c,this.original))});else{const o=this.original.match(t);o&&o.index!=null&&this.overwrite(o.index,o.index+o[0].length,r(o,this.original))}return this}}const eA=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function Kt(i,t="@"){if(!k)return vt.then(()=>Kt(i));const A=i.length+1,r=(k.__heap_base.value||k.__heap_base)+4*A-k.memory.buffer.byteLength;r>0&&k.memory.grow(Math.ceil(r/65536));const s=k.sa(A-1);if((eA?rA:AA)(i,new Uint16Array(k.memory.buffer,s,A)),!k.parse())throw Object.assign(new Error(`Parse error ${t}:${i.slice(0,k.e()).split(`
`?o=!0:f!=="\r"&&o&&(o=!1,g===h.start||(this._splitChunk(h,g),h=h.next),h.prependRight(t))}g+=1}g=h.end,h=h.next}return this.outro=this.outro.replace(r,c),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,A){return G.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),G.insertLeft=!0),this.appendLeft(t,A)}insertRight(t,A){return G.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),G.insertRight=!0),this.prependRight(t,A)}move(t,A,r){if(r>=t&&r<=A)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(A),this._split(r);const s=this.byStart[t],o=this.byEnd[A],c=s.previous,g=o.next,h=this.byStart[r];if(!h&&o===this.lastChunk)return this;const C=h?h.previous:this.lastChunk;return c&&(c.next=g),g&&(g.previous=c),C&&(C.next=s),h&&(h.previous=o),s.previous||(this.firstChunk=o.next),o.next||(this.lastChunk=s.previous,this.lastChunk.next=null),s.previous=C,o.next=h||null,C||(this.firstChunk=s),h||(this.lastChunk=o),this}overwrite(t,A,r,s){if(typeof r!="string")throw new TypeError("replacement content must be a string");for(;t<0;)t+=this.original.length;for(;A<0;)A+=this.original.length;if(A>this.original.length)throw new Error("end is out of bounds");if(t===A)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(A),s===!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),s={storeName:!0});const o=s!==void 0?s.storeName:!1,c=s!==void 0?s.contentOnly:!1;if(o){const C=this.original.slice(t,A);Object.defineProperty(this.storedNames,C,{writable:!0,value:!0,enumerable:!0})}const g=this.byStart[t],h=this.byEnd[A];if(g){let C=g;for(;C!==h;){if(C.next!==this.byStart[C.end])throw new Error("Cannot overwrite across a split point");C=C.next,C.edit("",!1)}g.edit(r,o,c)}else{const C=new Z(t,A,"").edit(r,o);h.next=C,C.previous=h}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,A){if(typeof A!="string")throw new TypeError("inserted content must be a string");this._split(t);const r=this.byEnd[t];return r?r.prependLeft(A):this.intro=A+this.intro,this}prependRight(t,A){if(typeof A!="string")throw new TypeError("inserted content must be a string");this._split(t);const r=this.byStart[t];return r?r.prependRight(A):this.outro=A+this.outro,this}remove(t,A){for(;t<0;)t+=this.original.length;for(;A<0;)A+=this.original.length;if(t===A)return this;if(t<0||A>this.original.length)throw new Error("Character is out of bounds");if(t>A)throw new Error("end must be greater than start");this._split(t),this._split(A);let r=this.byStart[t];for(;r;)r.intro="",r.outro="",r.edit(""),r=A>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(P);if(t!==-1)return this.outro.substr(t+1);let A=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(t=r.outro.lastIndexOf(P),t!==-1)return r.outro.substr(t+1)+A;A=r.outro+A}if(r.content.length>0){if(t=r.content.lastIndexOf(P),t!==-1)return r.content.substr(t+1)+A;A=r.content+A}if(r.intro.length>0){if(t=r.intro.lastIndexOf(P),t!==-1)return r.intro.substr(t+1)+A;A=r.intro+A}}while(r=r.previous);return t=this.intro.lastIndexOf(P),t!==-1?this.intro.substr(t+1)+A:this.intro+A}slice(t=0,A=this.original.length){for(;t<0;)t+=this.original.length;for(;A<0;)A+=this.original.length;let r="",s=this.firstChunk;for(;s&&(s.start>t||s.end<=t);){if(s.start<A&&s.end>=A)return r;s=s.next}if(s&&s.edited&&s.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);const o=s;for(;s;){s.intro&&(o!==s||s.start===t)&&(r+=s.intro);const c=s.start<A&&s.end>=A;if(c&&s.edited&&s.end!==A)throw new Error(`Cannot use replaced character ${A} as slice end anchor.`);const g=o===s?t-s.start:0,h=c?s.content.length+A-s.end:s.content.length;if(r+=s.content.slice(g,h),s.outro&&(!c||s.end===A)&&(r+=s.outro),c)break;s=s.next}return r}snip(t,A){const r=this.clone();return r.remove(0,t),r.remove(A,r.original.length),r}_split(t){if(this.byStart[t]||this.byEnd[t])return;let A=this.lastSearchedChunk;const r=t>A.end;for(;A;){if(A.contains(t))return this._splitChunk(A,t);A=r?this.byStart[A.end]:this.byEnd[A.start]}}_splitChunk(t,A){if(t.edited&&t.content.length){const s=yt(this.original)(A);throw new Error(`Cannot split a chunk that has already been edited (${s.line}:${s.column} \u2013 "${t.original}")`)}const r=t.split(A);return this.byEnd[A]=t,this.byStart[A]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,A=this.firstChunk;for(;A;)t+=A.toString(),A=A.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,A=0;do A+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return A}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){const A=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(A,""),this.outro.length)return!0;let r=this.lastChunk;do{const s=r.end,o=r.trimEnd(A);if(r.end!==s&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),o)return!0;r=r.previous}while(r);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){const A=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(A,""),this.intro.length)return!0;let r=this.firstChunk;do{const s=r.end,o=r.trimStart(A);if(r.end!==s&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),o)return!0;r=r.next}while(r);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}replace(t,A){function r(o,c){return typeof A=="string"?A.replace(/\$(\$|&|\d+)/g,(g,h)=>h==="$"?"$":h==="&"?o[0]:+h<o.length?o[+h]:`$${h}`):A(...o,o.index,c,o.groups)}function s(o,c){let g;const h=[];for(;g=o.exec(c);)h.push(g);return h}if(typeof t!="string"&&t.global)s(t,this.original).forEach(c=>{c.index!=null&&this.overwrite(c.index,c.index+c[0].length,r(c,this.original))});else{const o=this.original.match(t);o&&o.index!=null&&this.overwrite(o.index,o.index+o[0].length,r(o,this.original))}return this}}const eA=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function Kt(i,t="@"){if(!k)return vt.then(()=>Kt(i));const A=i.length+1,r=(k.__heap_base.value||k.__heap_base)+4*A-k.memory.buffer.byteLength;r>0&&k.memory.grow(Math.ceil(r/65536));const s=k.sa(A-1);if((eA?rA:AA)(i,new Uint16Array(k.memory.buffer,s,A)),!k.parse())throw Object.assign(new Error(`Parse error ${t}:${i.slice(0,k.e()).split(`
`).length}:${k.e()-i.lastIndexOf(`

@@ -22,3 +22,3 @@ `,k.e()-1)}`),{idx:k.e()});const o=[],c=[];for(;k.ri();){const h=k.is(),C=k.ie(),f=k.ai(),n=k.id(),B=k.ss(),m=k.se();let w;k.ip()&&(w=g(i.slice(n===-1?h-1:h,n===-1?C+1:C))),o.push({n:w,s:h,e:C,ss:B,se:m,d:n,a:f})}for(;k.re();){const h=i.slice(k.es(),k.ee()),C=h[0];c.push(C==='"'||C==="'"?g(h):h)}function g(h){try{return(0,eval)(h)}catch{}}return[o,c,!!k.f()]}function AA(i,t){const A=i.length;let r=0;for(;r<A;){const s=i.charCodeAt(r);t[r++]=(255&s)<<8|s>>>8}}function rA(i,t){const A=i.length;let r=0;for(;r<A;)t[r]=i.charCodeAt(r++)}let k;const vt=WebAssembly.compile((Et="AGFzbQEAAAABKghgAX8Bf2AEf39/fwBgAn9/AGAAAX9gAABgAX8AYAN/f38Bf2ACf38BfwMqKQABAgMDAwMDAwMDAwMDAwMAAAQEBAUEBQAAAAAEBAAGBwACAAAABwMGBAUBcAEBAQUDAQABBg8CfwFBkPIAC38AQZDyAAsHZBEGbWVtb3J5AgACc2EAAAFlAAMCaXMABAJpZQAFAnNzAAYCc2UABwJhaQAIAmlkAAkCaXAACgJlcwALAmVlAAwCcmkADQJyZQAOAWYADwVwYXJzZQAQC19faGVhcF9iYXNlAwEKhjQpaAEBf0EAIAA2AtQJQQAoArAJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgLYCUEAIAA2AtwJQQBBADYCtAlBAEEANgLECUEAQQA2ArwJQQBBADYCuAlBAEEANgLMCUEAQQA2AsAJIAELnwEBA39BACgCxAkhBEEAQQAoAtwJIgU2AsQJQQAgBDYCyAlBACAFQSBqNgLcCSAEQRxqQbQJIAQbIAU2AgBBACgCqAkhBEEAKAKkCSEGIAUgATYCACAFIAA2AgggBSACIAJBAmpBACAGIANGGyAEIANGGzYCDCAFIAM2AhQgBUEANgIQIAUgAjYCBCAFQQA2AhwgBUEAKAKkCSADRjoAGAtIAQF/QQAoAswJIgJBCGpBuAkgAhtBACgC3AkiAjYCAEEAIAI2AswJQQAgAkEMajYC3AkgAkEANgIIIAIgATYCBCACIAA2AgALCABBACgC4AkLFQBBACgCvAkoAgBBACgCsAlrQQF1Cx4BAX9BACgCvAkoAgQiAEEAKAKwCWtBAXVBfyAAGwsVAEEAKAK8CSgCCEEAKAKwCWtBAXULHgEBf0EAKAK8CSgCDCIAQQAoArAJa0EBdUF/IAAbCx4BAX9BACgCvAkoAhAiAEEAKAKwCWtBAXVBfyAAGws7AQF/AkBBACgCvAko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gsQHUEAIQMMBQsgBEGgAUcNAQtBAEEBOgCECgtBAEEAKAKICjYC8AkLQQAoAogKIQIMAAsLIAFBgNoAaiQAIAMLHQACQEEAKAKwCSAARw0AQQEPCyAAQX5qLwEAEB4LpgYBBH9BAEEAKAKICiIAQQxqIgE2AogKQQEQISECAkACQAJAAkACQEEAKAKICiIDIAFHDQAgAhAlRQ0BCwJAAkACQAJAAkAgAkGff2oODAYBAwgBBwEBAQEBBAALAkACQCACQSpGDQAgAkH2AEYNBSACQfsARw0CQQAgA0ECajYCiApBARAhIQNBACgCiAohAQNAAkACQCADQf//A3EiAkEiRg0AIAJBJ0YNACACECQaQQAoAogKIQIMAQsgAhAXQQBBACgCiApBAmoiAjYCiAoLQQEQIRoCQCABIAIQJiIDQSxHDQBBAEEAKAKICkECajYCiApBARAhIQMLQQAoAogKIQICQCADQf0ARg0AIAIgAUYNBSACIQEgAkEAKAKMCk0NAQwFCwtBACACQQJqNgKICgwBC0EAIANBAmo2AogKQQEQIRpBACgCiAoiAiACECYaC0EBECEhAgtBACgCiAohAwJAIAJB5gBHDQAgA0ECakGeCEEGECgNAEEAIANBCGo2AogKIABBARAhECIPC0EAIANBfmo2AogKDAMLEB0PCwJAIAMpAAJC7ICEg7COwDlSDQAgAy8BChAeRQ0AQQAgA0EKajYCiApBARAhIQJBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LQQAgA0EEaiIDNgKICgtBACADQQRqIgI2AogKQQBBADoA5AkDQEEAIAJBAmo2AogKQQEQISEDQQAoAogKIQICQCADECRBIHJB+wBHDQBBAEEAKAKICkF+ajYCiAoPC0EAKAKICiIDIAJGDQEgAiADEAICQEEBECEiAkEsRg0AAkAgAkE9Rw0AQQBBACgCiApBfmo2AogKDwtBAEEAKAKICkF+ajYCiAoPC0EAKAKICiECDAALCw8LQQAgA0EKajYCiApBARAhGkEAKAKICiEDC0EAIANBEGo2AogKAkBBARAhIgJBKkcNAEEAQQAoAogKQQJqNgKICkEBECEhAgtBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LIAMgA0EOahACC6sGAQR/QQBBACgCiAoiAEEMaiIBNgKICgJAAkACQAJAAkACQAJAAkACQAJAQQEQISICQVlqDggCCAECAQEBBwALIAJBIkYNASACQfsARg0CC0EAKAKICiABRg0HC0EALwHqCQ0BQQAoAogKIQJBACgCjAohAwNAIAIgA08NBAJAAkAgAi8BACIBQSdGDQAgAUEiRw0BCyAAIAEQIg8LQQAgAkECaiICNgKICgwACwtBACgCiAohAkEALwHqCQ0BAkADQAJAAkACQCACQQAoAowKTw0AQQEQISICQSJGDQEgAkEnRg0BIAJB/QBHDQJBAEEAKAKICkECajYCiAoLQQEQIRpBACgCiAoiAikAAELmgMiD8I3ANlINBkEAIAJBCGo2AogKQQEQISICQSJGDQMgAkEnRg0DDAYLIAIQFwtBAEEAKAKICkECaiICNgKICgwACwsgACACECIMBQtBAEEAKAKICkF+ajYCiAoPC0EAIAJBfmo2AogKDwsQHQ8LQQBBACgCiApBAmo2AogKQQEQIUHtAEcNAUEAKAKICiICQQJqQZYIQQYQKA0BQQAoAvAJLwEAQS5GDQEgACAAIAJBCGpBACgCqAkQAQ8LQQAoAvwJQQAvAeoJIgJBAnRqQQAoAogKNgIAQQAgAkEBajsB6glBACgC8AkvAQBBLkYNAEEAQQAoAogKIgFBAmo2AogKQQEQISECIABBACgCiApBACABEAFBAEEALwHoCSIBQQFqOwHoCUEAKAKACiABQQJ0akEAKALECTYCAAJAIAJBIkYNACACQSdGDQBBAEEAKAKICkF+ajYCiAoPCyACEBdBAEEAKAKICkECaiICNgKICgJAAkACQEEBECFBV2oOBAECAgACC0EAQQAoAogKQQJqNgKICkEBECEaQQAoAsQJIgEgAjYCBCABQQE6ABggAUEAKAKICiICNgIQQQAgAkF+ajYCiAoPC0EAKALECSIBIAI2AgQgAUEBOgAYQQBBAC8B6glBf2o7AeoJIAFBACgCiApBAmo2AgxBAEEALwHoCUF/ajsB6AkPC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/AkBBACgCiAoiAi8BACIDQeEARw0AQQAgAkEEajYCiApBARAhIQJBACgCiAohAAJAAkAgAkEiRg0AIAJBJ0YNACACECQaQQAoAogKIQEMAQsgAhAXQQBBACgCiApBAmoiATYCiAoLQQEQISEDQQAoAogKIQILAkAgAiAARg0AIAAgARACCyADC3IBBH9BACgCiAohAEEAKAKMCiEBAkACQANAIABBAmohAiAAIAFPDQECQAJAIAIvAQAiA0Gkf2oOAgEEAAsgAiEAIANBdmoOBAIBAQIBCyAAQQRqIQAMAAsLQQAgAjYCiAoQHUEADwtBACACNgKICkHdAAtJAQN/QQAhAwJAIAJFDQACQANAIAAtAAAiBCABLQAAIgVHDQEgAUEBaiEBIABBAWohACACQX9qIgINAAwCCwsgBCAFayEDCyADCwvCAQIAQYAIC6QBAAB4AHAAbwByAHQAbQBwAG8AcgB0AGUAdABhAGYAcgBvAG0AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGkAbgBzAHQAYQBuAHQAeQByAGUAdAB1AHIAZABlAGIAdQBnAGcAZQBhAHcAYQBpAHQAaAByAHcAaABpAGwAZQBmAG8AcgBpAGYAYwBhAHQAYwBmAGkAbgBhAGwAbABlAGwAcwAAQaQJCxABAAAAAgAAAAAEAAAQOQAA",typeof Buffer<"u"?Buffer.from(Et,"base64"):Uint8Array.from(atob(Et),i=>i.charCodeAt(0)))).then(WebAssembly.instantiate).then(({exports:i})=>{k=i});var Et;let p,it,dt,T=2<<19;const Lt=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(i,t){const A=i.length;let r=0;for(;r<A;)t[r]=i.charCodeAt(r++)}:function(i,t){const A=i.length;let r=0;for(;r<A;){const s=i.charCodeAt(r);t[r++]=(255&s)<<8|s>>>8}},nA="xportmportlassetafromssertvoyiedeleinstantyreturdebuggeawaithrwhileforifcatcfinallels";let b,Nt,d;function iA(i,t="@"){b=i,Nt=t;const A=2*b.length+(2<<18);if(A>T||!p){for(;A>T;)T*=2;it=new ArrayBuffer(T),Lt(nA,new Uint16Array(it,16,85)),p=function(c,g,h){var C=new c.Int8Array(h),f=new c.Int16Array(h),n=new c.Int32Array(h),B=new c.Uint8Array(h),m=new c.Uint16Array(h),w=992;function K(e){e=e|0;var a=0,l=0,Q=0,u=0,I=0,At=0,M=0;M=w,w=w+11520|0,I=M+2048|0,C[763]=1,f[377]=0,f[378]=0,f[379]=0,f[380]=-1,n[57]=n[2],C[764]=0,n[56]=0,C[762]=0,n[58]=M+10496,n[59]=M+2304,n[60]=M,C[765]=0,e=(n[3]|0)+-2|0,n[61]=e,a=e+(n[54]<<1)|0,n[62]=a;t:for(;;){if(l=e+2|0,n[61]=l,e>>>0>=a>>>0){u=18;break}e:do switch(f[l>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if((f[379]|0)==0&&q(l)|0&&(y(e+4|0,16,10)|0)==0&&(v(),(C[763]|0)==0)){u=9;break t}else u=17;break}case 105:{q(l)|0&&(y(e+4|0,26,10)|0)==0&&z(),u=17;break}case 59:{u=17;break}case 47:switch(f[e+4>>1]|0){case 47:{Qt();break e}case 42:{ft(1);break e}default:{u=16;break t}}default:{u=16;break t}}while(0);(u|0)==17&&(u=0,n[57]=n[61]),e=n[61]|0,a=n[62]|0}(u|0)==9?(e=n[61]|0,n[57]=e,u=19):(u|0)==16?(C[763]=0,n[61]=e,u=19):(u|0)==18&&(C[762]|0?e=0:(e=l,u=19));do if((u|0)==19){t:for(;;){if(a=e+2|0,n[61]=a,Q=a,e>>>0>=(n[62]|0)>>>0){u=75;break}e:do switch(f[a>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{(f[379]|0)==0&&q(a)|0&&(y(e+4|0,16,10)|0)==0&&v(),u=74;break}case 105:{q(a)|0&&(y(e+4|0,26,10)|0)==0&&z(),u=74;break}case 99:{q(a)|0&&(y(e+4|0,36,8)|0)==0&&gt(f[e+12>>1]|0)|0&&(C[765]=1),u=74;break}case 40:{l=n[57]|0,Q=n[59]|0,u=f[379]|0,f[379]=u+1<<16>>16,n[Q+((u&65535)<<2)>>2]=l,u=74;break}case 41:{if(a=f[379]|0,!(a<<16>>16)){u=36;break t}a=a+-1<<16>>16,f[379]=a,l=f[378]|0,l<<16>>16!=0&&(At=n[(n[60]|0)+((l&65535)+-1<<2)>>2]|0,(n[At+20>>2]|0)==(n[(n[59]|0)+((a&65535)<<2)>>2]|0))&&(a=At+4|0,n[a>>2]|0||(n[a>>2]=Q),n[At+12>>2]=e+4,f[378]=l+-1<<16>>16),u=74;break}case 123:{u=n[57]|0,Q=n[51]|0,e=u;do if((f[u>>1]|0)==41&(Q|0)!=0&&(n[Q+4>>2]|0)==(u|0))if(a=n[52]|0,n[51]=a,a){n[a+28>>2]=0;break}else{n[47]=0;break}while(0);l=f[379]|0,u=l&65535,C[I+u>>0]=C[765]|0,C[765]=0,Q=n[59]|0,f[379]=l+1<<16>>16,n[Q+(u<<2)>>2]=e,u=74;break}case 125:{if(e=f[379]|0,!(e<<16>>16)){u=49;break t}if(l=e+-1<<16>>16,f[379]=l,a=f[380]|0,e<<16>>16!=a<<16>>16)if(a<<16>>16!=-1&(l&65535)<(a&65535)){u=53;break t}else{u=74;break e}else{Q=n[58]|0,u=(f[377]|0)+-1<<16>>16,f[377]=u,f[380]=f[Q+((u&65535)<<1)>>1]|0,tt(),u=74;break e}}case 39:{D(39),u=74;break}case 34:{D(34),u=74;break}case 47:switch(f[e+4>>1]|0){case 47:{Qt();break e}case 42:{ft(1);break e}default:{a=n[57]|0,l=f[a>>1]|0;A:do if(ge(l)|0)switch(l<<16>>16){case 46:if(((f[a+-2>>1]|0)+-48&65535)<10){u=68;break A}else{u=71;break A}case 43:if((f[a+-2>>1]|0)==43){u=68;break A}else{u=71;break A}case 45:if((f[a+-2>>1]|0)==45){u=68;break A}else{u=71;break A}default:{u=71;break A}}else{switch(l<<16>>16){case 41:if(Ee(n[(n[59]|0)+(m[379]<<2)>>2]|0)|0){u=71;break A}else{u=68;break A}case 125:break;default:{u=68;break A}}e=m[379]|0,!(Qe(n[(n[59]|0)+(e<<2)>>2]|0)|0)&&(C[I+e>>0]|0)==0?u=68:u=71}while(0);A:do if((u|0)==68)if(u=0,U(a)|0)u=71;else{switch(l<<16>>16){case 0:{u=71;break A}case 47:break;default:{e=1;break A}}C[764]|0?u=71:e=1}while(0);(u|0)==71&&(he(),e=0),C[764]=e,u=74;break e}}case 96:{tt(),u=74;break}default:u=74}while(0);(u|0)==74&&(u=0,n[57]=n[61]),e=n[61]|0}if((u|0)==36){J(),e=0;break}else if((u|0)==49){J(),e=0;break}else if((u|0)==53){J(),e=0;break}else if((u|0)==75){e=(f[380]|0)==-1&(f[379]|0)==0&(C[762]|0)==0&(f[378]|0)==0;break}}while(0);return w=M,e|0}function v(){var e=0,a=0,l=0,Q=0,u=0,I=0;u=n[61]|0,I=u+12|0,n[61]=I,a=E(1)|0,e=n[61]|0,(e|0)==(I|0)&&!(ht(a)|0)||(Q=3);t:do if((Q|0)==3){e:do switch(a<<16>>16){case 100:{j(e,e+14|0);break t}case 97:{n[61]=e+10,E(1)|0,e=n[61]|0,Q=6;break}case 102:{Q=6;break}case 99:{if((y(e+2|0,36,8)|0)==0&&(l=e+10|0,et(f[l>>1]|0)|0)){n[61]=l,u=E(1)|0,I=n[61]|0,F(u)|0,j(I,n[61]|0),n[61]=(n[61]|0)+-2;break t}e=e+4|0,n[61]=e,Q=13;break}case 108:case 118:{Q=13;break}case 123:{for(n[61]=e+2,e=E(1)|0,l=n[61]|0;;){if(O(e)|0?(D(e),e=(n[61]|0)+2|0,n[61]=e):(F(e)|0,e=n[61]|0),E(1)|0,e=St(l,e)|0,e<<16>>16==44&&(n[61]=(n[61]|0)+2,e=E(1)|0),a=l,l=n[61]|0,e<<16>>16==125){Q=32;break}if((l|0)==(a|0)){Q=29;break}if(l>>>0>(n[62]|0)>>>0){Q=31;break}}if((Q|0)==29){J();break t}else if((Q|0)==31){J();break t}else if((Q|0)==32){n[61]=l+2,Q=34;break e}break}case 42:{n[61]=e+2,E(1)|0,Q=n[61]|0,St(Q,Q)|0,Q=34;break}default:}while(0);if((Q|0)==6){n[61]=e+16,e=E(1)|0,e<<16>>16==42&&(n[61]=(n[61]|0)+2,e=E(1)|0),I=n[61]|0,F(e)|0,j(I,n[61]|0),n[61]=(n[61]|0)+-2;break}else if((Q|0)==13){e=e+4|0,n[61]=e,C[763]=0;e:for(;;){switch(n[61]=e+2,I=E(1)|0,e=n[61]|0,(F(I)|0)<<16>>16){case 91:case 123:{Q=15;break e}default:}if(a=n[61]|0,(a|0)==(e|0))break t;switch(j(e,a),(E(1)|0)<<16>>16){case 61:{Q=19;break e}case 44:break;default:{Q=20;break e}}e=n[61]|0}if((Q|0)==15){n[61]=(n[61]|0)+-2;break}else if((Q|0)==19){n[61]=(n[61]|0)+-2;break}else if((Q|0)==20){n[61]=(n[61]|0)+-2;break}}else(Q|0)==34&&(a=E(1)|0);if(e=n[61]|0,a<<16>>16==102&&(y(e+2|0,52,6)|0)==0){n[61]=e+8,x(u,E(1)|0);break}n[61]=e+-2}while(0)}function z(){var e=0,a=0,l=0,Q=0,u=0;u=n[61]|0,a=u+12|0,n[61]=a;t:do switch((E(1)|0)<<16>>16){case 40:{if(e=n[61]|0,a=n[59]|0,l=f[379]|0,f[379]=l+1<<16>>16,n[a+((l&65535)<<2)>>2]=e,(f[n[57]>>1]|0)!=46){switch(e=n[61]|0,n[61]=e+2,l=E(1)|0,ut(u,n[61]|0,0,e),e=n[51]|0,a=n[60]|0,u=f[378]|0,f[378]=u+1<<16>>16,n[a+((u&65535)<<2)>>2]=e,l<<16>>16){case 39:{D(39);break}case 34:{D(34);break}default:{n[61]=(n[61]|0)+-2;break t}}switch(e=(n[61]|0)+2|0,n[61]=e,(E(1)|0)<<16>>16){case 44:{n[61]=(n[61]|0)+2,E(1)|0,l=n[51]|0,n[l+4>>2]=e,u=n[61]|0,n[l+16>>2]=u,C[l+24>>0]=1,n[61]=u+-2;break t}case 41:{f[379]=(f[379]|0)+-1<<16>>16,u=n[51]|0,n[u+4>>2]=e,n[u+12>>2]=(n[61]|0)+2,C[u+24>>0]=1,f[378]=(f[378]|0)+-1<<16>>16;break t}default:{n[61]=(n[61]|0)+-2;break t}}}break}case 46:{n[61]=(n[61]|0)+2,(E(1)|0)<<16>>16==109&&(e=n[61]|0,(y(e+2|0,44,6)|0)==0)&&(f[n[57]>>1]|0)!=46&&ut(u,u,e+8|0,2);break}case 42:case 39:case 34:{Q=16;break}case 123:{if(e=n[61]|0,f[379]|0){n[61]=e+-2;break t}for(;!(e>>>0>=(n[62]|0)>>>0);){if(e=E(1)|0,O(e)|0)D(e);else if(e<<16>>16==125){Q=31;break}e=(n[61]|0)+2|0,n[61]=e}if((Q|0)==31&&(n[61]=(n[61]|0)+2),E(1)|0,e=n[61]|0,y(e,50,8)|0){J();break t}if(n[61]=e+8,e=E(1)|0,O(e)|0){x(u,e);break t}else{J();break t}}default:(n[61]|0)!=(a|0)&&(Q=16)}while(0);do if((Q|0)==16){if(f[379]|0){n[61]=(n[61]|0)+-2;break}for(e=n[62]|0,a=n[61]|0;;){if(a>>>0>=e>>>0){Q=23;break}if(l=f[a>>1]|0,O(l)|0){Q=21;break}Q=a+2|0,n[61]=Q,a=Q}if((Q|0)==21){x(u,l);break}else if((Q|0)==23){J();break}}while(0)}function x(e,a){e=e|0,a=a|0;var l=0,Q=0;switch(l=(n[61]|0)+2|0,a<<16>>16){case 39:{D(39),Q=5;break}case 34:{D(34),Q=5;break}default:J()}do if((Q|0)==5){if(ut(e,l,n[61]|0,1),n[61]=(n[61]|0)+2,Q=(E(0)|0)<<16>>16==97,a=n[61]|0,Q&&(y(a+2|0,58,10)|0)==0){if(n[61]=a+12,(E(1)|0)<<16>>16!=123){n[61]=a;break}e=n[61]|0,l=e;t:for(;;){switch(n[61]=l+2,l=E(1)|0,l<<16>>16){case 39:{D(39),n[61]=(n[61]|0)+2,l=E(1)|0;break}case 34:{D(34),n[61]=(n[61]|0)+2,l=E(1)|0;break}default:l=F(l)|0}if(l<<16>>16!=58){Q=16;break}switch(n[61]=(n[61]|0)+2,(E(1)|0)<<16>>16){case 39:{D(39);break}case 34:{D(34);break}default:{Q=20;break t}}switch(n[61]=(n[61]|0)+2,(E(1)|0)<<16>>16){case 125:{Q=25;break t}case 44:break;default:{Q=24;break t}}if(n[61]=(n[61]|0)+2,(E(1)|0)<<16>>16==125){Q=25;break}l=n[61]|0}if((Q|0)==16){n[61]=a;break}else if((Q|0)==20){n[61]=a;break}else if((Q|0)==24){n[61]=a;break}else if((Q|0)==25){Q=n[51]|0,n[Q+16>>2]=e,n[Q+12>>2]=(n[61]|0)+2;break}}n[61]=a+-2}while(0)}function U(e){e=e|0;t:do switch(f[e>>1]|0){case 100:switch(f[e+-2>>1]|0){case 105:{e=S(e+-4|0,68,2)|0;break t}case 108:{e=S(e+-4|0,72,3)|0;break t}default:{e=0;break t}}case 101:{switch(f[e+-2>>1]|0){case 115:break;case 116:{e=S(e+-4|0,78,4)|0;break t}default:{e=0;break t}}switch(f[e+-4>>1]|0){case 108:{e=H(e+-6|0,101)|0;break t}case 97:{e=H(e+-6|0,99)|0;break t}default:{e=0;break t}}}case 102:{if((f[e+-2>>1]|0)==111&&(f[e+-4>>1]|0)==101)switch(f[e+-6>>1]|0){case 99:{e=S(e+-8|0,86,6)|0;break t}case 112:{e=S(e+-8|0,98,2)|0;break t}default:{e=0;break t}}else e=0;break}case 110:{e=e+-2|0,H(e,105)|0?e=1:e=S(e,102,5)|0;break}case 111:{e=H(e+-2|0,100)|0;break}case 114:{e=S(e+-2|0,112,7)|0;break}case 116:{e=S(e+-2|0,126,4)|0;break}case 119:switch(f[e+-2>>1]|0){case 101:{e=H(e+-4|0,110)|0;break t}case 111:{e=S(e+-4|0,134,3)|0;break t}default:{e=0;break t}}default:e=0}while(0);return e|0}function tt(){var e=0,a=0,l=0;a=n[62]|0,l=n[61]|0;t:for(;;){if(e=l+2|0,l>>>0>=a>>>0){a=8;break}switch(f[e>>1]|0){case 96:{a=9;break t}case 36:{if((f[l+4>>1]|0)==123){a=6;break t}break}case 92:{e=l+4|0;break}default:}l=e}(a|0)==6?(n[61]=l+4,e=f[380]|0,a=n[58]|0,l=f[377]|0,f[377]=l+1<<16>>16,f[a+((l&65535)<<1)>>1]=e,l=(f[379]|0)+1<<16>>16,f[379]=l,f[380]=l):(a|0)==8?(n[61]=e,J()):(a|0)==9&&(n[61]=e)}function E(e){e=e|0;var a=0,l=0,Q=0;l=n[61]|0;t:do{a=f[l>>1]|0;e:do if(a<<16>>16!=47)if(e){if(gt(a)|0)break;break t}else{if(de(a)|0)break;break t}else switch(f[l+2>>1]|0){case 47:{Qt();break e}case 42:{ft(e);break e}default:{a=47;break t}}while(0);Q=n[61]|0,l=Q+2|0,n[61]=l}while(Q>>>0<(n[62]|0)>>>0);return a|0}function D(e){e=e|0;var a=0,l=0,Q=0,u=0;for(u=n[62]|0,a=n[61]|0;;){if(Q=a+2|0,a>>>0>=u>>>0){a=9;break}if(l=f[Q>>1]|0,l<<16>>16==e<<16>>16){a=10;break}if(l<<16>>16==92)l=a+4|0,(f[l>>1]|0)==13?(a=a+6|0,a=(f[a>>1]|0)==10?a:l):a=l;else if(Dt(l)|0){a=9;break}else a=Q}(a|0)==9?(n[61]=Q,J()):(a|0)==10&&(n[61]=Q)}function ut(e,a,l,Q){e=e|0,a=a|0,l=l|0,Q=Q|0;var u=0,I=0;u=n[55]|0,n[55]=u+32,I=n[51]|0,n[((I|0)==0?188:I+28|0)>>2]=u,n[52]=I,n[51]=u,n[u+8>>2]=e,(Q|0)==2?e=l:e=(Q|0)==1?l+2|0:0,n[u+12>>2]=e,n[u>>2]=a,n[u+4>>2]=l,n[u+16>>2]=0,n[u+20>>2]=Q,C[u+24>>0]=(Q|0)==1&1,n[u+28>>2]=0}function fe(){var e=0,a=0,l=0;l=n[62]|0,a=n[61]|0;t:for(;;){if(e=a+2|0,a>>>0>=l>>>0){a=6;break}switch(f[e>>1]|0){case 13:case 10:{a=6;break t}case 93:{a=7;break t}case 92:{e=a+4|0;break}default:}a=e}return(a|0)==6?(n[61]=e,J(),e=0):(a|0)==7&&(n[61]=e,e=93),e|0}function St(e,a){e=e|0,a=a|0;var l=0,Q=0;return l=n[61]|0,Q=f[l>>1]|0,Q<<16>>16==97&&(n[61]=l+4,l=E(1)|0,e=n[61]|0,O(l)|0?(D(l),a=(n[61]|0)+2|0,n[61]=a):(F(l)|0,a=n[61]|0),Q=E(1)|0,l=n[61]|0),(l|0)!=(e|0)&&j(e,a),Q|0}function he(){var e=0,a=0,l=0;t:for(;;){if(e=n[61]|0,a=e+2|0,n[61]=a,e>>>0>=(n[62]|0)>>>0){l=7;break}switch(f[a>>1]|0){case 13:case 10:{l=7;break t}case 47:break t;case 91:{fe()|0;break}case 92:{n[61]=e+4;break}default:}}(l|0)==7&&J()}function Qe(e){switch(e=e|0,f[e>>1]|0){case 62:{e=(f[e+-2>>1]|0)==61;break}case 41:case 59:{e=1;break}case 104:{e=S(e+-2|0,160,4)|0;break}case 121:{e=S(e+-2|0,168,6)|0;break}case 101:{e=S(e+-2|0,180,3)|0;break}default:e=0}return e|0}function ft(e){e=e|0;var a=0,l=0,Q=0,u=0,I=0;for(u=(n[61]|0)+2|0,n[61]=u,l=n[62]|0;a=u+2|0,!(u>>>0>=l>>>0||(Q=f[a>>1]|0,!e&&Dt(Q)|0));){if(Q<<16>>16==42&&(f[u+4>>1]|0)==47){I=8;break}u=a}(I|0)==8&&(n[61]=a,a=u+4|0),n[61]=a}function y(e,a,l){e=e|0,a=a|0,l=l|0;var Q=0,u=0;t:do if(!l)e=0;else{for(;Q=C[e>>0]|0,u=C[a>>0]|0,Q<<24>>24==u<<24>>24;)if(l=l+-1|0,l)e=e+1|0,a=a+1|0;else{e=0;break t}e=(Q&255)-(u&255)|0}while(0);return e|0}function ht(e){e=e|0;t:do switch(e<<16>>16){case 38:case 37:case 33:{e=1;break}default:if((e&-8)<<16>>16==40|(e+-58&65535)<6)e=1;else{switch(e<<16>>16){case 91:case 93:case 94:{e=1;break t}default:}e=(e+-123&65535)<4}}while(0);return e|0}function ge(e){e=e|0;t:do switch(e<<16>>16){case 38:case 37:case 33:break;default:if(!((e+-58&65535)<6|(e+-40&65535)<7&e<<16>>16!=41)){switch(e<<16>>16){case 91:case 94:break t;default:}return e<<16>>16!=125&(e+-123&65535)<4|0}}while(0);return 1}function Ce(e){e=e|0;var a=0,l=0,Q=0,u=0;return l=w,w=w+16|0,Q=l,n[Q>>2]=0,n[54]=e,a=n[3]|0,u=a+(e<<1)|0,e=u+2|0,f[u>>1]=0,n[Q>>2]=e,n[55]=e,n[47]=0,n[51]=0,n[49]=0,n[48]=0,n[53]=0,n[50]=0,w=l,a|0}function S(e,a,l){e=e|0,a=a|0,l=l|0;var Q=0,u=0;return Q=e+(0-l<<1)|0,u=Q+2|0,e=n[3]|0,u>>>0>=e>>>0&&(y(u,a,l<<1)|0)==0?(u|0)==(e|0)?e=1:e=et(f[Q>>1]|0)|0:e=0,e|0}function H(e,a){e=e|0,a=a|0;var l=0;return l=n[3]|0,l>>>0<=e>>>0&&(f[e>>1]|0)==a<<16>>16?(l|0)==(e|0)?l=1:l=et(f[e+-2>>1]|0)|0:l=0,l|0}function et(e){e=e|0;t:do if((e+-9&65535)<5)e=1;else{switch(e<<16>>16){case 32:case 160:{e=1;break t}default:}e=e<<16>>16!=46&(ht(e)|0)}while(0);return e|0}function Qt(){var e=0,a=0,l=0;e=n[62]|0,l=n[61]|0;t:for(;a=l+2|0,!(l>>>0>=e>>>0);)switch(f[a>>1]|0){case 13:case 10:break t;default:l=a}n[61]=a}function j(e,a){e=e|0,a=a|0;var l=0,Q=0;l=n[55]|0,n[55]=l+12,Q=n[53]|0,n[((Q|0)==0?192:Q+8|0)>>2]=l,n[53]=l,n[l>>2]=e,n[l+4>>2]=a,n[l+8>>2]=0}function F(e){for(e=e|0;!(gt(e)|0||ht(e)|0);)if(e=(n[61]|0)+2|0,n[61]=e,e=f[e>>1]|0,!(e<<16>>16)){e=0;break}return e|0}function Be(){var e=0;switch(e=n[(n[49]|0)+20>>2]|0,e|0){case 1:{e=-1;break}case 2:{e=-2;break}default:e=e-(n[3]|0)>>1}return e|0}function Ee(e){return e=e|0,!(S(e,140,5)|0)&&!(S(e,150,3)|0)?e=S(e,156,2)|0:e=1,e|0}function de(e){switch(e=e|0,e<<16>>16){case 160:case 32:case 12:case 11:case 9:{e=1;break}default:e=0}return e|0}function q(e){return e=e|0,(n[3]|0)==(e|0)?e=1:e=et(f[e+-2>>1]|0)|0,e|0}function ke(){var e=0;return e=n[(n[49]|0)+12>>2]|0,e?e=e-(n[3]|0)>>1:e=-1,e|0}function Ie(){var e=0;return e=n[(n[49]|0)+16>>2]|0,e?e=e-(n[3]|0)>>1:e=-1,e|0}function we(){var e=0;return e=n[(n[49]|0)+4>>2]|0,e?e=e-(n[3]|0)>>1:e=-1,e|0}function pe(){var e=0;return e=n[49]|0,e=n[((e|0)==0?188:e+28|0)>>2]|0,n[49]=e,(e|0)!=0|0}function be(){var e=0;return e=n[50]|0,e=n[((e|0)==0?192:e+8|0)>>2]|0,n[50]=e,(e|0)!=0|0}function J(){C[762]=1,n[56]=(n[61]|0)-(n[3]|0)>>1,n[61]=(n[62]|0)+2}function gt(e){return e=e|0,(e|128)<<16>>16==160|(e+-9&65535)<5|0}function O(e){return e=e|0,e<<16>>16==39|e<<16>>16==34|0}function me(){return(n[(n[49]|0)+8>>2]|0)-(n[3]|0)>>1|0}function Se(){return(n[(n[50]|0)+4>>2]|0)-(n[3]|0)>>1|0}function Dt(e){return e=e|0,e<<16>>16==13|e<<16>>16==10|0}function De(){return(n[n[49]>>2]|0)-(n[3]|0)>>1|0}function Je(){return(n[n[50]>>2]|0)-(n[3]|0)>>1|0}function ye(){return B[(n[49]|0)+24>>0]|0|0}function Ke(e){e=e|0,n[3]=e}function ve(){return(C[763]|0)!=0|0}function Le(){return n[56]|0}function Ne(e){return e=e|0,w=e+992+15&-16,992}return{su:Ne,ai:Ie,e:Le,ee:Se,es:Je,f:ve,id:Be,ie:we,ip:ye,is:De,p:K,re:be,ri:pe,sa:Ce,se:ke,ses:Ke,ss:me}}(typeof self<"u"?self:global,{},it),dt=p.su(T-(2<<17))}const r=b.length+1;p.ses(dt),p.sa(r-1),Lt(b,new Uint16Array(it,dt,r)),p.p()||(d=p.e(),L());const s=[],o=[];for(;p.ri();){const c=p.is(),g=p.ie(),h=p.ai(),C=p.id(),f=p.ss(),n=p.se();let B;p.ip()&&(B=Rt(C===-1?c:c+1,b.charCodeAt(C===-1?c-1:c))),s.push({n:B,s:c,e:g,ss:f,se:n,d:C,a:h})}for(;p.re();){const c=p.es(),g=b.charCodeAt(c);o.push(g===34||g===39?Rt(c+1,g):b.slice(p.es(),p.ee()))}return[s,o,!!p.f()]}function Rt(i,t){d=i;let A="",r=d;for(;;){d>=b.length&&L();const s=b.charCodeAt(d);if(s===t)break;s===92?(A+=b.slice(r,d),A+=sA(),r=d):(s===8232||s===8233||xt(s)&&L(),++d)}return A+=b.slice(r,d++),A}function sA(){let i=b.charCodeAt(++d);switch(++d,i){case 110:return`

return mod
})`.replace(/[\n\t]+/g,"");function It(i){if(!i.includes("import"))return;const[t]=oA(i);if(t.length===0)return;const A=new mt(i);for(const r of t)r.d>-1&&A.appendRight(r.se,aA);return{code:A.toString(),map:A.generateMap({hires:!0})}}function cA(i){try{const t=R.default.readFileSync(i,"utf8");return JSON.parse(t)}catch{}}const Ft=()=>Math.floor(Date.now()/1e8);class lA extends Map{cacheDirectory=Y.default.join(je.default.tmpdir(),"esbuild-kit");cacheFiles;constructor(){super(),R.default.existsSync(this.cacheDirectory)||R.default.mkdirSync(this.cacheDirectory),this.cacheFiles=R.default.readdirSync(this.cacheDirectory).map(t=>{const[A,r]=t.split("-");return{time:Number(A),key:r,fileName:t}}),setImmediate(()=>this.expireDiskCache())}get(t){const A=super.get(t);if(A)return A;const r=this.cacheFiles.find(c=>c.key===t);if(!r)return;const s=Y.default.join(this.cacheDirectory,r.fileName),o=cA(s);if(!o){R.default.promises.unlink(s).then(()=>{const c=this.cacheFiles.indexOf(r);this.cacheFiles.splice(c,1)},()=>{});return}return super.set(t,o),o}set(t,A){if(super.set(t,A),A){const r=Ft();R.default.promises.writeFile(Y.default.join(this.cacheDirectory,`${r}-${t}`),JSON.stringify(A)).catch(()=>{})}return this}expireDiskCache(){const t=Ft();for(const A of this.cacheFiles)t-A.time>7&&R.default.promises.unlink(Y.default.join(this.cacheDirectory,A.fileName)).catch(()=>{})}}var st=process.env.ESBK_DISABLE_CACHE?new Map:new lA;const Mt=",".charCodeAt(0),uA=";".charCodeAt(0),Yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gt=new Uint8Array(64),Ht=new Uint8Array(128);for(let i=0;i<Yt.length;i++){const t=Yt.charCodeAt(i);Gt[i]=t,Ht[t]=i}const wt=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(i){return Buffer.from(i.buffer,i.byteOffset,i.byteLength).toString()}}:{decode(i){let t="";for(let A=0;A<i.length;A++)t+=String.fromCharCode(i[A]);return t}};function fA(i){const t=new Int32Array(5),A=[];let r=0;do{const s=hA(i,r),o=[];let c=!0,g=0;t[0]=0;for(let h=r;h<s;h++){let C;h=$(i,h,t,0);const f=t[0];f<g&&(c=!1),g=f,jt(i,h,s)?(h=$(i,h,t,1),h=$(i,h,t,2),h=$(i,h,t,3),jt(i,h,s)?(h=$(i,h,t,4),C=[f,t[1],t[2],t[3],t[4]]):C=[f,t[1],t[2],t[3]]):C=[f],o.push(C)}c||QA(o),A.push(o),r=s+1}while(r<=i.length);return A}function hA(i,t){const A=i.indexOf(";",t);return A===-1?i.length:A}function $(i,t,A,r){let s=0,o=0,c=0;do{const h=i.charCodeAt(t++);c=Ht[h],s|=(c&31)<<o,o+=5}while(c&32);const g=s&1;return s>>>=1,g&&(s=-2147483648|-s),A[r]+=s,t}function jt(i,t,A){return t>=A?!1:i.charCodeAt(t)!==Mt}function QA(i){i.sort(gA)}function gA(i,t){return i[0]-t[0]}function CA(i){const t=new Int32Array(5),A=1024*16,r=A-36,s=new Uint8Array(A),o=s.subarray(0,r);let c=0,g="";for(let h=0;h<i.length;h++){const C=i[h];if(h>0&&(c===A&&(g+=wt.decode(s),c=0),s[c++]=uA),C.length!==0){t[0]=0;for(let f=0;f<C.length;f++){const n=C[f];c>r&&(g+=wt.decode(o),s.copyWithin(0,r,c),c-=r),f>0&&(s[c++]=Mt),c=W(s,c,t,n,0),n.length!==1&&(c=W(s,c,t,n,1),c=W(s,c,t,n,2),c=W(s,c,t,n,3),n.length!==4&&(c=W(s,c,t,n,4)))}}}return g+wt.decode(s.subarray(0,c))}function W(i,t,A,r,s){const o=r[s];let c=o-A[s];A[s]=o,c=c<0?-c<<1|1:c<<1;do{let g=c&31;c>>>=5,c>0&&(g|=32),i[t++]=Gt[g]}while(c>0);return t}const BA=/^[\w+.-]+:\/\//,EA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?/,dA=/^file:(?:\/\/((?![a-z]:)[^/]*)?)?(\/?.*)/i;function kA(i){return BA.test(i)}function IA(i){return i.startsWith("//")}function qt(i){return i.startsWith("/")}function wA(i){return i.startsWith("file:")}function ot(i){const t=EA.exec(i);return Ot(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/")}function pA(i){const t=dA.exec(i),A=t[2];return Ot("file:","",t[1]||"","",qt(A)?A:"/"+A)}function Ot(i,t,A,r,s){return{scheme:i,user:t,host:A,port:r,path:s,relativePath:!1}}function _t(i){if(IA(i)){const A=ot("http:"+i);return A.scheme="",A}if(qt(i)){const A=ot("http://foo.com"+i);return A.scheme="",A.host="",A}if(wA(i))return pA(i);if(kA(i))return ot(i);const t=ot("http://foo.com/"+i);return t.scheme="",t.host="",t.relativePath=!0,t}function bA(i){if(i.endsWith("/.."))return i;const t=i.lastIndexOf("/");return i.slice(0,t+1)}function mA(i,t){!i.relativePath||(Pt(t),i.path==="/"?i.path=t.path:i.path=bA(t.path)+i.path,i.relativePath=t.relativePath)}function Pt(i){const{relativePath:t}=i,A=i.path.split("/");let r=1,s=0,o=!1;for(let g=1;g<A.length;g++){const h=A[g];if(!h){o=!0;continue}if(o=!1,h!=="."){if(h===".."){s?(o=!0,s--,r--):t&&(A[r++]=h);continue}A[r++]=h,s++}}let c="";for(let g=1;g<r;g++)c+="/"+A[g];(!c||o&&!c.endsWith("/.."))&&(c+="/"),i.path=c}function SA(i,t){if(!i&&!t)return"";const A=_t(i);if(t&&!A.scheme){const r=_t(t);A.scheme=r.scheme,A.host||(A.user=r.user,A.host=r.host,A.port=r.port),mA(A,r)}if(Pt(A),A.relativePath){const r=A.path.slice(1);return r?!(t||i).startsWith(".")||r.startsWith(".")?r:"./"+r:"."}return!A.scheme&&!A.host?A.path:`${A.scheme}//${A.user}${A.host}${A.port}${A.path}`}function Xt(i,t){return t&&!t.endsWith("/")&&(t+="/"),SA(i,t)}function DA(i){if(!i)return"";const t=i.lastIndexOf("/");return i.slice(0,t+1)}const N=0;function JA(i,t){const A=Tt(i,0);if(A===i.length)return i;t||(i=i.slice());for(let r=A;r<i.length;r=Tt(i,r+1))i[r]=KA(i[r],t);return i}function Tt(i,t){for(let A=t;A<i.length;A++)if(!yA(i[A]))return A;return i.length}function yA(i){for(let t=1;t<i.length;t++)if(i[t][N]<i[t-1][N])return!1;return!0}function KA(i,t){return t||(i=i.slice()),i.sort(vA)}function vA(i,t){return i[N]-t[N]}let at=!1;function LA(i,t,A,r){for(;A<=r;){const s=A+(r-A>>1),o=i[s][N]-t;if(o===0)return at=!0,s;o<0?A=s+1:r=s-1}return at=!1,A-1}function NA(i,t,A){for(let r=A+1;r<i.length&&i[r][N]===t;A=r++);return A}function RA(i,t,A){for(let r=A-1;r>=0&&i[r][N]===t;A=r--);return A}function xA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function UA(i,t,A,r){const{lastKey:s,lastNeedle:o,lastIndex:c}=A;let g=0,h=i.length-1;if(r===s){if(t===o)return at=c!==-1&&i[c][N]===t,c;t>=o?g=c===-1?0:c:h=c}return A.lastKey=r,A.lastNeedle=t,A.lastIndex=LA(i,t,g,h)}const $t=-1,FA=1;let pt,Wt;class Vt{constructor(t,A){this._decodedMemo=xA(),this._bySources=void 0,this._bySourceMemos=void 0;const r=typeof t=="string";if(!r&&t._decodedMemo)return t;const s=r?JSON.parse(t):t,{version:o,file:c,names:g,sourceRoot:h,sources:C,sourcesContent:f}=s;this.version=o,this.file=c,this.names=g,this.sourceRoot=h,this.sources=C,this.sourcesContent=f;const n=Xt(h||"",DA(A));this.resolvedSources=C.map(m=>Xt(m||"",n));const{mappings:B}=s;typeof B=="string"?(this._encoded=B,this._decoded=void 0):(this._encoded=void 0,this._decoded=JA(B,r))}}pt=i=>i._decoded||(i._decoded=fA(i._encoded)),Wt=(i,t,A)=>{const r=pt(i);return t>=r.length?null:MA(r[t],i._decodedMemo,t,A,FA)};function MA(i,t,A,r,s){let o=UA(i,r,t,A);return at?o=(s===$t?NA:RA)(i,r,o):s===$t&&o++,o===-1||o===i.length?null:i[o]}let Zt,ct;class zt{constructor(){this._indexes={__proto__:null},this.array=[]}}Zt=(i,t)=>i._indexes[t],ct=(i,t)=>{const A=Zt(i,t);if(A!==void 0)return A;const{array:r,_indexes:s}=i;return s[t]=r.push(t)-1};let te,ee,bt,Ae;class YA{constructor({file:t,sourceRoot:A}={}){this._names=new zt,this._sources=new zt,this._sourcesContent=[],this._mappings=[],this.file=t,this.sourceRoot=A}}te=(i,t,A,r,s,o,c)=>{const{_mappings:g,_sources:h,_sourcesContent:C,_names:f}=i,n=GA(g,t);if(r==null){const K=[A],v=re(n,A,K);return ne(n,v,K)}const B=ct(h,r),m=c?[A,B,s,o,ct(f,c)]:[A,B,s,o],w=re(n,A,m);B===C.length&&(C[B]=null),ne(n,w,m)},ee=(i,t,A)=>{const{_sources:r,_sourcesContent:s}=i;s[ct(r,t)]=A},bt=i=>{const{file:t,sourceRoot:A,_mappings:r,_sources:s,_sourcesContent:o,_names:c}=i;return{version:3,file:t,names:c.array,sourceRoot:A||void 0,sources:s.array,sourcesContent:o,mappings:r}},Ae=i=>{const t=bt(i);return Object.assign(Object.assign({},t),{mappings:CA(t.mappings)})};function GA(i,t){for(let A=i.length;A<=t;A++)i[A]=[];return i[t]}function re(i,t,A){let r=i.length;for(let s=r-1;s>=0;s--,r--){const o=i[s],c=o[0];if(c>t)continue;if(c<t)break;const g=HA(o,A);if(g===0)return r;if(g<0)break}return r}function HA(i,t){let A=V(i.length,t.length);return A!==0?A:i.length===1?0:(A=V(i[1],t[1]),A!==0||(A=V(i[2],t[2]),A!==0)||(A=V(i[3],t[3]),A!==0)?A:i.length===4?0:V(i[4],t[4]))}function V(i,t){return i-t}function ne(i,t,A){if(t!==-1){for(let r=i.length;r>t;r--)i[r]=i[r-1];i[t]=A}}const ie={source:null,column:null,line:null,name:null,content:null},jA=[];function se(i,t,A,r){return{map:i,sources:t,source:A,content:r}}function oe(i,t){return se(i,t,"",null)}function qA(i,t){return se(null,jA,i,t)}function OA(i){const t=new YA({file:i.map.file}),{sources:A,map:r}=i,s=r.names,o=pt(r);for(let c=0;c<o.length;c++){const g=o[c];let h=null,C=null,f=null;for(let n=0;n<g.length;n++){const B=g[n],m=B[0];let w=ie;if(B.length!==1){const tt=A[B[1]];if(w=ae(tt,B[2],B[3],B.length===5?s[B[4]]:""),w==null)continue}const{column:K,line:v,name:z,content:x,source:U}=w;v===C&&K===f&&U===h||(C=v,f=K,h=U,te(t,c,m,U,v,K,z),x!=null&&ee(t,U,x))}}return t}function ae(i,t,A,r){if(!i.map)return{column:A,line:t,name:r,source:i.source,content:i.content};const s=Wt(i.map,t,A);return s==null?null:s.length===1?ie:ae(i.sources[s[1]],s[2],s[3],s.length===5?i.map.names[s[4]]:r)}function _A(i){return Array.isArray(i)?i:[i]}function PA(i,t){const A=_A(i).map(o=>new Vt(o,"")),r=A.pop();for(let o=0;o<A.length;o++)if(A[o].sources.length>1)throw new Error(`Transformation map ${o} must have exactly one source file.
Did you specify these with the most recent transformation maps first?`);let s=ce(r,t,"",0);for(let o=A.length-1;o>=0;o--)s=oe(A[o],[s]);return s}function ce(i,t,A,r){const{resolvedSources:s,sourcesContent:o}=i,c=r+1,g=s.map((h,C)=>{const f={importer:A,depth:c,source:h||"",content:void 0},n=t(f.source,f),{source:B,content:m}=f;if(n)return ce(new Vt(n,B),t,B,c);const w=m!==void 0?m:o?o[C]:null;return qA(B,w)});return oe(i,g)}class XA{constructor(t,A){const r=A.decodedMappings?bt(t):Ae(t);this.version=r.version,this.file=r.file,this.mappings=r.mappings,this.names=r.names,this.sourceRoot=r.sourceRoot,this.sources=r.sources,A.excludeContent||(this.sourcesContent=r.sourcesContent)}toString(){return JSON.stringify(this)}}function le(i,t,A){const r=typeof A=="object"?A:{excludeContent:!!A,decodedMappings:!1},s=PA(i,t);return new XA(OA(s),r)}function TA(i,t){const A=[],r={code:i,map:""};for(const s of t){const o=s(r.code);o&&(Object.assign(r,o),A.unshift(o.map))}return r.map=A.length>1?le(A,()=>null).toString():A[0].toString(),r}async function $A(i,t){const A=[],r={code:i,map:""};for(const s of t){const o=await s(r.code);o&&(Object.assign(r,o),A.unshift(o.map))}return r.map=A.length>1?le(A,()=>null).toString():A[0].toString(),r}const WA=process.versions.node,ue=i=>{const t={target:`node${WA}`,loader:"default",sourcemap:!0,minifySyntax:!0,minifyWhitespace:!0,...i};if(t.sourcefile){const{sourcefile:A}=t,r=Y.default.extname(A);r?(r===".cts"||r===".mts")&&(t.sourcefile=`${A.slice(0,-3)}ts`):t.sourcefile+=".js"}return t};function VA(i,t,A){const r={};t.endsWith(".cjs")||t.endsWith(".cts")||(r["import.meta.url"]=`'${xe.pathToFileURL(t)}'`);const s=ue({format:"cjs",sourcefile:t,define:r,...A}),o=Jt(i+JSON.stringify(s)+rt.version),c=st.get(o);if(c)return c;const g=TA(i,[h=>rt.transformSync(h,s),It]);if(g.warnings.length>0){const{warnings:h}=g;for(const C of h)console.log(C)}return st.set(o,g),g}async function ZA(i,t,A){const r=ue({format:"esm",sourcefile:t,...A}),s=Jt(i+JSON.stringify(r)+rt.version),o=st.get(s);if(o)return o;const c=await $A(i,[g=>rt.transform(g,r),It]);if(c.warnings.length>0){const{warnings:g}=c;for(const h of g)console.log(h)}return st.set(s,c),c}const zA={".js":".ts",".cjs":".cts",".mjs":".mts"};function tr(i){const t=Y.default.extname(i),A=zA[t];if(A)return i.slice(0,-t.length)+A}exports.applySourceMap=Pe,exports.installSourceMapSupport=Oe,exports.resolveTsPath=tr,exports.transform=ZA,exports.transformDynamicImport=It,exports.transformSync=VA;
})`.replace(/[\n\t]+/g,"");function It(i){if(!i.includes("import"))return;const[t]=oA(i);if(t.length===0)return;const A=new mt(i);for(const r of t)r.d>-1&&A.appendRight(r.se,aA);return{code:A.toString(),map:A.generateMap({hires:!0})}}function cA(i){try{const t=R.default.readFileSync(i,"utf8");return JSON.parse(t)}catch{}}const Ft=()=>Math.floor(Date.now()/1e8);class lA extends Map{cacheDirectory=Y.default.join(je.default.tmpdir(),"esbuild-kit");cacheFiles;constructor(){super(),R.default.existsSync(this.cacheDirectory)||R.default.mkdirSync(this.cacheDirectory),this.cacheFiles=R.default.readdirSync(this.cacheDirectory).map(t=>{const[A,r]=t.split("-");return{time:Number(A),key:r,fileName:t}}),setImmediate(()=>this.expireDiskCache())}get(t){const A=super.get(t);if(A)return A;const r=this.cacheFiles.find(c=>c.key===t);if(!r)return;const s=Y.default.join(this.cacheDirectory,r.fileName),o=cA(s);if(!o){R.default.promises.unlink(s).then(()=>{const c=this.cacheFiles.indexOf(r);this.cacheFiles.splice(c,1)},()=>{});return}return super.set(t,o),o}set(t,A){if(super.set(t,A),A){const r=Ft();R.default.promises.writeFile(Y.default.join(this.cacheDirectory,`${r}-${t}`),JSON.stringify(A)).catch(()=>{})}return this}expireDiskCache(){const t=Ft();for(const A of this.cacheFiles)t-A.time>7&&R.default.promises.unlink(Y.default.join(this.cacheDirectory,A.fileName)).catch(()=>{})}}var st=process.env.ESBK_DISABLE_CACHE?new Map:new lA;const Mt=",".charCodeAt(0),uA=";".charCodeAt(0),Yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gt=new Uint8Array(64),Ht=new Uint8Array(128);for(let i=0;i<Yt.length;i++){const t=Yt.charCodeAt(i);Gt[i]=t,Ht[t]=i}const wt=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(i){return Buffer.from(i.buffer,i.byteOffset,i.byteLength).toString()}}:{decode(i){let t="";for(let A=0;A<i.length;A++)t+=String.fromCharCode(i[A]);return t}};function fA(i){const t=new Int32Array(5),A=[];let r=0;do{const s=hA(i,r),o=[];let c=!0,g=0;t[0]=0;for(let h=r;h<s;h++){let C;h=$(i,h,t,0);const f=t[0];f<g&&(c=!1),g=f,jt(i,h,s)?(h=$(i,h,t,1),h=$(i,h,t,2),h=$(i,h,t,3),jt(i,h,s)?(h=$(i,h,t,4),C=[f,t[1],t[2],t[3],t[4]]):C=[f,t[1],t[2],t[3]]):C=[f],o.push(C)}c||QA(o),A.push(o),r=s+1}while(r<=i.length);return A}function hA(i,t){const A=i.indexOf(";",t);return A===-1?i.length:A}function $(i,t,A,r){let s=0,o=0,c=0;do{const h=i.charCodeAt(t++);c=Ht[h],s|=(c&31)<<o,o+=5}while(c&32);const g=s&1;return s>>>=1,g&&(s=-2147483648|-s),A[r]+=s,t}function jt(i,t,A){return t>=A?!1:i.charCodeAt(t)!==Mt}function QA(i){i.sort(gA)}function gA(i,t){return i[0]-t[0]}function CA(i){const t=new Int32Array(5),A=1024*16,r=A-36,s=new Uint8Array(A),o=s.subarray(0,r);let c=0,g="";for(let h=0;h<i.length;h++){const C=i[h];if(h>0&&(c===A&&(g+=wt.decode(s),c=0),s[c++]=uA),C.length!==0){t[0]=0;for(let f=0;f<C.length;f++){const n=C[f];c>r&&(g+=wt.decode(o),s.copyWithin(0,r,c),c-=r),f>0&&(s[c++]=Mt),c=W(s,c,t,n,0),n.length!==1&&(c=W(s,c,t,n,1),c=W(s,c,t,n,2),c=W(s,c,t,n,3),n.length!==4&&(c=W(s,c,t,n,4)))}}}return g+wt.decode(s.subarray(0,c))}function W(i,t,A,r,s){const o=r[s];let c=o-A[s];A[s]=o,c=c<0?-c<<1|1:c<<1;do{let g=c&31;c>>>=5,c>0&&(g|=32),i[t++]=Gt[g]}while(c>0);return t}const BA=/^[\w+.-]+:\/\//,EA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?/,dA=/^file:(?:\/\/((?![a-z]:)[^/]*)?)?(\/?.*)/i;function kA(i){return BA.test(i)}function IA(i){return i.startsWith("//")}function qt(i){return i.startsWith("/")}function wA(i){return i.startsWith("file:")}function ot(i){const t=EA.exec(i);return Ot(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/")}function pA(i){const t=dA.exec(i),A=t[2];return Ot("file:","",t[1]||"","",qt(A)?A:"/"+A)}function Ot(i,t,A,r,s){return{scheme:i,user:t,host:A,port:r,path:s,relativePath:!1}}function _t(i){if(IA(i)){const A=ot("http:"+i);return A.scheme="",A}if(qt(i)){const A=ot("http://foo.com"+i);return A.scheme="",A.host="",A}if(wA(i))return pA(i);if(kA(i))return ot(i);const t=ot("http://foo.com/"+i);return t.scheme="",t.host="",t.relativePath=!0,t}function bA(i){if(i.endsWith("/.."))return i;const t=i.lastIndexOf("/");return i.slice(0,t+1)}function mA(i,t){!i.relativePath||(Xt(t),i.path==="/"?i.path=t.path:i.path=bA(t.path)+i.path,i.relativePath=t.relativePath)}function Xt(i){const{relativePath:t}=i,A=i.path.split("/");let r=1,s=0,o=!1;for(let g=1;g<A.length;g++){const h=A[g];if(!h){o=!0;continue}if(o=!1,h!=="."){if(h===".."){s?(o=!0,s--,r--):t&&(A[r++]=h);continue}A[r++]=h,s++}}let c="";for(let g=1;g<r;g++)c+="/"+A[g];(!c||o&&!c.endsWith("/.."))&&(c+="/"),i.path=c}function SA(i,t){if(!i&&!t)return"";const A=_t(i);if(t&&!A.scheme){const r=_t(t);A.scheme=r.scheme,A.host||(A.user=r.user,A.host=r.host,A.port=r.port),mA(A,r)}if(Xt(A),A.relativePath){const r=A.path.slice(1);return r?!(t||i).startsWith(".")||r.startsWith(".")?r:"./"+r:"."}return!A.scheme&&!A.host?A.path:`${A.scheme}//${A.user}${A.host}${A.port}${A.path}`}function Pt(i,t){return t&&!t.endsWith("/")&&(t+="/"),SA(i,t)}function DA(i){if(!i)return"";const t=i.lastIndexOf("/");return i.slice(0,t+1)}const N=0;function JA(i,t){const A=Tt(i,0);if(A===i.length)return i;t||(i=i.slice());for(let r=A;r<i.length;r=Tt(i,r+1))i[r]=KA(i[r],t);return i}function Tt(i,t){for(let A=t;A<i.length;A++)if(!yA(i[A]))return A;return i.length}function yA(i){for(let t=1;t<i.length;t++)if(i[t][N]<i[t-1][N])return!1;return!0}function KA(i,t){return t||(i=i.slice()),i.sort(vA)}function vA(i,t){return i[N]-t[N]}let at=!1;function LA(i,t,A,r){for(;A<=r;){const s=A+(r-A>>1),o=i[s][N]-t;if(o===0)return at=!0,s;o<0?A=s+1:r=s-1}return at=!1,A-1}function NA(i,t,A){for(let r=A+1;r<i.length&&i[r][N]===t;A=r++);return A}function RA(i,t,A){for(let r=A-1;r>=0&&i[r][N]===t;A=r--);return A}function xA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function UA(i,t,A,r){const{lastKey:s,lastNeedle:o,lastIndex:c}=A;let g=0,h=i.length-1;if(r===s){if(t===o)return at=c!==-1&&i[c][N]===t,c;t>=o?g=c===-1?0:c:h=c}return A.lastKey=r,A.lastNeedle=t,A.lastIndex=LA(i,t,g,h)}const $t=-1,FA=1;let pt,Wt;class Vt{constructor(t,A){this._decodedMemo=xA(),this._bySources=void 0,this._bySourceMemos=void 0;const r=typeof t=="string";if(!r&&t._decodedMemo)return t;const s=r?JSON.parse(t):t,{version:o,file:c,names:g,sourceRoot:h,sources:C,sourcesContent:f}=s;this.version=o,this.file=c,this.names=g,this.sourceRoot=h,this.sources=C,this.sourcesContent=f;const n=Pt(h||"",DA(A));this.resolvedSources=C.map(m=>Pt(m||"",n));const{mappings:B}=s;typeof B=="string"?(this._encoded=B,this._decoded=void 0):(this._encoded=void 0,this._decoded=JA(B,r))}}pt=i=>i._decoded||(i._decoded=fA(i._encoded)),Wt=(i,t,A)=>{const r=pt(i);return t>=r.length?null:MA(r[t],i._decodedMemo,t,A,FA)};function MA(i,t,A,r,s){let o=UA(i,r,t,A);return at?o=(s===$t?NA:RA)(i,r,o):s===$t&&o++,o===-1||o===i.length?null:i[o]}let Zt,ct;class zt{constructor(){this._indexes={__proto__:null},this.array=[]}}Zt=(i,t)=>i._indexes[t],ct=(i,t)=>{const A=Zt(i,t);if(A!==void 0)return A;const{array:r,_indexes:s}=i;return s[t]=r.push(t)-1};let te,ee,bt,Ae;class YA{constructor({file:t,sourceRoot:A}={}){this._names=new zt,this._sources=new zt,this._sourcesContent=[],this._mappings=[],this.file=t,this.sourceRoot=A}}te=(i,t,A,r,s,o,c)=>{const{_mappings:g,_sources:h,_sourcesContent:C,_names:f}=i,n=GA(g,t);if(r==null){const K=[A],v=re(n,A,K);return ne(n,v,K)}const B=ct(h,r),m=c?[A,B,s,o,ct(f,c)]:[A,B,s,o],w=re(n,A,m);B===C.length&&(C[B]=null),ne(n,w,m)},ee=(i,t,A)=>{const{_sources:r,_sourcesContent:s}=i;s[ct(r,t)]=A},bt=i=>{const{file:t,sourceRoot:A,_mappings:r,_sources:s,_sourcesContent:o,_names:c}=i;return{version:3,file:t,names:c.array,sourceRoot:A||void 0,sources:s.array,sourcesContent:o,mappings:r}},Ae=i=>{const t=bt(i);return Object.assign(Object.assign({},t),{mappings:CA(t.mappings)})};function GA(i,t){for(let A=i.length;A<=t;A++)i[A]=[];return i[t]}function re(i,t,A){let r=i.length;for(let s=r-1;s>=0;s--,r--){const o=i[s],c=o[0];if(c>t)continue;if(c<t)break;const g=HA(o,A);if(g===0)return r;if(g<0)break}return r}function HA(i,t){let A=V(i.length,t.length);return A!==0?A:i.length===1?0:(A=V(i[1],t[1]),A!==0||(A=V(i[2],t[2]),A!==0)||(A=V(i[3],t[3]),A!==0)?A:i.length===4?0:V(i[4],t[4]))}function V(i,t){return i-t}function ne(i,t,A){if(t!==-1){for(let r=i.length;r>t;r--)i[r]=i[r-1];i[t]=A}}const ie={source:null,column:null,line:null,name:null,content:null},jA=[];function se(i,t,A,r){return{map:i,sources:t,source:A,content:r}}function oe(i,t){return se(i,t,"",null)}function qA(i,t){return se(null,jA,i,t)}function OA(i){const t=new YA({file:i.map.file}),{sources:A,map:r}=i,s=r.names,o=pt(r);for(let c=0;c<o.length;c++){const g=o[c];let h=null,C=null,f=null;for(let n=0;n<g.length;n++){const B=g[n],m=B[0];let w=ie;if(B.length!==1){const tt=A[B[1]];if(w=ae(tt,B[2],B[3],B.length===5?s[B[4]]:""),w==null)continue}const{column:K,line:v,name:z,content:x,source:U}=w;v===C&&K===f&&U===h||(C=v,f=K,h=U,te(t,c,m,U,v,K,z),x!=null&&ee(t,U,x))}}return t}function ae(i,t,A,r){if(!i.map)return{column:A,line:t,name:r,source:i.source,content:i.content};const s=Wt(i.map,t,A);return s==null?null:s.length===1?ie:ae(i.sources[s[1]],s[2],s[3],s.length===5?i.map.names[s[4]]:r)}function _A(i){return Array.isArray(i)?i:[i]}function XA(i,t){const A=_A(i).map(o=>new Vt(o,"")),r=A.pop();for(let o=0;o<A.length;o++)if(A[o].sources.length>1)throw new Error(`Transformation map ${o} must have exactly one source file.
Did you specify these with the most recent transformation maps first?`);let s=ce(r,t,"",0);for(let o=A.length-1;o>=0;o--)s=oe(A[o],[s]);return s}function ce(i,t,A,r){const{resolvedSources:s,sourcesContent:o}=i,c=r+1,g=s.map((h,C)=>{const f={importer:A,depth:c,source:h||"",content:void 0},n=t(f.source,f),{source:B,content:m}=f;if(n)return ce(new Vt(n,B),t,B,c);const w=m!==void 0?m:o?o[C]:null;return qA(B,w)});return oe(i,g)}class PA{constructor(t,A){const r=A.decodedMappings?bt(t):Ae(t);this.version=r.version,this.file=r.file,this.mappings=r.mappings,this.names=r.names,this.sourceRoot=r.sourceRoot,this.sources=r.sources,A.excludeContent||(this.sourcesContent=r.sourcesContent)}toString(){return JSON.stringify(this)}}function le(i,t,A){const r=typeof A=="object"?A:{excludeContent:!!A,decodedMappings:!1},s=XA(i,t);return new PA(OA(s),r)}function TA(i,t){const A=[],r={code:i,map:""};for(const s of t){const o=s(r.code);o&&(Object.assign(r,o),A.unshift(o.map))}return r.map=A.length>1?le(A,()=>null).toString():A[0].toString(),r}async function $A(i,t){const A=[],r={code:i,map:""};for(const s of t){const o=await s(r.code);o&&(Object.assign(r,o),A.unshift(o.map))}return r.map=A.length>1?le(A,()=>null).toString():A[0].toString(),r}const WA=process.versions.node,ue=i=>{const t={target:`node${WA}`,loader:"default",sourcemap:!0,minifySyntax:!0,minifyWhitespace:!0,...i};if(t.sourcefile){const{sourcefile:A}=t,r=Y.default.extname(A);r?(r===".cts"||r===".mts")&&(t.sourcefile=`${A.slice(0,-3)}ts`):t.sourcefile+=".js"}return t};function VA(i,t,A){const r={};t.endsWith(".cjs")||t.endsWith(".cts")||(r["import.meta.url"]=`'${xe.pathToFileURL(t)}'`);const s=ue({format:"cjs",sourcefile:t,define:r,...A}),o=Jt(i+JSON.stringify(s)+rt.version),c=st.get(o);if(c)return c;const g=TA(i,[h=>{const C=rt.transformSync(h,s);return s.sourcefile!==t&&(C.map=C.map.replace(`"${s.sourcefile}"`,`"${t}"`)),C},It]);if(g.warnings.length>0){const{warnings:h}=g;for(const C of h)console.log(C)}return st.set(o,g),g}async function ZA(i,t,A){const r=ue({format:"esm",sourcefile:t,...A}),s=Jt(i+JSON.stringify(r)+rt.version),o=st.get(s);if(o)return o;const c=await $A(i,[async g=>{const h=await rt.transform(g,r);return r.sourcefile!==t&&(h.map=h.map.replace(`"${r.sourcefile}"`,`"${t}"`)),h},It]);if(c.warnings.length>0){const{warnings:g}=c;for(const h of g)console.log(h)}return st.set(s,c),c}const zA={".js":".ts",".cjs":".cts",".mjs":".mts"};function tr(i){const t=Y.default.extname(i),A=zA[t];if(A)return i.slice(0,-t.length)+A}exports.applySourceMap=Xe,exports.installSourceMapSupport=Oe,exports.resolveTsPath=tr,exports.transform=ZA,exports.transformDynamicImport=It,exports.transformSync=VA;
{
"name": "@esbuild-kit/core-utils",
"version": "2.0.0",
"version": "2.0.1",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc