@tochii/build 2.2.2 → 2.2.3

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.
@@ -0,0 +1,46 @@
1
+ "use strict"; function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkBMINWOCTjs = require('./chunk-BMINWOCT.js');function We(u){if(u&&u.__esModule)return u;var v={};if(u!=null)for(var r in u)Object.prototype.hasOwnProperty.call(u,r)&&(v[r]=u[r]);return v.default=u,v}function Ne(u){return u&&u.__esModule?u:{default:u}}function De(u,v){return _nullishCoalesce(u, () => (v()))}function ye(u){let v,r=u[0],w=1;for(;w<u.length;){let F=u[w],T=u[w+1];if(w+=2,(F==="optionalAccess"||F==="optionalCall")&&r==null)return;F==="access"||F==="optionalAccess"?(v=r,r=T(r)):(F==="call"||F==="optionalCall")&&(r=T((...O)=>r.call(v,...O)),v=void 0)}return r}var Te=_chunkBMINWOCTjs.d.call(void 0, ),ze=_chunkBMINWOCTjs.e.call(void 0, ),ae=_chunkBMINWOCTjs.c.call(void 0, ),Le=ae.__commonJS.call(void 0,{"node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/constants.js"(u,v){"use strict";var r="\\\\/",w=`[^${r}]`,F="\\.",T="\\+",O="\\?",E="\\/",m="(?=.)",f="[^/]",y=`(?:${E}|$)`,B=`(?:^|${E})`,$=`${F}{1,2}${y}`,M=`(?!${F})`,b=`(?!${B}${$})`,K=`(?!${F}{0,1}${y})`,W=`(?!${$})`,ne=`[^.${E}]`,Z=`${f}*?`,P="/",D={DOT_LITERAL:F,PLUS_LITERAL:T,QMARK_LITERAL:O,SLASH_LITERAL:E,ONE_CHAR:m,QMARK:f,END_ANCHOR:y,DOTS_SLASH:$,NO_DOT:M,NO_DOTS:b,NO_DOT_SLASH:K,NO_DOTS_SLASH:W,QMARK_NO_DOT:ne,STAR:Z,START_ANCHOR:B,SEP:P},e={...D,SLASH_LITERAL:`[${r}]`,QMARK:w,STAR:`${w}*?`,DOTS_SLASH:`${F}{1,2}(?:[${r}]|$)`,NO_DOT:`(?!${F})`,NO_DOTS:`(?!(?:^|[${r}])${F}{1,2}(?:[${r}]|$))`,NO_DOT_SLASH:`(?!${F}{0,1}(?:[${r}]|$))`,NO_DOTS_SLASH:`(?!${F}{1,2}(?:[${r}]|$))`,QMARK_NO_DOT:`[^.${r}]`,START_ANCHOR:`(?:^|[${r}])`,END_ANCHOR:`(?:[${r}]|$)`,SEP:"\\"},n={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};v.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:n,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(i){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${i.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(i){return i===!0?e:D}}}}),Pe=ae.__commonJS.call(void 0,{"node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/utils.js"(u){"use strict";var{REGEX_BACKSLASH:v,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:w,REGEX_SPECIAL_CHARS_GLOBAL:F}=Le();u.isObject=T=>T!==null&&typeof T=="object"&&!Array.isArray(T),u.hasRegexChars=T=>w.test(T),u.isRegexChar=T=>T.length===1&&u.hasRegexChars(T),u.escapeRegex=T=>T.replace(F,"\\$1"),u.toPosixSlashes=T=>T.replace(v,"/"),u.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let T=navigator.platform.toLowerCase();return T==="win32"||T==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1},u.removeBackslashes=T=>T.replace(r,O=>O==="\\"?"":O),u.escapeLast=(T,O,E)=>{let m=T.lastIndexOf(O,E);return m===-1?T:T[m-1]==="\\"?u.escapeLast(T,O,m-1):`${T.slice(0,m)}\\${T.slice(m)}`},u.removePrefix=(T,O={})=>{let E=T;return E.startsWith("./")&&(E=E.slice(2),O.prefix="./"),E},u.wrapOutput=(T,O={},E={})=>{let m=E.contains?"":"^",f=E.contains?"":"$",y=`${m}(?:${T})${f}`;return O.negated===!0&&(y=`(?:^(?!${y}).*$)`),y},u.basename=(T,{windows:O}={})=>{let E=T.split(O?/[\\/]/:"/"),m=E[E.length-1];return m===""?E[E.length-2]:m}}}),ot=ae.__commonJS.call(void 0,{"node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/scan.js"(u,v){"use strict";var r=Pe(),{CHAR_ASTERISK:w,CHAR_AT:F,CHAR_BACKWARD_SLASH:T,CHAR_COMMA:O,CHAR_DOT:E,CHAR_EXCLAMATION_MARK:m,CHAR_FORWARD_SLASH:f,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:B,CHAR_LEFT_SQUARE_BRACKET:$,CHAR_PLUS:M,CHAR_QUESTION_MARK:b,CHAR_RIGHT_CURLY_BRACE:K,CHAR_RIGHT_PARENTHESES:W,CHAR_RIGHT_SQUARE_BRACKET:ne}=Le(),Z=e=>e===f||e===T,P=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},D=(e,n)=>{let i=n||{},d=e.length-1,_=i.parts===!0||i.scanToEnd===!0,L=[],S=[],l=[],c=e,R=-1,j=0,V=0,G=!1,z=!1,J=!1,se=!1,X=!1,x=!1,ie=!1,Y=!1,Q=!1,g=!1,C=0,de,N,H={value:"",depth:0,isGlob:!1},le=()=>R>=d,ee=()=>c.charCodeAt(R+1),te=()=>(de=N,c.charCodeAt(++R));for(;R<d;){N=te();let o;if(N===T){ie=H.backslashes=!0,N=te(),N===y&&(x=!0);continue}if(x===!0||N===y){for(C++;le()!==!0&&(N=te());){if(N===T){ie=H.backslashes=!0,te();continue}if(N===y){C++;continue}if(x!==!0&&N===E&&(N=te())===E){if(G=H.isBrace=!0,J=H.isGlob=!0,g=!0,_===!0)continue;break}if(x!==!0&&N===O){if(G=H.isBrace=!0,J=H.isGlob=!0,g=!0,_===!0)continue;break}if(N===K&&(C--,C===0)){x=!1,G=H.isBrace=!0,g=!0;break}}if(_===!0)continue;break}if(N===f){if(L.push(R),S.push(H),H={value:"",depth:0,isGlob:!1},g===!0)continue;if(de===E&&R===j+1){j+=2;continue}V=R+1;continue}if(i.noext!==!0&&(N===M||N===F||N===w||N===b||N===m)===!0&&ee()===B){if(J=H.isGlob=!0,se=H.isExtglob=!0,g=!0,N===m&&R===j&&(Q=!0),_===!0){for(;le()!==!0&&(N=te());){if(N===T){ie=H.backslashes=!0,N=te();continue}if(N===W){J=H.isGlob=!0,g=!0;break}}continue}break}if(N===w){if(de===w&&(X=H.isGlobstar=!0),J=H.isGlob=!0,g=!0,_===!0)continue;break}if(N===b){if(J=H.isGlob=!0,g=!0,_===!0)continue;break}if(N===$){for(;le()!==!0&&(o=te());){if(o===T){ie=H.backslashes=!0,te();continue}if(o===ne){z=H.isBracket=!0,J=H.isGlob=!0,g=!0;break}}if(_===!0)continue;break}if(i.nonegate!==!0&&N===m&&R===j){Y=H.negated=!0,j++;continue}if(i.noparen!==!0&&N===B){if(J=H.isGlob=!0,_===!0){for(;le()!==!0&&(N=te());){if(N===B){ie=H.backslashes=!0,N=te();continue}if(N===W){g=!0;break}}continue}break}if(J===!0){if(g=!0,_===!0)continue;break}}i.noext===!0&&(se=!1,J=!1);let ue=c,ce="",t="";j>0&&(ce=c.slice(0,j),c=c.slice(j),V-=j),ue&&J===!0&&V>0?(ue=c.slice(0,V),t=c.slice(V)):J===!0?(ue="",t=c):ue=c,ue&&ue!==""&&ue!=="/"&&ue!==c&&Z(ue.charCodeAt(ue.length-1))&&(ue=ue.slice(0,-1)),i.unescape===!0&&(t&&(t=r.removeBackslashes(t)),ue&&ie===!0&&(ue=r.removeBackslashes(ue)));let s={prefix:ce,input:e,start:j,base:ue,glob:t,isBrace:G,isBracket:z,isGlob:J,isExtglob:se,isGlobstar:X,negated:Y,negatedExtglob:Q};if(i.tokens===!0&&(s.maxDepth=0,Z(N)||S.push(H),s.tokens=S),i.parts===!0||i.tokens===!0){let o;for(let p=0;p<L.length;p++){let a=o?o+1:j,A=L[p],h=e.slice(a,A);i.tokens&&(p===0&&j!==0?(S[p].isPrefix=!0,S[p].value=ce):S[p].value=h,P(S[p]),s.maxDepth+=S[p].depth),(p!==0||h!=="")&&l.push(h),o=A}if(o&&o+1<e.length){let p=e.slice(o+1);l.push(p),i.tokens&&(S[S.length-1].value=p,P(S[S.length-1]),s.maxDepth+=S[S.length-1].depth)}s.slashes=L,s.parts=l}return s};v.exports=D}}),at=ae.__commonJS.call(void 0,{"node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/parse.js"(u,v){"use strict";var r=Le(),w=Pe(),{MAX_LENGTH:F,POSIX_REGEX_SOURCE:T,REGEX_NON_SPECIAL_CHARS:O,REGEX_SPECIAL_CHARS_BACKREF:E,REPLACEMENTS:m}=r,f=($,M)=>{if(typeof M.expandRange=="function")return M.expandRange(...$,M);$.sort();let b=`[${$.join("-")}]`;try{new RegExp(b)}catch (e2){return $.map(W=>w.escapeRegex(W)).join("..")}return b},y=($,M)=>`Missing ${$}: "${M}" - use "\\\\${M}" to match literal characters`,B=($,M)=>{if(typeof $!="string")throw new TypeError("Expected a string");$=m[$]||$;let b={...M},K=typeof b.maxLength=="number"?Math.min(F,b.maxLength):F,W=$.length;if(W>K)throw new SyntaxError(`Input length: ${W}, exceeds maximum allowed length: ${K}`);let ne={type:"bos",value:"",output:b.prepend||""},Z=[ne],P=b.capture?"":"?:",D=r.globChars(b.windows),e=r.extglobChars(D),{DOT_LITERAL:n,PLUS_LITERAL:i,SLASH_LITERAL:d,ONE_CHAR:_,DOTS_SLASH:L,NO_DOT:S,NO_DOT_SLASH:l,NO_DOTS_SLASH:c,QMARK:R,QMARK_NO_DOT:j,STAR:V,START_ANCHOR:G}=D,z=a=>`(${P}(?:(?!${G}${a.dot?L:n}).)*?)`,J=b.dot?"":S,se=b.dot?R:j,X=b.bash===!0?z(b):V;b.capture&&(X=`(${X})`),typeof b.noext=="boolean"&&(b.noextglob=b.noext);let x={input:$,index:-1,start:0,dot:b.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:Z};$=w.removePrefix($,x),W=$.length;let ie=[],Y=[],Q=[],g=ne,C,de=()=>x.index===W-1,N=x.peek=(a=1)=>$[x.index+a],H=x.advance=()=>$[++x.index]||"",le=()=>$.slice(x.index+1),ee=(a="",A=0)=>{x.consumed+=a,x.index+=A},te=a=>{x.output+=a.output!=null?a.output:a.value,ee(a.value)},ue=()=>{let a=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)H(),x.start++,a++;return a%2===0?!1:(x.negated=!0,x.start++,!0)},ce=a=>{x[a]++,Q.push(a)},t=a=>{x[a]--,Q.pop()},s=a=>{if(g.type==="globstar"){let A=x.braces>0&&(a.type==="comma"||a.type==="brace"),h=a.extglob===!0||ie.length&&(a.type==="pipe"||a.type==="paren");a.type!=="slash"&&a.type!=="paren"&&!A&&!h&&(x.output=x.output.slice(0,-g.output.length),g.type="star",g.value="*",g.output=X,x.output+=g.output)}if(ie.length&&a.type!=="paren"&&(ie[ie.length-1].inner+=a.value),(a.value||a.output)&&te(a),g&&g.type==="text"&&a.type==="text"){g.output=(g.output||g.value)+a.value,g.value+=a.value;return}a.prev=g,Z.push(a),g=a},o=(a,A)=>{let h={...e[A],conditions:1,inner:""};h.prev=g,h.parens=x.parens,h.output=x.output;let I=(b.capture?"(":"")+h.open;ce("parens"),s({type:a,value:A,output:x.output?"":_}),s({type:"paren",extglob:!0,value:H(),output:I}),ie.push(h)},p=a=>{let A=a.close+(b.capture?")":""),h;if(a.type==="negate"){let I=X;if(a.inner&&a.inner.length>1&&a.inner.includes("/")&&(I=z(b)),(I!==X||de()||/^\)+$/.test(le()))&&(A=a.close=`)$))${I}`),a.inner.includes("*")&&(h=le())&&/^\.[^\\/.]+$/.test(h)){let U=B(h,{...M,fastpaths:!1}).output;A=a.close=`)${U})${I})`}a.prev.type==="bos"&&(x.negatedExtglob=!0)}s({type:"paren",extglob:!0,value:C,output:A}),t("parens")};if(b.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test($)){let a=!1,A=$.replace(E,(h,I,U,k,re,pe)=>k==="\\"?(a=!0,h):k==="?"?I?I+k+(re?R.repeat(re.length):""):pe===0?se+(re?R.repeat(re.length):""):R.repeat(U.length):k==="."?n.repeat(U.length):k==="*"?I?I+k+(re?X:""):X:I?h:`\\${h}`);return a===!0&&(b.unescape===!0?A=A.replace(/\\/g,""):A=A.replace(/\\+/g,h=>h.length%2===0?"\\\\":h?"\\":"")),A===$&&b.contains===!0?(x.output=$,x):(x.output=w.wrapOutput(A,x,M),x)}for(;!de();){if(C=H(),C==="\0")continue;if(C==="\\"){let h=N();if(h==="/"&&b.bash!==!0||h==="."||h===";")continue;if(!h){C+="\\",s({type:"text",value:C});continue}let I=/^\\+/.exec(le()),U=0;if(I&&I[0].length>2&&(U=I[0].length,x.index+=U,U%2!==0&&(C+="\\")),b.unescape===!0?C=H():C+=H(),x.brackets===0){s({type:"text",value:C});continue}}if(x.brackets>0&&(C!=="]"||g.value==="["||g.value==="[^")){if(b.posix!==!1&&C===":"){let h=g.value.slice(1);if(h.includes("[")&&(g.posix=!0,h.includes(":"))){let I=g.value.lastIndexOf("["),U=g.value.slice(0,I),k=g.value.slice(I+2),re=T[k];if(re){g.value=U+re,x.backtrack=!0,H(),!ne.output&&Z.indexOf(g)===1&&(ne.output=_);continue}}}(C==="["&&N()!==":"||C==="-"&&N()==="]")&&(C=`\\${C}`),C==="]"&&(g.value==="["||g.value==="[^")&&(C=`\\${C}`),b.posix===!0&&C==="!"&&g.value==="["&&(C="^"),g.value+=C,te({value:C});continue}if(x.quotes===1&&C!=='"'){C=w.escapeRegex(C),g.value+=C,te({value:C});continue}if(C==='"'){x.quotes=x.quotes===1?0:1,b.keepQuotes===!0&&s({type:"text",value:C});continue}if(C==="("){ce("parens"),s({type:"paren",value:C});continue}if(C===")"){if(x.parens===0&&b.strictBrackets===!0)throw new SyntaxError(y("opening","("));let h=ie[ie.length-1];if(h&&x.parens===h.parens+1){p(ie.pop());continue}s({type:"paren",value:C,output:x.parens?")":"\\)"}),t("parens");continue}if(C==="["){if(b.nobracket===!0||!le().includes("]")){if(b.nobracket!==!0&&b.strictBrackets===!0)throw new SyntaxError(y("closing","]"));C=`\\${C}`}else ce("brackets");s({type:"bracket",value:C});continue}if(C==="]"){if(b.nobracket===!0||g&&g.type==="bracket"&&g.value.length===1){s({type:"text",value:C,output:`\\${C}`});continue}if(x.brackets===0){if(b.strictBrackets===!0)throw new SyntaxError(y("opening","["));s({type:"text",value:C,output:`\\${C}`});continue}t("brackets");let h=g.value.slice(1);if(g.posix!==!0&&h[0]==="^"&&!h.includes("/")&&(C=`/${C}`),g.value+=C,te({value:C}),b.literalBrackets===!1||w.hasRegexChars(h))continue;let I=w.escapeRegex(g.value);if(x.output=x.output.slice(0,-g.value.length),b.literalBrackets===!0){x.output+=I,g.value=I;continue}g.value=`(${P}${I}|${g.value})`,x.output+=g.value;continue}if(C==="{"&&b.nobrace!==!0){ce("braces");let h={type:"brace",value:C,output:"(",outputIndex:x.output.length,tokensIndex:x.tokens.length};Y.push(h),s(h);continue}if(C==="}"){let h=Y[Y.length-1];if(b.nobrace===!0||!h){s({type:"text",value:C,output:C});continue}let I=")";if(h.dots===!0){let U=Z.slice(),k=[];for(let re=U.length-1;re>=0&&(Z.pop(),U[re].type!=="brace");re--)U[re].type!=="dots"&&k.unshift(U[re].value);I=f(k,b),x.backtrack=!0}if(h.comma!==!0&&h.dots!==!0){let U=x.output.slice(0,h.outputIndex),k=x.tokens.slice(h.tokensIndex);h.value=h.output="\\{",C=I="\\}",x.output=U;for(let re of k)x.output+=re.output||re.value}s({type:"brace",value:C,output:I}),t("braces"),Y.pop();continue}if(C==="|"){ie.length>0&&ie[ie.length-1].conditions++,s({type:"text",value:C});continue}if(C===","){let h=C,I=Y[Y.length-1];I&&Q[Q.length-1]==="braces"&&(I.comma=!0,h="|"),s({type:"comma",value:C,output:h});continue}if(C==="/"){if(g.type==="dot"&&x.index===x.start+1){x.start=x.index+1,x.consumed="",x.output="",Z.pop(),g=ne;continue}s({type:"slash",value:C,output:d});continue}if(C==="."){if(x.braces>0&&g.type==="dot"){g.value==="."&&(g.output=n);let h=Y[Y.length-1];g.type="dots",g.output+=C,g.value+=C,h.dots=!0;continue}if(x.braces+x.parens===0&&g.type!=="bos"&&g.type!=="slash"){s({type:"text",value:C,output:n});continue}s({type:"dot",value:C,output:n});continue}if(C==="?"){if(!(g&&g.value==="(")&&b.noextglob!==!0&&N()==="("&&N(2)!=="?"){o("qmark",C);continue}if(g&&g.type==="paren"){let I=N(),U=C;(g.value==="("&&!/[!=<:]/.test(I)||I==="<"&&!/<([!=]|\w+>)/.test(le()))&&(U=`\\${C}`),s({type:"text",value:C,output:U});continue}if(b.dot!==!0&&(g.type==="slash"||g.type==="bos")){s({type:"qmark",value:C,output:j});continue}s({type:"qmark",value:C,output:R});continue}if(C==="!"){if(b.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){o("negate",C);continue}if(b.nonegate!==!0&&x.index===0){ue();continue}}if(C==="+"){if(b.noextglob!==!0&&N()==="("&&N(2)!=="?"){o("plus",C);continue}if(g&&g.value==="("||b.regex===!1){s({type:"plus",value:C,output:i});continue}if(g&&(g.type==="bracket"||g.type==="paren"||g.type==="brace")||x.parens>0){s({type:"plus",value:C});continue}s({type:"plus",value:i});continue}if(C==="@"){if(b.noextglob!==!0&&N()==="("&&N(2)!=="?"){s({type:"at",extglob:!0,value:C,output:""});continue}s({type:"text",value:C});continue}if(C!=="*"){(C==="$"||C==="^")&&(C=`\\${C}`);let h=O.exec(le());h&&(C+=h[0],x.index+=h[0].length),s({type:"text",value:C});continue}if(g&&(g.type==="globstar"||g.star===!0)){g.type="star",g.star=!0,g.value+=C,g.output=X,x.backtrack=!0,x.globstar=!0,ee(C);continue}let a=le();if(b.noextglob!==!0&&/^\([^?]/.test(a)){o("star",C);continue}if(g.type==="star"){if(b.noglobstar===!0){ee(C);continue}let h=g.prev,I=h.prev,U=h.type==="slash"||h.type==="bos",k=I&&(I.type==="star"||I.type==="globstar");if(b.bash===!0&&(!U||a[0]&&a[0]!=="/")){s({type:"star",value:C,output:""});continue}let re=x.braces>0&&(h.type==="comma"||h.type==="brace"),pe=ie.length&&(h.type==="pipe"||h.type==="paren");if(!U&&h.type!=="paren"&&!re&&!pe){s({type:"star",value:C,output:""});continue}for(;a.slice(0,3)==="/**";){let fe=$[x.index+4];if(fe&&fe!=="/")break;a=a.slice(3),ee("/**",3)}if(h.type==="bos"&&de()){g.type="globstar",g.value+=C,g.output=z(b),x.output=g.output,x.globstar=!0,ee(C);continue}if(h.type==="slash"&&h.prev.type!=="bos"&&!k&&de()){x.output=x.output.slice(0,-(h.output+g.output).length),h.output=`(?:${h.output}`,g.type="globstar",g.output=z(b)+(b.strictSlashes?")":"|$)"),g.value+=C,x.globstar=!0,x.output+=h.output+g.output,ee(C);continue}if(h.type==="slash"&&h.prev.type!=="bos"&&a[0]==="/"){let fe=a[1]!==void 0?"|$":"";x.output=x.output.slice(0,-(h.output+g.output).length),h.output=`(?:${h.output}`,g.type="globstar",g.output=`${z(b)}${d}|${d}${fe})`,g.value+=C,x.output+=h.output+g.output,x.globstar=!0,ee(C+H()),s({type:"slash",value:"/",output:""});continue}if(h.type==="bos"&&a[0]==="/"){g.type="globstar",g.value+=C,g.output=`(?:^|${d}|${z(b)}${d})`,x.output=g.output,x.globstar=!0,ee(C+H()),s({type:"slash",value:"/",output:""});continue}x.output=x.output.slice(0,-g.output.length),g.type="globstar",g.output=z(b),g.value+=C,x.output+=g.output,x.globstar=!0,ee(C);continue}let A={type:"star",value:C,output:X};if(b.bash===!0){A.output=".*?",(g.type==="bos"||g.type==="slash")&&(A.output=J+A.output),s(A);continue}if(g&&(g.type==="bracket"||g.type==="paren")&&b.regex===!0){A.output=C,s(A);continue}(x.index===x.start||g.type==="slash"||g.type==="dot")&&(g.type==="dot"?(x.output+=l,g.output+=l):b.dot===!0?(x.output+=c,g.output+=c):(x.output+=J,g.output+=J),N()!=="*"&&(x.output+=_,g.output+=_)),s(A)}for(;x.brackets>0;){if(b.strictBrackets===!0)throw new SyntaxError(y("closing","]"));x.output=w.escapeLast(x.output,"["),t("brackets")}for(;x.parens>0;){if(b.strictBrackets===!0)throw new SyntaxError(y("closing",")"));x.output=w.escapeLast(x.output,"("),t("parens")}for(;x.braces>0;){if(b.strictBrackets===!0)throw new SyntaxError(y("closing","}"));x.output=w.escapeLast(x.output,"{"),t("braces")}if(b.strictSlashes!==!0&&(g.type==="star"||g.type==="bracket")&&s({type:"maybe_slash",value:"",output:`${d}?`}),x.backtrack===!0){x.output="";for(let a of x.tokens)x.output+=a.output!=null?a.output:a.value,a.suffix&&(x.output+=a.suffix)}return x};B.fastpaths=($,M)=>{let b={...M},K=typeof b.maxLength=="number"?Math.min(F,b.maxLength):F,W=$.length;if(W>K)throw new SyntaxError(`Input length: ${W}, exceeds maximum allowed length: ${K}`);$=m[$]||$;let{DOT_LITERAL:ne,SLASH_LITERAL:Z,ONE_CHAR:P,DOTS_SLASH:D,NO_DOT:e,NO_DOTS:n,NO_DOTS_SLASH:i,STAR:d,START_ANCHOR:_}=r.globChars(b.windows),L=b.dot?n:e,S=b.dot?i:e,l=b.capture?"":"?:",c={negated:!1,prefix:""},R=b.bash===!0?".*?":d;b.capture&&(R=`(${R})`);let j=J=>J.noglobstar===!0?R:`(${l}(?:(?!${_}${J.dot?D:ne}).)*?)`,V=J=>{switch(J){case"*":return`${L}${P}${R}`;case".*":return`${ne}${P}${R}`;case"*.*":return`${L}${R}${ne}${P}${R}`;case"*/*":return`${L}${R}${Z}${P}${S}${R}`;case"**":return L+j(b);case"**/*":return`(?:${L}${j(b)}${Z})?${S}${P}${R}`;case"**/*.*":return`(?:${L}${j(b)}${Z})?${S}${R}${ne}${P}${R}`;case"**/.*":return`(?:${L}${j(b)}${Z})?${ne}${P}${R}`;default:{let se=/^(.*?)\.(\w+)$/.exec(J);if(!se)return;let X=V(se[1]);return X?X+ne+se[2]:void 0}}},G=w.removePrefix($,c),z=V(G);return z&&b.strictSlashes!==!0&&(z+=`${Z}?`),z},v.exports=B}}),ut=ae.__commonJS.call(void 0,{"node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/lib/picomatch.js"(u,v){"use strict";var r=ot(),w=at(),F=Pe(),T=Le(),O=m=>m&&typeof m=="object"&&!Array.isArray(m),E=(m,f,y=!1)=>{if(Array.isArray(m)){let Z=m.map(D=>E(D,f,y));return D=>{for(let e of Z){let n=e(D);if(n)return n}return!1}}let B=O(m)&&m.tokens&&m.input;if(m===""||typeof m!="string"&&!B)throw new TypeError("Expected pattern to be a non-empty string");let $=f||{},M=$.windows,b=B?E.compileRe(m,f):E.makeRe(m,f,!1,!0),K=b.state;delete b.state;let W=()=>!1;if($.ignore){let Z={...f,ignore:null,onMatch:null,onResult:null};W=E($.ignore,Z,y)}let ne=(Z,P=!1)=>{let{isMatch:D,match:e,output:n}=E.test(Z,b,f,{glob:m,posix:M}),i={glob:m,state:K,regex:b,posix:M,input:Z,output:n,match:e,isMatch:D};return typeof $.onResult=="function"&&$.onResult(i),D===!1?(i.isMatch=!1,P?i:!1):W(Z)?(typeof $.onIgnore=="function"&&$.onIgnore(i),i.isMatch=!1,P?i:!1):(typeof $.onMatch=="function"&&$.onMatch(i),P?i:!0)};return y&&(ne.state=K),ne};E.test=(m,f,y,{glob:B,posix:$}={})=>{if(typeof m!="string")throw new TypeError("Expected input to be a string");if(m==="")return{isMatch:!1,output:""};let M=y||{},b=M.format||($?F.toPosixSlashes:null),K=m===B,W=K&&b?b(m):m;return K===!1&&(W=b?b(m):m,K=W===B),(K===!1||M.capture===!0)&&(M.matchBase===!0||M.basename===!0?K=E.matchBase(m,f,y,$):K=f.exec(W)),{isMatch:!!K,match:K,output:W}},E.matchBase=(m,f,y)=>(f instanceof RegExp?f:E.makeRe(f,y)).test(F.basename(m)),E.isMatch=(m,f,y)=>E(f,y)(m),E.parse=(m,f)=>Array.isArray(m)?m.map(y=>E.parse(y,f)):w(m,{...f,fastpaths:!1}),E.scan=(m,f)=>r(m,f),E.compileRe=(m,f,y=!1,B=!1)=>{if(y===!0)return m.output;let $=f||{},M=$.contains?"":"^",b=$.contains?"":"$",K=`${M}(?:${m.output})${b}`;m&&m.negated===!0&&(K=`^(?!${K}).*$`);let W=E.toRegex(K,f);return B===!0&&(W.state=m),W},E.makeRe=(m,f={},y=!1,B=!1)=>{if(!m||typeof m!="string")throw new TypeError("Expected a non-empty string");let $={negated:!1,fastpaths:!0};return f.fastpaths!==!1&&(m[0]==="."||m[0]==="*")&&($.output=w.fastpaths(m,f)),$.output||($=w(m,f)),E.compileRe($,f,y,B)},E.toRegex=(m,f)=>{try{let y=f||{};return new RegExp(m,y.flags||(y.nocase?"i":""))}catch(y){if(f&&f.debug===!0)throw y;return/$^/}},E.constants=T,v.exports=E}}),lt=ae.__commonJS.call(void 0,{"node_modules/.pnpm/picomatch@4.0.2/node_modules/picomatch/index.js"(u,v){"use strict";var r=ut(),w=Pe();function F(T,O,E=!1){return O&&(O.windows===null||O.windows===void 0)&&(O={...O,windows:w.isWindows()}),r(T,O,E)}Object.assign(F,r),v.exports=F}}),Je=ae.__commonJS.call(void 0,{"node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/homedir.js"(u,v){"use strict";var r=ae.__require.call(void 0,"os");v.exports=r.homedir||function(){var F=process.env.HOME,T=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||F||null:process.platform==="darwin"?F||(T?"/Users/"+T:null):process.platform==="linux"?F||(process.getuid()===0?"/root":T?"/home/"+T:null):F||null}}}),Xe=ae.__commonJS.call(void 0,{"node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/caller.js"(u,v){"use strict";v.exports=function(){var r=Error.prepareStackTrace;Error.prepareStackTrace=function(F,T){return T};var w=new Error().stack;return Error.prepareStackTrace=r,w[2].getFileName()}}}),ct=ae.__commonJS.call(void 0,{"node_modules/.pnpm/path-parse@1.0.7/node_modules/path-parse/index.js"(u,v){"use strict";var r=process.platform==="win32",w=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,F={};function T(f){return w.exec(f).slice(1)}F.parse=function(f){if(typeof f!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof f);var y=T(f);if(!y||y.length!==5)throw new TypeError("Invalid path '"+f+"'");return{root:y[1],dir:y[0]===y[1]?y[0]:y[0].slice(0,-1),base:y[2],ext:y[4],name:y[3]}};var O=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,E={};function m(f){return O.exec(f).slice(1)}E.parse=function(f){if(typeof f!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof f);var y=m(f);if(!y||y.length!==5)throw new TypeError("Invalid path '"+f+"'");return{root:y[1],dir:y[0].slice(0,-1),base:y[2],ext:y[4],name:y[3]}},r?v.exports=F.parse:v.exports=E.parse,v.exports.posix=E.parse,v.exports.win32=F.parse}}),Ve=ae.__commonJS.call(void 0,{"node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/node-modules-paths.js"(u,v){"use strict";var r=ae.__require.call(void 0,"path"),w=r.parse||ct(),F=function(O,E){var m="/";/^([A-Za-z]:)/.test(O)?m="":/^\\\\/.test(O)&&(m="\\\\");for(var f=[O],y=w(O);y.dir!==f[f.length-1];)f.push(y.dir),y=w(y.dir);return f.reduce(function(B,$){return B.concat(E.map(function(M){return r.resolve(m,$,M)}))},[])};v.exports=function(O,E,m){var f=E&&E.moduleDirectory?[].concat(E.moduleDirectory):["node_modules"];if(E&&typeof E.paths=="function")return E.paths(m,O,function(){return F(O,f)},E);var y=F(O,f);return E&&E.paths?y.concat(E.paths):y}}}),Qe=ae.__commonJS.call(void 0,{"node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/normalize-options.js"(u,v){"use strict";v.exports=function(r,w){return w||{}}}}),pt=ae.__commonJS.call(void 0,{"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(u,v){"use strict";var r="Function.prototype.bind called on incompatible ",w=Object.prototype.toString,F=Math.max,T="[object Function]",O=function(y,B){for(var $=[],M=0;M<y.length;M+=1)$[M]=y[M];for(var b=0;b<B.length;b+=1)$[b+y.length]=B[b];return $},E=function(y,B){for(var $=[],M=B||0,b=0;M<y.length;M+=1,b+=1)$[b]=y[M];return $},m=function(f,y){for(var B="",$=0;$<f.length;$+=1)B+=f[$],$+1<f.length&&(B+=y);return B};v.exports=function(y){var B=this;if(typeof B!="function"||w.apply(B)!==T)throw new TypeError(r+B);for(var $=E(arguments,1),M,b=function(){if(this instanceof M){var P=B.apply(this,O($,arguments));return Object(P)===P?P:this}return B.apply(y,O($,arguments))},K=F(0,B.length-$.length),W=[],ne=0;ne<K;ne++)W[ne]="$"+ne;if(M=Function("binder","return function ("+m(W,",")+"){ return binder.apply(this,arguments); }")(b),B.prototype){var Z=function(){};Z.prototype=B.prototype,M.prototype=new Z,Z.prototype=null}return M}}}),ft=ae.__commonJS.call(void 0,{"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(u,v){"use strict";var r=pt();v.exports=Function.prototype.bind||r}}),dt=ae.__commonJS.call(void 0,{"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(u,v){"use strict";var r=Function.prototype.call,w=Object.prototype.hasOwnProperty,F=ft();v.exports=F.call(r,w)}}),ht=ae.__commonJS.call(void 0,{"node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/core.json"(u,v){v.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}}}),Me=ae.__commonJS.call(void 0,{"node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/index.js"(u,v){"use strict";var r=dt();function w(E,m){for(var f=E.split("."),y=m.split(" "),B=y.length>1?y[0]:"=",$=(y.length>1?y[1]:y[0]).split("."),M=0;M<3;++M){var b=parseInt(f[M]||0,10),K=parseInt($[M]||0,10);if(b!==K)return B==="<"?b<K:B===">="?b>=K:!1}return B===">="}function F(E,m){var f=m.split(/ ?&& ?/);if(f.length===0)return!1;for(var y=0;y<f.length;++y)if(!w(E,f[y]))return!1;return!0}function T(E,m){if(typeof m=="boolean")return m;var f=typeof E>"u"?process.versions&&process.versions.node:E;if(typeof f!="string")throw new TypeError(typeof E>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(m&&typeof m=="object"){for(var y=0;y<m.length;++y)if(F(f,m[y]))return!0;return!1}return F(f,m)}var O=ht();v.exports=function(m,f){return r(O,m)&&T(f,O[m])}}}),mt=ae.__commonJS.call(void 0,{"node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/async.js"(u,v){"use strict";var r=ae.__require.call(void 0,"fs"),w=Je(),F=ae.__require.call(void 0,"path"),T=Xe(),O=Ve(),E=Qe(),m=Me(),f=process.platform!=="win32"&&r.realpath&&typeof r.realpath.native=="function"?r.realpath.native:r.realpath,y=w(),B=function(){return[F.join(y,".node_modules"),F.join(y,".node_libraries")]},$=function(P,D){r.stat(P,function(e,n){return e?e.code==="ENOENT"||e.code==="ENOTDIR"?D(null,!1):D(e):D(null,n.isFile()||n.isFIFO())})},M=function(P,D){r.stat(P,function(e,n){return e?e.code==="ENOENT"||e.code==="ENOTDIR"?D(null,!1):D(e):D(null,n.isDirectory())})},b=function(P,D){f(P,function(e,n){e&&e.code!=="ENOENT"?D(e):D(null,e?P:n)})},K=function(P,D,e,n){e&&e.preserveSymlinks===!1?P(D,n):n(null,D)},W=function(P,D,e){P(D,function(n,i){if(n)e(n);else try{var d=JSON.parse(i);e(null,d)}catch (e3){e(null)}})},ne=function(P,D,e){for(var n=O(D,e,P),i=0;i<n.length;i++)n[i]=F.join(n[i],P);return n};v.exports=function(P,D,e){var n=e,i=D;if(typeof D=="function"&&(n=i,i={}),typeof P!="string"){var d=new TypeError("Path must be a string.");return process.nextTick(function(){n(d)})}i=E(P,i);var _=i.isFile||$,L=i.isDirectory||M,S=i.readFile||r.readFile,l=i.realpath||b,c=i.readPackage||W;if(i.readFile&&i.readPackage){var R=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){n(R)})}var j=i.packageIterator,V=i.extensions||[".js"],G=i.includeCoreModules!==!1,z=i.basedir||F.dirname(T()),J=i.filename||z;i.paths=i.paths||B();var se=F.resolve(z);K(l,se,i,function(N,H){N?n(N):x(H)});var X;function x(N){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(P))X=F.resolve(N,P),(P==="."||P===".."||P.slice(-1)==="/")&&(X+="/"),/\/$/.test(P)&&X===N?g(X,i.package,ie):Y(X,i.package,ie);else{if(G&&m(P))return n(null,P);de(P,N,function(H,le,ee){if(H)n(H);else{if(le)return K(l,le,i,function(ue,ce){ue?n(ue):n(null,ce,ee)});var te=new Error("Cannot find module '"+P+"' from '"+J+"'");te.code="MODULE_NOT_FOUND",n(te)}})}}function ie(N,H,le){N?n(N):H?n(null,H,le):g(X,function(ee,te,ue){if(ee)n(ee);else if(te)K(l,te,i,function(t,s){t?n(t):n(null,s,ue)});else{var ce=new Error("Cannot find module '"+P+"' from '"+J+"'");ce.code="MODULE_NOT_FOUND",n(ce)}})}function Y(N,H,le){var ee=H,te=le;typeof ee=="function"&&(te=ee,ee=void 0);var ue=[""].concat(V);ce(ue,N,ee);function ce(t,s,o){if(t.length===0)return te(null,void 0,o);var p=s+t[0],a=o;a?A(null,a):Q(F.dirname(p),A);function A(I,U,k){if(a=U,I)return te(I);if(k&&a&&i.pathFilter){var re=F.relative(k,p),pe=re.slice(0,re.length-t[0].length),fe=i.pathFilter(a,s,pe);if(fe)return ce([""].concat(V.slice()),F.resolve(k,fe),a)}_(p,h)}function h(I,U){if(I)return te(I);if(U)return te(null,p,a);ce(t.slice(1),s,a)}}}function Q(N,H){if(N===""||N==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(N)||/[/\\]node_modules[/\\]*$/.test(N))return H(null);K(l,N,i,function(le,ee){if(le)return Q(F.dirname(N),H);var te=F.join(ee,"package.json");_(te,function(ue,ce){if(!ce)return Q(F.dirname(N),H);c(S,te,function(t,s){t&&H(t);var o=s;o&&i.packageFilter&&(o=i.packageFilter(o,te)),H(null,o,N)})})})}function g(N,H,le){var ee=le,te=H;typeof te=="function"&&(ee=te,te=i.package),K(l,N,i,function(ue,ce){if(ue)return ee(ue);var t=F.join(ce,"package.json");_(t,function(s,o){if(s)return ee(s);if(!o)return Y(F.join(N,"index"),te,ee);c(S,t,function(p,a){if(p)return ee(p);var A=a;if(A&&i.packageFilter&&(A=i.packageFilter(A,t)),A&&A.main){if(typeof A.main!="string"){var h=new TypeError("package \u201C"+A.name+"\u201D `main` must be a string");return h.code="INVALID_PACKAGE_MAIN",ee(h)}(A.main==="."||A.main==="./")&&(A.main="index"),Y(F.resolve(N,A.main),A,function(I,U,k){if(I)return ee(I);if(U)return ee(null,U,k);if(!k)return Y(F.join(N,"index"),k,ee);var re=F.resolve(N,k.main);g(re,k,function(pe,fe,ve){if(pe)return ee(pe);if(fe)return ee(null,fe,ve);Y(F.join(N,"index"),ve,ee)})});return}Y(F.join(N,"/index"),A,ee)})})})}function C(N,H){if(H.length===0)return N(null,void 0);var le=H[0];L(F.dirname(le),ee);function ee(ce,t){if(ce)return N(ce);if(!t)return C(N,H.slice(1));Y(le,i.package,te)}function te(ce,t,s){if(ce)return N(ce);if(t)return N(null,t,s);g(le,i.package,ue)}function ue(ce,t,s){if(ce)return N(ce);if(t)return N(null,t,s);C(N,H.slice(1))}}function de(N,H,le){var ee=function(){return ne(N,H,i)};C(le,j?j(N,H,ee,i):ee())}}}}),gt=ae.__commonJS.call(void 0,{"node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.json"(u,v){v.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":">= 23.4",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}}}),vt=ae.__commonJS.call(void 0,{"node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.js"(u,v){"use strict";var r=Me(),w=gt(),F={};for(T in w)Object.prototype.hasOwnProperty.call(w,T)&&(F[T]=r(T));var T;v.exports=F}}),yt=ae.__commonJS.call(void 0,{"node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/is-core.js"(u,v){"use strict";var r=Me();v.exports=function(F){return r(F)}}}),At=ae.__commonJS.call(void 0,{"node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/sync.js"(u,v){"use strict";var r=Me(),w=ae.__require.call(void 0,"fs"),F=ae.__require.call(void 0,"path"),T=Je(),O=Xe(),E=Ve(),m=Qe(),f=process.platform!=="win32"&&w.realpathSync&&typeof w.realpathSync.native=="function"?w.realpathSync.native:w.realpathSync,y=T(),B=function(){return[F.join(y,".node_modules"),F.join(y,".node_libraries")]},$=function(P){try{var D=w.statSync(P,{throwIfNoEntry:!1})}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR"))return!1;throw e}return!!D&&(D.isFile()||D.isFIFO())},M=function(P){try{var D=w.statSync(P,{throwIfNoEntry:!1})}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR"))return!1;throw e}return!!D&&D.isDirectory()},b=function(P){try{return f(P)}catch(D){if(D.code!=="ENOENT")throw D}return P},K=function(P,D,e){return e&&e.preserveSymlinks===!1?P(D):D},W=function(P,D){var e=P(D);try{var n=JSON.parse(e);return n}catch (e4){}},ne=function(P,D,e){for(var n=E(D,e,P),i=0;i<n.length;i++)n[i]=F.join(n[i],P);return n};v.exports=function(P,D){if(typeof P!="string")throw new TypeError("Path must be a string.");var e=m(P,D),n=e.isFile||$,i=e.readFileSync||w.readFileSync,d=e.isDirectory||M,_=e.realpathSync||b,L=e.readPackageSync||W;if(e.readFileSync&&e.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var S=e.packageIterator,l=e.extensions||[".js"],c=e.includeCoreModules!==!1,R=e.basedir||F.dirname(O()),j=e.filename||R;e.paths=e.paths||B();var V=K(_,F.resolve(R),e);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(P)){var G=F.resolve(V,P);(P==="."||P===".."||P.slice(-1)==="/")&&(G+="/");var z=X(G)||ie(G);if(z)return K(_,z,e)}else{if(c&&r(P))return P;var J=Y(P,V);if(J)return K(_,J,e)}var se=new Error("Cannot find module '"+P+"' from '"+j+"'");throw se.code="MODULE_NOT_FOUND",se;function X(Q){var g=x(F.dirname(Q));if(g&&g.dir&&g.pkg&&e.pathFilter){var C=F.relative(g.dir,Q),de=e.pathFilter(g.pkg,Q,C);de&&(Q=F.resolve(g.dir,de))}if(n(Q))return Q;for(var N=0;N<l.length;N++){var H=Q+l[N];if(n(H))return H}}function x(Q){if(!(Q===""||Q==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(Q))&&!/[/\\]node_modules[/\\]*$/.test(Q)){var g=F.join(K(_,Q,e),"package.json");if(!n(g))return x(F.dirname(Q));var C=L(i,g);return C&&e.packageFilter&&(C=e.packageFilter(C,Q)),{pkg:C,dir:Q}}}function ie(Q){var g=F.join(K(_,Q,e),"/package.json");if(n(g)){try{var C=L(i,g)}catch (e5){}if(C&&e.packageFilter&&(C=e.packageFilter(C,Q)),C&&C.main){if(typeof C.main!="string"){var de=new TypeError("package \u201C"+C.name+"\u201D `main` must be a string");throw de.code="INVALID_PACKAGE_MAIN",de}(C.main==="."||C.main==="./")&&(C.main="index");try{var N=X(F.resolve(Q,C.main));if(N)return N;var H=ie(F.resolve(Q,C.main));if(H)return H}catch (e6){}}}return X(F.join(Q,"/index"))}function Y(Q,g){for(var C=function(){return ne(Q,g,e)},de=S?S(Q,g,C,e):C(),N=0;N<de.length;N++){var H=de[N];if(d(F.dirname(H))){var le=X(H);if(le)return le;var ee=ie(H);if(ee)return ee}}}}}}),Et=ae.__commonJS.call(void 0,{"node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/index.js"(u,v){"use strict";var r=mt();r.core=vt(),r.isCore=yt(),r.sync=At(),v.exports=r}}),_t=ae.__commonJS.call(void 0,{"node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js"(u){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,u.matchToToken=function(v){var r={type:"invalid",value:v[0],closed:void 0};return v[1]?(r.type="string",r.closed=!!(v[3]||v[4])):v[5]?r.type="comment":v[6]?(r.type="comment",r.closed=!!v[7]):v[8]?r.type="regex":v[9]?r.type="number":v[10]?r.type="name":v[11]?r.type="punctuator":v[12]&&(r.type="whitespace"),r}}}),Ct=ae.__commonJS.call(void 0,{"node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/identifier.js"(u){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.isIdentifierChar=f,u.isIdentifierName=y,u.isIdentifierStart=m;var v="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",r="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",w=new RegExp("["+v+"]"),F=new RegExp("["+v+r+"]");v=r=null;var T=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],O=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function E(B,$){let M=65536;for(let b=0,K=$.length;b<K;b+=2){if(M+=$[b],M>B)return!1;if(M+=$[b+1],M>=B)return!0}return!1}function m(B){return B<65?B===36:B<=90?!0:B<97?B===95:B<=122?!0:B<=65535?B>=170&&w.test(String.fromCharCode(B)):E(B,T)}function f(B){return B<48?B===36:B<58?!0:B<65?!1:B<=90?!0:B<97?B===95:B<=122?!0:B<=65535?B>=170&&F.test(String.fromCharCode(B)):E(B,T)||E(B,O)}function y(B){let $=!0;for(let M=0;M<B.length;M++){let b=B.charCodeAt(M);if((b&64512)===55296&&M+1<B.length){let K=B.charCodeAt(++M);(K&64512)===56320&&(b=65536+((b&1023)<<10)+(K&1023))}if($){if($=!1,!m(b))return!1}else if(!f(b))return!1}return!$}}}),St=ae.__commonJS.call(void 0,{"node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/keyword.js"(u){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.isKeyword=f,u.isReservedWord=T,u.isStrictBindOnlyReservedWord=E,u.isStrictBindReservedWord=m,u.isStrictReservedWord=O;var v={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},r=new Set(v.keyword),w=new Set(v.strict),F=new Set(v.strictBind);function T(y,B){return B&&y==="await"||y==="enum"}function O(y,B){return T(y,B)||w.has(y)}function E(y){return F.has(y)}function m(y,B){return O(y,B)||E(y)}function f(y){return r.has(y)}}}),xt=ae.__commonJS.call(void 0,{"node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/index.js"(u){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(u,"isIdentifierChar",{enumerable:!0,get:function(){return v.isIdentifierChar}}),Object.defineProperty(u,"isIdentifierName",{enumerable:!0,get:function(){return v.isIdentifierName}}),Object.defineProperty(u,"isIdentifierStart",{enumerable:!0,get:function(){return v.isIdentifierStart}}),Object.defineProperty(u,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(u,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(u,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(u,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(u,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var v=Ct(),r=St()}}),Ke=ae.__commonJS.call(void 0,{"node_modules/.pnpm/@babel+code-frame@7.26.2/node_modules/@babel/code-frame/lib/index.js"(u){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var v=ae.__require.call(void 0,"picocolors"),r=_t(),w=xt();function F(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:v.isColorSupported}var T=(D,e)=>n=>D(e(n));function O(D){return{keyword:D.cyan,capitalized:D.yellow,jsxIdentifier:D.yellow,punctuator:D.yellow,number:D.magenta,string:D.green,regex:D.magenta,comment:D.gray,invalid:T(T(D.white,D.bgRed),D.bold),gutter:D.gray,marker:T(D.red,D.bold),message:T(D.red,D.bold),reset:D.reset}}var E=O(v.createColors(!0)),m=O(v.createColors(!1));function f(D){return D?E:m}var y=new Set(["as","async","from","get","of","set"]),B=/\r\n|[\n\r\u2028\u2029]/,$=/^[()[\]{}]$/,M;{let D=/^[a-z][\w-]*$/i,e=function(n,i,d){if(n.type==="name"){if(w.isKeyword(n.value)||w.isStrictReservedWord(n.value,!0)||y.has(n.value))return"keyword";if(D.test(n.value)&&(d[i-1]==="<"||d.slice(i-2,i)==="</"))return"jsxIdentifier";if(n.value[0]!==n.value[0].toLowerCase())return"capitalized"}return n.type==="punctuator"&&$.test(n.value)?"bracket":n.type==="invalid"&&(n.value==="@"||n.value==="#")?"punctuator":n.type};M=function*(n){let i;for(;i=r.default.exec(n);){let d=r.matchToToken(i);yield{type:e(d,i.index,n),value:d.value}}}}function b(D){if(D==="")return"";let e=f(!0),n="";for(let{type:i,value:d}of M(D))i in e?n+=d.split(B).map(_=>e[i](_)).join(`
2
+ `):n+=d;return n}var K=!1,W=/\r\n|[\n\r\u2028\u2029]/;function ne(D,e,n){let i=Object.assign({column:0,line:-1},D.start),d=Object.assign({},i,D.end),{linesAbove:_=2,linesBelow:L=3}=n||{},S=i.line,l=i.column,c=d.line,R=d.column,j=Math.max(S-(_+1),0),V=Math.min(e.length,c+L);S===-1&&(j=0),c===-1&&(V=e.length);let G=c-S,z={};if(G)for(let J=0;J<=G;J++){let se=J+S;if(!l)z[se]=!0;else if(J===0){let X=e[se-1].length;z[se]=[l,X-l+1]}else if(J===G)z[se]=[0,R];else{let X=e[se-J].length;z[se]=[0,X]}}else l===R?l?z[S]=[l,0]:z[S]=!0:z[S]=[l,R-l];return{start:j,end:V,markerLines:z}}function Z(D,e,n={}){let i=n.forceColor||F()&&n.highlightCode,d=f(i),_=D.split(W),{start:L,end:S,markerLines:l}=ne(e,_,n),c=e.start&&typeof e.start.column=="number",R=String(S).length,V=(i?b(D):D).split(W,S).slice(L,S).map((G,z)=>{let J=L+1+z,X=` ${` ${J}`.slice(-R)} |`,x=l[J],ie=!l[J+1];if(x){let Y="";if(Array.isArray(x)){let Q=G.slice(0,Math.max(x[0]-1,0)).replace(/[^\t]/g," "),g=x[1]||1;Y=[`
3
+ `,d.gutter(X.replace(/\d/g," "))," ",Q,d.marker("^").repeat(g)].join(""),ie&&n.message&&(Y+=" "+d.message(n.message))}return[d.marker(">"),d.gutter(X),G.length>0?` ${G}`:"",Y].join("")}else return` ${d.gutter(X)}${G.length>0?` ${G}`:""}`}).join(`
4
+ `);return n.message&&!c&&(V=`${" ".repeat(R+1)}${n.message}
5
+ ${V}`),i?d.reset(V):V}function P(D,e,n,i={}){if(!K){K=!0;let _="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(_,"DeprecationWarning");else{let L=new Error(_);L.name="DeprecationWarning",console.warn(new Error(_))}}return n=Math.max(n,0),Z(D,{start:{column:n,line:e}},i)}u.codeFrameColumns=Z,u.default=P,u.highlight=b}}),bt=ae.__commonJS.call(void 0,{"node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"(u,v){"use strict";(function(r,w){typeof u=="object"&&typeof v<"u"?w(u):typeof define=="function"&&define.amd?define(["exports"],w):(r=typeof globalThis<"u"?globalThis:r||self,w(r.sourcemapCodec={}))})(u,function(r){"use strict";let T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=new Uint8Array(64),E=new Uint8Array(128);for(let S=0;S<T.length;S++){let l=T.charCodeAt(S);O[S]=l,E[l]=S}function m(S,l){let c=0,R=0,j=0;do{let G=S.next();j=E[G],c|=(j&31)<<R,R+=5}while(j&32);let V=c&1;return c>>>=1,V&&(c=-2147483648|-c),l+c}function f(S,l,c){let R=l-c;R=R<0?-R<<1|1:R<<1;do{let j=R&31;R>>>=5,R>0&&(j|=32),S.write(O[j])}while(R>0);return l}function y(S,l){return S.pos>=l?!1:S.peek()!==44}let B=1024*16,$=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(S){return Buffer.from(S.buffer,S.byteOffset,S.byteLength).toString()}}:{decode(S){let l="";for(let c=0;c<S.length;c++)l+=String.fromCharCode(S[c]);return l}};class M{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(B)}write(l){let{buffer:c}=this;c[this.pos++]=l,this.pos===B&&(this.out+=$.decode(c),this.pos=0)}flush(){let{buffer:l,out:c,pos:R}=this;return R>0?c+$.decode(l.subarray(0,R)):c}}class b{constructor(l){this.pos=0,this.buffer=l}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(l){let{buffer:c,pos:R}=this,j=c.indexOf(l,R);return j===-1?c.length:j}}let K=[];function W(S){let{length:l}=S,c=new b(S),R=[],j=[],V=0;for(;c.pos<l;c.pos++){V=m(c,V);let G=m(c,0);if(!y(c,l)){let ie=j.pop();ie[2]=V,ie[3]=G;continue}let z=m(c,0),X=m(c,0)&1?[V,G,0,0,z,m(c,0)]:[V,G,0,0,z],x=K;if(y(c,l)){x=[];do{let ie=m(c,0);x.push(ie)}while(y(c,l))}X.vars=x,R.push(X),j.push(X)}return R}function ne(S){let l=new M;for(let c=0;c<S.length;)c=Z(S,c,l,[0]);return l.flush()}function Z(S,l,c,R){let j=S[l],{0:V,1:G,2:z,3:J,4:se,vars:X}=j;l>0&&c.write(44),R[0]=f(c,V,R[0]),f(c,G,0),f(c,se,0);let x=j.length===6?1:0;f(c,x,0),j.length===6&&f(c,j[5],0);for(let ie of X)f(c,ie,0);for(l++;l<S.length;){let ie=S[l],{0:Y,1:Q}=ie;if(Y>z||Y===z&&Q>=J)break;l=Z(S,l,c,R)}return c.write(44),R[0]=f(c,z,R[0]),f(c,J,0),l}function P(S){let{length:l}=S,c=new b(S),R=[],j=[],V=0,G=0,z=0,J=0,se=0,X=0,x=0,ie=0;do{let Y=c.indexOf(";"),Q=0;for(;c.pos<Y;c.pos++){if(Q=m(c,Q),!y(c,Y)){let te=j.pop();te[2]=V,te[3]=Q;continue}let g=m(c,0),C=g&1,de=g&2,N=g&4,H=null,le=K,ee;if(C){let te=m(c,G);z=m(c,G===te?z:0),G=te,ee=[V,Q,0,0,te,z]}else ee=[V,Q,0,0];if(ee.isScope=!!N,de){let te=J,ue=se;J=m(c,J);let ce=te===J;se=m(c,ce?se:0),X=m(c,ce&&ue===se?X:0),H=[J,se,X]}if(ee.callsite=H,y(c,Y)){le=[];do{x=V,ie=Q;let te=m(c,0),ue;if(te<-1){ue=[[m(c,0)]];for(let ce=-1;ce>te;ce--){let t=x;x=m(c,x),ie=m(c,x===t?ie:0);let s=m(c,0);ue.push([s,x,ie])}}else ue=[[te]];le.push(ue)}while(y(c,Y))}ee.bindings=le,R.push(ee),j.push(ee)}V++,c.pos=Y+1}while(c.pos<l);return R}function D(S){if(S.length===0)return"";let l=new M;for(let c=0;c<S.length;)c=e(S,c,l,[0,0,0,0,0,0,0]);return l.flush()}function e(S,l,c,R){let j=S[l],{0:V,1:G,2:z,3:J,isScope:se,callsite:X,bindings:x}=j;R[0]<V?(n(c,R[0],V),R[0]=V,R[1]=0):l>0&&c.write(44),R[1]=f(c,j[1],R[1]);let ie=(j.length===6?1:0)|(X?2:0)|(se?4:0);if(f(c,ie,0),j.length===6){let{4:Y,5:Q}=j;Y!==R[2]&&(R[3]=0),R[2]=f(c,Y,R[2]),R[3]=f(c,Q,R[3])}if(X){let{0:Y,1:Q,2:g}=j.callsite;Y!==R[4]?(R[5]=0,R[6]=0):Q!==R[5]&&(R[6]=0),R[4]=f(c,Y,R[4]),R[5]=f(c,Q,R[5]),R[6]=f(c,g,R[6])}if(x)for(let Y of x){Y.length>1&&f(c,-Y.length,0);let Q=Y[0][0];f(c,Q,0);let g=V,C=G;for(let de=1;de<Y.length;de++){let N=Y[de];g=f(c,N[1],g),C=f(c,N[2],C),f(c,N[0],0)}}for(l++;l<S.length;){let Y=S[l],{0:Q,1:g}=Y;if(Q>z||Q===z&&g>=J)break;l=e(S,l,c,R)}return R[0]<z?(n(c,R[0],z),R[0]=z,R[1]=0):c.write(44),R[1]=f(c,J,R[1]),l}function n(S,l,c){do S.write(59);while(++l<c)}function i(S){let{length:l}=S,c=new b(S),R=[],j=0,V=0,G=0,z=0,J=0;do{let se=c.indexOf(";"),X=[],x=!0,ie=0;for(j=0;c.pos<se;){let Y;j=m(c,j),j<ie&&(x=!1),ie=j,y(c,se)?(V=m(c,V),G=m(c,G),z=m(c,z),y(c,se)?(J=m(c,J),Y=[j,V,G,z,J]):Y=[j,V,G,z]):Y=[j],X.push(Y),c.pos++}x||d(X),R.push(X),c.pos=se+1}while(c.pos<=l);return R}function d(S){S.sort(_)}function _(S,l){return S[0]-l[0]}function L(S){let l=new M,c=0,R=0,j=0,V=0;for(let G=0;G<S.length;G++){let z=S[G];if(G>0&&l.write(59),z.length===0)continue;let J=0;for(let se=0;se<z.length;se++){let X=z[se];se>0&&l.write(44),J=f(l,X[0],J),X.length!==1&&(c=f(l,X[1],c),R=f(l,X[2],R),j=f(l,X[3],j),X.length!==4&&(V=f(l,X[4],V)))}}return l.flush()}r.decode=i,r.decodeGeneratedRanges=P,r.decodeOriginalScopes=W,r.encode=L,r.encodeGeneratedRanges=D,r.encodeOriginalScopes=ne,Object.defineProperty(r,"__esModule",{value:!0})})}}),Ft=ae.__commonJS.call(void 0,{"node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.cjs.js"(u,v){"use strict";var r=bt(),w=class Ze{constructor(e){this.bits=e instanceof Ze?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},F=class He{constructor(e,n,i){this.start=e,this.end=n,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(){let e=new He(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 n=this;for(;n;)e(n),n=n.next}eachPrevious(e){let n=this;for(;n;)e(n),n=n.previous}edit(e,n,i){return this.content=e,i||(this.intro="",this.outro=""),this.storeName=n,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){let n=e-this.start,i=this.original.slice(0,n),d=this.original.slice(n);this.original=i;let _=new He(e,this.end,d);return _.outro=this.outro,this.outro="",this.end=e,this.edited?(_.edit("",!1),this.content=""):this.content=i,_.next=this.next,_.next&&(_.next.previous=_),_.previous=this,this.next=_,_}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let n=this.content.replace(e,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,!0),this.edited&&this.edit(n,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;let n=this.content.replace(e,"");if(n.length){if(n!==this.content){let i=this.split(this.end-n.length);this.edited&&i.edit(n,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 T(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?D=>globalThis.btoa(unescape(encodeURIComponent(D))):typeof Buffer=="function"?D=>Buffer.from(D,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var O=T(),E=class{constructor(D){this.version=3,this.file=D.file,this.sources=D.sources,this.sourcesContent=D.sourcesContent,this.names=D.names,this.mappings=r.encode(D.mappings),typeof D.x_google_ignoreList<"u"&&(this.x_google_ignoreList=D.x_google_ignoreList),typeof D.debugId<"u"&&(this.debugId=D.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+O(this.toString())}};function m(D){let e=D.split(`
6
+ `),n=e.filter(_=>/^\t+/.test(_)),i=e.filter(_=>/^ {2,}/.test(_));if(n.length===0&&i.length===0)return null;if(n.length>=i.length)return" ";let d=i.reduce((_,L)=>{let S=/^ +/.exec(L)[0].length;return Math.min(S,_)},1/0);return new Array(d+1).join(" ")}function f(D,e){let n=D.split(/[/\\]/),i=e.split(/[/\\]/);for(n.pop();n[0]===i[0];)n.shift(),i.shift();if(n.length){let d=n.length;for(;d--;)n[d]=".."}return n.concat(i).join("/")}var y=Object.prototype.toString;function B(D){return y.call(D)==="[object Object]"}function $(D){let e=D.split(`
7
+ `),n=[];for(let i=0,d=0;i<e.length;i++)n.push(d),d+=e[i].length+1;return function(d){let _=0,L=n.length;for(;_<L;){let c=_+L>>1;d<n[c]?L=c:_=c+1}let S=_-1,l=d-n[S];return{line:S,column:l}}}var M=/\w/,b=class{constructor(D){this.hires=D,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(D,e,n,i){if(e.length){let d=e.length-1,_=e.indexOf(`
8
+ `,0),L=-1;for(;_>=0&&d>_;){let l=[this.generatedCodeColumn,D,n.line,n.column];i>=0&&l.push(i),this.rawSegments.push(l),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,L=_,_=e.indexOf(`
9
+ `,_+1)}let S=[this.generatedCodeColumn,D,n.line,n.column];i>=0&&S.push(i),this.rawSegments.push(S),this.advance(e.slice(L+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(e));this.pending=null}addUneditedChunk(D,e,n,i,d){let _=e.start,L=!0,S=!1;for(;_<e.end;){if(n[_]===`
10
+ `)i.line+=1,i.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,L=!0,S=!1;else{if(this.hires||L||d.has(_)){let l=[this.generatedCodeColumn,D,i.line,i.column];this.hires==="boundary"?M.test(n[_])?S||(this.rawSegments.push(l),S=!0):(this.rawSegments.push(l),S=!1):this.rawSegments.push(l)}i.column+=1,this.generatedCodeColumn+=1,L=!1}_+=1}this.pending=null}advance(D){if(!D)return;let e=D.split(`
11
+ `);if(e.length>1){for(let n=0;n<e.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=e[e.length-1].length}},K=`
12
+ `,W={insertLeft:!1,insertRight:!1,storeName:!1},ne=class Ye{constructor(e,n={}){let i=new F(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:n.filename},indentExclusionRanges:{writable:!0,value:n.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new w},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:n.ignoreList},offset:{writable:!0,value:n.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,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);let i=this.byEnd[e];return i?i.appendLeft(n):this.intro+=n,this}appendRight(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);let i=this.byStart[e];return i?i.appendRight(n):this.outro+=n,this}clone(){let e=new Ye(this.original,{filename:this.filename,offset:this.offset}),n=this.firstChunk,i=e.firstChunk=e.lastSearchedChunk=n.clone();for(;n;){e.byStart[i.start]=i,e.byEnd[i.end]=i;let d=n.next,_=d&&d.clone();_&&(i.next=_,_.previous=i,i=_),n=d}return e.lastChunk=i,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new w(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};let n=0,i=Object.keys(this.storedNames),d=new b(e.hires),_=$(this.original);return this.intro&&d.advance(this.intro),this.firstChunk.eachNext(L=>{let S=_(L.start);L.intro.length&&d.advance(L.intro),L.edited?d.addEdit(n,L.content,S,L.storeName?i.indexOf(L.original):-1):d.addUneditedChunk(n,L,this.original,S,this.sourcemapLocations),L.outro.length&&d.advance(L.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?f(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:i,mappings:d.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(e){return new E(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=m(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,n){let i=/^[^\r\n]/gm;if(B(e)&&(n=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;n=n||{};let d={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(R=>{for(let j=R[0];j<R[1];j+=1)d[j]=!0});let _=n.indentStart!==!1,L=c=>_?`${e}${c}`:(_=!0,c);this.intro=this.intro.replace(i,L);let S=0,l=this.firstChunk;for(;l;){let c=l.end;if(l.edited)d[S]||(l.content=l.content.replace(i,L),l.content.length&&(_=l.content[l.content.length-1]===`
13
+ `));else for(S=l.start;S<c;){if(!d[S]){let R=this.original[S];R===`
14
+ `?_=!0:R!=="\r"&&_&&(_=!1,S===l.start||(this._splitChunk(l,S),l=l.next),l.prependRight(e))}S+=1}S=l.end,l=l.next}return this.outro=this.outro.replace(i,L),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,n){return W.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),W.insertLeft=!0),this.appendLeft(e,n)}insertRight(e,n){return W.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),W.insertRight=!0),this.prependRight(e,n)}move(e,n,i){if(e=e+this.offset,n=n+this.offset,i=i+this.offset,i>=e&&i<=n)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(n),this._split(i);let d=this.byStart[e],_=this.byEnd[n],L=d.previous,S=_.next,l=this.byStart[i];if(!l&&_===this.lastChunk)return this;let c=l?l.previous:this.lastChunk;return L&&(L.next=S),S&&(S.previous=L),c&&(c.next=d),l&&(l.previous=_),d.previous||(this.firstChunk=_.next),_.next||(this.lastChunk=d.previous,this.lastChunk.next=null),d.previous=c,_.next=l||null,c||(this.firstChunk=d),l||(this.lastChunk=_),this}overwrite(e,n,i,d){return d=d||{},this.update(e,n,i,{...d,overwrite:!d.contentOnly})}update(e,n,i,d){if(e=e+this.offset,n=n+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(;n<0;)n+=this.original.length}if(n>this.original.length)throw new Error("end is out of bounds");if(e===n)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(n),d===!0&&(W.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),W.storeName=!0),d={storeName:!0});let _=d!==void 0?d.storeName:!1,L=d!==void 0?d.overwrite:!1;if(_){let c=this.original.slice(e,n);Object.defineProperty(this.storedNames,c,{writable:!0,value:!0,enumerable:!0})}let S=this.byStart[e],l=this.byEnd[n];if(S){let c=S;for(;c!==l;){if(c.next!==this.byStart[c.end])throw new Error("Cannot overwrite across a split point");c=c.next,c.edit("",!1)}S.edit(i,_,!L)}else{let c=new F(e,n,"").edit(i,_);l.next=c,c.previous=l}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,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);let i=this.byEnd[e];return i?i.prependLeft(n):this.intro=n+this.intro,this}prependRight(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);let i=this.byStart[e];return i?i.prependRight(n):this.outro=n+this.outro,this}remove(e,n){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(e===n)return this;if(e<0||n>this.original.length)throw new Error("Character is out of bounds");if(e>n)throw new Error("end must be greater than start");this._split(e),this._split(n);let i=this.byStart[e];for(;i;)i.intro="",i.outro="",i.edit(""),i=n>i.end?this.byStart[i.end]:null;return this}reset(e,n){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(e===n)return this;if(e<0||n>this.original.length)throw new Error("Character is out of bounds");if(e>n)throw new Error("end must be greater than start");this._split(e),this._split(n);let i=this.byStart[e];for(;i;)i.reset(),i=n>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(K);if(e!==-1)return this.outro.substr(e+1);let n=this.outro,i=this.lastChunk;do{if(i.outro.length>0){if(e=i.outro.lastIndexOf(K),e!==-1)return i.outro.substr(e+1)+n;n=i.outro+n}if(i.content.length>0){if(e=i.content.lastIndexOf(K),e!==-1)return i.content.substr(e+1)+n;n=i.content+n}if(i.intro.length>0){if(e=i.intro.lastIndexOf(K),e!==-1)return i.intro.substr(e+1)+n;n=i.intro+n}}while(i=i.previous);return e=this.intro.lastIndexOf(K),e!==-1?this.intro.substr(e+1)+n:this.intro+n}slice(e=0,n=this.original.length-this.offset){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}let i="",d=this.firstChunk;for(;d&&(d.start>e||d.end<=e);){if(d.start<n&&d.end>=n)return i;d=d.next}if(d&&d.edited&&d.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);let _=d;for(;d;){d.intro&&(_!==d||d.start===e)&&(i+=d.intro);let L=d.start<n&&d.end>=n;if(L&&d.edited&&d.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);let S=_===d?e-d.start:0,l=L?d.content.length+n-d.end:d.content.length;if(i+=d.content.slice(S,l),d.outro&&(!L||d.end===n)&&(i+=d.outro),L)break;d=d.next}return i}snip(e,n){let i=this.clone();return i.remove(0,e),i.remove(n,i.original.length),i}_split(e){if(this.byStart[e]||this.byEnd[e])return;let n=this.lastSearchedChunk,i=e>n.end;for(;n;){if(n.contains(e))return this._splitChunk(n,e);n=i?this.byStart[n.end]:this.byEnd[n.start]}}_splitChunk(e,n){if(e.edited&&e.content.length){let d=$(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${d.line}:${d.column} \u2013 "${e.original}")`)}let i=e.split(n);return this.byEnd[n]=e,this.byStart[n]=i,this.byEnd[i.end]=i,e===this.lastChunk&&(this.lastChunk=i),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,n=this.firstChunk;for(;n;)e+=n.toString(),n=n.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,n=0;do n+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){let n=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return!0;let i=this.lastChunk;do{let d=i.end,_=i.trimEnd(n);if(i.end!==d&&(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),_)return!0;i=i.previous}while(i);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){let n=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return!0;let i=this.firstChunk;do{let d=i.end,_=i.trimStart(n);if(i.end!==d&&(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),_)return!0;i=i.next}while(i);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,n){function i(_,L){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(S,l)=>l==="$"?"$":l==="&"?_[0]:+l<_.length?_[+l]:`$${l}`):n(..._,_.index,L,_.groups)}function d(_,L){let S,l=[];for(;S=_.exec(L);)l.push(S);return l}if(e.global)d(e,this.original).forEach(L=>{if(L.index!=null){let S=i(L,this.original);S!==L[0]&&this.overwrite(L.index,L.index+L[0].length,S)}});else{let _=this.original.match(e);if(_&&_.index!=null){let L=i(_,this.original);L!==_[0]&&this.overwrite(_.index,_.index+_[0].length,L)}}return this}_replaceString(e,n){let{original:i}=this,d=i.indexOf(e);return d!==-1&&this.overwrite(d,d+e.length,n),this}replace(e,n){return typeof e=="string"?this._replaceString(e,n):this._replaceRegexp(e,n)}_replaceAllString(e,n){let{original:i}=this,d=e.length;for(let _=i.indexOf(e);_!==-1;_=i.indexOf(e,_+d))i.slice(_,_+d)!==n&&this.overwrite(_,_+d,n);return this}replaceAll(e,n){if(typeof e=="string")return this._replaceAllString(e,n);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,n)}},Z=Object.prototype.hasOwnProperty,P=class et{constructor(e={}){this.intro=e.intro||"",this.separator=e.separator!==void 0?e.separator:`
15
+ `,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}addSource(e){if(e instanceof ne)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!B(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","ignoreList","indentExclusionRanges","separator"].forEach(n=>{Z.call(e,n)||(e[n]=e.content[n])}),e.separator===void 0&&(e.separator=this.separator),e.filename)if(!Z.call(this.uniqueSourceIndexByFilename,e.filename))this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});else{let n=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==n.content)throw new Error(`Illegal source: same filename (${e.filename}), different contents`)}return this.sources.push(e),this}append(e,n){return this.addSource({content:new ne(e),separator:n&&n.separator||""}),this}clone(){let e=new et({intro:this.intro,separator:this.separator});return this.sources.forEach(n=>{e.addSource({filename:n.filename,content:n.content.clone(),separator:n.separator})}),e}generateDecodedMap(e={}){let n=[],i;this.sources.forEach(_=>{Object.keys(_.content.storedNames).forEach(L=>{~n.indexOf(L)||n.push(L)})});let d=new b(e.hires);return this.intro&&d.advance(this.intro),this.sources.forEach((_,L)=>{L>0&&d.advance(this.separator);let S=_.filename?this.uniqueSourceIndexByFilename[_.filename]:-1,l=_.content,c=$(l.original);l.intro&&d.advance(l.intro),l.firstChunk.eachNext(R=>{let j=c(R.start);R.intro.length&&d.advance(R.intro),_.filename?R.edited?d.addEdit(S,R.content,j,R.storeName?n.indexOf(R.original):-1):d.addUneditedChunk(S,R,l.original,j,l.sourcemapLocations):d.advance(R.content),R.outro.length&&d.advance(R.outro)}),l.outro&&d.advance(l.outro),_.ignoreList&&S!==-1&&(i===void 0&&(i=[]),i.push(S))}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(_=>e.file?f(e.file,_.filename):_.filename),sourcesContent:this.uniqueSources.map(_=>e.includeContent?_.content:null),names:n,mappings:d.raw,x_google_ignoreList:i}}generateMap(e){return new E(this.generateDecodedMap(e))}getIndentString(){let e={};return this.sources.forEach(n=>{let i=n.content._getRawIndentString();i!==null&&(e[i]||(e[i]=0),e[i]+=1)}),Object.keys(e).sort((n,i)=>e[n]-e[i])[0]||" "}indent(e){if(arguments.length||(e=this.getIndentString()),e==="")return this;let n=!this.intro||this.intro.slice(-1)===`
16
+ `;return this.sources.forEach((i,d)=>{let _=i.separator!==void 0?i.separator:this.separator,L=n||d>0&&/\r?\n$/.test(_);i.content.indent(e,{exclude:i.indentExclusionRanges,indentStart:L}),n=i.content.lastChar()===`
17
+ `}),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,(i,d)=>d>0?e+i:i)),this}prepend(e){return this.intro=e+this.intro,this}toString(){let e=this.sources.map((n,i)=>{let d=n.separator!==void 0?n.separator:this.separator;return(i>0?d:"")+n.content.toString()}).join("");return this.intro+e}isEmpty(){return!(this.intro.length&&this.intro.trim()||this.sources.some(e=>!e.content.isEmpty()))}length(){return this.sources.reduce((e,n)=>e+n.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimStart(e){let n=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(n,""),!this.intro){let i,d=0;do if(i=this.sources[d++],!i)break;while(!i.content.trimStartAborted(e))}return this}trimEnd(e){let n=new RegExp((e||"\\s")+"+$"),i,d=this.sources.length-1;do if(i=this.sources[d--],!i){this.intro=this.intro.replace(n,"");break}while(!i.content.trimEndAborted(e));return this}};ne.Bundle=P,ne.SourceMap=E,ne.default=ne,v.exports=ne}}),wt=ae.__commonJS.call(void 0,{"node_modules/.pnpm/rollup-plugin-dts@6.1.1_rollup@4.34.8_typescript@5.7.3/node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.cjs"(u){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var v=ae.__require.call(void 0,"path"),r=ae.__require.call(void 0,"typescript");Ke();var w=ae.__require.call(void 0,"module"),F=Ft(),T=typeof document<"u"?document.currentScript:null;function O(t){var s=Object.create(null);return t&&Object.keys(t).forEach(function(o){if(o!=="default"){var p=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(s,o,p.get?p:{enumerable:!0,get:function(){return t[o]}})}}),s.default=t,Object.freeze(s)}var E=O(v);function m(t){return{...t,compilerOptions:De(t.compilerOptions,()=>({})),respectExternal:De(t.respectExternal,()=>!1)}}var f=/\.d\.(c|m)?tsx?$/,y=".d.ts",B={getCurrentDirectory:()=>r.sys.getCurrentDirectory(),getNewLine:()=>r.sys.newLine,getCanonicalFileName:r.sys.useCaseSensitiveFileNames?t=>t:t=>t.toLowerCase()},$={declaration:!0,noEmit:!1,emitDeclarationOnly:!0,noEmitOnError:!0,checkJs:!1,declarationMap:!1,skipLibCheck:!0,preserveSymlinks:!0,target:r.ScriptTarget.ESNext},M=new Map,b=(...t)=>process.env.DTS_LOG_CACHE?console.log("[cache]",...t):null;function K([t,s],o){for(b(t),M.set(t,o);t!==s&&t!==E.dirname(t);){if(t=E.dirname(t),b("up",t),M.has(t))return b("has",t);M.set(t,o)}}function W(t,s,o){let p={...$,...s},a=E.dirname(t),A=[],h=o||a;if(M.has(h))b("HIT",h);else{b("miss",h);let re=o?E.resolve(process.cwd(),o):r.findConfigFile(a,r.sys.fileExists);if(!re)return{dtsFiles:A,dirName:a,compilerOptions:p};let pe=a;a=E.dirname(re);let{config:fe,error:ve}=r.readConfigFile(re,r.sys.readFile);if(ve)return console.error(r.formatDiagnostic(ve,B)),{dtsFiles:A,dirName:a,compilerOptions:p};b("tsconfig",fe);let q=r.parseJsonConfigFileContent(fe,r.sys,a);K(o?[o,o]:[pe,a],q)}let{fileNames:I,options:U,errors:k}=M.get(h);return A=I.filter(re=>f.test(re)),k.length?(console.error(r.formatDiagnostics(k,B)),{dtsFiles:A,dirName:a,compilerOptions:p}):{dtsFiles:A,dirName:a,compilerOptions:{...U,...p}}}function ne(t,s,o){let{dtsFiles:p,compilerOptions:a}=W(t,s,o);return r.createProgram([t].concat(Array.from(p)),a,r.createCompilerHost(a,!0))}function Z(t,s,o){let p=[],a=[],A=new Set,h="",I={};for(let U of t){if(f.test(U))continue;U=E.resolve(U);let k=W(U,s,o);if(k.dtsFiles.forEach(A.add,A),!a.length){a.push(U),{dirName:h,compilerOptions:I}=k;continue}if(k.dirName===h)a.push(U);else{let re=r.createCompilerHost(I,!0),pe=r.createProgram(a.concat(Array.from(A)),I,re);p.push(pe),a=[U],{dirName:h,compilerOptions:I}=k}}if(a.length){let U=r.createCompilerHost(I,!0),k=r.createProgram(a.concat(Array.from(A)),I,U);p.push(k)}return p}function P(){let t;try{return{codeFrameColumns:t}=Ke(),t}catch (e7){try{return{codeFrameColumns:t}=w.createRequire(typeof document>"u"?ae.__require.call(void 0,"url").pathToFileURL(__filename).href:T&&T.src||new URL("rollup-plugin-dts.cjs",document.baseURI).href)("@babel/code-frame"),t}catch (e8){}}}function D(t){let s=t.getSourceFile(),o=s.getLineAndCharacterOfPosition(t.getStart()),p=s.getLineAndCharacterOfPosition(t.getEnd());return{start:{line:o.line+1,column:o.character+1},end:{line:p.line+1,column:p.character+1}}}function e(t){let s=P(),p=t.getSourceFile().getFullText(),a=D(t);return s?`
18
+ `+s(p,a,{highlightCode:!0}):`
19
+ ${a.start.line}:${a.start.column}: \`${t.getFullText().trim()}\``}var n=class extends Error{constructor(t,s="Syntax not yet supported"){super(`${s}
20
+ ${e(t)}`)}},i=class{constructor(t){this.sourceFile=t}findNamespaces(){let t=[],s={};for(let o of this.sourceFile.statements){let p={start:o.getStart(),end:o.getEnd()};if(r.isEmptyStatement(o)){t.unshift({name:"",exports:[],location:p});continue}if((r.isImportDeclaration(o)||r.isExportDeclaration(o))&&o.moduleSpecifier&&r.isStringLiteral(o.moduleSpecifier)){let{text:k}=o.moduleSpecifier;if(k.startsWith(".")&&(k.endsWith(".d.ts")||k.endsWith(".d.cts")||k.endsWith(".d.mts"))){let re=o.moduleSpecifier.getStart()+1,pe=o.moduleSpecifier.getEnd()-1;t.unshift({name:"",exports:[],location:{start:re,end:pe},textBeforeCodeAfter:k.replace(/\.d\.ts$/,".js").replace(/\.d\.cts$/,".cjs").replace(/\.d\.mts$/,".mjs")})}}if(r.isModuleDeclaration(o)&&o.body&&r.isModuleBlock(o.body)){for(let k of o.body.statements)if(r.isExportDeclaration(k)&&k.exportClause){if(r.isNamespaceExport(k.exportClause))continue;for(let re of k.exportClause.elements)re.propertyName&&re.propertyName.getText()==re.name.getText()&&t.unshift({name:"",exports:[],location:{start:re.propertyName.getEnd(),end:re.name.getEnd()}})}}if(r.isClassDeclaration(o)?s[o.name.getText()]={type:"class",generics:o.typeParameters}:r.isFunctionDeclaration(o)?s[o.name.getText()]={type:"function"}:r.isInterfaceDeclaration(o)?s[o.name.getText()]={type:"interface",generics:o.typeParameters}:r.isTypeAliasDeclaration(o)?s[o.name.getText()]={type:"type",generics:o.typeParameters}:r.isModuleDeclaration(o)&&r.isIdentifier(o.name)?s[o.name.getText()]={type:"namespace"}:r.isEnumDeclaration(o)&&(s[o.name.getText()]={type:"enum"}),!r.isVariableStatement(o))continue;let{declarations:a}=o.declarationList;if(a.length!==1)continue;let A=a[0],h=A.name.getText();if(!A.initializer||!r.isCallExpression(A.initializer)){s[h]={type:"var"};continue}let I=A.initializer.arguments[0];if(!A.initializer.expression.getFullText().includes("/*#__PURE__*/Object.freeze")||!r.isObjectLiteralExpression(I))continue;let U=[];for(let k of I.properties){if(!r.isPropertyAssignment(k)||!(r.isIdentifier(k.name)||r.isStringLiteral(k.name))||k.name.text!=="__proto__"&&!r.isIdentifier(k.initializer))throw new n(k,"Expected a property assignment");k.name.text!=="__proto__"&&U.push({exportedName:k.name.text,localName:k.initializer.getText()})}t.unshift({name:h,exports:U,location:p})}return{namespaces:t,itemTypes:s}}fix(){let t=this.sourceFile.getFullText(),{namespaces:s,itemTypes:o}=this.findNamespaces();for(let p of s){let a=t.slice(p.location.end);t=t.slice(0,p.location.start);for(let{exportedName:A,localName:h}of p.exports)if(A===h){let{type:I,generics:U}=o[h]||{};if(I==="interface"||I==="type"){let k=d(U);t+=`type ${p.name}_${A}${k.in} = ${h}${k.out};
21
+ `}else if(I==="enum"||I==="class"){let k=d(U);t+=`type ${p.name}_${A}${k.in} = ${h}${k.out};
22
+ `,t+=`declare const ${p.name}_${A}: typeof ${h};
23
+ `}else t+=`declare const ${p.name}_${A}: typeof ${h};
24
+ `}if(p.name){t+=`declare namespace ${p.name} {
25
+ `,t+=` export {
26
+ `;for(let{exportedName:A,localName:h}of p.exports)A===h?t+=` ${p.name}_${A} as ${A},
27
+ `:t+=` ${h} as ${A},
28
+ `;t+=` };
29
+ `,t+="}"}t+=De(p.textBeforeCodeAfter,()=>""),t+=a}return t}};function d(t){return!t||!t.length?{in:"",out:""}:{in:`<${t.map(s=>s.getText()).join(", ")}>`,out:`<${t.map(s=>s.name.getText()).join(", ")}>`}}var _=1;function L(t){return G({type:"Program",sourceType:"module",body:[]},{start:t.getFullStart(),end:t.getEnd()})}function S(t){let s={type:"Identifier",name:String(_++)};return{ident:s,expr:{type:"AssignmentPattern",left:s,right:t}}}function l(t){return G({type:"Identifier",name:t.getText()},t)}function c(t){let s=G({type:"FunctionExpression",id:null,params:[],body:{type:"BlockStatement",body:[]}},t),o=G({type:"ExpressionStatement",expression:{type:"CallExpression",callee:{type:"Identifier",name:String(_++)},arguments:[s],optional:!1}},t);return{fn:s,iife:o}}function R(){let t={type:"ArrayExpression",elements:[]};return{expr:t,stmt:{type:"ReturnStatement",argument:t}}}function j(t,s){return G({type:"FunctionDeclaration",id:G({type:"Identifier",name:r.idText(t)},t),params:[],body:{type:"BlockStatement",body:[]}},s)}function V(t){if(r.isLiteralExpression(t))return{type:"Literal",value:t.text};if(r.isPropertyAccessExpression(t)){if(r.isPrivateIdentifier(t.name))throw new n(t.name);return G({type:"MemberExpression",computed:!1,optional:!1,object:V(t.expression),property:V(t.name)},{start:t.expression.getStart(),end:t.name.getEnd()})}if(r.isIdentifier(t))return l(t);if(t.kind==r.SyntaxKind.NullKeyword)return{type:"Literal",value:null};throw new n(t)}function G(t,s){let o="start"in s?s:{start:s.getStart(),end:s.getEnd()};return Object.assign(t,o)}function z(t,s){return(r.getCombinedModifierFlags(t)&s)===s}function J({sourceFile:t}){let s=new F(t.getFullText()),o=new Set,p=new Set,a="",A=new Map,h=new Map;for(let q of t.statements){if(r.isEmptyStatement(q)){s.remove(q.getStart(),q.getEnd());continue}if(r.isEnumDeclaration(q)||r.isFunctionDeclaration(q)||r.isInterfaceDeclaration(q)||r.isClassDeclaration(q)||r.isTypeAliasDeclaration(q)||r.isModuleDeclaration(q)){if(q.name){let oe=q.name.getText();o.add(oe),z(q,r.ModifierFlags.ExportDefault)?a=oe:z(q,r.ModifierFlags.Export)&&p.add(oe),q.flags&r.NodeFlags.GlobalAugmentation||ve(oe,[x(q),ie(q)])}r.isModuleDeclaration(q)&&X(s,q),se(s,q)}else if(r.isVariableStatement(q)){let{declarations:oe}=q.declarationList,me=z(q,r.ModifierFlags.Export);for(let ge of q.declarationList.declarations)if(r.isIdentifier(ge.name)){let Ae=ge.name.getText();o.add(Ae),me&&p.add(Ae)}if(se(s,q),oe.length==1){let ge=oe[0];r.isIdentifier(ge.name)&&ve(ge.name.getText(),[x(q),ie(q)])}else{let ge=oe.slice(),Ae=ge.shift();ve(Ae.name.getText(),[x(q),Ae.getEnd()]);for(let be of ge)r.isIdentifier(be.name)&&ve(be.name.getText(),[be.getFullStart(),be.getEnd()])}let{flags:he}=q.declarationList,we=`declare ${he&r.NodeFlags.Let?"let":he&r.NodeFlags.Const?"const":"var"} `,xe=q.declarationList.getChildren().find(ge=>ge.kind===r.SyntaxKind.SyntaxList).getChildren(),Ee=0;for(let ge of xe)if(ge.kind===r.SyntaxKind.CommaToken)Ee=ge.getStart(),s.remove(Ee,ge.getEnd());else if(Ee){s.appendLeft(Ee,`;
30
+ `);let Ae=ge.getFullStart(),be=s.slice(Ae,ge.getStart()),Ue=be.length-be.trimStart().length;Ue?s.overwrite(Ae,Ae+Ue,we):s.appendLeft(Ae,we)}}}for(let q of t.statements)if(re(q),!!z(q,r.ModifierFlags.ExportDefault)&&(r.isFunctionDeclaration(q)||r.isClassDeclaration(q))){if(q.name)continue;a||(a=fe("export_default"));let oe=q.getChildren(),me=oe.findIndex(xe=>xe.kind===r.SyntaxKind.ClassKeyword||xe.kind===r.SyntaxKind.FunctionKeyword),he=oe[me],Se=oe[me+1];if(Se.kind>=r.SyntaxKind.FirstPunctuation&&Se.kind<=r.SyntaxKind.LastPunctuation){let xe=s.slice(he.getEnd(),Se.getStart())!=" ";s.appendLeft(Se.getStart(),`${xe?" ":""}${a}`)}else s.appendRight(he.getEnd(),` ${a}`)}for(let q of h.values()){let me=q.pop()[0];for(let he of q)s.move(he[0],he[1],me)}a&&s.append(`
31
+ export default ${a};
32
+ `),p.size&&s.append(`
33
+ export { ${[...p].join(", ")} };
34
+ `);for(let[q,oe]of A.entries())s.prepend(`import * as ${oe} from "${q}";
35
+ `);let I=t.getLineStarts(),U=new Set;for(let q of t.typeReferenceDirectives){U.add(q.fileName);let{line:oe}=t.getLineAndCharacterOfPosition(q.pos),me=I[oe],he=t.getLineEndOfPosition(q.pos);s.slice(he,he+1)==`
36
+ `&&(he+=1),s.remove(me,he)}let k=new Set;for(let q of t.referencedFiles){k.add(q.fileName);let{line:oe}=t.getLineAndCharacterOfPosition(q.pos),me=I[oe],he=t.getLineEndOfPosition(q.pos);s.slice(he,he+1)==`
37
+ `&&(he+=1),s.remove(me,he)}return{code:s,typeReferences:U,fileReferences:k};function re(q){if(r.forEachChild(q,re),r.isImportTypeNode(q)){if(!r.isLiteralTypeNode(q.argument)||!r.isStringLiteral(q.argument.literal))throw new n(q,"inline imports should have a literal argument");let oe=q.argument.literal.text,me=q.getChildren(),he=me.find(Ee=>Ee.kind===r.SyntaxKind.ImportKeyword).getStart(),Se=q.getEnd(),we=me.find(Ee=>Ee.kind===r.SyntaxKind.DotToken||Ee.kind===r.SyntaxKind.LessThanToken);we&&(Se=we.getStart());let xe=pe(oe);s.overwrite(he,Se,xe)}}function pe(q){let oe=A.get(q);return oe||(oe=fe(q.replace(/[^a-zA-Z0-9_$]/g,()=>"_")),A.set(q,oe)),oe}function fe(q){let oe=q;for(;o.has(oe);)oe=`_${oe}`;return o.add(oe),oe}function ve(q,oe){let me=h.get(q);if(!me)me=[oe],h.set(q,me);else{let he=me[me.length-1];he[1]===oe[0]?he[1]=oe[1]:me.push(oe)}}}function se(t,s){if(!r.canHaveModifiers(s))return;let o=!1,p=r.isEnumDeclaration(s)||r.isClassDeclaration(s)||r.isFunctionDeclaration(s)||r.isModuleDeclaration(s)||r.isVariableStatement(s);for(let a of De(s.modifiers,()=>[]))switch(a.kind){case r.SyntaxKind.ExportKeyword:case r.SyntaxKind.DefaultKeyword:t.remove(a.getStart(),a.getEnd()+1);break;case r.SyntaxKind.DeclareKeyword:o=!0}p&&!o&&t.appendRight(s.getStart(),"declare ")}function X(t,s){if(!(!s.body||!r.isModuleBlock(s.body))){for(let o of s.body.statements)if(r.isExportDeclaration(o)&&o.exportClause){if(r.isNamespaceExport(o.exportClause))continue;for(let p of o.exportClause.elements)p.propertyName||t.appendLeft(p.name.getEnd(),` as ${p.name.getText()}`)}}}function x(t){let s=t.getFullStart();return s+(Y(t,s)?1:0)}function ie(t){let s=t.getEnd();return s+(Y(t,s)?1:0)}function Y(t,s){return t.getSourceFile().getFullText()[s]==`
38
+ `}var Q=new Set([r.SyntaxKind.LiteralType,r.SyntaxKind.VoidKeyword,r.SyntaxKind.UnknownKeyword,r.SyntaxKind.AnyKeyword,r.SyntaxKind.BooleanKeyword,r.SyntaxKind.NumberKeyword,r.SyntaxKind.StringKeyword,r.SyntaxKind.ObjectKeyword,r.SyntaxKind.NullKeyword,r.SyntaxKind.UndefinedKeyword,r.SyntaxKind.SymbolKeyword,r.SyntaxKind.NeverKeyword,r.SyntaxKind.ThisKeyword,r.SyntaxKind.ThisType,r.SyntaxKind.BigIntKeyword]),g=class{constructor({id:t,range:s}){if(this.scopes=[],t)this.declaration=j(t,s);else{let{iife:p,fn:a}=c(s);this.iife=p,this.declaration=a}let o=R();this.declaration.body.body.push(o.stmt),this.returnExpr=o.expr}pushScope(){this.scopes.push(new Set)}popScope(t=1){for(let s=0;s<t;s++)this.scopes.pop()}pushTypeVariable(t){let s=t.getText();ye([this,"access",o=>o.scopes,"access",o=>o[this.scopes.length-1],"optionalAccess",o=>o.add,"call",o=>o(s)])}pushReference(t){let s;if(t.type==="Identifier"?s=t.name:t.type==="MemberExpression"&&t.object.type==="Identifier"&&(s=t.object.name),s){for(let a of this.scopes)if(a.has(s))return}if(s==="this")return;let{ident:o,expr:p}=S(t);this.declaration.params.push(p),this.returnExpr.elements.push(o)}pushIdentifierReference(t){this.pushReference(l(t))}convertEntityName(t){return r.isIdentifier(t)?l(t):G({type:"MemberExpression",computed:!1,optional:!1,object:this.convertEntityName(t.left),property:l(t.right)},t)}convertPropertyAccess(t){if(!r.isIdentifier(t.expression)&&!r.isPropertyAccessExpression(t.expression))throw new n(t.expression);if(r.isPrivateIdentifier(t.name))throw new n(t.name);let s=r.isIdentifier(t.expression)?l(t.expression):this.convertPropertyAccess(t.expression);return G({type:"MemberExpression",computed:!1,optional:!1,object:s,property:l(t.name)},t)}convertComputedPropertyName(t){if(!t.name||!r.isComputedPropertyName(t.name))return;let{expression:s}=t.name;if(!(r.isLiteralExpression(s)||r.isPrefixUnaryExpression(s))){if(r.isIdentifier(s))return this.pushReference(l(s));if(r.isPropertyAccessExpression(s))return this.pushReference(this.convertPropertyAccess(s));throw new n(s)}}convertParametersAndType(t){this.convertComputedPropertyName(t);let s=this.convertTypeParameters(t.typeParameters);for(let o of t.parameters)this.convertTypeNode(o.type);this.convertTypeNode(t.type),this.popScope(s)}convertHeritageClauses(t){for(let s of t.heritageClauses||[])for(let o of s.types)this.pushReference(V(o.expression)),this.convertTypeArguments(o)}convertTypeArguments(t){if(t.typeArguments)for(let s of t.typeArguments)this.convertTypeNode(s)}convertMembers(t){for(let s of t){if(r.isPropertyDeclaration(s)||r.isPropertySignature(s)||r.isIndexSignatureDeclaration(s)){r.isPropertyDeclaration(s)&&s.initializer&&r.isPropertyAccessExpression(s.initializer)&&this.pushReference(this.convertPropertyAccess(s.initializer)),this.convertComputedPropertyName(s),this.convertTypeNode(s.type);continue}if(r.isMethodDeclaration(s)||r.isMethodSignature(s)||r.isConstructorDeclaration(s)||r.isConstructSignatureDeclaration(s)||r.isCallSignatureDeclaration(s)||r.isGetAccessorDeclaration(s)||r.isSetAccessorDeclaration(s))this.convertParametersAndType(s);else throw new n(s)}}convertTypeParameters(t){if(!t)return 0;for(let s of t)this.convertTypeNode(s.constraint),this.convertTypeNode(s.default),this.pushScope(),this.pushTypeVariable(s.name);return t.length}convertTypeNode(t){if(t&&!Q.has(t.kind)){if(r.isTypeReferenceNode(t)){this.pushReference(this.convertEntityName(t.typeName)),this.convertTypeArguments(t);return}if(r.isTypeLiteralNode(t))return this.convertMembers(t.members);if(r.isArrayTypeNode(t))return this.convertTypeNode(t.elementType);if(r.isTupleTypeNode(t)){for(let s of t.elements)this.convertTypeNode(s);return}if(r.isNamedTupleMember(t)||r.isParenthesizedTypeNode(t)||r.isTypeOperatorNode(t)||r.isTypePredicateNode(t))return this.convertTypeNode(t.type);if(r.isUnionTypeNode(t)||r.isIntersectionTypeNode(t)){for(let s of t.types)this.convertTypeNode(s);return}if(r.isMappedTypeNode(t)){let{typeParameter:s,type:o,nameType:p}=t;this.convertTypeNode(s.constraint),this.pushScope(),this.pushTypeVariable(s.name),this.convertTypeNode(o),p&&this.convertTypeNode(p),this.popScope();return}if(r.isConditionalTypeNode(t)){this.convertTypeNode(t.checkType),this.pushScope(),this.convertTypeNode(t.extendsType),this.convertTypeNode(t.trueType),this.convertTypeNode(t.falseType),this.popScope();return}if(r.isIndexedAccessTypeNode(t)){this.convertTypeNode(t.objectType),this.convertTypeNode(t.indexType);return}if(r.isFunctionOrConstructorTypeNode(t)){this.convertParametersAndType(t);return}if(r.isTypeQueryNode(t)){this.pushReference(this.convertEntityName(t.exprName));return}if(r.isRestTypeNode(t)){this.convertTypeNode(t.type);return}if(r.isOptionalTypeNode(t)){this.convertTypeNode(t.type);return}if(r.isTemplateLiteralTypeNode(t)){for(let s of t.templateSpans)this.convertTypeNode(s.type);return}if(r.isInferTypeNode(t)){let{typeParameter:s}=t;this.convertTypeNode(s.constraint),this.pushTypeVariable(s.name);return}else throw new n(t)}}convertNamespace(t,s=!1){if(this.pushScope(),s&&t.body&&r.isModuleDeclaration(t.body)){this.convertNamespace(t.body,!0);return}if(!t.body||!r.isModuleBlock(t.body))throw new n(t,'namespace must have a "ModuleBlock" body.');let{statements:o}=t.body;for(let p of o){if(r.isEnumDeclaration(p)||r.isFunctionDeclaration(p)||r.isClassDeclaration(p)||r.isInterfaceDeclaration(p)||r.isTypeAliasDeclaration(p)||r.isModuleDeclaration(p)){if(p.name&&r.isIdentifier(p.name))this.pushTypeVariable(p.name);else throw new n(p,"non-Identifier name not supported");continue}if(r.isVariableStatement(p)){for(let a of p.declarationList.declarations)if(r.isIdentifier(a.name))this.pushTypeVariable(a.name);else throw new n(a,"non-Identifier name not supported");continue}if(!r.isExportDeclaration(p))throw new n(p,"namespace child (hoisting) not supported yet")}for(let p of o){if(r.isVariableStatement(p)){for(let a of p.declarationList.declarations)a.type&&this.convertTypeNode(a.type);continue}if(r.isFunctionDeclaration(p)){this.convertParametersAndType(p);continue}if(r.isInterfaceDeclaration(p)||r.isClassDeclaration(p)){let a=this.convertTypeParameters(p.typeParameters);this.convertHeritageClauses(p),this.convertMembers(p.members),this.popScope(a);continue}if(r.isTypeAliasDeclaration(p)){let a=this.convertTypeParameters(p.typeParameters);this.convertTypeNode(p.type),this.popScope(a);continue}if(r.isModuleDeclaration(p)){this.convertNamespace(p,s);continue}if(!r.isEnumDeclaration(p))if(r.isExportDeclaration(p)){if(p.exportClause){if(r.isNamespaceExport(p.exportClause))throw new n(p.exportClause);for(let a of p.exportClause.elements){let A=a.propertyName||a.name;this.pushIdentifierReference(A)}}}else throw new n(p,"namespace child (walking) not supported yet")}this.popScope()}};function C({sourceFile:t}){return new de(t).transform()}var de=class{constructor(t){this.sourceFile=t,this.declarations=new Map,this.ast=L(t);for(let s of t.statements)this.convertStatement(s)}transform(){return{ast:this.ast}}pushStatement(t){this.ast.body.push(t)}createDeclaration(t,s){let o={start:t.getFullStart(),end:t.getEnd()};if(!s){let h=new g({range:o});return this.pushStatement(h.iife),h}let p=s.getText(),a=new g({id:s,range:o}),A=this.declarations.get(p);if(A){A.pushIdentifierReference(s),A.declaration.end=o.end;let h=this.ast.body.findIndex(I=>I==A.declaration);for(let I=h+1;I<this.ast.body.length;I++){let U=this.ast.body[I];U.start=U.end=o.end}}else this.pushStatement(a.declaration),this.declarations.set(p,a);return A||a}convertStatement(t){if(r.isEnumDeclaration(t))return this.convertEnumDeclaration(t);if(r.isFunctionDeclaration(t))return this.convertFunctionDeclaration(t);if(r.isInterfaceDeclaration(t)||r.isClassDeclaration(t))return this.convertClassOrInterfaceDeclaration(t);if(r.isTypeAliasDeclaration(t))return this.convertTypeAliasDeclaration(t);if(r.isVariableStatement(t))return this.convertVariableStatement(t);if(r.isExportDeclaration(t)||r.isExportAssignment(t))return this.convertExportDeclaration(t);if(r.isModuleDeclaration(t))return this.convertNamespaceDeclaration(t);if(t.kind==r.SyntaxKind.NamespaceExportDeclaration)return this.removeStatement(t);if(r.isImportDeclaration(t)||r.isImportEqualsDeclaration(t))return this.convertImportDeclaration(t);throw new n(t)}removeStatement(t){this.pushStatement(G({type:"ExpressionStatement",expression:{type:"Literal",value:"pls remove me"}},t))}convertNamespaceDeclaration(t){if(t.flags&r.NodeFlags.GlobalAugmentation||!r.isIdentifier(t.name)){this.createDeclaration(t).convertNamespace(t,!0);return}let o=this.createDeclaration(t,t.name);o.pushIdentifierReference(t.name),o.convertNamespace(t)}convertEnumDeclaration(t){this.createDeclaration(t,t.name).pushIdentifierReference(t.name)}convertFunctionDeclaration(t){if(!t.name)throw new n(t,"FunctionDeclaration should have a name");let s=this.createDeclaration(t,t.name);s.pushIdentifierReference(t.name),s.convertParametersAndType(t)}convertClassOrInterfaceDeclaration(t){if(!t.name)throw new n(t,"ClassDeclaration / InterfaceDeclaration should have a name");let s=this.createDeclaration(t,t.name),o=s.convertTypeParameters(t.typeParameters);s.convertHeritageClauses(t),s.convertMembers(t.members),s.popScope(o)}convertTypeAliasDeclaration(t){let s=this.createDeclaration(t,t.name),o=s.convertTypeParameters(t.typeParameters);s.convertTypeNode(t.type),s.popScope(o)}convertVariableStatement(t){let{declarations:s}=t.declarationList;if(s.length!==1)throw new n(t,"VariableStatement with more than one declaration not yet supported");for(let o of s){if(!r.isIdentifier(o.name))throw new n(t,"VariableDeclaration must have a name");this.createDeclaration(t,o.name).convertTypeNode(o.type)}}convertExportDeclaration(t){if(r.isExportAssignment(t)){this.pushStatement(G({type:"ExportDefaultDeclaration",declaration:V(t.expression)},t));return}let s=t.moduleSpecifier?V(t.moduleSpecifier):void 0;if(!t.exportClause)this.pushStatement(G({type:"ExportAllDeclaration",source:s,exported:null},t));else if(r.isNamespaceExport(t.exportClause))this.pushStatement(G({type:"ExportAllDeclaration",source:s,exported:l(t.exportClause.name)},t));else{let o=[];for(let p of t.exportClause.elements)o.push(this.convertExportSpecifier(p));this.pushStatement(G({type:"ExportNamedDeclaration",declaration:null,specifiers:o,source:s},t))}}convertImportDeclaration(t){if(r.isImportEqualsDeclaration(t)){if(!r.isExternalModuleReference(t.moduleReference))throw new n(t,"ImportEquals should have a literal source.");this.pushStatement(G({type:"ImportDeclaration",specifiers:[{type:"ImportDefaultSpecifier",local:l(t.name)}],source:V(t.moduleReference.expression)},t));return}let s=V(t.moduleSpecifier),o=t.importClause&&t.importClause.namedBindings?this.convertNamedImportBindings(t.importClause.namedBindings):[];t.importClause&&t.importClause.name&&o.push({type:"ImportDefaultSpecifier",local:l(t.importClause.name)}),this.pushStatement(G({type:"ImportDeclaration",specifiers:o,source:s},t))}convertNamedImportBindings(t){return r.isNamedImports(t)?t.elements.map(s=>{let o=l(s.name),p=s.propertyName?l(s.propertyName):o;return{type:"ImportSpecifier",local:o,imported:p}}):[{type:"ImportNamespaceSpecifier",local:l(t.name)}]}convertExportSpecifier(t){let s=l(t.name);return{type:"ExportSpecifier",exported:s,local:t.propertyName?l(t.propertyName):s}}},N=class{constructor(t){this.source=t,this.DEBUG=!!process.env.DTS_EXPORTS_FIXER_DEBUG}fix(){let t=this.findExports();return t.sort((s,o)=>s.location.start-o.location.start),this.getCodeParts(t).join("")}findExports(){let{rawExports:t,values:s,types:o}=this.getExportsAndLocals();return t.map(p=>{let a=p.elements.map(A=>{let h=A.name.text,I=De(ye([A,"access",k=>k.propertyName,"optionalAccess",k=>k.text]),()=>A.name.text),U=o.some(k=>k.getText()===I)&&!s.some(k=>k.getText()===I)?"type":"value";return this.DEBUG&&console.log(`export ${I} as ${h} is a ${U}`),{exportedName:h,localName:I,kind:U}});return{location:{start:p.getStart(),end:p.getEnd()},exports:a}})}getExportsAndLocals(t=this.source.statements){let s=[],o=[],p=[],a=A=>{let{rawExports:h,values:I,types:U}=this.getExportsAndLocals(A);s.push(...h),o.push(...I),p.push(...U)};for(let A of t)if(this.DEBUG&&console.log(A.getText(),A.kind),!r.isImportDeclaration(A)){if(r.isInterfaceDeclaration(A)||r.isTypeAliasDeclaration(A)){this.DEBUG&&console.log(`${A.name.getFullText()} is a type`),p.push(A.name);continue}if(r.isEnumDeclaration(A)||r.isFunctionDeclaration(A)||r.isClassDeclaration(A)||r.isVariableStatement(A)){if(r.isVariableStatement(A))for(let h of A.declarationList.declarations)r.isIdentifier(h.name)&&(this.DEBUG&&console.log(`${h.name.getFullText()} is a value (from var statement)`),o.push(h.name));else A.name&&(this.DEBUG&&console.log(`${A.name.getFullText()} is a value (from declaration)`),o.push(A.name));continue}if(r.isModuleBlock(A)){let h=A.statements;a(h);continue}if(r.isModuleDeclaration(A)){A.name&&r.isIdentifier(A.name)&&(this.DEBUG&&console.log(`${A.name.getFullText()} is a value (from module declaration)`),o.push(A.name)),a(A.getChildren());continue}if(r.isExportDeclaration(A)){if(A.moduleSpecifier||A.isTypeOnly)continue;let h=A.exportClause;if(!h||!r.isNamedExports(h))continue;s.push(h);continue}this.DEBUG&&console.log("unhandled statement",A.getFullText(),A.kind)}return{rawExports:s,values:o,types:p}}createNamedExport(t,s=!1){return`${!s&&t.kind==="type"?"type ":""}${t.localName}${t.localName===t.exportedName?"":` as ${t.exportedName}`}`}getCodeParts(t){let s=0,o=this.source.getFullText(),p=[];for(let a of t){let A=o.slice(s,a.location.start);A.length>0&&p.push(A),p.push(this.getExportStatement(a)),s=a.location.end}return s<o.length&&p.push(o.slice(s)),p}getExportStatement(t){let s=t.exports.every(o=>o.kind==="type")&&t.exports.length>0;return`${s?"type ":""}{ ${t.exports.map(o=>this.createNamedExport(o,s)).join(", ")} }`}};function H(t,s){return r.createSourceFile(t,s,r.ScriptTarget.Latest,!0)}var le=()=>{let t=new Map,s=new Map;return{name:"dts-transform",options({onLog:o,...p}){return{...p,onLog(a,A,h){a==="warn"&&A.code=="CIRCULAR_DEPENDENCY"||(o?o(a,A,h):h(a,A))},treeshake:{moduleSideEffects:"no-external",propertyReadSideEffects:!0,unknownGlobalSideEffects:!1}}},outputOptions(o){return{...o,chunkFileNames:o.chunkFileNames||"[name]-[hash].d.ts",entryFileNames:o.entryFileNames||"[name].d.ts",format:"es",exports:"named",compact:!1,freeze:!0,interop:"esModule",generatedCode:Object.assign({symbols:!1},o.generatedCode),strict:!1}},transform(o,p){let a=H(p,o),A=J({sourceFile:a});t.set(a.fileName,A.typeReferences),s.set(a.fileName,A.fileReferences),o=A.code.toString(),a=H(p,o);let h=C({sourceFile:a});return process.env.DTS_DUMP_AST&&(console.log(p),console.log(o),console.log(JSON.stringify(h.ast.body,void 0,2))),{code:o,ast:h.ast,map:A.code.generateMap()}},renderChunk(o,p,a){let A=H(p.fileName,o),h=new i(A),I=new Set,U=new Set;for(let pe of Object.keys(p.modules)){for(let fe of t.get(pe.split("\\").join("/"))||[])I.add(fe);for(let fe of s.get(pe.split("\\").join("/"))||[])if(fe.startsWith(".")){let ve=E.join(E.dirname(pe),fe),q=a.file&&E.dirname(a.file)||p.facadeModuleId&&E.dirname(p.facadeModuleId)||".",oe=E.relative(q,ve).split("\\").join("/");oe[0]!=="."&&(oe="./"+oe),U.add(oe)}else U.add(fe)}let k=ee(Array.from(U,pe=>`/// <reference path="${pe}" />`));return k+=ee(Array.from(I,pe=>`/// <reference types="${pe}" />`)),k+=h.fix(),k||(k+=`
39
+ export { }`),{code:new N(H(p.fileName,k)).fix(),map:{mappings:""}}}}};function ee(t){return t.length?t.join(`
40
+ `)+`
41
+ `:""}var te=/\.([cm]ts|[tj]sx?)$/;function ue({programs:t,resolvedOptions:{compilerOptions:s,tsconfig:o}},p,a){if(!t.length&&f.test(p))return{code:a};let A=t.find(h=>!!h.getSourceFile(p));if(A){let h=A.getSourceFile(p);return{code:ye([h,"optionalAccess",I=>I.getFullText,"call",I=>I()]),source:h,program:A}}else if(r.sys.fileExists(p)){let h=ne(p,s,o);t.push(h);let I=h.getSourceFile(p);return{code:ye([I,"optionalAccess",U=>U.getFullText,"call",U=>U()]),source:I,program:h}}else return null}var ce=(t={})=>{let s=le(),o={programs:[],resolvedOptions:m(t)};return{name:"dts",outputOptions:s.outputOptions,renderChunk:s.renderChunk,options(p){let{input:a=[]}=p;if(!Array.isArray(a))a=typeof a=="string"?[a]:Object.values(a);else if(a.length>1){p.input={};for(let A of a){let h=A.replace(/((\.d)?\.(c|m)?(t|j)sx?)$/,"");E.isAbsolute(A)?h=E.basename(h):h=E.normalize(h),p.input[h]=A}}return o.programs=Z(Object.values(a),o.resolvedOptions.compilerOptions,o.resolvedOptions.tsconfig),s.options.call(this,p)},transform(p,a){if(!te.test(a))return null;let A=k=>{if(k.program){let re=E.dirname(a);k.program.getSourceFiles().map(fe=>fe.fileName).filter(fe=>fe.startsWith(re)).forEach(this.addWatchFile)}},h=()=>{let k=ue(o,a,p);return k?(A(k),s.transform.call(this,k.code,a)):null},I=()=>{let k=a.replace(te,y),re=ue(o,k,p);return re?(A(re),s.transform.call(this,re.code,k)):null},U=()=>{let k=ue(o,a,p);if(!k||!k.source||!k.program)return null;A(k);let re=a.replace(te,y),pe,{emitSkipped:fe,diagnostics:ve}=k.program.emit(k.source,(q,oe)=>{pe=s.transform.call(this,oe,re)},void 0,!0);if(fe){let q=ve.filter(oe=>oe.category===r.DiagnosticCategory.Error);q.length&&(console.error(r.formatDiagnostics(q,B)),this.error("Failed to compile. Check the logs above."))}return pe};return f.test(a)?h():De(I(),()=>U())},resolveId(p,a){if(!a)return;a=a.split("\\").join("/");let A=o.resolvedOptions.compilerOptions;if(o.resolvedOptions.tsconfig){let I=p.startsWith(".")?E.resolve(E.dirname(a),p):p;A=W(I,o.resolvedOptions.compilerOptions,o.resolvedOptions.tsconfig).compilerOptions}let{resolvedModule:h}=r.resolveModuleName(p,a,A,r.sys);if(h)return!o.resolvedOptions.respectExternal&&h.isExternalLibraryImport?{id:p,external:!0}:{id:E.resolve(h.resolvedFileName)}}}};u.default=ce,u.dts=ce}}),$e=_chunkBMINWOCTjs.a.call(void 0, "worker_threads"),Be=_chunkBMINWOCTjs.a.call(void 0, "path"),ke=Ne(Be),Dt=_chunkBMINWOCTjs.a.call(void 0, "typescript"),qe=Ne(Dt),Rt=ae.__toESM.call(void 0,lt(),1);function Bt(u){return Array.isArray(u)}function Ge(u){return Bt(u)?u:u==null?[]:[u]}var Tt=new RegExp(`\\${Be.win32.sep}`,"g"),Oe=function(v){return v.replace(Tt,Be.posix.sep)};function $t(u,v){if(v===!1||Be.isAbsolute.call(void 0,u)||u.startsWith("**"))return Oe(u);let r=Oe(Be.resolve.call(void 0,v||"")).replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return Be.posix.join(r,Oe(u))}var Nt=function(v,r,w){let F=w&&w.resolve,T=m=>m instanceof RegExp?m:{test:f=>{let y=$t(m,F);return(0,Rt.default)(y,{dot:!0})(f)}},O=Ge(v).map(T),E=Ge(r).map(T);return!O.length&&!E.length?m=>typeof m=="string"&&!m.includes("\0"):function(f){if(typeof f!="string"||f.includes("\0"))return!1;let y=Oe(f);for(let B=0;B<E.length;++B){let $=E[B];if($ instanceof RegExp&&($.lastIndex=0),$.test(y))return!1}for(let B=0;B<O.length;++B){let $=O[B];if($ instanceof RegExp&&($.lastIndex=0),$.test(y))return!0}return!O.length}},Ot="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public",kt="arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl",tt=new Set(`${Ot} ${kt}`.split(" "));tt.add("");var rt=function(v){let r=v.replace(/-(\w)/g,(w,F)=>F.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g,"_");return(/\d/.test(r[0])||tt.has(r))&&(r=`_${r}`),r||"_"};function Ie(u){return(JSON.stringify(u)||"undefined").replace(/[\u2028\u2029]/g,v=>`\\u${`000${v.charCodeAt(0).toString(16)}`.slice(-4)}`)}function It(u,v,r){let w="[",F=v?`
42
+ ${r}${v}`:"";for(let T=0;T<u.length;T++){let O=u[T];w+=`${T>0?",":""}${F}${Re(O,v,r+v)}`}return`${w}${v?`
43
+ ${r}`:""}]`}function Lt(u,v,r){let w="{",F=v?`
44
+ ${r}${v}`:"",T=Object.entries(u);for(let O=0;O<T.length;O++){let[E,m]=T[O],f=rt(E)===E?E:Ie(E);w+=`${O>0?",":""}${F}${f}:${v?" ":""}${Re(m,v,r+v)}`}return`${w}${v?`
45
+ ${r}`:""}}`}function Re(u,v,r){if(typeof u=="object"&&u!==null)return Array.isArray(u)?It(u,v,r):u instanceof Date?`new Date(${u.getTime()})`:u instanceof RegExp?u.toString():Lt(u,v,r);if(typeof u=="number"){if(u===1/0)return"Infinity";if(u===-1/0)return"-Infinity";if(u===0)return 1/u===1/0?"0":"-0";if(u!==u)return"NaN"}if(typeof u=="symbol"){let w=Symbol.keyFor(u);if(w!==void 0)return`Symbol.for(${Ie(w)})`}return typeof u=="bigint"?`${u}n`:Ie(u)}var Pt="isWellFormed"in String.prototype;function Mt(u){return Pt?u.isWellFormed():!new RegExp("\\p{Surrogate}","u").test(u)}var jt=function(v,r={}){var w,F;let T=r.compact?"":"indent"in r?r.indent:" ",O=r.compact?"":" ",E=r.compact?"":`
46
+ `,m=r.preferConst?"const":"var";if(r.namedExports===!1||typeof v!="object"||Array.isArray(v)||v instanceof Date||v instanceof RegExp||v===null){let W=Re(v,r.compact?null:T,"");return`export default${O||(/^[{[\-\/]/.test(W)?"":" ")}${W};`}let f=0;for(let W of Object.keys(v)){let ne=(F=(w=/^(_+)/.exec(W))===null||w===void 0?void 0:w[0].length)!==null&&F!==void 0?F:0;ne>f&&(f=ne)}let y=`${"_".repeat(f+1)}arbitrary`,B="",$=[],M=[];for(let[W,ne]of Object.entries(v))if(W===rt(W))r.objectShorthand?$.push(W):$.push(`${W}:${O}${W}`),B+=`export ${m} ${W}${O}=${O}${Re(ne,r.compact?null:T,"")};${E}`;else if($.push(`${Ie(W)}:${O}${Re(ne,r.compact?null:T,"")}`),r.includeArbitraryNames&&Mt(W)){let Z=`${y}${M.length}`;B+=`${m} ${Z}${O}=${O}${Re(ne,r.compact?null:T,"")};${E}`,M.push(`${Z} as ${JSON.stringify(W)}`)}let b=M.length>0?`export${O}{${E}${T}${M.join(`,${E}${T}`)}${E}};${E}`:"",K=`export default${O}{${E}${T}${$.join(`,${E}${T}`)}${E}};${E}`;return`${B}${b}${K}`};function Ht(u){u===void 0&&(u={});var v=Nt(u.include,u.exclude),r="indent"in u?u.indent:" ";return{name:"json",transform:function(F,T){if(T.slice(-5)!==".json"||!v(T))return null;try{var O=JSON.parse(F);return{code:jt(O,{preferConst:u.preferConst,compact:u.compact,namedExports:u.namedExports,includeArbitraryNames:u.includeArbitraryNames,indent:r}),map:{mappings:""}}}catch(m){var E="Could not parse JSON file";return this.error({message:E,id:T,cause:m}),null}}}}var qt=_chunkBMINWOCTjs.a.call(void 0, "resolve-from"),Ut=Ne(qt),Kt=ae.__toESM.call(void 0,Et()),Gt=_chunkBMINWOCTjs.a.call(void 0, "fs"),Wt=Ne(Gt),zt=_chunkBMINWOCTjs.a.call(void 0, "module"),Jt=_chunkBMINWOCTjs.a.call(void 0, "debug"),Xt=Ne(Jt),Fe=Xt.default.call(void 0,"tsup:ts-resolve"),je=(u,v)=>new Promise((r,w)=>{(0,Kt.default)(u,v,(F,T)=>{if(ye([F,"optionalAccess",O=>O.code])==="MODULE_NOT_FOUND")return r(null);if(F)return w(F);r(T||null)})}),Vt=({resolveOnly:u,ignore:v}={})=>{let r=[".d.ts",".ts"];return{name:"ts-resolve",async resolveId(w,F){if(Fe("resolveId source: %s",w),Fe("resolveId importer: %s ",F),!F||/\0/.test(w))return null;if(zt.builtinModules.includes(w))return!1;if(v&&v(w,F))return Fe("ignored %s",w),null;if(u&&!u.some(m=>typeof m=="string"?m===w:m.test(w)))return Fe("skipped by matching resolveOnly: %s",w),null;if(ke.default.isAbsolute(w))return Fe("skipped absolute path: %s",w),null;let T=F?await Wt.default.promises.realpath(ke.default.dirname(F)):process.cwd();if(w[0]===".")return je(w,{basedir:T,extensions:r});let O=null;return F||(O=await je(`./${w}`,{basedir:T,extensions:r})),O||(O=await je(w,{basedir:T,extensions:r,packageFilter(E){return E.main=E.types||E.typings,E},paths:["node_modules","node_modules/@types"]})),O?(Fe("resolved %s to %s",w,O),O):(Fe("mark %s as external",w),!1)}}},Ce=Te.createLogger.call(void 0),Qt=u=>{if(!u)return{};let{options:v}=qe.default.parseJsonConfigFileContent({compilerOptions:u},qe.default.sys,"./");return v},Zt=wt(),Yt=async u=>{Te.setSilent.call(void 0,u.silent);let v=Qt(ye([u,"access",f=>f.dts,"optionalAccess",f=>f.compilerOptions])),r=u.dts||{};r.entry=r.entry||u.entry,Array.isArray(r.entry)&&r.entry.length>1&&(r.entry=ae.toObjectEntry.call(void 0,r.entry));let w;if(r.resolve&&(w={},Array.isArray(r.resolve)&&(w.resolveOnly=r.resolve),v.paths)){let f=Object.keys(v.paths).map(y=>new RegExp(`^${y.replace("*",".+")}$`));w.ignore=y=>f.some(B=>B.test(y))}let F=await Te.loadPkg.call(void 0,process.cwd()),T=await Te.getProductionDeps.call(void 0,process.cwd()),O={name:"tsup:clean",async buildStart(){u.clean&&await ae.removeFiles.call(void 0,["**/*.d.{ts,mts,cts}"],u.outDir)}},E={name:"tsup:ignore-files",load(f){if(!/\.(js|cjs|mjs|jsx|ts|tsx|mts|json)$/.test(f))return""}},m={name:"tsup:fix-cjs-export",renderChunk(f,y){if(!(y.type!=="chunk"||!/\.(ts|cts)$/.test(y.fileName)||!y.isEntry||ye([y,"access",B=>B.exports,"optionalAccess",B=>B.length])!==1||y.exports[0]!=="default"))return f.replace(/(?<=(?<=[;}]|^)\s*export\s*){\s*([\w$]+)\s*as\s+default\s*}/,"= $1")}};return{inputConfig:{input:r.entry,onwarn(f,y){if(!(f.code==="UNRESOLVED_IMPORT"||f.code==="CIRCULAR_DEPENDENCY"||f.code==="EMPTY_BUNDLE"))return y(f)},plugins:[O,w&&Vt(w),Ht(),E,Zt.default({tsconfig:u.tsconfig,compilerOptions:{...v,baseUrl:v.baseUrl||".",declaration:!0,noEmit:!1,emitDeclarationOnly:!0,noEmitOnError:!0,checkJs:!1,declarationMap:!1,skipLibCheck:!0,preserveSymlinks:!1,target:qe.default.ScriptTarget.ESNext}})].filter(Boolean),external:[...T.map(f=>new RegExp(`^${f}($|\\/|\\\\)`)),...u.external||[]]},outputConfig:u.format.map(f=>{let y=ye([u,"access",B=>B.outExtension,"optionalCall",B=>B({format:f,options:u,pkgType:F.type}),"access",B=>B.dts])||ae.defaultOutExtension.call(void 0,{format:f,pkgType:F.type}).dts;return{dir:u.outDir||"dist",format:"esm",exports:"named",banner:r.banner,footer:r.footer,entryFileNames:`[name]${y}`,chunkFileNames:`[name]-[hash]${y}`,plugins:[f==="cjs"&&u.cjsInterop&&m].filter(Boolean)}})}};async function er(u){let{rollup:v}=await Promise.resolve().then(()=>We(_chunkBMINWOCTjs.a.call(void 0, "rollup")));try{let r=Date.now(),w=()=>`${Math.floor(Date.now()-r)}ms`;Ce.info("dts","Build start");let F=await v(u.inputConfig),O=(await Promise.all(u.outputConfig.map(F.write))).flatMap(E=>E.output);Ce.success("dts",`\u26A1\uFE0F Build success in ${w()}`),Te.reportSize.call(void 0,Ce,"dts",O.reduce((E,m)=>{let f=ke.default.relative(process.cwd(),ke.default.join(u.outputConfig[0].dir||".",m.fileName));return{...E,[f]:m.type==="chunk"?m.code.length:m.source.length}},{}))}catch(r){ze.handleError.call(void 0,r),Ce.error("dts","Build error")}}async function tr(u){let{watch:v}=await Promise.resolve().then(()=>We(_chunkBMINWOCTjs.a.call(void 0, "rollup")));v({...u.inputConfig,plugins:u.inputConfig.plugins,output:u.outputConfig}).on("event",r=>{r.code==="START"?Ce.info("dts","Build start"):r.code==="BUNDLE_END"?(Ce.success("dts",`\u26A1\uFE0F Build success in ${r.duration}ms`),ye([$e.parentPort,"optionalAccess",w=>w.postMessage,"call",w=>w("success")])):r.code==="ERROR"&&(Ce.error("dts","Build failed"),ze.handleError.call(void 0,r.error))})}var rr=async u=>{let v=await Yt(u);if(u.watch)tr(v);else try{await er(v),ye([$e.parentPort,"optionalAccess",r=>r.postMessage,"call",r=>r("success")])}catch (e9){ye([$e.parentPort,"optionalAccess",w=>w.postMessage,"call",w=>w("error")])}};ye([$e.parentPort,"optionalAccess",u=>u.on,"call",u=>u("message",v=>{if(Ce.setName(v.configName),!Ut.default.silent(process.cwd(),"typescript")){Ce.error("dts",'You need to install "typescript" in your project'),ye([$e.parentPort,"optionalAccess",w=>w.postMessage,"call",w=>w("error")]);return}rr(v.options)})]);
@@ -1,5 +1,5 @@
1
- import { B as BuildUtils } from './utils-BMzAmbjm.mjs';
2
- export { b as BuildOptionsOverrideParam, a as BuildOptionsParam, c as BuildOptionsParams, C as ConfigResult } from './utils-BMzAmbjm.mjs';
1
+ import { B as BuildUtils } from './utils-BMzAmbjm.js';
2
+ export { b as BuildOptionsOverrideParam, a as BuildOptionsParam, c as BuildOptionsParams, C as ConfigResult } from './utils-BMzAmbjm.js';
3
3
  import 'tsup';
4
4
 
5
5
 
package/dist/utils.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkV43SCHHPjs = require('./chunk-V43SCHHP.js');var e=_chunkV43SCHHPjs.c;exports.BuildUtils = _chunkV43SCHHPjs.b; exports.default = e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tochii/build",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "An extremely fast JavaScript/Typescript and CSS bundler with minimal configuration.",
5
5
  "repository": "https://github.com/tochiResources/project/tree/main/packages/build.git",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  "scripts": {
22
22
  "dev": "tsx cli.ts",
23
23
  "build": "bun run build:root && bun run build:tochibuild",
24
- "copybundler": "copyfiles -u 1 ./tochibuild/tsup@8.4.0/* ./dist",
24
+ "copybundler": "copyfiles -u 1 ./tochibuild/tsup@8.4.0-minified/* ./dist",
25
25
  "build:root": "tsx cli.ts && bun run copybundler",
26
26
  "build:tochibuild": "cd ./tochibuild && bun run build",
27
27
  "build:release": "bun run build:release:root && bun run build:release:tochibuild",
@@ -45,6 +45,20 @@
45
45
  "tsx": "^4.19.4",
46
46
  "typescript": "^5.8.3"
47
47
  },
48
+ "main": "dist/index.mjs",
49
+ "types": "dist/index.d.mts",
50
+ "exports": {
51
+ ".": {
52
+ "types": "./dist/index.d.mts",
53
+ "require": "./dist/index.mjs",
54
+ "import": "./dist/index.mjs"
55
+ },
56
+ "./utils": {
57
+ "types": "./dist/utils.d.mts",
58
+ "import": "./dist/utils.mjs",
59
+ "require": "./dist/utils.mjs"
60
+ }
61
+ },
48
62
  "engines": {
49
63
  "node": ">=18.17.0"
50
64
  },
@@ -1,11 +0,0 @@
1
- import B from"chalk";import y from"node:fs";import E from"node:path";import K from"deepmerge";import d from"chalk";var x="tochibuild",u=d.cyan(x),o=class{};o.custom=(e,...t)=>{console[e](u,...t)},o.log=(...e)=>{console.log(u,...e)},o.debug=(...e)=>{console.debug(u,...e)},o.info=(...e)=>{console.info(u,...e)},o.warn=(...e)=>{console.warn(u,...[...e].map(t=>d.yellow(t)))},o.error=(e,...t)=>{console.error(d.red(x),d.bgRed(...t),e?.stack?`
2
- ${d.gray(e.stack)}`:"")},o.success=(...e)=>{console.log(d.green(x),...e)};var f=o;var n=class n{};n.defaultConfigOptions={tsconfig:"tsconfig.json",dts:!0,format:["esm"],minify:!0},n.ignoredEntries=["!build/**","!dist/**","!node_modules/**","!**/build/**","!**/dist/**","!**/node_modules/**","!**/*.d.ts","!**/{tochibuild,tsup}.*"],n.entriesCommon=["**/*.{js,ts}"],n.entriesIndex=["**/index.{js,ts}"],n.defaultEntriesIndex=[...n.ignoredEntries,...n.entriesIndex],n.defaultEntriesCommon=[...n.ignoredEntries,...n.entriesCommon],n.defaultOptions=e=>h(e,t=>{let a=m(t.entry,"ignoredEntries");return{...n.defaultConfigOptions,...t,entry:a}}),n.defaultOptionsWithIndexEntries=e=>h(e,t=>{let a=m(t.entry,"defaultEntriesIndex");return{...n.defaultConfigOptions,...t,entry:a}}),n.defaultOptionsWithCommonEntries=e=>h(e,t=>{let a=m(t.entry,"defaultEntriesCommon");return{...n.defaultConfigOptions,...t,entry:a}}),n.generateConfig=I,n.ensureEntries=m;var l=n,G=l;function h(i,e){let t=s=>Array.isArray(s)?s.map(r=>K(e(r),s)):K(e(s),s);if(typeof i=="function"){let s=i;async function r(b){let p=await s(b);return t(p)}return r}return t(i)}function m(i,e){return Array.isArray(i)?Array.from(new Set([...l[e],...i])):i}function w(i){return E.isAbsolute(i||".")?i:E.resolve(process.cwd(),i)}function I(i,e,t,a){let s="";try{let r=e?.ext||".ts",p=`${e?.filename||"tochibuild.config"}${r}`;(e?.outDir?.length?e.outDir:["."]).forEach(O=>{s=w(O),y.existsSync(O)||y.mkdirSync(O,{recursive:!0});let g=E.join(s,p),k=y.existsSync(g);!e?.overwrite&&k&&(f.warn(`the config '${p}' file already exists for this project.`),a&&process.exit(1));let q=" ",c="",C={clean:!1,splitting:!0},P=R=>{c+=R==="esm"?`import build from '${i}';
3
-
4
- `:`const build = require('${i}');
5
-
6
- `,c+=R==="esm"?`export default build.defineConfigWithIndexEntries({
7
- `:`module.exports = build.defineConfigWithIndexEntries({
8
- `,Object.entries(C).forEach(([$,j])=>{c+=`${q}${$}: ${JSON.stringify(j)},
9
- `}),c+=`});
10
- `};switch(r){case".ts":case".js":P("esm");break;case".cjs":P("cjs");break;case".json":c+=`${JSON.stringify({...C,entry:l.defaultEntriesIndex},null,2)}
11
- `;break;default:f.error(void 0,`unsupported extension: ${r}`),process.exit(1)}y.writeFileSync(g,c),f.success(B.cyan("the config file has been created at:"),B.gray(g))})}catch(r){if(t)throw r;f.error(r,r.message?`failed to generate config file in ${s}: ${r.message}`:`failed to generate config file in ${s}`),a&&process.exit(1)}}export{f as a,l as b,G as c};
package/dist/cli.mjs DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import{a,c as J}from"./chunk-UOBRZ36U.mjs";import r from"chalk";import d from"node:fs";import c from"node:path";import{fileURLToPath as M}from"node:url";import{spawn as U}from"node:child_process";import{Command as F}from"commander";var E={name:"tochibuild",version:"2.2.2",description:"An extremely fast JavaScript/Typescript and CSS bundler with minimal configuration.",repository:"https://github.com/tochiResources/project/tree/main/packages/build/tochibuild.git",license:"MIT",keywords:["bundler","build","typescript","javascript","tsup","esbuild","glob","cli","node","tochi","tochiResources"],bin:"./dist/cli.mjs",scripts:{dev:"tsx cli.ts",copybundler:"copyfiles ./tsup@8.4.0/* ./dist",build:"tsx cli.ts && bun run copybundler","build:release":"bun run build && bun run release",release:"bun publish --access public --no-private"},dependencies:{chalk:"^5.4.1",commander:"^13.1.0",deepmerge:"^4.3.1",tsup:"8.4.0"},devDependencies:{"@types/node":"^22.15.17",copyfiles:"^2.4.1",tsx:"^4.19.4",typescript:"^5.8.3"},engines:{node:">=18.17.0"},files:["dist"]};var L=M(import.meta.url),B=c.dirname(L),k=c.resolve(process.cwd(),"."),x=k.replace(/\\/g,"/").includes("packages/build"),p=x?void 0:c.join(k,"package.json"),_=p?d.existsSync(p):!1,T=p&&_?d.readFileSync(p,"utf-8"):void 0,f=T?JSON.parse(T):void 0;async function A(l){let R={node:c.join(B,"tsup@8.4.0/cli-node.js")},j=process.cwd(),N=[...[".ts",".js",".cjs",".json"].map(n=>c.join(j,`tochibuild.config${n}`)),...[".ts",".js",".cjs",".json"].map(n=>c.join(j,`tsup.config${n}`))],v=f?.tochibuild,w=f?.tsup,C=!!Object.keys(v||{}).length||!!Object.keys(w||{}).length,g=N.find(n=>d.existsSync(n)),$=C||g,P=new F("tochibuild").name("tochibuild <command>").description("bundle a Node.js project powered by tsup (https://tsup.egoist.dev)").allowUnknownOption(!0).version(E.version).argument("[args...]","arguments to pass to tsup").action(async(...n)=>O(n));P.command("config").description("generate config files").option("--ext <string>","the file extension to use excluding the file extension (defaults to .ts)",".ts").option("-f, --filename <string>","the file name to use (defaults to tochibuild.config)","tochibuild.config").option("-o, --overwrite","whether or not to overwrite the config file if it already exists (defaults to false)",!1).option("--outDir <string...>","the absolute/relative output directory paths to create the config files in (defaults to the working directory)").action(n=>J.generateConfig(l,n,!1,!0)),P.parseAsync(process.argv);async function O(n){let[i]=n;return new Promise((D,u)=>{try{let h="node",e=[],m=i.includes("--config"),S=i.includes("--no-config"),b=m?i.findIndex(t=>t==="--config")+1:void 0;if(!m&&!S&&!$){if(i[0]==null||i[0]?.startsWith("-")){a.custom("error",`${r.red("No input files, try")} '${r.magenta(l)} ${r.gray("[...files]")}' ${r.red("instead")}`),u();return}e.push(...i)}else if(!m&&!S&&$)if(C){let t=v||w;i.filter(s=>s.startsWith("-")).forEach(s=>{let o=i.findIndex(V=>V===s),G=s.startsWith("--")?s.slice(2):s.slice(1);if(t[G]||(e.push(s),e[o+1]?.startsWith("-")))return;let I=e[o+1];I&&e.push(I)}),Object.entries(t).forEach(([s,o])=>{typeof o=="boolean"||o==="true"||o==="false"?o&&e.push(`--${s}`):typeof o=="string"&&e.push(`--${s}`,o)}),e.push("--no-config")}else if(g){let t=c.relative(k,g).replace(/\\/g,"/");a.log(`using existing configuration file: ${r.gray(t)}`),e.push("--config",t),e.push(...i)}else e.push(...i);else{if(b!=null&&b>=0){let t=i[b]||"unspecified";d.existsSync(t)||(a.error(void 0,`config file '${t}' does not exist`),a.info(`try running '${r.magenta(l)} ${r.blue("config")} ${r.gray("-h")}' to get help on how to generate a config file`),process.exit(1))}e.push(...i)}a.log(`running build${x||f?.name?` for ${r.magenta(x?l:f.name)}`:""}...`);let y=U("node",[R[h],...e],{stdio:"inherit",shell:!0,cwd:process.cwd(),env:process.env});y.on("exit",t=>{process.exit(t??1)}),process.on("SIGINT",()=>{u(),y.kill("SIGINT")}),process.on("SIGTERM",()=>{u(),y.kill("SIGTERM")}),D()}catch(h){u(h)}})}}A("@tochii/build");
package/dist/index.mjs DELETED
@@ -1 +0,0 @@
1
- import{c as n}from"./chunk-UOBRZ36U.mjs";import{defineConfig as t}from"tsup";var l=n,e={utils:n,defineConfig:o,defineConfigWithIndexEntries:r,defineConfigWithCommonEntries:f};function o(i){return t(n.defaultOptions(i))}function r(i){return t(n.defaultOptionsWithIndexEntries(i))}function f(i){return t(n.defaultOptionsWithCommonEntries(i))}var a=e;export{l as BuildUtils,a as default,o as defineConfig,f as defineConfigWithCommonEntries,r as defineConfigWithIndexEntries};
@@ -1,6 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// package.json
2
- var version = "8.4.0";
3
-
4
-
5
-
6
- exports.version = version;