@stacksjs/buddy 0.70.10 → 0.70.12

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.
Files changed (57) hide show
  1. package/dist/chunk-02xryjt7.js +2 -0
  2. package/dist/{chunk-2pj0cr49.js → chunk-0pctvmzj.js} +1 -1
  3. package/dist/chunk-18tc3app.js +2 -0
  4. package/dist/chunk-1hyckzds.js +2 -0
  5. package/dist/{chunk-bgqy98qw.js → chunk-1xg8yqzr.js} +2 -2
  6. package/dist/chunk-225rwa7q.js +2 -0
  7. package/dist/chunk-2kgzc9hn.js +2 -0
  8. package/dist/chunk-51z2y1an.js +10 -0
  9. package/dist/chunk-59wz96e5.js +25 -0
  10. package/dist/chunk-5ac533gv.js +2 -0
  11. package/dist/{chunk-ks9kq37e.js → chunk-6bsjhkd1.js} +1 -1
  12. package/dist/chunk-6v69415e.js +2 -0
  13. package/dist/chunk-7pzg81vs.js +5 -0
  14. package/dist/chunk-97y685k1.js +3 -0
  15. package/dist/chunk-c57y9ssg.js +3 -0
  16. package/dist/chunk-cqrmkpzz.js +8 -0
  17. package/dist/chunk-enzd7k3d.js +10 -0
  18. package/dist/chunk-f6ns0rrk.js +2 -0
  19. package/dist/{chunk-tx5yb9wb.js → chunk-jaw9rsy5.js} +1 -1
  20. package/dist/chunk-mq9sjfzt.js +6 -0
  21. package/dist/chunk-rjjeq0tb.js +3 -0
  22. package/dist/chunk-swrx1kwt.js +2 -0
  23. package/dist/chunk-tb4wat6y.js +15 -0
  24. package/dist/chunk-tnexd1vh.js +2 -0
  25. package/dist/chunk-w410kf33.js +33 -0
  26. package/dist/{chunk-5eh2tfep.js → chunk-x50q43zy.js} +2 -2
  27. package/dist/{chunk-5x7y4ng3.js → chunk-xhnxfews.js} +3 -3
  28. package/dist/chunk-y21redjp.js +2 -0
  29. package/dist/chunk-y6xd7gz4.js +1 -0
  30. package/dist/chunk-y9we573f.js +240 -0
  31. package/dist/chunk-yen4jxhm.js +2 -0
  32. package/dist/chunk-yjmev4jy.js +35 -0
  33. package/dist/chunk-yvw4pjx6.js +5410 -0
  34. package/dist/cli.js +1 -1
  35. package/dist/index.js +1 -1
  36. package/package.json +45 -45
  37. package/dist/chunk-2xrqj8ap.js +0 -2
  38. package/dist/chunk-5vhayxpk.js +0 -25
  39. package/dist/chunk-5yawz4bx.js +0 -2
  40. package/dist/chunk-7kc7thq5.js +0 -4699
  41. package/dist/chunk-7mjm5rg8.js +0 -35
  42. package/dist/chunk-8acb2bq0.js +0 -1
  43. package/dist/chunk-9gzvq5jq.js +0 -2
  44. package/dist/chunk-e1kefb68.js +0 -2
  45. package/dist/chunk-fds99vbx.js +0 -2
  46. package/dist/chunk-jky37dv1.js +0 -5
  47. package/dist/chunk-mzgfvbmm.js +0 -2
  48. package/dist/chunk-tv4f0d0g.js +0 -2
  49. package/dist/chunk-v3a5yzn6.js +0 -3
  50. package/dist/chunk-vrd8j1ky.js +0 -3
  51. package/dist/chunk-ww48v0ap.js +0 -10
  52. package/dist/chunk-wz2wxp9f.js +0 -6
  53. package/dist/chunk-y4k8k1by.js +0 -3
  54. package/dist/chunk-yatzvt36.js +0 -2
  55. package/dist/chunk-yv49ttdw.js +0 -10
  56. package/dist/chunk-z80nypa9.js +0 -1
  57. package/dist/chunk-zm0j2nyb.js +0 -1
@@ -1,4 +1,4 @@
1
- import{Rc as QZ,Tc as ZZ}from"./chunk-2pj0cr49.js";var U_=ZZ((BO,N_)=>{var B_,d0,i0,o0,n0,r0,U0,m1,C0,s0,M_,a0,w0,t0,e0,_1,e,J_,z1,Z1,OZ;t0=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;w0=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;d0=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;_1=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;a0=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;e=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;Z1=/[\t\v\f\ufeff\p{Zs}]+/yu;C0=/\r?\n|[\r\u2028\u2029]/y;s0=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;e0=/\/\/.*/y;B_=/^#!.*/;o0=/[<>.:={}]|\/(?![\/*])/y;i0=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;n0=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;r0=/[^<>{}]+/y;z1=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;J_=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;U0=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;m1=/^(?:return|throw|yield)$/;M_=RegExp(C0.source);N_.exports=OZ=function*(_,{jsx:z=!1}={}){var Z,O,Q,j,H,$,K,W,Y,G,V,q,C,B;if({length:$}=_,j=0,H="",B=[{tag:"JS"}],Z=[],V=0,q=!1,K=B_.exec(_))yield{type:"HashbangComment",value:K[0]},j=K[0].length;while(j<$){switch(W=B[B.length-1],W.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[j]==="/"&&(z1.test(H)||U0.test(H))){if(t0.lastIndex=j,K=t0.exec(_)){j=t0.lastIndex,H=K[0],q=!0,yield{type:"RegularExpressionLiteral",value:K[0],closed:K[1]!==void 0&&K[1]!=="\\"};continue}}if(w0.lastIndex=j,K=w0.exec(_)){switch(C=K[0],Y=w0.lastIndex,G=C,C){case"(":if(H==="?NonExpressionParenKeyword")B.push({tag:"JSNonExpressionParen",nesting:V});V++,q=!1;break;case")":if(V--,q=!0,W.tag==="JSNonExpressionParen"&&V===W.nesting)B.pop(),G="?NonExpressionParenEnd",q=!1;break;case"{":w0.lastIndex=0,Q=!J_.test(H)&&(z1.test(H)||U0.test(H)),Z.push(Q),q=!1;break;case"}":switch(W.tag){case"InterpolationInTemplate":if(Z.length===W.nesting){if(e.lastIndex=j,K=e.exec(_),j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",q=!1,yield{type:"TemplateMiddle",value:K[0]};else B.pop(),q=!0,yield{type:"TemplateTail",value:K[0],closed:K[1]==="`"};continue}break;case"InterpolationInJSX":if(Z.length===W.nesting){B.pop(),j+=1,H="}",yield{type:"JSXPunctuator",value:"}"};continue}}q=Z.pop(),G=q?"?ExpressionBraceEnd":"}";break;case"]":q=!0;break;case"++":case"--":G=q?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(z&&(z1.test(H)||U0.test(H))){B.push({tag:"JSXTag"}),j+=1,H="<",yield{type:"JSXPunctuator",value:C};continue}q=!1;break;default:q=!1}j=Y,H=G,yield{type:"Punctuator",value:C};continue}if(d0.lastIndex=j,K=d0.exec(_)){switch(j=d0.lastIndex,G=K[0],K[0]){case"for":case"if":case"while":case"with":if(H!=="."&&H!=="?.")G="?NonExpressionParenKeyword"}H=G,q=!U0.test(K[0]),yield{type:K[1]==="#"?"PrivateIdentifier":"IdentifierName",value:K[0]};continue}if(_1.lastIndex=j,K=_1.exec(_)){j=_1.lastIndex,H=K[0],q=!0,yield{type:"StringLiteral",value:K[0],closed:K[2]!==void 0};continue}if(a0.lastIndex=j,K=a0.exec(_)){j=a0.lastIndex,H=K[0],q=!0,yield{type:"NumericLiteral",value:K[0]};continue}if(e.lastIndex=j,K=e.exec(_)){if(j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",B.push({tag:"InterpolationInTemplate",nesting:Z.length}),q=!1,yield{type:"TemplateHead",value:K[0]};else q=!0,yield{type:"NoSubstitutionTemplate",value:K[0],closed:K[1]==="`"};continue}break;case"JSXTag":case"JSXTagEnd":if(o0.lastIndex=j,K=o0.exec(_)){switch(j=o0.lastIndex,G=K[0],K[0]){case"<":B.push({tag:"JSXTag"});break;case">":if(B.pop(),H==="/"||W.tag==="JSXTagEnd")G="?JSX",q=!0;else B.push({tag:"JSXChildren"});break;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),G="?InterpolationInJSX",q=!1;break;case"/":if(H==="<"){if(B.pop(),B[B.length-1].tag==="JSXChildren")B.pop();B.push({tag:"JSXTagEnd"})}}H=G,yield{type:"JSXPunctuator",value:K[0]};continue}if(i0.lastIndex=j,K=i0.exec(_)){j=i0.lastIndex,H=K[0],yield{type:"JSXIdentifier",value:K[0]};continue}if(n0.lastIndex=j,K=n0.exec(_)){j=n0.lastIndex,H=K[0],yield{type:"JSXString",value:K[0],closed:K[2]!==void 0};continue}break;case"JSXChildren":if(r0.lastIndex=j,K=r0.exec(_)){j=r0.lastIndex,H=K[0],yield{type:"JSXText",value:K[0]};continue}switch(_[j]){case"<":B.push({tag:"JSXTag"}),j++,H="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),j++,H="?InterpolationInJSX",q=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(Z1.lastIndex=j,K=Z1.exec(_)){j=Z1.lastIndex,yield{type:"WhiteSpace",value:K[0]};continue}if(C0.lastIndex=j,K=C0.exec(_)){if(j=C0.lastIndex,q=!1,m1.test(H))H="?NoLineTerminatorHere";yield{type:"LineTerminatorSequence",value:K[0]};continue}if(s0.lastIndex=j,K=s0.exec(_)){if(j=s0.lastIndex,M_.test(K[0])){if(q=!1,m1.test(H))H="?NoLineTerminatorHere"}yield{type:"MultiLineComment",value:K[0],closed:K[1]!==void 0};continue}if(e0.lastIndex=j,K=e0.exec(_)){j=e0.lastIndex,q=!1,yield{type:"SingleLineComment",value:K[0]};continue}O=String.fromCodePoint(_.codePointAt(j)),j+=O.length,H=O,q=!1,yield{type:W.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:O}}return}});var D_=/^[A-Za-z]:\//;function K0(_=""){if(!_)return _;return _.replace(/\\/g,"/").replace(D_,(z)=>z.toUpperCase())}var v_=/^[/\\]{2}/,y_=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,i1=/^[A-Za-z]:$/,d1=/^\/([A-Za-z]:)?$/,S_=/.(\.[^./]+|\.)$/,f_=/^[/\\]|^[a-zA-Z]:[/\\]/;var o1=function(_){if(_.length===0)return".";_=K0(_);let z=_.match(v_),Z=l(_),O=_[_.length-1]==="/";if(_=j1(_,!Z),_.length===0){if(Z)return"/";return O?"./":"."}if(O)_+="/";if(i1.test(_))_+="/";if(z){if(!Z)return`//./${_}`;return`//${_}`}return Z&&!l(_)?`/${_}`:_},I_=function(..._){let z="";for(let Z of _){if(!Z)continue;if(z.length>0){let O=z[z.length-1]==="/",Q=Z[0]==="/";if(O&&Q)z+=Z.slice(1);else z+=O||Q?Z:`/${Z}`}else z+=Z}return o1(z)};function b_(){if(typeof process!=="undefined"&&typeof process.cwd==="function")return process.cwd().replace(/\\/g,"/");return"/"}var $0=function(..._){_=_.map((O)=>K0(O));let z="",Z=!1;for(let O=_.length-1;O>=-1&&!Z;O--){let Q=O>=0?_[O]:b_();if(!Q||Q.length===0)continue;z=`${Q}/${z}`,Z=l(Q)}if(z=j1(z,!Z),Z&&!l(z))return`/${z}`;return z.length>0?z:"."};function j1(_,z){let Z="",O=0,Q=-1,j=0,H=null;for(let $=0;$<=_.length;++$){if($<_.length)H=_[$];else if(H==="/")break;else H="/";if(H==="/"){if(Q===$-1||j===1);else if(j===2){if(Z.length<2||O!==2||Z[Z.length-1]!=="."||Z[Z.length-2]!=="."){if(Z.length>2){let K=Z.lastIndexOf("/");if(K===-1)Z="",O=0;else Z=Z.slice(0,K),O=Z.length-1-Z.lastIndexOf("/");Q=$,j=0;continue}else if(Z.length>0){Z="",O=0,Q=$,j=0;continue}}if(z)Z+=Z.length>0?"/..":"..",O=2}else{if(Z.length>0)Z+=`/${_.slice(Q+1,$)}`;else Z=_.slice(Q+1,$);O=$-Q-1}Q=$,j=0}else if(H==="."&&j!==-1)++j;else j=-1}return Z}var l=function(_){return y_.test(_)};var n1=function(_){if(_==="..")return"";let z=S_.exec(K0(_));return z&&z[1]||""},H1=function(_,z){let Z=$0(_).replace(d1,"$1").split("/"),O=$0(z).replace(d1,"$1").split("/");if(O[0][1]===":"&&Z[0][1]===":"&&Z[0]!==O[0])return O.join("/");let Q=[...Z];for(let j of Q){if(O[0]!==j)break;Z.shift(),O.shift()}return[...Z.map(()=>".."),...O].join("/")},r1=function(_){let z=K0(_).replace(/\/$/,"").split("/").slice(0,-1);if(z.length===1&&i1.test(z[0]))z[0]+="/";return z.join("/")||(l(_)?"/":".")};var s1=function(_,z){let Z=K0(_).split("/"),O="";for(let Q=Z.length-1;Q>=0;Q--){let j=Z[Q];if(j){O=j;break}}return z&&O.endsWith(z)?O.slice(0,-z.length):O},k_=function(_){let z=f_.exec(_)?.[0]?.replace(/\\/g,"/")||"",Z=s1(_),O=n1(Z);return{root:z,dir:r1(_),base:Z,ext:O,name:Z.slice(0,Z.length-O.length)}};var x_=/\d/,h_=["-","_","/","."];function g_(_=""){if(x_.test(_))return;return _!==_.toLowerCase()}function a1(_,z){let Z=z??h_,O=[];if(!_||typeof _!=="string")return O;let Q="",j,H;for(let $ of _){let K=Z.includes($);if(K===!0){O.push(Q),Q="",j=void 0;continue}let W=g_($);if(H===!1){if(j===!1&&W===!0){O.push(Q),Q=$,j=W;continue}if(j===!0&&W===!1&&Q.length>1){let Y=Q.at(-1);O.push(Q.slice(0,Math.max(0,Q.length-1))),Q=Y+$,j=W;continue}}Q+=$,j=W,H=K}return O.push(Q),O}function u_(_){return _?_[0].toUpperCase()+_.slice(1):""}function m_(_){return _?_[0].toLowerCase()+_.slice(1):""}function l_(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>u_(z?.normalize?Z.toLowerCase():Z)).join(""):""}function R1(_,z){return m_(l_(_||"",z))}function T0(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>Z.toLowerCase()).join(z??"-"):""}var _2=new Uint8Array(64),p_=new Uint8Array(128);for(let _=0;_<64;_++){let z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(_);_2[_]=z,p_[z]=_}function W0(_,z,Z){let O=z-Z;O=O<0?-O<<1|1:O<<1;do{let Q=O&31;if(O>>>=5,O>0)Q|=32;_.write(_2[Q])}while(O>0);return z}var t1=16384,e1=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(_){return Buffer.from(_.buffer,_.byteOffset,_.byteLength).toString()}}:{decode(_){let z="";for(let Z=0;Z<_.length;Z++)z+=String.fromCharCode(_[Z]);return z}};class z2{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(t1)}write(_){let{buffer:z}=this;if(z[this.pos++]=_,this.pos===t1)this.out+=e1.decode(z),this.pos=0}flush(){let{buffer:_,out:z,pos:Z}=this;return Z>0?z+e1.decode(_.subarray(0,Z)):z}}function Z2(_){let z=new z2,Z=0,O=0,Q=0,j=0;for(let H=0;H<_.length;H++){let $=_[H];if(H>0)z.write(59);if($.length===0)continue;let K=0;for(let W=0;W<$.length;W++){let Y=$[W];if(W>0)z.write(44);if(K=W0(z,Y[0],K),Y.length===1)continue;if(Z=W0(z,Y[1],Z),O=W0(z,Y[2],O),Q=W0(z,Y[3],Q),Y.length===4)continue;j=W0(z,Y[4],j)}}return z.flush()}class E0{constructor(_){this.bits=_ instanceof E0?_.bits.slice():[]}add(_){this.bits[_>>5]|=1<<(_&31)}has(_){return!!(this.bits[_>>5]&1<<(_&31))}}class G0{constructor(_,z,Z){this.start=_,this.end=z,this.original=Z,this.intro="",this.outro="",this.content=Z,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(_){this.outro+=_}appendRight(_){this.intro=this.intro+_}clone(){let _=new G0(this.start,this.end,this.original);return _.intro=this.intro,_.outro=this.outro,_.content=this.content,_.storeName=this.storeName,_.edited=this.edited,_}contains(_){return this.start<_&&_<this.end}eachNext(_){let z=this;while(z)_(z),z=z.next}eachPrevious(_){let z=this;while(z)_(z),z=z.previous}edit(_,z,Z){if(this.content=_,!Z)this.intro="",this.outro="";return this.storeName=z,this.edited=!0,this}prependLeft(_){this.outro=_+this.outro}prependRight(_){this.intro=_+this.intro}reset(){if(this.intro="",this.outro="",this.edited)this.content=this.original,this.storeName=!1,this.edited=!1}split(_){let z=_-this.start,Z=this.original.slice(0,z),O=this.original.slice(z);this.original=Z;let Q=new G0(_,this.end,O);if(Q.outro=this.outro,this.outro="",this.end=_,this.edited)Q.edit("",!1),this.content="";else this.content=Z;if(Q.next=this.next,Q.next)Q.next.previous=Q;return Q.previous=this,this.next=Q,Q}toString(){return this.intro+this.content+this.outro}trimEnd(_){if(this.outro=this.outro.replace(_,""),this.outro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){if(this.split(this.start+z.length).edit("",void 0,!0),this.edited)this.edit(z,this.storeName,!0)}return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(_,""),this.intro.length)return!0}trimStart(_){if(this.intro=this.intro.replace(_,""),this.intro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){let Z=this.split(this.end-z.length);if(this.edited)Z.edit(z,this.storeName,!0);this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(_,""),this.outro.length)return!0}}function c_(){if(typeof globalThis!=="undefined"&&typeof globalThis.btoa==="function")return(_)=>globalThis.btoa(unescape(encodeURIComponent(_)));else if(typeof Buffer==="function")return(_)=>Buffer.from(_,"utf-8").toString("base64");else return()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var d_=c_();class Q2{constructor(_){if(this.version=3,this.file=_.file,this.sources=_.sources,this.sourcesContent=_.sourcesContent,this.names=_.names,this.mappings=Z2(_.mappings),typeof _.x_google_ignoreList!=="undefined")this.x_google_ignoreList=_.x_google_ignoreList;if(typeof _.debugId!=="undefined")this.debugId=_.debugId}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+d_(this.toString())}}function i_(_){let z=_.split(`
1
+ import{Uc as QZ,Wc as ZZ}from"./chunk-0pctvmzj.js";var U_=ZZ((BO,N_)=>{var B_,d0,i0,o0,n0,r0,U0,m1,C0,s0,M_,a0,w0,t0,e0,_1,e,J_,z1,Z1,OZ;t0=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;w0=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;d0=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;_1=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;a0=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;e=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;Z1=/[\t\v\f\ufeff\p{Zs}]+/yu;C0=/\r?\n|[\r\u2028\u2029]/y;s0=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;e0=/\/\/.*/y;B_=/^#!.*/;o0=/[<>.:={}]|\/(?![\/*])/y;i0=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;n0=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;r0=/[^<>{}]+/y;z1=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;J_=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;U0=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;m1=/^(?:return|throw|yield)$/;M_=RegExp(C0.source);N_.exports=OZ=function*(_,{jsx:z=!1}={}){var Z,O,Q,j,H,$,K,W,Y,G,V,q,C,B;if({length:$}=_,j=0,H="",B=[{tag:"JS"}],Z=[],V=0,q=!1,K=B_.exec(_))yield{type:"HashbangComment",value:K[0]},j=K[0].length;while(j<$){switch(W=B[B.length-1],W.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[j]==="/"&&(z1.test(H)||U0.test(H))){if(t0.lastIndex=j,K=t0.exec(_)){j=t0.lastIndex,H=K[0],q=!0,yield{type:"RegularExpressionLiteral",value:K[0],closed:K[1]!==void 0&&K[1]!=="\\"};continue}}if(w0.lastIndex=j,K=w0.exec(_)){switch(C=K[0],Y=w0.lastIndex,G=C,C){case"(":if(H==="?NonExpressionParenKeyword")B.push({tag:"JSNonExpressionParen",nesting:V});V++,q=!1;break;case")":if(V--,q=!0,W.tag==="JSNonExpressionParen"&&V===W.nesting)B.pop(),G="?NonExpressionParenEnd",q=!1;break;case"{":w0.lastIndex=0,Q=!J_.test(H)&&(z1.test(H)||U0.test(H)),Z.push(Q),q=!1;break;case"}":switch(W.tag){case"InterpolationInTemplate":if(Z.length===W.nesting){if(e.lastIndex=j,K=e.exec(_),j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",q=!1,yield{type:"TemplateMiddle",value:K[0]};else B.pop(),q=!0,yield{type:"TemplateTail",value:K[0],closed:K[1]==="`"};continue}break;case"InterpolationInJSX":if(Z.length===W.nesting){B.pop(),j+=1,H="}",yield{type:"JSXPunctuator",value:"}"};continue}}q=Z.pop(),G=q?"?ExpressionBraceEnd":"}";break;case"]":q=!0;break;case"++":case"--":G=q?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(z&&(z1.test(H)||U0.test(H))){B.push({tag:"JSXTag"}),j+=1,H="<",yield{type:"JSXPunctuator",value:C};continue}q=!1;break;default:q=!1}j=Y,H=G,yield{type:"Punctuator",value:C};continue}if(d0.lastIndex=j,K=d0.exec(_)){switch(j=d0.lastIndex,G=K[0],K[0]){case"for":case"if":case"while":case"with":if(H!=="."&&H!=="?.")G="?NonExpressionParenKeyword"}H=G,q=!U0.test(K[0]),yield{type:K[1]==="#"?"PrivateIdentifier":"IdentifierName",value:K[0]};continue}if(_1.lastIndex=j,K=_1.exec(_)){j=_1.lastIndex,H=K[0],q=!0,yield{type:"StringLiteral",value:K[0],closed:K[2]!==void 0};continue}if(a0.lastIndex=j,K=a0.exec(_)){j=a0.lastIndex,H=K[0],q=!0,yield{type:"NumericLiteral",value:K[0]};continue}if(e.lastIndex=j,K=e.exec(_)){if(j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",B.push({tag:"InterpolationInTemplate",nesting:Z.length}),q=!1,yield{type:"TemplateHead",value:K[0]};else q=!0,yield{type:"NoSubstitutionTemplate",value:K[0],closed:K[1]==="`"};continue}break;case"JSXTag":case"JSXTagEnd":if(o0.lastIndex=j,K=o0.exec(_)){switch(j=o0.lastIndex,G=K[0],K[0]){case"<":B.push({tag:"JSXTag"});break;case">":if(B.pop(),H==="/"||W.tag==="JSXTagEnd")G="?JSX",q=!0;else B.push({tag:"JSXChildren"});break;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),G="?InterpolationInJSX",q=!1;break;case"/":if(H==="<"){if(B.pop(),B[B.length-1].tag==="JSXChildren")B.pop();B.push({tag:"JSXTagEnd"})}}H=G,yield{type:"JSXPunctuator",value:K[0]};continue}if(i0.lastIndex=j,K=i0.exec(_)){j=i0.lastIndex,H=K[0],yield{type:"JSXIdentifier",value:K[0]};continue}if(n0.lastIndex=j,K=n0.exec(_)){j=n0.lastIndex,H=K[0],yield{type:"JSXString",value:K[0],closed:K[2]!==void 0};continue}break;case"JSXChildren":if(r0.lastIndex=j,K=r0.exec(_)){j=r0.lastIndex,H=K[0],yield{type:"JSXText",value:K[0]};continue}switch(_[j]){case"<":B.push({tag:"JSXTag"}),j++,H="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),j++,H="?InterpolationInJSX",q=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(Z1.lastIndex=j,K=Z1.exec(_)){j=Z1.lastIndex,yield{type:"WhiteSpace",value:K[0]};continue}if(C0.lastIndex=j,K=C0.exec(_)){if(j=C0.lastIndex,q=!1,m1.test(H))H="?NoLineTerminatorHere";yield{type:"LineTerminatorSequence",value:K[0]};continue}if(s0.lastIndex=j,K=s0.exec(_)){if(j=s0.lastIndex,M_.test(K[0])){if(q=!1,m1.test(H))H="?NoLineTerminatorHere"}yield{type:"MultiLineComment",value:K[0],closed:K[1]!==void 0};continue}if(e0.lastIndex=j,K=e0.exec(_)){j=e0.lastIndex,q=!1,yield{type:"SingleLineComment",value:K[0]};continue}O=String.fromCodePoint(_.codePointAt(j)),j+=O.length,H=O,q=!1,yield{type:W.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:O}}return}});var D_=/^[A-Za-z]:\//;function K0(_=""){if(!_)return _;return _.replace(/\\/g,"/").replace(D_,(z)=>z.toUpperCase())}var v_=/^[/\\]{2}/,y_=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,i1=/^[A-Za-z]:$/,d1=/^\/([A-Za-z]:)?$/,S_=/.(\.[^./]+|\.)$/,f_=/^[/\\]|^[a-zA-Z]:[/\\]/;var o1=function(_){if(_.length===0)return".";_=K0(_);let z=_.match(v_),Z=l(_),O=_[_.length-1]==="/";if(_=j1(_,!Z),_.length===0){if(Z)return"/";return O?"./":"."}if(O)_+="/";if(i1.test(_))_+="/";if(z){if(!Z)return`//./${_}`;return`//${_}`}return Z&&!l(_)?`/${_}`:_},I_=function(..._){let z="";for(let Z of _){if(!Z)continue;if(z.length>0){let O=z[z.length-1]==="/",Q=Z[0]==="/";if(O&&Q)z+=Z.slice(1);else z+=O||Q?Z:`/${Z}`}else z+=Z}return o1(z)};function b_(){if(typeof process!=="undefined"&&typeof process.cwd==="function")return process.cwd().replace(/\\/g,"/");return"/"}var $0=function(..._){_=_.map((O)=>K0(O));let z="",Z=!1;for(let O=_.length-1;O>=-1&&!Z;O--){let Q=O>=0?_[O]:b_();if(!Q||Q.length===0)continue;z=`${Q}/${z}`,Z=l(Q)}if(z=j1(z,!Z),Z&&!l(z))return`/${z}`;return z.length>0?z:"."};function j1(_,z){let Z="",O=0,Q=-1,j=0,H=null;for(let $=0;$<=_.length;++$){if($<_.length)H=_[$];else if(H==="/")break;else H="/";if(H==="/"){if(Q===$-1||j===1);else if(j===2){if(Z.length<2||O!==2||Z[Z.length-1]!=="."||Z[Z.length-2]!=="."){if(Z.length>2){let K=Z.lastIndexOf("/");if(K===-1)Z="",O=0;else Z=Z.slice(0,K),O=Z.length-1-Z.lastIndexOf("/");Q=$,j=0;continue}else if(Z.length>0){Z="",O=0,Q=$,j=0;continue}}if(z)Z+=Z.length>0?"/..":"..",O=2}else{if(Z.length>0)Z+=`/${_.slice(Q+1,$)}`;else Z=_.slice(Q+1,$);O=$-Q-1}Q=$,j=0}else if(H==="."&&j!==-1)++j;else j=-1}return Z}var l=function(_){return y_.test(_)};var n1=function(_){if(_==="..")return"";let z=S_.exec(K0(_));return z&&z[1]||""},H1=function(_,z){let Z=$0(_).replace(d1,"$1").split("/"),O=$0(z).replace(d1,"$1").split("/");if(O[0][1]===":"&&Z[0][1]===":"&&Z[0]!==O[0])return O.join("/");let Q=[...Z];for(let j of Q){if(O[0]!==j)break;Z.shift(),O.shift()}return[...Z.map(()=>".."),...O].join("/")},r1=function(_){let z=K0(_).replace(/\/$/,"").split("/").slice(0,-1);if(z.length===1&&i1.test(z[0]))z[0]+="/";return z.join("/")||(l(_)?"/":".")};var s1=function(_,z){let Z=K0(_).split("/"),O="";for(let Q=Z.length-1;Q>=0;Q--){let j=Z[Q];if(j){O=j;break}}return z&&O.endsWith(z)?O.slice(0,-z.length):O},k_=function(_){let z=f_.exec(_)?.[0]?.replace(/\\/g,"/")||"",Z=s1(_),O=n1(Z);return{root:z,dir:r1(_),base:Z,ext:O,name:Z.slice(0,Z.length-O.length)}};var x_=/\d/,h_=["-","_","/","."];function g_(_=""){if(x_.test(_))return;return _!==_.toLowerCase()}function a1(_,z){let Z=z??h_,O=[];if(!_||typeof _!=="string")return O;let Q="",j,H;for(let $ of _){let K=Z.includes($);if(K===!0){O.push(Q),Q="",j=void 0;continue}let W=g_($);if(H===!1){if(j===!1&&W===!0){O.push(Q),Q=$,j=W;continue}if(j===!0&&W===!1&&Q.length>1){let Y=Q.at(-1);O.push(Q.slice(0,Math.max(0,Q.length-1))),Q=Y+$,j=W;continue}}Q+=$,j=W,H=K}return O.push(Q),O}function u_(_){return _?_[0].toUpperCase()+_.slice(1):""}function m_(_){return _?_[0].toLowerCase()+_.slice(1):""}function l_(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>u_(z?.normalize?Z.toLowerCase():Z)).join(""):""}function R1(_,z){return m_(l_(_||"",z))}function T0(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>Z.toLowerCase()).join(z??"-"):""}var _2=new Uint8Array(64),p_=new Uint8Array(128);for(let _=0;_<64;_++){let z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(_);_2[_]=z,p_[z]=_}function W0(_,z,Z){let O=z-Z;O=O<0?-O<<1|1:O<<1;do{let Q=O&31;if(O>>>=5,O>0)Q|=32;_.write(_2[Q])}while(O>0);return z}var t1=16384,e1=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(_){return Buffer.from(_.buffer,_.byteOffset,_.byteLength).toString()}}:{decode(_){let z="";for(let Z=0;Z<_.length;Z++)z+=String.fromCharCode(_[Z]);return z}};class z2{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(t1)}write(_){let{buffer:z}=this;if(z[this.pos++]=_,this.pos===t1)this.out+=e1.decode(z),this.pos=0}flush(){let{buffer:_,out:z,pos:Z}=this;return Z>0?z+e1.decode(_.subarray(0,Z)):z}}function Z2(_){let z=new z2,Z=0,O=0,Q=0,j=0;for(let H=0;H<_.length;H++){let $=_[H];if(H>0)z.write(59);if($.length===0)continue;let K=0;for(let W=0;W<$.length;W++){let Y=$[W];if(W>0)z.write(44);if(K=W0(z,Y[0],K),Y.length===1)continue;if(Z=W0(z,Y[1],Z),O=W0(z,Y[2],O),Q=W0(z,Y[3],Q),Y.length===4)continue;j=W0(z,Y[4],j)}}return z.flush()}class E0{constructor(_){this.bits=_ instanceof E0?_.bits.slice():[]}add(_){this.bits[_>>5]|=1<<(_&31)}has(_){return!!(this.bits[_>>5]&1<<(_&31))}}class G0{constructor(_,z,Z){this.start=_,this.end=z,this.original=Z,this.intro="",this.outro="",this.content=Z,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(_){this.outro+=_}appendRight(_){this.intro=this.intro+_}clone(){let _=new G0(this.start,this.end,this.original);return _.intro=this.intro,_.outro=this.outro,_.content=this.content,_.storeName=this.storeName,_.edited=this.edited,_}contains(_){return this.start<_&&_<this.end}eachNext(_){let z=this;while(z)_(z),z=z.next}eachPrevious(_){let z=this;while(z)_(z),z=z.previous}edit(_,z,Z){if(this.content=_,!Z)this.intro="",this.outro="";return this.storeName=z,this.edited=!0,this}prependLeft(_){this.outro=_+this.outro}prependRight(_){this.intro=_+this.intro}reset(){if(this.intro="",this.outro="",this.edited)this.content=this.original,this.storeName=!1,this.edited=!1}split(_){let z=_-this.start,Z=this.original.slice(0,z),O=this.original.slice(z);this.original=Z;let Q=new G0(_,this.end,O);if(Q.outro=this.outro,this.outro="",this.end=_,this.edited)Q.edit("",!1),this.content="";else this.content=Z;if(Q.next=this.next,Q.next)Q.next.previous=Q;return Q.previous=this,this.next=Q,Q}toString(){return this.intro+this.content+this.outro}trimEnd(_){if(this.outro=this.outro.replace(_,""),this.outro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){if(this.split(this.start+z.length).edit("",void 0,!0),this.edited)this.edit(z,this.storeName,!0)}return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(_,""),this.intro.length)return!0}trimStart(_){if(this.intro=this.intro.replace(_,""),this.intro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){let Z=this.split(this.end-z.length);if(this.edited)Z.edit(z,this.storeName,!0);this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(_,""),this.outro.length)return!0}}function c_(){if(typeof globalThis!=="undefined"&&typeof globalThis.btoa==="function")return(_)=>globalThis.btoa(unescape(encodeURIComponent(_)));else if(typeof Buffer==="function")return(_)=>Buffer.from(_,"utf-8").toString("base64");else return()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var d_=c_();class Q2{constructor(_){if(this.version=3,this.file=_.file,this.sources=_.sources,this.sourcesContent=_.sourcesContent,this.names=_.names,this.mappings=Z2(_.mappings),typeof _.x_google_ignoreList!=="undefined")this.x_google_ignoreList=_.x_google_ignoreList;if(typeof _.debugId!=="undefined")this.debugId=_.debugId}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+d_(this.toString())}}function i_(_){let z=_.split(`
2
2
  `),Z=z.filter((j)=>/^\t+/.test(j)),O=z.filter((j)=>/^ {2,}/.test(j));if(Z.length===0&&O.length===0)return null;if(Z.length>=O.length)return"\t";let Q=O.reduce((j,H)=>{let $=/^ +/.exec(H)[0].length;return Math.min($,j)},1/0);return new Array(Q+1).join(" ")}function o_(_,z){let Z=_.split(/[/\\]/),O=z.split(/[/\\]/);Z.pop();while(Z[0]===O[0])Z.shift(),O.shift();if(Z.length){let Q=Z.length;while(Q--)Z[Q]=".."}return Z.concat(O).join("/")}var n_=Object.prototype.toString;function r_(_){return n_.call(_)==="[object Object]"}function O2(_){let z=_.split(`
3
3
  `),Z=[];for(let O=0,Q=0;O<z.length;O++)Z.push(Q),Q+=z[O].length+1;return function O(Q){let j=0,H=Z.length;while(j<H){let W=j+H>>1;if(Q<Z[W])H=W;else j=W+1}let $=j-1,K=Q-Z[$];return{line:$,column:K}}}var s_=/\w/;class j2{constructor(_){this.hires=_,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(_,z,Z,O){if(z.length){let Q=z.length-1,j=z.indexOf(`
4
4
  `,0),H=-1;while(j>=0&&Q>j){let K=[this.generatedCodeColumn,_,Z.line,Z.column];if(O>=0)K.push(O);this.rawSegments.push(K),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,H=j,j=z.indexOf(`
@@ -15,9 +15,9 @@ Defaulting to 2020, but this will stop working in the future.`);z.ecmaVersion=11
15
15
  `;break;default:_+=String.fromCharCode(Z);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;z=this.pos}else++this.pos}};M.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(R.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
16
16
  `)++this.pos;case`
17
17
  `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};M.readEscapedChar=function(_){var z=this.input.charCodeAt(++this.pos);switch(++this.pos,z){case 110:return`
18
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return c(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(_){var Z=this.pos-1;this.invalidStringToken(Z,"Invalid escape sequence in template string")}default:if(z>=48&&z<=55){var O=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Q=parseInt(O,8);if(Q>255)O=O.slice(0,-1),Q=parseInt(O,8);if(this.pos+=O.length-1,z=this.input.charCodeAt(this.pos),(O!=="0"||z===56||z===57)&&(this.strict||_))this.invalidStringToken(this.pos-1-O.length,_?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(Q)}if(O0(z)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(z)}};M.readHexChar=function(_){var z=this.pos,Z=this.readInt(16,_);if(Z===null)this.invalidStringToken(z,"Bad character escape sequence");return Z};M.readWord1=function(){this.containsEsc=!1;var _="",z=!0,Z=this.pos,O=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var Q=this.fullCharCodeAtPos();if(Z0(Q,O))this.pos+=Q<=65535?1:2;else if(Q===92){this.containsEsc=!0,_+=this.input.slice(Z,this.pos);var j=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var H=this.readCodePoint();if(!(z?p:Z0)(H,O))this.invalidStringToken(j,"Invalid Unicode escape");_+=c(H),Z=this.pos}else break;z=!1}return _+this.input.slice(Z,this.pos)};M.readWord=function(){var _=this.readWord1(),z=R.name;if(this.keywords.test(_))z=q1[_];return this.finishToken(z,_)};var Iz="8.14.1";L.acorn={Parser:L,version:Iz,defaultOptions:Y1,Position:q0,SourceLocation:b0,getLineInfo:q2,Node:g0,TokenType:N,tokTypes:R,keywordTypes:q1,TokContext:g,tokContexts:w,isIdentifierChar:Z0,isIdentifierStart:p,Token:N1,isNewLine:O0,lineBreak:k,lineBreakG:Oz,nonASCIIwhitespace:X2};function bZ(_,z){return L.parse(_,z)}function d2(_,z){return L.tokenizer(_,z)}import{builtinModules as y1,createRequire as ZO}from"module";import pz,{realpathSync as cz,statSync as S1,promises as dz}from"fs";var xZ=String.fromCharCode;var bz=/\/$|\/\?|\/#/,kz=/^\.?\//;function xz(_="",z){if(!z)return _.endsWith("/");return bz.test(_)}function hz(_="",z){if(!z)return _.endsWith("/")?_:_+"/";if(xz(_,!0))return _||"/";let Z=_,O="",Q=_.indexOf("#");if(Q>=0){if(Z=_.slice(0,Q),O=_.slice(Q),!Z)return O}let[j,...H]=Z.split("?");return j+"/"+(H.length>0?`?${H.join("?")}`:"")+O}function gz(_){return _&&_!=="/"}function U1(_,...z){let Z=_||"";for(let O of z.filter((Q)=>gz(Q)))if(Z){let Q=O.replace(kz,"");Z=hz(Z)+Q}else Z=O;return Z}var hZ=Symbol.for("ufo:protocolRelative");var uz=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;var w1=function(_){return uz.test(_)};import{fileURLToPath as U,URL as P,pathToFileURL as p0}from"url";import s from"assert";import t from"process";import f1,{dirname as WO}from"path";import iz from"v8";import{format as oz,inspect as E1}from"util";var j_=new Set(y1);function D1(_){return _.replace(/\\/g,"/")}function o(_,z,Z){let O=[];for(let Q of z.matchAll(_))O.push({...Z,...Q.groups,code:Q[0],start:Q.index,end:(Q.index||0)+Q[0].length});return O}function nz(_){return(_||"").replace(/(\/\/[^\n]*\n|\/\*.*\*\/)/g,"").replace(/\s+/g," ")}function rz(_){let z=_.replace(/{([^}]*)}/,""),Z=z.match(/\* as \s*(\S*)/)?.[1],O=z.split(",").find((Q)=>!/[*{}]/.test(Q))?.trim()||void 0;return{namespacedImport:Z,defaultImport:O}}var sz={}.hasOwnProperty,az=/^([A-Z][a-z\d]*)+$/,tz=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),E={};function C1(_,z="and"){return _.length<3?_.join(` ${z} `):`${_.slice(0,-1).join(", ")}, ${z} ${_[_.length-1]}`}var H_=new Map,ez="__node_internal_",i2;E.ERR_INVALID_ARG_TYPE=h("ERR_INVALID_ARG_TYPE",(_,z,Z)=>{if(s(typeof _==="string","'name' must be a string"),!Array.isArray(z))z=[z];let O="The ";if(_.endsWith(" argument"))O+=`${_} `;else{let $=_.includes(".")?"property":"argument";O+=`"${_}" ${$} `}O+="must be ";let Q=[],j=[],H=[];for(let $ of z)if(s(typeof $==="string","All expected entries have to be of type string"),tz.has($))Q.push($.toLowerCase());else if(az.exec($)===null)s($!=="object",'The value "object" should be written as "Object"'),H.push($);else j.push($);if(j.length>0){let $=Q.indexOf("object");if($!==-1)Q.slice($,1),j.push("Object")}if(Q.length>0){if(O+=`${Q.length>1?"one of type":"of type"} ${C1(Q,"or")}`,j.length>0||H.length>0)O+=" or "}if(j.length>0){if(O+=`an instance of ${C1(j,"or")}`,H.length>0)O+=" or "}if(H.length>0)if(H.length>1)O+=`one of ${C1(H,"or")}`;else{if(H[0].toLowerCase()!==H[0])O+="an ";O+=`${H[0]}`}return O+=`. Received ${Q6(Z)}`,O},TypeError);E.ERR_INVALID_MODULE_SPECIFIER=h("ERR_INVALID_MODULE_SPECIFIER",(_,z,Z=void 0)=>{return`Invalid module "${_}" ${z}${Z?` imported from ${Z}`:""}`},TypeError);E.ERR_INVALID_PACKAGE_CONFIG=h("ERR_INVALID_PACKAGE_CONFIG",(_,z,Z)=>{return`Invalid package config ${_}${z?` while importing ${z}`:""}${Z?`. ${Z}`:""}`},Error);E.ERR_INVALID_PACKAGE_TARGET=h("ERR_INVALID_PACKAGE_TARGET",(_,z,Z,O=!1,Q=void 0)=>{let j=typeof Z==="string"&&!O&&Z.length>0&&!Z.startsWith("./");if(z===".")return s(O===!1),`Invalid "exports" main target ${JSON.stringify(Z)} defined in the package config ${_}package.json${Q?` imported from ${Q}`:""}${j?'; targets must start with "./"':""}`;return`Invalid "${O?"imports":"exports"}" target ${JSON.stringify(Z)} defined for '${z}' in the package config ${_}package.json${Q?` imported from ${Q}`:""}${j?'; targets must start with "./"':""}`},Error);E.ERR_MODULE_NOT_FOUND=h("ERR_MODULE_NOT_FOUND",(_,z,Z=!1)=>{return`Cannot find ${Z?"module":"package"} '${_}' imported from ${z}`},Error);E.ERR_NETWORK_IMPORT_DISALLOWED=h("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);E.ERR_PACKAGE_IMPORT_NOT_DEFINED=h("ERR_PACKAGE_IMPORT_NOT_DEFINED",(_,z,Z)=>{return`Package import specifier "${_}" is not defined${z?` in package ${z}package.json`:""} imported from ${Z}`},TypeError);E.ERR_PACKAGE_PATH_NOT_EXPORTED=h("ERR_PACKAGE_PATH_NOT_EXPORTED",(_,z,Z=void 0)=>{if(z===".")return`No "exports" main defined in ${_}package.json${Z?` imported from ${Z}`:""}`;return`Package subpath '${z}' is not defined by "exports" in ${_}package.json${Z?` imported from ${Z}`:""}`},Error);E.ERR_UNSUPPORTED_DIR_IMPORT=h("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);E.ERR_UNSUPPORTED_RESOLVE_REQUEST=h("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);E.ERR_UNKNOWN_FILE_EXTENSION=h("ERR_UNKNOWN_FILE_EXTENSION",(_,z)=>{return`Unknown file extension "${_}" for ${z}`},TypeError);E.ERR_INVALID_ARG_VALUE=h("ERR_INVALID_ARG_VALUE",(_,z,Z="is invalid")=>{let O=E1(z);if(O.length>128)O=`${O.slice(0,128)}...`;return`The ${_.includes(".")?"property":"argument"} '${_}' ${Z}. Received ${O}`},TypeError);function h(_,z,Z){return H_.set(_,z),_6(Z,_)}function _6(_,z){return Z;function Z(...O){let Q=Error.stackTraceLimit;if(v1())Error.stackTraceLimit=0;let j=new _;if(v1())Error.stackTraceLimit=Q;let H=O6(z,O,j);return Object.defineProperties(j,{message:{value:H,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${z}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),Z6(j),j.code=z,j}}function v1(){try{if(iz.startupSnapshot.isBuildingSnapshot())return!1}catch{}let _=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");if(_===void 0)return Object.isExtensible(Error);return sz.call(_,"writable")&&_.writable!==void 0?_.writable:_.set!==void 0}function z6(_){let z=ez+_.name;return Object.defineProperty(_,"name",{value:z}),_}var Z6=z6(function(_){let z=v1();if(z)i2=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY;if(Error.captureStackTrace(_),z)Error.stackTraceLimit=i2;return _});function O6(_,z,Z){let O=H_.get(_);if(s(O!==void 0,"expected `message` to be found"),typeof O==="function")return s(O.length<=z.length,`Code: ${_}; The provided arguments length (${z.length}) does not match the required ones (${O.length}).`),Reflect.apply(O,Z,z);let Q=/%[dfijoOs]/g,j=0;while(Q.exec(O)!==null)j++;if(s(j===z.length,`Code: ${_}; The provided arguments length (${z.length}) does not match the required ones (${j}).`),z.length===0)return O;return z.unshift(O),Reflect.apply(oz,null,z)}function Q6(_){if(_===null||_===void 0)return String(_);if(typeof _==="function"&&_.name)return`function ${_.name}`;if(typeof _==="object"){if(_.constructor&&_.constructor.name)return`an instance of ${_.constructor.name}`;return`${E1(_,{depth:-1})}`}let z=E1(_,{colors:!1});if(z.length>28)z=`${z.slice(0,25)}...`;return`type ${typeof _} (${z})`}var M0={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:j6}=E,o2=new Map;function R_(_,{base:z,specifier:Z}){let O=o2.get(_);if(O)return O;let Q;try{Q=pz.readFileSync(f1.toNamespacedPath(_),"utf8")}catch(H){let $=H;if($.code!=="ENOENT")throw $}let j={exists:!1,pjsonPath:_,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(Q!==void 0){let H;try{H=JSON.parse(Q)}catch($){let K=$,W=new j6(_,(z?`"${Z}" from `:"")+U(z||Z),K.message);throw W.cause=K,W}if(j.exists=!0,M0.call(H,"name")&&typeof H.name==="string")j.name=H.name;if(M0.call(H,"main")&&typeof H.main==="string")j.main=H.main;if(M0.call(H,"exports"))j.exports=H.exports;if(M0.call(H,"imports"))j.imports=H.imports;if(M0.call(H,"type")&&(H.type==="commonjs"||H.type==="module"))j.type=H.type}return o2.set(_,j),j}function I1(_){let z=new URL("package.json",_);while(!0){if(z.pathname.endsWith("node_modules/package.json"))break;let Q=R_(U(z),{specifier:_});if(Q.exists)return Q;let j=z;if(z=new URL("../package.json",z),z.pathname===j.pathname)break}return{pjsonPath:U(z),exists:!1,type:"none"}}function n2(_){return I1(_).type}var{ERR_UNKNOWN_FILE_EXTENSION:H6}=E,R6={}.hasOwnProperty,$6={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function K6(_){if(_&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(_))return"module";if(_==="application/json")return"json";return null}var r2={__proto__:null,"data:":W6,"file:":G6,"http:":s2,"https:":s2,"node:"(){return"builtin"}};function W6(_){let{1:z}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(_.pathname)||[null,null,null];return K6(z)}function Y6(_){let z=_.pathname,Z=z.length;while(Z--){let O=z.codePointAt(Z);if(O===47)return"";if(O===46)return z.codePointAt(Z-1)===47?"":z.slice(Z)}return""}function G6(_,z,Z){let O=Y6(_);if(O===".js"){let H=n2(_);if(H!=="none")return H;return"commonjs"}if(O===""){let H=n2(_);if(H==="none"||H==="commonjs")return"commonjs";return"module"}let Q=$6[O];if(Q)return Q;if(Z)return;let j=U(_);throw new H6(O,j)}function s2(){}function X6(_,z){let Z=_.protocol;if(!R6.call(r2,Z))return null;return r2[Z](_,z,!0)||null}var m0=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:XO,ERR_INVALID_MODULE_SPECIFIER:c0,ERR_INVALID_PACKAGE_CONFIG:$_,ERR_INVALID_PACKAGE_TARGET:F6,ERR_MODULE_NOT_FOUND:b1,ERR_PACKAGE_IMPORT_NOT_DEFINED:q6,ERR_PACKAGE_PATH_NOT_EXPORTED:A6,ERR_UNSUPPORTED_DIR_IMPORT:V6,ERR_UNSUPPORTED_RESOLVE_REQUEST:a2}=E,K_={}.hasOwnProperty,t2=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,e2=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,B6=/^\.|%|\\/,l0=/\*/g,M6=/%2f|%5c/i,__=new Set,J6=/[/\\]{2}/;function z_(_,z,Z,O,Q,j,H){if(t.noDeprecation)return;let $=U(O),K=J6.exec(H?_:z)!==null;t.emitWarning(`Use of deprecated ${K?"double slash":"leading or trailing slash matching"} resolving "${_}" for module request "${z}" ${z===Z?"":`matched to "${Z}" `}in the "${Q?"imports":"exports"}" field module resolution of the package at ${$}${j?` imported from ${U(j)}`:""}.`,"DeprecationWarning","DEP0166")}function Z_(_,z,Z,O){if(t.noDeprecation)return;if(X6(_,{parentURL:Z.href})!=="module")return;let j=U(_.href),H=U(new P(".",z)),$=U(Z);if(!O)t.emitWarning(`No "main" or "exports" field defined in the package.json for ${H} resolving the main entry point "${j.slice(H.length)}", imported from ${$}.
18
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return c(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(_){var Z=this.pos-1;this.invalidStringToken(Z,"Invalid escape sequence in template string")}default:if(z>=48&&z<=55){var O=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Q=parseInt(O,8);if(Q>255)O=O.slice(0,-1),Q=parseInt(O,8);if(this.pos+=O.length-1,z=this.input.charCodeAt(this.pos),(O!=="0"||z===56||z===57)&&(this.strict||_))this.invalidStringToken(this.pos-1-O.length,_?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(Q)}if(O0(z)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(z)}};M.readHexChar=function(_){var z=this.pos,Z=this.readInt(16,_);if(Z===null)this.invalidStringToken(z,"Bad character escape sequence");return Z};M.readWord1=function(){this.containsEsc=!1;var _="",z=!0,Z=this.pos,O=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var Q=this.fullCharCodeAtPos();if(Z0(Q,O))this.pos+=Q<=65535?1:2;else if(Q===92){this.containsEsc=!0,_+=this.input.slice(Z,this.pos);var j=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var H=this.readCodePoint();if(!(z?p:Z0)(H,O))this.invalidStringToken(j,"Invalid Unicode escape");_+=c(H),Z=this.pos}else break;z=!1}return _+this.input.slice(Z,this.pos)};M.readWord=function(){var _=this.readWord1(),z=R.name;if(this.keywords.test(_))z=q1[_];return this.finishToken(z,_)};var Iz="8.14.1";L.acorn={Parser:L,version:Iz,defaultOptions:Y1,Position:q0,SourceLocation:b0,getLineInfo:q2,Node:g0,TokenType:N,tokTypes:R,keywordTypes:q1,TokContext:g,tokContexts:w,isIdentifierChar:Z0,isIdentifierStart:p,Token:N1,isNewLine:O0,lineBreak:k,lineBreakG:Oz,nonASCIIwhitespace:X2};function bZ(_,z){return L.parse(_,z)}function d2(_,z){return L.tokenizer(_,z)}import{builtinModules as y1,createRequire as ZO}from"node:module";import pz,{realpathSync as cz,statSync as S1,promises as dz}from"node:fs";var xZ=String.fromCharCode;var bz=/\/$|\/\?|\/#/,kz=/^\.?\//;function xz(_="",z){if(!z)return _.endsWith("/");return bz.test(_)}function hz(_="",z){if(!z)return _.endsWith("/")?_:_+"/";if(xz(_,!0))return _||"/";let Z=_,O="",Q=_.indexOf("#");if(Q>=0){if(Z=_.slice(0,Q),O=_.slice(Q),!Z)return O}let[j,...H]=Z.split("?");return j+"/"+(H.length>0?`?${H.join("?")}`:"")+O}function gz(_){return _&&_!=="/"}function U1(_,...z){let Z=_||"";for(let O of z.filter((Q)=>gz(Q)))if(Z){let Q=O.replace(kz,"");Z=hz(Z)+Q}else Z=O;return Z}var hZ=Symbol.for("ufo:protocolRelative");var uz=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;var w1=function(_){return uz.test(_)};import{fileURLToPath as U,URL as P,pathToFileURL as p0}from"node:url";import s from"node:assert";import t from"node:process";import f1,{dirname as WO}from"node:path";import iz from"node:v8";import{format as oz,inspect as E1}from"node:util";var j_=new Set(y1);function D1(_){return _.replace(/\\/g,"/")}function o(_,z,Z){let O=[];for(let Q of z.matchAll(_))O.push({...Z,...Q.groups,code:Q[0],start:Q.index,end:(Q.index||0)+Q[0].length});return O}function nz(_){return(_||"").replace(/(\/\/[^\n]*\n|\/\*.*\*\/)/g,"").replace(/\s+/g," ")}function rz(_){let z=_.replace(/{([^}]*)}/,""),Z=z.match(/\* as \s*(\S*)/)?.[1],O=z.split(",").find((Q)=>!/[*{}]/.test(Q))?.trim()||void 0;return{namespacedImport:Z,defaultImport:O}}var sz={}.hasOwnProperty,az=/^([A-Z][a-z\d]*)+$/,tz=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),E={};function C1(_,z="and"){return _.length<3?_.join(` ${z} `):`${_.slice(0,-1).join(", ")}, ${z} ${_[_.length-1]}`}var H_=new Map,ez="__node_internal_",i2;E.ERR_INVALID_ARG_TYPE=h("ERR_INVALID_ARG_TYPE",(_,z,Z)=>{if(s(typeof _==="string","'name' must be a string"),!Array.isArray(z))z=[z];let O="The ";if(_.endsWith(" argument"))O+=`${_} `;else{let $=_.includes(".")?"property":"argument";O+=`"${_}" ${$} `}O+="must be ";let Q=[],j=[],H=[];for(let $ of z)if(s(typeof $==="string","All expected entries have to be of type string"),tz.has($))Q.push($.toLowerCase());else if(az.exec($)===null)s($!=="object",'The value "object" should be written as "Object"'),H.push($);else j.push($);if(j.length>0){let $=Q.indexOf("object");if($!==-1)Q.slice($,1),j.push("Object")}if(Q.length>0){if(O+=`${Q.length>1?"one of type":"of type"} ${C1(Q,"or")}`,j.length>0||H.length>0)O+=" or "}if(j.length>0){if(O+=`an instance of ${C1(j,"or")}`,H.length>0)O+=" or "}if(H.length>0)if(H.length>1)O+=`one of ${C1(H,"or")}`;else{if(H[0].toLowerCase()!==H[0])O+="an ";O+=`${H[0]}`}return O+=`. Received ${Q6(Z)}`,O},TypeError);E.ERR_INVALID_MODULE_SPECIFIER=h("ERR_INVALID_MODULE_SPECIFIER",(_,z,Z=void 0)=>{return`Invalid module "${_}" ${z}${Z?` imported from ${Z}`:""}`},TypeError);E.ERR_INVALID_PACKAGE_CONFIG=h("ERR_INVALID_PACKAGE_CONFIG",(_,z,Z)=>{return`Invalid package config ${_}${z?` while importing ${z}`:""}${Z?`. ${Z}`:""}`},Error);E.ERR_INVALID_PACKAGE_TARGET=h("ERR_INVALID_PACKAGE_TARGET",(_,z,Z,O=!1,Q=void 0)=>{let j=typeof Z==="string"&&!O&&Z.length>0&&!Z.startsWith("./");if(z===".")return s(O===!1),`Invalid "exports" main target ${JSON.stringify(Z)} defined in the package config ${_}package.json${Q?` imported from ${Q}`:""}${j?'; targets must start with "./"':""}`;return`Invalid "${O?"imports":"exports"}" target ${JSON.stringify(Z)} defined for '${z}' in the package config ${_}package.json${Q?` imported from ${Q}`:""}${j?'; targets must start with "./"':""}`},Error);E.ERR_MODULE_NOT_FOUND=h("ERR_MODULE_NOT_FOUND",(_,z,Z=!1)=>{return`Cannot find ${Z?"module":"package"} '${_}' imported from ${z}`},Error);E.ERR_NETWORK_IMPORT_DISALLOWED=h("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);E.ERR_PACKAGE_IMPORT_NOT_DEFINED=h("ERR_PACKAGE_IMPORT_NOT_DEFINED",(_,z,Z)=>{return`Package import specifier "${_}" is not defined${z?` in package ${z}package.json`:""} imported from ${Z}`},TypeError);E.ERR_PACKAGE_PATH_NOT_EXPORTED=h("ERR_PACKAGE_PATH_NOT_EXPORTED",(_,z,Z=void 0)=>{if(z===".")return`No "exports" main defined in ${_}package.json${Z?` imported from ${Z}`:""}`;return`Package subpath '${z}' is not defined by "exports" in ${_}package.json${Z?` imported from ${Z}`:""}`},Error);E.ERR_UNSUPPORTED_DIR_IMPORT=h("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);E.ERR_UNSUPPORTED_RESOLVE_REQUEST=h("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);E.ERR_UNKNOWN_FILE_EXTENSION=h("ERR_UNKNOWN_FILE_EXTENSION",(_,z)=>{return`Unknown file extension "${_}" for ${z}`},TypeError);E.ERR_INVALID_ARG_VALUE=h("ERR_INVALID_ARG_VALUE",(_,z,Z="is invalid")=>{let O=E1(z);if(O.length>128)O=`${O.slice(0,128)}...`;return`The ${_.includes(".")?"property":"argument"} '${_}' ${Z}. Received ${O}`},TypeError);function h(_,z,Z){return H_.set(_,z),_6(Z,_)}function _6(_,z){return Z;function Z(...O){let Q=Error.stackTraceLimit;if(v1())Error.stackTraceLimit=0;let j=new _;if(v1())Error.stackTraceLimit=Q;let H=O6(z,O,j);return Object.defineProperties(j,{message:{value:H,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${z}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),Z6(j),j.code=z,j}}function v1(){try{if(iz.startupSnapshot.isBuildingSnapshot())return!1}catch{}let _=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");if(_===void 0)return Object.isExtensible(Error);return sz.call(_,"writable")&&_.writable!==void 0?_.writable:_.set!==void 0}function z6(_){let z=ez+_.name;return Object.defineProperty(_,"name",{value:z}),_}var Z6=z6(function(_){let z=v1();if(z)i2=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY;if(Error.captureStackTrace(_),z)Error.stackTraceLimit=i2;return _});function O6(_,z,Z){let O=H_.get(_);if(s(O!==void 0,"expected `message` to be found"),typeof O==="function")return s(O.length<=z.length,`Code: ${_}; The provided arguments length (${z.length}) does not match the required ones (${O.length}).`),Reflect.apply(O,Z,z);let Q=/%[dfijoOs]/g,j=0;while(Q.exec(O)!==null)j++;if(s(j===z.length,`Code: ${_}; The provided arguments length (${z.length}) does not match the required ones (${j}).`),z.length===0)return O;return z.unshift(O),Reflect.apply(oz,null,z)}function Q6(_){if(_===null||_===void 0)return String(_);if(typeof _==="function"&&_.name)return`function ${_.name}`;if(typeof _==="object"){if(_.constructor&&_.constructor.name)return`an instance of ${_.constructor.name}`;return`${E1(_,{depth:-1})}`}let z=E1(_,{colors:!1});if(z.length>28)z=`${z.slice(0,25)}...`;return`type ${typeof _} (${z})`}var M0={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:j6}=E,o2=new Map;function R_(_,{base:z,specifier:Z}){let O=o2.get(_);if(O)return O;let Q;try{Q=pz.readFileSync(f1.toNamespacedPath(_),"utf8")}catch(H){let $=H;if($.code!=="ENOENT")throw $}let j={exists:!1,pjsonPath:_,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(Q!==void 0){let H;try{H=JSON.parse(Q)}catch($){let K=$,W=new j6(_,(z?`"${Z}" from `:"")+U(z||Z),K.message);throw W.cause=K,W}if(j.exists=!0,M0.call(H,"name")&&typeof H.name==="string")j.name=H.name;if(M0.call(H,"main")&&typeof H.main==="string")j.main=H.main;if(M0.call(H,"exports"))j.exports=H.exports;if(M0.call(H,"imports"))j.imports=H.imports;if(M0.call(H,"type")&&(H.type==="commonjs"||H.type==="module"))j.type=H.type}return o2.set(_,j),j}function I1(_){let z=new URL("package.json",_);while(!0){if(z.pathname.endsWith("node_modules/package.json"))break;let Q=R_(U(z),{specifier:_});if(Q.exists)return Q;let j=z;if(z=new URL("../package.json",z),z.pathname===j.pathname)break}return{pjsonPath:U(z),exists:!1,type:"none"}}function n2(_){return I1(_).type}var{ERR_UNKNOWN_FILE_EXTENSION:H6}=E,R6={}.hasOwnProperty,$6={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function K6(_){if(_&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(_))return"module";if(_==="application/json")return"json";return null}var r2={__proto__:null,"data:":W6,"file:":G6,"http:":s2,"https:":s2,"node:"(){return"builtin"}};function W6(_){let{1:z}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(_.pathname)||[null,null,null];return K6(z)}function Y6(_){let z=_.pathname,Z=z.length;while(Z--){let O=z.codePointAt(Z);if(O===47)return"";if(O===46)return z.codePointAt(Z-1)===47?"":z.slice(Z)}return""}function G6(_,z,Z){let O=Y6(_);if(O===".js"){let H=n2(_);if(H!=="none")return H;return"commonjs"}if(O===""){let H=n2(_);if(H==="none"||H==="commonjs")return"commonjs";return"module"}let Q=$6[O];if(Q)return Q;if(Z)return;let j=U(_);throw new H6(O,j)}function s2(){}function X6(_,z){let Z=_.protocol;if(!R6.call(r2,Z))return null;return r2[Z](_,z,!0)||null}var m0=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:XO,ERR_INVALID_MODULE_SPECIFIER:c0,ERR_INVALID_PACKAGE_CONFIG:$_,ERR_INVALID_PACKAGE_TARGET:F6,ERR_MODULE_NOT_FOUND:b1,ERR_PACKAGE_IMPORT_NOT_DEFINED:q6,ERR_PACKAGE_PATH_NOT_EXPORTED:A6,ERR_UNSUPPORTED_DIR_IMPORT:V6,ERR_UNSUPPORTED_RESOLVE_REQUEST:a2}=E,K_={}.hasOwnProperty,t2=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,e2=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,B6=/^\.|%|\\/,l0=/\*/g,M6=/%2f|%5c/i,__=new Set,J6=/[/\\]{2}/;function z_(_,z,Z,O,Q,j,H){if(t.noDeprecation)return;let $=U(O),K=J6.exec(H?_:z)!==null;t.emitWarning(`Use of deprecated ${K?"double slash":"leading or trailing slash matching"} resolving "${_}" for module request "${z}" ${z===Z?"":`matched to "${Z}" `}in the "${Q?"imports":"exports"}" field module resolution of the package at ${$}${j?` imported from ${U(j)}`:""}.`,"DeprecationWarning","DEP0166")}function Z_(_,z,Z,O){if(t.noDeprecation)return;if(X6(_,{parentURL:Z.href})!=="module")return;let j=U(_.href),H=U(new P(".",z)),$=U(Z);if(!O)t.emitWarning(`No "main" or "exports" field defined in the package.json for ${H} resolving the main entry point "${j.slice(H.length)}", imported from ${$}.
19
19
  Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151");else if(f1.resolve(H,O)!==j)t.emitWarning(`Package ${H} has a "main" field set to "${O}", excluding the full filename and extension to the resolved file at "${j.slice(H.length)}", imported from ${$}.
20
- Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function W_(_){try{return S1(_)}catch{}}function L1(_){let z=S1(_,{throwIfNoEntry:!1}),Z=z?z.isFile():void 0;return Z===null||Z===void 0?!1:Z}function N6(_,z,Z){let O;if(z.main!==void 0){if(O=new P(z.main,_),L1(O))return O;let H=[`./${z.main}.js`,`./${z.main}.json`,`./${z.main}.node`,`./${z.main}/index.js`,`./${z.main}/index.json`,`./${z.main}/index.node`],$=-1;while(++$<H.length){if(O=new P(H[$],_),L1(O))break;O=void 0}if(O)return Z_(O,_,Z,z.main),O}let Q=["./index.js","./index.json","./index.node"],j=-1;while(++j<Q.length){if(O=new P(Q[j],_),L1(O))break;O=void 0}if(O)return Z_(O,_,Z,z.main),O;throw new b1(U(new P(".",_)),U(Z))}function U6(_,z,Z){if(M6.exec(_.pathname)!==null)throw new c0(_.pathname,'must not include encoded "/" or "\\" characters',U(z));let O;try{O=U(_)}catch(j){let H=j;throw Object.defineProperty(H,"input",{value:String(_)}),Object.defineProperty(H,"module",{value:String(z)}),H}let Q=W_(O.endsWith("/")?O.slice(-1):O);if(Q&&Q.isDirectory()){let j=new V6(O,U(z));throw j.url=String(_),j}if(!Q||!Q.isFile()){let j=new b1(O||_.pathname,z&&U(z),!0);throw j.url=String(_),j}{let j=cz(O),{search:H,hash:$}=_;_=p0(j+(O.endsWith(f1.sep)?"/":"")),_.search=H,_.hash=$}return _}function w6(_,z,Z){return new q6(_,z&&U(new P(".",z)),U(Z))}function P1(_,z,Z){return new A6(U(new P(".",z)),_,Z&&U(Z))}function C6(_,z,Z,O,Q){let j=`request is not a valid match in pattern "${z}" for the "${O?"imports":"exports"}" resolution of ${U(Z)}`;throw new c0(_,j,Q&&U(Q))}function J0(_,z,Z,O,Q){return z=typeof z==="object"&&z!==null?JSON.stringify(z,null,""):`${z}`,new F6(U(new P(".",Z)),_,z,O,Q&&U(Q))}function L6(_,z,Z,O,Q,j,H,$,K){if(z!==""&&!j&&_[_.length-1]!=="/")throw J0(Z,_,O,H,Q);if(!_.startsWith("./")){if(H&&!_.startsWith("../")&&!_.startsWith("/")){let V=!1;try{new P(_),V=!0}catch{}if(!V){let q=j?m0.call(l0,_,()=>z):_+z;return G_(q,O,K)}}throw J0(Z,_,O,H,Q)}if(t2.exec(_.slice(2))!==null)if(e2.exec(_.slice(2))===null){if(!$){let V=j?Z.replace("*",()=>z):Z+z,q=j?m0.call(l0,_,()=>z):_;z_(q,V,Z,O,H,Q,!0)}}else throw J0(Z,_,O,H,Q);let W=new P(_,O),Y=W.pathname,G=new P(".",O).pathname;if(!Y.startsWith(G))throw J0(Z,_,O,H,Q);if(z==="")return W;if(t2.exec(z)!==null){let V=j?Z.replace("*",()=>z):Z+z;if(e2.exec(z)===null){if(!$){let q=j?m0.call(l0,_,()=>z):_;z_(q,V,Z,O,H,Q,!1)}}else C6(V,Z,O,H,Q)}if(j)return new P(m0.call(l0,W.href,()=>z));return new P(z,W)}function P6(_){let z=Number(_);if(`${z}`!==_)return!1;return z>=0&&z<4294967295}function R0(_,z,Z,O,Q,j,H,$,K){if(typeof z==="string")return L6(z,Z,O,_,Q,j,H,$,K);if(Array.isArray(z)){let W=z;if(W.length===0)return null;let Y,G=-1;while(++G<W.length){let V=W[G],q;try{q=R0(_,V,Z,O,Q,j,H,$,K)}catch(C){let B=C;if(Y=B,B.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw C}if(q===void 0)continue;if(q===null){Y=null;continue}return q}if(Y===void 0||Y===null)return null;throw Y}if(typeof z==="object"&&z!==null){let W=Object.getOwnPropertyNames(z),Y=-1;while(++Y<W.length){let G=W[Y];if(P6(G))throw new $_(U(_),Q,'"exports" cannot contain numeric property keys.')}Y=-1;while(++Y<W.length){let G=W[Y];if(G==="default"||K&&K.has(G)){let V=z[G],q=R0(_,V,Z,O,Q,j,H,$,K);if(q===void 0)continue;return q}}return null}if(z===null)return null;throw J0(O,z,_,H,Q)}function T6(_,z,Z){if(typeof _==="string"||Array.isArray(_))return!0;if(typeof _!=="object"||_===null)return!1;let O=Object.getOwnPropertyNames(_),Q=!1,j=0,H=-1;while(++H<O.length){let $=O[H],K=$===""||$[0]!==".";if(j++===0)Q=K;else if(Q!==K)throw new $_(U(z),Z,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return Q}function E6(_,z,Z){if(t.noDeprecation)return;let O=U(z);if(__.has(O+"|"+_))return;__.add(O+"|"+_),t.emitWarning(`Use of deprecated trailing slash pattern mapping "${_}" in the "exports" field module resolution of the package at ${O}${Z?` imported from ${U(Z)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155")}function O_(_,z,Z,O,Q){let j=Z.exports;if(T6(j,_,O))j={".":j};if(K_.call(j,z)&&!z.includes("*")&&!z.endsWith("/")){let Y=j[z],G=R0(_,Y,"",z,O,!1,!1,!1,Q);if(G===null||G===void 0)throw P1(z,_,O);return G}let H="",$="",K=Object.getOwnPropertyNames(j),W=-1;while(++W<K.length){let Y=K[W],G=Y.indexOf("*");if(G!==-1&&z.startsWith(Y.slice(0,G))){if(z.endsWith("/"))E6(z,_,O);let V=Y.slice(G+1);if(z.length>=Y.length&&z.endsWith(V)&&Y_(H,Y)===1&&Y.lastIndexOf("*")===G)H=Y,$=z.slice(G,z.length-V.length)}}if(H){let Y=j[H],G=R0(_,Y,$,H,O,!0,!1,z.endsWith("/"),Q);if(G===null||G===void 0)throw P1(z,_,O);return G}throw P1(z,_,O)}function Y_(_,z){let Z=_.indexOf("*"),O=z.indexOf("*"),Q=Z===-1?_.length:Z+1,j=O===-1?z.length:O+1;if(Q>j)return-1;if(j>Q)return 1;if(Z===-1)return 1;if(O===-1)return-1;if(_.length>z.length)return-1;if(z.length>_.length)return 1;return 0}function D6(_,z,Z){if(_==="#"||_.startsWith("#/")||_.endsWith("/"))throw new c0(_,"is not a valid internal imports specifier name",U(z));let O,Q=I1(z);if(Q.exists){O=p0(Q.pjsonPath);let j=Q.imports;if(j)if(K_.call(j,_)&&!_.includes("*")){let H=R0(O,j[_],"",_,z,!1,!0,!1,Z);if(H!==null&&H!==void 0)return H}else{let H="",$="",K=Object.getOwnPropertyNames(j),W=-1;while(++W<K.length){let Y=K[W],G=Y.indexOf("*");if(G!==-1&&_.startsWith(Y.slice(0,-1))){let V=Y.slice(G+1);if(_.length>=Y.length&&_.endsWith(V)&&Y_(H,Y)===1&&Y.lastIndexOf("*")===G)H=Y,$=_.slice(G,_.length-V.length)}}if(H){let Y=j[H],G=R0(O,Y,$,H,z,!0,!0,!1,Z);if(G!==null&&G!==void 0)return G}}}throw w6(_,O,z)}function v6(_,z){let Z=_.indexOf("/"),O=!0,Q=!1;if(_[0]==="@")if(Q=!0,Z===-1||_.length===0)O=!1;else Z=_.indexOf("/",Z+1);let j=Z===-1?_:_.slice(0,Z);if(B6.exec(j)!==null)O=!1;if(!O)throw new c0(_,"is not a valid package name",U(z));let H="."+(Z===-1?"":_.slice(Z));return{packageName:j,packageSubpath:H,isScoped:Q}}function G_(_,z,Z){if(y1.includes(_))return new P("node:"+_);let{packageName:O,packageSubpath:Q,isScoped:j}=v6(_,z),H=I1(z);if(H.exists){let Y=p0(H.pjsonPath);if(H.name===O&&H.exports!==void 0&&H.exports!==null)return O_(Y,Q,H,z,Z)}let $=new P("./node_modules/"+O+"/package.json",z),K=U($),W;do{let Y=W_(K.slice(0,-13));if(!Y||!Y.isDirectory()){W=K,$=new P((j?"../../../../node_modules/":"../../../node_modules/")+O+"/package.json",$),K=U($);continue}let G=R_(K,{base:z,specifier:_});if(G.exports!==void 0&&G.exports!==null)return O_($,Q,G,z,Z);if(Q===".")return N6($,G,z);return new P(Q,$)}while(K.length!==W.length);throw new b1(O,U(z),!1)}function y6(_){if(_[0]==="."){if(_.length===1||_[1]==="/")return!0;if(_[1]==="."&&(_.length===2||_[2]==="/"))return!0}return!1}function S6(_){if(_==="")return!1;if(_[0]==="/")return!0;return y6(_)}function f6(_,z,Z,O){let Q=z.protocol,H=Q==="data:"||Q==="http:"||Q==="https:",$;if(S6(_))try{$=new P(_,z)}catch(K){let W=new a2(_,z);throw W.cause=K,W}else if(Q==="file:"&&_[0]==="#")$=D6(_,z,Z);else try{$=new P(_)}catch(K){if(H&&!y1.includes(_)){let W=new a2(_,z);throw W.cause=K,W}$=G_(_,z,Z)}if(s($!==void 0,"expected to be defined"),$.protocol!=="file:")return $;return U6($,z)}function N0(_){if(typeof _==="string"&&!_.startsWith("file://"))return D1(_);return D1(U(_))}function T1(_){return p0(N0(_)).toString()}function I6(_){if(typeof _!=="string")_=_.toString();if(/(node|data|http|https|file):/.test(_))return _;if(j_.has(_))return"node:"+_;return"file://"+encodeURI(D1(_))}async function b6(_){return await dz.readFile(N0(_),"utf8")}var k6=new Set(["node","import"]),x6=[".mjs",".cjs",".js",".json"],h6=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function Q_(_,z,Z){try{return f6(_,z,Z)}catch(O){if(!h6.has(O?.code))throw O}}function g6(_,z={}){if(typeof _!=="string")if(_ instanceof URL)_=N0(_);else throw new TypeError("input must be a `string` or `URL`");if(/(node|data|http|https):/.test(_))return _;if(j_.has(_))return"node:"+_;if(_.startsWith("file://"))_=N0(_);if(w1(_))try{if(S1(_).isFile())return T1(_)}catch(H){if(H?.code!=="ENOENT")throw H}let Z=z.conditions?new Set(z.conditions):k6,O=(Array.isArray(z.url)?z.url:[z.url]).filter(Boolean).map((H)=>new URL(I6(H.toString())));if(O.length===0)O.push(new URL(T1(process.cwd())));let Q=[...O];for(let H of O)if(H.protocol==="file:")Q.push(new URL("./",H),new URL(U1(H.pathname,"_index.js"),H),new URL("node_modules",H));let j;for(let H of Q){if(j=Q_(_,H,Z),j)break;for(let $ of["","/index"]){for(let K of z.extensions||x6)if(j=Q_(U1(_,$)+K,H,Z),j)break;if(j)break}if(j)break}if(!j){let H=new Error(`Cannot find module ${_} imported from ${Q.join(", ")}`);throw H.code="ERR_MODULE_NOT_FOUND",H}return T1(j)}function X_(_,z){return g6(_,z)}function FO(_,z){try{return Promise.resolve(X_(_,z))}catch(Z){return Promise.reject(Z)}}function k1(_,z){return N0(X_(_,z))}function u6(_,z){try{return Promise.resolve(k1(_,z))}catch(Z){return Promise.reject(Z)}}var m6=/(?<=\s|^|;|\})import\s*([\s"']*(?<imports>[\p{L}\p{M}\w\t\n\r $*,/{}@.]+)from\s*)?["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gmu;var l6=/\bexport\s+(?<declaration>(async function\s*\*?|function\s*\*?|let|const enum|const|enum|var|class))\s+\*?(?<name>[\w$]+)(?<extraNames>.*,\s*[\s\w:[\]{}]*[\w$\]}]+)*/g,p6=/\bexport\s+(?<declaration>(interface|type|declare (async function|function|let|const enum|const|enum|var|class)))\s+(?<name>[\w$]+)/g,c6=/\bexport\s*{(?<exports>[^}]+?)[\s,]*}(\s*from\s*["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][^\n;]*)?/g,d6=/\bexport\s+type\s*{(?<exports>[^}]+?)[\s,]*}(\s*from\s*["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][^\n;]*)?/g,i6=/\bexport\s+(let|var|const)\s+(?:{(?<exports1>[^}]+?)[\s,]*}|\[(?<exports2>[^\]]+?)[\s,]*])\s+=/gm,o6=/\bexport\s*(\*)(\s*as\s+(?<name>[\w$]+)\s+)?\s*(\s*from\s*["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][^\n;]*)?/g,n6=/\bexport\s+default\s+(async function|function|class|true|false|\W|\d)|\bexport\s+default\s+(?<defaultName>.*)/g,x1=/^\s*?type\s/;function F_(_){return h1(g1(_,"import"),o(m6,_,{type:"static"}))}function q_(_){let z=nz(_.imports),Z={},O=z.match(/{([^}]*)}/)?.[1]?.split(",")||[];for(let H of O){let $=H.match(/^\s*(\S*) as (\S*)\s*$/),K=$?.[1]||H.trim(),W=$?.[2]||K;if(K&&!x1.test(K))Z[K]=W}let{namespacedImport:Q,defaultImport:j}=rz(z);return{..._,defaultImport:j,namespacedImport:Q,namedImports:Z}}function r6(_){let z=o(l6,_,{type:"declaration"});for(let K of z){let W=K.extraNames;if(W){let Y=o(/({.*?})|(\[.*?])|(,\s*(?<name>\w+))/g,W,{}).map((G)=>G.name).filter(Boolean);K.names=[K.name,...Y]}delete K.extraNames}let Z=V_(o(c6,_,{type:"named"})),O=o(i6,_,{type:"named"});for(let K of O)K.exports=K.exports1||K.exports2,K.names=K.exports.replace(/^\r?\n?/,"").split(/\s*,\s*/g).filter((W)=>!x1.test(W)).map((W)=>W.replace(/^.*?\s*:\s*/,"").replace(/\s*=\s*.*$/,"").trim());let Q=o(n6,_,{type:"default",name:"default"}),j=o(o6,_,{type:"star"}),H=A_([...z,...Z,...O,...Q,...j]);if(H.length===0)return[];let $=g1(_,"export");if($&&$.length===0)return[];return h1($,H).filter((K,W,Y)=>{let G=Y[W+1];return!G||K.type!==G.type||!K.name||K.name!==G.name})}function qO(_){let z=o(p6,_,{type:"declaration"}),Z=V_(o(d6,_,{type:"named"})),O=A_([...z,...Z]);if(O.length===0)return[];let Q=g1(_,"export");if(Q&&Q.length===0)return[];return h1(Q,O).filter((j,H,$)=>{let K=$[H+1];return!K||j.type!==K.type||!j.name||j.name!==K.name})}function A_(_){for(let z of _){if(!z.name&&z.names&&z.names.length===1)z.name=z.names[0];if(z.name==="default"&&z.type!=="default")z._type=z.type,z.type="default";if(!z.names&&z.name)z.names=[z.name];if(z.type==="declaration"&&z.declaration)z.declarationType=z.declaration.replace(/^declare\s*/,"")}return _}function V_(_){for(let z of _)z.names=z.exports.replace(/^\r?\n?/,"").split(/\s*,\s*/g).filter((Z)=>!x1.test(Z)).map((Z)=>Z.replace(/^.*?\sas\s/,"").trim());return _}async function s6(_,z){let Z=await u6(_,z),O=await b6(Z),Q=r6(O),j=new Set(Q.flatMap((H)=>H.names).filter(Boolean));for(let H of Q){if(H.type!=="star"||!H.specifier)continue;let $=await s6(H.specifier,{...z,url:Z});for(let K of $)j.add(K)}return[...j]}function h1(_,z){return z.filter((Z)=>{return!_||_.some((O)=>{return Z.start<=O.start&&Z.end>=O.end})})}function g1(_,z){try{return a6(_,z)}catch{}}function a6(_,z){let Z=d2(_,{ecmaVersion:"latest",sourceType:"module",allowHashBang:!0,allowAwaitOutsideFunction:!0,allowImportExportEverywhere:!0}),O=[];for(let Q of Z)if(Q.type.label===z)O.push({start:Q.start,end:Q.end});return O}var t6=/([\s;]|^)(import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,e6=/([\s;]|^)(module.exports\b|exports\.\w|require\s*\(|global\.\w)/m,u1=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function _Z(_,z={}){if(z.stripComments)_=_.replace(u1,"");return t6.test(_)}function zZ(_,z={}){if(z.stripComments)_=_.replace(u1,"");return e6.test(_)}function AO(_,z={}){if(z.stripComments)_=_.replace(u1,"");let Z=_Z(_,{}),O=zZ(_,{});return{hasESM:Z,hasCJS:O,isMixed:Z&&O}}var w_=QZ(U_(),1);function jZ(_,z){let Z=z?.fillChar??" ",O=" ",Q="",j=z?.filter??(()=>!0),H=[];for(let $ of w_.default(_,{jsx:!1})){if(H.push($),$.type==="SingleLineComment"){Q+=" ".repeat($.value.length);continue}if($.type==="MultiLineComment"){Q+=$.value.replace(/[^\n]/g," ");continue}if($.type==="StringLiteral"){if(!$.closed){Q+=$.value;continue}let K=$.value.slice(1,-1);if(j(K)){Q+=$.value[0]+Z.repeat(K.length)+$.value[$.value.length-1];continue}}if($.type==="NoSubstitutionTemplate"){let K=$.value.slice(1,-1);if(j(K)){Q+=`\`${K.replace(/[^\n]/g,Z)}\``;continue}}if($.type==="RegularExpressionLiteral"){let K=$.value;if(j(K)){Q+=K.replace(/\/(.*)\/(\w?)$/g,(W,Y,G)=>`/${Z.repeat(Y.length)}/${G}`);continue}}if($.type==="TemplateHead"){let K=$.value.slice(1,-2);if(j(K)){Q+=`\`${K.replace(/[^\n]/g,Z)}\${`;continue}}if($.type==="TemplateTail"){let K=$.value.slice(0,-2);if(j(K)){Q+=`}${K.replace(/[^\n]/g,Z)}\``;continue}}if($.type==="TemplateMiddle"){let K=$.value.slice(1,-2);if(j(K)){Q+=`}${K.replace(/[^\n]/g,Z)}\${`;continue}}Q+=$.value}return{result:Q,tokens:H}}function C_(_,z){return HZ(_,z).result}function HZ(_,z){return jZ(_,z)}import{basename as L_}from"path";import RZ from"process";var TO=[/\b(import|export)\b([\w$*{},\s]+?)\bfrom\s*["']/g,/\bfunction\s*([\w$]+)\s*\(/g,/\bclass\s*([\w$]+)\s*\{/g,/\b(?:const|let|var)\s+?(\[.*?\]|\{.*?\}|.+?)\s*?[=;\n]/gs],EO=/^.*\sas\s+/,DO=/[,[\]{}\n]|\b(?:import|export)\b/g,vO=/(^|\.\.\.|(?:\bcase|\?)\s+|[^\w$/)]|\bextends\s+)([\w$]+)\s*(?=[.()[\]}:;?+\-*&|`<>,\n]|\b(?:instanceof|in)\b|$|(?<=extends\s+\w+)\s+\{)/g,$Z=/\/\S*?(?<!\\)(?<!\[[^\]]*)\/[gimsuy]*/g;function KZ(_,z){return C_(_,z).replace($Z,'new RegExp("")')}function yO(_){return _}var WZ=/^[a-z$_][\w$]*$/i;function L0(_){let z="";for(let Z=Object.entries(_),O=Z.length,Q=0;Q<O;Q++){let[j,H]=Z[Q];if(z+=WZ.test(j)?j:JSON.stringify(j),z+=`: ${JSON.stringify(String(H))}`,Q+1!==O)z+=", "}return`{ ${z} }`}function Q1(_,z=!1){let Z=P_(_);return Object.entries(Z).flatMap(([O,Q])=>{let j=[],H=Array.from(Q).filter(($)=>{if(!$.name||$.as===""){let K;if(z)K=`require('${O}');`;else{if(K=`import '${O}'`,$.with)K+=` with ${L0($.with)}`;K+=";"}return j.push(K),!1}else if($.name==="default"||$.name==="="){let K;if(z)K=$.name==="="?`const ${$.as} = require('${O}');`:`const { default: ${$.as} } = require('${O}');`;else{if(K=`import ${$.as} from '${O}'`,$.with)K+=` with ${L0($.with)}`;K+=";"}return j.push(K),!1}else if($.name==="*"){let K;if(z)K=`const ${$.as} = require('${O}');`;else{if(K=`import * as ${$.as} from '${O}'`,$.with)K+=` with ${L0($.with)}`;K+=";"}return j.push(K),!1}else if(!z&&$.with)return j.push(`import { ${O1($)} } from '${O}' with ${L0($.with)};`),!1;return!0});if(H.length){let $=H.map((K)=>O1(K,z));j.push(z?`const { ${$.join(", ")} } = require('${O}');`:`import { ${$.join(", ")} } from '${O}';`)}return j}).join(`
20
+ Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function W_(_){try{return S1(_)}catch{}}function L1(_){let z=S1(_,{throwIfNoEntry:!1}),Z=z?z.isFile():void 0;return Z===null||Z===void 0?!1:Z}function N6(_,z,Z){let O;if(z.main!==void 0){if(O=new P(z.main,_),L1(O))return O;let H=[`./${z.main}.js`,`./${z.main}.json`,`./${z.main}.node`,`./${z.main}/index.js`,`./${z.main}/index.json`,`./${z.main}/index.node`],$=-1;while(++$<H.length){if(O=new P(H[$],_),L1(O))break;O=void 0}if(O)return Z_(O,_,Z,z.main),O}let Q=["./index.js","./index.json","./index.node"],j=-1;while(++j<Q.length){if(O=new P(Q[j],_),L1(O))break;O=void 0}if(O)return Z_(O,_,Z,z.main),O;throw new b1(U(new P(".",_)),U(Z))}function U6(_,z,Z){if(M6.exec(_.pathname)!==null)throw new c0(_.pathname,'must not include encoded "/" or "\\" characters',U(z));let O;try{O=U(_)}catch(j){let H=j;throw Object.defineProperty(H,"input",{value:String(_)}),Object.defineProperty(H,"module",{value:String(z)}),H}let Q=W_(O.endsWith("/")?O.slice(-1):O);if(Q&&Q.isDirectory()){let j=new V6(O,U(z));throw j.url=String(_),j}if(!Q||!Q.isFile()){let j=new b1(O||_.pathname,z&&U(z),!0);throw j.url=String(_),j}{let j=cz(O),{search:H,hash:$}=_;_=p0(j+(O.endsWith(f1.sep)?"/":"")),_.search=H,_.hash=$}return _}function w6(_,z,Z){return new q6(_,z&&U(new P(".",z)),U(Z))}function P1(_,z,Z){return new A6(U(new P(".",z)),_,Z&&U(Z))}function C6(_,z,Z,O,Q){let j=`request is not a valid match in pattern "${z}" for the "${O?"imports":"exports"}" resolution of ${U(Z)}`;throw new c0(_,j,Q&&U(Q))}function J0(_,z,Z,O,Q){return z=typeof z==="object"&&z!==null?JSON.stringify(z,null,""):`${z}`,new F6(U(new P(".",Z)),_,z,O,Q&&U(Q))}function L6(_,z,Z,O,Q,j,H,$,K){if(z!==""&&!j&&_[_.length-1]!=="/")throw J0(Z,_,O,H,Q);if(!_.startsWith("./")){if(H&&!_.startsWith("../")&&!_.startsWith("/")){let V=!1;try{new P(_),V=!0}catch{}if(!V){let q=j?m0.call(l0,_,()=>z):_+z;return G_(q,O,K)}}throw J0(Z,_,O,H,Q)}if(t2.exec(_.slice(2))!==null)if(e2.exec(_.slice(2))===null){if(!$){let V=j?Z.replace("*",()=>z):Z+z,q=j?m0.call(l0,_,()=>z):_;z_(q,V,Z,O,H,Q,!0)}}else throw J0(Z,_,O,H,Q);let W=new P(_,O),Y=W.pathname,G=new P(".",O).pathname;if(!Y.startsWith(G))throw J0(Z,_,O,H,Q);if(z==="")return W;if(t2.exec(z)!==null){let V=j?Z.replace("*",()=>z):Z+z;if(e2.exec(z)===null){if(!$){let q=j?m0.call(l0,_,()=>z):_;z_(q,V,Z,O,H,Q,!1)}}else C6(V,Z,O,H,Q)}if(j)return new P(m0.call(l0,W.href,()=>z));return new P(z,W)}function P6(_){let z=Number(_);if(`${z}`!==_)return!1;return z>=0&&z<4294967295}function R0(_,z,Z,O,Q,j,H,$,K){if(typeof z==="string")return L6(z,Z,O,_,Q,j,H,$,K);if(Array.isArray(z)){let W=z;if(W.length===0)return null;let Y,G=-1;while(++G<W.length){let V=W[G],q;try{q=R0(_,V,Z,O,Q,j,H,$,K)}catch(C){let B=C;if(Y=B,B.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw C}if(q===void 0)continue;if(q===null){Y=null;continue}return q}if(Y===void 0||Y===null)return null;throw Y}if(typeof z==="object"&&z!==null){let W=Object.getOwnPropertyNames(z),Y=-1;while(++Y<W.length){let G=W[Y];if(P6(G))throw new $_(U(_),Q,'"exports" cannot contain numeric property keys.')}Y=-1;while(++Y<W.length){let G=W[Y];if(G==="default"||K&&K.has(G)){let V=z[G],q=R0(_,V,Z,O,Q,j,H,$,K);if(q===void 0)continue;return q}}return null}if(z===null)return null;throw J0(O,z,_,H,Q)}function T6(_,z,Z){if(typeof _==="string"||Array.isArray(_))return!0;if(typeof _!=="object"||_===null)return!1;let O=Object.getOwnPropertyNames(_),Q=!1,j=0,H=-1;while(++H<O.length){let $=O[H],K=$===""||$[0]!==".";if(j++===0)Q=K;else if(Q!==K)throw new $_(U(z),Z,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return Q}function E6(_,z,Z){if(t.noDeprecation)return;let O=U(z);if(__.has(O+"|"+_))return;__.add(O+"|"+_),t.emitWarning(`Use of deprecated trailing slash pattern mapping "${_}" in the "exports" field module resolution of the package at ${O}${Z?` imported from ${U(Z)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155")}function O_(_,z,Z,O,Q){let j=Z.exports;if(T6(j,_,O))j={".":j};if(K_.call(j,z)&&!z.includes("*")&&!z.endsWith("/")){let Y=j[z],G=R0(_,Y,"",z,O,!1,!1,!1,Q);if(G===null||G===void 0)throw P1(z,_,O);return G}let H="",$="",K=Object.getOwnPropertyNames(j),W=-1;while(++W<K.length){let Y=K[W],G=Y.indexOf("*");if(G!==-1&&z.startsWith(Y.slice(0,G))){if(z.endsWith("/"))E6(z,_,O);let V=Y.slice(G+1);if(z.length>=Y.length&&z.endsWith(V)&&Y_(H,Y)===1&&Y.lastIndexOf("*")===G)H=Y,$=z.slice(G,z.length-V.length)}}if(H){let Y=j[H],G=R0(_,Y,$,H,O,!0,!1,z.endsWith("/"),Q);if(G===null||G===void 0)throw P1(z,_,O);return G}throw P1(z,_,O)}function Y_(_,z){let Z=_.indexOf("*"),O=z.indexOf("*"),Q=Z===-1?_.length:Z+1,j=O===-1?z.length:O+1;if(Q>j)return-1;if(j>Q)return 1;if(Z===-1)return 1;if(O===-1)return-1;if(_.length>z.length)return-1;if(z.length>_.length)return 1;return 0}function D6(_,z,Z){if(_==="#"||_.startsWith("#/")||_.endsWith("/"))throw new c0(_,"is not a valid internal imports specifier name",U(z));let O,Q=I1(z);if(Q.exists){O=p0(Q.pjsonPath);let j=Q.imports;if(j)if(K_.call(j,_)&&!_.includes("*")){let H=R0(O,j[_],"",_,z,!1,!0,!1,Z);if(H!==null&&H!==void 0)return H}else{let H="",$="",K=Object.getOwnPropertyNames(j),W=-1;while(++W<K.length){let Y=K[W],G=Y.indexOf("*");if(G!==-1&&_.startsWith(Y.slice(0,-1))){let V=Y.slice(G+1);if(_.length>=Y.length&&_.endsWith(V)&&Y_(H,Y)===1&&Y.lastIndexOf("*")===G)H=Y,$=_.slice(G,_.length-V.length)}}if(H){let Y=j[H],G=R0(O,Y,$,H,z,!0,!0,!1,Z);if(G!==null&&G!==void 0)return G}}}throw w6(_,O,z)}function v6(_,z){let Z=_.indexOf("/"),O=!0,Q=!1;if(_[0]==="@")if(Q=!0,Z===-1||_.length===0)O=!1;else Z=_.indexOf("/",Z+1);let j=Z===-1?_:_.slice(0,Z);if(B6.exec(j)!==null)O=!1;if(!O)throw new c0(_,"is not a valid package name",U(z));let H="."+(Z===-1?"":_.slice(Z));return{packageName:j,packageSubpath:H,isScoped:Q}}function G_(_,z,Z){if(y1.includes(_))return new P("node:"+_);let{packageName:O,packageSubpath:Q,isScoped:j}=v6(_,z),H=I1(z);if(H.exists){let Y=p0(H.pjsonPath);if(H.name===O&&H.exports!==void 0&&H.exports!==null)return O_(Y,Q,H,z,Z)}let $=new P("./node_modules/"+O+"/package.json",z),K=U($),W;do{let Y=W_(K.slice(0,-13));if(!Y||!Y.isDirectory()){W=K,$=new P((j?"../../../../node_modules/":"../../../node_modules/")+O+"/package.json",$),K=U($);continue}let G=R_(K,{base:z,specifier:_});if(G.exports!==void 0&&G.exports!==null)return O_($,Q,G,z,Z);if(Q===".")return N6($,G,z);return new P(Q,$)}while(K.length!==W.length);throw new b1(O,U(z),!1)}function y6(_){if(_[0]==="."){if(_.length===1||_[1]==="/")return!0;if(_[1]==="."&&(_.length===2||_[2]==="/"))return!0}return!1}function S6(_){if(_==="")return!1;if(_[0]==="/")return!0;return y6(_)}function f6(_,z,Z,O){let Q=z.protocol,H=Q==="data:"||Q==="http:"||Q==="https:",$;if(S6(_))try{$=new P(_,z)}catch(K){let W=new a2(_,z);throw W.cause=K,W}else if(Q==="file:"&&_[0]==="#")$=D6(_,z,Z);else try{$=new P(_)}catch(K){if(H&&!y1.includes(_)){let W=new a2(_,z);throw W.cause=K,W}$=G_(_,z,Z)}if(s($!==void 0,"expected to be defined"),$.protocol!=="file:")return $;return U6($,z)}function N0(_){if(typeof _==="string"&&!_.startsWith("file://"))return D1(_);return D1(U(_))}function T1(_){return p0(N0(_)).toString()}function I6(_){if(typeof _!=="string")_=_.toString();if(/(node|data|http|https|file):/.test(_))return _;if(j_.has(_))return"node:"+_;return"file://"+encodeURI(D1(_))}async function b6(_){return await dz.readFile(N0(_),"utf8")}var k6=new Set(["node","import"]),x6=[".mjs",".cjs",".js",".json"],h6=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function Q_(_,z,Z){try{return f6(_,z,Z)}catch(O){if(!h6.has(O?.code))throw O}}function g6(_,z={}){if(typeof _!=="string")if(_ instanceof URL)_=N0(_);else throw new TypeError("input must be a `string` or `URL`");if(/(node|data|http|https):/.test(_))return _;if(j_.has(_))return"node:"+_;if(_.startsWith("file://"))_=N0(_);if(w1(_))try{if(S1(_).isFile())return T1(_)}catch(H){if(H?.code!=="ENOENT")throw H}let Z=z.conditions?new Set(z.conditions):k6,O=(Array.isArray(z.url)?z.url:[z.url]).filter(Boolean).map((H)=>new URL(I6(H.toString())));if(O.length===0)O.push(new URL(T1(process.cwd())));let Q=[...O];for(let H of O)if(H.protocol==="file:")Q.push(new URL("./",H),new URL(U1(H.pathname,"_index.js"),H),new URL("node_modules",H));let j;for(let H of Q){if(j=Q_(_,H,Z),j)break;for(let $ of["","/index"]){for(let K of z.extensions||x6)if(j=Q_(U1(_,$)+K,H,Z),j)break;if(j)break}if(j)break}if(!j){let H=new Error(`Cannot find module ${_} imported from ${Q.join(", ")}`);throw H.code="ERR_MODULE_NOT_FOUND",H}return T1(j)}function X_(_,z){return g6(_,z)}function FO(_,z){try{return Promise.resolve(X_(_,z))}catch(Z){return Promise.reject(Z)}}function k1(_,z){return N0(X_(_,z))}function u6(_,z){try{return Promise.resolve(k1(_,z))}catch(Z){return Promise.reject(Z)}}var m6=/(?<=\s|^|;|\})import\s*([\s"']*(?<imports>[\p{L}\p{M}\w\t\n\r $*,/{}@.]+)from\s*)?["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gmu;var l6=/\bexport\s+(?<declaration>(async function\s*\*?|function\s*\*?|let|const enum|const|enum|var|class))\s+\*?(?<name>[\w$]+)(?<extraNames>.*,\s*[\s\w:[\]{}]*[\w$\]}]+)*/g,p6=/\bexport\s+(?<declaration>(interface|type|declare (async function|function|let|const enum|const|enum|var|class)))\s+(?<name>[\w$]+)/g,c6=/\bexport\s*{(?<exports>[^}]+?)[\s,]*}(\s*from\s*["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][^\n;]*)?/g,d6=/\bexport\s+type\s*{(?<exports>[^}]+?)[\s,]*}(\s*from\s*["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][^\n;]*)?/g,i6=/\bexport\s+(let|var|const)\s+(?:{(?<exports1>[^}]+?)[\s,]*}|\[(?<exports2>[^\]]+?)[\s,]*])\s+=/gm,o6=/\bexport\s*(\*)(\s*as\s+(?<name>[\w$]+)\s+)?\s*(\s*from\s*["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][^\n;]*)?/g,n6=/\bexport\s+default\s+(async function|function|class|true|false|\W|\d)|\bexport\s+default\s+(?<defaultName>.*)/g,x1=/^\s*?type\s/;function F_(_){return h1(g1(_,"import"),o(m6,_,{type:"static"}))}function q_(_){let z=nz(_.imports),Z={},O=z.match(/{([^}]*)}/)?.[1]?.split(",")||[];for(let H of O){let $=H.match(/^\s*(\S*) as (\S*)\s*$/),K=$?.[1]||H.trim(),W=$?.[2]||K;if(K&&!x1.test(K))Z[K]=W}let{namespacedImport:Q,defaultImport:j}=rz(z);return{..._,defaultImport:j,namespacedImport:Q,namedImports:Z}}function r6(_){let z=o(l6,_,{type:"declaration"});for(let K of z){let W=K.extraNames;if(W){let Y=o(/({.*?})|(\[.*?])|(,\s*(?<name>\w+))/g,W,{}).map((G)=>G.name).filter(Boolean);K.names=[K.name,...Y]}delete K.extraNames}let Z=V_(o(c6,_,{type:"named"})),O=o(i6,_,{type:"named"});for(let K of O)K.exports=K.exports1||K.exports2,K.names=K.exports.replace(/^\r?\n?/,"").split(/\s*,\s*/g).filter((W)=>!x1.test(W)).map((W)=>W.replace(/^.*?\s*:\s*/,"").replace(/\s*=\s*.*$/,"").trim());let Q=o(n6,_,{type:"default",name:"default"}),j=o(o6,_,{type:"star"}),H=A_([...z,...Z,...O,...Q,...j]);if(H.length===0)return[];let $=g1(_,"export");if($&&$.length===0)return[];return h1($,H).filter((K,W,Y)=>{let G=Y[W+1];return!G||K.type!==G.type||!K.name||K.name!==G.name})}function qO(_){let z=o(p6,_,{type:"declaration"}),Z=V_(o(d6,_,{type:"named"})),O=A_([...z,...Z]);if(O.length===0)return[];let Q=g1(_,"export");if(Q&&Q.length===0)return[];return h1(Q,O).filter((j,H,$)=>{let K=$[H+1];return!K||j.type!==K.type||!j.name||j.name!==K.name})}function A_(_){for(let z of _){if(!z.name&&z.names&&z.names.length===1)z.name=z.names[0];if(z.name==="default"&&z.type!=="default")z._type=z.type,z.type="default";if(!z.names&&z.name)z.names=[z.name];if(z.type==="declaration"&&z.declaration)z.declarationType=z.declaration.replace(/^declare\s*/,"")}return _}function V_(_){for(let z of _)z.names=z.exports.replace(/^\r?\n?/,"").split(/\s*,\s*/g).filter((Z)=>!x1.test(Z)).map((Z)=>Z.replace(/^.*?\sas\s/,"").trim());return _}async function s6(_,z){let Z=await u6(_,z),O=await b6(Z),Q=r6(O),j=new Set(Q.flatMap((H)=>H.names).filter(Boolean));for(let H of Q){if(H.type!=="star"||!H.specifier)continue;let $=await s6(H.specifier,{...z,url:Z});for(let K of $)j.add(K)}return[...j]}function h1(_,z){return z.filter((Z)=>{return!_||_.some((O)=>{return Z.start<=O.start&&Z.end>=O.end})})}function g1(_,z){try{return a6(_,z)}catch{}}function a6(_,z){let Z=d2(_,{ecmaVersion:"latest",sourceType:"module",allowHashBang:!0,allowAwaitOutsideFunction:!0,allowImportExportEverywhere:!0}),O=[];for(let Q of Z)if(Q.type.label===z)O.push({start:Q.start,end:Q.end});return O}var t6=/([\s;]|^)(import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,e6=/([\s;]|^)(module.exports\b|exports\.\w|require\s*\(|global\.\w)/m,u1=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function _Z(_,z={}){if(z.stripComments)_=_.replace(u1,"");return t6.test(_)}function zZ(_,z={}){if(z.stripComments)_=_.replace(u1,"");return e6.test(_)}function AO(_,z={}){if(z.stripComments)_=_.replace(u1,"");let Z=_Z(_,{}),O=zZ(_,{});return{hasESM:Z,hasCJS:O,isMixed:Z&&O}}var w_=QZ(U_(),1);function jZ(_,z){let Z=z?.fillChar??" ",O=" ",Q="",j=z?.filter??(()=>!0),H=[];for(let $ of w_.default(_,{jsx:!1})){if(H.push($),$.type==="SingleLineComment"){Q+=" ".repeat($.value.length);continue}if($.type==="MultiLineComment"){Q+=$.value.replace(/[^\n]/g," ");continue}if($.type==="StringLiteral"){if(!$.closed){Q+=$.value;continue}let K=$.value.slice(1,-1);if(j(K)){Q+=$.value[0]+Z.repeat(K.length)+$.value[$.value.length-1];continue}}if($.type==="NoSubstitutionTemplate"){let K=$.value.slice(1,-1);if(j(K)){Q+=`\`${K.replace(/[^\n]/g,Z)}\``;continue}}if($.type==="RegularExpressionLiteral"){let K=$.value;if(j(K)){Q+=K.replace(/\/(.*)\/(\w?)$/g,(W,Y,G)=>`/${Z.repeat(Y.length)}/${G}`);continue}}if($.type==="TemplateHead"){let K=$.value.slice(1,-2);if(j(K)){Q+=`\`${K.replace(/[^\n]/g,Z)}\${`;continue}}if($.type==="TemplateTail"){let K=$.value.slice(0,-2);if(j(K)){Q+=`}${K.replace(/[^\n]/g,Z)}\``;continue}}if($.type==="TemplateMiddle"){let K=$.value.slice(1,-2);if(j(K)){Q+=`}${K.replace(/[^\n]/g,Z)}\${`;continue}}Q+=$.value}return{result:Q,tokens:H}}function C_(_,z){return HZ(_,z).result}function HZ(_,z){return jZ(_,z)}import{basename as L_}from"node:path";import RZ from"node:process";var TO=[/\b(import|export)\b([\w$*{},\s]+?)\bfrom\s*["']/g,/\bfunction\s*([\w$]+)\s*\(/g,/\bclass\s*([\w$]+)\s*\{/g,/\b(?:const|let|var)\s+?(\[.*?\]|\{.*?\}|.+?)\s*?[=;\n]/gs],EO=/^.*\sas\s+/,DO=/[,[\]{}\n]|\b(?:import|export)\b/g,vO=/(^|\.\.\.|(?:\bcase|\?)\s+|[^\w$/)]|\bextends\s+)([\w$]+)\s*(?=[.()[\]}:;?+\-*&|`<>,\n]|\b(?:instanceof|in)\b|$|(?<=extends\s+\w+)\s+\{)/g,$Z=/\/\S*?(?<!\\)(?<!\[[^\]]*)\/[gimsuy]*/g;function KZ(_,z){return C_(_,z).replace($Z,'new RegExp("")')}function yO(_){return _}var WZ=/^[a-z$_][\w$]*$/i;function L0(_){let z="";for(let Z=Object.entries(_),O=Z.length,Q=0;Q<O;Q++){let[j,H]=Z[Q];if(z+=WZ.test(j)?j:JSON.stringify(j),z+=`: ${JSON.stringify(String(H))}`,Q+1!==O)z+=", "}return`{ ${z} }`}function Q1(_,z=!1){let Z=P_(_);return Object.entries(Z).flatMap(([O,Q])=>{let j=[],H=Array.from(Q).filter(($)=>{if(!$.name||$.as===""){let K;if(z)K=`require('${O}');`;else{if(K=`import '${O}'`,$.with)K+=` with ${L0($.with)}`;K+=";"}return j.push(K),!1}else if($.name==="default"||$.name==="="){let K;if(z)K=$.name==="="?`const ${$.as} = require('${O}');`:`const { default: ${$.as} } = require('${O}');`;else{if(K=`import ${$.as} from '${O}'`,$.with)K+=` with ${L0($.with)}`;K+=";"}return j.push(K),!1}else if($.name==="*"){let K;if(z)K=`const ${$.as} = require('${O}');`;else{if(K=`import * as ${$.as} from '${O}'`,$.with)K+=` with ${L0($.with)}`;K+=";"}return j.push(K),!1}else if(!z&&$.with)return j.push(`import { ${O1($)} } from '${O}' with ${L0($.with)};`),!1;return!0});if(H.length){let $=H.map((K)=>O1(K,z));j.push(z?`const { ${$.join(", ")} } = require('${O}');`:`import { ${$.join(", ")} } from '${O}';`)}return j}).join(`
21
21
  `)}function SO(_,z){let Z=new Map,O=new Set;return _.filter((Q)=>!Q.disabled).forEach((Q,j)=>{if(Q.declarationType==="enum"||Q.declarationType==="class")return;let H=Q.as??Q.name;if(!Z.has(H)){Z.set(H,j);return}let $=_[Z.get(H)];if($.from===Q.from){O.add(j);return}let K=($.priority||1)-(Q.priority||1);if(K===0)z(`Duplicated imports "${H}", the one from "${$.from}" has been ignored and "${Q.from}" is used`);if(K<=0)O.add(Z.get(H)),Z.set(H,j);else O.add(j)}),_.filter((Q,j)=>!O.has(j))}function fO(_,z,Z=!1){let O=P_(_,Z);return Object.entries(O).flatMap(([Q,j])=>{if(FZ(Q))Q=Q.replace(/\.[a-z]+$/i,"");if(z&&l(Q)){if(Q=H1(z,Q),!Q.match(/^[./]/))Q=`./${Q}`}let H=[],$=Array.from(j).filter((K)=>{if(K.name==="*")return H.push(`export * as ${K.as} from '${Q}';`),!1;return!0});if($.length)H.push(`export { ${$.map((K)=>O1(K,!1)).join(", ")} } from '${Q}';`);return H}).join(`
22
22
  `)}function p1(_){return _.replace(/\.[a-z]+$/i,"")}function YZ(_,z){return _.map((Z)=>{let O=z?.resolvePath?.(Z)||p1(Z.typeFrom||Z.from),Q="";if(Z.with)Q+=`import('${O}', { with: ${L0(Z.with)} })`;else Q+=`import('${O}')`;if(Z.name!=="*"&&Z.name!=="=")Q+=`['${Z.name}']`;return`const ${Z.as}: typeof ${Q}`}).sort()}function IO(_,z){let Z=YZ(_,z),{exportHelper:O=!0}=z||{},Q="";if(O)Q+=`export {}
23
23
  `;return Q+=`declare global {
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Ia as gr,Ja as jr,Ka as nr,La as ir,Ma as Ir,Na as ar,Oa as Se,Pa as fr,Qa as kr,Ra as Nr,Sa as we,Ta as wr,Ua as Ne,Va as Cr,Wa as Ar,Xa as Gr,Ya as Hr,Za as Lr,_a as mr}from"./chunk-rjjeq0tb.js";import{pc as Oe,qc as $r,rc as B,sc as Tr,tc as E,uc as w}from"./chunk-59wz96e5.js";import{Ac as Sr,Cc as Mr,wc as hr,zc as Pr}from"./chunk-51z2y1an.js";import"./chunk-x50q43zy.js";import"./chunk-1xg8yqzr.js";import"./chunk-yen4jxhm.js";import{Wc as d}from"./chunk-0pctvmzj.js";var H=d((X)=>{Object.defineProperty(X,"__esModule",{value:!0});X.resolveHttpAuthSchemeConfig=X.defaultSSOOIDCHttpAuthSchemeProvider=X.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var xe=w(),K=Oe(),ce=async(e,r,l)=>{return{operation:K.getSmithyContext(r).operation,region:await K.normalizeProvider(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};X.defaultSSOOIDCHttpAuthSchemeParametersProvider=ce;function oe(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(r,l)=>({signingProperties:{config:r,context:l}})}}function ue(e){return{schemeId:"smithy.api#noAuth"}}var pe=(e)=>{let r=[];switch(e.operation){case"CreateToken":{r.push(ue(e));break}default:r.push(oe(e))}return r};X.defaultSSOOIDCHttpAuthSchemeProvider=pe;var te=(e)=>{let r=xe.resolveAwsSdkSigV4Config(e);return Object.assign(r,{})};X.resolveHttpAuthSchemeConfig=te});var p=d((o)=>{Object.defineProperty(o,"__esModule",{value:!0});o.ruleSet=void 0;var m="required",S="fn",N="argv",U="ref",J=!0,Q="isSet",k="booleanEquals",F="error",_="endpoint",s="tree",L="PartitionResult",V="getAttr",Z={[m]:!1,type:"String"},$={[m]:!0,default:!1,type:"Boolean"},h={[U]:"Endpoint"},O={[S]:k,[N]:[{[U]:"UseFIPS"},!0]},x={[S]:k,[N]:[{[U]:"UseDualStack"},!0]},P={},g={[S]:V,[N]:[{[U]:L},"supportsFIPS"]},c={[U]:L},j={[S]:k,[N]:[!0,{[S]:V,[N]:[c,"supportsDualStack"]}]},n=[O],a=[x],f=[{[U]:"Region"}],lr={version:"1.0",parameters:{Region:Z,UseDualStack:$,UseFIPS:$,Endpoint:Z},rules:[{conditions:[{[S]:Q,[N]:[h]}],rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:F},{conditions:a,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:F},{endpoint:{url:h,properties:P,headers:P},type:_}],type:s},{conditions:[{[S]:Q,[N]:f}],rules:[{conditions:[{[S]:"aws.partition",[N]:f,assign:L}],rules:[{conditions:[O,x],rules:[{conditions:[{[S]:k,[N]:[J,g]},j],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:F}],type:s},{conditions:n,rules:[{conditions:[{[S]:k,[N]:[g,J]}],rules:[{conditions:[{[S]:"stringEquals",[N]:[{[S]:V,[N]:[c,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:P,headers:P},type:_},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS is enabled but this partition does not support FIPS",type:F}],type:s},{conditions:a,rules:[{conditions:[j],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"DualStack is enabled but this partition does not support DualStack",type:F}],type:s},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s}],type:s},{error:"Invalid Configuration: Missing Region",type:F}]};o.ruleSet=lr});var re=d((t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.defaultEndpointResolver=void 0;var vr=Ir(),b=ir(),Dr=p(),qr=new b.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),yr=(e,r={})=>{return qr.get(e,()=>b.resolveEndpoint(Dr.ruleSet,{endpointParams:e,logger:r.logger}))};t.defaultEndpointResolver=yr;b.customEndpointFunctions.aws=vr.awsEndpointFunctions});var De=d((Ie)=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.getRuntimeConfig=void 0;var Rr=w(),Er=B(),sr=E(),dr=Nr(),le=Sr(),ie=Pr(),Fr=H(),_r=re(),Ur=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??le.fromBase64,base64Encoder:e?.base64Encoder??le.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??_r.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Fr.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4"),signer:new Rr.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Er.NoAuthSigner}],logger:e?.logger??new sr.NoOpLogger,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??dr.parseUrl,utf8Decoder:e?.utf8Decoder??ie.fromUtf8,utf8Encoder:e?.utf8Encoder??ie.toUtf8}};Ie.getRuntimeConfig=Ur});var se=d((Re)=>{Object.defineProperty(Re,"__esModule",{value:!0});Re.getRuntimeConfig=void 0;var Vr=Tr(),br=Vr.__importDefault(Cr()),Br=w(),qe=Ar(),C=Se(),Wr=Gr(),ye=Ne(),M=kr(),Pe=Mr(),Yr=Hr(),Kr=wr(),Xr=De(),zr=E(),Jr=Lr(),Qr=E(),Zr=(e)=>{Qr.emitWarningIfUnsupportedVersion(process.version);let r=Jr.resolveDefaultsModeConfig(e),l=()=>r().then(zr.loadConfigsForDefaultMode),v=Xr.getRuntimeConfig(e);Br.emitWarningIfUnsupportedVersion(process.version);let I={profile:e?.profile};return{...v,...e,runtime:"node",defaultsMode:r,bodyLengthChecker:e?.bodyLengthChecker??Yr.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??qe.createDefaultUserAgentProvider({serviceId:v.serviceId,clientVersion:br.default.version}),maxAttempts:e?.maxAttempts??M.loadConfig(ye.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??M.loadConfig(C.NODE_REGION_CONFIG_OPTIONS,{...C.NODE_REGION_CONFIG_FILE_OPTIONS,...I}),requestHandler:Pe.NodeHttpHandler.create(e?.requestHandler??l),retryMode:e?.retryMode??M.loadConfig({...ye.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await l()).retryMode||Kr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??Wr.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Pe.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??M.loadConfig(C.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,I),useFipsEndpoint:e?.useFipsEndpoint??M.loadConfig(C.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,I),userAgentAppId:e?.userAgentAppId??M.loadConfig(qe.NODE_APP_ID_CONFIG_OPTIONS,I)}};Re.getRuntimeConfig=Zr});var Wl=d((Ql,je)=>{var{defineProperty:A,getOwnPropertyDescriptor:Or,getOwnPropertyNames:xr}=Object,cr=Object.prototype.hasOwnProperty,D=(e,r)=>A(e,"name",{value:r,configurable:!0}),or=(e,r)=>{for(var l in r)A(e,l,{get:r[l],enumerable:!0})},ur=(e,r,l,v)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let I of xr(r))if(!cr.call(e,I)&&I!==l)A(e,I,{get:()=>r[I],enumerable:!(v=Or(r,I))||v.enumerable})}return e},pr=(e)=>ur(A({},"__esModule",{value:!0}),e),Ce={};or(Ce,{$Command:()=>He.Command,AccessDeniedException:()=>Le,AuthorizationPendingException:()=>Ve,CreateTokenCommand:()=>he,CreateTokenRequestFilterSensitiveLog:()=>be,CreateTokenResponseFilterSensitiveLog:()=>Be,ExpiredTokenException:()=>We,InternalServerException:()=>Ye,InvalidClientException:()=>Ke,InvalidGrantException:()=>Xe,InvalidRequestException:()=>ze,InvalidScopeException:()=>Je,SSOOIDC:()=>ge,SSOOIDCClient:()=>Ge,SSOOIDCServiceException:()=>y,SlowDownException:()=>Qe,UnauthorizedClientException:()=>Ze,UnsupportedGrantTypeException:()=>$e,__Client:()=>Ae.Client});je.exports=pr(Ce);var de=gr(),tr=jr(),el=nr(),Fe=ar(),rl=Se(),W=B(),ll=fr(),il=we(),_e=Ne(),Ae=E(),Ue=H(),Il=D((e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},"resolveClientEndpointParameters"),vl={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Dl=se(),Me=mr(),Te=hr(),ke=E(),ql=D((e)=>{let{httpAuthSchemes:r,httpAuthSchemeProvider:l,credentials:v}=e;return{setHttpAuthScheme(I){let q=r.findIndex((G)=>G.schemeId===I.schemeId);if(q===-1)r.push(I);else r.splice(q,1,I)},httpAuthSchemes(){return r},setHttpAuthSchemeProvider(I){l=I},httpAuthSchemeProvider(){return l},setCredentials(I){v=I},credentials(){return v}}},"getHttpAuthExtensionConfiguration"),yl=D((e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},"resolveHttpAuthRuntimeConfig"),Pl=D((e,r)=>{let l=Object.assign(Me.getAwsRegionExtensionConfiguration(e),ke.getDefaultExtensionConfiguration(e),Te.getHttpHandlerExtensionConfiguration(e),ql(e));return r.forEach((v)=>v.configure(l)),Object.assign(e,Me.resolveAwsRegionExtensionConfiguration(l),ke.resolveDefaultRuntimeConfig(l),Te.resolveHttpHandlerRuntimeConfig(l),yl(l))},"resolveRuntimeExtensions"),Ge=class extends Ae.Client{static{D(this,"SSOOIDCClient")}config;constructor(...[e]){let r=Dl.getRuntimeConfig(e||{});super(r);this.initConfig=r;let l=Il(r),v=Fe.resolveUserAgentConfig(l),I=_e.resolveRetryConfig(v),q=rl.resolveRegionConfig(I),G=de.resolveHostHeaderConfig(q),ne=il.resolveEndpointConfig(G),ae=Ue.resolveHttpAuthSchemeConfig(ne),fe=Pl(ae,e?.extensions||[]);this.config=fe,this.middlewareStack.use(Fe.getUserAgentPlugin(this.config)),this.middlewareStack.use(_e.getRetryPlugin(this.config)),this.middlewareStack.use(ll.getContentLengthPlugin(this.config)),this.middlewareStack.use(de.getHostHeaderPlugin(this.config)),this.middlewareStack.use(tr.getLoggerPlugin(this.config)),this.middlewareStack.use(el.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(W.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Ue.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:D(async(me)=>new W.DefaultIdentityProviderConfig({"aws.auth#sigv4":me.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(W.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},Sl=E(),Nl=we(),Rl=$r(),He=E(),T=E(),El=E(),y=class e extends El.ServiceException{static{D(this,"SSOOIDCServiceException")}constructor(r){super(r);Object.setPrototypeOf(this,e.prototype)}},Le=class e extends y{static{D(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;error_description;constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ve=class e extends y{static{D(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},be=D((e)=>({...e,...e.clientSecret&&{clientSecret:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.codeVerifier&&{codeVerifier:T.SENSITIVE_STRING}}),"CreateTokenRequestFilterSensitiveLog"),Be=D((e)=>({...e,...e.accessToken&&{accessToken:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.idToken&&{idToken:T.SENSITIVE_STRING}}),"CreateTokenResponseFilterSensitiveLog"),We=class e extends y{static{D(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ye=class e extends y{static{D(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(r){super({name:"InternalServerException",$fault:"server",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ke=class e extends y{static{D(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(r){super({name:"InvalidClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Xe=class e extends y{static{D(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},ze=class e extends y{static{D(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;error_description;constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Je=class e extends y{static{D(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Qe=class e extends y{static{D(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(r){super({name:"SlowDownException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ze=class e extends y{static{D(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},$e=class e extends y{static{D(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Y=w(),sl=B(),i=E(),dl=D(async(e,r)=>{let l=sl.requestBuilder(e,r),v={"content-type":"application/json"};l.bp("/token");let I;return I=JSON.stringify(i.take(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:D((q)=>i._json(q),"scope")})),l.m("POST").h(v).b(I),l.build()},"se_CreateTokenCommand"),Fl=D(async(e,r)=>{if(e.statusCode!==200&&e.statusCode>=300)return _l(e,r);let l=i.map({$metadata:R(e)}),v=i.expectNonNull(i.expectObject(await Y.parseJsonBody(e.body,r)),"body"),I=i.take(v,{accessToken:i.expectString,expiresIn:i.expectInt32,idToken:i.expectString,refreshToken:i.expectString,tokenType:i.expectString});return Object.assign(l,I),l},"de_CreateTokenCommand"),_l=D(async(e,r)=>{let l={...e,body:await Y.parseJsonErrorBody(e.body,r)},v=Y.loadRestJsonErrorCode(e,l.body);switch(v){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Ml(l,r);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Tl(l,r);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await kl(l,r);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await wl(l,r);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Cl(l,r);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await Al(l,r);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Gl(l,r);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await Hl(l,r);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await Ll(l,r);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await Vl(l,r);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await bl(l,r);default:let I=l.body;return Ul({output:e,parsedBody:I,errorCode:v})}},"de_CommandError"),Ul=i.withBaseException(y),Ml=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Le({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AccessDeniedExceptionRes"),Tl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ve({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AuthorizationPendingExceptionRes"),kl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new We({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_ExpiredTokenExceptionRes"),wl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ye({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InternalServerExceptionRes"),Cl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ke({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidClientExceptionRes"),Al=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Xe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidGrantExceptionRes"),Gl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidRequestExceptionRes"),Hl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Je({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidScopeExceptionRes"),Ll=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Qe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_SlowDownExceptionRes"),Vl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnauthorizedClientExceptionRes"),bl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new $e({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnsupportedGrantTypeExceptionRes"),R=D((e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),"deserializeMetadata"),he=class extends He.Command.classBuilder().ep(vl).m(function(e,r,l,v){return[Rl.getSerdePlugin(l,this.serialize,this.deserialize),Nl.getEndpointPlugin(l,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(be,Be).ser(dl).de(Fl).build(){static{D(this,"CreateTokenCommand")}},Bl={CreateTokenCommand:he},ge=class extends Ge{static{D(this,"SSOOIDC")}};Sl.createAggregatedClient(Bl,ge)});export default Wl();
@@ -0,0 +1 @@
1
+ import{Oc as S}from"./chunk-x50q43zy.js";import{Uc as x}from"./chunk-0pctvmzj.js";var q="AWS_PROFILE";var B=(o)=>o.profile||process.env.AWS_PROFILE||"default";import{join as b}from"node:path";import{homedir as N}from"node:os";import{sep as L}from"node:path";var d={},w=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},f=()=>{let{HOME:o,USERPROFILE:e,HOMEPATH:t,HOMEDRIVE:r=`C:${L}`}=process.env;if(o)return o;if(e)return e;if(t)return`${r}${t}`;let i=w();if(!d[i])d[i]=N();return d[i]};var v="AWS_CONFIG_FILE",g=()=>process.env[v]||b(f(),".aws","config");var D=x(S(),1);import{join as I}from"node:path";var h=x(S(),1);var O=(o)=>Object.entries(o).filter(([e])=>{let t=e.indexOf(c);if(t===-1)return!1;return Object.values(h.IniSectionType).includes(e.substring(0,t))}).reduce((e,[t,r])=>{let i=t.indexOf(c),s=t.substring(0,i)===h.IniSectionType.PROFILE?t.substring(i+1):t;return e[s]=r,e},{...o.default&&{default:o.default}});import{join as j}from"node:path";var y="AWS_SHARED_CREDENTIALS_FILE",_=()=>process.env[y]||j(f(),".aws","credentials");var C=x(S(),1);var $=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,G=["__proto__","profile __proto__"],a=(o)=>{let e={},t,r;for(let i of o.split(/\r?\n/)){let s=i.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,r=void 0;let n=s.substring(1,s.length-1),m=$.exec(n);if(m){let[,p,,F]=m;if(Object.values(C.IniSectionType).includes(p))t=[p,F].join(c)}else t=n;if(G.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(t){let n=s.indexOf("=");if(![0,-1].includes(n)){let[m,p]=[s.substring(0,n).trim(),s.substring(n+1).trim()];if(p==="")r=m;else{if(r&&i.trimStart()===i)r=void 0;e[t]=e[t]||{};let F=r?[r,m].join(c):m;e[t][F]=p}}}}return e};import{promises as W}from"node:fs";var{readFile:K}=W,E={},l=(o,e)=>{if(!E[o]||e?.ignoreCache)E[o]=K(o,"utf8");return E[o]};var P=()=>({}),c=".",R=async(o={})=>{let{filepath:e=_(),configFilepath:t=g()}=o,r=f(),i="~/",s=e;if(e.startsWith("~/"))s=I(r,e.slice(2));let u=t;if(t.startsWith("~/"))u=I(r,t.slice(2));let n=await Promise.all([l(u,{ignoreCache:o.ignoreCache}).then(a).then(O).catch(P),l(s,{ignoreCache:o.ignoreCache}).then(a).catch(P)]);return{configFile:n[0],credentialsFile:n[1]}};var T=(o)=>Object.entries(o).filter(([e])=>e.startsWith(D.IniSectionType.SSO_SESSION+c)).reduce((e,[t,r])=>({...e,[t.substring(t.indexOf(c)+1)]:r}),{});var V=()=>({}),Pe=async(o={})=>l(o.configFilepath??g()).then(a).then(T).catch(V);var A=(...o)=>{let e={};for(let t of o)for(let[r,i]of Object.entries(t))if(e[r]!==void 0)Object.assign(e[r],i);else e[r]=i;return e};var He=async(o)=>{let e=await R(o);return A(e.configFile,e.credentialsFile)};import{createHash as U}from"node:crypto";import{join as X}from"node:path";var H=(o)=>{let t=U("sha1").update(o).digest("hex");return X(f(),".aws","sso","cache",`${t}.json`)};import{promises as k}from"node:fs";var{readFile:M}=k,$e=async(o)=>{let e=H(o),t=await M(e,"utf8");return JSON.parse(t)};export{q as Gc,B as Hc,H as Ic,$e as Jc,c as Kc,R as Lc,Pe as Mc,He as Nc};
@@ -0,0 +1,240 @@
1
+ // @bun
2
+ import{Ga as U,Ha as m}from"./chunk-6v69415e.js";import"./chunk-0pctvmzj.js";/*!
3
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are met:
8
+ *
9
+ * 1. Redistributions of source code must retain the above copyright notice, this
10
+ * list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ * this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ * 3. Neither the name of the copyright holder nor the names of its contributors
15
+ * may be used to endorse or promote products derived from this software without
16
+ * specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ */function A(k,z){let j=k.slice(0,z).split(/\r\n|\n|\r/g);return[j.length,j.pop().length+1]}function d(k,z,j){let J=k.split(/\r\n|\n|\r/g),K="",Z=(Math.log10(z+1)|0)+1;for(let Q=z-1;Q<=z+1;Q++){let q=J[Q-1];q&&(K+=Q.toString().padEnd(Z," "),K+=": ",K+=q,K+=`
29
+ `,Q===z&&(K+=" ".repeat(Z+j+2),K+=`^
30
+ `))}return K}class x extends Error{line;column;codeblock;constructor(k,z){let[j,J]=A(z.toml,z.ptr),K=d(z.toml,j,J);super(`Invalid TOML document: ${k}
31
+
32
+ ${K}`,z),this.line=j,this.column=J,this.codeblock=K}}/*!
33
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
34
+ * SPDX-License-Identifier: BSD-3-Clause
35
+ *
36
+ * Redistribution and use in source and binary forms, with or without
37
+ * modification, are permitted provided that the following conditions are met:
38
+ *
39
+ * 1. Redistributions of source code must retain the above copyright notice, this
40
+ * list of conditions and the following disclaimer.
41
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
42
+ * this list of conditions and the following disclaimer in the
43
+ * documentation and/or other materials provided with the distribution.
44
+ * 3. Neither the name of the copyright holder nor the names of its contributors
45
+ * may be used to endorse or promote products derived from this software without
46
+ * specific prior written permission.
47
+ *
48
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
49
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
50
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
51
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
52
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
53
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
54
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
55
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
56
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
57
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
58
+ */function M(k,z=0,j=k.length){let J=k.indexOf(`
59
+ `,z);return k[J-1]==="\r"&&J--,J<=j?J:-1}function G(k,z){for(let j=z;j<k.length;j++){let J=k[j];if(J===`
60
+ `)return j;if(J==="\r"&&k[j+1]===`
61
+ `)return j+1;if(J<" "&&J!=="\t"||J==="\x7F")throw new x("control characters are not allowed in comments",{toml:k,ptr:z})}return k.length}function V(k,z,j,J){let K;for(;(K=k[z])===" "||K==="\t"||!j&&(K===`
62
+ `||K==="\r"&&k[z+1]===`
63
+ `);)z++;return J||K!=="#"?z:V(k,G(k,z),j)}function P(k,z,j,J,K=!1){if(!J)return z=M(k,z),z<0?k.length:z;for(let Z=z;Z<k.length;Z++){let Q=k[Z];if(Q==="#")Z=M(k,Z);else{if(Q===j)return Z+1;if(Q===J)return Z;if(K&&(Q===`
64
+ `||Q==="\r"&&k[Z+1]===`
65
+ `))return Z}}throw new x("cannot find end of structure",{toml:k,ptr:z})}function C(k,z){let j=k[z],J=j===k[z+1]&&k[z+1]===k[z+2]?k.slice(z,z+3):j;z+=J.length-1;do z=k.indexOf(J,++z);while(z>-1&&j!=="'"&&k[z-1]==="\\"&&k[z-2]!=="\\");return z>-1&&(z+=J.length,J.length>1&&(k[z]===j&&z++,k[z]===j&&z++)),z}/*!
66
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
67
+ * SPDX-License-Identifier: BSD-3-Clause
68
+ *
69
+ * Redistribution and use in source and binary forms, with or without
70
+ * modification, are permitted provided that the following conditions are met:
71
+ *
72
+ * 1. Redistributions of source code must retain the above copyright notice, this
73
+ * list of conditions and the following disclaimer.
74
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
75
+ * this list of conditions and the following disclaimer in the
76
+ * documentation and/or other materials provided with the distribution.
77
+ * 3. Neither the name of the copyright holder nor the names of its contributors
78
+ * may be used to endorse or promote products derived from this software without
79
+ * specific prior written permission.
80
+ *
81
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
82
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
83
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
84
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
85
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
86
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
87
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
88
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
89
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
90
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
91
+ */var s=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;class v extends Date{#z=!1;#J=!1;#k=null;constructor(k){let z=!0,j=!0,J="Z";if(typeof k=="string"){let K=k.match(s);K?(K[1]||(z=!1,k=`0000-01-01T${k}`),j=!!K[2],K[2]&&+K[2]>23?k="":(J=K[3]||null,k=k.toUpperCase(),!J&&j&&(k+="Z"))):k=""}super(k),isNaN(this.getTime())||(this.#z=z,this.#J=j,this.#k=J)}isDateTime(){return this.#z&&this.#J}isLocal(){return!this.#z||!this.#J||!this.#k}isDate(){return this.#z&&!this.#J}isTime(){return this.#J&&!this.#z}isValid(){return this.#z||this.#J}toISOString(){let k=super.toISOString();if(this.isDate())return k.slice(0,10);if(this.isTime())return k.slice(11,23);if(this.#k===null)return k.slice(0,-1);if(this.#k==="Z")return k;let z=+this.#k.slice(1,3)*60+ +this.#k.slice(4,6);return z=this.#k[0]==="-"?z:-z,new Date(this.getTime()-z*60000).toISOString().slice(0,-1)+this.#k}static wrapAsOffsetDateTime(k,z="Z"){let j=new v(k);return j.#k=z,j}static wrapAsLocalDateTime(k){let z=new v(k);return z.#k=null,z}static wrapAsLocalDate(k){let z=new v(k);return z.#J=!1,z.#k=null,z}static wrapAsLocalTime(k){let z=new v(k);return z.#z=!1,z.#k=null,z}}/*!
92
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
93
+ * SPDX-License-Identifier: BSD-3-Clause
94
+ *
95
+ * Redistribution and use in source and binary forms, with or without
96
+ * modification, are permitted provided that the following conditions are met:
97
+ *
98
+ * 1. Redistributions of source code must retain the above copyright notice, this
99
+ * list of conditions and the following disclaimer.
100
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
101
+ * this list of conditions and the following disclaimer in the
102
+ * documentation and/or other materials provided with the distribution.
103
+ * 3. Neither the name of the copyright holder nor the names of its contributors
104
+ * may be used to endorse or promote products derived from this software without
105
+ * specific prior written permission.
106
+ *
107
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
108
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
109
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
110
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
111
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
112
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
113
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
114
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
115
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
116
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
117
+ */var S=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,R=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,O=/^[+-]?0[0-9_]/,T=/^[0-9a-f]{4,8}$/i,w={b:"\b",t:"\t",n:`
118
+ `,f:"\f",r:"\r",'"':'"',"\\":"\\"};function L(k,z=0,j=k.length){let J=k[z]==="'",K=k[z++]===k[z]&&k[z]===k[z+1];K&&(j-=2,k[z+=2]==="\r"&&z++,k[z]===`
119
+ `&&z++);let Z=0,Q,q="",_=z;for(;z<j-1;){let $=k[z++];if($===`
120
+ `||$==="\r"&&k[z]===`
121
+ `){if(!K)throw new x("newlines are not allowed in strings",{toml:k,ptr:z-1})}else if($<" "&&$!=="\t"||$==="\x7F")throw new x("control characters are not allowed in strings",{toml:k,ptr:z-1});if(Q){if(Q=!1,$==="u"||$==="U"){let X=k.slice(z,z+=$==="u"?4:8);if(!T.test(X))throw new x("invalid unicode escape",{toml:k,ptr:Z});try{q+=String.fromCodePoint(parseInt(X,16))}catch{throw new x("invalid unicode escape",{toml:k,ptr:Z})}}else if(K&&($===`
122
+ `||$===" "||$==="\t"||$==="\r")){if(z=V(k,z-1,!0),k[z]!==`
123
+ `&&k[z]!=="\r")throw new x("invalid escape: only line-ending whitespace may be escaped",{toml:k,ptr:Z});z=V(k,z)}else if($ in w)q+=w[$];else throw new x("unrecognized escape sequence",{toml:k,ptr:Z});_=z}else!J&&$==="\\"&&(Z=z-1,Q=!0,q+=k.slice(_,Z))}return q+k.slice(_,j-1)}function u(k,z,j){if(k==="true")return!0;if(k==="false")return!1;if(k==="-inf")return-1/0;if(k==="inf"||k==="+inf")return 1/0;if(k==="nan"||k==="+nan"||k==="-nan")return NaN;if(k==="-0")return 0;let J;if((J=S.test(k))||R.test(k)){if(O.test(k))throw new x("leading zeroes are not allowed",{toml:z,ptr:j});let Z=+k.replace(/_/g,"");if(isNaN(Z))throw new x("invalid number",{toml:z,ptr:j});if(J&&!Number.isSafeInteger(Z))throw new x("integer value cannot be represented losslessly",{toml:z,ptr:j});return Z}let K=new v(k);if(!K.isValid())throw new x("invalid value",{toml:z,ptr:j});return K}/*!
124
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
125
+ * SPDX-License-Identifier: BSD-3-Clause
126
+ *
127
+ * Redistribution and use in source and binary forms, with or without
128
+ * modification, are permitted provided that the following conditions are met:
129
+ *
130
+ * 1. Redistributions of source code must retain the above copyright notice, this
131
+ * list of conditions and the following disclaimer.
132
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
133
+ * this list of conditions and the following disclaimer in the
134
+ * documentation and/or other materials provided with the distribution.
135
+ * 3. Neither the name of the copyright holder nor the names of its contributors
136
+ * may be used to endorse or promote products derived from this software without
137
+ * specific prior written permission.
138
+ *
139
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
140
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
141
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
142
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
143
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
144
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
145
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
146
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
147
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
148
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
149
+ */function E(k,z,j,J){let K=k.slice(z,j),Z=K.indexOf("#");Z>-1&&(G(k,Z),K=K.slice(0,Z));let Q=K.trimEnd();if(!J){let q=K.indexOf(`
150
+ `,Q.length);if(q>-1)throw new x("newlines are not allowed in inline tables",{toml:k,ptr:z+q})}return[Q,Z]}function b(k,z,j,J){if(J===0)throw new x("document contains excessively nested structures. aborting.",{toml:k,ptr:z});let K=k[z];if(K==="["||K==="{"){let[q,_]=K==="["?f(k,z,J):a(k,z,J),$=P(k,_,",",j);if(j==="}"){let X=M(k,_,$);if(X>-1)throw new x("newlines are not allowed in inline tables",{toml:k,ptr:X})}return[q,$]}let Z;if(K==='"'||K==="'"){Z=C(k,z);let q=L(k,z,Z);if(j){if(Z=V(k,Z,j!=="]"),k[Z]&&k[Z]!==","&&k[Z]!==j&&k[Z]!==`
151
+ `&&k[Z]!=="\r")throw new x("unexpected character encountered",{toml:k,ptr:Z});Z+=+(k[Z]===",")}return[q,Z]}Z=P(k,z,",",j);let Q=E(k,z,Z-+(k[Z-1]===","),j==="]");if(!Q[0])throw new x("incomplete key-value declaration: no value specified",{toml:k,ptr:z});return j&&Q[1]>-1&&(Z=V(k,z+Q[1]),Z+=+(k[Z]===",")),[u(Q[0],k,z),Z]}/*!
152
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
153
+ * SPDX-License-Identifier: BSD-3-Clause
154
+ *
155
+ * Redistribution and use in source and binary forms, with or without
156
+ * modification, are permitted provided that the following conditions are met:
157
+ *
158
+ * 1. Redistributions of source code must retain the above copyright notice, this
159
+ * list of conditions and the following disclaimer.
160
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
161
+ * this list of conditions and the following disclaimer in the
162
+ * documentation and/or other materials provided with the distribution.
163
+ * 3. Neither the name of the copyright holder nor the names of its contributors
164
+ * may be used to endorse or promote products derived from this software without
165
+ * specific prior written permission.
166
+ *
167
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
168
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
169
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
170
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
171
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
172
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
173
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
174
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
175
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
176
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
177
+ */var I=/^[a-zA-Z0-9-_]+[ \t]*$/;function g(k,z,j="="){let J=z-1,K=[],Z=k.indexOf(j,z);if(Z<0)throw new x("incomplete key-value: cannot find end of key",{toml:k,ptr:z});do{let Q=k[z=++J];if(Q!==" "&&Q!=="\t")if(Q==='"'||Q==="'"){if(Q===k[z+1]&&Q===k[z+2])throw new x("multiline strings are not allowed in keys",{toml:k,ptr:z});let q=C(k,z);if(q<0)throw new x("unfinished string encountered",{toml:k,ptr:z});J=k.indexOf(".",q);let _=k.slice(q,J<0||J>Z?Z:J),$=M(_);if($>-1)throw new x("newlines are not allowed in keys",{toml:k,ptr:z+J+$});if(_.trimStart())throw new x("found extra tokens after the string part",{toml:k,ptr:q});if(Z<q&&(Z=k.indexOf(j,q),Z<0))throw new x("incomplete key-value: cannot find end of key",{toml:k,ptr:z});K.push(L(k,z,q))}else{J=k.indexOf(".",z);let q=k.slice(z,J<0||J>Z?Z:J);if(!I.test(q))throw new x("only letter, numbers, dashes and underscores are allowed in keys",{toml:k,ptr:z});K.push(q.trimEnd())}}while(J+1&&J<Z);return[K,V(k,Z+1,!0,!0)]}function a(k,z,j){let J={},K=new Set,Z,Q=0;for(z++;(Z=k[z++])!=="}"&&Z;){if(Z===`
178
+ `)throw new x("newlines are not allowed in inline tables",{toml:k,ptr:z-1});if(Z==="#")throw new x("inline tables cannot contain comments",{toml:k,ptr:z-1});if(Z===",")throw new x("expected key-value, found comma",{toml:k,ptr:z-1});if(Z!==" "&&Z!=="\t"){let q,_=J,$=!1,[X,h]=g(k,z-1);for(let y=0;y<X.length;y++){if(y&&(_=$?_[q]:_[q]={}),q=X[y],($=Object.hasOwn(_,q))&&(typeof _[q]!="object"||K.has(_[q])))throw new x("trying to redefine an already defined value",{toml:k,ptr:z});!$&&q==="__proto__"&&Object.defineProperty(_,q,{enumerable:!0,configurable:!0,writable:!0})}if($)throw new x("trying to redefine an already defined value",{toml:k,ptr:z});let[F,N]=b(k,h,"}",j-1);K.add(F),_[q]=F,z=N,Q=k[z-1]===","?z-1:0}}if(Q)throw new x("trailing commas are not allowed in inline tables",{toml:k,ptr:Q});if(!Z)throw new x("unfinished table encountered",{toml:k,ptr:z});return[J,z]}function f(k,z,j){let J=[],K;for(z++;(K=k[z++])!=="]"&&K;){if(K===",")throw new x("expected value, found comma",{toml:k,ptr:z-1});if(K==="#")z=G(k,z);else if(K!==" "&&K!=="\t"&&K!==`
179
+ `&&K!=="\r"){let Z=b(k,z-1,"]",j-1);J.push(Z[0]),z=Z[1]}}if(!K)throw new x("unfinished array encountered",{toml:k,ptr:z});return[J,z]}/*!
180
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
181
+ * SPDX-License-Identifier: BSD-3-Clause
182
+ *
183
+ * Redistribution and use in source and binary forms, with or without
184
+ * modification, are permitted provided that the following conditions are met:
185
+ *
186
+ * 1. Redistributions of source code must retain the above copyright notice, this
187
+ * list of conditions and the following disclaimer.
188
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
189
+ * this list of conditions and the following disclaimer in the
190
+ * documentation and/or other materials provided with the distribution.
191
+ * 3. Neither the name of the copyright holder nor the names of its contributors
192
+ * may be used to endorse or promote products derived from this software without
193
+ * specific prior written permission.
194
+ *
195
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
196
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
197
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
198
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
199
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
200
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
201
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
202
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
203
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
204
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
205
+ */function H(k,z,j,J){let K=z,Z=j,Q,q=!1,_;for(let $=0;$<k.length;$++){if($){if(K=q?K[Q]:K[Q]={},Z=(_=Z[Q]).c,J===0&&(_.t===1||_.t===2))return null;if(_.t===2){let X=K.length-1;K=K[X],Z=Z[X].c}}if(Q=k[$],(q=Object.hasOwn(K,Q))&&Z[Q]?.t===0&&Z[Q]?.d)return null;q||(Q==="__proto__"&&(Object.defineProperty(K,Q,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(Z,Q,{enumerable:!0,configurable:!0,writable:!0})),Z[Q]={t:$<k.length-1&&J===2?3:J,d:!1,i:0,c:{}})}if(_=Z[Q],_.t!==J&&!(J===1&&_.t===3)||(J===2&&(_.d||(_.d=!0,K[Q]=[]),K[Q].push(K={}),_.c[_.i++]=_={t:1,d:!1,i:0,c:{}}),_.d))return null;if(_.d=!0,J===1)K=q?K[Q]:K[Q]={};else if(J===0&&q)return null;return[Q,K,_.c]}function c(k,z){let j=z?.maxDepth??1000,J={},K={},Z=J,Q=K;for(let q=V(k,0);q<k.length;){if(k[q]==="["){let _=k[++q]==="[",$=g(k,q+=+_,"]");if(_){if(k[$[1]-1]!=="]")throw new x("expected end of table declaration",{toml:k,ptr:$[1]-1});$[1]++}let X=H($[0],J,K,_?2:1);if(!X)throw new x("trying to redefine an already defined table or value",{toml:k,ptr:q});Q=X[2],Z=X[1],q=$[1]}else{let _=g(k,q),$=H(_[0],Z,Q,0);if(!$)throw new x("trying to redefine an already defined table or value",{toml:k,ptr:q});let X=b(k,_[1],void 0,j);$[1][$[0]]=X[0],q=X[1]}if(q=V(k,q,!0),k[q]&&k[q]!==`
206
+ `&&k[q]!=="\r")throw new x("each key-value declaration must be followed by an end-of-line",{toml:k,ptr:q});q=V(k,q)}return J}/*!
207
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
208
+ * SPDX-License-Identifier: BSD-3-Clause
209
+ *
210
+ * Redistribution and use in source and binary forms, with or without
211
+ * modification, are permitted provided that the following conditions are met:
212
+ *
213
+ * 1. Redistributions of source code must retain the above copyright notice, this
214
+ * list of conditions and the following disclaimer.
215
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
216
+ * this list of conditions and the following disclaimer in the
217
+ * documentation and/or other materials provided with the distribution.
218
+ * 3. Neither the name of the copyright holder nor the names of its contributors
219
+ * may be used to endorse or promote products derived from this software without
220
+ * specific prior written permission.
221
+ *
222
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
223
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
224
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
225
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
226
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
227
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
228
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
229
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
230
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
231
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
232
+ */var D=/^[a-z0-9-_]+$/i;function W(k){let z=typeof k;if(z==="object"){if(Array.isArray(k))return"array";if(k instanceof Date)return"date"}return z}function l(k){for(let z=0;z<k.length;z++)if(W(k[z])!=="object")return!1;return k.length!=0}function p(k){return JSON.stringify(k).replace(/\x7f/g,"\\u007f")}function B(k,z,j){if(j===0)throw new Error("Could not stringify the object: maximum object depth exceeded");if(z==="number")return isNaN(k)?"nan":k===1/0?"inf":k===-1/0?"-inf":k.toString();if(z==="bigint"||z==="boolean")return k.toString();if(z==="string")return p(k);if(z==="date"){if(isNaN(k.getTime()))throw new TypeError("cannot serialize invalid date");return k.toISOString()}if(z==="object")return o(k,j);if(z==="array")return r(k,j)}function o(k,z){let j=Object.keys(k);if(j.length===0)return"{}";let J="{ ";for(let K=0;K<j.length;K++){let Z=j[K];K&&(J+=", "),J+=D.test(Z)?Z:p(Z),J+=" = ",J+=B(k[Z],W(k[Z]),z-1)}return J+" }"}function r(k,z){if(k.length===0)return"[]";let j="[ ";for(let J=0;J<k.length;J++){if(J&&(j+=", "),k[J]===null||k[J]===void 0)throw new TypeError("arrays cannot contain null or undefined values");j+=B(k[J],W(k[J]),z-1)}return j+" ]"}function i(k,z,j){if(j===0)throw new Error("Could not stringify the object: maximum object depth exceeded");let J="";for(let K=0;K<k.length;K++)J+=`[[${z}]]
233
+ `,J+=Y(k[K],z,j),J+=`
234
+
235
+ `;return J}function Y(k,z,j){if(j===0)throw new Error("Could not stringify the object: maximum object depth exceeded");let J="",K="",Z=Object.keys(k);for(let Q=0;Q<Z.length;Q++){let q=Z[Q];if(k[q]!==null&&k[q]!==void 0){let _=W(k[q]);if(_==="symbol"||_==="function")throw new TypeError(`cannot serialize values of type '${_}'`);let $=D.test(q)?q:p(q);if(_==="array"&&l(k[q]))K+=i(k[q],z?`${z}.${$}`:$,j-1);else if(_==="object"){let X=z?`${z}.${$}`:$;K+=`[${X}]
236
+ `,K+=Y(k[q],X,j-1),K+=`
237
+
238
+ `}else J+=$,J+=" = ",J+=B(k[q],_,j),J+=`
239
+ `}}return`${J}
240
+ ${K}`.trim()}function t(k,z){if(W(k)!=="object")throw new TypeError("stringify can only be called with an object");let j=z?.maxDepth??1000;return Y(k,"",j)}function e(k){let z=c(k);return U(k,z,{preserveIndentation:!1}),z}function k0(k){let z=m(k,{}),j=t(k);return z.whitespace.start+j+z.whitespace.end}export{k0 as stringifyTOML,e as parseTOML};
@@ -0,0 +1,2 @@
1
+ import{Wc as $}from"./chunk-0pctvmzj.js";var S=$((N,Z)=>{var{defineProperty:I,getOwnPropertyDescriptor:z,getOwnPropertyNames:A}=Object,D=Object.prototype.hasOwnProperty,H=(j,b)=>I(j,"name",{value:b,configurable:!0}),M=(j,b)=>{for(var F in b)I(j,F,{get:b[F],enumerable:!0})},J=(j,b,F,B)=>{if(b&&typeof b==="object"||typeof b==="function"){for(let G of A(b))if(!D.call(j,G)&&G!==F)I(j,G,{get:()=>b[G],enumerable:!(B=z(b,G))||B.enumerable})}return j},T=(j)=>J(I({},"__esModule",{value:!0}),j),Y={};M(Y,{CredentialsProviderError:()=>V,ProviderError:()=>K,TokenProviderError:()=>w,chain:()=>O,fromStatic:()=>q,memoize:()=>L});Z.exports=T(Y);var K=class j extends Error{constructor(b,F=!0){let B,G=!0;if(typeof F==="boolean")B=void 0,G=F;else if(F!=null&&typeof F==="object")B=F.logger,G=F.tryNextLink??!0;super(b);this.name="ProviderError",this.tryNextLink=G,Object.setPrototypeOf(this,j.prototype),B?.debug?.(`@smithy/property-provider ${G?"->":"(!)"} ${b}`)}static{H(this,"ProviderError")}static from(b,F=!0){return Object.assign(new this(b.message,F),b)}},V=class j extends K{constructor(b,F=!0){super(b,F);this.name="CredentialsProviderError",Object.setPrototypeOf(this,j.prototype)}static{H(this,"CredentialsProviderError")}},w=class j extends K{constructor(b,F=!0){super(b,F);this.name="TokenProviderError",Object.setPrototypeOf(this,j.prototype)}static{H(this,"TokenProviderError")}},O=H((...j)=>async()=>{if(j.length===0)throw new K("No providers in chain");let b;for(let F of j)try{return await F()}catch(B){if(b=B,B?.tryNextLink)continue;throw B}throw b},"chain"),q=H((j)=>()=>Promise.resolve(j),"fromStatic"),L=H((j,b,F)=>{let B,G,Q,U=!1,W=H(async()=>{if(!G)G=j();try{B=await G,Q=!0,U=!1}finally{G=void 0}return B},"coalesceProvider");if(b===void 0)return async(X)=>{if(!Q||X?.forceRefresh)B=await W();return B};return async(X)=>{if(!Q||X?.forceRefresh)B=await W();if(U)return B;if(F&&!F(B))return U=!0,B;if(b(B))return await W(),B;return B}},"memoize")});
2
+ export{S as Tc};