appos 0.3.6-0 → 0.3.7-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/bin/main.mjs +3 -3
  2. package/dist/bin/youch-handler-D7REmh8Z.mjs +2 -0
  3. package/dist/exports/tests/api.d.mts +1 -1
  4. package/dist/exports/tests/api.mjs +14 -14
  5. package/dist/exports/tests/{auth-schema-DUCJw-_2.mjs → auth-schema-B_qHPoa4.mjs} +1 -1
  6. package/dist/exports/tests/{conditions-B0ffVJ5E.mjs → conditions-BeWxRN_Z.mjs} +1 -1
  7. package/dist/exports/tests/{extract-blob-metadata-Dv343Vcn.mjs → extract-blob-metadata-6xQrarjB.mjs} +2 -2
  8. package/dist/exports/tests/{generate-image-variant-cQc8q0kh.mjs → generate-image-variant-KQITLmCx.mjs} +1 -1
  9. package/dist/exports/tests/{generate-preview-HaTMd2hS.mjs → generate-preview-YnujQo5I.mjs} +1 -1
  10. package/dist/exports/tests/mock-BvoS23fi.mjs +1 -0
  11. package/dist/exports/tests/mock.mjs +1 -1
  12. package/dist/exports/tests/{purge-attachment-D4uOzHRi.mjs → purge-attachment-DTSmCl-z.mjs} +1 -1
  13. package/dist/exports/tests/{purge-audit-logs-DiPcc09d.mjs → purge-audit-logs-D0_UUhN2.mjs} +1 -1
  14. package/dist/exports/tests/{purge-unattached-blobs-CqW6tlIC.mjs → purge-unattached-blobs-IENmSB8K.mjs} +1 -1
  15. package/dist/exports/tests/react.mjs +1 -1
  16. package/dist/exports/tests/setup.mjs +2 -2
  17. package/dist/exports/tests/{track-db-changes-Bd4W-P1q.mjs → track-db-changes-Td9Q3DLd.mjs} +1 -1
  18. package/dist/exports/tests/youch-handler-efUxKCCs.mjs +1 -0
  19. package/dist/exports/vite/index.mjs +4 -4
  20. package/dist/exports/vite/{lib-DuBRr9dH.mjs → lib-B0s0q6aX.mjs} +73 -73
  21. package/dist/exports/vite/lib-BkrbWMaV.mjs +1 -0
  22. package/dist/exports/vitest/config.mjs +1 -77
  23. package/dist/exports/vitest/index.mjs +1 -348
  24. package/package.json +1 -7
  25. package/dist/bin/youch-handler-DrYdbUhe.mjs +0 -2
  26. package/dist/exports/devtools/BaseTanStackRouterDevtoolsPanel-BBz1qLry-DUwdvyLv.js +0 -2090
  27. package/dist/exports/devtools/EIDV623S-B7f6114d.js +0 -2497
  28. package/dist/exports/devtools/FloatingTanStackRouterDevtools-DymJEvfG-BHuQHiRR.js +0 -237
  29. package/dist/exports/devtools/MIMHJGAX-Cb3wf11F.js +0 -10903
  30. package/dist/exports/devtools/Q7LWSL4U-BoEO3rNq.js +0 -37
  31. package/dist/exports/devtools/VLTTJS3N-CIyRc84e.js +0 -44
  32. package/dist/exports/devtools/index.d.ts +0 -3
  33. package/dist/exports/devtools/index.js +0 -1725
  34. package/dist/exports/devtools/utils-YRTCpRgb.js +0 -1670
  35. package/dist/exports/tests/magic-string.es-D6VRmdiF.mjs +0 -14
  36. package/dist/exports/tests/mock-BvkO5nlm.mjs +0 -1
  37. package/dist/exports/tests/vi.2VT5v0um-Cme1b0Dl.mjs +0 -348
  38. package/dist/exports/tests/youch-handler-Ch5yf6im.mjs +0 -1
  39. package/dist/exports/vite/api-DGRU_RdM.mjs +0 -27
  40. package/dist/exports/vite/build-CxJAu2Bn.mjs +0 -1
  41. package/dist/exports/vite/build2-BMK0OFVt.mjs +0 -16
  42. package/dist/exports/vite/chunk-CxnlK1Zi.mjs +0 -1
  43. package/dist/exports/vite/chunk-PtveFMYu.mjs +0 -1
  44. package/dist/exports/vite/dist-Bxp8DqWh.mjs +0 -114
  45. package/dist/exports/vite/dist-CX51FKbX.mjs +0 -1
  46. package/dist/exports/vite/dist-DcyNr-KR.mjs +0 -1
  47. package/dist/exports/vite/dist-j3-Khlzt.mjs +0 -1
  48. package/dist/exports/vite/experimental-index-3KsfmUbz.mjs +0 -1
  49. package/dist/exports/vite/false-BNJbUKYT.mjs +0 -1
  50. package/dist/exports/vite/false-BvrPEDU6.mjs +0 -1
  51. package/dist/exports/vite/internal-C5cVwRiK.mjs +0 -1
  52. package/dist/exports/vite/jiti-BjSPrFvg.mjs +0 -9
  53. package/dist/exports/vite/lexer-DQCqS3nf-C6xCDOEQ.mjs +0 -3
  54. package/dist/exports/vite/lib-CMv7Sfwa.mjs +0 -1
  55. package/dist/exports/vite/lib-D9TnS-7w.mjs +0 -1
  56. package/dist/exports/vite/node-DI8AnY_i.mjs +0 -437
  57. package/dist/exports/vite/postcss-BtmDpj-c.mjs +0 -32
  58. package/dist/exports/vite/postcss-import-Bk_ZCd6c.mjs +0 -5
  59. package/dist/exports/vite/rolldown-build-CNW2eye_-CJNfyXdF.mjs +0 -13
  60. package/dist/exports/vitest/api-CPv6lnxG.mjs +0 -27
  61. package/dist/exports/vitest/build2-28i3OiJ3.mjs +0 -16
  62. package/dist/exports/vitest/chunk-_e2jlDPK.mjs +0 -1
  63. package/dist/exports/vitest/chunk-jwDkFoXW.mjs +0 -1
  64. package/dist/exports/vitest/dist-L-OpshPJ.mjs +0 -114
  65. package/dist/exports/vitest/jiti-eNGOyHIo.mjs +0 -9
  66. package/dist/exports/vitest/lexer-DQCqS3nf-TWLyIqlY.mjs +0 -3
  67. package/dist/exports/vitest/lib-C3G64csm.mjs +0 -1
  68. package/dist/exports/vitest/magic-string.es-CxM5Ubyl.mjs +0 -14
  69. package/dist/exports/vitest/module-runner-DsF4L04D.mjs +0 -1
  70. package/dist/exports/vitest/postcss-BxLp_Too.mjs +0 -32
  71. package/dist/exports/vitest/postcss-import-5pKj3f5q.mjs +0 -5
  72. /package/dist/exports/tests/{constants-DHjjg05J.mjs → constants-D_m07gCJ.mjs} +0 -0
  73. /package/dist/exports/tests/{dist-EfrRkq5c.mjs → dist-Cx2HEBOB.mjs} +0 -0
  74. /package/dist/exports/tests/{dist-D6vgKv3t.mjs → dist-DnACOvNW.mjs} +0 -0
  75. /package/dist/exports/tests/{pdf-BDsS3vjF.mjs → pdf-lZ-as2o7.mjs} +0 -0
  76. /package/dist/exports/tests/{table-CbU04119.mjs → table-CmPSf_pE.mjs} +0 -0
  77. /package/dist/exports/tests/{workflow-DwZxTqdH.mjs → workflow-BWRWyC83.mjs} +0 -0
  78. /package/dist/exports/tests/{zod-DcpxsMPz.mjs → zod-CkJO9qpV.mjs} +0 -0
@@ -1,32 +0,0 @@
1
- import{a as e,r as t,t as n}from"./chunk-PtveFMYu.mjs";import{t as r}from"./index.mjs";var i=n(((e,t)=>{let n=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,a=/[\da-f]/i;t.exports=function(e,t={}){let o=e.css.valueOf(),s=t.ignoreErrors,c,l,u,d,f,p,m,h,g,_,v=o.length,y=0,b=[],x=[];function S(){return y}function C(t){throw e.error(`Unclosed `+t,y)}function w(){return x.length===0&&y>=v}function T(e){if(x.length)return x.pop();if(y>=v)return;let t=e?e.ignoreUnclosed:!1;switch(c=o.charCodeAt(y),c){case 10:case 32:case 9:case 13:case 12:d=y;do d+=1,c=o.charCodeAt(d);while(c===32||c===10||c===9||c===13||c===12);p=[`space`,o.slice(y,d)],y=d-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(c);p=[e,e,y];break}case 40:if(_=b.length?b.pop()[1]:``,g=o.charCodeAt(y+1),_===`url`&&g!==39&&g!==34&&g!==32&&g!==10&&g!==9&&g!==12&&g!==13){d=y;do{if(m=!1,d=o.indexOf(`)`,d+1),d===-1)if(s||t){d=y;break}else C(`bracket`);for(h=d;o.charCodeAt(h-1)===92;)--h,m=!m}while(m);p=[`brackets`,o.slice(y,d+1),y,d],y=d}else d=o.indexOf(`)`,y+1),l=o.slice(y,d+1),d===-1||i.test(l)?p=[`(`,`(`,y]:(p=[`brackets`,l,y,d],y=d);break;case 39:case 34:f=c===39?`'`:`"`,d=y;do{if(m=!1,d=o.indexOf(f,d+1),d===-1)if(s||t){d=y+1;break}else C(`string`);for(h=d;o.charCodeAt(h-1)===92;)--h,m=!m}while(m);p=[`string`,o.slice(y,d+1),y,d],y=d;break;case 64:n.lastIndex=y+1,n.test(o),d=n.lastIndex===0?o.length-1:n.lastIndex-2,p=[`at-word`,o.slice(y,d+1),y,d],y=d;break;case 92:for(d=y,u=!0;o.charCodeAt(d+1)===92;)d+=1,u=!u;if(c=o.charCodeAt(d+1),u&&c!==47&&c!==32&&c!==10&&c!==9&&c!==13&&c!==12&&(d+=1,a.test(o.charAt(d)))){for(;a.test(o.charAt(d+1));)d+=1;o.charCodeAt(d+1)===32&&(d+=1)}p=[`word`,o.slice(y,d+1),y,d],y=d;break;default:c===47&&o.charCodeAt(y+1)===42?(d=o.indexOf(`*/`,y+2)+1,d===0&&(s||t?d=o.length:C(`comment`)),p=[`comment`,o.slice(y,d+1),y,d],y=d):(r.lastIndex=y+1,r.test(o),d=r.lastIndex===0?o.length-1:r.lastIndex-2,p=[`word`,o.slice(y,d+1),y,d],b.push(p),y=d);break}return y++,p}function E(e){x.push(e)}return{back:E,endOfFile:w,nextToken:T,position:S}}})),a=n(((e,t)=>{let n=r(),a=i(),o;function s(e){o=e}let c={";":n.yellow,":":n.yellow,"(":n.cyan,")":n.cyan,"[":n.yellow,"]":n.yellow,"{":n.yellow,"}":n.yellow,"at-word":n.cyan,brackets:n.cyan,call:n.cyan,class:n.yellow,comment:n.gray,hash:n.magenta,string:n.green};function l([e,t],n){if(e===`word`){if(t[0]===`.`)return`class`;if(t[0]===`#`)return`hash`}if(!n.endOfFile()){let e=n.nextToken();if(n.back(e),e[0]===`brackets`||e[0]===`(`)return`call`}return e}function u(e){let t=a(new o(e),{ignoreErrors:!0}),n=``;for(;!t.endOfFile();){let e=t.nextToken(),r=c[l(e,t)];r?n+=e[1].split(/\r?\n/).map(e=>r(e)).join(`
2
- `):n+=e[1]}return n}u.registerInput=s,t.exports=u})),o=n(((e,t)=>{let n=r(),i=a();var o=class e extends Error{constructor(t,n,r,i,a,o){super(t),this.name=`CssSyntaxError`,this.reason=t,a&&(this.file=a),i&&(this.source=i),o&&(this.plugin=o),n!==void 0&&r!==void 0&&(typeof n==`number`?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason}showSourceCode(e){if(!this.source)return``;let t=this.source;e??=n.isColorSupported;let r=e=>e,a=e=>e,o=e=>e;if(e){let{bold:e,gray:t,red:s}=n.createColors(!0);a=t=>e(s(t)),r=e=>t(e),i&&(o=e=>i(e))}let s=t.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length;return s.slice(c,l).map((e,t)=>{let n=c+1+t,i=` `+(` `+n).slice(-u)+` | `;if(n===this.line){if(e.length>160){let t=Math.max(0,this.column-20),n=Math.max(this.column+20,this.endColumn+20),s=e.slice(t,n),c=r(i.replace(/\d/g,` `))+e.slice(0,Math.min(this.column-1,19)).replace(/[^\t]/g,` `);return a(`>`)+r(i)+o(s)+`
3
- `+c+a(`^`)}let t=r(i.replace(/\d/g,` `))+e.slice(0,this.column-1).replace(/[^\t]/g,` `);return a(`>`)+r(i)+o(e)+`
4
- `+t+a(`^`)}return` `+r(i)+o(e)}).join(`
5
- `)}toString(){let e=this.showSourceCode();return e&&=`
6
-
7
- `+e+`
8
- `,this.name+`: `+this.message+e}};t.exports=o,o.default=o})),s=n(((e,t)=>{let n={after:`
9
- `,beforeClose:`
10
- `,beforeComment:`
11
- `,beforeDecl:`
12
- `,beforeOpen:` `,beforeRule:`
13
- `,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function r(e){return e[0].toUpperCase()+e.slice(1)}var i=class{constructor(e){this.builder=e}atrule(e,t){let n=`@`+e.name,r=e.params?this.rawValue(e,`params`):``;if(e.raws.afterName===void 0?r&&(n+=` `):n+=e.raws.afterName,e.nodes)this.block(e,n+r);else{let i=(e.raws.between||``)+(t?`;`:``);this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`);let r=e.parent,i=0;for(;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
14
- `)){let t=this.raw(e,null,`indent`);if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,`after`)):r=this.raw(e,`after`,`emptyBody`),r&&this.builder(r),this.builder(`}`,e,`end`)}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type===`comment`;)--t;let n=this.raw(e,`semicolon`);for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],a=this.raw(i,`before`);a&&this.builder(a),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)}decl(e,t){let n=this.raw(e,`between`,`colon`),r=e.prop+n+this.rawValue(e,`value`);e.important&&(r+=e.raws.important||` !important`),t&&(r+=`;`),this.builder(r,e)}document(e){this.body(e)}raw(e,t,i){let a;if(i||=t,t&&(a=e.raws[t],a!==void 0))return a;let o=e.parent;if(i===`before`&&(!o||o.type===`root`&&o.first===e||o&&o.type===`document`))return``;if(!o)return n[i];let s=e.root();if(s.rawCache||={},s.rawCache[i]!==void 0)return s.rawCache[i];if(i===`before`||i===`after`)return this.beforeAfter(e,i);{let n=`raw`+r(i);this[n]?a=this[n](s,e):s.walk(e=>{if(a=e.raws[t],a!==void 0)return!1})}return a===void 0&&(a=n[i]),s.rawCache[i]=a,a}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&e.raws.after!==void 0)return t=e.raws.after,t.includes(`
15
- `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
16
- `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
17
- `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n}rawBeforeOpen(e){let t;return e.walk(e=>{if(e.type!==`decl`&&(t=e.raws.between,t!==void 0))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&n.raws.before!==void 0)return t=n.raws.before,t.includes(`
18
- `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawColon(e){let t;return e.walkDecls(e=>{if(e.raws.between!==void 0)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,t!==void 0))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&n.raws.before!==void 0){let e=n.raws.before.split(`
19
- `);return t=e[e.length-1],t=t.replace(/\S/g,``),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,`selector`)),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,`end`)}stringify(e,t){if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)}};t.exports=i,i.default=i})),c=n(((e,t)=>{let n=s();function r(e,t){new n(t).stringify(e)}t.exports=r,r.default=r})),l=n(((e,t)=>{t.exports.isClean=Symbol(`isClean`),t.exports.my=Symbol(`my`)})),u=n(((e,t)=>{let n=o(),r=s(),i=c(),{isClean:a,my:u}=l();function d(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r===`proxyCache`)continue;let i=e[r],a=typeof i;r===`parent`&&a===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(e=>d(e,n)):(a===`object`&&i!==null&&(i=d(i)),n[r]=i)}return n}function f(e,t){if(t&&t.offset!==void 0)return t.offset;let n=1,r=1,i=0;for(let a=0;a<e.length;a++){if(r===t.line&&n===t.column){i=a;break}e[a]===`
20
- `?(n=1,r+=1):n+=1}return i}var p=class{get proxyOf(){return this}constructor(e={}){for(let t in this.raws={},this[a]=!1,this[u]=!0,e)if(t===`nodes`){this.nodes=[];for(let n of e[t])typeof n.clone==`function`?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=d(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:t===`root`?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n?!0:(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty(),!0)}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let e=this;for(;e=e.parent;)e[a]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=`document`in this.source.input?this.source.input.document:this.source.input.css,r=n.slice(f(n,this.source.start),f(n,this.source.end)).indexOf(e.word);r!==-1&&(t=this.positionInside(r))}return t}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r=`document`in this.source.input?this.source.input.document:this.source.input.css,i=f(r,this.source.start),a=i+e;for(let e=i;e<a;e++)r[e]===`
21
- `?(t=1,n+=1):t+=1;return{column:t,line:n,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:f(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==`number`?this.source.end.offset:f(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=t.slice(f(t,this.source.start),f(t,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),r=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:f(t,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:f(t,e.end)}:typeof e.endIndex==`number`?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line,offset:n.offset+1}),{end:r,start:n}}raw(e,t){return new r().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!==`document`;)e=e.parent;return e}toJSON(e,t){let n={},r=t==null;t||=new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||e===`parent`||e===`proxyCache`)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map(e=>typeof e==`object`&&e.toJSON?e.toJSON(null,t):e);else if(typeof r==`object`&&r.toJSON)n[e]=r.toJSON(null,t);else if(e===`source`){if(r==null)continue;let a=t.get(r.input);a??(a=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:a,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t=``;return e(this,e=>{t+=e}),t}warn(e,t,n={}){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}};t.exports=p,p.default=p})),d=n(((e,t)=>{let n=u();var r=class extends n{constructor(e){super(e),this.type=`comment`}};t.exports=r,r.default=r})),f=n(((e,t)=>{let n=u();var r=class extends n{get variable(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}constructor(e){e&&e.value!==void 0&&typeof e.value!=`string`&&(e={...e,value:String(e.value)}),super(e),this.type=`decl`}};t.exports=r,r.default=r})),p=n(((e,t)=>{let n=d(),r=f(),i=u(),{isClean:a,my:o}=l(),s,c,p,m;function h(e){return e.map(e=>(e.nodes&&=h(e.nodes),delete e.source,e))}function g(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)g(t)}var _=class e extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?(...n)=>e[t](...n.map(e=>typeof e==`function`?(t,n)=>e(t.toProxy(),n):e)):t===`every`||t===`some`?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):t===`root`?()=>e.root().toProxy():t===`nodes`?e.nodes.map(e=>e.toProxy()):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n?!0:(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty(),!0)}}}index(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of r)this.proxyOf.nodes.splice(n+1,0,e);let i;for(let e in this.indexes)i=this.indexes[e],n<i&&(this.indexes[e]=i+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0?`prepend`:!1,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);let a;for(let e in this.indexes)a=this.indexes[e],n<=a&&(this.indexes[e]=a+i.length);return this.markDirty(),this}normalize(t,i){if(typeof t==`string`)t=h(c(t).nodes);else if(t===void 0)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type===`root`&&this.type!==`document`){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type)t=[t];else if(t.prop){if(t.value===void 0)throw Error(`Value field is missed in node creation`);typeof t.value!=`string`&&(t.value=String(t.value)),t=[new r(t)]}else if(t.selector||t.selectors)t=[new m(t)];else if(t.name)t=[new s(t)];else if(t.text)t=[new n(t)];else throw Error(`Unknown node type in node creation`);return t.map(t=>(t[o]||e.rebuild(t),t=t.proxyOf,t.parent&&t.parent.removeChild(t),t[a]&&g(t),t.raws||={},t.raws.before===void 0&&i&&i.raws.before!==void 0&&(t.raws.before=i.raws.before.replace(/\S/g,``)),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,`prepend`).reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`atrule`)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if(t.type===`comment`)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`decl`)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`rule`)return t(e,n)}))}};_.registerParse=e=>{c=e},_.registerRule=e=>{m=e},_.registerAtRule=e=>{s=e},_.registerRoot=e=>{p=e},t.exports=_,_.default=_,_.rebuild=e=>{e.type===`atrule`?Object.setPrototypeOf(e,s.prototype):e.type===`rule`?Object.setPrototypeOf(e,m.prototype):e.type===`decl`?Object.setPrototypeOf(e,r.prototype):e.type===`comment`?Object.setPrototypeOf(e,n.prototype):e.type===`root`&&Object.setPrototypeOf(e,p.prototype),e[o]=!0,e.nodes&&e.nodes.forEach(e=>{_.rebuild(e)})}})),m=n(((e,t)=>{let n=p();var r=class extends n{constructor(e){super(e),this.type=`atrule`}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};t.exports=r,r.default=r,n.registerAtRule(r)})),h=n(((e,t)=>{let n=p(),r,i;var a=class extends n{constructor(e){super({type:`document`,...e}),this.nodes||=[]}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a})),g=n(((e,t)=>{t.exports={nanoid:(e=21)=>{let t=``,n=e|0;for(;n--;)t+=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`[Math.random()*64|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r=``,i=n|0;for(;i--;)r+=e[Math.random()*e.length|0];return r}}})),_=n((e=>{var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}})),v=n((e=>{var t=_(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}e.encode=function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},e.decode=function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r}})),y=n((e=>{function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}e.urlGenerate=a;var o=32;function s(e){var t=[];return function(n){for(var r=0;r<t.length;r++)if(t[r].input===n){var i=t[0];return t[0]=t[r],t[r]=i,t[0].result}var a=e(n);return t.unshift({input:n,result:a}),t.length>o&&t.pop(),a}}var c=s(function(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=[],c=0,l=0;;)if(c=l,l=n.indexOf(`/`,c),l===-1){s.push(n.slice(c));break}else for(s.push(n.slice(c,l));l<n.length&&n[l]===`/`;)l++;for(var u,d=0,l=s.length-1;l>=0;l--)u=s[l],u===`.`?s.splice(l,1):u===`..`?d++:d>0&&(u===``?(s.splice(l+1,d),d=0):(s.splice(l,2),d--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n});e.normalize=c;function l(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),o=i(e);if(o&&(e=o.path||`/`),n&&!n.scheme)return o&&(n.scheme=o.scheme),a(n);if(n||t.match(r))return t;if(o&&!o.host&&!o.path)return o.host=t,a(o);var s=t.charAt(0)===`/`?t:c(e.replace(/\/+$/,``)+`/`+t);return o?(o.path=s,a(o)):s}e.join=l,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function u(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=u;var d=function(){return!(`__proto__`in Object.create(null))}();function f(e){return e}function p(e){return h(e)?`$`+e:e}e.toSetString=d?f:p;function m(e){return h(e)?e.slice(1):e}e.fromSetString=d?f:m;function h(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function g(e,t,n){var r=b(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:b(e.name,t.name)}e.compareByOriginalPositions=g;function _(e,t,n){var r=e.originalLine-t.originalLine;return r!==0||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:b(e.name,t.name)}e.compareByOriginalPositionsNoSource=_;function v(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=b(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:b(e.name,t.name)}e.compareByGeneratedPositionsDeflated=v;function y(e,t,n){var r=e.generatedColumn-t.generatedColumn;return r!==0||n||(r=b(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:b(e.name,t.name)}e.compareByGeneratedPositionsDeflatedNoLine=y;function b(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function x(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=b(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:b(e.name,t.name)}e.compareByGeneratedPositionsInflated=x;function S(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}e.parseSourceMapInput=S;function C(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var o=r.path.lastIndexOf(`/`);o>=0&&(r.path=r.path.substring(0,o+1))}t=l(a(r),t)}return c(t)}e.computeSourceURL=C})),b=n((e=>{var t=y(),n=Object.prototype.hasOwnProperty,r=typeof Map<`u`;function i(){this._array=[],this._set=r?new Map:Object.create(null)}i.fromArray=function(e,t){for(var n=new i,r=0,a=e.length;r<a;r++)n.add(e[r],t);return n},i.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(e,i){var a=r?e:t.toSetString(e),o=r?this.has(e):n.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(e),o||(r?this._set.set(e,s):this._set[a]=s)},i.prototype.has=function(e){if(r)return this._set.has(e);var i=t.toSetString(e);return n.call(this._set,i)},i.prototype.indexOf=function(e){if(r){var i=this._set.get(e);if(i>=0)return i}else{var a=t.toSetString(e);if(n.call(this._set,a))return this._set[a]}throw Error(`"`+e+`" is not in the set.`)},i.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i})),x=n((e=>{var t=y();function n(e,n){var r=e.generatedLine,i=n.generatedLine,a=e.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||t.compareByGeneratedPositionsInflated(e,n)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||=(this._array.sort(t.compareByGeneratedPositionsInflated),!0),this._array},e.MappingList=r})),S=n((e=>{var t=v(),n=y(),r=b().ArraySet,i=x().MappingList;function a(e){e||={},this._file=n.getArg(e,`file`,null),this._sourceRoot=n.getArg(e,`sourceRoot`,null),this._skipValidation=n.getArg(e,`skipValidation`,!1),this._ignoreInvalidMapping=n.getArg(e,`ignoreInvalidMapping`,!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e,t){var r=e.sourceRoot,i=new a(Object.assign(t||{},{file:e.file,sourceRoot:r}));return e.eachMapping(function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(t.source=e.source,r!=null&&(t.source=n.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(t.name=e.name)),i.addMapping(t)}),e.sources.forEach(function(t){var a=t;r!==null&&(a=n.relative(r,t)),i._sources.has(a)||i._sources.add(a);var o=e.sourceContentFor(t);o!=null&&i.setSourceContent(t,o)}),i},a.prototype.addMapping=function(e){var t=n.getArg(e,`generated`),r=n.getArg(e,`original`,null),i=n.getArg(e,`source`,null),a=n.getArg(e,`name`,null);!this._skipValidation&&this._validateMapping(t,r,i,a)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a}))},a.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=n.relative(this._sourceRoot,r)),t==null?this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[n.toSetString(r)]=t)},a.prototype.applySourceMap=function(e,t,i){var a=t;if(t==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=n.relative(o,a));var s=new r,c=new r;this._mappings.unsortedForEach(function(t){if(t.source===a&&t.originalLine!=null){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});r.source!=null&&(t.source=r.source,i!=null&&(t.source=n.join(i,t.source)),o!=null&&(t.source=n.relative(o,t.source)),t.originalLine=r.line,t.originalColumn=r.column,r.name!=null&&(t.name=r.name))}var l=t.source;l!=null&&!s.has(l)&&s.add(l);var u=t.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r!=null&&(i!=null&&(t=n.join(i,t)),o!=null&&(t=n.relative(o,t)),this.setSourceContent(t,r))},this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`){var i=`original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.`;if(this._ignoreInvalidMapping)return typeof console<`u`&&console.warn&&console.warn(i),!1;throw Error(i)}if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)&&!(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)){var i=`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r});if(this._ignoreInvalidMapping)return typeof console<`u`&&console.warn&&console.warn(i),!1;throw Error(i)}},a.prototype._serializeMappings=function(){for(var e=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!n.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=t.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=t.encode(f-s),s=f,l+=t.encode(u.originalLine-1-a),a=u.originalLine-1,l+=t.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=t.encode(d-o),o=d)),c+=l}return c},a.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t!=null&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=a})),C=n((e=>{e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.search=function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o}})),w=n((e=>{function t(e){function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return Math.round(e+Math.random()*(t-e))}function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l,!1)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}return r}function n(e){let n=t.toString();return Function(`return ${n}`)()(e)}let r=new WeakMap;e.quickSort=function(e,t,i=0){let a=r.get(t);a===void 0&&(a=n(t),r.set(t,a)),a(e,t,i,e.length-1)}})),T=n((e=>{var t=y(),n=C(),r=b().ArraySet,i=v(),a=w().quickSort;function o(e,n){var r=e;return typeof e==`string`&&(r=t.parseSourceMapInput(e)),r.sections==null?new s(r,n):new d(r,n)}o.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,`_generatedMappings`,{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,`_originalMappings`,{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},o.prototype._parseMappings=function(e,t){throw Error(`Subclasses must implement _parseMappings`)},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(e,n,r){var i=n||null,a=r||o.GENERATED_ORDER,s;switch(a){case o.GENERATED_ORDER:s=this._generatedMappings;break;case o.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}for(var c=this.sourceRoot,l=e.bind(i),u=this._names,d=this._sources,f=this._sourceMapURL,p=0,m=s.length;p<m;p++){var h=s[p],g=h.source===null?null:d.at(h.source);g!==null&&(g=t.computeSourceURL(c,g,f)),l({source:g,generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:h.name===null?null:u.at(h.name)})}},o.prototype.allGeneratedPositionsFor=function(e){var r=t.getArg(e,`line`),i={source:t.getArg(e,`source`),originalLine:r,originalColumn:t.getArg(e,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},e.SourceMapConsumer=o;function s(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),o=t.getArg(i,`sources`),s=t.getArg(i,`names`,[]),c=t.getArg(i,`sourceRoot`,null),l=t.getArg(i,`sourcesContent`,null),u=t.getArg(i,`mappings`),d=t.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=t.normalize(c),o=o.map(String).map(t.normalize).map(function(e){return c&&t.isAbsolute(c)&&t.isAbsolute(e)?t.relative(c,e):e}),this._names=r.fromArray(s.map(String),!0),this._sources=r.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return t.computeSourceURL(c,e,n)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=n,this.file=d}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(e){var n=e;if(this.sourceRoot!=null&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1},s.fromSourceMap=function(e,n){var i=Object.create(s.prototype),o=i._names=r.fromArray(e._names.toArray(),!0),l=i._sources=r.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=n,i._absoluteSources=i._sources.toArray().map(function(e){return t.computeSourceURL(i.sourceRoot,e,n)});for(var u=e._mappings.toArray().slice(),d=i.__generatedMappings=[],f=i.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new c;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=o.indexOf(h.name)),f.push(g)),d.push(g)}return a(i.__originalMappings,t.compareByOriginalPositions),i},s.prototype._version=3,Object.defineProperty(s.prototype,`sources`,{get:function(){return this._absoluteSources.slice()}});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let l=t.compareByGeneratedPositionsDeflatedNoLine;function u(e,t){let n=e.length,r=e.length-t;if(!(r<=1))if(r==2){let n=e[t],r=e[t+1];l(n,r)>0&&(e[t]=r,e[t+1]=n)}else if(r<20)for(let r=t;r<n;r++)for(let n=r;n>t;n--){let t=e[n-1],r=e[n];if(l(t,r)<=0)break;e[n-1]=r,e[n]=t}else a(e,l,t)}s.prototype._parseMappings=function(e,n){var r=1,o=0,s=0,l=0,d=0,f=0,p=e.length,m=0,h={},g=[],_=[],v,y,b,x;let S=0;for(;m<p;)if(e.charAt(m)===`;`)r++,m++,o=0,u(_,S),S=_.length;else if(e.charAt(m)===`,`)m++;else{for(v=new c,v.generatedLine=r,b=m;b<p&&!this._charIsMappingSeparator(e,b);b++);for(e.slice(m,b),y=[];m<b;)i.decode(e,m,h),x=h.value,m=h.rest,y.push(x);if(y.length===2)throw Error(`Found a source, but no line and column`);if(y.length===3)throw Error(`Found a source and line, but no column`);if(v.generatedColumn=o+y[0],o=v.generatedColumn,y.length>1&&(v.source=d+y[1],d+=y[1],v.originalLine=s+y[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=l+y[3],l=v.originalColumn,y.length>4&&(v.name=f+y[4],f+=y[4])),_.push(v),typeof v.originalLine==`number`){let e=v.source;for(;g.length<=e;)g.push(null);g[e]===null&&(g[e]=[]),g[e].push(v)}}u(_,S),this.__generatedMappings=_;for(var C=0;C<g.length;C++)g[C]!=null&&a(g[C],t.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...g)},s.prototype._findMapping=function(e,t,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return n.search(e,t,a,o)},s.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(e){var n={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,t.compareByGeneratedPositionsDeflated,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=t.getArg(i,`source`,null);a!==null&&(a=this._sources.at(a),a=t.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var s=t.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:a,line:t.getArg(i,`originalLine`,null),column:t.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},s.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=t.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=t.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},s.prototype.generatedPositionFor=function(e){var n=t.getArg(e,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:t.getArg(e,`line`),originalColumn:t.getArg(e,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:t.getArg(a,`generatedLine`,null),column:t.getArg(a,`generatedColumn`,null),lastColumn:t.getArg(a,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=s;function d(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),s=t.getArg(i,`sections`);if(a!=this._version)throw Error(`Unsupported version: `+a);this._sources=new r,this._names=new r;var c={line:-1,column:0};this._sections=s.map(function(e){if(e.url)throw Error(`Support for url field in sections not implemented.`);var r=t.getArg(e,`offset`),i=t.getArg(r,`line`),a=t.getArg(r,`column`);if(i<c.line||i===c.line&&a<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new o(t.getArg(e,`map`),n)}})}d.prototype=Object.create(o.prototype),d.prototype.constructor=o,d.prototype._version=3,Object.defineProperty(d.prototype,`sources`,{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},i=n.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r||r===``)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},d.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(t.getArg(e,`source`))!==-1){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=i.consumer._sources.at(c.source);l!==null&&(l=t.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=d})),E=n((e=>{var t=S().SourceMapGenerator,n=y(),r=/(\r?\n)/,i=10,a=`$$$isSourceNode$$$`;function o(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[a]=!0,r!=null&&this.add(r)}o.fromStringWithSourceMap=function(e,t,i){var a=new o,s=e.split(r),c=0,l=function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},u=1,d=0,f=null;return t.eachMapping(function(e){if(f!==null)if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}for(;u<e.generatedLine;)a.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;a.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),a.add(s.splice(c).join(``))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);r!=null&&(i!=null&&(e=n.join(i,e)),a.setSourceContent(e,r))}),a;function p(e,t){if(e===null||e.source===void 0)a.add(t);else{var r=i?n.join(i,e.source):e.source;a.add(new o(e.originalLine,e.originalColumn,r,t,e.name))}}},o.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[a]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[a]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[a]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},o.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},o.prototype.setSourceContent=function(e,t){this.sourceContents[n.toSetString(e)]=t},o.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(n.fromSetString(i[t]),this.sourceContents[i[t]])},o.prototype.toString=function(){var e=``;return this.walk(function(t){e+=t}),e},o.prototype.toStringWithSourceMap=function(e){var n={code:``,line:1,column:0},r=new t(e),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(r.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===i?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:n.code,map:r}},e.SourceNode=o})),D=n((e=>{e.SourceMapGenerator=S().SourceMapGenerator,e.SourceMapConsumer=T().SourceMapConsumer,e.SourceNode=E().SourceNode})),O=n(((e,n)=>{let{existsSync:r,readFileSync:i}=t(`fs`),{dirname:a,join:o}=t(`path`),{SourceMapConsumer:s,SourceMapGenerator:c}=D();function l(e){return Buffer?Buffer.from(e,`base64`).toString():window.atob(e)}var u=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=a(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||=new s(this.text),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,r=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(r)return decodeURIComponent(e.substr(r[0].length));let i=e.match(t)||e.match(n);if(i)return l(e.substr(i[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw Error(`Unsupported source map encoding `+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()}isMap(e){return typeof e==`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=a(e),r(e))return this.mapFile=e,i(e,`utf-8`).toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t==`string`)return t;if(typeof t==`function`){let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw Error(`Unable to load previous source map: `+n.toString());return e}}else if(t instanceof s)return c.fromSourceMap(t).toString();else if(t instanceof c)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error(`Unsupported previous source map format: `+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=o(a(e),t)),this.loadFile(t)}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};n.exports=u,u.default=u})),k=n(((e,n)=>{let{nanoid:r}=g(),{isAbsolute:i,resolve:s}=t(`path`),{SourceMapConsumer:c,SourceMapGenerator:l}=D(),{fileURLToPath:u,pathToFileURL:d}=t(`url`),f=o(),p=O(),m=a(),h=Symbol(`lineToIndexCache`),_=!!(c&&l),v=!!(s&&i);function y(e){if(e[h])return e[h];let t=e.css.split(`
22
- `),n=Array(t.length),r=0;for(let e=0,i=t.length;e<i;e++)n[e]=r,r+=t[e].length+1;return e[h]=n,n}var b=class{get from(){return this.file||this.id}constructor(e,t={}){if(e==null||typeof e==`object`&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===`￾`?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!v||/^\w+:\/\//.test(t.from)||i(t.from)?this.file=t.from:this.file=s(t.from)),v&&_){let e=new p(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=`<input css `+r(6)+`>`),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,a,o,s,c;if(t&&typeof t==`object`){let e=t,r=n;if(typeof e.offset==`number`){s=e.offset;let r=this.fromOffset(s);t=r.line,n=r.col}else t=e.line,n=e.column,s=this.fromLineAndColumn(t,n);if(typeof r.offset==`number`){o=r.offset;let e=this.fromOffset(o);a=e.line,i=e.col}else a=r.line,i=r.column,o=this.fromLineAndColumn(r.line,r.column)}else if(n)s=this.fromLineAndColumn(t,n);else{s=t;let e=this.fromOffset(s);t=e.line,n=e.col}let l=this.origin(t,n,a,i);return c=l?new f(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,r.plugin):new f(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:i,line:a},this.css,this.file,r.plugin),c.input={column:n,endColumn:i,endLine:a,endOffset:o,line:t,offset:s,source:this.css},this.file&&(d&&(c.input.url=d(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return y(this)[e-1]+t-1}fromOffset(e){let t=y(this),n=t[t.length-1],r=0;if(e>=n)r=t.length-1;else{let n=t.length-2,i;for(;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:s(this.map.consumer().sourceRoot||this.map.root||`.`,e)}origin(e,t,n,r){if(!this.map)return!1;let a=this.map.consumer(),o=a.originalPositionFor({column:t,line:e});if(!o.source)return!1;let s;typeof n==`number`&&(s=a.originalPositionFor({column:r,line:n}));let c;c=i(o.source)?d(o.source):new URL(o.source,this.map.consumer().sourceRoot||d(this.map.mapFile));let l={column:o.column,endColumn:s&&s.column,endLine:s&&s.line,line:o.line,url:c.toString()};if(c.protocol===`file:`)if(u)l.file=u(c);else throw Error(`file: protocol is not available in this PostCSS build`);let f=a.sourceContentFor(o.source);return f&&(l.source=f),l}toJSON(){let e={};for(let t of[`hasBOM`,`css`,`file`,`id`])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};n.exports=b,b.default=b,m&&m.registerInput&&m.registerInput(b)})),A=n(((e,t)=>{let n=p(),r,i;var a=class extends n{constructor(e){super(e),this.type=`root`,this.nodes||=[]}normalize(e,t,n){let r=super.normalize(e);if(t){if(n===`prepend`)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before}return r}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a,n.registerRoot(a)})),j=n(((e,t)=>{let n={comma(e){return n.split(e,[`,`],!0)},space(e){return n.split(e,[` `,`
23
- `,` `])},split(e,t,n){let r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1;for(let n of e)l?l=!1:n===`\\`?l=!0:s?n===c&&(s=!1):n===`"`||n===`'`?(s=!0,c=n):n===`(`?o+=1:n===`)`?o>0&&--o:o===0&&t.includes(n)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=n;return(n||i!==``)&&r.push(i.trim()),r}};t.exports=n,n.default=n})),M=n(((e,t)=>{let n=p(),r=j();var i=class extends n{get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}constructor(e){super(e),this.type=`rule`,this.nodes||=[]}};t.exports=i,i.default=i,n.registerRule(i)})),N=n(((e,t)=>{let n=m(),r=d(),i=f(),a=k(),o=O(),s=A(),c=M();function l(e,t){if(Array.isArray(e))return e.map(e=>l(e));let{inputs:u,...d}=e;if(u){t=[];for(let e of u){let n={...e,__proto__:a.prototype};n.map&&={...n.map,__proto__:o.prototype},t.push(n)}}if(d.nodes&&=e.nodes.map(e=>l(e,t)),d.source){let{inputId:e,...n}=d.source;d.source=n,e!=null&&(d.source.input=t[e])}if(d.type===`root`)return new s(d);if(d.type===`decl`)return new i(d);if(d.type===`rule`)return new c(d);if(d.type===`comment`)return new r(d);if(d.type===`atrule`)return new n(d);throw Error(`Unknown node type: `+e.type)}t.exports=l,l.default=l})),P=n(((e,n)=>{let{dirname:r,relative:i,resolve:a,sep:o}=t(`path`),{SourceMapConsumer:s,SourceMapGenerator:c}=D(),{pathToFileURL:l}=t(`url`),u=k(),d=!!(s&&c),f=!!(r&&a&&i&&o);n.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`;let t=`
24
- `;this.css.includes(`\r
25
- `)&&(t=`\r
26
- `),this.css+=t+`/*# sourceMappingURL=`+e+` */`}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||r(e.file),i;this.mapOpts.sourcesContent===!1?(i=new s(e.text),i.sourcesContent&&=null):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type===`comment`&&e.text.startsWith(`# sourceMappingURL=`)&&this.root.removeChild(t)}else this.css&&=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,``)}generate(){if(this.clearAnnotation(),f&&d&&this.isMap())return this.generateMap();{let e=``;return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=c.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css=``,this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,n=`<no source>`,r={generated:{column:0,line:0},original:{column:0,line:0},source:``},i,a;this.stringify(this.root,(o,s,c)=>{if(this.css+=o,s&&c!==`end`&&(r.generated.line=e,r.generated.column=t-1,s.source&&s.source.start?(r.source=this.sourcePath(s),r.original.line=s.source.start.line,r.original.column=s.source.start.column-1,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,this.map.addMapping(r))),a=o.match(/\n/g),a?(e+=a.length,i=o.lastIndexOf(`
27
- `),t=o.length-i):t+=o.length,s&&c!==`start`){let i=s.parent||{raws:{}};(!(s.type===`decl`||s.type===`atrule`&&!s.nodes)||s!==i.last||i.raws.semicolon)&&(s.source&&s.source.end?(r.source=this.sourcePath(s),r.original.line=s.source.end.line,r.original.column=s.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:this.mapOpts.annotation===void 0?this.previous().length?this.previous().some(e=>e.annotation):!0:this.mapOpts.annotation}isInline(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;let e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:this.previous().length?this.previous().some(e=>e.inline):!0}isMap(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map}isSourcesContent(){return this.mapOpts.sourcesContent===void 0?this.previous().length?this.previous().some(e=>e.withContent()):!0:this.mapOpts.sourcesContent}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?r(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(n=r(a(n,this.mapOpts.annotation)));let o=i(n,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(l){let t=l(e).toString();return this.memoizedFileURLs.set(e,t),t}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;o===`\\`&&(e=e.replace(/\\/g,`/`));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}})),F=n(((e,t)=>{let n=m(),r=d(),a=f(),o=A(),s=M(),c=i(),l={empty:!0,space:!0};function u(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}t.exports=class{constructor(e){this.input=e,this.root=new o,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new n;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,a,o=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r===`(`||r===`[`?l.push(r===`(`?`)`:`]`):r===`{`&&l.length>0?l.push(`}`):r===l[l.length-1]&&l.pop(),l.length===0)if(r===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r===`{`){s=!0;break}else if(r===`}`){if(c.length>0){for(a=c.length-1,i=c[a];i&&i[0]===`space`;)i=c[--a];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else c.push(e);else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(t.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(t,`params`,c),o&&(e=c[c.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),s&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}colon(e){let t=0,n,r,i;for(let[a,o]of e.entries()){if(r=o,i=r[0],i===`(`&&(t+=1),i===`)`&&--t,t===0&&i===`:`)if(!n)this.doubleColon(r);else if(n[0]===`word`&&n[1]===`progid`)continue;else return a;n=r}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text=``,t.raws.left=n,t.raws.right=``;else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=c(this.input)}decl(e,t){let n=new a;this.init(n,e[0][2]);let r=e[e.length-1];for(r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||u(e)),n.source.end.offset++;e[0][0]!==`word`;)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop=``;e.length;){let t=e[0][0];if(t===`:`||t===`space`||t===`comment`)break;n.prop+=e.shift()[1]}n.raws.between=``;let i;for(;e.length;)if(i=e.shift(),i[0]===`:`){n.raws.between+=i[1];break}else i[0]===`word`&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1];(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],s;for(;e.length&&(s=e[0][0],!(s!==`space`&&s!==`comment`));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(i=e[t],i[1].toLowerCase()===`!important`){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r,r!==` !important`&&(n.raws.important=r);break}else if(i[1].toLowerCase()===`important`){let r=e.slice(0),i=``;for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith(`!`)&&t!==`space`)break;i=r.pop()[1]+i}i.trim().startsWith(`!`)&&(n.important=!0,n.raws.important=i,e=r)}if(i[0]!==`space`&&i[0]!==`comment`)break}e.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(n.raws.between+=o.map(e=>e[1]).join(``),o=[]),this.raw(n,`value`,o.concat(e),t),n.value.includes(`:`)&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error(`Double colon`,{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new s;this.init(t,e[2]),t.selector=``,t.raws.between=``,this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.spaces=``,this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type===`rule`&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=``,t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=``,e.type!==`comment`&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0)if(n===`;`)if(r){this.decl(s,o);return}else break;else if(n===`{`){this.rule(s);return}else if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}else n===`:`&&(r=!0);else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],!(c!==`space`&&c!==`comment`));)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,a,o=n.length,s=``,c=!0,u,d;for(let e=0;e<o;e+=1)i=n[e],a=i[0],a===`space`&&e===o-1&&!r?c=!1:a===`comment`?(d=n[e-1]?n[e-1][0]:`empty`,u=n[e+1]?n[e+1][0]:`empty`,!l[d]&&!l[u]?s.slice(-1)===`,`?c=!1:s+=i[1]:c=!1):s+=i[1];if(!c){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:s}}e[t]=s}rule(e){e.pop();let t=new s;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t}spacesAndCommentsFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],!(t!==`space`&&t!==`comment`));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n=``;for(;e.length&&(t=e[0][0],!(t!==`space`&&t!==`comment`));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n=``;for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error(`Unclosed block`,e.line,e.column)}unclosedBracket(e){throw this.input.error(`Unclosed bracket`,{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error(`Unexpected }`,{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error(`Unknown word `+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error(`At-rule without name`,{offset:t[2]},{offset:t[2]+t[1].length})}}})),I=n(((e,t)=>{let n=p(),r=k(),i=F();function a(e,t){let n=new i(new r(e,t));try{n.parse()}catch(e){throw process.env.NODE_ENV!==`production`&&e.name===`CssSyntaxError`&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+=`
28
- You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(t.from)?e.message+=`
29
- You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(t.from)&&(e.message+=`
30
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),e}return n.root}t.exports=a,a.default=a,n.registerParse(a)})),L=n(((e,t)=>{var n=class{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+`: `+this.text:this.text}};t.exports=n,n.default=n})),R=n(((e,t)=>{let n=L();var r=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=``,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}};t.exports=r,r.default=r})),z=n(((e,t)=>{let n={};t.exports=function(e){n[e]||(n[e]=!0,typeof console<`u`&&console.warn&&console.warn(e))}})),B=n(((e,t)=>{let n=p(),r=h(),i=P(),a=I(),o=R(),s=A(),u=c(),{isClean:d,my:f}=l(),m=z(),g={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},_={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},v={Once:!0,postcssPlugin:!0,prepare:!0};function y(e){return typeof e==`object`&&typeof e.then==`function`}function b(e){let t=!1,n=g[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,0,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,0,n+`Exit`]:[n,n+`Exit`]}function x(e){let t;return t=e.type===`document`?[`Document`,0,`DocumentExit`]:e.type===`root`?[`Root`,0,`RootExit`]:b(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function S(e){return e[d]=!1,e.nodes&&e.nodes.forEach(e=>S(e)),e}let C={};var w=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return`LazyResult`}constructor(t,r,i){this.stringified=!1,this.processed=!1;let s;if(typeof r==`object`&&r&&(r.type===`root`||r.type===`document`))s=S(r);else if(r instanceof e||r instanceof o)s=S(r.root),r.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{s=e(r,i)}catch(e){this.processed=!0,this.error=e}s&&!s[f]&&n.rebuild(s)}this.result=new o(t,s,i),this.helpers={...C,postcss:C,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!==`production`){let e=n.postcssPlugin,t=n.postcssVersion,r=this.result.processor.version,i=t.split(`.`),a=r.split(`.`);(i[0]!==a[0]||parseInt(i[1])>parseInt(a[1]))&&console.error(`Unknown error from PostCSS plugin. Your current PostCSS version is `+r+`, but `+e+` uses `+t+`. Perhaps this is the source of the error below.`)}}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!_[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!v[n])if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(y(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[d];){e[d]=!0;let t=[x(e)];for(;t.length>0;){let e=this.visitTick(t);if(y(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type===`document`){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return y(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=u;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new i(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(y(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[d];)e[d]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type===`document`)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!==`production`&&(`from`in this.opts||m("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(y(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){let r=t.iterator,i;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[d]){i[d]=!0,e.push(x(i));return}t.iterator=0,delete n.indexes[r]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===0){n.nodes&&n.nodes.length&&(n[d]=!0,t.iterator=n.getIterator());return}else if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[d]=!0;let t=b(e);for(let n of t)if(n===0)e.nodes&&e.each(e=>{e[d]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}};w.registerPostcss=e=>{C=e},t.exports=w,w.default=w,s.registerLazyResult(w),r.registerLazyResult(w)})),ee=n(((e,t)=>{let n=P(),r=I(),i=R(),a=c(),o=z();var s=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let o=a;this.result=new i(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,`root`,{get(){return s.root}});let c=new n(o,void 0,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return process.env.NODE_ENV!==`production`&&(`from`in this._opts||o("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};t.exports=s,s.default=s})),V=n(((e,t)=>{let n=h(),r=B(),i=ee(),a=A();var o=class{constructor(e=[]){this.version=`8.5.6`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(typeof n==`object`&&(n.parse||n.stringify)){if(process.env.NODE_ENV!==`production`)throw Error(`PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.`)}else throw Error(n+` is not a PostCSS plugin`);return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new i(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,a.registerProcessor(o),n.registerProcessor(o)})),H=e(n(((e,t)=>{let n=m(),r=d(),i=p(),a=o(),s=f(),l=h(),g=N(),_=k(),v=B(),y=j(),b=u(),x=I(),S=V(),C=R(),w=A(),T=M(),E=c(),D=L();function O(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new S(e)}O.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
31
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
32
- https://www.w3ctech.com/topic/2226`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new S().version,i}let i;return Object.defineProperty(r,`postcss`,{get(){return i||=r(),i}}),r.process=function(e,t,n){return O([r(n)]).process(e,t)},r},O.stringify=E,O.parse=x,O.fromJSON=g,O.list=y,O.comment=e=>new r(e),O.atRule=e=>new n(e),O.decl=e=>new s(e),O.rule=e=>new T(e),O.root=e=>new w(e),O.document=e=>new l(e),O.CssSyntaxError=a,O.Declaration=s,O.Container=i,O.Processor=S,O.Document=l,O.Comment=r,O.Warning=D,O.AtRule=n,O.Result=C,O.Input=_,O.Rule=T,O.Root=w,O.Node=b,v.registerPostcss(O),t.exports=O,O.default=O}))(),1),U=H.default;const W=H.default.stringify,G=H.default.fromJSON,K=H.default.plugin,q=H.default.parse,J=H.default.list,Y=H.default.document,X=H.default.comment,Z=H.default.atRule,Q=H.default.rule,te=H.default.decl,ne=H.default.root,re=H.default.CssSyntaxError,ie=H.default.Declaration,ae=H.default.Container,oe=H.default.Processor,$=H.default.Document,se=H.default.Comment,ce=H.default.Warning,le=H.default.AtRule,ue=H.default.Result,de=H.default.Input,fe=H.default.Rule,pe=H.default.Root,me=H.default.Node;export{le as AtRule,se as Comment,ae as Container,re as CssSyntaxError,ie as Declaration,$ as Document,de as Input,me as Node,oe as Processor,ue as Result,pe as Root,fe as Rule,ce as Warning,Z as atRule,X as comment,te as decl,U as default,Y as document,G as fromJSON,J as list,q as parse,K as plugin,ne as root,Q as rule,W as stringify};
@@ -1,5 +0,0 @@
1
- import{i as e,t}from"./chunk-CxnlK1Zi.mjs";import{t as n}from"./lib-CMv7Sfwa.mjs";var r=t(((e,t)=>{t.exports=function(e,t,n){let r=[];if(e!==void 0){let t=`layer`;e&&(t=`layer(${e})`),r.push(t)}return n!==void 0&&r.push(`supports(${n})`),t!==void 0&&r.push(t),r.join(` `)}})),i=t(((e,t)=>{let n=r();t.exports=function(e,t){if(!t?.length)return e;t.reverse();let r=t.pop(),i=`${e} ${n(r.layer,r.media,r.supports)}`;for(let e of t)i=`'data:text/css;base64,${Buffer.from(`@import ${i}`).toString(`base64`)}' ${n(e.layer,e.media,e.supports)}`;return i}})),a=t(((e,t)=>{let n=i();t.exports=function(e,t){let r=e.findIndex(e=>e.type===`import`),i=e.findLastIndex(e=>e.type===`import`);e.forEach((e,a)=>{if(e.type===`charset`||e.type===`warning`)return;if(e.type===`layer`&&(a<i&&e.conditions?.length||a>r&&a<i)){e.type=`import`,e.node=e.node.clone({name:`import`,params:n(`'data:text/css;base64,${Buffer.from(e.node.toString()).toString(`base64`)}'`,e.conditions)});return}if(!e.conditions?.length)return;if(e.type===`import`){e.node.params=n(e.fullUri,e.conditions);return}let o,s;e.type===`layer`?(o=[e.node],s=e.node.parent):(o=e.nodes,s=o[0].parent);let c=[];for(let n of e.conditions){if(n.media!==void 0){let e=t({name:`media`,params:n.media,source:s.source});c.push(e)}if(n.supports!==void 0){let e=t({name:`supports`,params:`(${n.supports})`,source:s.source});c.push(e)}if(n.layer!==void 0){let e=t({name:`layer`,params:n.layer,source:s.source});c.push(e)}}let l=c.shift(),u=c.reduce((e,t)=>(e.append(t),t),l);s.insertBefore(o[0],l),o.forEach(e=>{e.parent=void 0}),o[0].raws.before=o[0].raws.before||`
2
- `,u.append(o),e.type=`nodes`,e.nodes=[l],delete e.node})}})),o=t(((e,t)=>{t.exports=function(e){e.forEach((e,t)=>{if(t!==0)if(e.parent){let{before:t}=e.parent.node.raws;e.type===`nodes`?e.nodes[0].raws.before=t:e.node.raws.before=t}else e.type===`nodes`&&(e.nodes[0].raws.before=e.nodes[0].raws.before||`
3
- `)})}})),s=t(((e,t)=>{t.exports=function(e,t){t.nodes=[],e.forEach(e=>{[`charset`,`import`,`layer`].includes(e.type)?(e.node.parent=void 0,t.append(e.node)):e.type===`nodes`&&e.nodes.forEach(e=>{e.parent=void 0,t.append(e)})})}})),c=t(((e,t)=>{let n=/^data:text\/css(?:;(base64|plain))?,/i,r=/^data:text\/css;base64,/i,i=/^data:text\/css;plain,/i;function a(e){return n.test(e)}function o(e){return r.test(e)?Buffer.from(e.slice(21),`base64`).toString():i.test(e)?decodeURIComponent(e.slice(20)):decodeURIComponent(e.slice(14))}t.exports={isValid:a,contents:o}})),l=t(((e,t)=>{let r=n(),{stringify:i}=r;t.exports=function(e,t,n,r){let i=[],c=[],l=!1;return t.each(t=>{let u;t.type===`atrule`?t.name===`import`?u=o(e,t,n,r):t.name===`charset`?u=a(e,t,n,r):t.name===`layer`&&!l&&!t.nodes&&(u=s(e,t,n,r)):t.type!==`comment`&&(l=!0),u?(c.length&&(i.push({type:`nodes`,nodes:c,conditions:[...n],from:r}),c=[]),i.push(u)):c.push(t)}),c.length&&i.push({type:`nodes`,nodes:c,conditions:[...n],from:r}),i};function a(e,t,n,r){return t.prev()?e.warn(`@charset must precede all other statements`,{node:t}):{type:`charset`,node:t,conditions:[...n],from:r}}function o(e,t,n,a){let o=t.prev();if(o)do{if(o.type===`comment`||o.type===`atrule`&&o.name===`import`){o=o.prev();continue}break}while(o);if(o)do{if(o.type===`comment`||o.type===`atrule`&&(o.name===`charset`||o.name===`layer`&&!o.nodes)){o=o.prev();continue}return e.warn(`@import must precede all other statements (besides @charset or empty @layer)`,{node:t})}while(o);if(t.nodes)return e.warn(`It looks like you didn't end your @import statement correctly. Child nodes are attached to it.`,{node:t});let s=r(t.params).nodes,c={type:`import`,uri:``,fullUri:``,node:t,conditions:[...n],from:a},l,u,d;for(let n=0;n<s.length;n++){let r=s[n];if(!(r.type===`space`||r.type===`comment`)){if(r.type===`string`){if(c.uri)return e.warn(`Multiple url's in '${t.toString()}'`,{node:t});if(!r.value)return e.warn(`Unable to find uri in '${t.toString()}'`,{node:t});c.uri=r.value,c.fullUri=i(r);continue}if(r.type===`function`&&/^url$/i.test(r.value)){if(c.uri)return e.warn(`Multiple url's in '${t.toString()}'`,{node:t});if(!r.nodes?.[0]?.value)return e.warn(`Unable to find uri in '${t.toString()}'`,{node:t});c.uri=r.nodes[0].value,c.fullUri=i(r);continue}if(!c.uri)return e.warn(`Unable to find uri in '${t.toString()}'`,{node:t});if((r.type===`word`||r.type===`function`)&&/^layer$/i.test(r.value)){if(l!==void 0)return e.warn(`Multiple layers in '${t.toString()}'`,{node:t});if(d!==void 0)return e.warn(`layers must be defined before support conditions in '${t.toString()}'`,{node:t});l=r.nodes?i(r.nodes):``;continue}if(r.type===`function`&&/^supports$/i.test(r.value)){if(d!==void 0)return e.warn(`Multiple support conditions in '${t.toString()}'`,{node:t});d=i(r.nodes);continue}u=i(s.slice(n));break}}return c.uri?((u!==void 0||l!==void 0||d!==void 0)&&c.conditions.push({layer:l,media:u,supports:d}),c):e.warn(`Unable to find uri in '${t.toString()}'`,{node:t})}function s(e,t,n,r){return{type:`layer`,node:t,conditions:[...n],from:r}}})),u=t(((t,n)=>{let r=e(`path`),i;n.exports=function(t,n,o,s,c){let{plugins:l}=s,u=r.extname(o),d=[];if(u===`.sss`){if(!i)try{i=e(`sugarss`)}catch{}if(i)return a(c,n,o,l,[i])}return t.opts.syntax?.parse&&d.push(t.opts.syntax.parse),t.opts.parser&&d.push(t.opts.parser),d.push(null),a(c,n,o,l,d)};function a(e,t,n,r,i,o){return o||=0,e(r).process(t,{from:n,parser:i[o]}).catch(s=>{if(o++,o===i.length)throw s;return a(e,t,n,r,i,o)})}})),d=t(((t,n)=>{let i=e(`path`),a=c(),o=l(),s=u(),d=e=>e,f=r();async function p(e,t,n,r,i,a,s){let c=o(e,t,i,a);for(let t of c)t.type!==`import`||!g(t.uri)||n.filter&&!n.filter(t.uri)||await m(e,t,n,r,s);let l,u=[],d=[];function f(e){if(!l)l=e;else if(e.node.params.toLowerCase()!==l.node.params.toLowerCase())throw e.node.error(`Incompatible @charset statements:
4
- ${e.node.params} specified in ${e.node.source.input.file}
5
- ${l.node.params} specified in ${l.node.source.input.file}`)}return c.forEach(e=>{e.type===`charset`?f(e):e.type===`import`?e.children?e.children.forEach((t,n)=>{t.type===`import`||t.type===`layer`?u.push(t):t.type===`charset`?f(t):d.push(t),n===0&&(t.parent=e)}):u.push(e):e.type===`layer`?u.push(e):e.type===`nodes`&&d.push(e)}),l?[l,...u.concat(d)]:u.concat(d)}async function m(e,t,n,r,o){if(a.isValid(t.uri)){t.children=await h(e,t,t.uri,n,r,o);return}else if(a.isValid(t.from.slice(-1)))throw t.node.error(`Unable to import '${t.uri}' from a stylesheet that is embedded in a data url`);let s=t.node,c;s.source?.input?.file&&(c=s.source.input.file);let l=c?i.dirname(s.source.input.file):n.root,u=[await n.resolve(t.uri,l,n,s)].flat(),f=await Promise.all(u.map(e=>i.isAbsolute(e)?e:d(e,l,n,s)));f.forEach(t=>{e.messages.push({type:`dependency`,plugin:`postcss-import`,file:t,parent:c})}),t.children=(await Promise.all(f.map(i=>h(e,t,i,n,r,o)))).flat().filter(e=>!!e)}async function h(e,t,n,r,i,a){let o=t.node,{conditions:c,from:l}=t,u=c.map(e=>f(e.layer,e.media,e.supports)).join(`:`);if(r.skipDuplicates){if(i.importedFiles[n]?.[u])return;i.importedFiles[n]||(i.importedFiles[n]={}),i.importedFiles[n][u]=!0}if(l.includes(n))return;let d=await r.load(n,r);if(d.trim()===``&&r.warnOnEmpty){e.warn(`${n} is empty`,{node:o});return}if(r.skipDuplicates&&i.hashFiles[d]?.[u])return;let m=await s(e,d,n,r,a),h=m.root;return e.messages=e.messages.concat(m.messages),r.skipDuplicates&&(h.some(e=>e.type===`atrule`&&e.name===`import`)||(i.hashFiles[d]||(i.hashFiles[d]={}),i.hashFiles[d][u]=!0)),p(e,h,r,i,c,[...l,n],a)}function g(e){if(/^(?:[a-z]+:)?\/\//i.test(e))return!1;try{if(new URL(e,`https://example.com`).search)return!1}catch{}return!0}n.exports=p})),f=t(((t,n)=>{let r=e(`path`),i=a(),c=o(),l=s(),u=()=>``,f=d(),p=e=>e;function m(e){return e={root:process.cwd(),path:[],skipDuplicates:!0,resolve:p,load:u,plugins:[],addModulesDirectories:[],warnOnEmpty:!0,...e},e.root=r.resolve(e.root),typeof e.path==`string`&&(e.path=[e.path]),Array.isArray(e.path)||(e.path=[]),e.path=e.path.map(t=>r.resolve(e.root,t)),{postcssPlugin:`postcss-import`,async Once(t,{result:n,atRule:r,postcss:a}){let o={importedFiles:{},hashFiles:{}};if(t.source?.input?.file&&(o.importedFiles[t.source.input.file]={}),e.plugins&&!Array.isArray(e.plugins))throw Error(`plugins option must be an array`);let s=await f(n,t,e,o,[],[],a);c(s),i(s,r),l(s,t)}}}m.postcss=!0,n.exports=m}))();export{f as default};
@@ -1,13 +0,0 @@
1
- import{createRequire as e}from"node:module";import t from"node:path";import n from"node:fs/promises";import{Worker as r}from"node:worker_threads";import{styleText as i}from"node:util";import a from"node:os";var o=Object.create,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ee=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=l(t),a=0,o=i.length,u;a<o;a++)u=i[a],!d.call(e,u)&&u!==n&&s(e,u,{get:(e=>t[e]).bind(null,u),enumerable:!(r=c(t,u))||r.enumerable});return e},p=(e,t,n)=>(n=e==null?{}:o(u(e)),ee(t||!e||!e.__esModule?s(n,`default`,{value:e,enumerable:!0}):n,e)),m=e(import.meta.url),te=f(((e,t)=>{let n=m(`node:fs`),r=m(`node:child_process`),i=JSON.parse(n.readFileSync(m.resolve(`rolldown/package.json`),`utf-8`)).version,a=`/tmp/rolldown-${i}`,o=`${a}/node_modules/@rolldown/binding-wasm32-wasi/rolldown-binding.wasi.cjs`;if(!n.existsSync(o)){let e=`@rolldown/binding-wasm32-wasi@${i}`;n.rmSync(a,{recursive:!0,force:!0}),n.mkdirSync(a,{recursive:!0}),console.log(`[rolldown] Downloading ${e} on WebContainer...`),r.execFileSync(`pnpm`,[`i`,e],{cwd:a,stdio:`inherit`})}t.exports=m(o)})),h=f(((e,t)=>{let{readFileSync:n}=m(`node:fs`),r=null,i=[],a=()=>{let e=!1;return process.platform===`linux`&&(e=s(),e===null&&(e=c()),e===null&&(e=l())),e},o=e=>e.includes(`libc.musl-`)||e.includes(`ld-musl-`),s=()=>{try{return n(`/usr/bin/ldd`,`utf-8`).includes(`musl`)}catch{return null}},c=()=>{let e=null;return typeof process.report?.getReport==`function`&&(process.report.excludeNetwork=!0,e=process.report.getReport()),e?e.header&&e.header.glibcVersionRuntime?!1:!!(Array.isArray(e.sharedObjects)&&e.sharedObjects.some(o)):null},l=()=>{try{return m(`child_process`).execSync(`ldd --version`,{encoding:`utf8`}).includes(`musl`)}catch{return!1}};function u(){if(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)try{return m(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)}catch(e){i.push(e)}else if(process.platform===`android`)if(process.arch===`arm64`){try{return m(`./rolldown-binding.android-arm64.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-android-arm64`),t=m(`@rolldown/binding-android-arm64/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`arm`){try{return m(`./rolldown-binding.android-arm-eabi.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-android-arm-eabi`),t=m(`@rolldown/binding-android-arm-eabi/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else i.push(Error(`Unsupported architecture on Android ${process.arch}`));else if(process.platform===`win32`)if(process.arch===`x64`)if(process.config?.variables?.shlib_suffix===`dll.a`||process.config?.variables?.node_target_type===`shared_library`){try{return m(`./rolldown-binding.win32-x64-gnu.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-win32-x64-gnu`),t=m(`@rolldown/binding-win32-x64-gnu/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else{try{return m(`./rolldown-binding.win32-x64-msvc.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-win32-x64-msvc`),t=m(`@rolldown/binding-win32-x64-msvc/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`ia32`){try{return m(`./rolldown-binding.win32-ia32-msvc.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-win32-ia32-msvc`),t=m(`@rolldown/binding-win32-ia32-msvc/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`arm64`){try{return m(`./rolldown-binding.win32-arm64-msvc.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-win32-arm64-msvc`),t=m(`@rolldown/binding-win32-arm64-msvc/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else i.push(Error(`Unsupported architecture on Windows: ${process.arch}`));else if(process.platform===`darwin`){try{return m(`./rolldown-binding.darwin-universal.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-darwin-universal`),t=m(`@rolldown/binding-darwin-universal/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}if(process.arch===`x64`){try{return m(`./rolldown-binding.darwin-x64.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-darwin-x64`),t=m(`@rolldown/binding-darwin-x64/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`arm64`){try{return m(`./rolldown-binding.darwin-arm64.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-darwin-arm64`),t=m(`@rolldown/binding-darwin-arm64/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else i.push(Error(`Unsupported architecture on macOS: ${process.arch}`))}else if(process.platform===`freebsd`)if(process.arch===`x64`){try{return m(`./rolldown-binding.freebsd-x64.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-freebsd-x64`),t=m(`@rolldown/binding-freebsd-x64/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`arm64`){try{return m(`./rolldown-binding.freebsd-arm64.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-freebsd-arm64`),t=m(`@rolldown/binding-freebsd-arm64/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else i.push(Error(`Unsupported architecture on FreeBSD: ${process.arch}`));else if(process.platform===`linux`)if(process.arch===`x64`)if(a()){try{return m(`./rolldown-binding.linux-x64-musl.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-linux-x64-musl`),t=m(`@rolldown/binding-linux-x64-musl/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else{try{return m(`../rolldown-binding.linux-x64-gnu.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-linux-x64-gnu`),t=m(`@rolldown/binding-linux-x64-gnu/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`arm64`)if(a()){try{return m(`./rolldown-binding.linux-arm64-musl.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-linux-arm64-musl`),t=m(`@rolldown/binding-linux-arm64-musl/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else{try{return m(`./rolldown-binding.linux-arm64-gnu.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-linux-arm64-gnu`),t=m(`@rolldown/binding-linux-arm64-gnu/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`arm`)if(a()){try{return m(`./rolldown-binding.linux-arm-musleabihf.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-linux-arm-musleabihf`),t=m(`@rolldown/binding-linux-arm-musleabihf/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else{try{return m(`./rolldown-binding.linux-arm-gnueabihf.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-linux-arm-gnueabihf`),t=m(`@rolldown/binding-linux-arm-gnueabihf/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`loong64`)if(a()){try{return m(`./rolldown-binding.linux-loong64-musl.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-linux-loong64-musl`),t=m(`@rolldown/binding-linux-loong64-musl/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else{try{return m(`./rolldown-binding.linux-loong64-gnu.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-linux-loong64-gnu`),t=m(`@rolldown/binding-linux-loong64-gnu/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`riscv64`)if(a()){try{return m(`./rolldown-binding.linux-riscv64-musl.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-linux-riscv64-musl`),t=m(`@rolldown/binding-linux-riscv64-musl/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else{try{return m(`./rolldown-binding.linux-riscv64-gnu.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-linux-riscv64-gnu`),t=m(`@rolldown/binding-linux-riscv64-gnu/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`ppc64`){try{return m(`./rolldown-binding.linux-ppc64-gnu.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-linux-ppc64-gnu`),t=m(`@rolldown/binding-linux-ppc64-gnu/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`s390x`){try{return m(`./rolldown-binding.linux-s390x-gnu.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-linux-s390x-gnu`),t=m(`@rolldown/binding-linux-s390x-gnu/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else i.push(Error(`Unsupported architecture on Linux: ${process.arch}`));else if(process.platform===`openharmony`)if(process.arch===`arm64`){try{return m(`./rolldown-binding.openharmony-arm64.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-openharmony-arm64`),t=m(`@rolldown/binding-openharmony-arm64/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`x64`){try{return m(`./rolldown-binding.openharmony-x64.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-openharmony-x64`),t=m(`@rolldown/binding-openharmony-x64/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`arm`){try{return m(`./rolldown-binding.openharmony-arm.node`)}catch(e){i.push(e)}try{let e=m(`@rolldown/binding-openharmony-arm`),t=m(`@rolldown/binding-openharmony-arm/package.json`).version;if(t!==`1.0.0-beta.55`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.55 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else i.push(Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));else i.push(Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`))}if(r=u(),!r||process.env.NAPI_RS_FORCE_WASI){let e=null,t=null;try{e=m(`../rolldown-binding.wasi.cjs`),r=e}catch(e){process.env.NAPI_RS_FORCE_WASI&&(t=e)}if(!r)try{e=m(`@rolldown/binding-wasm32-wasi`),r=e}catch(e){process.env.NAPI_RS_FORCE_WASI&&(t.cause=e,i.push(e))}if(process.env.NAPI_RS_FORCE_WASI===`error`&&!e){let e=Error(`WASI binding not found and NAPI_RS_FORCE_WASI is set to error`);throw e.cause=t,e}}if(!r&&globalThis.process?.versions?.webcontainer)try{r=te()}catch(e){i.push(e)}if(!r)throw i.length>0?Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.",{cause:i.reduce((e,t)=>(t.cause=e,t))}):Error(`Failed to load native binding`);t.exports=r,t.exports.minify=r.minify,t.exports.minifySync=r.minifySync,t.exports.Severity=r.Severity,t.exports.ParseResult=r.ParseResult,t.exports.ExportExportNameKind=r.ExportExportNameKind,t.exports.ExportImportNameKind=r.ExportImportNameKind,t.exports.ExportLocalNameKind=r.ExportLocalNameKind,t.exports.ImportNameKind=r.ImportNameKind,t.exports.parse=r.parse,t.exports.parseSync=r.parseSync,t.exports.rawTransferSupported=r.rawTransferSupported,t.exports.ResolverFactory=r.ResolverFactory,t.exports.EnforceExtension=r.EnforceExtension,t.exports.ModuleType=r.ModuleType,t.exports.sync=r.sync,t.exports.HelperMode=r.HelperMode,t.exports.isolatedDeclaration=r.isolatedDeclaration,t.exports.isolatedDeclarationSync=r.isolatedDeclarationSync,t.exports.moduleRunnerTransform=r.moduleRunnerTransform,t.exports.moduleRunnerTransformSync=r.moduleRunnerTransformSync,t.exports.transform=r.transform,t.exports.transformSync=r.transformSync,t.exports.BindingBundleEndEventData=r.BindingBundleEndEventData,t.exports.BindingBundleErrorEventData=r.BindingBundleErrorEventData,t.exports.BindingBundler=r.BindingBundler,t.exports.BindingCallableBuiltinPlugin=r.BindingCallableBuiltinPlugin,t.exports.BindingChunkingContext=r.BindingChunkingContext,t.exports.BindingDevEngine=r.BindingDevEngine,t.exports.BindingMagicString=r.BindingMagicString,t.exports.BindingModuleInfo=r.BindingModuleInfo,t.exports.BindingNormalizedOptions=r.BindingNormalizedOptions,t.exports.BindingOutputAsset=r.BindingOutputAsset,t.exports.BindingOutputChunk=r.BindingOutputChunk,t.exports.BindingPluginContext=r.BindingPluginContext,t.exports.BindingRenderedChunk=r.BindingRenderedChunk,t.exports.BindingRenderedChunkMeta=r.BindingRenderedChunkMeta,t.exports.BindingRenderedModule=r.BindingRenderedModule,t.exports.BindingTransformPluginContext=r.BindingTransformPluginContext,t.exports.BindingUrlResolver=r.BindingUrlResolver,t.exports.BindingWatcher=r.BindingWatcher,t.exports.BindingWatcherBundler=r.BindingWatcherBundler,t.exports.BindingWatcherChangeData=r.BindingWatcherChangeData,t.exports.BindingWatcherEvent=r.BindingWatcherEvent,t.exports.ParallelJsPluginRegistry=r.ParallelJsPluginRegistry,t.exports.ScheduledBuild=r.ScheduledBuild,t.exports.TraceSubscriberGuard=r.TraceSubscriberGuard,t.exports.BindingAttachDebugInfo=r.BindingAttachDebugInfo,t.exports.BindingBuiltinPluginName=r.BindingBuiltinPluginName,t.exports.BindingChunkModuleOrderBy=r.BindingChunkModuleOrderBy,t.exports.BindingLogLevel=r.BindingLogLevel,t.exports.BindingPluginOrder=r.BindingPluginOrder,t.exports.BindingPropertyReadSideEffects=r.BindingPropertyReadSideEffects,t.exports.BindingPropertyWriteSideEffects=r.BindingPropertyWriteSideEffects,t.exports.BindingRebuildStrategy=r.BindingRebuildStrategy,t.exports.createTokioRuntime=r.createTokioRuntime,t.exports.FilterTokenKind=r.FilterTokenKind,t.exports.initTraceSubscriber=r.initTraceSubscriber,t.exports.registerPlugins=r.registerPlugins,t.exports.shutdownAsyncRuntime=r.shutdownAsyncRuntime,t.exports.startAsyncRuntime=r.startAsyncRuntime}));function ne(e){let t=``;for(;e--;)t+=` `;return t}function re(e){return e.replace(/^\t+/,e=>e.split(` `).join(` `))}function ie(e,t,n){let r=e.split(`
2
- `);if(t>r.length)return``;let i=Math.max(re(r[t-1].slice(0,n)).length+10+3,120),a=Math.max(0,t-3),o=Math.min(t+2,r.length);for(r=r.slice(a,o);!/\S/.test(r[r.length-1]);)r.pop(),--o;let s=String(o).length;return r.map((e,r)=>{let o=a+r+1===t,c=String(r+a+1);for(;c.length<s;)c=` ${c}`;let l=re(e);if(l.length>i&&(l=`${l.slice(0,i-3)}...`),o){let t=ne(s+2+re(e.slice(0,n)).length)+`^`;return`${c}: ${l}\n${t}`}return`${c}: ${l}`}).join(`
3
- `)}function ae(e,t){return e.start<=t&&t<e.end}function oe(e,t={}){let{offsetLine:n=0,offsetColumn:r=0}=t,i=0,a=e.split(`
4
- `).map((e,t)=>{let n=i+e.length+1,r={start:i,end:n,line:t};return i=n,r}),o=0;function s(t,i){if(typeof t==`string`&&(t=e.indexOf(t,i??0)),t===-1)return;let s=a[o],c=t>=s.end?1:-1;for(;s;){if(ae(s,t))return{line:n+s.line,column:r+t-s.start,character:t};o+=c,s=a[o]}}return s}function se(e,t,n){return oe(e,n)(t,n&&n.startIndex)}function ce(e){return{code:`PARSE_ERROR`,message:e}}function le(e){return{code:`INVALID_LOG_POSITION`,message:`Plugin "${e}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`}}function ue(e,t){return{code:`INPUT_HOOK_IN_OUTPUT_PLUGIN`,message:`The "${t}" hook used by the output plugin ${e} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}}function de(e,t){return{code:`CYCLE_LOADING`,message:`Found the module "${t}" cycle loading at ${e} plugin, it maybe blocking fetching modules.`}}function fe(){return{code:`MULTIPLY_NOTIFY_OPTION`,message:`Found multiply notify option at watch options, using first one to start notify watcher.`}}function pe(e,t,{hook:n,id:r}={}){try{let i=e.code;!e.pluginCode&&i!=null&&(typeof i!=`string`||!i.startsWith(`PLUGIN_`))&&(e.pluginCode=i),e.code=`PLUGIN_ERROR`,e.plugin=t,n&&(e.hook=n),r&&(e.id=r)}catch{}finally{return e}}function g(e){throw e instanceof Error||(e=Object.assign(Error(e.message),e),Object.defineProperty(e,`name`,{value:`RollupError`,writable:!0})),e}function me(e,t,n,r){if(typeof t==`object`){let{line:n,column:i}=t;e.loc={column:i,file:r,line:n}}else{e.pos=t;let i=se(n,t,{offsetLine:1});if(!i)return;let{line:a,column:o}=i;e.loc={column:o,file:r,line:a}}if(e.frame===void 0){let{line:t,column:r}=e.loc;e.frame=ie(n,t,r)}}function he(e){let t,n,r,i;return{get program(){return t||=ge(e.program),t},get module(){return n||=e.module,n},get comments(){return r||=e.comments,r},get errors(){return i||=e.errors,i}}}function ge(e){let{node:t,fixes:n}=JSON.parse(e);for(let e of n)_e(t,e);return t}function _e(e,t){let n=e;for(let e of t)n=n[e];if(n.bigint)n.value=BigInt(n.bigint);else try{n.value=RegExp(n.regex.pattern,n.regex.flags)}catch{}}var ve=p(h(),1);async function ye(e,t,n){return he(await(0,ve.parse)(e,t,n))}function be(e,t,n){return he((0,ve.parseSync)(e,t,n))}function xe(e,t){return e.errors.length>0?Se(t,e.errors):e.program}function Se(e,t){let n=`Parse failed with ${t.length} error${t.length<2?``:`s`}:\n`;for(let r=0;r<t.length;r++){if(r>=5){n+=`
5
- ...`;break}let i=t[r];n+=i.message+`
6
- `+i.labels.map(t=>{let n=se(e,t.start,{offsetLine:1});if(n)return ie(e,n.line,n.column)}).filter(Boolean).join(`
7
- `)}return g(ce(n))}const Ce={lang:`js`,preserveParens:!1};function we(e,t,n){return xe(be(n??`file.js`,e,{...Ce,...t}),e)}async function Te(e,t,n){return xe(await ye(n??`file.js`,e,{...Ce,...t}),e)}function Ee(e){return Array.isArray(e)?e:[e]}function De(e){return e&&(typeof e==`object`||typeof e==`function`)&&typeof e.then==`function`}function Oe(e){throw e?Error(`unimplemented: ${e}`):Error(`unimplemented`)}function ke(e){throw e?Error(`unreachable: ${e}`):Error(`unreachable`)}function Ae(e){throw Error(`UNSUPPORTED: ${e}`)}function je(...e){}const _=`warn`,Me=`info`,Ne=`debug`,v={[Ne]:0,[Me]:1,[_]:2,silent:3},y=e=>typeof e==`string`?{message:e}:typeof e==`function`?y(e()):e;function Pe(e,t,n,r,i){return v[e]<v[i]?je:(i,a)=>{a!=null&&n(_,le(r)),i=y(i),i.code&&!i.pluginCode&&(i.pluginCode=i.code),i.code=t,i.plugin=r,n(e,i)}}const Fe=`1.0.0-beta.55`;var Ie=class{info;warn;debug;meta;constructor(e,t,n,r,i){this.pluginName=n,this.hookName=i,this.debug=Pe(Ne,`PLUGIN_LOG`,e,n,t),this.info=Pe(Me,`PLUGIN_LOG`,e,n,t),this.warn=Pe(_,`PLUGIN_WARNING`,e,n,t),this.meta={rollupVersion:`4.23.0`,rolldownVersion:Fe,watchMode:r}}error(e){return g(pe(y(e),this.pluginName,{hook:this.hookName}))}};const Le=Symbol(`__lazy_fields__`);var Re=class{constructor(){ze(this)}};function ze(e){let t=e.constructor[Le];if(t)for(let[n,r]of t.entries()){let t,i=!1;Object.defineProperty(e,n,{get(){return i||=(t=r.call(this),!0),t},enumerable:!0,configurable:!0})}}function Be(e){let t=e.constructor[Le];return t?new Set(t.keys()):new Set}function b(e,t,n){e.constructor[Le]||(e.constructor[Le]=new Map);let r=n.get;return e.constructor[Le].set(t,r),{enumerable:!1,configurable:!0}}function Ve(e){return e.inner}function He(e){return{inner:e}}function x(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var S=class extends Re{type=`asset`;constructor(e){super(),this.bindingAsset=e}get fileName(){return this.bindingAsset.getFileName()}get originalFileName(){return this.bindingAsset.getOriginalFileName()||null}get originalFileNames(){return this.bindingAsset.getOriginalFileNames()}get name(){return this.bindingAsset.getName()??void 0}get names(){return this.bindingAsset.getNames()}get source(){return Ve(this.bindingAsset.getSource())}__rolldown_external_memory_handle__(e){return e&&this.#e(),this.bindingAsset.dropInner()}#e(){for(let e of Be(this))this[e]}};x([b],S.prototype,`fileName`,null),x([b],S.prototype,`originalFileName`,null),x([b],S.prototype,`originalFileNames`,null),x([b],S.prototype,`name`,null),x([b],S.prototype,`names`,null),x([b],S.prototype,`source`,null);function Ue(e){return{get code(){return e.code},get renderedLength(){return e.code?.length||0},get renderedExports(){return e.renderedExports}}}function C(e){let t=null;return{type:`chunk`,get name(){return e.name},get isEntry(){return e.isEntry},get isDynamicEntry(){return e.isDynamicEntry},get facadeModuleId(){return e.facadeModuleId},get moduleIds(){return e.moduleIds},get exports(){return e.exports},get fileName(){return e.fileName},get imports(){return e.imports},get dynamicImports(){return e.dynamicImports},get modules(){return t||=We(e.modules),t}}}function We(e){let t={};for(let n=0;n<e.values.length;n++){let r=e.keys[n],i=e.values[n];t[r]=Ue(i)}return t}var w=class extends Re{type=`chunk`;constructor(e){super(),this.bindingChunk=e}get fileName(){return this.bindingChunk.getFileName()}get name(){return this.bindingChunk.getName()}get exports(){return this.bindingChunk.getExports()}get isEntry(){return this.bindingChunk.getIsEntry()}get facadeModuleId(){return this.bindingChunk.getFacadeModuleId()||null}get isDynamicEntry(){return this.bindingChunk.getIsDynamicEntry()}get sourcemapFileName(){return this.bindingChunk.getSourcemapFileName()||null}get preliminaryFileName(){return this.bindingChunk.getPreliminaryFileName()}get code(){return this.bindingChunk.getCode()}get modules(){return We(this.bindingChunk.getModules())}get imports(){return this.bindingChunk.getImports()}get dynamicImports(){return this.bindingChunk.getDynamicImports()}get moduleIds(){return this.bindingChunk.getModuleIds()}get map(){let e=this.bindingChunk.getMap();return e?Ke(e):null}__rolldown_external_memory_handle__(e){return e&&this.#e(),this.bindingChunk.dropInner()}#e(){for(let e of Be(this))this[e]}};x([b],w.prototype,`fileName`,null),x([b],w.prototype,`name`,null),x([b],w.prototype,`exports`,null),x([b],w.prototype,`isEntry`,null),x([b],w.prototype,`facadeModuleId`,null),x([b],w.prototype,`isDynamicEntry`,null),x([b],w.prototype,`sourcemapFileName`,null),x([b],w.prototype,`preliminaryFileName`,null),x([b],w.prototype,`code`,null),x([b],w.prototype,`modules`,null),x([b],w.prototype,`imports`,null),x([b],w.prototype,`dynamicImports`,null),x([b],w.prototype,`moduleIds`,null),x([b],w.prototype,`map`,null);function Ge(e){if(e!=null)return{inner:typeof e==`string`?e:{file:e.file??void 0,mappings:e.mappings,sourceRoot:`sourceRoot`in e?e.sourceRoot??void 0:void 0,sources:e.sources?.map(e=>e??void 0),sourcesContent:e.sourcesContent?.map(e=>e??void 0),names:e.names,x_google_ignoreList:e.x_google_ignoreList,debugId:`debugId`in e?e.debugId:void 0}}}function Ke(e){let t={...JSON.parse(e),toString(){return JSON.stringify(t)},toUrl(){return`data:application/json;charset=utf-8;base64,${Buffer.from(t.toString(),`utf-8`).toString(`base64`)}`}};return t}function qe(e){return new w(e)}function Je(e,t){let n={type:`chunk`,get code(){return e.getCode()},fileName:e.getFileName(),name:e.getName(),get modules(){return We(e.getModules())},get imports(){return e.getImports()},get dynamicImports(){return e.getDynamicImports()},exports:e.getExports(),isEntry:e.getIsEntry(),facadeModuleId:e.getFacadeModuleId()||null,isDynamicEntry:e.getIsDynamicEntry(),get moduleIds(){return e.getModuleIds()},get map(){let t=e.getMap();return t?Ke(t):null},sourcemapFileName:e.getSourcemapFileName()||null,preliminaryFileName:e.getPreliminaryFileName()},r={};return new Proxy(n,{get(e,t){if(t in r)return r[t];let n=e[t];return r[t]=n,n},set(n,i,a){return r[i]=a,t.updated.add(e.getFileName()),!0},has(e,t){return t in r?!0:t in e}})}function Ye(e){return new S(e)}function Xe(e,t){let n={type:`asset`,fileName:e.getFileName(),originalFileName:e.getOriginalFileName()||null,originalFileNames:e.getOriginalFileNames(),get source(){return Ve(e.getSource())},name:e.getName()??void 0,names:e.getNames()},r={};return new Proxy(n,{get(e,t){if(t in r)return r[t];let n=e[t];return r[t]=n,n},set(n,i,a){return r[i]=a,t.updated.add(e.getFileName()),!0}})}function Ze(e){let{chunks:t,assets:n}=e;return{output:[...t.map(e=>qe(e)),...n.map(e=>Ye(e))]}}function Qe(e,t){let{chunks:n,assets:r}=e;return{output:[...n.map(e=>Je(e,t)),...r.map(e=>Xe(e,t))]}}function $e(e,t,n){let r=Object.fromEntries(Qe(t,n).output.map(e=>[e.fileName,e]));return new Proxy(r,{set(t,n,r,i){let a=Error.stackTraceLimit;Error.stackTraceLimit=2;let o=`This plugin assigns to bundle variable. This is discouraged by Rollup and is not supported by Rolldown. This will be ignored. https://rollupjs.org/plugin-development/#generatebundle:~:text=DANGER,this.emitFile.`,s=Error(o).stack??o;return Error.stackTraceLimit=a,e.warn({message:s,code:`UNSUPPORTED_BUNDLE_ASSIGNMENT`}),!0},deleteProperty(e,t){return typeof t==`string`&&n.deleted.add(t),!0}})}function et(e,t){let n={};for(let r in t){if(e.deleted.has(r)||!e.updated.has(r))continue;let i=t[r];i.type===`asset`?n[r]={filename:i.fileName,originalFileNames:i.originalFileNames,source:He(i.source),names:i.names}:n[r]={code:i.code,filename:i.fileName,name:i.name,isEntry:i.isEntry,exports:i.exports,modules:{},imports:i.imports,dynamicImports:i.dynamicImports,facadeModuleId:i.facadeModuleId||void 0,isDynamicEntry:i.isDynamicEntry,moduleIds:i.moduleIds,map:Ge(i.map),sourcemapFilename:i.sourcemapFileName||void 0,preliminaryFilename:i.preliminaryFileName}}return{changes:n,deleted:e.deleted}}var tt=p(h(),1),nt=class{enforce;constructor(e,t){this.name=e,this._options=t}};function rt(e){let t=new tt.BindingCallableBuiltinPlugin(it(e)),n=e;for(let r in t)n[r]=async function(...i){try{return await t[r](...i)}catch(t){return t instanceof Error&&!t.stack?.includes(`at `)&&Error.captureStackTrace(t,n[r]),g(pe(t,e.name,{hook:r,id:r===`transform`?i[2]:void 0}))}};return n}function it(e){return{__name:e.name,options:e._options}}function at(e,t){let{isOutputOptionsForLegacyChunks:n,...r}=e._options;return{__name:e.name,options:{...r,isLegacy:n?e=>n(t.getOutputOptions(e)):void 0}}}function ot(e,t){let{isOutputOptionsForLegacyChunks:n,...r}=e._options;return{__name:e.name,options:{...r,isLegacy:n?e=>n(t.getOutputOptions(e)):void 0,cssScopeTo(){let e={};for(let[n,r]of t.moduleOptionMap.entries())r?.meta.vite?.cssScopeTo&&(e[n]=r.meta.vite.cssScopeTo);return e}}}}function st(e,t,n,r,i){let{preHooks:a,normalHooks:o,postHooks:s,applyHtmlTransforms:c,...l}=e._options;return a.length+o.length+s.length>0?{__name:e.name,options:{...l,transformIndexHtml:async(i,l,u,d,f,ee)=>{let p=new Ie(t,n,e.name,r,`transformIndexHtml`),m={path:l,filename:u,bundle:f?$e(p,f,{updated:new Set,deleted:new Set}):void 0,chunk:ee?qe(ee):void 0};switch(d){case`transform`:return await c(i,a,p,m);case`generateBundle`:return await c(i,[...o,...s],p,m)}},setModuleSideEffects(e){let t=i.getModuleOption(e);i.updateModuleOption(e,{moduleSideEffects:!0,meta:t.meta,invalidate:!0})}}}:{__name:e.name,options:e._options}}function ct(e){if(e)return lt(e)?e:[e]}function lt(e){return Array.isArray(e)}var ut=class{kind;args;constructor(...e){if(e.length===0)throw Error("`And` expects at least one operand");this.args=e,this.kind=`and`}},dt=class{kind;args;constructor(...e){if(e.length===0)throw Error("`Or` expects at least one operand");this.args=e,this.kind=`or`}},ft=class{kind;pattern;params;constructor(e,t){this.pattern=e,this.kind=`id`,this.params=t??{cleanUrl:!1}}},pt=class{kind;pattern;constructor(e){this.pattern=e,this.kind=`moduleType`}},mt=class{kind;pattern;constructor(e){this.pattern=e,this.kind=`code`}},ht=class{kind;expr;constructor(e){this.expr=e,this.kind=`include`}},gt=class{kind;expr;constructor(e){this.expr=e,this.kind=`exclude`}};function _t(...e){return new ut(...e)}function vt(...e){return new dt(...e)}function yt(e,t){return new ft(e,t)}function bt(e){return new pt(e)}function xt(e){return new mt(e)}function St(e){return new ht(e)}function Ct(e){return new gt(e)}function T(e){if(typeof e==`function`||typeof e==`string`)return{handler:e,options:{},meta:{}};if(typeof e==`object`&&e){let{handler:t,order:n,...r}=e;return{handler:t,options:r,meta:{order:n}}}ke(`Invalid hook type`)}function wt(e){if(typeof e==`object`&&e&&`isBindingErrors`in e&&e.isBindingErrors)throw Dt(e.errors);return e}function Tt(e){return typeof e==`object`&&e&&`isBindingErrors`in e&&e.isBindingErrors?Dt(e.errors):e}function Et(e){return e.type===`JsError`?e.field0:Object.assign(Error(),{code:e.field0.kind,kind:e.field0.kind,message:e.field0.message,id:e.field0.id,exporter:e.field0.exporter,loc:e.field0.loc,pos:e.field0.pos,stack:void 0})}function Dt(e){let t=e.map(Et),n=`Build failed with ${t.length} error${t.length<2?``:`s`}:\n`;for(let e=0;e<t.length;e++){if(n+=`
8
- `,e>=5){n+=`...`;break}n+=Ot(t[e])}let r=Error(n);return Object.defineProperty(r,`errors`,{configurable:!0,enumerable:!0,get:()=>t,set:e=>Object.defineProperty(r,`errors`,{configurable:!0,enumerable:!0,value:e})}),r}function Ot(e){if(Object.hasOwn(e,`kind`))return e.message;let t=``;e.plugin&&(t+=`[plugin ${e.plugin}]`);let n=e.id??e.loc?.file;n&&(t+=` `+n,e.loc&&(t+=`:${e.loc.line}:${e.loc.column}`)),t&&(t+=`
9
- `);let r=`${e.name??`Error`}: ${e.message}`;return t+=r,e.frame&&(t=kt(t,e.frame)),e.stack&&(t=kt(t,e.stack.replace(r,``))),e.cause&&(t=kt(t,`Caused by:`),t=kt(t,Ot(e.cause).split(`
10
- `).map(e=>` `+e).join(`
11
- `))),t}function kt(e,t){return e.replace(/\n+$/,``)+`
12
- `+t.replace(/^\n+/,``)}function At(e,t){return{get ast(){return Ae(`ModuleInfo#ast`)},get code(){return e.code},id:e.id,importers:e.importers,dynamicImporters:e.dynamicImporters,importedIds:e.importedIds,dynamicallyImportedIds:e.dynamicallyImportedIds,exports:e.exports,isEntry:e.isEntry,...t}}function jt(e){return!e||e.length===0||!e[0]}function Mt(e,t,n){if(!n)return;let r=typeof n==`object`?n:JSON.parse(n);return jt(r.sourcesContent)&&(r.sourcesContent=[t]),(jt(r.sources)||r.sources&&r.sources.length===1&&r.sources[0]!==e)&&(r.sources=[e]),r}function Nt(e,t,n){let r=n=>e(n,...t);return n===void 0?r:Object.assign(r,{lazy:n,lazyArgs:t})}function Pt(e,t,n){let r=e.length-t.length;if(r===0)return e(...t);if(r===1)return Nt(e,t,n);throw Error(`Wrong number of arguments`)}function Ft(...e){return Pt(It,e)}const It=(e,t)=>{let n=[[],[]];for(let[r,i]of e.entries())t(i,r,e)?n[0].push(i):n[1].push(i);return n};function Lt(e,t){if(typeof e==`string`||e instanceof RegExp)return[St(Rt(t,e))];if(Array.isArray(e))return e.map(e=>St(Rt(t,e)));let n=[];return e.exclude&&n.push(...Ee(e.exclude).map(e=>Ct(Rt(t,e)))),e.include&&n.push(...Ee(e.include).map(e=>St(Rt(t,e)))),n}function Rt(e,t){return e===`code`?xt(t):yt(t)}function zt(e){if(!e)return;if(Array.isArray(e))return e;let{id:t,code:n,moduleType:r}=e,i=[],a=[],o=[],s=[],c=[];t&&([a,o]=Ft(Lt(t,`id`)??[],e=>e.kind===`include`)),n&&([s,c]=Ft(Lt(n,`code`)??[],e=>e.kind===`include`)),i.push(...o),i.push(...c);let l=[];if(r){let e=Array.isArray(r)?r:r.include??[];l.push(vt(...e.map(e=>bt(e))))}return a.length&&l.push(vt(...a.map(e=>e.expr))),s.length&&l.push(vt(...s.map(e=>e.expr))),l.length&&i.push(St(_t(...l))),i}function Bt(e,t){let n=Lt(t,e),r=[];return n&&(r=n.map(Vt)),r.length>0?{value:r}:void 0}function Vt(e){let t=[];return Ht(e,t),t}function Ht(e,t){switch(e.kind){case`and`:{let n=e.args;for(let e=n.length-1;e>=0;e--)Ht(n[e],t);t.push({kind:`And`,payload:n.length});break}case`or`:{let n=e.args;for(let e=n.length-1;e>=0;e--)Ht(n[e],t);t.push({kind:`Or`,payload:n.length});break}case`not`:Ht(e.expr,t),t.push({kind:`Not`});break;case`id`:t.push({kind:`Id`,payload:e.pattern}),e.params.cleanUrl&&t.push({kind:`CleanUrl`});break;case`moduleType`:t.push({kind:`ModuleType`,payload:e.pattern});break;case`code`:t.push({kind:`Code`,payload:e.pattern});break;case`include`:Ht(e.expr,t),t.push({kind:`Include`});break;case`exclude`:Ht(e.expr,t),t.push({kind:`Exclude`});break;case`query`:t.push({kind:`QueryKey`,payload:e.key}),t.push({kind:`QueryValue`,payload:e.pattern});break;default:throw Error(`Unknown filter expression: ${e}`)}}function Ut(e){if(e)return Array.isArray(e)?{value:e.map(Vt)}:e.id?Bt(`id`,e.id):void 0}function Wt(e){if(e)return Array.isArray(e)?{value:e.map(Vt)}:e.id?Bt(`id`,e.id):void 0}function Gt(e){if(!e)return;let t=zt(e),n=[];return t&&(n=t.map(Vt)),{value:n.length>0?n:void 0}}function Kt(e){if(e)return Array.isArray(e)?{value:e.map(Vt)}:e.code?Bt(`code`,e.code):void 0}var E=p(h(),1);function D(e){return{order:qt(e.order)}}function qt(e){switch(e){case`post`:return E.BindingPluginOrder.Post;case`pre`:return E.BindingPluginOrder.Pre;case null:case void 0:return;default:throw Error(`Unknown plugin order: ${e}`)}}const Jt={appendFile:n.appendFile,copyFile:n.copyFile,mkdir:n.mkdir,mkdtemp:n.mkdtemp,readdir:n.readdir,readFile:n.readFile,realpath:n.realpath,rename:n.rename,rmdir:n.rmdir,stat:n.stat,lstat:n.lstat,unlink:n.unlink,writeFile:n.writeFile};var O=class extends Ie{fs=Jt;getModuleInfo;constructor(e,t,n,r,i,a,o,s){super(i,a,n.name,o),this.outputOptions=e,this.context=t,this.data=r,this.onLog=i,this.currentLoadingModule=s,this.getModuleInfo=e=>this.data.getModuleInfo(e,t)}async load(e){let t=e.id;t===this.currentLoadingModule&&this.onLog(_,de(this.pluginName,this.currentLoadingModule));let n=this.data.getModuleInfo(t,this.context);if(n&&n.code!==null)return n;let r={meta:e.meta||{},moduleSideEffects:e.moduleSideEffects||null,invalidate:!1};this.data.updateModuleOption(t,r);let i=this.data.loadModulePromiseMap.get(t);return i||(i=this.context.load(t,e.moduleSideEffects??void 0,e.packageJsonPath??void 0).catch(()=>{this.data.loadModulePromiseMap.delete(t)}),this.data.loadModulePromiseMap.set(t,i)),await i,this.data.getModuleInfo(t,this.context)}async resolve(e,t,n){let r;n!=null&&(r=this.data.saveResolveOptions(n));let i=Object.entries(n?.custom??{}).reduce((e,[t,n])=>(t.startsWith(`vite:`)&&((e??={})[t]=n),e),void 0),a=await this.context.resolve(e,t,{custom:r,isEntry:n?.isEntry,skipSelf:n?.skipSelf,vitePluginCustom:i});if(r!=null&&this.data.removeSavedResolveOptions(r),a==null)return null;let o=this.data.getModuleOption(a.id)||{};return{...a,external:a.external===`relative`?ke(`The PluginContext resolve result external couldn't be 'relative'`):a.external,...o,moduleSideEffects:o.moduleSideEffects??a.moduleSideEffects??null,packageJsonPath:a.packageJsonPath}}emitFile=e=>{if(e.type===`prebuilt-chunk`)return this.context.emitPrebuiltChunk({fileName:e.fileName,code:e.code,exports:e.exports,map:Ge(e.map),sourcemapFileName:e.sourcemapFileName});if(e.type===`chunk`)return this.context.emitChunk({preserveEntrySignatures:Ln(e.preserveSignature),...e});let t=e.fileName||typeof this.outputOptions.sanitizeFileName!=`function`?void 0:this.outputOptions.sanitizeFileName(e.name||`asset`),n=e.fileName?void 0:this.getAssetFileNames(e);return this.context.emitFile({...e,originalFileName:e.originalFileName||void 0,source:He(e.source)},n,t)};getAssetFileNames(e){if(typeof this.outputOptions.assetFileNames==`function`)return this.outputOptions.assetFileNames({type:`asset`,name:e.name,names:e.name?[e.name]:[],originalFileName:e.originalFileName,originalFileNames:e.originalFileName?[e.originalFileName]:[],source:e.source})}getFileName(e){return this.context.getFileName(e)}getModuleIds(){return this.data.getModuleIds(this.context)}addWatchFile(e){this.context.addWatchFile(e)}parse(e,t){return we(e,t)}},Yt=class extends O{constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r,s,c,l,a),this.inner=i,this.moduleId=a,this.moduleSource=o;let u=e=>(t,n)=>{t=y(t),n&&me(t,n,o,a),t.id=a,t.hook=`transform`,e(t)};this.debug=u(this.debug),this.warn=u(this.warn),this.info=u(this.info)}error(e,t){return typeof e==`string`&&(e={message:e}),t&&me(e,t,this.moduleSource,this.moduleId),e.id=this.moduleId,e.hook=`transform`,g(pe(y(e),this.pluginName))}getCombinedSourcemap(){return JSON.parse(this.inner.getCombinedSourcemap())}addWatchFile(e){this.inner.addWatchFile(e)}sendMagicString(e){this.inner.sendMagicString(e)}};function Xt(e){let t=e.plugin.buildStart;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async(t,r)=>{await n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),e.pluginContextData.getInputOptions(r))},meta:D(r)}}function Zt(e){let t=e.plugin.buildEnd;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async(t,r)=>{await n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),r?Dt(r):void 0)},meta:D(r)}}function Qt(e){let t=e.plugin.resolveId;if(!t)return{};let{handler:n,meta:r,options:i}=T(t);return{plugin:async(t,r,i,a)=>{let o=a.custom==null?void 0:e.pluginContextData.getSavedResolveOptions(a.custom),s=await n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),r,i??void 0,{...a,custom:o?.custom});if(s==null)return;if(s===!1)return{id:r,external:!0,normalizeExternalId:!0};if(typeof s==`string`)return{id:s,normalizeExternalId:!1};let c=e.pluginContextData.updateModuleOption(s.id,{meta:s.meta||{},moduleSideEffects:s.moduleSideEffects??null,invalidate:!1});return{id:s.id,external:s.external,normalizeExternalId:!1,moduleSideEffects:c.moduleSideEffects??void 0,packageJsonPath:s.packageJsonPath}},meta:D(r),filter:Ut(i.filter)}}function $t(e){let t=e.plugin.resolveDynamicImport;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async(t,r,i)=>{let a=await n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),r,i??void 0);if(a==null)return;if(a===!1)return{id:r,external:!0};if(typeof a==`string`)return{id:a};let o={id:a.id,external:a.external,packageJsonPath:a.packageJsonPath};return a.moduleSideEffects!==null&&(o.moduleSideEffects=a.moduleSideEffects),e.pluginContextData.updateModuleOption(a.id,{meta:a.meta||{},moduleSideEffects:a.moduleSideEffects||null,invalidate:!1}),o},meta:D(r)}}function en(e){let t=e.plugin.transform;if(!t)return{};let{handler:n,meta:r,options:i}=T(t);return{plugin:async(t,r,i,a)=>{let o,s;Object.defineProperties(a,{magicString:{get(){return o||(o=new E.BindingMagicString(r),o)}},ast:{get(){if(s)return s;let e=`js`;switch(a.moduleType){case`js`:case`jsx`:case`ts`:case`tsx`:e=a.moduleType;break;default:break}return s=we(r,{astType:a.moduleType.includes(`ts`)?`ts`:`js`,lang:e}),s}}});let c=new Yt(e.outputOptions,t.inner(),e.plugin,e.pluginContextData,t,i,r,e.onLog,e.logLevel,e.watchMode),l=await n.call(c,r,i,a);if(l==null)return;if(typeof l==`string`)return{code:l};let u=e.pluginContextData.updateModuleOption(i,{meta:l.meta??{},moduleSideEffects:l.moduleSideEffects??null,invalidate:!1}),d,f=l.map;if(typeof l.code==`string`)d=l.code;else if(l.code instanceof E.BindingMagicString){let e=l.code;d=e.toString();let n=t.sendMagicString(e);n!=null&&(f=n)}return{code:d,map:Ge(Mt(i,r,f)),moduleSideEffects:u.moduleSideEffects??void 0,moduleType:l.moduleType}},meta:D(r),filter:Gt(i.filter)}}function tn(e){let t=e.plugin.load;if(!t)return{};let{handler:n,meta:r,options:i}=T(t);return{plugin:async(t,r)=>{let i=await n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode,r),r);if(i==null)return;if(typeof i==`string`)return{code:i};let a=e.pluginContextData.updateModuleOption(r,{meta:i.meta||{},moduleSideEffects:i.moduleSideEffects??null,invalidate:!1}),o=nn(i,r);return{code:i.code,map:Ge(o),moduleType:i.moduleType,moduleSideEffects:a.moduleSideEffects??void 0}},meta:D(r),filter:Wt(i.filter)}}function nn(e,n){if(!e.map)return;let r=typeof e.map==`object`?e.map:JSON.parse(e.map);if(!jt(r.sources)){let e=t.dirname(n)||`.`,i=r.sourceRoot||`.`;r.sources=r.sources.map(n=>t.resolve(e,i,n))}return r}function rn(e){let t=e.plugin.moduleParsed;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async(t,r)=>{await n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),At(r,e.pluginContextData.getModuleOption(r.id)))},meta:D(r)}}function an(e){let t=e.plugin.renderStart;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async(t,r)=>{n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),e.pluginContextData.getOutputOptions(r),e.pluginContextData.getInputOptions(r))},meta:D(r)}}function on(e){let t=e.plugin.renderChunk;if(!t)return{};let{handler:n,meta:r,options:i}=T(t);return{plugin:async(t,r,i,a,o)=>{e.pluginContextData.getRenderChunkMeta()??e.pluginContextData.setRenderChunkMeta({chunks:Object.fromEntries(Object.entries(o.chunks).map(([e,t])=>[e,C(t)]))});let s=await n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),r,C(i),e.pluginContextData.getOutputOptions(a),e.pluginContextData.getRenderChunkMeta());if(s!=null)return typeof s==`string`?{code:s}:s.map?{code:s.code,map:Ge(s.map)}:{code:s.code}},meta:D(r),filter:Kt(i.filter)}}function sn(e){let t=e.plugin.augmentChunkHash;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async(t,r)=>n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),C(r)),meta:D(r)}}function cn(e){let t=e.plugin.renderError;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async(t,r)=>{n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),Dt(r))},meta:D(r)}}function ln(e){let t=e.plugin.generateBundle;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async(t,r,i,a)=>{let o={updated:new Set,deleted:new Set},s=new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),c=$e(s,wt(r),o);return await n.call(s,e.pluginContextData.getOutputOptions(a),c,i),et(o,c)},meta:D(r)}}function un(e){let t=e.plugin.writeBundle;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async(t,r,i)=>{let a={updated:new Set,deleted:new Set},o=new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),s=$e(o,wt(r),a);return await n.call(o,e.pluginContextData.getOutputOptions(i),s),et(a,s)},meta:D(r)}}function dn(e){let t=e.plugin.closeBundle;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async t=>{await n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode))},meta:D(r)}}function fn(e){let t=e.plugin.banner;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async(t,r)=>typeof n==`string`?n:n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),C(r)),meta:D(r)}}function pn(e){let t=e.plugin.footer;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async(t,r)=>typeof n==`string`?n:n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),C(r)),meta:D(r)}}function mn(e){let t=e.plugin.intro;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async(t,r)=>typeof n==`string`?n:n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),C(r)),meta:D(r)}}function hn(e){let t=e.plugin.outro;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async(t,r)=>typeof n==`string`?n:n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),C(r)),meta:D(r)}}function gn(e){let t=e.plugin.watchChange;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async(t,r,i)=>{await n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode),r,{event:i})},meta:D(r)}}function _n(e){let t=e.plugin.closeWatcher;if(!t)return{};let{handler:n,meta:r}=T(t);return{plugin:async t=>{await n.call(new O(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode))},meta:D(r)}}let k=function(e){return e[e.buildStart=1]=`buildStart`,e[e.resolveId=2]=`resolveId`,e[e.resolveDynamicImport=4]=`resolveDynamicImport`,e[e.load=8]=`load`,e[e.transform=16]=`transform`,e[e.moduleParsed=32]=`moduleParsed`,e[e.buildEnd=64]=`buildEnd`,e[e.renderStart=128]=`renderStart`,e[e.renderError=256]=`renderError`,e[e.renderChunk=512]=`renderChunk`,e[e.augmentChunkHash=1024]=`augmentChunkHash`,e[e.generateBundle=2048]=`generateBundle`,e[e.writeBundle=4096]=`writeBundle`,e[e.closeBundle=8192]=`closeBundle`,e[e.watchChange=16384]=`watchChange`,e[e.closeWatcher=32768]=`closeWatcher`,e[e.transformAst=65536]=`transformAst`,e[e.banner=131072]=`banner`,e[e.footer=262144]=`footer`,e[e.intro=524288]=`intro`,e[e.outro=1048576]=`outro`,e}({});var vn=class{bitflag=BigInt(0);constructor(){}union(e){this.bitflag|=BigInt(e)}inner(){return Number(this.bitflag)}};function yn(e){let t=new vn;return e.buildStart&&t.union(k.buildStart),e.resolveId&&t.union(k.resolveId),e.resolveDynamicImport&&t.union(k.resolveDynamicImport),e.load&&t.union(k.load),e.transform&&t.union(k.transform),e.moduleParsed&&t.union(k.moduleParsed),e.buildEnd&&t.union(k.buildEnd),e.renderStart&&t.union(k.renderStart),e.renderError&&t.union(k.renderError),e.renderChunk&&t.union(k.renderChunk),e.augmentChunkHash&&t.union(k.augmentChunkHash),e.generateBundle&&t.union(k.generateBundle),e.writeBundle&&t.union(k.writeBundle),e.closeBundle&&t.union(k.closeBundle),e.watchChange&&t.union(k.watchChange),e.closeWatcher&&t.union(k.closeWatcher),e.banner&&t.union(k.banner),e.footer&&t.union(k.footer),e.intro&&t.union(k.intro),e.outro&&t.union(k.outro),t}function bn(e,t,n,r,i,a,o,s){let c={plugin:e,options:t,outputOptions:n,pluginContextData:r,onLog:a,logLevel:o,watchMode:s,normalizedOutputPlugins:i},{plugin:l,meta:u}=Xt(c),{plugin:d,meta:f,filter:ee}=Qt(c),{plugin:p,meta:m}=$t(c),{plugin:te,meta:h}=Zt(c),{plugin:ne,meta:re,filter:ie}=en(c),{plugin:ae,meta:oe}=rn(c),{plugin:se,meta:ce,filter:le}=tn(c),{plugin:ue,meta:de,filter:fe}=on(c),{plugin:pe,meta:g}=sn(c),{plugin:me,meta:he}=an(c),{plugin:ge,meta:_e}=cn(c),{plugin:ve,meta:ye}=ln(c),{plugin:be,meta:xe}=un(c),{plugin:Se,meta:Ce}=dn(c),{plugin:we,meta:Te}=fn(c),{plugin:Ee,meta:De}=pn(c),{plugin:Oe,meta:ke}=mn(c),{plugin:Ae,meta:je}=hn(c),{plugin:_,meta:Me}=gn(c),{plugin:Ne,meta:v}=_n(c),y=yn(e).inner();return xn({name:e.name,buildStart:l,buildStartMeta:u,resolveId:d,resolveIdMeta:f,resolveIdFilter:ee,resolveDynamicImport:p,resolveDynamicImportMeta:m,buildEnd:te,buildEndMeta:h,transform:ne,transformMeta:re,transformFilter:ie,moduleParsed:ae,moduleParsedMeta:oe,load:se,loadMeta:ce,loadFilter:le,renderChunk:ue,renderChunkMeta:de,renderChunkFilter:fe,augmentChunkHash:pe,augmentChunkHashMeta:g,renderStart:me,renderStartMeta:he,renderError:ge,renderErrorMeta:_e,generateBundle:ve,generateBundleMeta:ye,writeBundle:be,writeBundleMeta:xe,closeBundle:Se,closeBundleMeta:Ce,banner:we,bannerMeta:Te,footer:Ee,footerMeta:De,intro:Oe,introMeta:ke,outro:Ae,outroMeta:je,watchChange:_,watchChangeMeta:Me,closeWatcher:Ne,closeWatcherMeta:v,hookUsage:y})}function xn(e){for(let t of[`buildStart`,`resolveId`,`resolveDynamicImport`,`buildEnd`,`transform`,`moduleParsed`,`load`,`renderChunk`,`augmentChunkHash`,`renderStart`,`renderError`,`generateBundle`,`writeBundle`,`closeBundle`,`banner`,`footer`,`intro`,`outro`,`watchChange`,`closeWatcher`]){let n=e[t];n&&(e[t]=async(...r)=>{try{return await n(...r)}catch(n){return g(pe(n,e.name,{hook:t,id:t===`transform`?r[2]:void 0}))}})}return e}var A=class extends Re{inner;constructor(e,t){super(),this.onLog=t,this.inner=e}get shimMissingExports(){return this.inner.shimMissingExports}get input(){return this.inner.input}get cwd(){return this.inner.cwd}get platform(){return this.inner.platform}get context(){return this.inner.context}};x([b],A.prototype,`shimMissingExports`,null),x([b],A.prototype,`input`,null),x([b],A.prototype,`cwd`,null),x([b],A.prototype,`platform`,null),x([b],A.prototype,`context`,null);var j=class extends Re{constructor(e,t,n){super(),this.inner=e,this.outputOptions=t,this.normalizedOutputPlugins=n}get dir(){return this.inner.dir??void 0}get entryFileNames(){return this.inner.entryFilenames||this.outputOptions.entryFileNames}get chunkFileNames(){return this.inner.chunkFilenames||this.outputOptions.chunkFileNames}get assetFileNames(){return this.inner.assetFilenames||this.outputOptions.assetFileNames}get format(){return this.inner.format}get exports(){return this.inner.exports}get sourcemap(){return this.inner.sourcemap}get sourcemapBaseUrl(){return this.inner.sourcemapBaseUrl??void 0}get cssEntryFileNames(){return this.inner.cssEntryFilenames||this.outputOptions.cssEntryFileNames}get cssChunkFileNames(){return this.inner.cssChunkFilenames||this.outputOptions.cssChunkFileNames}get shimMissingExports(){return this.inner.shimMissingExports}get name(){return this.inner.name??void 0}get file(){return this.inner.file??void 0}get inlineDynamicImports(){return this.inner.inlineDynamicImports}get externalLiveBindings(){return this.inner.externalLiveBindings}get banner(){return Sn(this.outputOptions.banner)}get footer(){return Sn(this.outputOptions.footer)}get postBanner(){return Sn(this.outputOptions.postBanner)}get postFooter(){return Sn(this.outputOptions.postFooter)}get intro(){return Sn(this.outputOptions.intro)}get outro(){return Sn(this.outputOptions.outro)}get esModule(){return this.inner.esModule}get extend(){return this.inner.extend}get globals(){return this.inner.globals||this.outputOptions.globals}get paths(){return this.outputOptions.paths}get hashCharacters(){return this.inner.hashCharacters}get sourcemapDebugIds(){return this.inner.sourcemapDebugIds}get sourcemapIgnoreList(){return this.outputOptions.sourcemapIgnoreList}get sourcemapPathTransform(){return this.outputOptions.sourcemapPathTransform}get minify(){let e=this.inner.minify;return typeof e==`object`&&e&&(delete e.codegen,delete e.module,delete e.sourcemap),e}get legalComments(){return this.inner.legalComments}get polyfillRequire(){return this.inner.polyfillRequire}get plugins(){return this.normalizedOutputPlugins}get preserveModules(){return this.inner.preserveModules}get preserveModulesRoot(){return this.inner.preserveModulesRoot}get virtualDirname(){return this.inner.virtualDirname}get topLevelVar(){return this.inner.topLevelVar??!1}get minifyInternalExports(){return this.inner.minifyInternalExports??!1}};x([b],j.prototype,`dir`,null),x([b],j.prototype,`entryFileNames`,null),x([b],j.prototype,`chunkFileNames`,null),x([b],j.prototype,`assetFileNames`,null),x([b],j.prototype,`format`,null),x([b],j.prototype,`exports`,null),x([b],j.prototype,`sourcemap`,null),x([b],j.prototype,`sourcemapBaseUrl`,null),x([b],j.prototype,`cssEntryFileNames`,null),x([b],j.prototype,`cssChunkFileNames`,null),x([b],j.prototype,`shimMissingExports`,null),x([b],j.prototype,`name`,null),x([b],j.prototype,`file`,null),x([b],j.prototype,`inlineDynamicImports`,null),x([b],j.prototype,`externalLiveBindings`,null),x([b],j.prototype,`banner`,null),x([b],j.prototype,`footer`,null),x([b],j.prototype,`postBanner`,null),x([b],j.prototype,`postFooter`,null),x([b],j.prototype,`intro`,null),x([b],j.prototype,`outro`,null),x([b],j.prototype,`esModule`,null),x([b],j.prototype,`extend`,null),x([b],j.prototype,`globals`,null),x([b],j.prototype,`paths`,null),x([b],j.prototype,`hashCharacters`,null),x([b],j.prototype,`sourcemapDebugIds`,null),x([b],j.prototype,`sourcemapIgnoreList`,null),x([b],j.prototype,`sourcemapPathTransform`,null),x([b],j.prototype,`minify`,null),x([b],j.prototype,`legalComments`,null),x([b],j.prototype,`polyfillRequire`,null),x([b],j.prototype,`plugins`,null),x([b],j.prototype,`preserveModules`,null),x([b],j.prototype,`preserveModulesRoot`,null),x([b],j.prototype,`virtualDirname`,null),x([b],j.prototype,`topLevelVar`,null),x([b],j.prototype,`minifyInternalExports`,null);function Sn(e){return typeof e==`function`?e:()=>e||``}var Cn=class{moduleOptionMap=new Map;resolveOptionsMap=new Map;loadModulePromiseMap=new Map;renderedChunkMeta=null;normalizedInputOptions=null;normalizedOutputOptions=null;constructor(e,t,n){this.onLog=e,this.outputOptions=t,this.normalizedOutputPlugins=n}updateModuleOption(e,t){let n=this.moduleOptionMap.get(e);if(n)t.moduleSideEffects!=null&&(n.moduleSideEffects=t.moduleSideEffects),t.meta!=null&&Object.assign(n.meta,t.meta),t.invalidate!=null&&(n.invalidate=t.invalidate);else return this.moduleOptionMap.set(e,t),t;return n}getModuleOption(e){let t=this.moduleOptionMap.get(e);if(!t){let t={moduleSideEffects:null,meta:{}};return this.moduleOptionMap.set(e,t),t}return t}getModuleInfo(e,t){let n=t.getModuleInfo(e);if(n){let t=At(n,this.getModuleOption(e));return this.proxyModuleInfo(e,t)}return null}proxyModuleInfo(e,t){let n=t.moduleSideEffects;return Object.defineProperty(t,`moduleSideEffects`,{get(){return n},set:r=>{this.updateModuleOption(e,{moduleSideEffects:r,meta:t.meta,invalidate:!0}),n=r}}),t}getModuleIds(e){return e.getModuleIds().values()}saveResolveOptions(e){let t=this.resolveOptionsMap.size;return this.resolveOptionsMap.set(t,e),t}getSavedResolveOptions(e){return this.resolveOptionsMap.get(e)}removeSavedResolveOptions(e){this.resolveOptionsMap.delete(e)}setRenderChunkMeta(e){this.renderedChunkMeta=e}getRenderChunkMeta(){return this.renderedChunkMeta}getInputOptions(e){return this.normalizedInputOptions??=new A(e,this.onLog),this.normalizedInputOptions}getOutputOptions(e){return this.normalizedOutputOptions??=new j(e,this.outputOptions,this.normalizedOutputPlugins),this.normalizedOutputOptions}clear(){this.renderedChunkMeta=null,this.loadModulePromiseMap.clear()}};function wn(e){let t=e.transform,n=t?.define?Object.entries(t.define):void 0,r=t?.inject,i=t?.dropLabels,a;if(t){let{define:e,inject:n,dropLabels:r,...i}=t;Object.keys(i).length>0&&(i.jsx===!1&&(i.jsx=`disable`),a=i)}return{define:n,inject:r,dropLabels:i,oxcTransformOptions:a}}function Tn(e,t,n,r,i,a,o){let s=new Cn(i,n,r),c=e.map(e=>{if(!(`_parallel`in e)){if(e instanceof nt)switch(e.name){case`builtin:vite-css-post`:return ot(e,s);case`builtin:vite-html`:return st(e,i,a,o,s);case`builtin:vite-manifest`:return at(e,s);default:return it(e)}return bn(e,t,n,s,r,i,a,o)}}),l=wn(t);return{input:Nn(t.input),plugins:c,cwd:t.cwd??process.cwd(),external:On(t.external),resolve:An(t.resolve),platform:t.platform,shimMissingExports:t.shimMissingExports,logLevel:Mn(a),onLog:async(e,t)=>i(e,t),treeshake:Fn(t.treeshake),moduleTypes:t.moduleTypes,define:l.define,inject:jn(l.inject),experimental:kn(t.experimental),profilerNames:n.generatedCode?.profilerNames,transform:l.oxcTransformOptions,watch:Pn(t.watch),dropLabels:l.dropLabels,keepNames:n.keepNames,checks:t.checks,deferSyncScanData:()=>{let e=[];return s.moduleOptionMap.forEach((t,n)=>{t.invalidate&&e.push({id:n,sideEffects:t.moduleSideEffects??void 0})}),e},makeAbsoluteExternalsRelative:In(t.makeAbsoluteExternalsRelative),debug:t.debug,invalidateJsSideCache:s.clear.bind(s),preserveEntrySignatures:Ln(t.preserveEntrySignatures),optimization:t.optimization,context:t.context,tsconfig:t.resolve?.tsconfigFilename??t.tsconfig}}function En(e){if(e)return typeof e==`boolean`?e?{}:void 0:e}function Dn(e){switch(e){case void 0:return;case`full`:return E.BindingAttachDebugInfo.Full;case`simple`:return E.BindingAttachDebugInfo.Simple;case`none`:return E.BindingAttachDebugInfo.None}}function On(e){if(e)return typeof e==`function`?(t,n,r)=>t.startsWith(`\0`)?!1:e(t,n,r)??!1:Ee(e)}function kn(e){let t=E.BindingChunkModuleOrderBy.ExecOrder;if(e?.chunkModulesOrder)switch(e.chunkModulesOrder){case`exec-order`:t=E.BindingChunkModuleOrderBy.ExecOrder;break;case`module-id`:t=E.BindingChunkModuleOrderBy.ModuleId;break;default:throw Error(`Unexpected chunkModulesOrder: ${e.chunkModulesOrder}`)}return{strictExecutionOrder:e?.strictExecutionOrder,disableLiveBindings:e?.disableLiveBindings,viteMode:e?.viteMode,resolveNewUrlToAsset:e?.resolveNewUrlToAsset,devMode:En(e?.devMode),attachDebugInfo:Dn(e?.attachDebugInfo),chunkModulesOrder:t,chunkImportMap:e?.chunkImportMap,onDemandWrapping:e?.onDemandWrapping,incrementalBuild:e?.incrementalBuild,nativeMagicString:e?.nativeMagicString}}function An(e){let t=typeof process==`object`&&!!process.versions?.pnp;if(e){let{alias:n,extensionAlias:r,...i}=e;return{alias:n?Object.entries(n).map(([e,t])=>({find:e,replacements:t===!1?[void 0]:Ee(t)})):void 0,extensionAlias:r?Object.entries(r).map(([e,t])=>({target:e,replacements:t})):void 0,yarnPnp:t,...i}}else return{yarnPnp:t}}function jn(e){if(e)return Object.entries(e).map(([e,t])=>Array.isArray(t)?t[1]===`*`?{tagNamespace:!0,alias:e,from:t[0]}:{tagNamed:!0,alias:e,from:t[0],imported:t[1]}:{tagNamed:!0,imported:`default`,alias:e,from:t})}function Mn(e){switch(e){case`silent`:return E.BindingLogLevel.Silent;case`debug`:return E.BindingLogLevel.Debug;case`warn`:return E.BindingLogLevel.Warn;case`info`:return E.BindingLogLevel.Info;default:throw Error(`Unexpected log level: ${e}`)}}function Nn(e){return e===void 0?[]:typeof e==`string`?[{import:e}]:Array.isArray(e)?e.map(e=>({import:e})):Object.entries(e).map(([e,t])=>({name:e,import:t}))}function Pn(e){if(e)return{buildDelay:e.buildDelay,skipWrite:e.skipWrite,include:ct(e.include),exclude:ct(e.exclude),onInvalidate:(...t)=>e.onInvalidate?.(...t)}}function Fn(e){if(e===!1)return;if(e===!0||e===void 0)return{moduleSideEffects:!0};let t={moduleSideEffects:!0,annotations:e.annotations,manualPureFunctions:e.manualPureFunctions,unknownGlobalSideEffects:e.unknownGlobalSideEffects,commonjs:e.commonjs};switch(e.propertyReadSideEffects){case`always`:t.propertyReadSideEffects=E.BindingPropertyReadSideEffects.Always;break;case!1:t.propertyReadSideEffects=E.BindingPropertyReadSideEffects.False;break;default:}switch(e.propertyWriteSideEffects){case`always`:t.propertyWriteSideEffects=E.BindingPropertyWriteSideEffects.Always;break;case!1:t.propertyWriteSideEffects=E.BindingPropertyWriteSideEffects.False;break;default:}return e.moduleSideEffects===void 0?t.moduleSideEffects=!0:e.moduleSideEffects===`no-external`?t.moduleSideEffects=[{external:!0,sideEffects:!1},{external:!1,sideEffects:!0}]:t.moduleSideEffects=e.moduleSideEffects,t}function In(e){if(e===`ifRelativeSource`)return{type:`IfRelativeSource`};if(typeof e==`boolean`)return{type:`Bool`,field0:e}}function Ln(e){if(e!=null)return typeof e==`string`?{type:`String`,field0:e}:{type:`Bool`,field0:e}}function Rn(e,t,n,r){let i=v[n],a=(n,o,s=new Set)=>{if(!(v[n]<i)){for(let t of $n(`onLog`,e)){if(s.has(t))continue;let{onLog:e}=t;if(e){let c=e=>v[e]<i?()=>{}:n=>a(e,y(n),new Set(s).add(t));if((`handler`in e?e.handler:e).call({debug:c(Ne),error:e=>g(y(e)),info:c(Me),meta:{rollupVersion:`4.23.0`,rolldownVersion:Fe,watchMode:r},warn:c(_),pluginName:t.name||`unknown`},n,o)===!1)return}}t(n,o)}};return a}const zn=(e,t,n=Hn)=>{let{onwarn:r,onLog:i}=e,a=Bn(n,r);if(i){let e=v[t];return(t,n)=>i(t,Vn(n),(t,n)=>{if(t===`error`)return g(y(n));v[t]>=e&&a(t,y(n))})}return a},Bn=(e,t)=>t?(n,r)=>{n===_?t(Vn(r),t=>e(_,y(t))):e(n,r)}:e,Vn=e=>(Object.defineProperty(e,`toString`,{value:()=>Un(e),writable:!0}),e),Hn=(e,t)=>{let n=Un(t);switch(e){case _:return console.warn(n);case Ne:return console.debug(n);default:return console.info(n)}},Un=e=>{let t=``;return e.plugin&&(t+=`(${e.plugin} plugin) `),e.loc&&(t+=`${Wn(e.loc.file)} (${e.loc.line}:${e.loc.column}) `),t+e.message};function Wn(e){return t.isAbsolute(e)?t.relative(t.resolve(),e):e}const Gn=[`options`,`buildStart`,`resolveId`,`load`,`transform`,`moduleParsed`,`buildEnd`,`onLog`,`resolveDynamicImport`,`closeBundle`,`closeWatcher`,`watchChange`],Kn=[`augmentChunkHash`,`outputOptions`,`renderChunk`,`renderStart`,`renderError`,`writeBundle`,`generateBundle`],M=[...Gn,...Kn,`footer`,`banner`,`intro`,`outro`];M[0],M[0],M[1],M[1],M[2],M[2],M[3],M[3],M[4],M[4],M[5],M[5],M[6],M[6],M[7],M[7],M[8],M[8],M[9],M[9],M[10],M[10],M[11],M[11],M[12],M[12],M[13],M[13],M[14],M[14],M[15],M[15],M[16],M[16],M[17],M[17],M[18],M[18],M[19],M[19],M[20],M[20],M[21],M[21],M[22],M[22];async function qn(e){do e=(await Promise.all(e)).flat(1/0);while(e.some(e=>e?.then));return e}const Jn=async e=>(await qn([e])).filter(Boolean);function Yn(e,t){for(let n of e)for(let e of Gn)e in n&&(delete n[e],t(_,ue(n.name,e)));return e}function Xn(e,t){for(let[n,r]of e.entries())`_parallel`in r||r instanceof nt||(r.name||=`${t}${n+1}`);return e}var Zn=class{static async callOptionsHook(e,t=!1){let n=e.logLevel||Me,r=$n(`options`,Qn(await Jn(e.plugins))),i=Rn(r,zn(e,n),n,t);for(let a of r){let r=a.name||`unknown`,o=a.options;if(o){let{handler:a}=T(o),s=await a.call(new Ie(i,n,r,t,`onLog`),e);s&&(e=s)}}return e}static callOutputOptionsHook(e,t,n,r,i){let a=$n(`outputOptions`,Qn(e));for(let e of a){let a=e.name||`unknown`,o=e.outputOptions;if(o){let{handler:e}=T(o),s=e.call(new Ie(n,r,a,i),t);s&&(t=s)}}return t}};function Qn(e){return e.filter(e=>{if(e&&!(`_parallel`in e)&&!(e instanceof nt))return e})}function $n(e,t){let n=[],r=[],i=[];for(let a of t){let t=a[e];if(t){if(typeof t==`object`){if(t.order===`pre`){n.push(a);continue}if(t.order===`post`){i.push(a);continue}}r.push(a)}}return[...n,...r,...i]}function er(e){return{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}}function tr(e){return(void 0)?.get(e)}function nr(e){return(void 0)?.get(e)}function rr(e,t){return(void 0)?.get(e)?.get(t)}function ir(e){let t=typeof e;return t===`string`?`"${e}"`:t===`number`||t===`bigint`||t===`boolean`?`${e}`:t===`object`||t===`function`?(e&&Object.getPrototypeOf(e)?.constructor?.name)??`null`:t}function N(e,t,n,r,i){let a=i&&`input`in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??ir(a),c={kind:e.kind,type:e.type,input:a,expected:o,received:s,message:`Invalid ${t}: ${o?`Expected ${o} but r`:`R`}eceived ${s}`,requirement:e.requirement,path:i?.path,issues:i?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},l=e.kind===`schema`,u=i?.message??e.message??rr(e.reference,c.lang)??(l?nr(c.lang):null)??r.message??tr(c.lang);u!==void 0&&(c.message=typeof u==`function`?u(c):u),l&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function P(e){return{version:1,vendor:`valibot`,validate(t){return e[`~run`]({value:t},er())}}}function ar(e,t){return Object.hasOwn(e,t)&&t!==`__proto__`&&t!==`prototype`&&t!==`constructor`}function or(e,t){let n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??`never`}var sr=class extends Error{constructor(e){super(e[0].message),this.name=`ValiError`,this.issues=e}};function F(e){return{kind:`transformation`,type:`args`,reference:F,async:!1,schema:e,"~run"(e,t){let n=e.value;return e.value=(...e)=>{let r=this.schema[`~run`]({value:e},t);if(r.issues)throw new sr(r.issues);return n(...r.value)},e}}}function cr(){return{kind:`transformation`,type:`await`,reference:cr,async:!0,async"~run"(e){return e.value=await e.value,e}}}function I(e){return{kind:`metadata`,type:`description`,reference:I,description:e}}function L(e){return{kind:`transformation`,type:`returns`,reference:L,async:!1,schema:e,"~run"(e,t){let n=e.value;return e.value=(...e)=>{let r=this.schema[`~run`]({value:n(...e)},t);if(r.issues)throw new sr(r.issues);return r.value},e}}}function lr(e){return{kind:`transformation`,type:`returns`,reference:lr,async:!1,schema:e,"~run"(e,t){let n=e.value;return e.value=async(...e)=>{let r=await this.schema[`~run`]({value:await n(...e)},t);if(r.issues)throw new sr(r.issues);return r.value},e}}}function ur(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function dr(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function fr(){return{kind:`schema`,type:`any`,reference:fr,expects:`any`,async:!1,get"~standard"(){return P(this)},"~run"(e){return e.typed=!0,e}}}function R(e,t){return{kind:`schema`,type:`array`,reference:R,expects:`Array`,async:!1,item:e,message:t,get"~standard"(){return P(this)},"~run"(e,t){let n=e.value;if(Array.isArray(n)){e.typed=!0,e.value=[];for(let r=0;r<n.length;r++){let i=n[r],a=this.item[`~run`]({value:i},t);if(a.issues){let o={type:`array`,origin:`value`,input:n,key:r,value:i};for(let t of a.issues)t.path?t.path.unshift(o):t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}}else N(this,`type`,e,t);return e}}}function z(e){return{kind:`schema`,type:`boolean`,reference:z,expects:`boolean`,async:!1,message:e,get"~standard"(){return P(this)},"~run"(e,t){return typeof e.value==`boolean`?e.typed=!0:N(this,`type`,e,t),e}}}function B(e,t){return{kind:`schema`,type:`custom`,reference:B,expects:`unknown`,async:!1,check:e,message:t,get"~standard"(){return P(this)},"~run"(e,t){return this.check(e.value)?e.typed=!0:N(this,`type`,e,t),e}}}function pr(e){return{kind:`schema`,type:`function`,reference:pr,expects:`Function`,async:!1,message:e,get"~standard"(){return P(this)},"~run"(e,t){return typeof e.value==`function`?e.typed=!0:N(this,`type`,e,t),e}}}function mr(e,t){return{kind:`schema`,type:`instance`,reference:mr,expects:e.name,async:!1,class:e,message:t,get"~standard"(){return P(this)},"~run"(e,t){return e.value instanceof this.class?e.typed=!0:N(this,`type`,e,t),e}}}function V(e,t){return{kind:`schema`,type:`literal`,reference:V,expects:ir(e),async:!1,literal:e,message:t,get"~standard"(){return P(this)},"~run"(e,t){return e.value===this.literal?e.typed=!0:N(this,`type`,e,t),e}}}function hr(e,t){return{kind:`schema`,type:`loose_object`,reference:hr,expects:`Object`,async:!1,entries:e,message:t,get"~standard"(){return P(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){for(let r in e.typed=!0,e.value={},this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:dr(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=ur(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(N(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}if(!e.issues||!t.abortEarly)for(let t in n)ar(n,t)&&!(t in this.entries)&&(e.value[t]=n[t])}else N(this,`type`,e,t);return e}}}function gr(e){return{kind:`schema`,type:`never`,reference:gr,expects:`never`,async:!1,message:e,get"~standard"(){return P(this)},"~run"(e,t){return N(this,`type`,e,t),e}}}function _r(e,t){return{kind:`schema`,type:`nullish`,reference:_r,expects:`(${e.expects} | null | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return P(this)},"~run"(e,t){return(e.value===null||e.value===void 0)&&(this.default!==void 0&&(e.value=dr(this,e,t)),e.value===null||e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}}}function H(e){return{kind:`schema`,type:`number`,reference:H,expects:`number`,async:!1,message:e,get"~standard"(){return P(this)},"~run"(e,t){return typeof e.value==`number`&&!isNaN(e.value)?e.typed=!0:N(this,`type`,e,t),e}}}function U(e,t){return{kind:`schema`,type:`object`,reference:U,expects:`Object`,async:!1,entries:e,message:t,get"~standard"(){return P(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`)for(let r in e.typed=!0,e.value={},this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:dr(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=ur(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(N(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}else N(this,`type`,e,t);return e}}}function W(e,t){return{kind:`schema`,type:`optional`,reference:W,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return P(this)},"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=dr(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}}}function vr(e){return{kind:`schema`,type:`promise`,reference:vr,expects:`Promise`,async:!1,message:e,get"~standard"(){return P(this)},"~run"(e,t){return e.value instanceof Promise?e.typed=!0:N(this,`type`,e,t),e}}}function G(e,t,n){return{kind:`schema`,type:`record`,reference:G,expects:`Object`,async:!1,key:e,value:t,message:n,get"~standard"(){return P(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){for(let r in e.typed=!0,e.value={},n)if(ar(n,r)){let i=n[r],a=this.key[`~run`]({value:r},t);if(a.issues){let o={type:`object`,origin:`key`,input:n,key:r,value:i};for(let t of a.issues)t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}let o=this.value[`~run`]({value:i},t);if(o.issues){let a={type:`object`,origin:`value`,input:n,key:r,value:i};for(let t of o.issues)t.path?t.path.unshift(a):t.path=[a],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}(!a.typed||!o.typed)&&(e.typed=!1),a.typed&&(e.value[a.value]=o.value)}}else N(this,`type`,e,t);return e}}}function K(e,t){return{kind:`schema`,type:`strict_object`,reference:K,expects:`Object`,async:!1,entries:e,message:t,get"~standard"(){return P(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){for(let r in e.typed=!0,e.value={},this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:dr(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=ur(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(N(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}if(!e.issues||!t.abortEarly){for(let r in n)if(!(r in this.entries)){N(this,`key`,e,t,{input:r,expected:`never`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]});break}}}else N(this,`type`,e,t);return e}}}function q(e){return{kind:`schema`,type:`string`,reference:q,expects:`string`,async:!1,message:e,get"~standard"(){return P(this)},"~run"(e,t){return typeof e.value==`string`?e.typed=!0:N(this,`type`,e,t),e}}}function J(e,t){return{kind:`schema`,type:`tuple`,reference:J,expects:`Array`,async:!1,items:e,message:t,get"~standard"(){return P(this)},"~run"(e,t){let n=e.value;if(Array.isArray(n)){e.typed=!0,e.value=[];for(let r=0;r<this.items.length;r++){let i=n[r],a=this.items[r][`~run`]({value:i},t);if(a.issues){let o={type:`array`,origin:`value`,input:n,key:r,value:i};for(let t of a.issues)t.path?t.path.unshift(o):t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}}else N(this,`type`,e,t);return e}}}function yr(e){return{kind:`schema`,type:`undefined`,reference:yr,expects:`undefined`,async:!1,message:e,get"~standard"(){return P(this)},"~run"(e,t){return e.value===void 0?e.typed=!0:N(this,`type`,e,t),e}}}function br(e){let t;if(e)for(let n of e)t?t.push(...n.issues):t=n.issues;return t}function Y(e,t){return{kind:`schema`,type:`union`,reference:Y,expects:or(e.map(e=>e.expects),`|`),async:!1,options:e,message:t,get"~standard"(){return P(this)},"~run"(e,t){let n,r,i;for(let a of this.options){let o=a[`~run`]({value:e.value},t);if(o.typed)if(o.issues)r?r.push(o):r=[o];else{n=o;break}else i?i.push(o):i=[o]}if(n)return n;if(r){if(r.length===1)return r[0];N(this,`type`,e,t,{issues:br(r)}),e.typed=!0}else if(i?.length===1)return i[0];else N(this,`type`,e,t,{issues:br(i)});return e}}}function xr(e,t){return{kind:`schema`,type:`union`,reference:xr,expects:or(e.map(e=>e.expects),`|`),async:!0,options:e,message:t,get"~standard"(){return P(this)},async"~run"(e,t){let n,r,i;for(let a of this.options){let o=await a[`~run`]({value:e.value},t);if(o.typed)if(o.issues)r?r.push(o):r=[o];else{n=o;break}else i?i.push(o):i=[o]}if(n)return n;if(r){if(r.length===1)return r[0];N(this,`type`,e,t,{issues:br(r)}),e.typed=!0}else if(i?.length===1)return i[0];else N(this,`type`,e,t,{issues:br(i)});return e}}}function Sr(e){return{kind:`schema`,type:`void`,reference:Sr,expects:`void`,async:!1,message:e,get"~standard"(){return P(this)},"~run"(e,t){return e.value===void 0?e.typed=!0:N(this,`type`,e,t),e}}}function Cr(e,t){let n={...e.entries};for(let e of t)delete n[e];return{...e,entries:n,get"~standard"(){return P(this)}}}function wr(e,t){let n={};for(let r in e.entries)n[r]=!t||t.includes(r)?W(e.entries[r]):e.entries[r];return{...e,entries:n,get"~standard"(){return P(this)}}}function X(...e){return{...e[0],pipe:e,get"~standard"(){return P(this)},"~run"(t,n){for(let r of e)if(r.kind!==`metadata`){if(t.issues&&(r.kind===`schema`||r.kind===`transformation`)){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=r[`~run`](t,n))}return t}}}function Tr(...e){return{...e[0],pipe:e,async:!0,get"~standard"(){return P(this)},async"~run"(t,n){for(let r of e)if(r.kind!==`metadata`){if(t.issues&&(r.kind===`schema`||r.kind===`transformation`)){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=await r[`~run`](t,n))}return t}}}function Er(e,t,n){let r=e[`~run`]({value:t},er(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}function Z(...e){return i(...e)}const Q=Y([q(),mr(RegExp)]);function $(){return pr()}const Dr=Y([V(`debug`),V(`info`),V(`warn`)]),Or=Y([Dr,V(`silent`)]),kr=Y([Dr,V(`error`)]),Ar=fr(),jr=Y([Ar,q()]),Mr=Y([q(),R(q()),G(q(),q())]),Nr=X($(),F(J([q(),W(q()),z()])),L(_r(z()))),Pr=Y([Q,R(Q),Nr]),Fr=G(q(),Y([V(`asset`),V(`base64`),V(`binary`),V(`css`),V(`dataurl`),V(`empty`),V(`js`),V(`json`),V(`jsx`),V(`text`),V(`ts`),V(`tsx`)])),Ir=U({assumptions:W(U({ignoreFunctionLength:W(z()),noDocumentAll:W(z()),objectRestNoSymbols:W(z()),pureGetters:W(z()),setPublicClassFields:W(z())})),typescript:W(U({jsxPragma:W(q()),jsxPragmaFrag:W(q()),onlyRemoveTypeImports:W(z()),allowNamespaces:W(z()),allowDeclareFields:W(z()),declaration:W(U({stripInternal:W(z()),sourcemap:W(z())})),rewriteImportExtensions:W(Y([V(`rewrite`),V(`remove`),z()]))})),helpers:W(U({mode:W(Y([V(`Runtime`),V(`External`)]))})),decorators:W(U({legacy:W(z()),emitDecoratorMetadata:W(z())})),jsx:W(Y([V(!1),V(`preserve`),V(`react`),V(`react-jsx`),K({runtime:X(W(Y([V(`classic`),V(`automatic`)])),I(`Which runtime to use`)),development:X(W(z()),I(`Development specific information`)),throwIfNamespace:X(W(z()),I(`Toggles whether to throw an error when a tag name uses an XML namespace`)),importSource:X(W(q()),I(`Import the factory of element and fragment if mode is classic`)),pragma:X(W(q()),I(`Jsx element transformation`)),pragmaFrag:X(W(q()),I(`Jsx fragment transformation`)),refresh:X(W(z()),I(`Enable react fast refresh`))})])),target:X(W(Y([q(),R(q())])),I(`The JavaScript target environment`)),define:X(W(G(q(),q())),I(`Define global variables (syntax: key=value,key2=value2)`)),inject:X(W(G(q(),Y([q(),J([q(),q()])]))),I(`Inject import statements on demand`)),dropLabels:X(W(R(q())),I(`Remove labeled statements with these label names`))}),Lr=K({chokidar:W(gr(`The "watch.chokidar" option is deprecated, please use "watch.notify" instead of it`)),exclude:W(Y([Q,R(Q)])),include:W(Y([Q,R(Q)])),notify:X(W(K({compareContents:W(z()),pollInterval:W(H())})),I(`Notify options`)),skipWrite:X(W(z()),I(`Skip the bundle.write() step`)),buildDelay:X(W(H()),I(`Throttle watch rebuilds`)),clearScreen:X(W(z()),I(`Whether to clear the screen when a rebuild is triggered`)),onInvalidate:X(W(X(pr(),F(J([q()])))),I(`An optional function that will be called immediately every time a module changes that is part of the build.`))}),Rr=K({circularDependency:X(W(z()),I(`Whether to emit warning when detecting circular dependency`)),eval:X(W(z()),I(`Whether to emit warning when detecting eval`)),missingGlobalName:X(W(z()),I(`Whether to emit warning when detecting missing global name`)),missingNameOptionForIifeExport:X(W(z()),I(`Whether to emit warning when detecting missing name option for iife export`)),mixedExport:X(W(z()),I(`Whether to emit warning when detecting mixed export`)),unresolvedEntry:X(W(z()),I(`Whether to emit warning when detecting unresolved entry`)),unresolvedImport:X(W(z()),I(`Whether to emit warning when detecting unresolved import`)),filenameConflict:X(W(z()),I(`Whether to emit warning when detecting filename conflict`)),commonJsVariableInEsm:X(W(z()),I(`Whether to emit warning when detecting common js variable in esm`)),importIsUndefined:X(W(z()),I(`Whether to emit warning when detecting import is undefined`)),emptyImportMeta:X(W(z()),I(`Whether to emit warning when detecting empty import meta`)),configurationFieldConflict:X(W(z()),I(`Whether to emit warning when detecting configuration field conflict`)),preferBuiltinFeature:X(W(z()),I(`Whether to emit warning when detecting prefer builtin feature`)),couldNotCleanDirectory:X(W(z()),I(`Whether to emit warning when detecting could not clean directory`)),pluginTimings:X(W(z()),I(`Whether to emit warning when detecting plugin timings`))}),zr=K({compress:W(Y([z(),K({target:W(Y([V(`esnext`),V(`es2015`),V(`es2016`),V(`es2017`),V(`es2018`),V(`es2019`),V(`es2020`),V(`es2021`),V(`es2022`),V(`es2023`),V(`es2024`)])),dropConsole:W(z()),dropDebugger:W(z()),keepNames:W(K({function:z(),class:z()})),unused:W(Y([z(),V(`keep_assign`)]))})])),mangle:W(Y([z(),K({toplevel:W(z()),keepNames:W(Y([z(),K({function:z(),class:z()})])),debug:W(z())})])),codegen:W(Y([z(),K({removeWhitespace:W(z())})]))}),Br=K({alias:W(G(q(),Y([V(!1),q(),R(q())]))),aliasFields:W(R(R(q()))),conditionNames:W(R(q())),extensionAlias:W(G(q(),R(q()))),exportsFields:W(R(R(q()))),extensions:W(R(q())),mainFields:W(R(q())),mainFiles:W(R(q())),modules:W(R(q())),symlinks:W(z()),yarnPnp:W(z())}),Vr=Y([z(),hr({annotations:W(z()),manualPureFunctions:W(R(q())),unknownGlobalSideEffects:W(z()),commonjs:W(z()),propertyReadSideEffects:W(Y([V(!1),V(`always`)])),propertyWriteSideEffects:W(Y([V(!1),V(`always`)]))})]),Hr=K({inlineConst:X(W(Y([z(),K({mode:W(Y([V(`all`),V(`smart`)])),pass:W(H())})])),I(`Enable crossmodule constant inlining`)),pifeForModuleWrappers:X(W(z()),I(`Use PIFE pattern for module wrappers`))}),Ur=X($(),F(J([kr,jr]))),Wr=X($(),F(J([Dr,Ar,Ur]))),Gr=X($(),F(J([Ar,X($(),F(J([Y([jr,X($(),L(jr))])])))]))),Kr=Y([z(),K({new:W(z()),port:W(H()),host:W(q()),implement:W(q())})]),qr=K({input:W(Mr),plugins:W(B(()=>!0)),external:W(Pr),makeAbsoluteExternalsRelative:W(Y([z(),V(`ifRelativeSource`)])),resolve:W(Br),cwd:X(W(q()),I(`Current working directory`)),platform:X(W(Y([V(`browser`),V(`neutral`),V(`node`)])),I(`Platform for which the code should be generated (node, ${Z(`underline`,`browser`)}, neutral)`)),shimMissingExports:X(W(z()),I(`Create shim variables for missing exports`)),treeshake:W(Vr),optimization:W(Hr),logLevel:X(W(Or),I(`Log level (${Z(`dim`,`silent`)}, ${Z([`underline`,`gray`],`info`)}, debug, ${Z(`yellow`,`warn`)})`)),onLog:W(Wr),onwarn:W(Gr),moduleTypes:X(W(Fr),I(`Module types for customized extensions`)),experimental:W(K({disableLiveBindings:W(z()),enableComposingJsPlugins:W(z()),viteMode:W(z()),resolveNewUrlToAsset:W(z()),strictExecutionOrder:W(z()),onDemandWrapping:W(z()),incrementalBuild:W(z()),devMode:W(Kr),attachDebugInfo:W(Y([V(`none`),V(`simple`),V(`full`)])),chunkModulesOrder:W(Y([V(`module-id`),V(`exec-order`)])),chunkImportMap:W(Y([z(),U({baseUrl:W(q()),fileName:W(q())})])),nativeMagicString:W(z())})),transform:W(Ir),watch:W(Y([Lr,V(!1)])),checks:W(Rr),debug:X(W(U({sessionId:X(W(q()),I(`Used to name the build.`))})),I(`Enable debug mode. Emit debug information to disk. This might slow down the build process significantly.`)),preserveEntrySignatures:X(W(Y([V(`strict`),V(`allow-extension`),V(`exports-only`),V(!1)]))),tsconfig:X(W(Y([V(!0),q()])),I(`Path to the tsconfig.json file.`))}),Jr=K({input:X(W(R(q())),I(`Entry file`)),external:X(W(R(q())),I("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),treeshake:X(W(z()),I(`enable treeshaking`)),makeAbsoluteExternalsRelative:X(W(z()),I(`Prevent normalization of external imports`)),preserveEntrySignatures:X(W(V(!1)),I(`Avoid facade chunks for entry points`)),context:X(W(q()),I("The entity top-level `this` represents."))}),Yr=Cr(K({...qr.entries,...Jr.entries}),[`plugins`,`onwarn`,`onLog`,`resolve`,`experimental`,`watch`]),Xr=Y([V(`es`),V(`cjs`),V(`esm`),V(`module`),V(`commonjs`),V(`iife`),V(`umd`)]),Zr=X($(),F(J([B(()=>!0)])),lr(xr([q(),Tr(vr(),cr(),q())]))),Qr=X($(),F(J([B(()=>!0)])),L(q())),$r=Y([q(),Qr]),ei=X($(),F(J([B(()=>!0)])),L(q())),ti=Y([q(),ei]),ni=X($(),F(J([q()])),L(q())),ri=Y([z(),ni]),ii=X($(),F(J([q()])),L(q())),ai=X($(),F(J([q()])),L(q())),oi=X($(),F(J([q(),U({})])),L(_r(q()))),si=X($(),F(J([q(),U({})])),L(_r(q()))),ci=X($(),F(J([q()])),L(Y([z(),Sr(),yr()]))),li=K({includeDependenciesRecursively:W(z()),minSize:W(H()),maxSize:W(H()),minModuleSize:W(H()),maxModuleSize:W(H()),minShareCount:W(H()),groups:W(R(K({name:Y([q(),si]),test:W(Y([Q,ci])),priority:W(H()),minSize:W(H()),minShareCount:W(H()),maxSize:W(H()),minModuleSize:W(H()),maxModuleSize:W(H())})))}),ui=K({symbols:X(W(z()),I(`Whether to use Symbol.toStringTag for namespace objects`)),preset:Y([V(`es5`),V(`es2015`)]),profilerNames:X(W(z()),I(`Whether to add readable names to internal variables for profiling purposes`))}),di=K({dir:X(W(q()),I("Output directory, defaults to `dist` if `file` is not set")),file:X(W(q()),I(`Single output file`)),exports:X(W(Y([V(`auto`),V(`named`),V(`default`),V(`none`)])),I(`Specify a export mode (${Z(`underline`,`auto`)}, named, default, none)`)),hashCharacters:X(W(Y([V(`base64`),V(`base36`),V(`hex`)])),I(`Use the specified character set for file hashes`)),format:X(W(Xr),I(`Output format of the generated bundle (supports ${Z(`underline`,`esm`)}, cjs, and iife)`)),sourcemap:X(W(Y([z(),V(`inline`),V(`hidden`)])),I(`Generate sourcemap (\`-s inline\` for inline, or ${Z(`bold`,"pass the `-s` on the last argument if you want to generate `.map` file")})`)),sourcemapBaseUrl:X(W(q()),I(`Base URL used to prefix sourcemap paths`)),sourcemapDebugIds:X(W(z()),I(`Inject sourcemap debug IDs`)),sourcemapIgnoreList:W(Y([z(),B(()=>!0),Q])),sourcemapPathTransform:W(B(()=>!0)),banner:W(Y([q(),Zr])),footer:W(Y([q(),Zr])),postBanner:W(Y([q(),Zr])),postFooter:W(Y([q(),Zr])),intro:W(Y([q(),Zr])),outro:W(Y([q(),Zr])),extend:X(W(z()),I(`Extend global variable defined by name in IIFE / UMD formats`)),esModule:W(Y([z(),V(`if-default-prop`)])),assetFileNames:W(ti),entryFileNames:W($r),chunkFileNames:W($r),cssEntryFileNames:W($r),cssChunkFileNames:W($r),sanitizeFileName:W(ri),minify:X(W(Y([z(),V(`dce-only`),zr])),I(`Minify the bundled file`)),name:X(W(q()),I(`Name for UMD / IIFE format outputs`)),globals:X(W(Y([G(q(),q()),ii])),I("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),paths:X(W(Y([G(q(),q()),ai])),I(`Maps external module IDs to paths`)),generatedCode:X(W(wr(ui)),I(`Generated code options`)),externalLiveBindings:X(W(z()),I(`external live bindings`)),inlineDynamicImports:X(W(z()),I(`Inline dynamic imports`)),manualChunks:W(oi),advancedChunks:W(li),legalComments:X(W(Y([V(`none`),V(`inline`)])),I(`Control comments in the output`)),plugins:W(B(()=>!0)),polyfillRequire:X(W(z()),I(`Disable require polyfill injection`)),hoistTransitiveImports:W(V(!1)),preserveModules:X(W(z()),I(`Preserve module structure`)),preserveModulesRoot:X(W(q()),I(`Put preserved modules under this path at root level`)),virtualDirname:W(q()),minifyInternalExports:X(W(z()),I(`Minify internal exports`)),topLevelVar:X(W(z()),I("Rewrite top-level declarations to use `var`.")),cleanDir:X(W(z()),I(`Clean output directory before emitting output`)),keepNames:X(W(z()),I(`Keep function and class names after bundling`))}),fi=(e,t)=>`Code to insert the ${Z(`bold`,e)} of the bundled file (${Z(`bold`,t)} the wrapper function)`,pi=K({assetFileNames:X(W(q()),I(`Name pattern for asset files`)),entryFileNames:X(W(q()),I(`Name pattern for emitted entry chunks`)),chunkFileNames:X(W(q()),I(`Name pattern for emitted secondary chunks`)),cssEntryFileNames:X(W(q()),I(`Name pattern for emitted css entry chunks`)),cssChunkFileNames:X(W(q()),I(`Name pattern for emitted css secondary chunks`)),sanitizeFileName:X(W(z()),I(`Sanitize file name`)),banner:X(W(q()),I(fi(`top`,`outside`))),footer:X(W(q()),I(fi(`bottom`,`outside`))),postBanner:X(W(q()),I("A string to prepend to the top of each chunk. Applied after the `renderChunk` hook and minification")),postFooter:X(W(q()),I("A string to append to the bottom of each chunk. Applied after the `renderChunk` hook and minification")),intro:X(W(q()),I(fi(`top`,`inside`))),outro:X(W(q()),I(fi(`bottom`,`inside`))),esModule:X(W(z()),I("Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)")),globals:X(W(G(q(),q())),I("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),advancedChunks:X(W(K({minSize:X(W(H()),I(`Minimum size of the chunk`)),minShareCount:X(W(H()),I(`Minimum share count of the chunk`))})),I("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),minify:X(W(z()),I(`Minify the bundled file`))}),mi=Cr(K({...di.entries,...pi.entries}),[`sourcemapIgnoreList`,`sourcemapPathTransform`,`plugins`,`hoistTransitiveImports`]);({...Yr.entries,...mi.entries});const hi={output:{ignored:!0},"resolve.tsconfigFilename":{issueMsg:"It is deprecated. Please use the top-level `tsconfig` option instead."}},gi={};function _i(e,t){if(typeof t!=`object`)throw Error(`Invalid ${e} options. Expected an Object but received ${JSON.stringify(t)}.`);if(globalThis.process?.env?.ROLLUP_TEST)return;let n=Er(e===`input`?qr:di,t);if(!n.success){let t=n.issues.map(t=>{let n=t.message,r=t.path.map(e=>e.key);if(t.type===`union`){let e=t.issues?.find(e=>!(e.type!==t.received&&e.input===t.input));e&&(e.path&&r.push(e.path.map(e=>e.key)),n=e.message)}let i=r.join(`.`),a=e===`input`?hi[i]:gi[i];return a&&a.ignored?``:`- For the "${i}". ${a?.issueMsg||n+`.`} ${a?.help?`\n Help: ${a.help}`:``}`}).filter(Boolean);t.length&&console.warn(`\x1b[33mWarning: Invalid ${e} options (${t.length} issue${t.length===1?``:`s`} found)\n${t.join(`
13
- `)}\x1b[0m`)}}var vi=class extends Re{constructor(e){super(),this.bindingOutputs=e}get output(){return Ze(this.bindingOutputs).output}__rolldown_external_memory_handle__(e){let t=this.output.map(t=>t.__rolldown_external_memory_handle__(e));if(!t.every(e=>e.freed)){let e=t.filter(e=>!e.freed).map(e=>e.reason).filter(Boolean);return{freed:!1,reason:`Failed to free ${e.length} item(s): ${e.join(`; `)}`}}return{freed:!0}}};x([b],vi.prototype,`output`,null);var yi=class{constructor(e){this.context=e}getModuleInfo(e){let t=this.context.getModuleInfo(e);return t?At(t,{moduleSideEffects:null,meta:{}}):null}};function bi(e){let{dir:t,format:n,exports:r,hashCharacters:i,sourcemap:a,sourcemapBaseUrl:o,sourcemapDebugIds:s,sourcemapIgnoreList:c,sourcemapPathTransform:l,name:u,assetFileNames:d,entryFileNames:f,chunkFileNames:ee,cssEntryFileNames:p,cssChunkFileNames:m,banner:te,footer:h,postBanner:ne,postFooter:re,intro:ie,outro:ae,esModule:oe,globals:se,paths:ce,generatedCode:le,file:ue,sanitizeFileName:de,preserveModules:fe,virtualDirname:pe,legalComments:g,preserveModulesRoot:me,manualChunks:he,topLevelVar:ge,cleanDir:_e}=e;if(e.inlineDynamicImports===!0&&he!=null)throw Error(`Invalid value "true" for option "output.inlineDynamicImports" - this option is not supported for "output.manualChunks".`);let ve=Ti(e.advancedChunks,he);return{dir:t,file:ue??void 0,format:Si(n),exports:r,hashCharacters:i,sourcemap:Ci(a),sourcemapBaseUrl:o,sourcemapDebugIds:s,sourcemapIgnoreList:c??/node_modules/,sourcemapPathTransform:l,banner:xi(te),footer:xi(h),postBanner:xi(ne),postFooter:xi(re),intro:xi(ie),outro:xi(ae),extend:e.extend,globals:se,paths:ce,generatedCode:le,esModule:oe,name:u,assetFileNames:wi(d),entryFileNames:f,chunkFileNames:ee,cssEntryFileNames:p,cssChunkFileNames:m,plugins:[],minify:e.minify,externalLiveBindings:e.externalLiveBindings,inlineDynamicImports:e.inlineDynamicImports,advancedChunks:ve,polyfillRequire:e.polyfillRequire,sanitizeFileName:de,preserveModules:fe,virtualDirname:pe,legalComments:g,preserveModulesRoot:me,topLevelVar:ge,minifyInternalExports:e.minifyInternalExports,cleanDir:_e}}function xi(e){if(!(e==null||e===``))return typeof e==`function`?async t=>e(C(t)):e}function Si(e){switch(e){case void 0:case`es`:case`esm`:case`module`:return`es`;case`cjs`:case`commonjs`:return`cjs`;case`iife`:return`iife`;case`umd`:return`umd`;default:Oe(`output.format: ${e}`)}}function Ci(e){switch(e){case!0:return`file`;case`inline`:return`inline`;case!1:case void 0:return;case`hidden`:return`hidden`;default:throw Error(`unknown sourcemap: ${e}`)}}function wi(e){return typeof e==`function`?t=>e({name:t.name,names:t.names,originalFileName:t.originalFileName,originalFileNames:t.originalFileNames,source:Ve(t.source),type:`asset`}):e}function Ti(e,t){if(t!=null&&e!=null?console.warn("`manualChunks` option is ignored due to `advancedChunks` option is specified."):t!=null&&(e={groups:[{name(e,n){return t(e,{getModuleInfo:e=>n.getModuleInfo(e)})}}]}),e==null)return;let{groups:n,...r}=e;return{...r,groups:n?.map(e=>{let{name:t,...n}=e;return{...n,name:typeof t==`function`?(e,n)=>t(e,new yi(n)):t}})}}var Ei=p(h(),1);async function Di(e){let t=[];for(let[n,r]of e.entries())if(`_parallel`in r){let{fileUrl:e,options:i}=r._parallel;t.push({index:n,fileUrl:e,options:i})}if(t.length<=0)return;let n=Ai(),r=new Ei.ParallelJsPluginRegistry(n),i=r.id,a=await Oi(i,n,t);return{registry:r,stopWorkers:async()=>{await Promise.all(a.map(e=>e.terminate()))}}}function Oi(e,t,n){return Promise.all(Array.from({length:t},(t,r)=>ki(e,n,r)))}async function ki(e,t,n){let i=import.meta.resolve(`#parallel-plugin-worker`),a={registryId:e,pluginInfos:t,threadNumber:n},o;try{return o=new r(new URL(i),{workerData:a}),o.unref(),await new Promise((e,t)=>{o.once(`message`,async n=>{n.type===`error`?t(n.error):e()})}),o}catch(e){throw o?.terminate(),e}}const Ai=()=>{let e=1;try{e=a.availableParallelism()}catch{let t=a.cpus();Array.isArray(t)&&t.length>0&&(e=t.length)}return Math.min(e,8)};async function ji(e,t,n){let r=await Jn(e.plugins),i=await Jn(t.plugins),a=e.logLevel||Me,o=Rn(Qn(r),zn(e,a),a,n);t=Zn.callOutputOptionsHook([...r,...i],t,o,a,n);let s=await Jn(t.plugins),c=[...Xn(r,`at position `),...Yn(Xn(s,`at output position `),o)],l=await Di(c);try{return{bundlerOptions:{inputOptions:Tn(c,e,t,s,o,a,n),outputOptions:bi(t),parallelPluginsRegistry:l?.registry},inputOptions:e,onLog:o,stopWorkers:l?.stopWorkers}}catch(e){throw await l?.stopWorkers(),e}}Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`);var Mi=class e{#e;#t;#n;static asyncRuntimeShutdown=!1;constructor(e){this.#e=e,this.#t=new Ei.BindingBundler}get closed(){return this.#t.closed}async generate(e={}){return this.#r(!1,e)}async write(e={}){return this.#r(!0,e)}async close(){await this.#n?.(),await this.#t.close(),(0,Ei.shutdownAsyncRuntime)(),e.asyncRuntimeShutdown=!0,this.#n=void 0}async[Symbol.asyncDispose](){await this.close()}get watchFiles(){return Promise.resolve(this.#t.getWatchFiles())}async#r(t,n){_i(`output`,n),await this.#n?.();let r=await ji(this.#e,n,!1);e.asyncRuntimeShutdown&&(0,Ei.startAsyncRuntime)();try{this.#n=r.stopWorkers;let e;return e=t?await this.#t.write(r.bundlerOptions):await this.#t.generate(r.bundlerOptions),new vi(wt(e))}catch(e){throw await r.stopWorkers?.(),e}}};export{h as S,we as _,Dt as a,fe as b,nt as c,rt as d,ct as f,ye as g,De as h,_i as i,_ as l,Ee as m,Mi as n,Tt as o,Ze as p,ji as r,wt as s,Zn as t,Fe as u,Te as v,p as x,be as y};