@skaldapp/runtime 3.4.0 → 3.4.2

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.
@@ -22,7 +22,7 @@ const ${t.map(e=>`_${Xt[e]} = ${Xt[e]}`).join(`, `)}
22
22
  `,-1)}e.ssrHelpers&&e.ssrHelpers.length&&i(`import { ${e.ssrHelpers.map(e=>`${Xt[e]} as _${Xt[e]}`).join(`, `)} } from "${c}"
23
23
  `,-1),e.imports.length&&(ds(e.imports,t),a()),us(e.hoists,t),a(),r||i(`export `)}function ls(e,t,{helper:n,push:r,newline:i,isTS:a}){let o=n(t===`component`?wt:Et);for(let n=0;n<e.length;n++){let s=e[n],c=s.endsWith(`__self`);c&&(s=s.slice(0,-6)),r(`const ${va(s,t)} = ${o}(${JSON.stringify(s)}${c?`, true`:``})${a?`!`:``}`),n<e.length-1&&i()}}function us(e,t){if(!e.length)return;t.pure=!0;let{push:n,newline:r}=t;r();for(let i=0;i<e.length;i++){let a=e[i];a&&(n(`const _hoisted_${i+1} = `),J(a,t),r())}t.pure=!1}function ds(e,t){e.length&&e.forEach(e=>{t.push(`import `),J(e.exp,t),t.push(` from '${e.path}'`),t.newline()})}function fs(e){return F(e)||e.type===4||e.type===2||e.type===5||e.type===8}function ps(e,t){let n=e.length>3||e.some(e=>P(e)||!fs(e));t.push(`[`),n&&t.indent(),ms(e,t,n),n&&t.deindent(),t.push(`]`)}function ms(e,t,n=!1,r=!0){let{push:i,newline:a}=t;for(let o=0;o<e.length;o++){let s=e[o];F(s)?i(s,-3):P(s)?ps(s,t):J(s,t),o<e.length-1&&(n?(r&&i(`,`),a()):r&&i(`, `))}}function J(e,t){if(F(e)){t.push(e,-3);return}if(pe(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:aa(e.codegenNode!=null,`Codegen node is missing for element/if/for node. Apply appropriate transforms first.`),J(e.codegenNode,t);break;case 2:hs(e,t);break;case 4:gs(e,t);break;case 5:_s(e,t);break;case 12:J(e.codegenNode,t);break;case 8:vs(e,t);break;case 3:bs(e,t);break;case 13:xs(e,t);break;case 14:Cs(e,t);break;case 15:ws(e,t);break;case 17:Ts(e,t);break;case 18:Es(e,t);break;case 19:Ds(e,t);break;case 20:Os(e,t);break;case 21:ms(e.body,t,!0,!1);break;case 22:ks(e,t);break;case 23:As(e,t);break;case 24:js(e,t);break;case 25:Ms(e,t);break;case 26:Ns(e,t);break;case 10:break;default:return aa(!1,`unhandled codegen node type: ${e.type}`),e}}function hs(e,t){t.push(JSON.stringify(e.content),-3,e)}function gs(e,t){let{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function _s(e,t){let{push:n,helper:r,pure:i}=t;i&&n(rs),n(`${r(Mt)}(`),J(e.content,t),n(`)`)}function vs(e,t){for(let n=0;n<e.children.length;n++){let r=e.children[n];F(r)?t.push(r,-3):J(r,t)}}function ys(e,t){let{push:n}=t;e.type===8?(n(`[`),vs(e,t),n(`]`)):e.isStatic?n(Gi(e.content)?e.content:JSON.stringify(e.content),-2,e):n(`[${e.content}]`,-3,e)}function bs(e,t){let{push:n,helper:r,pure:i}=t;i&&n(rs),n(`${r(xt)}(${JSON.stringify(e.content)})`,-3,e)}function xs(e,t){let{push:n,helper:r,pure:i}=t,{tag:a,props:o,children:s,patchFlag:c,dynamicProps:l,directives:u,isBlock:d,disableTracking:f,isComponent:p}=e,m;c&&(m=c<0?c+` /* ${Ae[c]} */`:c+` /* ${Object.keys(Ae).map(Number).filter(e=>e>0&&c&e).map(e=>Ae[e]).join(`, `)} */`),u&&n(r(Ot)+`(`),d&&n(`(${r(gt)}(${f?`true`:``}), `),i&&n(rs),n(r(d?yn(t.inSSR,p):vn(t.inSSR,p))+`(`,-2,e),ms(Ss([a,o,s,m,l]),t),n(`)`),d&&n(`)`),u&&(n(`, `),J(u,t),n(`)`))}function Ss(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(e=>e||`null`)}function Cs(e,t){let{push:n,helper:r,pure:i}=t,a=F(e.callee)?e.callee:r(e.callee);i&&n(rs),n(a+`(`,-2,e),ms(e.arguments,t),n(`)`)}function ws(e,t){let{push:n,indent:r,deindent:i,newline:a}=t,{properties:o}=e;if(!o.length){n(`{}`,-2,e);return}let s=o.length>1||o.some(e=>e.value.type!==4);n(s?`{`:`{ `),s&&r();for(let e=0;e<o.length;e++){let{key:r,value:i}=o[e];ys(r,t),n(`: `),J(i,t),e<o.length-1&&(n(`,`),a())}s&&i(),n(s?`}`:` }`)}function Ts(e,t){ps(e.elements,t)}function Es(e,t){let{push:n,indent:r,deindent:i}=t,{params:a,returns:o,body:s,newline:c,isSlot:l}=e;l&&n(`_${Xt[Gt]}(`),n(`(`,-2,e),P(a)?ms(a,t):a&&J(a,t),n(`) => `),(c||s)&&(n(`{`),r()),o?(c&&n(`return `),P(o)?ps(o,t):J(o,t)):s&&J(s,t),(c||s)&&(i(),n(`}`)),l&&n(`)`)}function Ds(e,t){let{test:n,consequent:r,alternate:i,newline:a}=e,{push:o,indent:s,deindent:c,newline:l}=t;if(n.type===4){let e=!Gi(n.content);e&&o(`(`),gs(n,t),e&&o(`)`)}else o(`(`),J(n,t),o(`)`);a&&s(),t.indentLevel++,a||o(` `),o(`? `),J(r,t),t.indentLevel--,a&&l(),a||o(` `),o(`: `);let u=i.type===19;u||t.indentLevel++,J(i,t),u||t.indentLevel--,a&&c(!0)}function Os(e,t){let{push:n,helper:r,indent:i,deindent:a,newline:o}=t,{needPauseTracking:s,needArraySpread:c}=e;c&&n(`[...(`),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(Ht)}(-1`),e.inVOnce&&n(`, true`),n(`),`),o(),n(`(`)),n(`_cache[${e.index}] = `),J(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(Ht)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(`)`),c&&n(`)]`)}function ks(e,t){let{push:n,indent:r,deindent:i}=t;n("`");let a=e.elements.length,o=a>3;for(let s=0;s<a;s++){let a=e.elements[s];F(a)?n(a.replace(/(`|\$|\\)/g,`\\$1`),-3):(n("${"),o&&r(),J(a,t),o&&i(),n(`}`))}n("`")}function As(e,t){let{push:n,indent:r,deindent:i}=t,{test:a,consequent:o,alternate:s}=e;n(`if (`),J(a,t),n(`) {`),r(),J(o,t),i(),n(`}`),s&&(n(` else `),s.type===23?As(s,t):(n(`{`),r(),J(s,t),i(),n(`}`)))}function js(e,t){J(e.left,t),t.push(` = `),J(e.right,t)}function Ms(e,t){t.push(`(`),ms(e.expressions,t),t.push(`)`)}function Ns({returns:e},t){t.push(`return `),P(e)?ps(e,t):J(e,t)}var Ps=A(`true,false,null,this`),Fs=(e,t)=>{if(e.type===5)e.content=Is(e.content,t);else if(e.type===1){let n=W(e,`memo`);for(let r=0;r<e.props.length;r++){let i=e.props[r];if(i.type===7&&i.name!==`for`){let e=i.exp,r=i.arg;e&&e.type===4&&!(i.name===`on`&&r)&&!(n&&r&&r.type===4&&r.content===`key`)&&(i.exp=Is(e,t,i.name===`slot`)),r&&r.type===4&&!r.isStatic&&(i.arg=Is(r,t))}}}};function Is(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){if(!t.prefixIdentifiers||!e.content.trim())return e;let{inline:a,bindingMetadata:o}=t,s=(e,n,r)=>{let s=le(o,e)&&o[e];if(a){let a=n&&n.type===`AssignmentExpression`&&n.left===r,l=n&&n.type===`UpdateExpression`&&n.argument===r,u=n&&Ei(n,d),p=n&&Di(d),m=e=>{let n=`${t.helperString(Kt)}(${e})`;return p?`(${n})`:n};if(zs(s)||s===`setup-reactive-const`||i[e])return e;if(s===`setup-ref`)return`${e}.value`;if(s===`setup-maybe-ref`)return a||l||u?`${e}.value`:m(e);if(s===`setup-let`)if(a){let{right:r,operator:i}=n,a=Rs(Is(z(c.slice(r.start-1,r.end-1),!1),t,!1,!1,f));return`${t.helperString(qt)}(${e})${t.isTS?` //@ts-ignore
24
24
  `:``} ? ${e}.value ${i} ${a} : ${e}`}else if(l){r.start=n.start,r.end=n.end;let{prefix:i,operator:a}=n,o=i?a:``,s=i?``:a;return`${t.helperString(qt)}(${e})${t.isTS?` //@ts-ignore
25
- `:``} ? ${o}${e}.value${s} : ${o}${e}${s}`}else if(u)return e;else return m(e);else if(s===`props`)return Oe(e);else if(s===`props-aliased`)return Oe(o.__propsAliases[e])}else if(s&&s.startsWith(`setup`)||s===`literal-const`)return`$setup.${e}`;else if(s===`props-aliased`)return`$props['${o.__propsAliases[e]}']`;else if(s)return`$${s}.${e}`;return`_ctx.${e}`},c=e.content,l=e.ast;if(l===!1)return e;if(l===null||!l&&Gi(c)){let r=t.identifiers[c],i=Me(c),a=Ps(c);return!n&&!r&&!a&&(!i||o[c])?(zs(o[c])&&(e.constType=1),e.content=s(c)):r||(a?e.constType=3:e.constType=2),e}if(!l){let i=r?` ${c} `:`(${c})${n?`=>{}`:``}`;try{l=bi.parseExpression(i,{sourceType:`module`,plugins:t.expressionPlugins})}catch(n){return t.onError(U(46,e.loc,void 0,n.message)),e}}let u=[],d=[],f=Object.create(t.identifiers);wi(l,(e,t,n,r,i)=>{if(Ri(e,t))return;let a=r&&Ls(e);a&&!i?(Li(t)&&t.shorthand&&(e.prefix=`${e.name}: `),e.name=s(e.name,t,e),u.push(e)):(!(a&&i)&&(!t||t.type!==`CallExpression`&&t.type!==`NewExpression`&&t.type!==`MemberExpression`)&&(e.isConstant=!0),u.push(e))},!0,d,f);let p=[];u.sort((e,t)=>e.start-t.start),u.forEach((t,n)=>{let r=t.start-1,i=t.end-1,a=u[n-1],o=c.slice(a?a.end-1:0,r);(o.length||t.prefix)&&p.push(o+(t.prefix||``));let s=c.slice(r,i);p.push(z(t.name,!1,{start:ra(e.loc.start,s,r),end:ra(e.loc.start,s,i),source:s},t.isConstant?3:0)),n===u.length-1&&i<c.length&&p.push(c.slice(i))});let m;return p.length?(m=cn(p,e.loc),m.ast=l):(m=e,m.constType=3),m.identifiers=Object.keys(f),m}function Ls(e){return!(Me(e.name)||e.name===`require`)}function Rs(e){return F(e)?e:e.type===4?e.content:e.children.map(Rs).join(``)}function zs(e){return e===`setup-const`||e===`literal-const`}var Bs=So(/^(?:if|else|else-if)$/,(e,t,n)=>Vs(e,t,n,(e,t,r)=>{let i=n.parent.children,a=i.indexOf(e),o=0;for(;a-->=0;){let e=i[a];e&&e.type===9&&(o+=e.branches.length)}return()=>{if(r)e.codegenNode=Us(t,o,n);else{let r=Ks(e.codegenNode);r.alternate=Us(t,o+e.branches.length-1,n)}}}));function Vs(e,t,n,r){if(t.name!==`else`&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(U(28,t.loc)),t.exp=z(`true`,!1,r)}if(n.prefixIdentifiers&&t.exp&&(t.exp=Is(t.exp,n)),t.name===`if`){let i=Hs(e,t),a={type:9,loc:to(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{let i=n.parent.children,a=[],o=i.indexOf(e);for(;o-->=-1;){let s=i[o];if(s&&wa(s)){n.removeNode(s),s.type===3&&a.unshift(s);continue}if(s&&s.type===9){(t.name===`else-if`||t.name===`else`)&&s.branches[s.branches.length-1].condition===void 0&&n.onError(U(30,e.loc)),n.removeNode();let i=Hs(e,t);a.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag===`transition`||n.parent.tag===`Transition`))&&(i.children=[...a,...i.children]);{let e=i.userKey;e&&s.branches.forEach(({userKey:t})=>{Gs(t,e)&&n.onError(U(29,i.userKey.loc))})}s.branches.push(i);let o=r&&r(s,i,!1);xo(i,n),o&&o(),n.currentNode=null}else n.onError(U(30,e.loc));break}}}function Hs(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!W(e,`for`)?e.children:[e],userKey:oa(e,`key`),isTemplateIf:n}}function Us(e,t,n){return e.condition?un(e.condition,Ws(e,t,n),B(n.helper(xt),[`"v-if"`,`true`])):Ws(e,t,n)}function Ws(e,t,n){let{helper:r}=n,i=R(`key`,z(`${t}`,!1,L,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){let e=o.codegenNode;return ga(e,i,n),e}else{let t=64;return!e.isTemplateIf&&a.filter(e=>e.type!==3).length===1&&(t|=2048),rn(n,r(dt),on([i]),a,t,void 0,void 0,!0,!1,!1,e.loc)}else{let e=o.codegenNode,t=ba(e);return t.type===13&&bn(t,n),ga(t,i,n),e}}function Gs(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{let n=e.exp,r=t.exp;if(n.type!==r.type||n.type!==4||n.isStatic!==r.isStatic||n.content!==r.content)return!1}return!0}function Ks(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}var qs=So(`for`,(e,t,n)=>{let{helper:r,removeHelper:i}=n;return Js(e,t,n,t=>{let a=B(r(kt),[t.source]),o=fa(e),s=W(e,`memo`),c=oa(e,`key`,!1,!0),l=c&&c.type===7,u=c&&(c.type===6?c.value?z(c.value.content,!0):void 0:c.exp);s&&u&&l&&(c.exp=u=Is(u,n));let d=c&&u?R(`key`,u):null;o&&(s&&(s.exp=Is(s.exp,n)),d&&c.type!==6&&(d.value=Is(d.value,n)));let f=t.source.type===4&&t.source.constType>0,p=f?64:c?128:256;return t.codegenNode=rn(n,r(dt),void 0,a,p,void 0,void 0,!0,!f,!1,e.loc),()=>{let c,{children:l}=t;o&&e.children.some(e=>{if(e.type===1){let t=oa(e,`key`);if(t)return n.onError(U(33,t.loc)),!0}});let p=l.length!==1||l[0].type!==1,m=pa(e)?e:o&&e.children.length===1&&pa(e.children[0])?e.children[0]:null;if(m?(c=m.codegenNode,o&&d&&ga(c,d,n)):p?c=rn(n,r(dt),d?on([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=l[0].codegenNode,o&&d&&ga(c,d,n),c.isBlock!==!f&&(c.isBlock?(i(gt),i(yn(n.inSSR,c.isComponent))):i(vn(n.inSSR,c.isComponent))),c.isBlock=!f,c.isBlock?(r(gt),r(yn(n.inSSR,c.isComponent))):r(vn(n.inSSR,c.isComponent))),s){let e=ln(Xs(t.parseResult,[z(`_cached`)]));e.body=fn([cn([`const _memo = (`,s.exp,`)`]),cn([`if (_cached && _cached.el`,...u?[` && _cached.key === `,u]:[],` && ${n.helperString(Yt)}(_cached, _memo)) return _cached`]),cn([`const _item = `,c]),z(`_item.memo = _memo`),z(`return _item`)]),a.arguments.push(e,z(`_cache`),z(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(ln(Xs(t.parseResult),c,!0))}})});function Js(e,t,n,r){if(!t.exp){n.onError(U(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(U(32,t.loc));return}Ys(i,n);let{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:c,value:l,key:u,index:d}=i,f={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:i,children:fa(e)?e.children:[e]};n.replaceNode(f),s.vFor++,n.prefixIdentifiers&&(l&&a(l),u&&a(u),d&&a(d));let p=r&&r(f);return()=>{s.vFor--,n.prefixIdentifiers&&(l&&o(l),u&&o(u),d&&o(d)),p&&p()}}function Ys(e,t){e.finalized||=(t.prefixIdentifiers&&(e.source=Is(e.source,t),e.key&&=Is(e.key,t,!0),e.index&&=Is(e.index,t,!0),e.value&&=Is(e.value,t,!0)),!0)}function Xs({value:e,key:t,index:n},r=[]){return Zs([e,t,n,...r])}function Zs(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||z(`_`.repeat(t+1),!1))}var Qs=z(`undefined`,!1),$s=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){let n=W(e,`slot`);if(n){let e=n.exp;return t.prefixIdentifiers&&e&&t.addIdentifiers(e),t.scopes.vSlot++,()=>{t.prefixIdentifiers&&e&&t.removeIdentifiers(e),t.scopes.vSlot--}}}},ec=(e,t)=>{let n;if(fa(e)&&e.props.some(da)&&(n=W(e,`for`))){let e=n.forParseResult;if(e){Ys(e,t);let{value:n,key:r,index:i}=e,{addIdentifiers:a,removeIdentifiers:o}=t;return n&&a(n),r&&a(r),i&&a(i),()=>{n&&o(n),r&&o(r),i&&o(i)}}}},tc=(e,t,n,r)=>ln(e,n,!1,!0,n.length?n[0].loc:r);function nc(e,t,n=tc){t.helper(Gt);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0;!t.ssr&&t.prefixIdentifiers&&(s=e.props.some(e=>da(e)&&(ya(e.arg,t.identifiers)||ya(e.exp,t.identifiers)))||r.some(e=>ya(e,t.identifiers)));let c=W(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!Hi(e)&&(s=!0),a.push(R(e||z(`default`,!0),n(t,void 0,r,i)))}let l=!1,u=!1,d=[],f=new Set,p=0;for(let e=0;e<r.length;e++){let i=r[e],m;if(!fa(i)||!(m=W(i,`slot`,!0))){i.type!==3&&d.push(i);continue}if(c){t.onError(U(37,m.loc));break}l=!0;let{children:h,loc:g}=i,{arg:_=z(`default`,!0),exp:v,loc:y}=m,b;Hi(_)?b=_?_.content:`default`:s=!0;let x=W(i,`for`),S=n(v,x,h,g),C,w;if(C=W(i,`if`))s=!0,o.push(un(C.exp,rc(_,S,p++),Qs));else if(w=W(i,/^else(?:-if)?$/,!0)){let n=e,i;for(;n--&&(i=r[n],wa(i)););if(i&&fa(i)&&W(i,/^(?:else-)?if$/)){let e=o[o.length-1];for(;e.alternate.type===19;)e=e.alternate;e.alternate=w.exp?un(w.exp,rc(_,S,p++),Qs):rc(_,S,p++)}else t.onError(U(30,w.loc))}else if(x){s=!0;let e=x.forParseResult;e?(Ys(e,t),o.push(B(t.helper(kt),[e.source,ln(Xs(e),rc(_,S),!0)]))):t.onError(U(32,x.loc))}else{if(b){if(f.has(b)){t.onError(U(38,y));continue}f.add(b),b===`default`&&(u=!0)}a.push(R(_,S))}}if(!c){let e=(e,t)=>R(`default`,n(e,void 0,t,i));l?d.length&&!d.every(Ca)&&(u?t.onError(U(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:ic(e.children)?3:1,h=on(a.concat(R(`_`,z(m+` /* ${je[m]} */`,!1))),i);return o.length&&(h=B(t.helper(jt),[h,an(o)])),{slots:h,hasDynamicSlots:s}}function rc(e,t,n){let r=[R(`name`,e),R(`fn`,t)];return n!=null&&r.push(R(`key`,z(String(n),!0))),on(r)}function ic(e){for(let t=0;t<e.length;t++){let n=e[t];switch(n.type){case 1:if(n.tagType===2||ic(n.children))return!0;break;case 9:if(ic(n.branches))return!0;break;case 10:case 11:if(ic(n.children))return!0;break}}return!1}var ac=new WeakMap,oc=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;let{tag:n,props:r}=e,i=e.tagType===1,a=i?sc(e,t):`"${n}"`,o=me(a)&&a.callee===Tt,s,c,l=0,u,d,f,p=o||a===ft||a===pt||!i&&(n===`svg`||n===`foreignObject`||n===`math`);if(r.length>0){let n=lc(e,t,void 0,i,o);s=n.props,l=n.patchFlag,d=n.dynamicPropNames;let r=n.directives;f=r&&r.length?an(r.map(e=>fc(e,t))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0)if(a===mt&&(p=!0,l|=1024,e.children.length>1&&t.onError(U(47,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:``}))),i&&a!==ft&&a!==mt){let{slots:n,hasDynamicSlots:r}=nc(e,t);c=n,r&&(l|=1024)}else if(e.children.length===1&&a!==ft){let n=e.children[0],r=n.type,i=r===5||r===8;i&&fo(n,t)===0&&(l|=1),c=i||r===2?n:e.children}else c=e.children;d&&d.length&&(u=pc(d)),e.codegenNode=rn(t,a,s,c,l===0?void 0:l,u,f,!!p,!1,i,e.loc)};function sc(e,t,n=!1){let{tag:r}=e,i=mc(r),a=oa(e,`is`,!1,!0);if(a)if(i){let e;if(a.type===6?e=a.value&&z(a.value.content,!0):(e=a.exp,e||=(e=z(`is`,!1,a.arg.loc),a.exp=Is(e,t))),e)return B(t.helper(Tt),[e])}else a.type===6&&a.value.content.startsWith(`vue:`)&&(r=a.value.content.slice(4));let o=Ui(r)||t.isBuiltInComponent(r);if(o)return n||t.helper(o),o;{let e=cc(r,t);if(e)return e;let n=r.indexOf(`.`);if(n>0){let e=cc(r.slice(0,n),t);if(e)return e+r.slice(n)}}return t.selfName&&Te(Se(r))===t.selfName?(t.helper(wt),t.components.add(r+`__self`),va(r,`component`)):(t.helper(wt),t.components.add(r),va(r,`component`))}function cc(e,t){let n=t.bindingMetadata;if(!n||n.__isScriptSetup===!1)return;let r=Se(e),i=Te(r),a=t=>{if(n[e]===t)return e;if(n[r]===t)return r;if(n[i]===t)return i},o=a(`setup-const`)||a(`setup-reactive-const`)||a(`literal-const`);if(o)return t.inline?o:`$setup[${JSON.stringify(o)}]`;let s=a(`setup-let`)||a(`setup-ref`)||a(`setup-maybe-ref`);if(s)return t.inline?`${t.helperString(Kt)}(${s})`:`$setup[${JSON.stringify(s)}]`;let c=a(`props`);if(c)return`${t.helperString(Kt)}(${t.inline?`__props`:`$props`}[${JSON.stringify(c)}])`}function lc(e,t,n=e.props,r,i,a=!1){let{tag:o,loc:s,children:c}=e,l=[],u=[],d=[],f=c.length>0,p=!1,m=0,h=!1,g=!1,_=!1,v=!1,y=!1,b=!1,x=[],S=e=>{l.length&&(u.push(on(uc(l),s)),l=[]),e&&u.push(e)},C=()=>{t.scopes.vFor>0&&l.push(R(z(`ref_for`,!0),z(`true`)))},w=({key:e,value:n})=>{if(Hi(e)){let a=e.content,o=N(a);if(o&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!ve(a)&&(v=!0),o&&ve(a)&&(b=!0),o&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&fo(n,t)>0)return;a===`ref`?h=!0:a===`class`?g=!0:a===`style`?_=!0:a!==`key`&&!x.includes(a)&&x.push(a),r&&(a===`class`||a===`style`)&&!x.includes(a)&&x.push(a)}else y=!0};for(let i=0;i<n.length;i++){let c=n[i];if(c.type===6){let{loc:e,name:n,nameLoc:r,value:i}=c,a=!0;if(n===`ref`&&(h=!0,C(),i&&t.inline)){let e=t.bindingMetadata[i.content];(e===`setup-let`||e===`setup-ref`||e===`setup-maybe-ref`)&&(a=!1,l.push(R(z(`ref_key`,!0),z(i.content,!0,i.loc))))}if(n===`is`&&(mc(o)||i&&i.content.startsWith(`vue:`)))continue;l.push(R(z(n,!0,r),z(i?i.content:``,a,i?i.loc:e)))}else{let{name:n,arg:i,exp:h,loc:g,modifiers:_}=c,v=n===`bind`,b=n===`on`;if(n===`slot`){r||t.onError(U(40,g));continue}if(n===`once`||n===`memo`||n===`is`||v&&sa(i,`is`)&&mc(o)||b&&a)continue;if((v&&sa(i,`key`)||b&&f&&sa(i,`vue:before-update`))&&(p=!0),v&&sa(i,`ref`)&&C(),!i&&(v||b)){y=!0,h?v?(C(),S(),u.push(h)):S({type:14,loc:g,callee:t.helper(Rt),arguments:r?[h]:[h,`true`]}):t.onError(U(v?34:35,g));continue}v&&_.some(e=>e.content===`prop`)&&(m|=32);let x=t.directiveTransforms[n];if(x){let{props:n,needRuntime:r}=x(c,e,t);!a&&n.forEach(w),b&&i&&!Hi(i)?S(on(n,s)):l.push(...n),r&&(d.push(c),pe(r)&&ac.set(c,r))}else ye(n)||(d.push(c),f&&(p=!0))}}let T;if(u.length?(S(),T=u.length>1?B(t.helper(Nt),u,s):u[0]):l.length&&(T=on(uc(l),s)),y?m|=16:(g&&!r&&(m|=2),_&&!r&&(m|=4),x.length&&(m|=8),v&&(m|=32)),!p&&(m===0||m===32)&&(h||b||d.length>0)&&(m|=512),!t.inSSR&&T)switch(T.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<T.properties.length;t++){let i=T.properties[t].key;Hi(i)?i.content===`class`?e=t:i.content===`style`&&(n=t):i.isHandlerKey||(r=!0)}let i=T.properties[e],a=T.properties[n];r?T=B(t.helper(It),[T]):(i&&!Hi(i.value)&&(i.value=B(t.helper(Pt),[i.value])),a&&(_||a.value.type===4&&a.value.content.trim()[0]===`[`||a.value.type===17)&&(a.value=B(t.helper(Ft),[a.value])));break;case 14:break;default:T=B(t.helper(It),[B(t.helper(Lt),[T])]);break}return{props:T,directives:d,patchFlag:m,dynamicPropNames:x,shouldUseBlock:p}}function uc(e){let t=new Map,n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}let a=i.key.content,o=t.get(a);o?(a===`style`||a===`class`||N(a))&&dc(o,i):(t.set(a,i),n.push(i))}return n}function dc(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=an([e.value,t.value],e.loc)}function fc(e,t){let n=[],r=ac.get(e);if(r)n.push(t.helperString(r));else{let r=cc(`v-`+e.name,t);r?n.push(r):(t.helper(Et),t.directives.add(e.name),n.push(va(e.name,`directive`)))}let{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push(`void 0`),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push(`void 0`),n.push(`void 0`));let t=z(`true`,!1,i);n.push(on(e.modifiers.map(e=>R(e,t)),i))}return an(n,e.loc)}function pc(e){let t=`[`;for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=`, `);return t+`]`}function mc(e){return e===`component`||e===`Component`}var hc=(e,t)=>{if(pa(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:a}=gc(e,t),o=[t.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,`{}`,`undefined`,`true`],s=2;a&&(o[2]=a,s=3),n.length&&(o[3]=ln([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),o.splice(s),e.codegenNode=B(t.helper(At),o,r)}};function gc(e,t){let n=`"default"`,r,i=[];for(let r=0;r<e.props.length;r++){let a=e.props[r];a.type===6?a.value&&(a.name===`name`?n=JSON.stringify(a.value.content):(a.name=Se(a.name),i.push(a))):a.name===`bind`&&sa(a.arg,`name`)?a.exp?n=a.exp:a.arg&&a.arg.type===4&&(n=a.exp=z(Se(a.arg.content),!1,a.arg.loc),n=a.exp=Is(a.exp,t)):(a.name===`bind`&&a.arg&&Hi(a.arg)&&(a.arg.content=Se(a.arg.content)),i.push(a))}if(i.length>0){let{props:n,directives:a}=lc(e,t,i,!1,!1);r=n,a.length&&t.onError(U(36,a[0].loc))}return{slotName:n,slotProps:r}}var _c=(e,t,n,r)=>{let{loc:i,modifiers:a,arg:o}=e;!e.exp&&!a.length&&n.onError(U(35,i));let s;if(o.type===4)if(o.isStatic){let e=o.content;e.startsWith(`vnode`)&&n.onError(U(52,o.loc)),e.startsWith(`vue:`)&&(e=`vnode-${e.slice(4)}`),s=z(t.tagType!==0||e.startsWith(`vnode`)||!/[A-Z]/.test(e)?Ee(Se(e)):`on:${e}`,!0,o.loc)}else s=cn([`${n.helperString(Vt)}(`,o,`)`]);else s=o,s.children.unshift(`${n.helperString(Vt)}(`),s.children.push(`)`);let c=e.exp;c&&!c.content.trim()&&(c=void 0);let l=n.cacheHandlers&&!c&&!n.inVOnce;if(c){let r=Qi(c,n),i=!(r||na(c,n)),a=c.content.includes(`;`);n.prefixIdentifiers&&(i&&n.addIdentifiers(`$event`),c=e.exp=Is(c,n,!1,a),i&&n.removeIdentifiers(`$event`),l=n.cacheHandlers&&!n.inVOnce&&!(c.type===4&&c.constType>0)&&!(r&&t.tagType===1)&&!ya(c,n.identifiers),l&&r&&(c.type===4?c.content=`${c.content} && ${c.content}(...args)`:c.children=[...c.children,` && `,...c.children,`(...args)`])),(i||l&&r)&&(c=cn([`${i?n.isTS?`($event: any)`:`$event`:`${n.isTS?`
25
+ `:``} ? ${o}${e}.value${s} : ${o}${e}${s}`}else if(u)return e;else return m(e);else if(s===`props`)return Oe(e);else if(s===`props-aliased`)return Oe(o.__propsAliases[e])}else if(s&&s.startsWith(`setup`)||s===`literal-const`)return`$setup.${e}`;else if(s===`props-aliased`)return`$props['${o.__propsAliases[e]}']`;else if(s)return`$${s}.${e}`;return`_ctx.${e}`},c=e.content,l=e.ast;if(l===!1)return e;if(l===null||!l&&Gi(c)){let r=t.identifiers[c],i=Me(c),a=Ps(c);return!n&&!r&&!a&&(!i||o[c])?(zs(o[c])&&(e.constType=1),e.content=s(c)):r||(a?e.constType=3:e.constType=2),e}if(!l){let i=r?` ${c} `:`(${c})${n?`=>{}`:``}`;try{l=bi.parseExpression(i,{sourceType:`module`,plugins:t.expressionPlugins})}catch(n){return t.onError(U(46,e.loc,void 0,n.message)),e}}let u=[],d=[],f=Object.create(t.identifiers);wi(l,(e,t,n,r,i)=>{if(Ri(e,t))return;let a=r&&Ls(e);a&&!i?(Li(t)&&t.shorthand&&(e.prefix=`${e.name}: `),e.name=s(e.name,t,e),u.push(e)):(!(a&&i)&&(!t||t.type!==`CallExpression`&&t.type!==`NewExpression`&&t.type!==`MemberExpression`)&&(e.isConstant=!0),u.push(e))},!0,d,f);let p=[];u.sort((e,t)=>e.start-t.start),u.forEach((t,n)=>{let r=t.start-1,i=t.end-1,a=u[n-1],o=c.slice(a?a.end-1:0,r);(o.length||t.prefix)&&p.push(o+(t.prefix||``));let s=c.slice(r,i);p.push(z(t.name,!1,{start:ra(e.loc.start,s,r),end:ra(e.loc.start,s,i),source:s},t.isConstant?3:0)),n===u.length-1&&i<c.length&&p.push(c.slice(i))});let m;return p.length?(m=cn(p,e.loc),m.ast=l):(m=e,m.constType=3),m.identifiers=Object.keys(f),m}function Ls(e){return!(Me(e.name)||e.name===`require`)}function Rs(e){return F(e)?e:e.type===4?e.content:e.children.map(Rs).join(``)}function zs(e){return e===`setup-const`||e===`literal-const`}var Bs=So(/^(?:if|else|else-if)$/,(e,t,n)=>Vs(e,t,n,(e,t,r)=>{let i=n.parent.children,a=i.indexOf(e),o=0;for(;a-->=0;){let e=i[a];e&&e.type===9&&(o+=e.branches.length)}return()=>{if(r)e.codegenNode=Us(t,o,n);else{let r=Ks(e.codegenNode);r.alternate=Us(t,o+e.branches.length-1,n)}}}));function Vs(e,t,n,r){if(t.name!==`else`&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(U(28,t.loc)),t.exp=z(`true`,!1,r)}if(n.prefixIdentifiers&&t.exp&&(t.exp=Is(t.exp,n)),t.name===`if`){let i=Hs(e,t),a={type:9,loc:to(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{let i=n.parent.children,a=[],o=i.indexOf(e);for(;o-->=-1;){let s=i[o];if(s&&wa(s)){n.removeNode(s),s.type===3&&a.unshift(s);continue}if(s&&s.type===9){(t.name===`else-if`||t.name===`else`)&&s.branches[s.branches.length-1].condition===void 0&&n.onError(U(30,e.loc)),n.removeNode();let i=Hs(e,t);a.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag===`transition`||n.parent.tag===`Transition`))&&(i.children=[...a,...i.children]);{let e=i.userKey;e&&s.branches.forEach(({userKey:t})=>{Gs(t,e)&&n.onError(U(29,i.userKey.loc))})}s.branches.push(i);let o=r&&r(s,i,!1);xo(i,n),o&&o(),n.currentNode=null}else n.onError(U(30,e.loc));break}}}function Hs(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!W(e,`for`)?e.children:[e],userKey:oa(e,`key`),isTemplateIf:n}}function Us(e,t,n){return e.condition?un(e.condition,Ws(e,t,n),B(n.helper(xt),[`"v-if"`,`true`])):Ws(e,t,n)}function Ws(e,t,n){let{helper:r}=n,i=R(`key`,z(`${t}`,!1,L,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){let e=o.codegenNode;return ga(e,i,n),e}else{let t=64;return!e.isTemplateIf&&a.filter(e=>e.type!==3).length===1&&(t|=2048),rn(n,r(dt),on([i]),a,t,void 0,void 0,!0,!1,!1,e.loc)}else{let e=o.codegenNode,t=ba(e);return t.type===13&&bn(t,n),ga(t,i,n),e}}function Gs(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{let n=e.exp,r=t.exp;if(n.type!==r.type||n.type!==4||n.isStatic!==r.isStatic||n.content!==r.content)return!1}return!0}function Ks(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}var qs=So(`for`,(e,t,n)=>{let{helper:r,removeHelper:i}=n;return Js(e,t,n,t=>{let a=B(r(kt),[t.source]),o=fa(e),s=W(e,`memo`),c=oa(e,`key`,!1,!0),l=c&&c.type===7,u=c&&(c.type===6?c.value?z(c.value.content,!0):void 0:c.exp),d=u?R(`key`,u):null;o&&s&&(s.exp=Is(s.exp,n)),(o||s)&&d&&l&&(u=c.exp=d.value=Is(d.value,n));let f=t.source.type===4&&t.source.constType>0,p=f?64:c?128:256;return t.codegenNode=rn(n,r(dt),void 0,a,p,void 0,void 0,!0,!f,!1,e.loc),()=>{let c,{children:l}=t;o&&e.children.some(e=>{if(e.type===1){let t=oa(e,`key`);if(t)return n.onError(U(33,t.loc)),!0}});let p=l.length!==1||l[0].type!==1,m=pa(e)?e:o&&e.children.length===1&&pa(e.children[0])?e.children[0]:null;if(m?(c=m.codegenNode,o&&d&&ga(c,d,n)):p?c=rn(n,r(dt),d?on([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=l[0].codegenNode,o&&d&&ga(c,d,n),c.isBlock!==!f&&(c.isBlock?(i(gt),i(yn(n.inSSR,c.isComponent))):i(vn(n.inSSR,c.isComponent))),c.isBlock=!f,c.isBlock?(r(gt),r(yn(n.inSSR,c.isComponent))):r(vn(n.inSSR,c.isComponent))),s){let e=ln(Xs(t.parseResult,[z(`_cached`)]));e.body=fn([cn([`const _memo = (`,s.exp,`)`]),cn([`if (_cached && _cached.el`,...u?[` && _cached.key === `,u]:[],` && ${n.helperString(Yt)}(_cached, _memo)) return _cached`]),cn([`const _item = `,c]),z(`_item.memo = _memo`),z(`return _item`)]),a.arguments.push(e,z(`_cache`),z(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(ln(Xs(t.parseResult),c,!0))}})});function Js(e,t,n,r){if(!t.exp){n.onError(U(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(U(32,t.loc));return}Ys(i,n);let{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:c,value:l,key:u,index:d}=i,f={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:i,children:fa(e)?e.children:[e]};n.replaceNode(f),s.vFor++,n.prefixIdentifiers&&(l&&a(l),u&&a(u),d&&a(d));let p=r&&r(f);return()=>{s.vFor--,n.prefixIdentifiers&&(l&&o(l),u&&o(u),d&&o(d)),p&&p()}}function Ys(e,t){e.finalized||=(t.prefixIdentifiers&&(e.source=Is(e.source,t),e.key&&=Is(e.key,t,!0),e.index&&=Is(e.index,t,!0),e.value&&=Is(e.value,t,!0)),!0)}function Xs({value:e,key:t,index:n},r=[]){return Zs([e,t,n,...r])}function Zs(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||z(`_`.repeat(t+1),!1))}var Qs=z(`undefined`,!1),$s=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){let n=W(e,`slot`);if(n){let e=n.exp;return t.prefixIdentifiers&&e&&t.addIdentifiers(e),t.scopes.vSlot++,()=>{t.prefixIdentifiers&&e&&t.removeIdentifiers(e),t.scopes.vSlot--}}}},ec=(e,t)=>{let n;if(fa(e)&&e.props.some(da)&&(n=W(e,`for`))){let e=n.forParseResult;if(e){Ys(e,t);let{value:n,key:r,index:i}=e,{addIdentifiers:a,removeIdentifiers:o}=t;return n&&a(n),r&&a(r),i&&a(i),()=>{n&&o(n),r&&o(r),i&&o(i)}}}},tc=(e,t,n,r)=>ln(e,n,!1,!0,n.length?n[0].loc:r);function nc(e,t,n=tc){t.helper(Gt);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0;!t.ssr&&t.prefixIdentifiers&&(s=e.props.some(e=>da(e)&&(ya(e.arg,t.identifiers)||ya(e.exp,t.identifiers)))||r.some(e=>ya(e,t.identifiers)));let c=W(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!Hi(e)&&(s=!0),a.push(R(e||z(`default`,!0),n(t,void 0,r,i)))}let l=!1,u=!1,d=[],f=new Set,p=0;for(let e=0;e<r.length;e++){let i=r[e],m;if(!fa(i)||!(m=W(i,`slot`,!0))){i.type!==3&&d.push(i);continue}if(c){t.onError(U(37,m.loc));break}l=!0;let{children:h,loc:g}=i,{arg:_=z(`default`,!0),exp:v,loc:y}=m,b;Hi(_)?b=_?_.content:`default`:s=!0;let x=W(i,`for`),S=n(v,x,h,g),C,w;if(C=W(i,`if`))s=!0,o.push(un(C.exp,rc(_,S,p++),Qs));else if(w=W(i,/^else(?:-if)?$/,!0)){let n=e,i;for(;n--&&(i=r[n],wa(i)););if(i&&fa(i)&&W(i,/^(?:else-)?if$/)){let e=o[o.length-1];for(;e.alternate.type===19;)e=e.alternate;e.alternate=w.exp?un(w.exp,rc(_,S,p++),Qs):rc(_,S,p++)}else t.onError(U(30,w.loc))}else if(x){s=!0;let e=x.forParseResult;e?(Ys(e,t),o.push(B(t.helper(kt),[e.source,ln(Xs(e),rc(_,S),!0)]))):t.onError(U(32,x.loc))}else{if(b){if(f.has(b)){t.onError(U(38,y));continue}f.add(b),b===`default`&&(u=!0)}a.push(R(_,S))}}if(!c){let e=(e,t)=>R(`default`,n(e,void 0,t,i));l?d.length&&!d.every(Ca)&&(u?t.onError(U(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:ic(e.children)?3:1,h=on(a.concat(R(`_`,z(m+` /* ${je[m]} */`,!1))),i);return o.length&&(h=B(t.helper(jt),[h,an(o)])),{slots:h,hasDynamicSlots:s}}function rc(e,t,n){let r=[R(`name`,e),R(`fn`,t)];return n!=null&&r.push(R(`key`,z(String(n),!0))),on(r)}function ic(e){for(let t=0;t<e.length;t++){let n=e[t];switch(n.type){case 1:if(n.tagType===2||ic(n.children))return!0;break;case 9:if(ic(n.branches))return!0;break;case 10:case 11:if(ic(n.children))return!0;break}}return!1}var ac=new WeakMap,oc=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;let{tag:n,props:r}=e,i=e.tagType===1,a=i?sc(e,t):`"${n}"`,o=me(a)&&a.callee===Tt,s,c,l=0,u,d,f,p=o||a===ft||a===pt||!i&&(n===`svg`||n===`foreignObject`||n===`math`);if(r.length>0){let n=lc(e,t,void 0,i,o);s=n.props,l=n.patchFlag,d=n.dynamicPropNames;let r=n.directives;f=r&&r.length?an(r.map(e=>fc(e,t))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0)if(a===mt&&(p=!0,l|=1024,e.children.length>1&&t.onError(U(47,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:``}))),i&&a!==ft&&a!==mt){let{slots:n,hasDynamicSlots:r}=nc(e,t);c=n,r&&(l|=1024)}else if(e.children.length===1&&a!==ft){let n=e.children[0],r=n.type,i=r===5||r===8;i&&fo(n,t)===0&&(l|=1),c=i||r===2?n:e.children}else c=e.children;d&&d.length&&(u=pc(d)),e.codegenNode=rn(t,a,s,c,l===0?void 0:l,u,f,!!p,!1,i,e.loc)};function sc(e,t,n=!1){let{tag:r}=e,i=mc(r),a=oa(e,`is`,!1,!0);if(a)if(i){let e;if(a.type===6?e=a.value&&z(a.value.content,!0):(e=a.exp,e||=(e=z(`is`,!1,a.arg.loc),a.exp=Is(e,t))),e)return B(t.helper(Tt),[e])}else a.type===6&&a.value.content.startsWith(`vue:`)&&(r=a.value.content.slice(4));let o=Ui(r)||t.isBuiltInComponent(r);if(o)return n||t.helper(o),o;{let e=cc(r,t);if(e)return e;let n=r.indexOf(`.`);if(n>0){let e=cc(r.slice(0,n),t);if(e)return e+r.slice(n)}}return t.selfName&&Te(Se(r))===t.selfName?(t.helper(wt),t.components.add(r+`__self`),va(r,`component`)):(t.helper(wt),t.components.add(r),va(r,`component`))}function cc(e,t){let n=t.bindingMetadata;if(!n||n.__isScriptSetup===!1)return;let r=Se(e),i=Te(r),a=t=>{if(n[e]===t)return e;if(n[r]===t)return r;if(n[i]===t)return i},o=a(`setup-const`)||a(`setup-reactive-const`)||a(`literal-const`);if(o)return t.inline?o:`$setup[${JSON.stringify(o)}]`;let s=a(`setup-let`)||a(`setup-ref`)||a(`setup-maybe-ref`);if(s)return t.inline?`${t.helperString(Kt)}(${s})`:`$setup[${JSON.stringify(s)}]`;let c=a(`props`);if(c)return`${t.helperString(Kt)}(${t.inline?`__props`:`$props`}[${JSON.stringify(c)}])`}function lc(e,t,n=e.props,r,i,a=!1){let{tag:o,loc:s,children:c}=e,l=[],u=[],d=[],f=c.length>0,p=!1,m=0,h=!1,g=!1,_=!1,v=!1,y=!1,b=!1,x=[],S=e=>{l.length&&(u.push(on(uc(l),s)),l=[]),e&&u.push(e)},C=()=>{t.scopes.vFor>0&&l.push(R(z(`ref_for`,!0),z(`true`)))},w=({key:e,value:n})=>{if(Hi(e)){let a=e.content,o=N(a);if(o&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!ve(a)&&(v=!0),o&&ve(a)&&(b=!0),o&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&fo(n,t)>0)return;a===`ref`?h=!0:a===`class`?g=!0:a===`style`?_=!0:a!==`key`&&!x.includes(a)&&x.push(a),r&&(a===`class`||a===`style`)&&!x.includes(a)&&x.push(a)}else y=!0};for(let i=0;i<n.length;i++){let c=n[i];if(c.type===6){let{loc:e,name:n,nameLoc:r,value:i}=c,a=!0;if(n===`ref`&&(h=!0,C(),i&&t.inline)){let e=t.bindingMetadata[i.content];(e===`setup-let`||e===`setup-ref`||e===`setup-maybe-ref`)&&(a=!1,l.push(R(z(`ref_key`,!0),z(i.content,!0,i.loc))))}if(n===`is`&&(mc(o)||i&&i.content.startsWith(`vue:`)))continue;l.push(R(z(n,!0,r),z(i?i.content:``,a,i?i.loc:e)))}else{let{name:n,arg:i,exp:h,loc:g,modifiers:_}=c,v=n===`bind`,b=n===`on`;if(n===`slot`){r||t.onError(U(40,g));continue}if(n===`once`||n===`memo`||n===`is`||v&&sa(i,`is`)&&mc(o)||b&&a)continue;if((v&&sa(i,`key`)||b&&f&&sa(i,`vue:before-update`))&&(p=!0),v&&sa(i,`ref`)&&C(),!i&&(v||b)){y=!0,h?v?(C(),S(),u.push(h)):S({type:14,loc:g,callee:t.helper(Rt),arguments:r?[h]:[h,`true`]}):t.onError(U(v?34:35,g));continue}v&&_.some(e=>e.content===`prop`)&&(m|=32);let x=t.directiveTransforms[n];if(x){let{props:n,needRuntime:r}=x(c,e,t);!a&&n.forEach(w),b&&i&&!Hi(i)?S(on(n,s)):l.push(...n),r&&(d.push(c),pe(r)&&ac.set(c,r))}else ye(n)||(d.push(c),f&&(p=!0))}}let T;if(u.length?(S(),T=u.length>1?B(t.helper(Nt),u,s):u[0]):l.length&&(T=on(uc(l),s)),y?m|=16:(g&&!r&&(m|=2),_&&!r&&(m|=4),x.length&&(m|=8),v&&(m|=32)),!p&&(m===0||m===32)&&(h||b||d.length>0)&&(m|=512),!t.inSSR&&T)switch(T.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<T.properties.length;t++){let i=T.properties[t].key;Hi(i)?i.content===`class`?e=t:i.content===`style`&&(n=t):i.isHandlerKey||(r=!0)}let i=T.properties[e],a=T.properties[n];r?T=B(t.helper(It),[T]):(i&&!Hi(i.value)&&(i.value=B(t.helper(Pt),[i.value])),a&&(_||a.value.type===4&&a.value.content.trim()[0]===`[`||a.value.type===17)&&(a.value=B(t.helper(Ft),[a.value])));break;case 14:break;default:T=B(t.helper(It),[B(t.helper(Lt),[T])]);break}return{props:T,directives:d,patchFlag:m,dynamicPropNames:x,shouldUseBlock:p}}function uc(e){let t=new Map,n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}let a=i.key.content,o=t.get(a);o?(a===`style`||a===`class`||N(a))&&dc(o,i):(t.set(a,i),n.push(i))}return n}function dc(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=an([e.value,t.value],e.loc)}function fc(e,t){let n=[],r=ac.get(e);if(r)n.push(t.helperString(r));else{let r=cc(`v-`+e.name,t);r?n.push(r):(t.helper(Et),t.directives.add(e.name),n.push(va(e.name,`directive`)))}let{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push(`void 0`),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push(`void 0`),n.push(`void 0`));let t=z(`true`,!1,i);n.push(on(e.modifiers.map(e=>R(e,t)),i))}return an(n,e.loc)}function pc(e){let t=`[`;for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=`, `);return t+`]`}function mc(e){return e===`component`||e===`Component`}var hc=(e,t)=>{if(pa(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:a}=gc(e,t),o=[t.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,`{}`,`undefined`,`true`],s=2;a&&(o[2]=a,s=3),n.length&&(o[3]=ln([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),o.splice(s),e.codegenNode=B(t.helper(At),o,r)}};function gc(e,t){let n=`"default"`,r,i=[];for(let r=0;r<e.props.length;r++){let a=e.props[r];a.type===6?a.value&&(a.name===`name`?n=JSON.stringify(a.value.content):(a.name=Se(a.name),i.push(a))):a.name===`bind`&&sa(a.arg,`name`)?a.exp?n=a.exp:a.arg&&a.arg.type===4&&(n=a.exp=z(Se(a.arg.content),!1,a.arg.loc),n=a.exp=Is(a.exp,t)):(a.name===`bind`&&a.arg&&Hi(a.arg)&&(a.arg.content=Se(a.arg.content)),i.push(a))}if(i.length>0){let{props:n,directives:a}=lc(e,t,i,!1,!1);r=n,a.length&&t.onError(U(36,a[0].loc))}return{slotName:n,slotProps:r}}var _c=(e,t,n,r)=>{let{loc:i,modifiers:a,arg:o}=e;!e.exp&&!a.length&&n.onError(U(35,i));let s;if(o.type===4)if(o.isStatic){let e=o.content;e.startsWith(`vnode`)&&n.onError(U(52,o.loc)),e.startsWith(`vue:`)&&(e=`vnode-${e.slice(4)}`),s=z(t.tagType!==0||e.startsWith(`vnode`)||!/[A-Z]/.test(e)?Ee(Se(e)):`on:${e}`,!0,o.loc)}else s=cn([`${n.helperString(Vt)}(`,o,`)`]);else s=o,s.children.unshift(`${n.helperString(Vt)}(`),s.children.push(`)`);let c=e.exp;c&&!c.content.trim()&&(c=void 0);let l=n.cacheHandlers&&!c&&!n.inVOnce;if(c){let r=Qi(c,n),i=!(r||na(c,n)),a=c.content.includes(`;`);n.prefixIdentifiers&&(i&&n.addIdentifiers(`$event`),c=e.exp=Is(c,n,!1,a),i&&n.removeIdentifiers(`$event`),l=n.cacheHandlers&&!n.inVOnce&&!(c.type===4&&c.constType>0)&&!(r&&t.tagType===1)&&!ya(c,n.identifiers),l&&r&&(c.type===4?c.content=`${c.content} && ${c.content}(...args)`:c.children=[...c.children,` && `,...c.children,`(...args)`])),(i||l&&r)&&(c=cn([`${i?n.isTS?`($event: any)`:`$event`:`${n.isTS?`
26
26
  //@ts-ignore
27
27
  `:``}(...args)`} => ${a?`{`:`(`}`,c,a?`}`:`)`]))}let u={props:[R(s,c||z(`() => {}`,!1,i))]};return r&&(u=r(u)),l&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},vc=(e,t,n)=>{let{modifiers:r,loc:i}=e,a=e.arg,{exp:o}=e;return o&&o.type===4&&!o.content.trim()?(n.onError(U(34,i)),{props:[R(a,z(``,!0,i))]}):(a.type===4?a.isStatic||(a.content=a.content?`${a.content} || ""`:`""`):(a.children.unshift(`(`),a.children.push(`) || ""`)),r.some(e=>e.content===`camel`)&&(a.type===4?a.isStatic?a.content=Se(a.content):a.content=`${n.helperString(zt)}(${a.content})`:(a.children.unshift(`${n.helperString(zt)}(`),a.children.push(`)`))),n.inSSR||(r.some(e=>e.content===`prop`)&&yc(a,`.`),r.some(e=>e.content===`attr`)&&yc(a,`^`)),{props:[R(a,o)]})},yc=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(`)`))},bc=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{let n=e.children,r,i=!1;for(let e=0;e<n.length;e++){let t=n[e];if(la(t)){i=!0;for(let i=e+1;i<n.length;i++){let a=n[i];if(la(a))r||=n[e]=cn([t],t.loc),r.children.push(` + `,a),n.splice(i,1),i--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(e=>e.type===7&&!t.directiveTransforms[e.name]))))for(let e=0;e<n.length;e++){let r=n[e];if(la(r)||r.type===8){let i=[];(r.type!==2||r.content!==` `)&&i.push(r),!t.ssr&&fo(r,t)===0&&i.push(`1 /* ${Ae[1]} */`),n[e]={type:12,content:r,loc:r.loc,codegenNode:B(t.helper(St),i)}}}}},xc=new WeakSet,Sc=(e,t)=>{if(e.type===1&&W(e,`once`,!0))return xc.has(e)||t.inVOnce||t.inSSR?void 0:(xc.add(e),t.inVOnce=!0,t.helper(Ht),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&=t.cache(e.codegenNode,!0,!0)})},Cc=(e,t,n)=>{let{exp:r,arg:i}=e;if(!r)return n.onError(U(41,e.loc)),wc();let a=r.loc.source.trim(),o=r.type===4?r.content:a,s=n.bindingMetadata[a];if(s===`props`||s===`props-aliased`)return n.onError(U(44,r.loc)),wc();if(s===`literal-const`||s===`setup-const`)return n.onError(U(45,r.loc)),wc();let c=n.inline&&(s===`setup-let`||s===`setup-ref`||s===`setup-maybe-ref`);if(!o.trim()||!Qi(r,n)&&!c)return n.onError(U(42,r.loc)),wc();if(n.prefixIdentifiers&&Gi(o)&&n.identifiers[o])return n.onError(U(43,r.loc)),wc();let l=i||z(`modelValue`,!0),u=i?Hi(i)?`onUpdate:${Se(i.content)}`:cn([`"onUpdate:" + `,i]):`onUpdate:modelValue`,d,f=n.isTS?`($event: any)`:`$event`;if(c)if(s===`setup-ref`)d=cn([`${f} => ((`,z(a,!1,r.loc),`).value = $event)`]);else{let e=s===`setup-let`?`${a} = $event`:`null`;d=cn([`${f} => (${n.helperString(qt)}(${a}) ? (`,z(a,!1,r.loc),`).value = $event : ${e})`])}else d=cn([`${f} => ((`,r,`) = $event)`]);let p=[R(l,e.exp),R(u,d)];if(n.prefixIdentifiers&&!n.inVOnce&&n.cacheHandlers&&!ya(r,n.identifiers)&&(p[1].value=n.cache(p[1].value)),e.modifiers.length&&t.tagType===1){let t=e.modifiers.map(e=>e.content).map(e=>(Gi(e)?e:JSON.stringify(e))+`: true`).join(`, `),n=i?Hi(i)?`${i.content}Modifiers`:cn([i,` + "Modifiers"`]):`modelModifiers`;p.push(R(n,z(`{ ${t} }`,!1,e.loc,2)))}return wc(p)};function wc(e=[]){return{props:e}}var Tc=new WeakSet,Ec=(e,t)=>{if(e.type===1){let n=W(e,`memo`);return!n||Tc.has(e)||t.inSSR?void 0:(Tc.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&bn(r,t),e.codegenNode=B(t.helper(Jt),[n.exp,ln(void 0,r),`_cache`,String(t.cached.length)]),t.cached.push(null))})}},Dc=(e,t)=>{if(e.type===1){for(let n of e.props)if(n.type===7&&n.name===`bind`&&!n.exp&&n.arg){let e=n.arg;if(e.type!==4||!e.isStatic)t.onError(U(53,e.loc)),n.exp=z(``,!0,e.loc);else{let t=Se(e.content);(Ki.test(t[0])||t[0]===`-`)&&(n.exp=z(t,!1,e.loc))}}}};function Oc(e){return[[Dc,Sc,Bs,Ec,qs,...e?[ec,Fs]:[],hc,oc,$s,bc],{on:_c,bind:vc,model:Cc}]}function kc(e,t={}){let n=t.onError||di,r=t.mode===`module`,i=t.prefixIdentifiers===!0||r;!i&&t.cacheHandlers&&n(U(50)),t.scopeId&&!r&&n(U(51));let a=se({},t,{prefixIdentifiers:i}),o=F(e)?so(e,a):e,[s,c]=Oc(i);if(t.isTS){let{expressionPlugins:e}=t;(!e||!e.includes(`typescript`))&&(t.expressionPlugins=[...e||[],`typescript`])}return vo(o,se({},a,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:se({},c,t.directiveTransforms||{})})),os(o,a)}var Ac={DATA:`data`,PROPS:`props`,PROPS_ALIASED:`props-aliased`,SETUP_LET:`setup-let`,SETUP_CONST:`setup-const`,SETUP_REACTIVE_CONST:`setup-reactive-const`,SETUP_MAYBE_REF:`setup-maybe-ref`,SETUP_REF:`setup-ref`,OPTIONS:`options`,LITERAL_CONST:`literal-const`},jc=()=>({props:[]}),Mc=Symbol(`vModelRadio`),Nc=Symbol(`vModelCheckbox`),Pc=Symbol(`vModelText`),Fc=Symbol(`vModelSelect`),Ic=Symbol(`vModelDynamic`),Lc=Symbol(`vOnModifiersGuard`),Rc=Symbol(`vOnKeysGuard`),zc=Symbol(`vShow`),Bc=Symbol(`Transition`),Vc=Symbol(`TransitionGroup`);Zt({[Mc]:`vModelRadio`,[Nc]:`vModelCheckbox`,[Pc]:`vModelText`,[Fc]:`vModelSelect`,[Ic]:`vModelDynamic`,[Lc]:`withModifiers`,[Rc]:`withKeys`,[zc]:`vShow`,[Bc]:`Transition`,[Vc]:`TransitionGroup`});var Hc={parseMode:`html`,isVoidTag:Ye,isNativeTag:e=>Ke(e)||qe(e)||Je(e),isPreTag:e=>e===`pre`,isIgnoreNewlineTag:e=>e===`pre`||e===`textarea`,decodeEntities:void 0,isBuiltInComponent:e=>{if(e===`Transition`||e===`transition`)return Bc;if(e===`TransitionGroup`||e===`transition-group`)return Vc},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag===`annotation-xml`){if(e===`svg`)return 1;t.props.some(e=>e.type===6&&e.name===`encoding`&&e.value!=null&&(e.value.content===`text/html`||e.value.content===`application/xhtml+xml`))&&(r=0)}else /^m(?:[ions]|text)$/.test(t.tag)&&e!==`mglyph`&&e!==`malignmark`&&(r=0);else t&&r===1&&(t.tag===`foreignObject`||t.tag===`desc`||t.tag===`title`)&&(r=0);if(r===0){if(e===`svg`)return 1;if(e===`math`)return 2}return r}},Uc=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name===`style`&&t.value&&(e.props[n]={type:7,name:`bind`,arg:z(`style`,!0,t.loc),exp:Wc(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Wc=(e,t)=>{let n=ze(e);return z(JSON.stringify(n),!1,t,3)};function Gc(e,t){return U(e,t,qc)}var Kc={X_V_HTML_NO_EXPRESSION:54,54:`X_V_HTML_NO_EXPRESSION`,X_V_HTML_WITH_CHILDREN:55,55:`X_V_HTML_WITH_CHILDREN`,X_V_TEXT_NO_EXPRESSION:56,56:`X_V_TEXT_NO_EXPRESSION`,X_V_TEXT_WITH_CHILDREN:57,57:`X_V_TEXT_WITH_CHILDREN`,X_V_MODEL_ON_INVALID_ELEMENT:58,58:`X_V_MODEL_ON_INVALID_ELEMENT`,X_V_MODEL_ARG_ON_ELEMENT:59,59:`X_V_MODEL_ARG_ON_ELEMENT`,X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,60:`X_V_MODEL_ON_FILE_INPUT_ELEMENT`,X_V_MODEL_UNNECESSARY_VALUE:61,61:`X_V_MODEL_UNNECESSARY_VALUE`,X_V_SHOW_NO_EXPRESSION:62,62:`X_V_SHOW_NO_EXPRESSION`,X_TRANSITION_INVALID_CHILDREN:63,63:`X_TRANSITION_INVALID_CHILDREN`,X_IGNORED_SIDE_EFFECT_TAG:64,64:`X_IGNORED_SIDE_EFFECT_TAG`,__EXTEND_POINT__:65,65:`__EXTEND_POINT__`},qc={54:`v-html is missing expression.`,55:`v-html will override element children.`,56:`v-text is missing expression.`,57:`v-text will override element children.`,58:`v-model can only be used on <input>, <textarea> and <select> elements.`,59:`v-model argument is not supported on plain elements.`,60:`v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,61:`Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,62:`v-show is missing expression.`,63:`<Transition> expects exactly one child element or component.`,64:`Tags with side effect (<script> and <style>) are ignored in client component templates.`},Jc=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Gc(54,i)),t.children.length&&(n.onError(Gc(55,i)),t.children.length=0),{props:[R(z(`innerHTML`,!0,i),r||z(``,!0))]}},Yc=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Gc(56,i)),t.children.length&&(n.onError(Gc(57,i)),t.children.length=0),{props:[R(z(`textContent`,!0),r?fo(r,n)>0?r:B(n.helperString(Mt),[r],i):z(``,!0))]}},Xc=(e,t,n)=>{let r=Cc(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Gc(59,e.arg.loc));function i(){let e=W(t,`bind`);e&&sa(e.arg,`value`)&&n.onError(Gc(61,e.loc))}let{tag:a}=t,o=n.isCustomElement(a);if(a===`input`||a===`textarea`||a===`select`||o){let s=Pc,c=!1;if(a===`input`||o){let r=oa(t,`type`);if(r){if(r.type===7)s=Ic;else if(r.value)switch(r.value.content){case`radio`:s=Mc;break;case`checkbox`:s=Nc;break;case`file`:c=!0,n.onError(Gc(60,e.loc));break;default:i();break}}else ca(t)?s=Ic:i()}else a===`select`?s=Fc:i();c||(r.needRuntime=n.helper(s))}else n.onError(Gc(58,e.loc));return r.props=r.props.filter(e=>!(e.key.type===4&&e.key.content===`modelValue`)),r},Zc=A(`passive,once,capture`),Qc=A(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`),$c=A(`left,right`),el=A(`onkeyup,onkeydown,onkeypress`),tl=(e,t,n,r)=>{let i=[],a=[],o=[];for(let n=0;n<t.length;n++){let r=t[n].content;Zc(r)?o.push(r):$c(r)?Hi(e)?el(e.content.toLowerCase())?i.push(r):a.push(r):(i.push(r),a.push(r)):Qc(r)?a.push(r):i.push(r)}return{keyModifiers:i,nonKeyModifiers:a,eventOptionModifiers:o}},nl=(e,t)=>Hi(e)&&e.content.toLowerCase()===`onclick`?z(t,!0):e.type===4?e:cn([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]),rl=(e,t,n)=>_c(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:a}=t.props[0],{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:c}=tl(i,r,n,e.loc);if(s.includes(`right`)&&(i=nl(i,`onContextmenu`)),s.includes(`middle`)&&(i=nl(i,`onMouseup`)),s.length&&(a=B(n.helper(Lc),[a,JSON.stringify(s)])),o.length&&(!Hi(i)||el(i.content.toLowerCase()))&&(a=B(n.helper(Rc),[a,JSON.stringify(o)])),c.length){let e=c.map(Te).join(``);i=Hi(i)?z(`${i.content}${e}`,!0):cn([`(`,i,`) + "${e}"`])}return{props:[R(i,a)]}}),il=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Gc(62,i)),{props:[],needRuntime:n.helper(zc)}},al=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===Bc)return()=>{if(!e.children.length)return;ol(e)&&t.onError(Gc(63,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:``}));let n=e.children[0];if(n.type===1)for(let t of n.props)t.type===7&&t.name===`show`&&e.props.push({type:6,name:`persisted`,nameLoc:e.loc,value:void 0,loc:e.loc})}};function ol(e){let t=e.children=e.children.filter(e=>!wa(e)),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(ol)}var sl=/__VUE_EXP_START__(.*?)__VUE_EXP_END__/g,cl=(e,t,n)=>{if(t.scopes.vSlot>0)return;let r=n.type===1&&n.codegenNode&&n.codegenNode.type===13&&n.codegenNode.children&&!P(n.codegenNode.children)&&n.codegenNode.children.type===20,i=0,a=0,o=[],s=n=>{if(i>=20||a>=5){let i=B(t.helper(Ct),[JSON.stringify(o.map(e=>ml(e,t)).join(``)).replace(sl,`" + $1 + "`),String(o.length)]),a=o.length-1;if(r)e.splice(n-o.length,o.length,i);else if(o[0].codegenNode.value=i,o.length>1){e.splice(n-o.length+1,a);let r=t.cached.indexOf(o[o.length-1].codegenNode);if(r>-1){for(let e=r;e<t.cached.length;e++){let n=t.cached[e];n&&(n.index-=a)}t.cached.splice(r-a+1,a)}}return a}return 0},c=0;for(;c<e.length;c++){let t=e[c];if(r||ll(t)){let e=pl(t);if(e){i+=e[0],a+=e[1],o.push(t);continue}}c-=s(c),i=0,a=0,o.length=0}s(c)},ll=e=>{if((e.type===1&&e.tagType===0||e.type===12)&&e.codegenNode&&e.codegenNode.type===20)return e.codegenNode},ul=/^(?:data|aria)-/,dl=(e,t)=>(t===0?et(e):t===1?tt(e):t===2?nt(e):!1)||ul.test(e),fl=A(`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`);function pl(e){if(e.type===1&&fl(e.tag)||e.type===1&&W(e,`once`,!0))return!1;if(e.type===12)return[1,0];let t=1,n=+(e.props.length>0),r=!1,i=()=>(r=!0,!1);function a(e){let o=e.tag===`option`&&e.ns===0;for(let t=0;t<e.props.length;t++){let n=e.props[t];if(n.type===6&&!dl(n.name,e.ns)||n.type===7&&n.name===`bind`&&(n.arg&&(n.arg.type===8||n.arg.isStatic&&!dl(n.arg.content,e.ns))||n.exp&&(n.exp.type===8||n.exp.constType<3)||o&&sa(n.arg,`value`)&&n.exp&&!n.exp.isStatic))return i()}for(let i=0;i<e.children.length;i++){t++;let o=e.children[i];if(o.type===1&&(o.props.length>0&&n++,a(o),r))return!1}return!0}return a(e)?[t,n]:!1}function ml(e,t){if(F(e))return e;if(pe(e))return``;switch(e.type){case 1:return hl(e,t);case 2:return it(e.content);case 3:return`<!--${it(e.content)}-->`;case 5:return it(ct(gl(e.content)));case 8:return it(gl(e));case 12:return ml(e.content,t);default:return``}}function hl(e,t){let n=`<${e.tag}`,r=``;for(let t=0;t<e.props.length;t++){let i=e.props[t];if(i.type===6)n+=` ${i.name}`,i.value&&(n+=`="${it(i.value.content)}"`);else if(i.type===7)if(i.name===`bind`){let e=i.exp;if(e.content[0]===`_`){n+=` ${i.arg.content}="__VUE_EXP_START__${e.content}__VUE_EXP_END__"`;continue}if(I(i.arg.content)&&e.content===`false`)continue;let t=gl(e);if(t!=null){let e=i.arg&&i.arg.content;e===`class`?t=Ve(t):e===`style`&&(t=Be(Fe(t))),n+=` ${i.arg.content}="${it(t)}"`}}else i.name===`html`?r=gl(i.exp):i.name===`text`&&(r=it(ct(gl(i.exp))))}if(t.scopeId&&(n+=` ${t.scopeId}`),n+=`>`,r)n+=r;else for(let r=0;r<e.children.length;r++)n+=ml(e.children[r],t);return Ye(e.tag)||(n+=`</${e.tag}>`),n}function gl(e){if(e.type===4)return Function(`return (${e.content})`)();{let t=``;return e.children.forEach(e=>{F(e)||pe(e)||(e.type===2?t+=e.content:e.type===5?t+=ct(gl(e.content)):t+=gl(e))}),t}}var _l=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag===`script`||e.tag===`style`)&&(t.onError(Gc(64,e.loc)),t.removeNode())};function vl(e,t){return e===`template`?!0:e in xl?xl[e].has(t):t in Sl?Sl[t].has(e):!(e in Cl&&Cl[e].has(t)||t in wl&&wl[t].has(e))}var yl=new Set([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`]),bl=new Set([]),xl={head:new Set([`base`,`basefront`,`bgsound`,`link`,`meta`,`title`,`noscript`,`noframes`,`style`,`script`,`template`]),optgroup:new Set([`option`]),select:new Set([`optgroup`,`option`,`hr`]),table:new Set([`caption`,`colgroup`,`tbody`,`tfoot`,`thead`]),tr:new Set([`td`,`th`]),colgroup:new Set([`col`]),tbody:new Set([`tr`]),thead:new Set([`tr`]),tfoot:new Set([`tr`]),script:bl,iframe:bl,option:bl,textarea:bl,style:bl,title:bl},Sl={html:bl,body:new Set([`html`]),head:new Set([`html`]),td:new Set([`tr`]),colgroup:new Set([`table`]),caption:new Set([`table`]),tbody:new Set([`table`]),tfoot:new Set([`table`]),col:new Set([`colgroup`]),th:new Set([`tr`]),thead:new Set([`table`]),tr:new Set([`tbody`,`thead`,`tfoot`]),dd:new Set([`dl`,`div`]),dt:new Set([`dl`,`div`]),figcaption:new Set([`figure`]),summary:new Set([`details`]),area:new Set([`map`])},Cl={p:new Set(`address.article.aside.blockquote.center.details.dialog.dir.div.dl.fieldset.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.li.main.nav.menu.ol.p.pre.section.table.ul`.split(`.`)),svg:new Set(`b.blockquote.br.code.dd.div.dl.dt.em.embed.h1.h2.h3.h4.h5.h6.hr.i.img.li.menu.meta.ol.p.pre.ruby.s.small.span.strong.sub.sup.table.u.ul.var`.split(`.`))},wl={a:new Set([`a`]),button:new Set([`button`]),dd:new Set([`dd`,`dt`]),dt:new Set([`dd`,`dt`]),form:new Set([`form`]),li:new Set([`li`]),h1:yl,h2:yl,h3:yl,h4:yl,h5:yl,h6:yl},Tl=[Uc,al,(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!vl(t.parent.tag,e.tag)){let n=SyntaxError(`<${e.tag}> cannot be child of <${t.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);n.loc=e.loc,t.onWarn(n)}}],El={cloak:jc,html:Jc,text:Yc,model:Xc,on:rl,show:il};function Dl(e,t={}){return kc(e,se({},Hc,t,{nodeTransforms:[_l,...Tl,...t.nodeTransforms||[]],directiveTransforms:se({},El,t.directiveTransforms||{}),transformHoist:cl}))}function Ol(e,t={}){return so(e,se({},Hc,t))}var kl=Object.freeze({__proto__:null,BASE_TRANSITION:ht,BindingTypes:Ac,CAMELIZE:zt,CAPITALIZE:Bt,CREATE_BLOCK:_t,CREATE_COMMENT:xt,CREATE_ELEMENT_BLOCK:vt,CREATE_ELEMENT_VNODE:bt,CREATE_SLOTS:jt,CREATE_STATIC:Ct,CREATE_TEXT:St,CREATE_VNODE:yt,CompilerDeprecationTypes:ai,ConstantTypes:tn,DOMDirectiveTransforms:El,DOMErrorCodes:Kc,DOMErrorMessages:qc,DOMNodeTransforms:Tl,ElementTypes:en,ErrorCodes:pi,FRAGMENT:dt,GUARD_REACTIVE_PROPS:Lt,IS_MEMO_SAME:Yt,IS_REF:qt,KEEP_ALIVE:mt,MERGE_PROPS:Nt,NORMALIZE_CLASS:Pt,NORMALIZE_PROPS:It,NORMALIZE_STYLE:Ft,Namespaces:Qt,NodeTypes:$t,OPEN_BLOCK:gt,POP_SCOPE_ID:Wt,PUSH_SCOPE_ID:Ut,RENDER_LIST:kt,RENDER_SLOT:At,RESOLVE_COMPONENT:wt,RESOLVE_DIRECTIVE:Et,RESOLVE_DYNAMIC_COMPONENT:Tt,RESOLVE_FILTER:Dt,SET_BLOCK_TRACKING:Ht,SUSPENSE:pt,TELEPORT:ft,TO_DISPLAY_STRING:Mt,TO_HANDLERS:Rt,TO_HANDLER_KEY:Vt,TRANSITION:Bc,TRANSITION_GROUP:Vc,TS_NODE_TYPES:Bi,UNREF:Kt,V_MODEL_CHECKBOX:Nc,V_MODEL_DYNAMIC:Ic,V_MODEL_RADIO:Mc,V_MODEL_SELECT:Fc,V_MODEL_TEXT:Pc,V_ON_WITH_KEYS:Rc,V_ON_WITH_MODIFIERS:Lc,V_SHOW:zc,WITH_CTX:Gt,WITH_DIRECTIVES:Ot,WITH_MEMO:Jt,advancePositionWithClone:ra,advancePositionWithMutation:ia,assert:aa,baseCompile:kc,baseParse:so,buildDirectiveArgs:fc,buildProps:lc,buildSlots:nc,checkCompatEnabled:li,compile:Dl,convertToBlock:bn,createArrayExpression:an,createAssignmentExpression:hn,createBlockStatement:fn,createCacheExpression:dn,createCallExpression:B,createCompilerError:U,createCompoundExpression:cn,createConditionalExpression:un,createDOMCompilerError:Gc,createForLoopParams:Xs,createFunctionExpression:ln,createIfStatement:mn,createInterpolation:sn,createObjectExpression:on,createObjectProperty:R,createReturnStatement:_n,createRoot:nn,createSequenceExpression:gn,createSimpleExpression:z,createStructuralDirectiveTransform:So,createTemplateLiteral:pn,createTransformContext:_o,createVNodeCall:rn,errorMessages:mi,extractIdentifiers:Ni,findDir:W,findProp:oa,forAliasRE:xa,generate:os,generateCodeFrame:Pe,getBaseTransformPreset:Oc,getConstantType:fo,getMemoedVNodeCall:ba,getVNodeBlockHelper:yn,getVNodeHelper:vn,hasDynamicKeyVBind:ca,hasScopeRef:ya,helperNameMap:Xt,injectProp:ga,isAllWhitespace:Sa,isCommentOrWhitespace:wa,isCoreComponent:Ui,isFnExpression:na,isFnExpressionBrowser:ea,isFnExpressionNode:ta,isFunctionType:Ii,isInDestructureAssignment:Ei,isInNewExpression:Di,isMemberExpression:Qi,isMemberExpressionBrowser:Xi,isMemberExpressionNode:Zi,isReferencedIdentifier:Ti,isSimpleIdentifier:Gi,isSlotOutlet:pa,isStaticArgOf:sa,isStaticExp:Hi,isStaticProperty:Li,isStaticPropertyKey:Ri,isTemplateNode:fa,isText:la,isVPre:ua,isVSlot:da,isWhitespaceText:Ca,locStub:L,noopDirectiveTransform:jc,parse:Ol,parserOptions:Hc,processExpression:Is,processFor:Js,processIf:Vs,processSlotOutlet:gc,registerRuntimeHelpers:Zt,resolveComponentType:sc,stringifyExpression:Rs,toValidAssetId:va,trackSlotScopes:$s,trackVForSlotScopes:ec,transform:vo,transformBind:vc,transformElement:oc,transformExpression:Fs,transformModel:Cc,transformOn:_c,transformStyle:Uc,transformVBindShorthand:Dc,traverseNode:xo,unwrapTSNode:Vi,validFirstIdentCharRE:Ki,walkBlockDeclarations:ki,walkFunctionParams:Oi,walkIdentifiers:wi,warnDeprecation:ui}),Al,jl;function Ml(){if(jl)return Al;jl=1;function e(e,t){for(;e.length<t;)e=`0`+e;return e}function t(e,t){var n,r,i;if(t.length===0)return e;for(n=0,i=t.length;n<i;n++)r=t.charCodeAt(n),e=(e<<5)-e+r,e|=0;return e<0?e*-2:e}function n(e,t,n){return Object.keys(t).sort().reduce(i,e);function i(e,i){return r(e,t[i],i,n)}}function r(e,r,a,o){var s=t(t(t(e,a),i(r)),typeof r);if(r===null)return t(s,`null`);if(r===void 0)return t(s,`undefined`);if(typeof r==`object`||typeof r==`function`){if(o.indexOf(r)!==-1)return t(s,`[Circular]`+a);o.push(r);var c=n(s,r,o);if(!(`valueOf`in r)||typeof r.valueOf!=`function`)return c;try{return t(c,String(r.valueOf()))}catch(e){return t(c,`[valueOf exception]`+(e.stack||e.message))}}return t(s,r.toString())}function i(e){return Object.prototype.toString.call(e)}function a(t){return e(r(0,t,``,[]).toString(16),8)}return Al=a,Al}var Nl=hi(Ml()),Pl=`useCssVars`;function Fl(e,t,n,r=!1){return`{
28
28
  ${e.map(e=>`"${r?`:--`:``}${Il(t,e,n,r)}": (${e})`).join(`,
@@ -78,10 +78,10 @@ ${Pe(o?.source||a,e.loc.start.offset,e.loc.end.offset)}`),t}),map:S}}function $h
78
78
  `)&&(t=`\r
79
79
  `),this.css+=t+`/*# sourceMappingURL=`+e+` */`}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),r=t.root||e(t.file),a;this.mapOpts.sourcesContent===!1?(a=new i(t.text),a.sourcesContent&&=null):a=t.consumer(),this.map.applySourceMap(a,n,this.toUrl(this.path(r)))}}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 if(this.css){let e;for(;(e=this.css.lastIndexOf(`/*#`))!==-1;){let t=this.css.indexOf(`*/`,e+3);if(t===-1)break;for(;e>0&&this.css[e-1]===`
80
80
  `;)e--;this.css=this.css.slice(0,e)+this.css.slice(t+2)}}}}generate(){if(this.clearAnnotation(),l&&c&&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=a.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new a({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 a({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,o;this.stringify(this.root,(a,s,c)=>{if(this.css+=a,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))),o=a.match(/\n/g),o?(e+=o.length,i=a.lastIndexOf(`
81
- `),t=a.length-i):t+=a.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(r){if(this.mapOpts.absolute||r.charCodeAt(0)===60||/^\w+:\/\//.test(r))return r;let i=this.memoizedPaths.get(r);if(i)return i;let a=this.opts.to?e(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(a=e(n(a,this.mapOpts.annotation)));let o=t(a,r);return this.memoizedPaths.set(r,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 s(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 V?V.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(o){let t=o(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;r===`\\`&&(e=e.replace(/\\/g,`/`));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}return c_=u,c_}var d_,f_;function p_(){if(f_)return d_;f_=1;let e=Ig(),t=Dg(),n=Ag(),r=Qg(),i=i_(),a=og(),o={empty:!0,space:!0};function s(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}class c{constructor(e){this.input=e,this.root=new r,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(t){let n=new e;n.name=t[1].slice(1),n.name===``&&this.unnamedAtrule(n,t),this.init(n,t[2]);let r,i,a,o=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r===`(`||r===`[`?l.push(r===`(`?`)`:`]`):r===`{`&&l.length>0?l.push(`}`):r===l[l.length-1]&&l.pop(),l.length===0)if(r===`;`){n.source.end=this.getPosition(t[2]),n.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&&(n.source.end=this.getPosition(i[3]||i[2]),n.source.end.offset++)}this.end(t);break}else c.push(t);else c.push(t);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(n.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(n,`params`,c),o&&(t=c[c.length-1],n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between=``)):(n.raws.afterName=``,n.params=``),s&&(n.nodes=[],this.current=n)}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 n=new t;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;let r=e[1].slice(2,-2);if(!r.trim())n.text=``,n.raws.left=r,n.raws.right=``;else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=e[2],n.raws.left=e[1],n.raws.right=e[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(e,t){let r=new n;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===`;`&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||s(e)),r.source.end.offset++;e[0][0]!==`word`;)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop=``;e.length;){let t=e[0][0];if(t===`:`||t===`space`||t===`comment`)break;r.prop+=e.shift()[1]}r.raws.between=``;let a;for(;e.length;)if(a=e.shift(),a[0]===`:`){r.raws.between+=a[1];break}else a[0]===`word`&&/\w/.test(a[1])&&this.unknownWord([a]),r.raws.between+=a[1];(r.prop[0]===`_`||r.prop[0]===`*`)&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],c;for(;e.length&&(c=e[0][0],!(c!==`space`&&c!==`comment`));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(a=e[t],a[1].toLowerCase()===`!important`){r.important=!0;let n=this.stringFrom(e,t);n=this.spacesFromEnd(e)+n,n!==` !important`&&(r.raws.important=n);break}else if(a[1].toLowerCase()===`important`){let n=e.slice(0),i=``;for(let e=t;e>0;e--){let t=n[e][0];if(i.trim().startsWith(`!`)&&t!==`space`)break;i=n.pop()[1]+i}i.trim().startsWith(`!`)&&(r.important=!0,r.raws.important=i,e=n)}if(a[0]!==`space`&&a[0]!==`comment`)break}e.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(r.raws.between+=o.map(e=>e[1]).join(``),o=[]),this.raw(r,`value`,o.concat(e),t),r.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 i;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,s=n.length,c=``,l=!0,u,d;for(let e=0;e<s;e+=1)i=n[e],a=i[0],a===`space`&&e===s-1&&!r?l=!1:a===`comment`?(d=n[e-1]?n[e-1][0]:`empty`,u=n[e+1]?n[e+1][0]:`empty`,!o[d]&&!o[u]?c.slice(-1)===`,`?l=!1:c+=i[1]:l=!1):c+=i[1];if(!l){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:c}}e[t]=c}rule(e){e.pop();let t=new i;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})}}return d_=c,d_}var m_,h_;function g_(){if(h_)return m_;h_=1;let e=Ng(),t=Yg(),n=p_();function r(e,r){let i=new n(new t(e,r));try{i.parse()}catch(e){throw Au.env.NODE_ENV!==`production`&&e.name===`CssSyntaxError`&&r&&r.from&&(/\.scss$/i.test(r.from)?e.message+=`
81
+ `),t=a.length-i):t+=a.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(r){if(this.mapOpts.absolute||r.charCodeAt(0)===60||/^\w+:\/\//.test(r))return r;let i=this.memoizedPaths.get(r);if(i)return i;let a=this.opts.to?e(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(a=e(n(a,this.mapOpts.annotation)));let o=t(a,r);return this.memoizedPaths.set(r,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 s(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 V?V.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(o){let t=o(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;r===`\\`&&(e=e.replace(/\\/g,`/`));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}return c_=u,c_}var d_,f_;function p_(){if(f_)return d_;f_=1;let e=Ig(),t=Dg(),n=Ag(),r=Qg(),i=i_(),a=og(),o={empty:!0,space:!0};function s(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}function c(e,t,n){let r=``;for(let i=t;i<n;i++)r+=e[i][1];return r}class l{constructor(e){this.input=e,this.root=new r,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(t){let n=new e;n.name=t[1].slice(1),n.name===``&&this.unnamedAtrule(n,t),this.init(n,t[2]);let r,i,a,o=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r===`(`||r===`[`?l.push(r===`(`?`)`:`]`):r===`{`&&l.length>0?l.push(`}`):r===l[l.length-1]&&l.pop(),l.length===0)if(r===`;`){n.source.end=this.getPosition(t[2]),n.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&&(n.source.end=this.getPosition(i[3]||i[2]),n.source.end.offset++)}this.end(t);break}else c.push(t);else c.push(t);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(n.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(n,`params`,c),o&&(t=c[c.length-1],n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between=``)):(n.raws.afterName=``,n.params=``),s&&(n.nodes=[],this.current=n)}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 n=new t;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;let r=e[1].slice(2,-2);if(!r.trim())n.text=``,n.raws.left=r,n.raws.right=``;else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=e[2],n.raws.left=e[1],n.raws.right=e[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(e,t){let r=new n;this.init(r,e[0][2]);let i=e[e.length-1];i[0]===`;`&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||s(e)),r.source.end.offset++;let a=0;for(;e[a][0]!==`word`;)a===e.length-1&&this.unknownWord([e[a]]),a++;r.raws.before+=c(e,0,a),r.source.start=this.getPosition(e[a][2]);let o=a;for(;a<e.length;){let t=e[a][0];if(t===`:`||t===`space`||t===`comment`)break;a++}r.prop=c(e,o,a);let l=a,u;for(;a<e.length&&(u=e[a],a++,u[0]!==`:`);)u[0]===`word`&&/\w/.test(u[1])&&this.unknownWord([u]);r.raws.between=c(e,l,a),(r.prop[0]===`_`||r.prop[0]===`*`)&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let d=a;for(;a<e.length;){let t=e[a][0];if(t!==`space`&&t!==`comment`)break;a++}let f=e.slice(d,a);e=e.slice(a),this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(u=e[t],u[1].toLowerCase()===`!important`){r.important=!0;let n=this.stringFrom(e,t);n=this.spacesFromEnd(e)+n,n!==` !important`&&(r.raws.important=n);break}else if(u[1].toLowerCase()===`important`){let n=e.slice(0),i=``;for(let e=t;e>0;e--){let t=n[e][0];if(i.trim().startsWith(`!`)&&t!==`space`)break;i=n.pop()[1]+i}i.trim().startsWith(`!`)&&(r.important=!0,r.raws.important=i,e=n)}if(u[0]!==`space`&&u[0]!==`comment`)break}e.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(r.raws.between+=f.map(e=>e[1]).join(``),f=[]),this.raw(r,`value`,f.concat(e),t),r.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 i;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,s=n.length,c=``,l=!0,u,d;for(let e=0;e<s;e+=1)i=n[e],a=i[0],a===`space`&&e===s-1&&!r?l=!1:a===`comment`?(d=n[e-1]?n[e-1][0]:`empty`,u=n[e+1]?n[e+1][0]:`empty`,!o[d]&&!o[u]?c.slice(-1)===`,`?l=!1:c+=i[1]:l=!1):c+=i[1];if(!l){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:c}}e[t]=c}rule(e){e.pop();let t=new i;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})}}return d_=l,d_}var m_,h_;function g_(){if(h_)return m_;h_=1;let e=Ng(),t=Yg(),n=p_();function r(e,r){let i=new n(new t(e,r));try{i.parse()}catch(e){throw Au.env.NODE_ENV!==`production`&&e.name===`CssSyntaxError`&&r&&r.from&&(/\.scss$/i.test(r.from)?e.message+=`
82
82
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(r.from)?e.message+=`
83
83
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(r.from)&&(e.message+=`
84
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),e}return i.root}return m_=r,r.default=r,e.registerParse(r),m_}var __,v_;function y_(){if(v_)return __;v_=1;class e{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}}return __=e,e.default=e,__}var b_,x_;function S_(){if(x_)return b_;x_=1;let e=y_();class t{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(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new e(t,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}}return b_=t,t.default=t,b_}var C_,w_;function T_(){if(w_)return C_;w_=1;let e={};return C_=function(t){e[t]||(e[t]=!0,typeof console<`u`&&console.warn&&console.warn(t))},C_}var E_,D_;function O_(){if(D_)return E_;D_=1;let e=Ng(),t=zg(),n=u_(),r=g_(),i=S_(),a=Qg(),o=vg(),{isClean:s,my:c}=xg(),l=T_(),u={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},d={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},f={Once:!0,postcssPlugin:!0,prepare:!0};function p(e){return typeof e==`object`&&typeof e.then==`function`}function m(e){let t=!1,n=u[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 h(e){let t;return t=e.type===`document`?[`Document`,0,`DocumentExit`]:e.type===`root`?[`Root`,0,`RootExit`]:m(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function g(e){return e[s]=!1,e.nodes&&e.nodes.forEach(e=>g(e)),e}let _={};class v{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,n,a){this.stringified=!1,this.processed=!1;let o;if(typeof n==`object`&&n&&(n.type===`root`||n.type===`document`))o=g(n);else if(n instanceof v||n instanceof i)o=g(n.root),n.map&&(a.map===void 0&&(a.map={}),a.map.inline||(a.map.inline=!1),a.map.prev=n.map);else{let t=r;a.syntax&&(t=a.syntax.parse),a.parser&&(t=a.parser),t.parse&&(t=t.parse);try{o=t(n,a)}catch(e){this.processed=!0,this.error=e}o&&!o[c]&&e.rebuild(o)}this.result=new i(t,o,a),this.helpers={..._,postcss:_,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&&Au.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(!d[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[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(p(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[s];){e[s]=!0;let t=[h(e)];for(;t.length>0;){let e=this.visitTick(t);if(p(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 p(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=o;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=this.result.root.source;if(e.map===void 0&&!(r&&r.input&&r.input.map)){let e=``;return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let i=new n(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[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(p(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[s];)e[s]=!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 Au.env.NODE_ENV!==`production`&&(`from`in this.opts||l("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(p(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[s]){i[s]=!0,e.push(h(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[s]=!0,t.iterator=n.getIterator());return}else if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[s]=!0;let t=m(e);for(let n of t)if(n===0)e.nodes&&e.each(e=>{e[s]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}}return v.registerPostcss=e=>{_=e},E_=v,v.default=v,a.registerLazyResult(v),t.registerLazyResult(v),E_}var k_,A_;function j_(){if(A_)return k_;A_=1;let e=u_(),t=g_(),n=S_(),r=vg(),i=T_();class a{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,n=t;try{e=n(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(t,i,a){i=i.toString(),this.stringified=!1,this._processor=t,this._css=i,this._opts=a,this._map=void 0;let o=r;this.result=new n(this._processor,void 0,this._opts),this.result.css=i;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let c=new e(o,void 0,this._opts,i);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 Au.env.NODE_ENV!==`production`&&(`from`in this._opts||i("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[]}}return k_=a,a.default=a,k_}var M_,N_;function P_(){if(N_)return M_;N_=1;let e=zg(),t=O_(),n=j_(),r=Qg();class i{constructor(e=[]){this.version=`8.5.14`,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(Au.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,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new n(this,e,r):new t(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return M_=i,i.default=i,r.registerProcessor(i),e.registerProcessor(i),M_}var F_,I_;function L_(){if(I_)return F_;I_=1;let e=Ig(),t=Dg(),n=Ng(),r=fg(),i=Ag(),a=zg(),o=s_(),s=Yg(),c=O_(),l=t_(),u=wg(),d=g_(),f=P_(),p=S_(),m=Qg(),h=i_(),g=vg(),_=y_();function v(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new f(e)}return v.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:
84
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),e}return i.root}return m_=r,r.default=r,e.registerParse(r),m_}var __,v_;function y_(){if(v_)return __;v_=1;class e{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}}return __=e,e.default=e,__}var b_,x_;function S_(){if(x_)return b_;x_=1;let e=y_();class t{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(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new e(t,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}}return b_=t,t.default=t,b_}var C_,w_;function T_(){if(w_)return C_;w_=1;let e={};return C_=function(t){e[t]||(e[t]=!0,typeof console<`u`&&console.warn&&console.warn(t))},C_}var E_,D_;function O_(){if(D_)return E_;D_=1;let e=Ng(),t=zg(),n=u_(),r=g_(),i=S_(),a=Qg(),o=vg(),{isClean:s,my:c}=xg(),l=T_(),u={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},d={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},f={Once:!0,postcssPlugin:!0,prepare:!0};function p(e){return typeof e==`object`&&typeof e.then==`function`}function m(e){let t=!1,n=u[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 h(e){let t;return t=e.type===`document`?[`Document`,0,`DocumentExit`]:e.type===`root`?[`Root`,0,`RootExit`]:m(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function g(e){return e[s]=!1,e.nodes&&e.nodes.forEach(e=>g(e)),e}let _={};class v{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,n,a){this.stringified=!1,this.processed=!1;let o;if(typeof n==`object`&&n&&(n.type===`root`||n.type===`document`))o=g(n);else if(n instanceof v||n instanceof i)o=g(n.root),n.map&&(a.map===void 0&&(a.map={}),a.map.inline||(a.map.inline=!1),a.map.prev=n.map);else{let t=r;a.syntax&&(t=a.syntax.parse),a.parser&&(t=a.parser),t.parse&&(t=t.parse);try{o=t(n,a)}catch(e){this.processed=!0,this.error=e}o&&!o[c]&&e.rebuild(o)}this.result=new i(t,o,a),this.helpers={..._,postcss:_,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&&Au.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(!d[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[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(p(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[s];){e[s]=!0;let t=[h(e)];for(;t.length>0;){let e=this.visitTick(t);if(p(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 p(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=o;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=this.result.root.source;if(e.map===void 0&&!(r&&r.input&&r.input.map)){let e=``;return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let i=new n(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[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(p(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[s];)e[s]=!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 Au.env.NODE_ENV!==`production`&&(`from`in this.opts||l("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(p(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[s]){i[s]=!0,e.push(h(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[s]=!0,t.iterator=n.getIterator());return}else if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[s]=!0;let t=m(e);for(let n of t)if(n===0)e.nodes&&e.each(e=>{e[s]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}}return v.registerPostcss=e=>{_=e},E_=v,v.default=v,a.registerLazyResult(v),t.registerLazyResult(v),E_}var k_,A_;function j_(){if(A_)return k_;A_=1;let e=u_(),t=g_(),n=S_(),r=vg(),i=T_();class a{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,n=t;try{e=n(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(t,i,a){i=i.toString(),this.stringified=!1,this._processor=t,this._css=i,this._opts=a,this._map=void 0;let o=r;this.result=new n(this._processor,void 0,this._opts),this.result.css=i;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let c=new e(o,void 0,this._opts,i);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 Au.env.NODE_ENV!==`production`&&(`from`in this._opts||i("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[]}}return k_=a,a.default=a,k_}var M_,N_;function P_(){if(N_)return M_;N_=1;let e=zg(),t=O_(),n=j_(),r=Qg();class i{constructor(e=[]){this.version=`8.5.15`,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(Au.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,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new n(this,e,r):new t(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return M_=i,i.default=i,r.registerProcessor(i),e.registerProcessor(i),M_}var F_,I_;function L_(){if(I_)return F_;I_=1;let e=Ig(),t=Dg(),n=Ng(),r=fg(),i=Ag(),a=zg(),o=s_(),s=Yg(),c=O_(),l=t_(),u=wg(),d=g_(),f=P_(),p=S_(),m=Qg(),h=i_(),g=vg(),_=y_();function v(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new f(e)}return v.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:
85
85
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Au.env.LANG&&Au.env.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
86
86
  https://www.w3ctech.com/topic/2226`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new f().version,i}let i;return Object.defineProperty(r,"postcss",{get(){return i||=r(),i}}),r.process=function(e,t,n){return v([r(n)]).process(e,t)},r},v.stringify=g,v.parse=d,v.fromJSON=o,v.list=l,v.comment=e=>new t(e),v.atRule=t=>new e(t),v.decl=e=>new i(e),v.rule=e=>new h(e),v.root=e=>new m(e),v.document=e=>new a(e),v.CssSyntaxError=r,v.Declaration=i,v.Container=n,v.Processor=f,v.Document=a,v.Comment=t,v.Warning=_,v.AtRule=e,v.Result=p,v.Input=s,v.Rule=h,v.Root=m,v.Node=u,c.registerPostcss(v),F_=v,v.default=v,F_}var Y=hi(L_());Y.stringify,Y.fromJSON,Y.plugin,Y.parse,Y.list,Y.document,Y.comment,Y.atRule,Y.rule,Y.decl,Y.root,Y.CssSyntaxError,Y.Declaration,Y.Container,Y.Processor,Y.Document,Y.Comment,Y.Warning,Y.AtRule,Y.Result,Y.Input;var R_=Y.Rule;Y.Root,Y.Node;var z_=()=>({postcssPlugin:`vue-sfc-trim`,Once(e){e.walk(({type:e,raws:t})=>{(e===`rule`||e===`atrule`)&&(t.before&&=`
87
87
  `,`after`in t&&t.after&&(t.after=`
@@ -110,36 +110,36 @@ const ${n} = __VUE_DEFAULT__`);continue}else{t.prepend(`import { ${t.slice(r.loc
110
110
  `);let i=Kx(t,r.exported.end,e.end);t.remove(r.start,i),t.append(`
111
111
  const ${n} = __VUE_DEFAULT__`);continue}let i=Kx(t,r.end,e.end);t.remove(r.start,i),t.append(`
112
112
  const ${n} = ${r.local.name}`)}}})}function Gx(e){for(let t of e)if(t.type===`ExportDefaultDeclaration`)return!0;else if(t.type===`ExportNamedDeclaration`&&t.specifiers.some(e=>e.exported.name===`default`))return!0;return!1}function Kx(e,t,n){let r=!1,i=t;for(;t<n;)if(/\s/.test(e.slice(t,t+1)))t++;else if(e.slice(t,t+1)===`,`){t++,r=!0;break}else if(e.slice(t,t+1)===`}`)break;return r?t:i}var qx=Object.defineProperty,Jx=Object.defineProperties,Yx=Object.getOwnPropertyDescriptors,Xx=Object.getOwnPropertySymbols,Zx=Object.prototype.hasOwnProperty,Qx=Object.prototype.propertyIsEnumerable,$x=(e,t,n)=>t in e?qx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eS=(e,t)=>{for(var n in t||={})Zx.call(t,n)&&$x(e,n,t[n]);if(Xx)for(var n of Xx(t))Qx.call(t,n)&&$x(e,n,t[n]);return e},tS=(e,t)=>Jx(e,Yx(t)),nS=`__default__`;function rS(e,t){let n=e.descriptor.script;try{let r=n.content,i=n.map,a=e.scriptAst,o=dx(a.body),{cssVars:s}=e.descriptor,{genDefaultAs:c,isProd:l}=e.options;if(s.length||c){let n=c||nS,i=new Bx(r);Wx(a.body,i,n),r=i.toString(),s.length&&!e.options.templateOptions?.ssr&&(r+=Ul(s,o,t,!!l,n)),c||(r+=`
113
- export default ${n}`)}return tS(eS({},n),{content:r,map:i,bindings:o,scriptAst:a.body})}catch{return n}}var iS=Object.defineProperty,aS=Object.defineProperties,oS=Object.getOwnPropertyDescriptors,sS=Object.getOwnPropertySymbols,cS=Object.prototype.hasOwnProperty,lS=Object.prototype.propertyIsEnumerable,uS=(e,t,n)=>t in e?iS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dS=(e,t)=>{for(var n in t||={})cS.call(t,n)&&uS(e,n,t[n]);if(sS)for(var n of sS(t))lS.call(t,n)&&uS(e,n,t[n]);return e},fS=(e,t)=>aS(e,oS(t)),pS=class{constructor(e,t,n=0,r=Object.create(null),i=Object.create(null),a=Object.create(null)){this.filename=e,this.source=t,this.offset=n,this.imports=r,this.types=i,this.declares=a,this.isGenericScope=!1,this.resolvedImportSources=Object.create(null),this.exportedTypes=Object.create(null),this.exportedDeclares=Object.create(null)}};function mS(e,t){t&&t.filename!==e.filename&&(e.deps||=new Set).add(t.filename)}function hS(e,{props:t}){for(let n in t)mS(e,t[n]._ownerScope)}function gS(e,t,n,r){let i=!r;if(i&&t._resolvedElements)return hS(e,t._resolvedElements),t._resolvedElements;let a=_S(e,t,t._ownerScope||n||US(e),r);return i?t._resolvedElements=a:a}function _S(e,t,n,r){if(t.leadingComments&&t.leadingComments.some(e=>e.value.includes(`@vue-ignore`)))return{props:{}};switch(t.type){case`TSTypeLiteral`:return vS(e,t.members,n,r);case`TSInterfaceDeclaration`:return xS(e,t,n,r);case`TSTypeAliasDeclaration`:case`TSTypeAnnotation`:case`TSParenthesizedType`:return gS(e,t.typeAnnotation,n,r);case`TSFunctionType`:return{props:{},calls:[t]};case`TSUnionType`:case`TSIntersectionType`:return yS(t.types.map(t=>gS(e,t,n,r)),t.type);case`TSMappedType`:return SS(e,t,n,r);case`TSIndexedAccessType`:return yS(CS(e,t,n).map(t=>gS(e,t,t._ownerScope)),`TSUnionType`);case`TSExpressionWithTypeArguments`:case`TSTypeReference`:{let i=jS(t);if((i===`ExtractPropTypes`||i===`ExtractPublicPropTypes`)&&t.typeParameters&&n.imports[i]?.source===`vue`)return nC(gS(e,t.typeParameters.params[0],n,r),n);let a=kS(e,t,n);if(a){let n;return(a.type===`TSTypeAliasDeclaration`||a.type===`TSInterfaceDeclaration`)&&a.typeParameters&&t.typeParameters&&(n=Object.create(null),a.typeParameters.params.forEach((e,i)=>{let a=r&&r[e.name];a||=t.typeParameters.params[i],n[e.name]=a})),gS(e,a,a._ownerScope,n)}else{if(typeof i==`string`){if(r&&r[i])return gS(e,r[i],n,r);if(DS.has(i))return OS(e,t,i,n,r);if(i===`ReturnType`&&t.typeParameters){let r=oC(e,t.typeParameters.params[0],n);if(r)return gS(e,r,n)}}return e.error(`Unresolvable type reference or unsupported built-in utility type`,t,n)}}case`TSImportType`:{if(tx(t.argument)===`vue`&&t.qualifier?.type===`Identifier`&&t.qualifier.name===`ExtractPropTypes`&&t.typeParameters)return nC(gS(e,t.typeParameters.params[0],n),n);let r=kS(e,t,RS(e,t.argument,n,t.argument.value));if(r)return gS(e,r,r._ownerScope);break}case`TSTypeQuery`:{let r=kS(e,t,n);if(r)return gS(e,r,r._ownerScope)}break}return e.error(`Unresolvable type: ${t.type}`,t,n)}function vS(e,t,n=US(e),r){let i={props:{}};for(let a of t)if(a.type===`TSPropertySignature`||a.type===`TSMethodSignature`){r&&(n=GS(n),n.isGenericScope=!0,Object.assign(n.types,r)),a._ownerScope=n;let t=nx(a);t===null?e.error(`Unsupported computed key in type referenced by a macro`,a.key,n):i.props[t]=a}else a.type===`TSCallSignatureDeclaration`&&(i.calls||=[]).push(a);return i}function yS(e,t){if(e.length===1)return e[0];let n={props:{}},{props:r}=n;for(let{props:i,calls:a}of e){for(let e in i)le(r,e)?r[e]=bS(r[e].key,{type:t,types:[r[e],i[e]]},r[e]._ownerScope,r[e].optional||i[e].optional):r[e]=i[e];a&&(n.calls||=[]).push(...a)}return n}function bS(e,t,n,r){return{type:`TSPropertySignature`,key:e,kind:`get`,optional:r,typeAnnotation:{type:`TSTypeAnnotation`,typeAnnotation:t},_ownerScope:n}}function xS(e,t,n,r){let i=vS(e,t.body.body,t._ownerScope,r);if(t.extends)for(let r of t.extends)try{let{props:t,calls:a}=gS(e,r,n);for(let e in t)le(i.props,e)||(i.props[e]=t[e]);a&&(i.calls||=[]).push(...a)}catch{e.silentOnExtendsFailure||e.error(`Failed to resolve extends base type.
113
+ export default ${n}`)}return tS(eS({},n),{content:r,map:i,bindings:o,scriptAst:a.body})}catch{return n}}var iS=Object.defineProperty,aS=Object.defineProperties,oS=Object.getOwnPropertyDescriptors,sS=Object.getOwnPropertySymbols,cS=Object.prototype.hasOwnProperty,lS=Object.prototype.propertyIsEnumerable,uS=(e,t,n)=>t in e?iS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dS=(e,t)=>{for(var n in t||={})cS.call(t,n)&&uS(e,n,t[n]);if(sS)for(var n of sS(t))lS.call(t,n)&&uS(e,n,t[n]);return e},fS=(e,t)=>aS(e,oS(t)),pS=class{constructor(e,t,n=0,r=Object.create(null),i=Object.create(null),a=Object.create(null)){this.filename=e,this.source=t,this.offset=n,this.imports=r,this.types=i,this.declares=a,this.isGenericScope=!1,this.resolvedImportSources=Object.create(null),this.exportedTypes=Object.create(null),this.exportedDeclares=Object.create(null)}};function mS(e,t){t&&t.filename!==e.filename&&(e.deps||=new Set).add(t.filename)}function hS(e,{props:t}){for(let n in t)mS(e,t[n]._ownerScope)}function gS(e,t,n,r){let i=!r;if(i&&t._resolvedElements)return hS(e,t._resolvedElements),t._resolvedElements;let a=_S(e,t,t._ownerScope||n||WS(e),r);return i?t._resolvedElements=a:a}function _S(e,t,n,r){if(t.leadingComments&&t.leadingComments.some(e=>e.value.includes(`@vue-ignore`)))return{props:{}};switch(t.type){case`TSTypeLiteral`:return vS(e,t.members,n,r);case`TSInterfaceDeclaration`:return xS(e,t,n,r);case`TSTypeAliasDeclaration`:case`TSTypeAnnotation`:case`TSParenthesizedType`:return gS(e,t.typeAnnotation,n,r);case`TSFunctionType`:return{props:{},calls:[t]};case`TSUnionType`:case`TSIntersectionType`:return yS(t.types.map(t=>gS(e,t,n,r)),t.type);case`TSMappedType`:return SS(e,t,n,r);case`TSIndexedAccessType`:return yS(CS(e,t,n).map(t=>gS(e,t,t._ownerScope)),`TSUnionType`);case`TSExpressionWithTypeArguments`:case`TSTypeReference`:{let i=jS(t);if((i===`ExtractPropTypes`||i===`ExtractPublicPropTypes`)&&t.typeParameters&&n.imports[i]?.source===`vue`)return rC(gS(e,t.typeParameters.params[0],n,r),n);let a=kS(e,t,n);if(a){let n;return(a.type===`TSTypeAliasDeclaration`||a.type===`TSInterfaceDeclaration`)&&a.typeParameters&&t.typeParameters&&(n=Object.create(null),a.typeParameters.params.forEach((e,i)=>{let a=r&&r[e.name];a||=t.typeParameters.params[i],n[e.name]=a})),gS(e,a,a._ownerScope,n)}else{if(typeof i==`string`){if(r&&r[i])return gS(e,r[i],n,r);if(DS.has(i))return OS(e,t,i,n,r);if(i===`ReturnType`&&t.typeParameters){let r=sC(e,t.typeParameters.params[0],n);if(r)return gS(e,r,n)}}return e.error(`Unresolvable type reference or unsupported built-in utility type`,t,n)}}case`TSImportType`:{if(tx(t.argument)===`vue`&&t.qualifier?.type===`Identifier`&&t.qualifier.name===`ExtractPropTypes`&&t.typeParameters)return rC(gS(e,t.typeParameters.params[0],n),n);let r=kS(e,t,RS(e,t.argument,n,t.argument.value));if(r)return gS(e,r,r._ownerScope);break}case`TSTypeQuery`:{let r=kS(e,t,n);if(r)return gS(e,r,r._ownerScope)}break}return e.error(`Unresolvable type: ${t.type}`,t,n)}function vS(e,t,n=WS(e),r){let i={props:{}};for(let a of t)if(a.type===`TSPropertySignature`||a.type===`TSMethodSignature`){r&&(n=KS(n),n.isGenericScope=!0,Object.assign(n.types,r)),a._ownerScope=n;let t=nx(a);t===null?e.error(`Unsupported computed key in type referenced by a macro`,a.key,n):i.props[t]=a}else a.type===`TSCallSignatureDeclaration`&&(i.calls||=[]).push(a);return i}function yS(e,t){if(e.length===1)return e[0];let n={props:{}},{props:r}=n;for(let{props:i,calls:a}of e){for(let e in i)le(r,e)?r[e]=bS(r[e].key,{type:t,types:[r[e],i[e]]},r[e]._ownerScope,r[e].optional||i[e].optional):r[e]=i[e];a&&(n.calls||=[]).push(...a)}return n}function bS(e,t,n,r){return{type:`TSPropertySignature`,key:e,kind:`get`,optional:r,typeAnnotation:{type:`TSTypeAnnotation`,typeAnnotation:t},_ownerScope:n}}function xS(e,t,n,r){let i=vS(e,t.body.body,t._ownerScope,r);if(t.extends)for(let r of t.extends)try{let{props:t,calls:a}=gS(e,r,n);for(let e in t)le(i.props,e)||(i.props[e]=t[e]);a&&(i.calls||=[]).push(...a)}catch{e.silentOnExtendsFailure||e.error(`Failed to resolve extends base type.
114
114
  If this previously worked in 3.2, you can instruct the compiler to ignore this extend by adding /* @vue-ignore */ before it, for example:
115
115
 
116
116
  interface Props extends /* @vue-ignore */ Base {}
117
117
 
118
- Note: both in 3.2 or with the ignore, the properties in the base type are treated as fallthrough attrs at runtime.`,r,n)}return i}function SS(e,t,n,r){let i={props:{}},a;if(t.nameType){let{name:i,constraint:o}=t.typeParameter;n=GS(n),Object.assign(n.types,fS(dS({},r),{[i]:o})),a=TS(e,t.nameType,n)}else a=TS(e,t.typeParameter.constraint,n);for(let e of a)i.props[e]=bS({type:`Identifier`,name:e},t.typeAnnotation,n,!!t.optional);return i}function CS(e,t,n){if(t.indexType.type===`TSNumberKeyword`)return wS(e,t.objectType,n);let{indexType:r,objectType:i}=t,a=[],o,s;r.type===`TSStringKeyword`?(s=gS(e,i,n),o=Object.keys(s.props)):(o=TS(e,r,n),s=gS(e,i,n));for(let e of o){let t=s.props[e]?.typeAnnotation?.typeAnnotation;t&&(t._ownerScope=s.props[e]._ownerScope,a.push(t))}return a}function wS(e,t,n){if(t.type===`TSArrayType`)return[t.elementType];if(t.type===`TSTupleType`)return t.elementTypes.map(e=>e.type===`TSNamedTupleMember`?e.elementType:e);if(t.type===`TSTypeReference`){if(jS(t)===`Array`&&t.typeParameters)return t.typeParameters.params;{let r=kS(e,t,n);if(r)return wS(e,r,n)}}return e.error(`Failed to resolve element type from target type`,t,n)}function TS(e,t,n,r){switch(t.type){case`StringLiteral`:return[t.value];case`TSLiteralType`:return TS(e,t.literal,n,r);case`TSUnionType`:return t.types.map(t=>TS(e,t,n,r)).flat();case`TemplateLiteral`:return ES(e,t,n);case`TSTypeReference`:{let i=kS(e,t,n);if(i)return TS(e,i,n,r);if(t.typeName.type===`Identifier`){let i=t.typeName.name;if(r&&r[i])return TS(e,r[i],n,r);let a=(i=0)=>TS(e,t.typeParameters.params[i],n,r);switch(i){case`Extract`:return a(1);case`Exclude`:{let e=a(1);return a().filter(t=>!e.includes(t))}case`Uppercase`:return a().map(e=>e.toUpperCase());case`Lowercase`:return a().map(e=>e.toLowerCase());case`Capitalize`:return a().map(Te);case`Uncapitalize`:return a().map(e=>e[0].toLowerCase()+e.slice(1));default:e.error(`Unsupported type when resolving index type`,t.typeName,n)}}}}return e.error(`Failed to resolve index type into finite keys`,t,n)}function ES(e,t,n){if(!t.expressions.length)return[t.quasis[0].value.raw];let r=[],i=t.expressions[0],a=t.quasis[0],o=a?a.value.raw:``,s=TS(e,i,n),c=ES(e,fS(dS({},t),{expressions:t.expressions.slice(1),quasis:a?t.quasis.slice(1):t.quasis}),n);for(let e of s)for(let t of c)r.push(o+e+t);return r}var DS=new Set([`Partial`,`Required`,`Readonly`,`Pick`,`Omit`]);function OS(e,t,n,r,i){let a=gS(e,t.typeParameters.params[0],r,i);switch(n){case`Partial`:{let e={props:{},calls:a.calls};return Object.keys(a.props).forEach(t=>{e.props[t]=fS(dS({},a.props[t]),{optional:!0})}),e}case`Required`:{let e={props:{},calls:a.calls};return Object.keys(a.props).forEach(t=>{e.props[t]=fS(dS({},a.props[t]),{optional:!1})}),e}case`Readonly`:return a;case`Pick`:{let n=TS(e,t.typeParameters.params[1],r,i),o={props:{},calls:a.calls};for(let e of n)o.props[e]=a.props[e];return o}case`Omit`:let n=TS(e,t.typeParameters.params[1],r,i),o={props:{},calls:a.calls};for(let e in a.props)n.includes(e)||(o.props[e]=a.props[e]);return o}}function kS(e,t,n,r,i=!1){let a=!n?.isGenericScope;if(a&&t._resolvedReference)return mS(e,t._resolvedReference._ownerScope),t._resolvedReference;let o=AS(e,n||US(e),r||jS(t),t,i);return a?t._resolvedReference=o:o}function AS(e,t,n,r,i){if(typeof n==`string`){if(t.imports[n])return LS(e,r,n,t);{let a=r.type===`TSTypeQuery`?i?t.exportedDeclares:t.declares:i?t.exportedTypes:t.types;if(a[n])return a[n];{let t=NS(e);if(t)for(let i of t){let t=r.type===`TSTypeQuery`?i.declares:i.types;if(t[n]){(e.deps||=new Set).add(i.filename);let r=t[n];return r._ownerScope&&r._ownerScope!==i&&e.deps.add(r._ownerScope.filename),r}}}}}else{let a=AS(e,t,n[0],r,i);if(a&&(a.type!==`TSModuleDeclaration`&&(a=a._ns),a))return AS(e,WS(e,a,a._ownerScope||t),n.length>2?n.slice(1):n[n.length-1],r,!a.declare)}}function jS(e){let t=e.type===`TSTypeReference`?e.typeName:e.type===`TSExpressionWithTypeArguments`?e.expression:e.type===`TSImportType`?e.qualifier:e.exprName;return t?.type===`Identifier`?t.name:t?.type===`TSQualifiedName`?MS(t):`default`}function MS(e){return e.type===`Identifier`?[e.name]:[...MS(e.left),e.right.name]}function NS(e){if(e.options.globalTypeFiles){if(!IS(e))throw Error(`[vue/compiler-sfc] globalTypeFiles requires fs access.`);return e.options.globalTypeFiles.map(t=>VS(e,ax(t),!0))}}var PS,FS;function IS(e){if(e.fs)return e.fs;!PS&&FS&&(PS=FS());let t=e.options.fs||PS?.sys;if(t)return e.fs={fileExists(e){return e.endsWith(`.vue.ts`)&&!e.endsWith(`.d.vue.ts`)&&(e=e.replace(/\.ts$/,``)),t.fileExists(e)},readFile(e){return e.endsWith(`.vue.ts`)&&!e.endsWith(`.d.vue.ts`)&&(e=e.replace(/\.ts$/,``)),t.readFile(e)},realpath:t.realpath}}function LS(e,t,n,r){let{source:i,imported:a}=r.imports[n];return kS(e,t,RS(e,t,r,i),a,!0)}function RS(e,t,n,r,i=!0){let a;try{a=IS(e)}catch(r){return e.error(r.message,t,n)}if(!a)return e.error("No fs option provided to `compileScript` in non-Node environment. File system access is required for resolving imported types.",t,n);let o=n.resolvedImportSources[r];if(!o){if(r.startsWith(`..`))o=zS(ox(_d(n.filename),r),a);else if(r[0]===`.`)o=zS(ox(_d(n.filename),r),a);else return e.error(`Type import from non-relative sources is not supported in the browser build.`,t,n);!o&&r[0],o&&=n.resolvedImportSources[r]=ax(o)}return o?(i&&(e.deps||=new Set).add(o),VS(e,o)):e.error(`Failed to resolve import source ${JSON.stringify(r)}.`,t,n)}function zS(e,t){let n=`u`;e.endsWith(`.mjs`)?n=`m`:e.endsWith(`.cjs`)&&(n=`c`),e=e.replace(/\.[cm]?jsx?$/,``);let r=e=>{if(t.fileExists(e))return e},i=()=>r(e+`.ts`)||r(e+`.tsx`)||r(e+`.d.ts`),a=()=>r(e+`.mts`)||r(e+`.d.mts`),o=()=>r(e+`.cts`)||r(e+`.d.cts`);return r(e)||(n===`m`?a()||i():n===`c`?o()||i():i()||a()||o())||r(ox(e,`index.ts`))||r(ox(e,`index.tsx`))||r(ox(e,`index.d.ts`))}var BS=ju();function VS(e,t,n=!1){let r=BS.get(t);if(r)return r;let i=IS(e),a=i.readFile(t)||``,o=HS(t,a,i,e.options.babelParserPlugins),s=new pS(t,a,0,ZS(o));return qS(e,o,s,n),BS.set(t,s),s}function HS(e,t,n,r){let i=yd(e);if(i===`.ts`||i===`.mts`||i===`.tsx`||i===`.cts`||i===`.mtsx`)return bi.parse(t,{plugins:Ux(i.slice(1),r,/\.d\.[cm]?ts$/.test(e)),sourceType:`module`}).program.body;let a=!/\.[cm]?[tj]sx?$/.test(e),o=`${e.slice(0,-i.length)}.d${i}.ts`;if(a&&n.fileExists(o))return bi.parse(n.readFile(o),{plugins:Ux(`ts`,r,!0),sourceType:`module`}).program.body;if(i===`.vue`){let{descriptor:{script:e,scriptSetup:n}}=Yu(t);if(!e&&!n)return[];let i=e?e.loc.start.offset:1/0,a=n?n.loc.start.offset:1/0,o=i<a?e:n,s=i<a?n:e,c=` `.repeat(Math.min(i,a))+o.content;s&&(c+=` `.repeat(s.loc.start.offset-e.loc.end.offset)+s.content);let l=e?.lang||n?.lang;return bi.parse(c,{plugins:Ux(l,r),sourceType:`module`}).program.body}return[]}function US(e){if(e.scope)return e.scope;let t=`ast`in e?e.ast:e.scriptAst?[...e.scriptAst.body,...e.scriptSetupAst.body]:e.scriptSetupAst.body,n=new pS(e.filename,e.source,`startOffset`in e?e.startOffset:0,`userImports`in e?Object.create(e.userImports):ZS(t));return qS(e,t,n),e.scope=n}function WS(e,t,n){if(t._resolvedChildScope)return t._resolvedChildScope;let r=GS(n);if(t.body.type===`TSModuleDeclaration`){let e=t.body;e._ownerScope=r;let n=tx(e.id);r.types[n]=r.exportedTypes[n]=e}else qS(e,t.body.body,r);return t._resolvedChildScope=r}function GS(e){return new pS(e.filename,e.source,e.offset,Object.create(e.imports),Object.create(e.types),Object.create(e.declares))}var KS=/^Import|^Export/;function qS(e,t,n,r=!1){let{types:i,declares:a,exportedTypes:o,exportedDeclares:s,imports:c}=n,l=r?!t.some(e=>KS.test(e.type)):!1;for(let o of t)if(r){if(l)o.declare&&JS(o,i,a);else if(o.type===`TSModuleDeclaration`&&o.global)for(let t of o.body.body)if(t.type===`ExportNamedDeclaration`){if(t.declaration)JS(t.declaration,i,a);else if(t.source){let r=RS(e,t.source,n,t.source.value,!1);for(let e of t.specifiers)if(e.type===`ExportSpecifier`){let t=tx(e.exported),n=e.local.name;r.exportedTypes[n]&&(i[t]=r.exportedTypes[n]),r.exportedDeclares[n]&&(a[t]=r.exportedDeclares[n])}}}else if(t.type===`ExportAllDeclaration`&&t.source){let r=RS(e,t.source,n,t.source.value,!1);Object.assign(i,r.exportedTypes),Object.assign(a,r.exportedDeclares)}else JS(t,i,a)}else JS(o,i,a);if(!r)for(let r of t)if(r.type===`ExportNamedDeclaration`){if(r.declaration)JS(r.declaration,i,a),JS(r.declaration,o,s);else for(let e of r.specifiers)if(e.type===`ExportSpecifier`){let t=e.local.name,a=tx(e.exported);r.source?(c[a]={source:r.source.value,imported:t},o[a]={type:`TSTypeReference`,typeName:{type:`Identifier`,name:t},_ownerScope:n}):i[t]&&(o[a]=i[t])}}else if(r.type===`ExportAllDeclaration`){let t=RS(e,r.source,n,r.source.value);Object.assign(n.exportedTypes,t.exportedTypes)}else r.type===`ExportDefaultDeclaration`&&r.declaration&&(r.declaration.type===`Identifier`?i[r.declaration.name]&&(o.default=i[r.declaration.name]):(JS(r.declaration,i,a,`default`),JS(r.declaration,o,s,`default`)));for(let e of Object.keys(i)){let t=i[e];t._ownerScope||=n,t._ns&&!t._ns._ownerScope&&(t._ns._ownerScope=n)}for(let e of Object.keys(a))a[e]._ownerScope||(a[e]._ownerScope=n)}function JS(e,t,n,r){switch(e.type){case`TSInterfaceDeclaration`:case`TSEnumDeclaration`:case`TSModuleDeclaration`:{if(e.type===`TSModuleDeclaration`&&e.global){let r=e.body;for(let e of r.body)e.type===`ExportNamedDeclaration`&&e.declaration?JS(e.declaration,t,n):JS(e,t,n);break}let i=r||tx(e.id),a=t[i];if(a){if(e.type===`TSModuleDeclaration`){a.type===`TSModuleDeclaration`?YS(a,e):XS(a,e);break}if(a.type===`TSModuleDeclaration`){t[i]=e,XS(e,a);break}if(a.type!==e.type)break;e.type===`TSInterfaceDeclaration`?a.body.body.push(...e.body.body):a.members.push(...e.members)}else t[i]=e;break}case`ClassDeclaration`:(r||e.id)&&(t[r||tx(e.id)]=e);break;case`TSTypeAliasDeclaration`:t[e.id.name]=e.typeParameters?e:e.typeAnnotation;break;case`TSDeclareFunction`:e.id&&(n[e.id.name]=e);break;case`VariableDeclaration`:if(e.declare)for(let t of e.declarations)t.id.type===`Identifier`&&t.id.typeAnnotation&&(n[t.id.name]=t.id.typeAnnotation.typeAnnotation);break}}function YS(e,t){let n=e.body,r=t.body;n.type===`TSModuleDeclaration`?r.type===`TSModuleDeclaration`?YS(n,r):r.body.push({type:`ExportNamedDeclaration`,declaration:n,exportKind:`type`,specifiers:[]}):r.type===`TSModuleDeclaration`?n.body.push({type:`ExportNamedDeclaration`,declaration:r,exportKind:`type`,specifiers:[]}):n.body.push(...r.body)}function XS(e,t){e._ns?YS(e._ns,t):e._ns=t}function ZS(e){let t=Object.create(null);for(let n of e)QS(n,t);return t}function QS(e,t){if(e.type===`ImportDeclaration`)for(let n of e.specifiers)t[n.local.name]={imported:ex(n),source:e.source.value}}function $S(e,t,n=t._ownerScope||US(e),r=!1,i){if(t.leadingComments&&t.leadingComments.some(e=>e.value.includes(`@vue-ignore`)))return[Jb];let a=e.silentOnExtendsFailure;e.silentOnExtendsFailure=!0;try{switch(t.type){case`TSStringKeyword`:return[`String`];case`TSNumberKeyword`:return[`Number`];case`TSBooleanKeyword`:return[`Boolean`];case`TSObjectKeyword`:return[`Object`];case`TSNullKeyword`:return[`null`];case`TSTypeLiteral`:case`TSInterfaceDeclaration`:{let i=new Set,a=t.type===`TSTypeLiteral`?t.members:t.body.body;for(let t of a)if(r)if(t.type===`TSPropertySignature`&&t.key.type===`NumericLiteral`)i.add(`Number`);else if(t.type===`TSIndexSignature`){let r=t.parameters[0].typeAnnotation;if(r&&r.type!==`Noop`){let t=$S(e,r.typeAnnotation,n)[0];if(t===Jb)return[Jb];i.add(t)}}else i.add(`String`);else t.type===`TSCallSignatureDeclaration`||t.type===`TSConstructSignatureDeclaration`?i.add(`Function`):i.add(`Object`);return i.size?Array.from(i):[r?Jb:`Object`]}case`TSPropertySignature`:if(t.typeAnnotation)return $S(e,t.typeAnnotation.typeAnnotation,n);break;case`TSMethodSignature`:case`TSFunctionType`:return[`Function`];case`TSArrayType`:case`TSTupleType`:return[`Array`];case`TSLiteralType`:switch(t.literal.type){case`StringLiteral`:return[`String`];case`BooleanLiteral`:return[`Boolean`];case`NumericLiteral`:case`BigIntLiteral`:return[`Number`];default:return[Jb]}case`TSTypeReference`:{let a;try{a=kS(e,t,n)}catch{}if(a){if(a.type===`TSTypeAliasDeclaration`){if(a.typeAnnotation.type===`TSFunctionType`)return[`Function`];if(t.typeParameters){let n=Object.create(null);return a.typeParameters&&a.typeParameters.params.forEach((e,r)=>{n[e.name]=t.typeParameters.params[r]}),$S(e,a.typeAnnotation,a._ownerScope,r,n)}}return $S(e,a,a._ownerScope,r)}if(t.typeName.type===`Identifier`){if(i&&i[t.typeName.name])return $S(e,i[t.typeName.name],n,r,i);if(r)switch(t.typeName.name){case`String`:case`Array`:case`ArrayLike`:case`Parameters`:case`ConstructorParameters`:case`ReadonlyArray`:return[`String`,`Number`];case`Record`:case`Partial`:case`Required`:case`Readonly`:if(t.typeParameters&&t.typeParameters.params[0])return $S(e,t.typeParameters.params[0],n,!0);break;case`Pick`:case`Extract`:if(t.typeParameters&&t.typeParameters.params[1])return $S(e,t.typeParameters.params[1],n);break;case`Function`:case`Object`:case`Set`:case`Map`:case`WeakSet`:case`WeakMap`:case`Date`:case`Promise`:case`Error`:case`Uppercase`:case`Lowercase`:case`Capitalize`:case`Uncapitalize`:case`ReadonlyMap`:case`ReadonlySet`:return[`String`]}else switch(t.typeName.name){case`Array`:case`Function`:case`Object`:case`Set`:case`Map`:case`WeakSet`:case`WeakMap`:case`Date`:case`Promise`:case`Error`:return[t.typeName.name];case`Partial`:case`Required`:case`Readonly`:case`Record`:case`Pick`:case`Omit`:case`InstanceType`:return[`Object`];case`Uppercase`:case`Lowercase`:case`Capitalize`:case`Uncapitalize`:return[`String`];case`Parameters`:case`ConstructorParameters`:case`ReadonlyArray`:return[`Array`];case`ReadonlyMap`:return[`Map`];case`ReadonlySet`:return[`Set`];case`Ref`:case`ShallowRef`:case`ComputedRef`:case`WritableComputedRef`:return[`Object`];case`MaybeRef`:case`MaybeRefOrGetter`:{let r=new Set([`Object`]);if(t.typeName.name===`MaybeRefOrGetter`&&r.add(`Function`),t.typeParameters&&t.typeParameters.params[0])for(let a of $S(e,t.typeParameters.params[0],n,!1,i))r.add(a);return Array.from(r)}case`NonNullable`:if(t.typeParameters&&t.typeParameters.params[0])return $S(e,t.typeParameters.params[0],n).filter(e=>e!==`null`);break;case`Extract`:if(t.typeParameters&&t.typeParameters.params[1])return $S(e,t.typeParameters.params[1],n);break;case`Exclude`:case`OmitThisParameter`:if(t.typeParameters&&t.typeParameters.params[0])return $S(e,t.typeParameters.params[0],n);break}}break}case`TSParenthesizedType`:return $S(e,t.typeAnnotation,n);case`TSUnionType`:return eC(e,t.types,n,r,i);case`TSIntersectionType`:return eC(e,t.types,n,r,i).filter(e=>e!==Jb);case`TSMappedType`:{let{typeAnnotation:r,typeParameter:a}=t;if(r&&r.type===`TSIndexedAccessType`&&a&&a.constraint&&i){let t=a.constraint;if(t.type===`TSTypeOperator`&&t.operator===`keyof`&&t.typeAnnotation&&t.typeAnnotation.type===`TSTypeReference`&&t.typeAnnotation.typeName.type===`Identifier`){let o=t.typeAnnotation.typeName.name,s=r.indexType,c=r.objectType;if(c&&c.type===`TSTypeReference`&&c.typeName.type===`Identifier`&&c.typeName.name===o&&s&&s.type===`TSTypeReference`&&s.typeName.type===`Identifier`&&s.typeName.name===a.name){let t=i[o];if(t)return $S(e,t,n)}}}return[Jb]}case`TSEnumDeclaration`:return tC(t);case`TSSymbolKeyword`:return[`Symbol`];case`TSIndexedAccessType`:return eC(e,CS(e,t,n),n,r);case`ClassDeclaration`:return[`Object`];case`TSImportType`:{let r=kS(e,t,RS(e,t.argument,n,t.argument.value));if(r)return $S(e,r,r._ownerScope);break}case`TSTypeQuery`:{let i=t.exprName;if(i.type===`Identifier`){let t=n.declares[i.name];if(t)return $S(e,t,t._ownerScope,r)}break}case`TSTypeOperator`:return $S(e,t.typeAnnotation,n,t.operator===`keyof`);case`TSAnyKeyword`:if(r)return[`String`,`Number`,`Symbol`];break}}catch{}finally{e.silentOnExtendsFailure=a}return[Jb]}function eC(e,t,n,r=!1,i=void 0){return t.length===1?$S(e,t[0],t[0]._ownerScope||n,r,i):[...new Set([].concat(...t.map(t=>$S(e,t,t._ownerScope||n,r,i))))]}function tC(e){let t=new Set;for(let n of e.members)if(n.initializer)switch(n.initializer.type){case`StringLiteral`:t.add(`String`);break;case`NumericLiteral`:t.add(`Number`);break}return t.size?[...t]:[`Number`]}function nC({props:e},t){let n={props:{}};for(let r in e){let i=e[r];n.props[r]=rC(i.key,i.typeAnnotation.typeAnnotation,t)}return n}function rC(e,t,n,r=!0,i=!0){if(i&&t.type===`TSTypeLiteral`){let r=aC(t,`type`);if(r){let i=aC(t,`required`);return rC(e,r,n,i&&i.type===`TSLiteralType`&&i.literal.type===`BooleanLiteral`?!i.literal.value:!0,!1)}}else if(t.type===`TSTypeReference`&&t.typeName.type===`Identifier`){if(t.typeName.name.endsWith(`Constructor`))return bS(e,iC(t.typeName.name),n,r);if(t.typeName.name===`PropType`&&t.typeParameters)return bS(e,t.typeParameters.params[0],n,r)}if((t.type===`TSTypeReference`||t.type===`TSImportType`)&&t.typeParameters)for(let i of t.typeParameters.params){let t=rC(e,i,n,r);if(t)return t}return bS(e,{type:`TSNullKeyword`},n,r)}function iC(e){let t=e.slice(0,-11);switch(t){case`String`:case`Number`:case`Boolean`:return{type:`TS${t}Keyword`};case`Array`:case`Function`:case`Object`:case`Set`:case`Map`:case`WeakSet`:case`WeakMap`:case`Date`:case`Promise`:return{type:`TSTypeReference`,typeName:{type:`Identifier`,name:t}}}return{type:`TSNullKeyword`}}function aC(e,t){let n=e.members.find(e=>e.type===`TSPropertySignature`&&nx(e)===t&&e.typeAnnotation);return n&&n.typeAnnotation.typeAnnotation}function oC(e,t,n){let r=t;if((t.type===`TSTypeReference`||t.type===`TSTypeQuery`||t.type===`TSImportType`)&&(r=kS(e,t,n)),r){if(r.type===`TSFunctionType`)return r.typeAnnotation?.typeAnnotation;if(r.type===`TSDeclareFunction`)return r.returnType}}function sC(e,t,n){if(t.type===`TSTypeReference`){let r=kS(e,t,n);r&&(t=r)}let r;return r=t.type===`TSUnionType`?t.types.flatMap(t=>sC(e,t,n)):[t],r}var cC=`defineModel`;function lC(e,t,n){if(!Qb(t,cC))return!1;e.hasDefineModelCall=!0;let r=t.typeParameters&&t.typeParameters.params[0]||void 0,i,a,o=t.arguments[0]&&Vi(t.arguments[0]),s=o&&(o.type===`StringLiteral`||o.type===`TemplateLiteral`&&o.expressions.length===0);s?(i=o.type===`StringLiteral`?o.value:o.quasis[0].value.cooked,a=t.arguments[1]):(i=`modelValue`,a=o),e.modelDecls[i]&&e.error(`duplicate model name ${JSON.stringify(i)}`,t);let c=a&&e.getString(a),l=!a,u=[];if(a&&a.type===`ObjectExpression`&&!a.properties.some(e=>e.type===`SpreadElement`||e.computed)){let t=0;for(let n=a.properties.length-1;n>=0;n--){let r=a.properties[n],i=a.properties[n+1],o=r.start,s=i?i.start:a.end-1;(r.type===`ObjectProperty`||r.type===`ObjectMethod`)&&(r.key.type===`Identifier`&&(r.key.name===`get`||r.key.name===`set`)||r.key.type===`StringLiteral`&&(r.key.value===`get`||r.key.value===`set`))?c=c.slice(0,o-a.start)+c.slice(s-a.start):(t++,e.s.remove(e.startOffset+o,e.startOffset+s),u.push(r))}t===a.properties.length&&(l=!0,e.s.remove(e.startOffset+(s?o.end:a.start),e.startOffset+a.end))}return e.modelDecls[i]={type:r,options:c,runtimeOptionNodes:u,identifier:n&&n.type===`Identifier`?n.name:void 0},e.bindingMetadata[i]=`props`,e.s.overwrite(e.startOffset+t.callee.start,e.startOffset+t.callee.end,e.helper(`useModel`)),e.s.appendLeft(e.startOffset+(t.arguments.length?t.arguments[0].start:t.end-1),`__props, `+(s?``:`${JSON.stringify(i)}${l?``:`, `}`)),!0}function uC(e){if(!e.hasDefineModelCall)return;let t=!!e.options.isProd,n=``;for(let[r,{type:i,options:a}]of Object.entries(e.modelDecls)){let o=!1,s=``,c=i&&$S(e,i);if(c){let e=c.includes(`Boolean`),n=c.includes(`Function`);c.includes(Jb)&&(e||n?(c=c.filter(e=>e!==Jb),o=!0):c=[`null`]),t?(e||a&&n)&&(s=`type: ${$b(c)}`):s=`type: ${$b(c)}`+(o?`, skipCheck: true`:``)}let l;l=s&&a?e.isTS?`{ ${s}, ...${a} }`:`Object.assign({ ${s} }, ${a})`:s?`{ ${s} }`:a||`{}`,n+=`
118
+ Note: both in 3.2 or with the ignore, the properties in the base type are treated as fallthrough attrs at runtime.`,r,n)}return i}function SS(e,t,n,r){let i={props:{}},a;if(t.nameType){let{name:i,constraint:o}=t.typeParameter;n=KS(n),Object.assign(n.types,fS(dS({},r),{[i]:o})),a=TS(e,t.nameType,n)}else a=TS(e,t.typeParameter.constraint,n);for(let e of a)i.props[e]=bS({type:`Identifier`,name:e},t.typeAnnotation,n,!!t.optional);return i}function CS(e,t,n){if(t.indexType.type===`TSNumberKeyword`)return wS(e,t.objectType,n);let{indexType:r,objectType:i}=t,a=[],o,s;r.type===`TSStringKeyword`?(s=gS(e,i,n),o=Object.keys(s.props)):(o=TS(e,r,n),s=gS(e,i,n));for(let e of o){let t=s.props[e]?.typeAnnotation?.typeAnnotation;t&&(t._ownerScope=s.props[e]._ownerScope,a.push(t))}return a}function wS(e,t,n){if(t.type===`TSArrayType`)return[t.elementType];if(t.type===`TSTupleType`)return t.elementTypes.map(e=>e.type===`TSNamedTupleMember`?e.elementType:e);if(t.type===`TSTypeReference`){if(jS(t)===`Array`&&t.typeParameters)return t.typeParameters.params;{let r=kS(e,t,n);if(r)return wS(e,r,n)}}return e.error(`Failed to resolve element type from target type`,t,n)}function TS(e,t,n,r){switch(t.type){case`StringLiteral`:return[t.value];case`TSLiteralType`:return TS(e,t.literal,n,r);case`TSUnionType`:return t.types.map(t=>TS(e,t,n,r)).flat();case`TemplateLiteral`:return ES(e,t,n);case`TSTypeReference`:{let i=kS(e,t,n);if(i)return TS(e,i,n,r);if(t.typeName.type===`Identifier`){let i=t.typeName.name;if(r&&r[i])return TS(e,r[i],n,r);let a=(i=0)=>TS(e,t.typeParameters.params[i],n,r);switch(i){case`Extract`:return a(1);case`Exclude`:{let e=a(1);return a().filter(t=>!e.includes(t))}case`Uppercase`:return a().map(e=>e.toUpperCase());case`Lowercase`:return a().map(e=>e.toLowerCase());case`Capitalize`:return a().map(Te);case`Uncapitalize`:return a().map(e=>e[0].toLowerCase()+e.slice(1));default:e.error(`Unsupported type when resolving index type`,t.typeName,n)}}}}return e.error(`Failed to resolve index type into finite keys`,t,n)}function ES(e,t,n){if(!t.expressions.length)return[t.quasis[0].value.raw];let r=[],i=t.expressions[0],a=t.quasis[0],o=a?a.value.raw:``,s=TS(e,i,n),c=ES(e,fS(dS({},t),{expressions:t.expressions.slice(1),quasis:a?t.quasis.slice(1):t.quasis}),n);for(let e of s)for(let t of c)r.push(o+e+t);return r}var DS=new Set([`Partial`,`Required`,`Readonly`,`Pick`,`Omit`]);function OS(e,t,n,r,i){let a=gS(e,t.typeParameters.params[0],r,i);switch(n){case`Partial`:{let e={props:{},calls:a.calls};return Object.keys(a.props).forEach(t=>{e.props[t]=fS(dS({},a.props[t]),{optional:!0})}),e}case`Required`:{let e={props:{},calls:a.calls};return Object.keys(a.props).forEach(t=>{e.props[t]=fS(dS({},a.props[t]),{optional:!1})}),e}case`Readonly`:return a;case`Pick`:{let n=TS(e,t.typeParameters.params[1],r,i),o={props:{},calls:a.calls};for(let e of n)o.props[e]=a.props[e];return o}case`Omit`:let n=TS(e,t.typeParameters.params[1],r,i),o={props:{},calls:a.calls};for(let e in a.props)n.includes(e)||(o.props[e]=a.props[e]);return o}}function kS(e,t,n,r,i=!1){let a=!n?.isGenericScope;if(a&&t._resolvedReference)return mS(e,t._resolvedReference._ownerScope),t._resolvedReference;let o=AS(e,n||WS(e),r||jS(t),t,i);return a?t._resolvedReference=o:o}function AS(e,t,n,r,i){if(typeof n==`string`){if(t.imports[n])return LS(e,r,n,t);{let a=r.type===`TSTypeQuery`?i?t.exportedDeclares:t.declares:i?t.exportedTypes:t.types;if(a[n])return a[n];{let t=NS(e);if(t)for(let i of t){let t=r.type===`TSTypeQuery`?i.declares:i.types;if(t[n]){(e.deps||=new Set).add(i.filename);let r=t[n];return r._ownerScope&&r._ownerScope!==i&&e.deps.add(r._ownerScope.filename),r}}}}}else{let a=AS(e,t,n[0],r,i);if(a&&(a.type!==`TSModuleDeclaration`&&(a=a._ns),a))return AS(e,GS(e,a,a._ownerScope||t),n.length>2?n.slice(1):n[n.length-1],r,!a.declare)}}function jS(e){let t=e.type===`TSTypeReference`?e.typeName:e.type===`TSExpressionWithTypeArguments`?e.expression:e.type===`TSImportType`?e.qualifier:e.exprName;return t?.type===`Identifier`?t.name:t?.type===`TSQualifiedName`?MS(t):`default`}function MS(e){return e.type===`Identifier`?[e.name]:[...MS(e.left),e.right.name]}function NS(e){if(e.options.globalTypeFiles){if(!IS(e))throw Error(`[vue/compiler-sfc] globalTypeFiles requires fs access.`);return e.options.globalTypeFiles.map(t=>HS(e,ax(t),!0))}}var PS,FS;function IS(e){if(e.fs)return e.fs;!PS&&FS&&(PS=FS());let t=e.options.fs||PS?.sys;if(t)return e.fs={fileExists(e){return e.endsWith(`.vue.ts`)&&!e.endsWith(`.d.vue.ts`)&&(e=e.replace(/\.ts$/,``)),t.fileExists(e)},readFile(e){return e.endsWith(`.vue.ts`)&&!e.endsWith(`.d.vue.ts`)&&(e=e.replace(/\.ts$/,``)),t.readFile(e)},realpath:t.realpath}}function LS(e,t,n,r){let{source:i,imported:a}=r.imports[n];return kS(e,t,RS(e,t,r,i),a,!0)}function RS(e,t,n,r,i=!0){let a;try{a=IS(e)}catch(r){return e.error(r.message,t,n)}if(!a)return e.error("No fs option provided to `compileScript` in non-Node environment. File system access is required for resolving imported types.",t,n);let o=n.resolvedImportSources[r];if(!o){if(r.startsWith(`..`))o=zS(ox(_d(n.filename),r),a);else if(r[0]===`.`)o=zS(ox(_d(n.filename),r),a);else return e.error(`Type import from non-relative sources is not supported in the browser build.`,t,n);!o&&r[0],o&&=n.resolvedImportSources[r]=ax(o)}return o?(i&&(e.deps||=new Set).add(o),HS(e,o)):e.error(`Failed to resolve import source ${JSON.stringify(r)}.`,t,n)}function zS(e,t){let n=`u`;e.endsWith(`.mjs`)?n=`m`:e.endsWith(`.cjs`)&&(n=`c`),e=e.replace(/\.[cm]?jsx?$/,``);let r=e=>{if(t.fileExists(e))return e},i=()=>r(e+`.ts`)||r(e+`.tsx`)||r(e+`.d.ts`),a=()=>r(e+`.mts`)||r(e+`.d.mts`),o=()=>r(e+`.cts`)||r(e+`.d.cts`);return r(e)||(n===`m`?a()||i():n===`c`?o()||i():i()||a()||o())||r(ox(e,`index.ts`))||r(ox(e,`index.tsx`))||r(ox(e,`index.d.ts`))}var BS=ju(),VS=ju();function HS(e,t,n=!1){let r=n?VS:BS,i=r.get(t);if(i)return i;let a=IS(e),o=a.readFile(t)||``,s=US(t,o,a,e.options.babelParserPlugins),c=new pS(t,o,0,QS(s));return JS(e,s,c,n),r.set(t,c),c}function US(e,t,n,r){let i=yd(e);if(i===`.ts`||i===`.mts`||i===`.tsx`||i===`.cts`||i===`.mtsx`)return bi.parse(t,{plugins:Ux(i.slice(1),r,/\.d\.[cm]?ts$/.test(e)),sourceType:`module`}).program.body;let a=!/\.[cm]?[tj]sx?$/.test(e),o=`${e.slice(0,-i.length)}.d${i}.ts`;if(a&&n.fileExists(o))return bi.parse(n.readFile(o),{plugins:Ux(`ts`,r,!0),sourceType:`module`}).program.body;if(i===`.vue`){let{descriptor:{script:e,scriptSetup:n}}=Yu(t);if(!e&&!n)return[];let i=e?e.loc.start.offset:1/0,a=n?n.loc.start.offset:1/0,o=i<a?e:n,s=i<a?n:e,c=` `.repeat(Math.min(i,a))+o.content;s&&(c+=` `.repeat(s.loc.start.offset-e.loc.end.offset)+s.content);let l=e?.lang||n?.lang;return bi.parse(c,{plugins:Ux(l,r),sourceType:`module`}).program.body}return[]}function WS(e){if(e.scope)return e.scope;let t=`ast`in e?e.ast:e.scriptAst?[...e.scriptAst.body,...e.scriptSetupAst.body]:e.scriptSetupAst.body,n=new pS(e.filename,e.source,`startOffset`in e?e.startOffset:0,`userImports`in e?Object.create(e.userImports):QS(t));return JS(e,t,n),e.scope=n}function GS(e,t,n){if(t._resolvedChildScope)return t._resolvedChildScope;let r=KS(n);if(t.body.type===`TSModuleDeclaration`){let e=t.body;e._ownerScope=r;let n=tx(e.id);r.types[n]=r.exportedTypes[n]=e}else JS(e,t.body.body,r);return t._resolvedChildScope=r}function KS(e){return new pS(e.filename,e.source,e.offset,Object.create(e.imports),Object.create(e.types),Object.create(e.declares))}var qS=/^Import|^Export/;function JS(e,t,n,r=!1){let{types:i,declares:a,exportedTypes:o,exportedDeclares:s,imports:c}=n,l=r?!t.some(e=>qS.test(e.type)):!1;for(let o of t)if(r){if(l)o.declare&&YS(o,i,a);else if(o.type===`TSModuleDeclaration`&&o.global)for(let t of o.body.body)if(t.type===`ExportNamedDeclaration`){if(t.declaration)YS(t.declaration,i,a);else if(t.source){let r=RS(e,t.source,n,t.source.value,!1);for(let e of t.specifiers)if(e.type===`ExportSpecifier`){let t=tx(e.exported),n=e.local.name;r.exportedTypes[n]&&(i[t]=r.exportedTypes[n]),r.exportedDeclares[n]&&(a[t]=r.exportedDeclares[n])}}}else if(t.type===`ExportAllDeclaration`&&t.source){let r=RS(e,t.source,n,t.source.value,!1);Object.assign(i,r.exportedTypes),Object.assign(a,r.exportedDeclares)}else YS(t,i,a)}else YS(o,i,a);if(!r)for(let r of t)if(r.type===`ExportNamedDeclaration`){if(r.declaration)YS(r.declaration,i,a),YS(r.declaration,o,s);else for(let e of r.specifiers)if(e.type===`ExportSpecifier`){let t=e.local.name,a=tx(e.exported);r.source?(c[a]={source:r.source.value,imported:t},o[a]={type:`TSTypeReference`,typeName:{type:`Identifier`,name:t},_ownerScope:n}):i[t]&&(o[a]=i[t])}}else if(r.type===`ExportAllDeclaration`){let t=RS(e,r.source,n,r.source.value);Object.assign(n.exportedTypes,t.exportedTypes)}else r.type===`ExportDefaultDeclaration`&&r.declaration&&(r.declaration.type===`Identifier`?i[r.declaration.name]&&(o.default=i[r.declaration.name]):(YS(r.declaration,i,a,`default`),YS(r.declaration,o,s,`default`)));for(let e of Object.keys(i)){let t=i[e];t._ownerScope||=n,t._ns&&!t._ns._ownerScope&&(t._ns._ownerScope=n)}for(let e of Object.keys(a))a[e]._ownerScope||(a[e]._ownerScope=n)}function YS(e,t,n,r){switch(e.type){case`TSInterfaceDeclaration`:case`TSEnumDeclaration`:case`TSModuleDeclaration`:{if(e.type===`TSModuleDeclaration`&&e.global){let r=e.body;for(let e of r.body)e.type===`ExportNamedDeclaration`&&e.declaration?YS(e.declaration,t,n):YS(e,t,n);break}let i=r||tx(e.id),a=t[i];if(a){if(e.type===`TSModuleDeclaration`){a.type===`TSModuleDeclaration`?XS(a,e):ZS(a,e);break}if(a.type===`TSModuleDeclaration`){t[i]=e,ZS(e,a);break}if(a.type!==e.type)break;e.type===`TSInterfaceDeclaration`?a.body.body.push(...e.body.body):a.members.push(...e.members)}else t[i]=e;break}case`ClassDeclaration`:(r||e.id)&&(t[r||tx(e.id)]=e);break;case`TSTypeAliasDeclaration`:t[e.id.name]=e.typeParameters?e:e.typeAnnotation;break;case`TSDeclareFunction`:e.id&&(n[e.id.name]=e);break;case`VariableDeclaration`:if(e.declare)for(let t of e.declarations)t.id.type===`Identifier`&&t.id.typeAnnotation&&(n[t.id.name]=t.id.typeAnnotation.typeAnnotation);break}}function XS(e,t){let n=e.body,r=t.body;n.type===`TSModuleDeclaration`?r.type===`TSModuleDeclaration`?XS(n,r):r.body.push({type:`ExportNamedDeclaration`,declaration:n,exportKind:`type`,specifiers:[]}):r.type===`TSModuleDeclaration`?n.body.push({type:`ExportNamedDeclaration`,declaration:r,exportKind:`type`,specifiers:[]}):n.body.push(...r.body)}function ZS(e,t){e._ns?XS(e._ns,t):e._ns=t}function QS(e){let t=Object.create(null);for(let n of e)$S(n,t);return t}function $S(e,t){if(e.type===`ImportDeclaration`)for(let n of e.specifiers)t[n.local.name]={imported:ex(n),source:e.source.value}}function eC(e,t,n=t._ownerScope||WS(e),r=!1,i){if(t.leadingComments&&t.leadingComments.some(e=>e.value.includes(`@vue-ignore`)))return[Jb];let a=e.silentOnExtendsFailure;e.silentOnExtendsFailure=!0;try{switch(t.type){case`TSStringKeyword`:return[`String`];case`TSNumberKeyword`:return[`Number`];case`TSBooleanKeyword`:return[`Boolean`];case`TSObjectKeyword`:return[`Object`];case`TSNullKeyword`:return[`null`];case`TSTypeLiteral`:case`TSInterfaceDeclaration`:{let i=new Set,a=t.type===`TSTypeLiteral`?t.members:t.body.body;for(let t of a)if(r)if(t.type===`TSPropertySignature`&&t.key.type===`NumericLiteral`)i.add(`Number`);else if(t.type===`TSIndexSignature`){let r=t.parameters[0].typeAnnotation;if(r&&r.type!==`Noop`){let t=eC(e,r.typeAnnotation,n)[0];if(t===Jb)return[Jb];i.add(t)}}else i.add(`String`);else t.type===`TSCallSignatureDeclaration`||t.type===`TSConstructSignatureDeclaration`?i.add(`Function`):i.add(`Object`);return i.size?Array.from(i):[r?Jb:`Object`]}case`TSPropertySignature`:if(t.typeAnnotation)return eC(e,t.typeAnnotation.typeAnnotation,n);break;case`TSMethodSignature`:case`TSFunctionType`:return[`Function`];case`TSArrayType`:case`TSTupleType`:return[`Array`];case`TSLiteralType`:switch(t.literal.type){case`StringLiteral`:return[`String`];case`BooleanLiteral`:return[`Boolean`];case`NumericLiteral`:case`BigIntLiteral`:return[`Number`];default:return[Jb]}case`TSTypeReference`:{let a;try{a=kS(e,t,n)}catch{}if(a){if(a.type===`TSTypeAliasDeclaration`){if(a.typeAnnotation.type===`TSFunctionType`)return[`Function`];if(t.typeParameters){let n=Object.create(null);return a.typeParameters&&a.typeParameters.params.forEach((e,r)=>{n[e.name]=t.typeParameters.params[r]}),eC(e,a.typeAnnotation,a._ownerScope,r,n)}}return eC(e,a,a._ownerScope,r)}if(t.typeName.type===`Identifier`){if(i&&i[t.typeName.name])return eC(e,i[t.typeName.name],n,r,i);if(r)switch(t.typeName.name){case`String`:case`Array`:case`ArrayLike`:case`Parameters`:case`ConstructorParameters`:case`ReadonlyArray`:return[`String`,`Number`];case`Record`:case`Partial`:case`Required`:case`Readonly`:if(t.typeParameters&&t.typeParameters.params[0])return eC(e,t.typeParameters.params[0],n,!0);break;case`Pick`:case`Extract`:if(t.typeParameters&&t.typeParameters.params[1])return eC(e,t.typeParameters.params[1],n);break;case`Function`:case`Object`:case`Set`:case`Map`:case`WeakSet`:case`WeakMap`:case`Date`:case`Promise`:case`Error`:case`Uppercase`:case`Lowercase`:case`Capitalize`:case`Uncapitalize`:case`ReadonlyMap`:case`ReadonlySet`:return[`String`]}else switch(t.typeName.name){case`Array`:case`Function`:case`Object`:case`Set`:case`Map`:case`WeakSet`:case`WeakMap`:case`Date`:case`Promise`:case`Error`:return[t.typeName.name];case`Partial`:case`Required`:case`Readonly`:case`Record`:case`Pick`:case`Omit`:case`InstanceType`:return[`Object`];case`Uppercase`:case`Lowercase`:case`Capitalize`:case`Uncapitalize`:return[`String`];case`Parameters`:case`ConstructorParameters`:case`ReadonlyArray`:return[`Array`];case`ReadonlyMap`:return[`Map`];case`ReadonlySet`:return[`Set`];case`Ref`:case`ShallowRef`:case`ComputedRef`:case`WritableComputedRef`:return[`Object`];case`MaybeRef`:case`MaybeRefOrGetter`:{let r=new Set([`Object`]);if(t.typeName.name===`MaybeRefOrGetter`&&r.add(`Function`),t.typeParameters&&t.typeParameters.params[0])for(let a of eC(e,t.typeParameters.params[0],n,!1,i))r.add(a);return Array.from(r)}case`NonNullable`:if(t.typeParameters&&t.typeParameters.params[0])return eC(e,t.typeParameters.params[0],n).filter(e=>e!==`null`);break;case`Extract`:if(t.typeParameters&&t.typeParameters.params[1])return eC(e,t.typeParameters.params[1],n);break;case`Exclude`:case`OmitThisParameter`:if(t.typeParameters&&t.typeParameters.params[0])return eC(e,t.typeParameters.params[0],n);break}}break}case`TSParenthesizedType`:return eC(e,t.typeAnnotation,n);case`TSUnionType`:return tC(e,t.types,n,r,i);case`TSIntersectionType`:return tC(e,t.types,n,r,i).filter(e=>e!==Jb);case`TSMappedType`:{let{typeAnnotation:r,typeParameter:a}=t;if(r&&r.type===`TSIndexedAccessType`&&a&&a.constraint&&i){let t=a.constraint;if(t.type===`TSTypeOperator`&&t.operator===`keyof`&&t.typeAnnotation&&t.typeAnnotation.type===`TSTypeReference`&&t.typeAnnotation.typeName.type===`Identifier`){let o=t.typeAnnotation.typeName.name,s=r.indexType,c=r.objectType;if(c&&c.type===`TSTypeReference`&&c.typeName.type===`Identifier`&&c.typeName.name===o&&s&&s.type===`TSTypeReference`&&s.typeName.type===`Identifier`&&s.typeName.name===a.name){let t=i[o];if(t)return eC(e,t,n)}}}return[Jb]}case`TSEnumDeclaration`:return nC(t);case`TSSymbolKeyword`:return[`Symbol`];case`TSIndexedAccessType`:return tC(e,CS(e,t,n),n,r);case`ClassDeclaration`:return[`Object`];case`TSImportType`:{let r=kS(e,t,RS(e,t.argument,n,t.argument.value));if(r)return eC(e,r,r._ownerScope);break}case`TSTypeQuery`:{let i=t.exprName;if(i.type===`Identifier`){let t=n.declares[i.name];if(t)return eC(e,t,t._ownerScope,r)}break}case`TSTypeOperator`:return eC(e,t.typeAnnotation,n,t.operator===`keyof`);case`TSAnyKeyword`:if(r)return[`String`,`Number`,`Symbol`];break}}catch{}finally{e.silentOnExtendsFailure=a}return[Jb]}function tC(e,t,n,r=!1,i=void 0){return t.length===1?eC(e,t[0],t[0]._ownerScope||n,r,i):[...new Set([].concat(...t.map(t=>eC(e,t,t._ownerScope||n,r,i))))]}function nC(e){let t=new Set;for(let n of e.members)if(n.initializer)switch(n.initializer.type){case`StringLiteral`:t.add(`String`);break;case`NumericLiteral`:t.add(`Number`);break}return t.size?[...t]:[`Number`]}function rC({props:e},t){let n={props:{}};for(let r in e){let i=e[r];n.props[r]=iC(i.key,i.typeAnnotation.typeAnnotation,t)}return n}function iC(e,t,n,r=!0,i=!0){if(i&&t.type===`TSTypeLiteral`){let r=oC(t,`type`);if(r){let i=oC(t,`required`);return iC(e,r,n,i&&i.type===`TSLiteralType`&&i.literal.type===`BooleanLiteral`?!i.literal.value:!0,!1)}}else if(t.type===`TSTypeReference`&&t.typeName.type===`Identifier`){if(t.typeName.name.endsWith(`Constructor`))return bS(e,aC(t.typeName.name),n,r);if(t.typeName.name===`PropType`&&t.typeParameters)return bS(e,t.typeParameters.params[0],n,r)}if((t.type===`TSTypeReference`||t.type===`TSImportType`)&&t.typeParameters)for(let i of t.typeParameters.params){let t=iC(e,i,n,r);if(t)return t}return bS(e,{type:`TSNullKeyword`},n,r)}function aC(e){let t=e.slice(0,-11);switch(t){case`String`:case`Number`:case`Boolean`:return{type:`TS${t}Keyword`};case`Array`:case`Function`:case`Object`:case`Set`:case`Map`:case`WeakSet`:case`WeakMap`:case`Date`:case`Promise`:return{type:`TSTypeReference`,typeName:{type:`Identifier`,name:t}}}return{type:`TSNullKeyword`}}function oC(e,t){let n=e.members.find(e=>e.type===`TSPropertySignature`&&nx(e)===t&&e.typeAnnotation);return n&&n.typeAnnotation.typeAnnotation}function sC(e,t,n){let r=t;if((t.type===`TSTypeReference`||t.type===`TSTypeQuery`||t.type===`TSImportType`)&&(r=kS(e,t,n)),r){if(r.type===`TSFunctionType`)return r.typeAnnotation?.typeAnnotation;if(r.type===`TSDeclareFunction`)return r.returnType}}function cC(e,t,n){if(t.type===`TSTypeReference`){let r=kS(e,t,n);r&&(t=r)}let r;return r=t.type===`TSUnionType`?t.types.flatMap(t=>cC(e,t,n)):[t],r}var lC=`defineModel`;function uC(e,t,n){if(!Qb(t,lC))return!1;e.hasDefineModelCall=!0;let r=t.typeParameters&&t.typeParameters.params[0]||void 0,i,a,o=t.arguments[0]&&Vi(t.arguments[0]),s=o&&(o.type===`StringLiteral`||o.type===`TemplateLiteral`&&o.expressions.length===0);s?(i=o.type===`StringLiteral`?o.value:o.quasis[0].value.cooked,a=t.arguments[1]):(i=`modelValue`,a=o),e.modelDecls[i]&&e.error(`duplicate model name ${JSON.stringify(i)}`,t);let c=a&&e.getString(a),l=!a,u=[];if(a&&a.type===`ObjectExpression`&&!a.properties.some(e=>e.type===`SpreadElement`||e.computed)){let t=0;for(let n=a.properties.length-1;n>=0;n--){let r=a.properties[n],i=a.properties[n+1],o=r.start,s=i?i.start:a.end-1;(r.type===`ObjectProperty`||r.type===`ObjectMethod`)&&(r.key.type===`Identifier`&&(r.key.name===`get`||r.key.name===`set`)||r.key.type===`StringLiteral`&&(r.key.value===`get`||r.key.value===`set`))?c=c.slice(0,o-a.start)+c.slice(s-a.start):(t++,e.s.remove(e.startOffset+o,e.startOffset+s),u.push(r))}t===a.properties.length&&(l=!0,e.s.remove(e.startOffset+(s?o.end:a.start),e.startOffset+a.end))}return e.modelDecls[i]={type:r,options:c,runtimeOptionNodes:u,identifier:n&&n.type===`Identifier`?n.name:void 0},e.bindingMetadata[i]=`props`,e.s.overwrite(e.startOffset+t.callee.start,e.startOffset+t.callee.end,e.helper(`useModel`)),e.s.appendLeft(e.startOffset+(t.arguments.length?t.arguments[0].start:t.end-1),`__props, `+(s?``:`${JSON.stringify(i)}${l?``:`, `}`)),!0}function dC(e){if(!e.hasDefineModelCall)return;let t=!!e.options.isProd,n=``;for(let[r,{type:i,options:a}]of Object.entries(e.modelDecls)){let o=!1,s=``,c=i&&eC(e,i);if(c){let e=c.includes(`Boolean`),n=c.includes(`Function`);c.includes(Jb)&&(e||n?(c=c.filter(e=>e!==Jb),o=!0):c=[`null`]),t?(e||a&&n)&&(s=`type: ${$b(c)}`):s=`type: ${$b(c)}`+(o?`, skipCheck: true`:``)}let l;l=s&&a?e.isTS?`{ ${s}, ...${a} }`:`Object.assign({ ${s} }, ${a})`:s?`{ ${s} }`:a||`{}`,n+=`
119
119
  ${JSON.stringify(r)}: ${l},`;let u=JSON.stringify(r===`modelValue`?`modelModifiers`:`${r}Modifiers`);n+=`
120
120
  ${u}: {},`}return`{${n}
121
- }`}var dC=`defineProps`,fC=`withDefaults`;function pC(e,t,n,r=!1){if(!Qb(t,dC))return mC(e,t,n);if(e.hasDefinePropsCall&&e.error(`duplicate ${dC}() call`,t),e.hasDefinePropsCall=!0,e.propsRuntimeDecl=t.arguments[0],e.propsRuntimeDecl)for(let t of hx(e.propsRuntimeDecl))t in e.bindingMetadata||(e.bindingMetadata[t]=`props`);return t.typeParameters&&(e.propsRuntimeDecl&&e.error(`${dC}() cannot accept both type and non-type arguments at the same time. Use one or the other.`,t),e.propsTypeDecl=t.typeParameters.params[0]),!r&&n&&n.type===`ObjectPattern`&&SC(e,n),e.propsCall=t,e.propsDecl=n,!0}function mC(e,t,n){return Qb(t,fC)?(pC(e,t.arguments[0],n,!0)||e.error(`${fC}' first argument must be a ${dC} call.`,t.arguments[0]||t),e.propsRuntimeDecl&&e.error(`${fC} can only be used with type-based ${dC} declaration.`,t),n&&n.type===`ObjectPattern`&&e.warn(`${fC}() is unnecessary when using destructure with ${dC}().
121
+ }`}var fC=`defineProps`,pC=`withDefaults`;function mC(e,t,n,r=!1){if(!Qb(t,fC))return hC(e,t,n);if(e.hasDefinePropsCall&&e.error(`duplicate ${fC}() call`,t),e.hasDefinePropsCall=!0,e.propsRuntimeDecl=t.arguments[0],e.propsRuntimeDecl)for(let t of hx(e.propsRuntimeDecl))t in e.bindingMetadata||(e.bindingMetadata[t]=`props`);return t.typeParameters&&(e.propsRuntimeDecl&&e.error(`${fC}() cannot accept both type and non-type arguments at the same time. Use one or the other.`,t),e.propsTypeDecl=t.typeParameters.params[0]),!r&&n&&n.type===`ObjectPattern`&&CC(e,n),e.propsCall=t,e.propsDecl=n,!0}function hC(e,t,n){return Qb(t,pC)?(mC(e,t.arguments[0],n,!0)||e.error(`${pC}' first argument must be a ${fC} call.`,t.arguments[0]||t),e.propsRuntimeDecl&&e.error(`${pC} can only be used with type-based ${fC} declaration.`,t),n&&n.type===`ObjectPattern`&&e.warn(`${pC}() is unnecessary when using destructure with ${fC}().
122
122
  Reactive destructure will be disabled when using withDefaults().
123
- Prefer using destructure default values, e.g. const { foo = 1 } = defineProps(...). `,t.callee),e.propsRuntimeDefaults=t.arguments[1],e.propsRuntimeDefaults||e.error(`The 2nd argument of ${fC} is required.`,t),e.propsCall=t,!0):!1}function hC(e){let t;if(e.propsRuntimeDecl){if(t=e.getString(e.propsRuntimeDecl).trim(),e.propsDestructureDecl){let n=[];for(let t in e.propsDestructuredBindings){let r=bC(e,t),i=cx(t);r&&n.push(`${i}: ${r.valueString}${r.needSkipFactory?`, __skip_${i}: true`:``}`)}n.length&&(t=`/*@__PURE__*/${e.helper(`mergeDefaults`)}(${t}, {
123
+ Prefer using destructure default values, e.g. const { foo = 1 } = defineProps(...). `,t.callee),e.propsRuntimeDefaults=t.arguments[1],e.propsRuntimeDefaults||e.error(`The 2nd argument of ${pC} is required.`,t),e.propsCall=t,!0):!1}function gC(e){let t;if(e.propsRuntimeDecl){if(t=e.getString(e.propsRuntimeDecl).trim(),e.propsDestructureDecl){let n=[];for(let t in e.propsDestructuredBindings){let r=xC(e,t),i=cx(t);r&&n.push(`${i}: ${r.valueString}${r.needSkipFactory?`, __skip_${i}: true`:``}`)}n.length&&(t=`/*@__PURE__*/${e.helper(`mergeDefaults`)}(${t}, {
124
124
  ${n.join(`,
125
125
  `)}
126
- })`)}}else e.propsTypeDecl&&(t=gC(e));let n=uC(e);return t&&n?`/*@__PURE__*/${e.helper(`mergeModels`)}(${t}, ${n})`:n||t}function gC(e){let t=_C(e,e.propsTypeDecl);if(!t.length)return;let n=[],r=yC(e);for(let i of t)n.push(vC(e,i,r)),`bindingMetadata`in e&&!(i.key in e.bindingMetadata)&&(e.bindingMetadata[i.key]=`props`);let i=`{
126
+ })`)}}else e.propsTypeDecl&&(t=_C(e));let n=dC(e);return t&&n?`/*@__PURE__*/${e.helper(`mergeModels`)}(${t}, ${n})`:n||t}function _C(e){let t=vC(e,e.propsTypeDecl);if(!t.length)return;let n=[],r=bC(e);for(let i of t)n.push(yC(e,i,r)),`bindingMetadata`in e&&!(i.key in e.bindingMetadata)&&(e.bindingMetadata[i.key]=`props`);let i=`{
127
127
  ${n.join(`,
128
128
  `)}
129
- }`;return e.propsRuntimeDefaults&&!r&&(i=`/*@__PURE__*/${e.helper(`mergeDefaults`)}(${i}, ${e.getString(e.propsRuntimeDefaults)})`),i}function _C(e,t){let n=[],r=gS(e,t);for(let t in r.props){let i=r.props[t],a=$S(e,i),o=!1;a.includes(Jb)&&(a.includes(`Boolean`)||a.includes(`Function`)?(a=a.filter(e=>e!==Jb),o=!0):a=[`null`]),n.push({key:t,required:!i.optional,type:a||[`null`],skipCheck:o})}return n}function vC(e,{key:t,required:n,type:r,skipCheck:i},a){let o,s=bC(e,t,r);if(s)o=`default: ${s.valueString}${s.needSkipFactory?`, skipFactory: true`:``}`;else if(a){let n=e.propsRuntimeDefaults.properties.find(e=>e.type===`SpreadElement`?!1:Yb(e.key,e.computed)===t);if(n)if(n.type===`ObjectProperty`)o=`default: ${e.getString(n.value)}`;else{let t=``;if(n.params.length){let r=n.params[0].start,i=n.params[n.params.length-1].end;t=e.getString({start:r,end:i})}o=`${n.async?`async `:``}${n.kind===`method`?``:`${n.kind} `}default(${t}) ${e.getString(n.body)}`}}let c=cx(t);return e.options.isProd?r.some(e=>e===`Boolean`||(!a||o)&&e===`Function`)?`${c}: { ${Xb([`type: ${$b(r)}`,o])} }`:e.isCE?o?`${c}: ${`{ ${o}, type: ${$b(r)} }`}`:`${c}: {type: ${$b(r)}}`:`${c}: ${o?`{ ${o} }`:`{}`}`:`${c}: { ${Xb([`type: ${$b(r)}`,`required: ${n}`,i&&`skipCheck: true`,o])} }`}function yC(e){return!!(e.propsRuntimeDefaults&&e.propsRuntimeDefaults.type===`ObjectExpression`&&e.propsRuntimeDefaults.properties.every(e=>e.type!==`SpreadElement`&&(!e.computed||e.key.type.endsWith(`Literal`))))}function bC(e,t,n){let r=e.propsDestructuredBindings[t],i=r&&r.default;if(i){let r=e.getString(i),a=Vi(i);if(n&&n.length&&!n.includes(`null`)){let r=xC(a);r&&!n.includes(r)&&e.error(`Default value of prop "${t}" does not match declared type.`,a)}let o=!n&&(Ii(a)||a.type===`Identifier`);return{valueString:!o&&!Zb(a)&&!n?.includes(`Function`)?`() => (${r})`:r,needSkipFactory:o}}}function xC(e){switch(e.type){case`StringLiteral`:return`String`;case`NumericLiteral`:return`Number`;case`BooleanLiteral`:return`Boolean`;case`ObjectExpression`:return`Object`;case`ArrayExpression`:return`Array`;case`FunctionExpression`:case`ArrowFunctionExpression`:return`Function`}}function SC(e,t){if(e.options.propsDestructure===`error`)e.error(`Props destructure is explicitly prohibited via config.`,t);else if(e.options.propsDestructure===!1)return;e.propsDestructureDecl=t;let n=(t,n,r)=>{e.propsDestructuredBindings[t]={local:n,default:r},n!==t&&(e.bindingMetadata[n]=`props-aliased`,(e.bindingMetadata.__propsAliases||(e.bindingMetadata.__propsAliases={}))[n]=t)};for(let r of t.properties)if(r.type===`ObjectProperty`){let t=Yb(r.key,r.computed);if(t||e.error(`${dC}() destructure cannot use computed key.`,r.key),r.value.type===`AssignmentPattern`){let{left:i,right:a}=r.value;i.type!==`Identifier`&&e.error(`${dC}() destructure does not support nested patterns.`,i),n(t,i.name,a)}else r.value.type===`Identifier`?n(t,r.value.name):e.error(`${dC}() destructure does not support nested patterns.`,r.value)}else e.propsDestructureRestId=r.argument.name,e.bindingMetadata[e.propsDestructureRestId]=`setup-reactive-const`}function CC(e,t){if(e.options.propsDestructure===!1)return;let n=Object.create(null),r=[n],i=n,a=new WeakSet,o=[],s=Object.create(null);for(let t in e.propsDestructuredBindings){let{local:r}=e.propsDestructuredBindings[t];n[r]=!0,s[r]=t}function c(){r.push(i=Object.create(i))}function l(){r.pop(),i=r[r.length-1]||null}function u(t){a.add(t),i?i[t.name]=!1:e.error(`registerBinding called without active scope, something is wrong.`,t)}function d(e,t=!1){for(let n of e.body)if(n.type===`VariableDeclaration`)f(n,t);else if(n.type===`FunctionDeclaration`||n.type===`ClassDeclaration`){if(n.declare||!n.id)continue;u(n.id)}else n.type===`ExportNamedDeclaration`&&n.declaration&&n.declaration.type===`VariableDeclaration`?f(n.declaration,t):n.type===`LabeledStatement`&&n.body.type===`VariableDeclaration`&&f(n.body,t)}function f(e,t=!1){if(!e.declare)for(let n of e.declarations){let e=t&&n.init&&Qb(Vi(n.init),`defineProps`);for(let t of Ni(n.id))e?a.add(t):u(t)}}function p(t,n,r){(n.type===`AssignmentExpression`&&t===n.left||n.type===`UpdateExpression`)&&e.error(`Cannot assign to destructured props as they are readonly.`,t),Li(n)&&n.shorthand?(!n.inPattern||Ei(n,r))&&e.s.appendLeft(t.end+e.startOffset,`: ${Oe(s[t.name])}`):e.s.overwrite(t.start+e.startOffset,t.end+e.startOffset,Oe(s[t.name]))}function m(t,n,r=n){if(Qb(t,r)){let r=Vi(t.arguments[0]);r.type===`Identifier`&&i[r.name]&&e.error(`"${r.name}" is a destructured prop and should not be passed directly to ${n}(). Pass a getter () => ${r.name} instead.`,r)}}let h=e.scriptSetupAst;d(h,!0),Ci(h,{enter(e,n){if(n&&o.push(n),n&&n.type.startsWith(`TS`)&&!Bi.includes(n.type))return this.skip();if(m(e,`watch`,t.watch),m(e,`toRef`,t.toRef),Ii(e)){c(),Oi(e,u),e.body.type===`BlockStatement`&&d(e.body);return}if(e.type===`CatchClause`){c(),e.param&&e.param.type===`Identifier`&&u(e.param),d(e.body);return}if(e.type===`ForOfStatement`||e.type===`ForInStatement`||e.type===`ForStatement`){c();let t=e.type===`ForStatement`?e.init:e.left;t&&t.type===`VariableDeclaration`&&f(t),e.body.type===`BlockStatement`&&d(e.body);return}if(e.type===`BlockStatement`&&!Ii(n)){c(),d(e);return}e.type===`Identifier`&&Ti(e,n,o)&&!a.has(e)&&i[e.name]&&p(e,n,o)},leave(e,t){t&&o.pop(),(e.type===`BlockStatement`&&!Ii(t)||Ii(e)||e.type===`CatchClause`||e.type===`ForOfStatement`||e.type===`ForInStatement`||e.type===`ForStatement`)&&l()}})}var wC=`defineEmits`;function TC(e,t,n){return Qb(t,wC)?(e.hasDefineEmitCall&&e.error(`duplicate ${wC}() call`,t),e.hasDefineEmitCall=!0,e.emitsRuntimeDecl=t.arguments[0],t.typeParameters&&(e.emitsRuntimeDecl&&e.error(`${wC}() cannot accept both type and non-type arguments at the same time. Use one or the other.`,t),e.emitsTypeDecl=t.typeParameters.params[0]),e.emitDecl=n,!0):!1}function EC(e){let t=``;if(e.emitsRuntimeDecl)t=e.getString(e.emitsRuntimeDecl).trim();else if(e.emitsTypeDecl){let n=DC(e);t=n.size?`[${Array.from(n).map(e=>JSON.stringify(e)).join(`, `)}]`:``}if(e.hasDefineModelCall){let n=`[${Object.keys(e.modelDecls).map(e=>JSON.stringify(`update:${e}`)).join(`, `)}]`;t=t?`/*@__PURE__*/${e.helper(`mergeModels`)}(${t}, ${n})`:n}return t}function DC(e){let t=new Set,n=e.emitsTypeDecl;if(n.type===`TSFunctionType`)return OC(e,n.parameters[0],t),t;let{props:r,calls:i}=gS(e,n),a=!1;for(let e in r)t.add(e),a=!0;if(i){a&&e.error(`defineEmits() type cannot mixed call signature and property syntax.`,n);for(let n of i)OC(e,n.parameters[0],t)}return t}function OC(e,t,n){if(t.type===`Identifier`&&t.typeAnnotation&&t.typeAnnotation.type===`TSTypeAnnotation`){let r=sC(e,t.typeAnnotation.typeAnnotation);for(let e of r)e.type===`TSLiteralType`&&e.literal.type!==`UnaryExpression`&&e.literal.type!==`TemplateLiteral`&&n.add(String(e.literal.value))}}var kC=`defineExpose`;function AC(e,t){return Qb(t,kC)?(e.hasDefineExposeCall&&e.error(`duplicate ${kC}() call`,t),e.hasDefineExposeCall=!0,!0):!1}var jC=`defineSlots`;function MC(e,t,n){return Qb(t,jC)?(e.hasDefineSlotsCall&&e.error(`duplicate ${jC}() call`,t),e.hasDefineSlotsCall=!0,t.arguments.length>0&&e.error(`${jC}() cannot accept arguments`,t),n&&e.s.overwrite(e.startOffset+t.start,e.startOffset+t.end,`${e.helper(`useSlots`)}()`),!0):!1}var NC=`defineOptions`;function PC(e,t){if(!Qb(t,NC))return!1;if(e.hasDefineOptionsCall&&e.error(`duplicate ${NC}() call`,t),t.typeParameters&&e.error(`${NC}() cannot accept type arguments`,t),!t.arguments[0])return!0;e.hasDefineOptionsCall=!0,e.optionsRuntimeDecl=Vi(t.arguments[0]);let n,r,i,a;if(e.optionsRuntimeDecl.type===`ObjectExpression`){for(let t of e.optionsRuntimeDecl.properties)if((t.type===`ObjectProperty`||t.type===`ObjectMethod`)&&t.key.type===`Identifier`)switch(t.key.name){case`props`:n=t;break;case`emits`:r=t;break;case`expose`:i=t;break;case`slots`:a=t;break}}return n&&e.error(`${NC}() cannot be used to declare props. Use ${dC}() instead.`,n),r&&e.error(`${NC}() cannot be used to declare emits. Use ${wC}() instead.`,r),i&&e.error(`${NC}() cannot be used to declare expose. Use ${kC}() instead.`,i),a&&e.error(`${NC}() cannot be used to declare slots. Use ${jC}() instead.`,a),!0}function FC(e,t,n,r){let i=t.argument.extra&&t.argument.extra.parenthesized?t.argument.extra.parenStart:t.argument.start,a=e.startOffset,o=e.descriptor.source.slice(i+a,t.argument.end+a),s=/\bawait\b/.test(o);e.s.overwrite(t.start+a,i+a,`${n?`;`:``}(
129
+ }`;return e.propsRuntimeDefaults&&!r&&(i=`/*@__PURE__*/${e.helper(`mergeDefaults`)}(${i}, ${e.getString(e.propsRuntimeDefaults)})`),i}function vC(e,t){let n=[],r=gS(e,t);for(let t in r.props){let i=r.props[t],a=eC(e,i),o=!1;a.includes(Jb)&&(a.includes(`Boolean`)||a.includes(`Function`)?(a=a.filter(e=>e!==Jb),o=!0):a=[`null`]),n.push({key:t,required:!i.optional,type:a||[`null`],skipCheck:o})}return n}function yC(e,{key:t,required:n,type:r,skipCheck:i},a){let o,s=xC(e,t,r);if(s)o=`default: ${s.valueString}${s.needSkipFactory?`, skipFactory: true`:``}`;else if(a){let n=e.propsRuntimeDefaults.properties.find(e=>e.type===`SpreadElement`?!1:Yb(e.key,e.computed)===t);if(n)if(n.type===`ObjectProperty`)o=`default: ${e.getString(n.value)}`;else{let t=``;if(n.params.length){let r=n.params[0].start,i=n.params[n.params.length-1].end;t=e.getString({start:r,end:i})}o=`${n.async?`async `:``}${n.kind===`method`?``:`${n.kind} `}default(${t}) ${e.getString(n.body)}`}}let c=cx(t);return e.options.isProd?r.some(e=>e===`Boolean`||(!a||o)&&e===`Function`)?`${c}: { ${Xb([`type: ${$b(r)}`,o])} }`:e.isCE?o?`${c}: ${`{ ${o}, type: ${$b(r)} }`}`:`${c}: {type: ${$b(r)}}`:`${c}: ${o?`{ ${o} }`:`{}`}`:`${c}: { ${Xb([`type: ${$b(r)}`,`required: ${n}`,i&&`skipCheck: true`,o])} }`}function bC(e){return!!(e.propsRuntimeDefaults&&e.propsRuntimeDefaults.type===`ObjectExpression`&&e.propsRuntimeDefaults.properties.every(e=>e.type!==`SpreadElement`&&(!e.computed||e.key.type.endsWith(`Literal`))))}function xC(e,t,n){let r=e.propsDestructuredBindings[t],i=r&&r.default;if(i){let r=e.getString(i),a=Vi(i);if(n&&n.length&&!n.includes(`null`)){let r=SC(a);r&&!n.includes(r)&&e.error(`Default value of prop "${t}" does not match declared type.`,a)}let o=!n&&(Ii(a)||a.type===`Identifier`);return{valueString:!o&&!Zb(a)&&!n?.includes(`Function`)?`() => (${r})`:r,needSkipFactory:o}}}function SC(e){switch(e.type){case`StringLiteral`:return`String`;case`NumericLiteral`:return`Number`;case`BooleanLiteral`:return`Boolean`;case`ObjectExpression`:return`Object`;case`ArrayExpression`:return`Array`;case`FunctionExpression`:case`ArrowFunctionExpression`:return`Function`}}function CC(e,t){if(e.options.propsDestructure===`error`)e.error(`Props destructure is explicitly prohibited via config.`,t);else if(e.options.propsDestructure===!1)return;e.propsDestructureDecl=t;let n=(t,n,r)=>{e.propsDestructuredBindings[t]={local:n,default:r},n!==t&&(e.bindingMetadata[n]=`props-aliased`,(e.bindingMetadata.__propsAliases||(e.bindingMetadata.__propsAliases={}))[n]=t)};for(let r of t.properties)if(r.type===`ObjectProperty`){let t=Yb(r.key,r.computed);if(t||e.error(`${fC}() destructure cannot use computed key.`,r.key),r.value.type===`AssignmentPattern`){let{left:i,right:a}=r.value;i.type!==`Identifier`&&e.error(`${fC}() destructure does not support nested patterns.`,i),n(t,i.name,a)}else r.value.type===`Identifier`?n(t,r.value.name):e.error(`${fC}() destructure does not support nested patterns.`,r.value)}else e.propsDestructureRestId=r.argument.name,e.bindingMetadata[e.propsDestructureRestId]=`setup-reactive-const`}function wC(e,t){if(e.options.propsDestructure===!1)return;let n=Object.create(null),r=[n],i=n,a=new WeakSet,o=[],s=Object.create(null);for(let t in e.propsDestructuredBindings){let{local:r}=e.propsDestructuredBindings[t];n[r]=!0,s[r]=t}function c(){r.push(i=Object.create(i))}function l(){r.pop(),i=r[r.length-1]||null}function u(t){a.add(t),i?i[t.name]=!1:e.error(`registerBinding called without active scope, something is wrong.`,t)}function d(e,t=!1){for(let n of e.body)if(n.type===`VariableDeclaration`)f(n,t);else if(n.type===`FunctionDeclaration`||n.type===`ClassDeclaration`){if(n.declare||!n.id)continue;u(n.id)}else n.type===`ExportNamedDeclaration`&&n.declaration&&n.declaration.type===`VariableDeclaration`?f(n.declaration,t):n.type===`LabeledStatement`&&n.body.type===`VariableDeclaration`&&f(n.body,t)}function f(e,t=!1){if(!e.declare)for(let n of e.declarations){let e=t&&n.init&&Qb(Vi(n.init),`defineProps`);for(let t of Ni(n.id))e?a.add(t):u(t)}}function p(t,n,r){(n.type===`AssignmentExpression`&&t===n.left||n.type===`UpdateExpression`)&&e.error(`Cannot assign to destructured props as they are readonly.`,t),Li(n)&&n.shorthand?(!n.inPattern||Ei(n,r))&&e.s.appendLeft(t.end+e.startOffset,`: ${Oe(s[t.name])}`):e.s.overwrite(t.start+e.startOffset,t.end+e.startOffset,Oe(s[t.name]))}function m(t,n,r=n){if(Qb(t,r)){let r=Vi(t.arguments[0]);r.type===`Identifier`&&i[r.name]&&e.error(`"${r.name}" is a destructured prop and should not be passed directly to ${n}(). Pass a getter () => ${r.name} instead.`,r)}}let h=e.scriptSetupAst;d(h,!0),Ci(h,{enter(e,n){if(n&&o.push(n),n&&n.type.startsWith(`TS`)&&!Bi.includes(n.type))return this.skip();if(m(e,`watch`,t.watch),m(e,`toRef`,t.toRef),Ii(e)){c(),Oi(e,u),e.body.type===`BlockStatement`&&d(e.body);return}if(e.type===`CatchClause`){c(),e.param&&e.param.type===`Identifier`&&u(e.param),d(e.body);return}if(e.type===`ForOfStatement`||e.type===`ForInStatement`||e.type===`ForStatement`){c();let t=e.type===`ForStatement`?e.init:e.left;t&&t.type===`VariableDeclaration`&&f(t),e.body.type===`BlockStatement`&&d(e.body);return}if(e.type===`BlockStatement`&&!Ii(n)){c(),d(e);return}e.type===`Identifier`&&Ti(e,n,o)&&!a.has(e)&&i[e.name]&&p(e,n,o)},leave(e,t){t&&o.pop(),(e.type===`BlockStatement`&&!Ii(t)||Ii(e)||e.type===`CatchClause`||e.type===`ForOfStatement`||e.type===`ForInStatement`||e.type===`ForStatement`)&&l()}})}var TC=`defineEmits`;function EC(e,t,n){return Qb(t,TC)?(e.hasDefineEmitCall&&e.error(`duplicate ${TC}() call`,t),e.hasDefineEmitCall=!0,e.emitsRuntimeDecl=t.arguments[0],t.typeParameters&&(e.emitsRuntimeDecl&&e.error(`${TC}() cannot accept both type and non-type arguments at the same time. Use one or the other.`,t),e.emitsTypeDecl=t.typeParameters.params[0]),e.emitDecl=n,!0):!1}function DC(e){let t=``;if(e.emitsRuntimeDecl)t=e.getString(e.emitsRuntimeDecl).trim();else if(e.emitsTypeDecl){let n=OC(e);t=n.size?`[${Array.from(n).map(e=>JSON.stringify(e)).join(`, `)}]`:``}if(e.hasDefineModelCall){let n=`[${Object.keys(e.modelDecls).map(e=>JSON.stringify(`update:${e}`)).join(`, `)}]`;t=t?`/*@__PURE__*/${e.helper(`mergeModels`)}(${t}, ${n})`:n}return t}function OC(e){let t=new Set,n=e.emitsTypeDecl;if(n.type===`TSFunctionType`)return kC(e,n.parameters[0],t),t;let{props:r,calls:i}=gS(e,n),a=!1;for(let e in r)t.add(e),a=!0;if(i){a&&e.error(`defineEmits() type cannot mixed call signature and property syntax.`,n);for(let n of i)kC(e,n.parameters[0],t)}return t}function kC(e,t,n){if(t.type===`Identifier`&&t.typeAnnotation&&t.typeAnnotation.type===`TSTypeAnnotation`){let r=cC(e,t.typeAnnotation.typeAnnotation);for(let e of r)e.type===`TSLiteralType`&&e.literal.type!==`UnaryExpression`&&e.literal.type!==`TemplateLiteral`&&n.add(String(e.literal.value))}}var AC=`defineExpose`;function jC(e,t){return Qb(t,AC)?(e.hasDefineExposeCall&&e.error(`duplicate ${AC}() call`,t),e.hasDefineExposeCall=!0,!0):!1}var MC=`defineSlots`;function NC(e,t,n){return Qb(t,MC)?(e.hasDefineSlotsCall&&e.error(`duplicate ${MC}() call`,t),e.hasDefineSlotsCall=!0,t.arguments.length>0&&e.error(`${MC}() cannot accept arguments`,t),n&&e.s.overwrite(e.startOffset+t.start,e.startOffset+t.end,`${e.helper(`useSlots`)}()`),!0):!1}var PC=`defineOptions`;function FC(e,t){if(!Qb(t,PC))return!1;if(e.hasDefineOptionsCall&&e.error(`duplicate ${PC}() call`,t),t.typeParameters&&e.error(`${PC}() cannot accept type arguments`,t),!t.arguments[0])return!0;e.hasDefineOptionsCall=!0,e.optionsRuntimeDecl=Vi(t.arguments[0]);let n,r,i,a;if(e.optionsRuntimeDecl.type===`ObjectExpression`){for(let t of e.optionsRuntimeDecl.properties)if((t.type===`ObjectProperty`||t.type===`ObjectMethod`)&&t.key.type===`Identifier`)switch(t.key.name){case`props`:n=t;break;case`emits`:r=t;break;case`expose`:i=t;break;case`slots`:a=t;break}}return n&&e.error(`${PC}() cannot be used to declare props. Use ${fC}() instead.`,n),r&&e.error(`${PC}() cannot be used to declare emits. Use ${TC}() instead.`,r),i&&e.error(`${PC}() cannot be used to declare expose. Use ${AC}() instead.`,i),a&&e.error(`${PC}() cannot be used to declare slots. Use ${MC}() instead.`,a),!0}function IC(e,t,n,r){let i=t.argument.extra&&t.argument.extra.parenthesized?t.argument.extra.parenStart:t.argument.start,a=e.startOffset,o=e.descriptor.source.slice(i+a,t.argument.end+a),s=/\bawait\b/.test(o);e.s.overwrite(t.start+a,i+a,`${n?`;`:``}(
130
130
  ([__temp,__restore] = ${e.helper(`withAsyncContext`)}(${s?`async `:``}() => `),e.s.appendLeft(t.end+a,`)),
131
131
  ${r?``:`__temp = `}await __temp,
132
132
  __restore()${r?``:`,
133
133
  __temp`}
134
- )`)}var IC=Object.defineProperty,LC=Object.defineProperties,RC=Object.getOwnPropertyDescriptors,zC=Object.getOwnPropertySymbols,BC=Object.prototype.hasOwnProperty,VC=Object.prototype.propertyIsEnumerable,HC=(e,t,n)=>t in e?IC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,UC=(e,t)=>{for(var n in t||={})BC.call(t,n)&&HC(e,n,t[n]);if(zC)for(var n of zC(t))VC.call(t,n)&&HC(e,n,t[n]);return e},WC=(e,t)=>LC(e,RC(t)),GC=[dC,wC,kC,NC,jC,cC,fC];function KC(e,t){t.id||zh("compileScript now requires passing the `id` option.\nUpgrade your vite or vue-loader version for compatibility with the latest experimental proposals.");let{script:n,scriptSetup:r,source:i,filename:a}=e,o=t.hoistStatic!==!1&&!n,s=t.id?t.id.replace(/^data-v-/,``):``,c=n&&n.lang,l=r&&r.lang,u=lx(c,l)||ux(c,l);if(n&&r&&c!==l)throw Error(`[@vue/compiler-sfc] <script> and <script setup> must have the same language type.`);if(!r){if(!n)throw Error(`[@vue/compiler-sfc] SFC contains no <script> tags.`);return n.lang&&!u?n:rS(new Vx(e,t),s)}if(l&&!u)return r;let d=new Vx(e,t),f=Object.create(null),p=Object.create(null),m,h=!1,g=!1,_=d.startOffset,v=d.endOffset,y=n&&n.loc.start.offset,b=n&&n.loc.end.offset;function x(e){let t=e.start+_,n=e.end+_;for(e.trailingComments&&e.trailingComments.length>0&&(n=e.trailingComments[e.trailingComments.length-1].end+_);n<=i.length&&/\s/.test(i.charAt(n));)n++;d.s.move(t,n,0)}function S(t,n,r,i,a,o){let s=o;o&&d.isTS&&e.template&&!e.template.src&&!e.template.lang&&(s=Mu(n,e)),d.userImports[n]={isType:i,imported:r,local:n,source:t,isFromSetup:a,isUsedInTemplate:s}}function C(e,t){e&&wi(e,e=>{let n=p[e.name];n&&n!==`literal-const`&&d.error(`\`${t}()\` in <script setup> cannot reference locally declared variables because it will be hoisted outside of the setup() function. If your component options require initialization in the module scope, use a separate normal <script> to export the options instead.`,e)})}let w=d.scriptAst,T=d.scriptSetupAst;if(w){for(let e of w.body)if(e.type===`ImportDeclaration`)for(let n of e.specifiers){let r=ex(n);S(e.source.value,n.local.name,r,e.importKind===`type`||n.type===`ImportSpecifier`&&n.importKind===`type`,!1,!t.inlineTemplate)}}for(let e of T.body)if(e.type===`ImportDeclaration`){x(e);let n=0,r=t=>{let r=t>n;n++;let i=e.specifiers[t],a=e.specifiers[t+1];d.s.remove(r?e.specifiers[t-1].end+_:i.start+_,a&&!r?a.start+_:i.end+_)};for(let n=0;n<e.specifiers.length;n++){let i=e.specifiers[n],a=i.local.name,o=ex(i),s=e.source.value,c=d.userImports[a];s===`vue`&&GC.includes(o)?(a===o?zh(`\`${o}\` is a compiler macro and no longer needs to be imported.`):d.error(`\`${o}\` is a compiler macro and cannot be aliased to a different name.`,i),r(n)):c?c.source===s&&c.imported===o?r(n):d.error(`different imports aliased to same local name.`,i):S(s,a,o,e.importKind===`type`||i.type===`ImportSpecifier`&&i.importKind===`type`,!0,!t.inlineTemplate)}e.specifiers.length&&n===e.specifiers.length&&d.s.remove(e.start+_,e.end+_)}let E={};for(let e in d.userImports){let{source:t,imported:n,local:r}=d.userImports[e];t===`vue`&&(E[n]=r)}if(n&&w){for(let e of w.body)if(e.type===`ExportDefaultDeclaration`){m=e;let t;if(m.declaration.type===`ObjectExpression`?t=m.declaration.properties:m.declaration.type===`CallExpression`&&m.declaration.arguments[0]&&m.declaration.arguments[0].type===`ObjectExpression`&&(t=m.declaration.arguments[0].properties),t)for(let e of t)e.type===`ObjectProperty`&&e.key.type===`Identifier`&&e.key.name===`name`&&(d.hasDefaultExportName=!0),(e.type===`ObjectMethod`||e.type===`ObjectProperty`)&&e.key.type===`Identifier`&&e.key.name===`render`&&(d.hasDefaultExportRender=!0);let n=e.start+y,r=e.declaration.start+y;d.s.overwrite(n,r,`const ${nS} = `)}else if(e.type===`ExportNamedDeclaration`){let t=e.specifiers.find(e=>e.exported.type===`Identifier`&&e.exported.name===`default`);t&&(m=e,e.specifiers.length>1?d.s.remove(t.start+y,t.end+y):d.s.remove(e.start+y,e.end+y),e.source?d.s.prepend(`import { ${t.local.name} as ${nS} } from '${e.source.value}'
134
+ )`)}var LC=Object.defineProperty,RC=Object.defineProperties,zC=Object.getOwnPropertyDescriptors,BC=Object.getOwnPropertySymbols,VC=Object.prototype.hasOwnProperty,HC=Object.prototype.propertyIsEnumerable,UC=(e,t,n)=>t in e?LC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WC=(e,t)=>{for(var n in t||={})VC.call(t,n)&&UC(e,n,t[n]);if(BC)for(var n of BC(t))HC.call(t,n)&&UC(e,n,t[n]);return e},GC=(e,t)=>RC(e,zC(t)),KC=[fC,TC,AC,PC,MC,lC,pC];function qC(e,t){t.id||zh("compileScript now requires passing the `id` option.\nUpgrade your vite or vue-loader version for compatibility with the latest experimental proposals.");let{script:n,scriptSetup:r,source:i,filename:a}=e,o=t.hoistStatic!==!1&&!n,s=t.id?t.id.replace(/^data-v-/,``):``,c=n&&n.lang,l=r&&r.lang,u=lx(c,l)||ux(c,l);if(n&&r&&c!==l)throw Error(`[@vue/compiler-sfc] <script> and <script setup> must have the same language type.`);if(!r){if(!n)throw Error(`[@vue/compiler-sfc] SFC contains no <script> tags.`);return n.lang&&!u?n:rS(new Vx(e,t),s)}if(l&&!u)return r;let d=new Vx(e,t),f=Object.create(null),p=Object.create(null),m,h=!1,g=!1,_=d.startOffset,v=d.endOffset,y=n&&n.loc.start.offset,b=n&&n.loc.end.offset;function x(e){let t=e.start+_,n=e.end+_;for(e.trailingComments&&e.trailingComments.length>0&&(n=e.trailingComments[e.trailingComments.length-1].end+_);n<=i.length&&/\s/.test(i.charAt(n));)n++;d.s.move(t,n,0)}function S(t,n,r,i,a,o){let s=o;o&&d.isTS&&e.template&&!e.template.src&&!e.template.lang&&(s=Mu(n,e)),d.userImports[n]={isType:i,imported:r,local:n,source:t,isFromSetup:a,isUsedInTemplate:s}}function C(e,t){e&&wi(e,e=>{let n=p[e.name];n&&n!==`literal-const`&&d.error(`\`${t}()\` in <script setup> cannot reference locally declared variables because it will be hoisted outside of the setup() function. If your component options require initialization in the module scope, use a separate normal <script> to export the options instead.`,e)})}let w=d.scriptAst,T=d.scriptSetupAst;if(w){for(let e of w.body)if(e.type===`ImportDeclaration`)for(let n of e.specifiers){let r=ex(n);S(e.source.value,n.local.name,r,e.importKind===`type`||n.type===`ImportSpecifier`&&n.importKind===`type`,!1,!t.inlineTemplate)}}for(let e of T.body)if(e.type===`ImportDeclaration`){x(e);let n=0,r=t=>{let r=t>n;n++;let i=e.specifiers[t],a=e.specifiers[t+1];d.s.remove(r?e.specifiers[t-1].end+_:i.start+_,a&&!r?a.start+_:i.end+_)};for(let n=0;n<e.specifiers.length;n++){let i=e.specifiers[n],a=i.local.name,o=ex(i),s=e.source.value,c=d.userImports[a];s===`vue`&&KC.includes(o)?(a===o?zh(`\`${o}\` is a compiler macro and no longer needs to be imported.`):d.error(`\`${o}\` is a compiler macro and cannot be aliased to a different name.`,i),r(n)):c?c.source===s&&c.imported===o?r(n):d.error(`different imports aliased to same local name.`,i):S(s,a,o,e.importKind===`type`||i.type===`ImportSpecifier`&&i.importKind===`type`,!0,!t.inlineTemplate)}e.specifiers.length&&n===e.specifiers.length&&d.s.remove(e.start+_,e.end+_)}let E={};for(let e in d.userImports){let{source:t,imported:n,local:r}=d.userImports[e];t===`vue`&&(E[n]=r)}if(n&&w){for(let e of w.body)if(e.type===`ExportDefaultDeclaration`){m=e;let t;if(m.declaration.type===`ObjectExpression`?t=m.declaration.properties:m.declaration.type===`CallExpression`&&m.declaration.arguments[0]&&m.declaration.arguments[0].type===`ObjectExpression`&&(t=m.declaration.arguments[0].properties),t)for(let e of t)e.type===`ObjectProperty`&&e.key.type===`Identifier`&&e.key.name===`name`&&(d.hasDefaultExportName=!0),(e.type===`ObjectMethod`||e.type===`ObjectProperty`)&&e.key.type===`Identifier`&&e.key.name===`render`&&(d.hasDefaultExportRender=!0);let n=e.start+y,r=e.declaration.start+y;d.s.overwrite(n,r,`const ${nS} = `)}else if(e.type===`ExportNamedDeclaration`){let t=e.specifiers.find(e=>e.exported.type===`Identifier`&&e.exported.name===`default`);t&&(m=e,e.specifiers.length>1?d.s.remove(t.start+y,t.end+y):d.s.remove(e.start+y,e.end+y),e.source?d.s.prepend(`import { ${t.local.name} as ${nS} } from '${e.source.value}'
135
135
  `):d.s.appendLeft(b,`
136
136
  const ${nS} = ${t.local.name}
137
- `)),e.declaration&&JC(`script`,e.declaration,f,E,o)}else (e.type===`VariableDeclaration`||e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`||e.type===`TSEnumDeclaration`)&&!e.declare&&JC(`script`,e,f,E,o);y>_&&(/\n$/.test(n.content.trim())||d.s.appendLeft(b,`
138
- `),d.s.move(y,b,0))}for(let e of T.body){if(e.type===`ExpressionStatement`){let t=Vi(e.expression);if(pC(d,t)||TC(d,t)||PC(d,t)||MC(d,t))d.s.remove(e.start+_,e.end+_);else if(AC(d,t)){let e=t.callee;d.s.overwrite(e.start+_,e.end+_,`__expose`)}else lC(d,t)}if(e.type===`VariableDeclaration`&&!e.declare){let t=e.declarations.length,n=t,r;for(let i=0;i<t;i++){let a=e.declarations[i],o=a.init&&Vi(a.init);if(o){PC(d,o)&&d.error(`${NC}() has no returning value, it cannot be assigned.`,e);let s=pC(d,o,a.id);d.propsDestructureRestId&&(p[d.propsDestructureRestId]=`setup-reactive-const`);let c=!s&&TC(d,o,a.id);if(!c&&(MC(d,o,a.id)||lC(d,o,a.id)),s&&!d.propsDestructureRestId&&d.propsDestructureDecl)if(n===1)d.s.remove(e.start+_,e.end+_);else{let o=a.start+_,s=a.end+_;i===t-1?o=e.declarations[r].end+_:s=e.declarations[i+1].start+_,d.s.remove(o,s),n--}else c?d.s.overwrite(_+o.start,_+o.end,`__emit`):r=i}}}let t=!1;if((e.type===`VariableDeclaration`||e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`||e.type===`TSEnumDeclaration`)&&!e.declare&&(t=JC(`scriptSetup`,e,p,E,o,!!d.propsDestructureDecl)),o&&t&&x(e),e.type===`VariableDeclaration`&&!e.declare||e.type.endsWith(`Statement`)){let t=[T.body];Ci(e,{enter(e,n){Ii(e)&&this.skip(),e.type===`BlockStatement`&&t.push(e.body),e.type===`AwaitExpression`&&(h=!0,FC(d,e,t[t.length-1].some((n,r)=>(t.length===1||r>0)&&n.type===`ExpressionStatement`&&n.start===e.start),n.type===`ExpressionStatement`))},exit(e){e.type===`BlockStatement`&&t.pop()}})}(e.type===`ExportNamedDeclaration`&&e.exportKind!==`type`||e.type===`ExportAllDeclaration`||e.type===`ExportDefaultDeclaration`)&&d.error(`<script setup> cannot contain ES module exports. If you are using a previous version of <script setup>, please consult the updated RFC at https://github.com/vuejs/rfcs/pull/227.`,e),d.isTS&&(e.type.startsWith(`TS`)||e.type===`ExportNamedDeclaration`&&e.exportKind===`type`||e.type===`VariableDeclaration`&&e.declare)&&e.type!==`TSEnumDeclaration`&&x(e)}d.propsDestructureDecl&&CC(d,E),C(d.propsRuntimeDecl,dC),C(d.propsRuntimeDefaults,dC),C(d.propsDestructureDecl,dC),C(d.emitsRuntimeDecl,wC),C(d.optionsRuntimeDecl,NC);for(let{runtimeOptionNodes:e}of Object.values(d.modelDecls))for(let t of e)C(t,cC);n?_<y?(d.s.remove(0,_),d.s.remove(v,y),d.s.remove(b,i.length)):(d.s.remove(0,y),d.s.remove(b,_),d.s.remove(v,i.length)):(d.s.remove(0,_),d.s.remove(v,i.length)),w&&Object.assign(d.bindingMetadata,dx(w.body));for(let[e,{isType:t,imported:n,source:r}]of Object.entries(d.userImports))t||(d.bindingMetadata[e]=n===`*`||n===`default`&&r.endsWith(`.vue`)||r===`vue`?`setup-const`:`setup-maybe-ref`);for(let e in f)d.bindingMetadata[e]=f[e];for(let e in p)d.bindingMetadata[e]=p[e];if(e.template&&!e.template.src&&e.template.ast){let t=Pu(e);if(t.size){let e=new Set;for(let n of t)p[n]===`setup-reactive-const`&&e.add(n);if(e.size){for(let t of T.body)if(t.type===`VariableDeclaration`&&t.kind===`const`&&!t.declare){let n=[];for(let r of t.declarations)r.id.type===`Identifier`&&e.has(r.id.name)&&n.push(r.id.name);if(n.length){d.s.overwrite(t.start+_,t.start+_+5,`let`);for(let e of n)p[e]=`setup-let`,d.bindingMetadata[e]=`setup-let`,zh(`\`v-model\` cannot update a \`const\` reactive binding \`${e}\`. The compiler has transformed it to \`let\` to make the update work.`)}}}}}e.cssVars.length&&!t.templateOptions?.ssr&&(d.helperImports.add(Pl),d.helperImports.add(`unref`),d.s.prependLeft(_,`
137
+ `)),e.declaration&&YC(`script`,e.declaration,f,E,o)}else (e.type===`VariableDeclaration`||e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`||e.type===`TSEnumDeclaration`)&&!e.declare&&YC(`script`,e,f,E,o);y>_&&(/\n$/.test(n.content.trim())||d.s.appendLeft(b,`
138
+ `),d.s.move(y,b,0))}for(let e of T.body){if(e.type===`ExpressionStatement`){let t=Vi(e.expression);if(mC(d,t)||EC(d,t)||FC(d,t)||NC(d,t))d.s.remove(e.start+_,e.end+_);else if(jC(d,t)){let e=t.callee;d.s.overwrite(e.start+_,e.end+_,`__expose`)}else uC(d,t)}if(e.type===`VariableDeclaration`&&!e.declare){let t=e.declarations.length,n=t,r;for(let i=0;i<t;i++){let a=e.declarations[i],o=a.init&&Vi(a.init);if(o){FC(d,o)&&d.error(`${PC}() has no returning value, it cannot be assigned.`,e);let s=mC(d,o,a.id);d.propsDestructureRestId&&(p[d.propsDestructureRestId]=`setup-reactive-const`);let c=!s&&EC(d,o,a.id);if(!c&&(NC(d,o,a.id)||uC(d,o,a.id)),s&&!d.propsDestructureRestId&&d.propsDestructureDecl)if(n===1)d.s.remove(e.start+_,e.end+_);else{let o=a.start+_,s=a.end+_;i===t-1?o=e.declarations[r].end+_:s=e.declarations[i+1].start+_,d.s.remove(o,s),n--}else c?d.s.overwrite(_+o.start,_+o.end,`__emit`):r=i}}}let t=!1;if((e.type===`VariableDeclaration`||e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`||e.type===`TSEnumDeclaration`)&&!e.declare&&(t=YC(`scriptSetup`,e,p,E,o,!!d.propsDestructureDecl)),o&&t&&x(e),e.type===`VariableDeclaration`&&!e.declare||e.type.endsWith(`Statement`)){let t=[T.body];Ci(e,{enter(e,n){Ii(e)&&this.skip(),e.type===`BlockStatement`&&t.push(e.body),e.type===`AwaitExpression`&&(h=!0,IC(d,e,t[t.length-1].some((n,r)=>(t.length===1||r>0)&&n.type===`ExpressionStatement`&&n.start===e.start),n.type===`ExpressionStatement`))},exit(e){e.type===`BlockStatement`&&t.pop()}})}(e.type===`ExportNamedDeclaration`&&e.exportKind!==`type`||e.type===`ExportAllDeclaration`||e.type===`ExportDefaultDeclaration`)&&d.error(`<script setup> cannot contain ES module exports. If you are using a previous version of <script setup>, please consult the updated RFC at https://github.com/vuejs/rfcs/pull/227.`,e),d.isTS&&(e.type.startsWith(`TS`)||e.type===`ExportNamedDeclaration`&&e.exportKind===`type`||e.type===`VariableDeclaration`&&e.declare)&&e.type!==`TSEnumDeclaration`&&x(e)}d.propsDestructureDecl&&wC(d,E),C(d.propsRuntimeDecl,fC),C(d.propsRuntimeDefaults,fC),C(d.propsDestructureDecl,fC),C(d.emitsRuntimeDecl,TC),C(d.optionsRuntimeDecl,PC);for(let{runtimeOptionNodes:e}of Object.values(d.modelDecls))for(let t of e)C(t,lC);n?_<y?(d.s.remove(0,_),d.s.remove(v,y),d.s.remove(b,i.length)):(d.s.remove(0,y),d.s.remove(b,_),d.s.remove(v,i.length)):(d.s.remove(0,_),d.s.remove(v,i.length)),w&&Object.assign(d.bindingMetadata,dx(w.body));for(let[e,{isType:t,imported:n,source:r}]of Object.entries(d.userImports))t||(d.bindingMetadata[e]=n===`*`||n===`default`&&r.endsWith(`.vue`)||r===`vue`?`setup-const`:`setup-maybe-ref`);for(let e in f)d.bindingMetadata[e]=f[e];for(let e in p)d.bindingMetadata[e]=p[e];if(e.template&&!e.template.src&&e.template.ast){let t=Pu(e);if(t.size){let e=new Set;for(let n of t)p[n]===`setup-reactive-const`&&e.add(n);if(e.size){for(let t of T.body)if(t.type===`VariableDeclaration`&&t.kind===`const`&&!t.declare){let n=[];for(let r of t.declarations)r.id.type===`Identifier`&&e.has(r.id.name)&&n.push(r.id.name);if(n.length){d.s.overwrite(t.start+_,t.start+_+5,`let`);for(let e of n)p[e]=`setup-let`,d.bindingMetadata[e]=`setup-let`,zh(`\`v-model\` cannot update a \`const\` reactive binding \`${e}\`. The compiler has transformed it to \`let\` to make the update work.`)}}}}}e.cssVars.length&&!t.templateOptions?.ssr&&(d.helperImports.add(Pl),d.helperImports.add(`unref`),d.s.prependLeft(_,`
139
139
  ${Hl(e.cssVars,d.bindingMetadata,s,!!t.isProd)}
140
140
  `));let ee=`__props`;if(d.propsTypeDecl&&(ee+=`: any`),d.propsDecl&&(d.propsDestructureRestId?(d.s.overwrite(_+d.propsCall.start,_+d.propsCall.end,`${d.helper(`createPropsRestProxy`)}(__props, ${JSON.stringify(Object.keys(d.propsDestructuredBindings))})`),d.s.overwrite(_+d.propsDestructureDecl.start,_+d.propsDestructureDecl.end,d.propsDestructureRestId)):d.propsDestructureDecl||d.s.overwrite(_+d.propsCall.start,_+d.propsCall.end,`__props`)),h){let e=d.isTS?`: any`:``;d.s.prependLeft(_,`
141
141
  let __temp${e}, __restore${e}
142
- `)}let D=d.hasDefineExposeCall||!t.inlineTemplate?[`expose: __expose`]:[];d.emitDecl&&D.push(`emit: __emit`),D.length&&(ee+=`, { ${D.join(`, `)} }`);let O,k,te=hC(d);if(!t.inlineTemplate||!e.template&&d.hasDefaultExportRender){let e=UC(UC({},f),p);for(let t in d.userImports)!d.userImports[t].isType&&d.userImports[t].isUsedInTemplate&&(e[t]=!0);k=`{ `;for(let t in e)if(e[t]===!0&&d.userImports[t].source!==`vue`&&!d.userImports[t].source.endsWith(`.vue`))k+=`get ${t}() { return ${t} }, `;else if(d.bindingMetadata[t]===`setup-let`){let e=t===`v`?`_v`:`v`;k+=`get ${t}() { return ${t} }, set ${t}(${e}) { ${t} = ${e} }, `}else k+=`${t}, `;k=k.replace(/, $/,``)+` }`}else if(e.template&&!e.template.src){t.templateOptions&&t.templateOptions.ssr&&(g=!0);let{code:n,ast:r,preamble:o,tips:c,errors:l,map:u}=Zh(WC(UC({filename:a,ast:e.template.ast,source:e.template.content,inMap:e.template.map},t.templateOptions),{id:s,scoped:e.styles.some(e=>e.scoped),isProd:t.isProd,ssrCssVars:e.cssVars,compilerOptions:WC(UC({},t.templateOptions&&t.templateOptions.compilerOptions),{inline:!0,isTS:d.isTS,bindingMetadata:d.bindingMetadata})}));O=u,c.length&&c.forEach(zh);let f=l[0];if(typeof f==`string`)throw Error(f);if(f)throw f.loc&&(f.message+=`
142
+ `)}let D=d.hasDefineExposeCall||!t.inlineTemplate?[`expose: __expose`]:[];d.emitDecl&&D.push(`emit: __emit`),D.length&&(ee+=`, { ${D.join(`, `)} }`);let O,k,te=gC(d);if(!t.inlineTemplate||!e.template&&d.hasDefaultExportRender){let e=WC(WC({},f),p);for(let t in d.userImports)!d.userImports[t].isType&&d.userImports[t].isUsedInTemplate&&(e[t]=!0);k=`{ `;for(let t in e)if(e[t]===!0&&d.userImports[t].source!==`vue`&&!d.userImports[t].source.endsWith(`.vue`))k+=`get ${t}() { return ${t} }, `;else if(d.bindingMetadata[t]===`setup-let`){let e=t===`v`?`_v`:`v`;k+=`get ${t}() { return ${t} }, set ${t}(${e}) { ${t} = ${e} }, `}else k+=`${t}, `;k=k.replace(/, $/,``)+` }`}else if(e.template&&!e.template.src){t.templateOptions&&t.templateOptions.ssr&&(g=!0);let{code:n,ast:r,preamble:o,tips:c,errors:l,map:u}=Zh(GC(WC({filename:a,ast:e.template.ast,source:e.template.content,inMap:e.template.map},t.templateOptions),{id:s,scoped:e.styles.some(e=>e.scoped),isProd:t.isProd,ssrCssVars:e.cssVars,compilerOptions:GC(WC({},t.templateOptions&&t.templateOptions.compilerOptions),{inline:!0,isTS:d.isTS,bindingMetadata:d.bindingMetadata})}));O=u,c.length&&c.forEach(zh);let f=l[0];if(typeof f==`string`)throw Error(f);if(f)throw f.loc&&(f.message+=`
143
143
 
144
144
  `+e.filename+`
145
145
  `+Pe(i,f.loc.start.offset,f.loc.end.offset)+`
@@ -156,7 +156,7 @@ return __returned__
156
156
  `);let ne=t.genDefaultAs?`const ${t.genDefaultAs} =`:`export default`,re=``;if(!d.hasDefaultExportName&&a&&a!==qu){let e=a.match(/([^/\\]+)\.\w+$/);e&&(re+=`
157
157
  __name: '${e[1]}',`)}g&&(re+=`
158
158
  __ssrInlineRender: true,`),te&&(re+=`
159
- props: ${te},`);let ie=EC(d);ie&&(re+=`
159
+ props: ${te},`);let ie=DC(d);ie&&(re+=`
160
160
  emits: ${ie},`);let ae=``;d.optionsRuntimeDecl&&(ae=r.content.slice(d.optionsRuntimeDecl.start,d.optionsRuntimeDecl.end).trim());let A=d.hasDefineExposeCall||t.inlineTemplate?``:` __expose();
161
161
  `;if(d.isTS){let e=(m?`
162
162
  ...${nS},`:``)+(ae?`
@@ -170,4 +170,4 @@ ${A}`),d.s.appendRight(v,`})`)):(d.s.prependLeft(_,`
170
170
  ${ne} {${re}
171
171
  ${h?`async `:``}setup(${ee}) {
172
172
  ${A}`),d.s.appendRight(v,`}`));if(d.helperImports.size>0){let e=t.templateOptions?.compilerOptions?.runtimeModuleName,n=e?JSON.stringify(e):`'vue'`;d.s.prepend(`import { ${[...d.helperImports].map(e=>`${e} as _${e}`).join(`, `)} } from ${n}
173
- `)}let j=d.s.toString(),M=t.sourceMap===!1?void 0:d.s.generateMap({source:a,hires:!0,includeContent:!0});if(O&&M){let e=j.indexOf(k),t=j.slice(0,e).split(/\r?\n/).length-1;M=ew(M,O,t)}return WC(UC({},r),{bindings:d.bindingMetadata,imports:d.userImports,content:j,map:M,scriptAst:w?.body,scriptSetupAst:T?.body,deps:d.deps?[...d.deps]:void 0})}function qC(e,t,n){e[t.name]=n}function JC(e,t,n,r,i,a=!1){let o=!1;if(t.type===`VariableDeclaration`){let s=t.kind===`const`;o=s&&t.declarations.every(e=>e.id.type===`Identifier`&&$C(e.init));for(let{id:c,init:l}of t.declarations){let t=l&&Vi(l),u=s&&Qb(t,e=>e===dC||e===wC||e===fC||e===jC);if(c.type===`Identifier`){let a,l=r.reactive;a=(i||e===`script`)&&(o||s&&$C(t))?`literal-const`:Qb(t,l)?s?`setup-reactive-const`:`setup-let`:u||s&&QC(t,l)?Qb(t,dC)?`setup-reactive-const`:`setup-const`:s?Qb(t,e=>e===r.ref||e===r.computed||e===r.shallowRef||e===r.customRef||e===r.toRef||e===r.useTemplateRef||e===cC)?`setup-ref`:`setup-maybe-ref`:`setup-let`,qC(n,c,a)}else{if(Qb(t,dC)&&a)continue;c.type===`ObjectPattern`?YC(c,n,s,u):c.type===`ArrayPattern`&&XC(c,n,s,u)}}}else t.type===`TSEnumDeclaration`?(o=t.members.every(e=>!e.initializer||$C(e.initializer)),n[t.id.name]=o?`literal-const`:`setup-const`):(t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`)&&(n[t.id.name]=`setup-const`);return o}function YC(e,t,n,r=!1){for(let i of e.properties)if(i.type===`ObjectProperty`)if(i.key.type===`Identifier`&&i.key===i.value){let e=r?`setup-const`:n?`setup-maybe-ref`:`setup-let`;qC(t,i.key,e)}else ZC(i.value,t,n,r);else{let e=n?`setup-const`:`setup-let`;qC(t,i.argument,e)}}function XC(e,t,n,r=!1){for(let i of e.elements)i&&ZC(i,t,n,r)}function ZC(e,t,n,r=!1){if(e.type===`Identifier`)qC(t,e,r?`setup-const`:n?`setup-maybe-ref`:`setup-let`);else if(e.type===`RestElement`){let r=n?`setup-const`:`setup-let`;qC(t,e.argument,r)}else if(e.type===`ObjectPattern`)YC(e,t,n);else if(e.type===`ArrayPattern`)XC(e,t,n);else if(e.type===`AssignmentPattern`)if(e.left.type===`Identifier`){let i=r?`setup-const`:n?`setup-maybe-ref`:`setup-let`;qC(t,e.left,i)}else ZC(e.left,t,n)}function QC(e,t){if(Qb(e,t))return!0;switch(e.type){case`UnaryExpression`:case`BinaryExpression`:case`ArrayExpression`:case`ObjectExpression`:case`FunctionExpression`:case`ArrowFunctionExpression`:case`UpdateExpression`:case`ClassExpression`:case`TaggedTemplateExpression`:return!0;case`SequenceExpression`:return QC(e.expressions[e.expressions.length-1],t);default:return!!Zb(e)}}function $C(e){switch(e=Vi(e),e.type){case`UnaryExpression`:return $C(e.argument);case`LogicalExpression`:case`BinaryExpression`:return $C(e.left)&&$C(e.right);case`ConditionalExpression`:return $C(e.test)&&$C(e.consequent)&&$C(e.alternate);case`SequenceExpression`:case`TemplateLiteral`:return e.expressions.every(e=>$C(e));case`ParenthesizedExpression`:return $C(e.expression);case`StringLiteral`:case`NumericLiteral`:case`BooleanLiteral`:case`NullLiteral`:case`BigIntLiteral`:return!0}return!1}function ew(e,t,n){let r=new ns.SourceMapGenerator,i=(e,t=0)=>{let n=new ns.SourceMapConsumer(e);n.sources.forEach(e=>{r._sources.add(e);let t=n.sourceContentFor(e);t!=null&&r.setSourceContent(e,t)}),n.eachMapping(e=>{e.originalLine!=null&&r.addMapping({generated:{line:e.generatedLine+t,column:e.generatedColumn},original:{line:e.originalLine,column:e.originalColumn},source:e.source,name:e.name})})};return i(e),i(t,n),r._sourceRoot=e.sourceRoot,r._file=e.file,r.toJSON()}var tw=Object.defineProperty,nw=Object.getOwnPropertySymbols,rw=Object.prototype.hasOwnProperty,iw=Object.prototype.propertyIsEnumerable,aw=(e,t,n)=>t in e?tw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ow=(e,t)=>{for(var n in t||={})rw.call(t,n)&&aw(e,n,t[n]);if(nw)for(var n of nw(t))iw.call(t,n)&&aw(e,n,t[n]);return e};ow(ow({},mi),qc),bi.parse;function sw(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var cw=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),lw=Array.isArray,uw=e=>typeof e==`string`,dw=e=>typeof e==`object`&&!!e,fw=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},pw=/\B([A-Z])/g,mw=fw(e=>e.replace(pw,`-$1`).toLowerCase()),hw,gw=()=>hw||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function _w(e){if(lw(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=uw(r)?xw(r):_w(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(uw(e)||dw(e))return e}var vw=/;(?![^(]*\))/g,yw=/:([^]+)/,bw=/\/\*[^]*?\*\//g;function xw(e){let t={};return e.replace(bw,``).split(vw).forEach(e=>{if(e){let n=e.split(yw);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Sw(e){if(!e)return``;if(uw(e))return e;let t=``;for(let n in e){let r=e[n];if(uw(r)||typeof r==`number`){let e=n.startsWith(`--`)?n:mw(n);t+=`${e}:${r};`}}return t}function Cw(e){let t=``;if(uw(e))t=e;else if(lw(e))for(let n=0;n<e.length;n++){let r=Cw(e[n]);r&&(t+=r+` `)}else if(dw(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var ww=sw(`svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view`),Tw=sw(`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);function Ew(e){return!!e||e===``}var Dw=/[>/="'\u0009\u000a\u000c\u0020]/,Ow={};function kw(e){if(Ow.hasOwnProperty(e))return Ow[e];let t=Dw.test(e);return t&&console.error(`unsafe attribute name: ${e}`),Ow[e]=!t}var Aw={acceptCharset:`accept-charset`,className:`class`,htmlFor:`for`,httpEquiv:`http-equiv`};function jw(e){if(e==null)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`}var Mw=/["'&<>]/;function Nw(e){let t=``+e,n=Mw.exec(t);if(!n)return t;let r=``,i,a,o=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:i=`&quot;`;break;case 38:i=`&amp;`;break;case 39:i=`&#39;`;break;case 60:i=`&lt;`;break;case 62:i=`&gt;`;break;default:continue}o!==a&&(r+=t.slice(o,a)),o=a+1,r+=i}return o===a?r:r+t.slice(o,a)}function Pw(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var Fw=sw(`,key,ref,innerHTML,textContent,ref_key,ref_for`);function Iw(e,t){let n=``;for(let r in e){if(Fw(r)||cw(r)||t===`textarea`&&r===`value`||r.startsWith(`.`))continue;let i=e[r];r.startsWith(`^`)&&(r=r.slice(1)),r===`class`?n+=` class="${Rw(i)}"`:r===`style`?n+=` style="${zw(i)}"`:r===`className`?i!=null&&(n+=` class="${Nw(String(i))}"`):n+=Lw(r,i,t)}return n}function Lw(e,t,n){if(!jw(t))return``;let r=n&&(n.indexOf(`-`)>0||ww(n))?e:Aw[e]||e.toLowerCase();return Tw(r)?Ew(t)?` ${r}`:``:kw(r)?t===``?` ${r}`:` ${r}="${Nw(t)}"`:(console.warn(`[@vue/server-renderer] Skipped rendering unsafe attribute name: ${r}`),``)}function Rw(e){return Nw(Cw(e))}function zw(e){return e?uw(e)?Nw(e):Nw(Sw(_w(Bw(e)))):``}function Bw(e){if(!lw(e)&&dw(e)){let t={};for(let n in e)n.startsWith(`:--`)?t[n.slice(1)]=Pw(e[n]):t[n]=e[n];return t}return e}var{ensureValidVNode:Vw}=m;{let e=gw(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};t(`__VUE_INSTANCE_SETTERS__`,e=>e),t(`__VUE_SSR_SETTERS__`,e=>e)}var{createComponentInstance:Hw,setCurrentRenderingInstance:Uw,setupComponent:Ww,renderComponentRoot:Gw,normalizeVNode:Kw,pushWarningContext:qw,popWarningContext:Jw}=m,{isVNode:Yw}=m,{isVNode:Xw}=m;a();export{Yu as a,Zh as i,KC as n,ie as o,Gb as r,E as s,Iw as t};
173
+ `)}let j=d.s.toString(),M=t.sourceMap===!1?void 0:d.s.generateMap({source:a,hires:!0,includeContent:!0});if(O&&M){let e=j.indexOf(k),t=j.slice(0,e).split(/\r?\n/).length-1;M=tw(M,O,t)}return GC(WC({},r),{bindings:d.bindingMetadata,imports:d.userImports,content:j,map:M,scriptAst:w?.body,scriptSetupAst:T?.body,deps:d.deps?[...d.deps]:void 0})}function JC(e,t,n){e[t.name]=n}function YC(e,t,n,r,i,a=!1){let o=!1;if(t.type===`VariableDeclaration`){let s=t.kind===`const`;o=s&&t.declarations.every(e=>e.id.type===`Identifier`&&ew(e.init));for(let{id:c,init:l}of t.declarations){let t=l&&Vi(l),u=s&&Qb(t,e=>e===fC||e===TC||e===pC||e===MC);if(c.type===`Identifier`){let a,l=r.reactive;a=(i||e===`script`)&&(o||s&&ew(t))?`literal-const`:Qb(t,l)?s?`setup-reactive-const`:`setup-let`:u||s&&$C(t,l)?Qb(t,fC)?`setup-reactive-const`:`setup-const`:s?Qb(t,e=>e===r.ref||e===r.computed||e===r.shallowRef||e===r.customRef||e===r.toRef||e===r.useTemplateRef||e===lC)?`setup-ref`:`setup-maybe-ref`:`setup-let`,JC(n,c,a)}else{if(Qb(t,fC)&&a)continue;c.type===`ObjectPattern`?XC(c,n,s,u):c.type===`ArrayPattern`&&ZC(c,n,s,u)}}}else t.type===`TSEnumDeclaration`?(o=t.members.every(e=>!e.initializer||ew(e.initializer)),n[t.id.name]=o?`literal-const`:`setup-const`):(t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`)&&(n[t.id.name]=`setup-const`);return o}function XC(e,t,n,r=!1){for(let i of e.properties)if(i.type===`ObjectProperty`)if(i.key.type===`Identifier`&&i.key===i.value){let e=r?`setup-const`:n?`setup-maybe-ref`:`setup-let`;JC(t,i.key,e)}else QC(i.value,t,n,r);else{let e=n?`setup-const`:`setup-let`;JC(t,i.argument,e)}}function ZC(e,t,n,r=!1){for(let i of e.elements)i&&QC(i,t,n,r)}function QC(e,t,n,r=!1){if(e.type===`Identifier`)JC(t,e,r?`setup-const`:n?`setup-maybe-ref`:`setup-let`);else if(e.type===`RestElement`){let r=n?`setup-const`:`setup-let`;JC(t,e.argument,r)}else if(e.type===`ObjectPattern`)XC(e,t,n);else if(e.type===`ArrayPattern`)ZC(e,t,n);else if(e.type===`AssignmentPattern`)if(e.left.type===`Identifier`){let i=r?`setup-const`:n?`setup-maybe-ref`:`setup-let`;JC(t,e.left,i)}else QC(e.left,t,n)}function $C(e,t){if(Qb(e,t))return!0;switch(e.type){case`UnaryExpression`:case`BinaryExpression`:case`ArrayExpression`:case`ObjectExpression`:case`FunctionExpression`:case`ArrowFunctionExpression`:case`UpdateExpression`:case`ClassExpression`:case`TaggedTemplateExpression`:return!0;case`SequenceExpression`:return $C(e.expressions[e.expressions.length-1],t);default:return!!Zb(e)}}function ew(e){switch(e=Vi(e),e.type){case`UnaryExpression`:return ew(e.argument);case`LogicalExpression`:case`BinaryExpression`:return ew(e.left)&&ew(e.right);case`ConditionalExpression`:return ew(e.test)&&ew(e.consequent)&&ew(e.alternate);case`SequenceExpression`:case`TemplateLiteral`:return e.expressions.every(e=>ew(e));case`ParenthesizedExpression`:return ew(e.expression);case`StringLiteral`:case`NumericLiteral`:case`BooleanLiteral`:case`NullLiteral`:case`BigIntLiteral`:return!0}return!1}function tw(e,t,n){let r=new ns.SourceMapGenerator,i=(e,t=0)=>{let n=new ns.SourceMapConsumer(e);n.sources.forEach(e=>{r._sources.add(e);let t=n.sourceContentFor(e);t!=null&&r.setSourceContent(e,t)}),n.eachMapping(e=>{e.originalLine!=null&&r.addMapping({generated:{line:e.generatedLine+t,column:e.generatedColumn},original:{line:e.originalLine,column:e.originalColumn},source:e.source,name:e.name})})};return i(e),i(t,n),r._sourceRoot=e.sourceRoot,r._file=e.file,r.toJSON()}var nw=Object.defineProperty,rw=Object.getOwnPropertySymbols,iw=Object.prototype.hasOwnProperty,aw=Object.prototype.propertyIsEnumerable,ow=(e,t,n)=>t in e?nw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sw=(e,t)=>{for(var n in t||={})iw.call(t,n)&&ow(e,n,t[n]);if(rw)for(var n of rw(t))aw.call(t,n)&&ow(e,n,t[n]);return e};sw(sw({},mi),qc),bi.parse;function cw(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var lw=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),uw=Array.isArray,dw=e=>typeof e==`string`,fw=e=>typeof e==`object`&&!!e,pw=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},mw=/\B([A-Z])/g,hw=pw(e=>e.replace(mw,`-$1`).toLowerCase()),gw,_w=()=>gw||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function vw(e){if(uw(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=dw(r)?Sw(r):vw(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(dw(e)||fw(e))return e}var yw=/;(?![^(]*\))/g,bw=/:([^]+)/,xw=/\/\*[^]*?\*\//g;function Sw(e){let t={};return e.replace(xw,``).split(yw).forEach(e=>{if(e){let n=e.split(bw);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Cw(e){if(!e)return``;if(dw(e))return e;let t=``;for(let n in e){let r=e[n];if(dw(r)||typeof r==`number`){let e=n.startsWith(`--`)?n:hw(n);t+=`${e}:${r};`}}return t}function ww(e){let t=``;if(dw(e))t=e;else if(uw(e))for(let n=0;n<e.length;n++){let r=ww(e[n]);r&&(t+=r+` `)}else if(fw(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var Tw=cw(`svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view`),Ew=cw(`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);function Dw(e){return!!e||e===``}var Ow=/[>/="'\u0009\u000a\u000c\u0020]/,kw={};function Aw(e){if(kw.hasOwnProperty(e))return kw[e];let t=Ow.test(e);return t&&console.error(`unsafe attribute name: ${e}`),kw[e]=!t}var jw={acceptCharset:`accept-charset`,className:`class`,htmlFor:`for`,httpEquiv:`http-equiv`};function Mw(e){if(e==null)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`}var Nw=/["'&<>]/;function Pw(e){let t=``+e,n=Nw.exec(t);if(!n)return t;let r=``,i,a,o=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:i=`&quot;`;break;case 38:i=`&amp;`;break;case 39:i=`&#39;`;break;case 60:i=`&lt;`;break;case 62:i=`&gt;`;break;default:continue}o!==a&&(r+=t.slice(o,a)),o=a+1,r+=i}return o===a?r:r+t.slice(o,a)}function Fw(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var Iw=cw(`,key,ref,innerHTML,textContent,ref_key,ref_for`);function Lw(e,t){let n=``;for(let r in e){if(Iw(r)||lw(r)||t===`textarea`&&r===`value`||r.startsWith(`.`))continue;let i=e[r];r.startsWith(`^`)&&(r=r.slice(1)),r===`class`?n+=` class="${zw(i)}"`:r===`style`?n+=` style="${Bw(i)}"`:r===`className`?i!=null&&(n+=` class="${Pw(String(i))}"`):n+=Rw(r,i,t)}return n}function Rw(e,t,n){if(!Mw(t))return``;let r=n&&(n.indexOf(`-`)>0||Tw(n))?e:jw[e]||e.toLowerCase();return Ew(r)?Dw(t)?` ${r}`:``:Aw(r)?t===``?` ${r}`:` ${r}="${Pw(t)}"`:(console.warn(`[@vue/server-renderer] Skipped rendering unsafe attribute name: ${r}`),``)}function zw(e){return Pw(ww(e))}function Bw(e){return e?dw(e)?Pw(e):Pw(Cw(vw(Vw(e)))):``}function Vw(e){if(!uw(e)&&fw(e)){let t={};for(let n in e)n.startsWith(`:--`)?t[n.slice(1)]=Fw(e[n]):t[n]=e[n];return t}return e}var{ensureValidVNode:Hw}=m;{let e=_w(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};t(`__VUE_INSTANCE_SETTERS__`,e=>e),t(`__VUE_SSR_SETTERS__`,e=>e)}var{createComponentInstance:Uw,setCurrentRenderingInstance:Ww,setupComponent:Gw,renderComponentRoot:Kw,normalizeVNode:qw,pushWarningContext:Jw,popWarningContext:Yw}=m,{isVNode:Xw}=m,{isVNode:Zw}=m;a();export{Yu as a,Zh as i,qC as n,ie as o,Gb as r,E as s,Lw as t};