function e(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r!!n[e.toLowerCase()]:e=>!!n[e]}function t(e,t=0,n=e.length){const o=e.split(/\r?\n/);let r=0;const s=[];for(let c=0;c=t){for(let e=c-2;e<=c+2||n>r;e++){if(e<0||e>=o.length)continue;const i=e+1;s.push(`${i}${" ".repeat(Math.max(3-String(i).length,0))}| ${o[e]}`);const l=o[e].length;if(e===c){const e=t-(r-l)+1,o=Math.max(1,n>r?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(o))}else if(e>c){if(n>r){const e=Math.max(Math.min(n-r,l),1);s.push(" | "+"^".repeat(e))}r+=l+1}}break}return s.join("\n")}const n=/;(?![^(]*\))/g,o=/:(.+)/;const r=e("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),s=e("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,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"),c=e("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),i={},l=()=>{},p=()=>!1,u=/^on[^a-z]/,a=Object.assign,f=Array.isArray,d=e=>"string"==typeof e,h=e=>"symbol"==typeof e,m=e=>null!==e&&"object"==typeof e,g=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),y=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,b=y(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),x=/\B([A-Z])/g,S=y(e=>e.replace(x,"-$1").toLowerCase()),k=y(e=>e.charAt(0).toUpperCase()+e.slice(1)),N=y(e=>e?"on"+k(e):"");function T(e){throw e}function w(e,t,n,o){const r=new SyntaxError(String(e));return r.code=e,r.loc=t,r}const $=Symbol(""),_=Symbol(""),C=Symbol(""),M=Symbol(""),O=Symbol(""),I=Symbol(""),P=Symbol(""),V=Symbol(""),B=Symbol(""),E=Symbol(""),L=Symbol(""),j=Symbol(""),R=Symbol(""),A=Symbol(""),F=Symbol(""),D=Symbol(""),H=Symbol(""),U=Symbol(""),z=Symbol(""),J=Symbol(""),G=Symbol(""),q=Symbol(""),K=Symbol(""),W=Symbol(""),Z=Symbol(""),Q=Symbol(""),Y=Symbol(""),X=Symbol(""),ee=Symbol(""),te=Symbol(""),ne=Symbol(""),oe={[$]:"Fragment",[_]:"Teleport",[C]:"Suspense",[M]:"KeepAlive",[O]:"BaseTransition",[I]:"openBlock",[P]:"createBlock",[V]:"createVNode",[B]:"createCommentVNode",[E]:"createTextVNode",[L]:"createStaticVNode",[j]:"resolveComponent",[R]:"resolveDynamicComponent",[A]:"resolveDirective",[F]:"withDirectives",[D]:"renderList",[H]:"renderSlot",[U]:"createSlots",[z]:"toDisplayString",[J]:"mergeProps",[G]:"toHandlers",[q]:"camelize",[K]:"capitalize",[W]:"toHandlerKey",[Z]:"setBlockTracking",[Q]:"pushScopeId",[Y]:"popScopeId",[X]:"withScopeId",[ee]:"withCtx",[te]:"unref",[ne]:"isRef"};function re(e){Object.getOwnPropertySymbols(e).forEach(t=>{oe[t]=e[t]})}const se={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function ce(e,t=se){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function ie(e,t,n,o,r,s,c,i=!1,l=!1,p=se){return e&&(i?(e.helper(I),e.helper(P)):e.helper(V),c&&e.helper(F)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:s,directives:c,isBlock:i,disableTracking:l,loc:p}}function le(e,t=se){return{type:17,loc:t,elements:e}}function pe(e,t=se){return{type:15,loc:t,properties:e}}function ue(e,t){return{type:16,loc:se,key:d(e)?ae(e,!0):e,value:t}}function ae(e,t,n=se,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function fe(e,t){return{type:5,loc:t,content:d(e)?ae(e,!1,t):e}}function de(e,t=se){return{type:8,loc:t,children:e}}function he(e,t=[],n=se){return{type:14,loc:n,callee:e,arguments:t}}function me(e,t,n=!1,o=!1,r=se){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function ge(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:se}}function ye(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:se}}function ve(e){return{type:21,body:e,loc:se}}function be(e){return{type:22,elements:e,loc:se}}function xe(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:se}}function Se(e,t){return{type:24,left:e,right:t,loc:se}}function ke(e){return{type:25,expressions:e,loc:se}}function Ne(e){return{type:26,returns:e,loc:se}}const Te=e=>4===e.type&&e.isStatic,we=(e,t)=>e===t||e===S(t);function $e(e){return we(e,"Teleport")?_:we(e,"Suspense")?C:we(e,"KeepAlive")?M:we(e,"BaseTransition")?O:void 0}const _e=/^\d|[^\$\w]/,Ce=e=>!_e.test(e),Me=/^[A-Za-z_$][\w$]*(?:\s*\.\s*[A-Za-z_$][\w$]*|\[[^\]]+\])*$/,Oe=e=>!!e&&Me.test(e.trim());function Ie(e,t,n){const o={source:e.source.substr(t,n),start:Pe(e.start,e.source,t),end:e.end};return null!=n&&(o.end=Pe(e.start,e.source,t+n)),o}function Pe(e,t,n=t.length){return Ve(a({},e),t,n)}function Ve(e,t,n=t.length){let o=0,r=-1;for(let s=0;s!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic))}function Ae(e){return 5===e.type||2===e.type}function Fe(e){return 7===e.type&&"slot"===e.name}function De(e){return 1===e.type&&3===e.tagType}function He(e){return 1===e.type&&2===e.tagType}function Ue(e,t,n){let o;const r=13===e.type?e.props:e.arguments[2];if(null==r||d(r))o=pe([t]);else if(14===r.type){const e=r.arguments[0];d(e)||15!==e.type?r.callee===G?o=he(n.helper(J),[pe([t]),r]):r.arguments.unshift(pe([t])):e.properties.unshift(t),!o&&(o=r)}else if(15===r.type){let e=!1;if(4===t.key.type){const n=t.key.content;e=r.properties.some(e=>4===e.key.type&&e.key.content===n)}e||r.properties.unshift(t),o=r}else o=he(n.helper(J),[pe([t]),r]);13===e.type?e.props=o:e.arguments[2]=o}function ze(e,t){return`_${t}_${e.replace(/[^\w]/g,"_")}`}function Je(e,t){if(!e||0===Object.keys(t).length)return!1;switch(e.type){case 1:for(let n=0;nJe(e,t));case 11:return!!Je(e.source,t)||e.children.some(e=>Je(e,t));case 9:return e.branches.some(e=>Je(e,t));case 10:return!!Je(e.condition,t)||e.children.some(e=>Je(e,t));case 4:return!e.isStatic&&Ce(e.content)&&!!t[e.content];case 8:return e.children.some(e=>m(e)&&Je(e,t));case 5:case 12:return Je(e.content,t);case 2:case 3:default:return!1}}const Ge=/&(gt|lt|amp|apos|quot);/g,qe={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Ke={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:p,isPreTag:p,isCustomElement:p,decodeEntities:e=>e.replace(Ge,(e,t)=>qe[t]),onError:T,comments:!1};function We(e,t={}){const n=function(e,t){const n=a({},Ke);for(const o in t)n[o]=t[o]||Ke[o];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1}}(e,t),o=pt(n);return ce(Ze(n,0,[]),ut(n,o))}function Ze(e,t,n){const o=at(n),r=o?o.ns:0,s=[];for(;!gt(e,t,n);){const c=e.source;let i=void 0;if(0===t||1===t)if(!e.inVPre&&ft(c,e.options.delimiters[0]))i=ct(e,t);else if(0===t&&"<"===c[0])if(1===c.length);else if("!"===c[1])i=ft(c,"\x3c!--")?Xe(e):ft(c,""===c[2]){dt(e,3);continue}if(/[a-z]/i.test(c[2])){ot(e,1,o);continue}i=et(e)}else/[a-z]/i.test(c[1])?i=tt(e,n):"?"===c[1]&&(i=et(e));if(i||(i=it(e,t)),f(i))for(let e=0;e/.exec(e.source);if(o){n=e.source.slice(4,o.index);const t=e.source.slice(0,o.index);let r=1,s=0;for(;-1!==(s=t.indexOf("\x3c!--",r));)dt(e,s-r+1),r=s+1;dt(e,o.index+o[0].length-r+1)}else n=e.source.slice(4),dt(e,e.source.length);return{type:3,content:n,loc:ut(e,t)}}function et(e){const t=pt(e),n="?"===e.source[1]?1:2;let o;const r=e.source.indexOf(">");return-1===r?(o=e.source.slice(n),dt(e,e.source.length)):(o=e.source.slice(n,r),dt(e,r+1)),{type:3,content:o,loc:ut(e,t)}}function tt(e,t){const n=e.inPre,o=e.inVPre,r=at(t),s=ot(e,0,r),c=e.inPre&&!n,i=e.inVPre&&!o;if(s.isSelfClosing||e.options.isVoidTag(s.tag))return s;t.push(s);const l=e.options.getTextMode(s,r),p=Ze(e,l,t);if(t.pop(),s.children=p,yt(e.source,s.tag))ot(e,1,r);else if(0===e.source.length&&"script"===s.tag.toLowerCase()){const e=p[0];e&&ft(e.loc.source,"\x3c!--")}return s.loc=ut(e,s.loc.start),c&&(e.inPre=!1),i&&(e.inVPre=!1),s}const nt=e("if,else,else-if,for,slot");function ot(e,t,n){const o=pt(e),r=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),s=r[1],c=e.options.getNamespace(s,n);dt(e,r[0].length),ht(e);const i=pt(e),l=e.source;let p=rt(e,t);e.options.isPreTag(s)&&(e.inPre=!0),!e.inVPre&&p.some(e=>7===e.type&&"pre"===e.name)&&(e.inVPre=!0,a(e,i),e.source=l,p=rt(e,t).filter(e=>"v-pre"!==e.name));let u=!1;0===e.source.length||(u=ft(e.source,"/>"),dt(e,u?2:1));let f=0;const d=e.options;if(!e.inVPre&&!d.isCustomElement(s)){const e=p.some(e=>7===e.type&&"is"===e.name);d.isNativeTag&&!e?d.isNativeTag(s)||(f=1):(e||$e(s)||d.isBuiltInComponent&&d.isBuiltInComponent(s)||/^[A-Z]/.test(s)||"component"===s)&&(f=1),"slot"===s?f=2:"template"===s&&p.some(e=>7===e.type&&nt(e.name))&&(f=3)}return{type:1,ns:c,tag:s,tagType:f,props:p,isSelfClosing:u,children:[],loc:ut(e,o),codegenNode:void 0}}function rt(e,t){const n=[],o=new Set;for(;e.source.length>0&&!ft(e.source,">")&&!ft(e.source,"/>");){if(ft(e.source,"/")){dt(e,1),ht(e);continue}const r=st(e,o);0===t&&n.push(r),/^[^\t\r\n\f />]/.test(e.source),ht(e)}return n}function st(e,t){const n=pt(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o),t.add(o);{const e=/["'<]/g;let t;for(;t=e.exec(o););}dt(e,o.length);let r=void 0;/^[\t\r\n\f ]*=/.test(e.source)&&(ht(e),dt(e,1),ht(e),r=function(e){const t=pt(e);let n;const o=e.source[0],r='"'===o||"'"===o;if(r){dt(e,1);const t=e.source.indexOf(o);-1===t?n=lt(e,e.source.length,4):(n=lt(e,t,4),dt(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const o=/["'<=`]/g;let r;for(;r=o.exec(t[0]););n=lt(e,t[0].length,4)}return{content:n,isQuoted:r,loc:ut(e,t)}}(e));const s=ut(e,n);if(!e.inVPre&&/^(v-|:|@|#)/.test(o)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o),c=t[1]||(ft(o,":")?"bind":ft(o,"@")?"on":"slot");let i;if(t[2]){const r="slot"===c,s=o.indexOf(t[2]),l=ut(e,mt(e,n,s),mt(e,n,s+t[2].length+(r&&t[3]||"").length));let p=t[2],u=!0;p.startsWith("[")?(u=!1,p.endsWith("]"),p=p.substr(1,p.length-2)):r&&(p+=t[3]||""),i={type:4,content:p,isStatic:u,constType:u?3:0,loc:l}}if(r&&r.isQuoted){const e=r.loc;e.start.offset++,e.start.column++,e.end=Pe(e.start,r.content),e.source=e.source.slice(1,-1)}return{type:7,name:c,exp:r&&{type:4,content:r.content,isStatic:!1,constType:0,loc:r.loc},arg:i,modifiers:t[3]?t[3].substr(1).split("."):[],loc:s}}return{type:6,name:o,value:r&&{type:2,content:r.content,loc:r.loc},loc:s}}function ct(e,t){const[n,o]=e.options.delimiters,r=e.source.indexOf(o,n.length);if(-1===r)return;const s=pt(e);dt(e,n.length);const c=pt(e),i=pt(e),l=r-n.length,p=e.source.slice(0,l),u=lt(e,l,t),a=u.trim(),f=u.indexOf(a);f>0&&Ve(c,p,f);return Ve(i,p,l-(u.length-a.length-f)),dt(e,o.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:a,loc:ut(e,c,i)},loc:ut(e,s)}}function it(e,t){const n=["<",e.options.delimiters[0]];3===t&&n.push("]]>");let o=e.source.length;for(let s=0;st&&(o=t)}const r=pt(e);return{type:2,content:lt(e,o,t),loc:ut(e,r)}}function lt(e,t,n){const o=e.source.slice(0,t);return dt(e,t),2===n||3===n||-1===o.indexOf("&")?o:e.options.decodeEntities(o,4===n)}function pt(e){const{column:t,line:n,offset:o}=e;return{column:t,line:n,offset:o}}function ut(e,t,n){return{start:t,end:n=n||pt(e),source:e.originalSource.slice(t.offset,n.offset)}}function at(e){return e[e.length-1]}function ft(e,t){return e.startsWith(t)}function dt(e,t){const{source:n}=e;Ve(e,n,t),e.source=n.slice(t)}function ht(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&dt(e,t[0].length)}function mt(e,t,n){return Pe(t,e.originalSource.slice(t.offset,n),n)}function gt(e,t,n){const o=e.source;switch(t){case 0:if(ft(o,"=0;--e)if(yt(o,n[e].tag))return!0;break;case 1:case 2:{const e=at(n);if(e&&yt(o,e.tag))return!0;break}case 3:if(ft(o,"]]>"))return!0}return!o}function yt(e,t){return ft(e,"]/.test(e[2+t.length]||">")}function vt(e,t){xt(e,t,bt(e,e.children[0]))}function bt(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!He(t)}function xt(e,t,n=!1){let o=!1,r=!0;const{children:s}=e;for(let c=0;c0){if(s<3&&(r=!1),s>=2){e.codegenNode.patchFlag="-1",e.codegenNode=t.hoist(e.codegenNode),o=!0;continue}}else{const n=e.codegenNode;if(13===n.type){const o=Tt(n);if((!o||512===o||1===o)&&kt(e,t)>=2){const o=Nt(e);o&&(n.props=t.hoist(o))}}}}else if(12===e.type){const n=St(e.content,t);n>0&&(n<3&&(r=!1),n>=2&&(e.codegenNode=t.hoist(e.codegenNode),o=!0))}if(1===e.type)xt(e,t);else if(11===e.type)xt(e,t,1===e.children.length);else if(9===e.type)for(let n=0;n1)for(let r=0;r(N.helpers.add(e),e),helperString:e=>"_"+oe[N.helper(e)],replaceNode(e){N.parent.children[N.childIndex]=N.currentNode=e},removeNode(e){const t=e?N.parent.children.indexOf(e):N.currentNode?N.childIndex:-1;e&&e!==N.currentNode?N.childIndex>t&&(N.childIndex--,N.onNodeRemoved()):(N.currentNode=null,N.onNodeRemoved()),N.parent.children.splice(t,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){N.hoists.push(e);const t=ae("_hoisted_"+N.hoists.length,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>ye(++N.cached,e,t)};return N}function $t(e,t){const n=wt(e,t);_t(e,n),t.hoistStatic&&vt(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const t=o[0];if(bt(e,t)&&t.codegenNode){const o=t.codegenNode;13===o.type&&(o.isBlock=!0,n(I),n(P)),e.codegenNode=o}else e.codegenNode=t}else if(o.length>1){let o=64;e.codegenNode=ie(t,n($),void 0,e.children,o+"",void 0,void 0,!0)}}(e,n),e.helpers=[...n.helpers],e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached}function _t(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let s=0;s{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(Fe))return;const s=[];for(let c=0;c"_"+oe[e],push(e,t){u.code+=e},indent(){a(++u.indentLevel)},deindent(e=!1){e?--u.indentLevel:a(--u.indentLevel)},newline(){a(u.indentLevel)}};function a(e){u.push("\n"+" ".repeat(e))}return u}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:s,indent:c,deindent:i,newline:l,ssr:p}=n,u=e.helpers.length>0,a=!s&&"module"!==o;!function(e,t){const{push:n,newline:o,runtimeGlobalName:r}=t,s=r,c=e=>`${oe[e]}: _${oe[e]}`;if(e.helpers.length>0&&(n(`const _Vue = ${s}\n`),e.hoists.length)){n(`const { ${[V,B,E,L].filter(t=>e.helpers.includes(t)).map(c).join(", ")} } = _Vue\n`)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o}=t;o(),e.forEach((e,r)=>{e&&(n(`const _hoisted_${r+1} = `),Vt(e,t),o())}),t.pure=!1})(e.hoists,t),o(),n("return ")}(e,n);if(r(`function ${p?"ssrRender":"render"}(${(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),c(),a&&(r("with (_ctx) {"),c(),u&&(r(`const { ${e.helpers.map(e=>`${oe[e]}: _${oe[e]}`).join(", ")} } = _Vue`),r("\n"),l())),e.components.length&&(Ot(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Ot(e.directives,"directive",n),e.temps>0&&l()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n"),l()),p||r("return "),e.codegenNode?Vt(e.codegenNode,n):r("null"),a&&(i(),r("}")),i(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Ot(e,t,{helper:n,push:o,newline:r}){const s=n("component"===t?j:A);for(let c=0;c3||!1;t.push("["),n&&t.indent(),Pt(e,t,n),n&&t.deindent(),t.push("]")}function Pt(e,t,n=!1,o=!0){const{push:r,newline:s}=t;for(let c=0;ce||"null")}([s,c,i,l,p]),t),n(")"),a&&n(")");u&&(n(", "),Vt(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,s=d(e.callee)?e.callee:o(e.callee);r&&n("/*#__PURE__*/");n(s+"(",e),Pt(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:s}=t,{properties:c}=e;if(!c.length)return void n("{}",e);const i=c.length>1||!1;n(i?"{":"{ "),i&&o();for(let l=0;l "),(l||i)&&(n("{"),o());c?(l&&n("return "),f(c)?It(c,t):Vt(c,t)):i&&Vt(i,t);(l||i)&&(r(),n("}"));p&&n(")")}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:s}=e,{push:c,indent:i,deindent:l,newline:p}=t;if(4===n.type){const e=!Ce(n.content);e&&c("("),Bt(n,t),e&&c(")")}else c("("),Vt(n,t),c(")");s&&i(),t.indentLevel++,s||c(" "),c("? "),Vt(o,t),t.indentLevel--,s&&p(),s||c(" "),c(": ");const u=19===r.type;u||t.indentLevel++;Vt(r,t),u||t.indentLevel--;s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:s,newline:c}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(r(),n(o(Z)+"(-1),"),c());n(`_cache[${e.index}] = `),Vt(e.value,t),e.isVNode&&(n(","),c(),n(o(Z)+"(1),"),c(),n(`_cache[${e.index}]`),s());n(")")}(e,t)}}function Bt(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,e)}function Et(e,t){for(let n=0;n{if(5===e.type)e.content=Rt(e.content);else if(1===e.type)for(let n=0;nFt(e,t,n,(e,t,o)=>{const r=n.parent.children;let s=r.indexOf(e),c=0;for(;s-- >=0;){const e=r[s];e&&9===e.type&&(c+=e.branches.length)}return()=>{if(o)e.codegenNode=Ht(t,c,n);else{(function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode)).alternate=Ht(t,c+e.branches.length-1,n)}}}));function Ft(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){t.exp=ae("true",!1,t.exp?t.exp.loc:e.loc)}if("if"===t.name){const r=Dt(e,t),s={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(s),o)return o(s,r,!0)}else{const r=n.parent.children;let s=r.indexOf(e);for(;s-- >=-1;){const c=r[s];if(!c||2!==c.type||c.content.trim().length){if(c&&9===c.type){n.removeNode();const r=Dt(e,t);c.branches.push(r);const s=o&&o(c,r,!1);_t(r,n),s&&s(),n.currentNode=null}break}n.removeNode(c)}}}function Dt(e,t){return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:3!==e.tagType||Ee(e,"for")?[e]:e.children,userKey:Le(e,"key")}}function Ht(e,t,n){return e.condition?ge(e.condition,Ut(e,t,n),he(n.helper(B),['""',"true"])):Ut(e,t,n)}function Ut(e,t,n){const{helper:o}=n,r=ue("key",ae(""+t,!1,se,2)),{children:s}=e,c=s[0];if(1!==s.length||1!==c.type){if(1===s.length&&11===c.type){const e=c.codegenNode;return Ue(e,r,n),e}return ie(n,o($),pe([r]),s,"64",void 0,void 0,!0,!1,e.loc)}{const e=c.codegenNode;return 13===e.type&&(e.isBlock=!0,o(I),o(P)),Ue(e,r,n),e}}const zt=Ct("for",(e,t,n)=>{const{helper:o}=n;return Jt(e,t,n,t=>{const r=he(o(D),[t.source]),s=Le(e,"key"),c=s?ue("key",6===s.type?ae(s.value.content,!0):s.exp):null,i=4===t.source.type&&t.source.constType>0,l=i?64:s?128:256;return t.codegenNode=ie(n,o($),void 0,r,l+"",void 0,void 0,!0,!i,e.loc),()=>{let s;const l=De(e),{children:p}=t,u=1!==p.length||1!==p[0].type,a=He(e)?e:l&&1===e.children.length&&He(e.children[0])?e.children[0]:null;a?(s=a.codegenNode,l&&c&&Ue(s,c,n)):u?s=ie(n,o($),c?pe([c]):void 0,e.children,"64",void 0,void 0,!0):(s=p[0].codegenNode,l&&c&&Ue(s,c,n),s.isBlock=!i,s.isBlock?(o(I),o(P)):o(V)),r.arguments.push(me(Qt(t.parseResult),s,!0))}})});function Jt(e,t,n,o){if(!t.exp)return;const r=Wt(t.exp);if(!r)return;const{scopes:s}=n,{source:c,value:i,key:l,index:p}=r,u={type:11,loc:t.loc,source:c,valueAlias:i,keyAlias:l,objectIndexAlias:p,parseResult:r,children:De(e)?e.children:[e]};n.replaceNode(u),s.vFor++;const a=o&&o(u);return()=>{s.vFor--,a&&a()}}const Gt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,qt=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Kt=/^\(|\)$/g;function Wt(e,t){const n=e.loc,o=e.content,r=o.match(Gt);if(!r)return;const[,s,c]=r,i={source:Zt(n,c.trim(),o.indexOf(c,s.length)),value:void 0,key:void 0,index:void 0};let l=s.trim().replace(Kt,"").trim();const p=s.indexOf(l),u=l.match(qt);if(u){l=l.replace(qt,"").trim();const e=u[1].trim();let t;if(e&&(t=o.indexOf(e,p+l.length),i.key=Zt(n,e,t)),u[2]){const r=u[2].trim();r&&(i.index=Zt(n,r,o.indexOf(r,i.key?t+e.length:p+l.length)))}}return l&&(i.value=Zt(n,l,p)),i}function Zt(e,t,n){return ae(t,!1,Ie(e,n,t.length))}function Qt({value:e,key:t,index:n}){const o=[];return e&&o.push(e),t&&(e||o.push(ae("_",!1)),o.push(t)),n&&(t||(e||o.push(ae("_",!1)),o.push(ae("__",!1))),o.push(n)),o}const Yt=ae("undefined",!1),Xt=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Ee(e,"slot");if(n)return t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},en=(e,t)=>{let n;if(De(e)&&e.props.some(Fe)&&(n=Ee(e,"for"))){const e=n.parseResult=Wt(n.exp);if(e){const{value:n,key:o,index:r}=e,{addIdentifiers:s,removeIdentifiers:c}=t;return n&&s(n),o&&s(o),r&&s(r),()=>{n&&c(n),o&&c(o),r&&c(r)}}}},tn=(e,t,n)=>me(e,t,!1,!0,t.length?t[0].loc:n);function nn(e,t,n=tn){t.helper(ee);const{children:o,loc:r}=e,s=[],c=[],i=(e,t)=>ue("default",n(e,t,r));let l=t.scopes.vSlot>0||t.scopes.vFor>0;const p=Ee(e,"slot",!0);if(p){const{arg:e,exp:t}=p;e&&!Te(e)&&(l=!0),s.push(ue(e||ae("default",!0),n(t,o,r)))}let u=!1,a=!1;const f=[],d=new Set;for(let g=0;g{if(1===e.type&&(0===e.tagType||1===e.tagType))return function(){const{tag:n,props:o}=e,r=1===e.tagType,s=r?ln(e,t):`"${n}"`;let c,i,l,p,u,a,f=0,d=m(s)&&s.callee===R||s===_||s===C||!r&&("svg"===n||"foreignObject"===n||Le(e,"key",!0));if(o.length>0){const n=pn(e,t);c=n.props,f=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;a=o&&o.length?le(o.map(e=>function(e,t){const n=[],o=sn.get(e);o?n.push(t.helperString(o)):(t.helper(A),t.directives.add(e.name),n.push(ze(e.name,"directive")));const{loc:r}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=ae("true",!1,r);n.push(pe(e.modifiers.map(e=>ue(e,t)),r))}return le(n,e.loc)}(e,t))):void 0}if(e.children.length>0){s===M&&(d=!0,f|=1024);if(r&&s!==_&&s!==M){const{slots:n,hasDynamicSlots:o}=nn(e,t);i=n,o&&(f|=1024)}else if(1===e.children.length&&s!==_){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===St(n,t)&&(f|=1),i=r||2===o?n:e.children}else i=e.children}0!==f&&(l=String(f),u&&u.length&&(p=function(e){let t="[";for(let n=0,o=e.length;n{if(Te(e)){const o=e.content,r=(e=>u.test(e))(o);if(c||!r||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||g(o)||(y=!0),r&&g(o)&&(b=!0),20===n.type||(4===n.type||8===n.type)&&St(n,t)>0)return;"ref"===o?f=!0:"class"!==o||c?"style"!==o||c?"key"===o||x.includes(o)||x.push(o):m=!0:d=!0}else v=!0};for(let u=0;u1?he(t.helper(J),l,s):l[0]):i.length&&(k=pe(un(i),s)),v?a|=16:(d&&(a|=2),m&&(a|=4),x.length&&(a|=8),y&&(a|=32)),0!==a&&32!==a||!(f||b||p.length>0)||(a|=512),{props:k,directives:p,patchFlag:a,dynamicPropNames:x}}function un(e){const t=new Map,n=[];for(let o=0;o{if(He(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:s}=dn(e,t),c=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r];s&&c.push(s),n.length&&(s||c.push("{}"),c.push(me([],n,!1,!1,o))),e.codegenNode=he(t.helper(H),c,o)}};function dn(e,t){let n='"default"',o=void 0;const r=[];for(let s=0;s0){const{props:n,directives:s}=pn(e,t,r);o=n}return{slotName:n,slotProps:o}}const hn=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^\s*function(?:\s+[\w$]+)?\s*\(/,mn=(e,t,n,o)=>{const{loc:r,modifiers:s,arg:c}=e;let i;if(4===c.type)if(c.isStatic){i=ae(N(b(c.content)),!0,c.loc)}else i=de([n.helperString(W)+"(",c,")"]);else i=c,i.children.unshift(n.helperString(W)+"("),i.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let p=n.cacheHandlers&&!l;if(l){const e=Oe(l.content),t=!(e||hn.test(l.content)),n=l.content.includes(";");(t||p&&e)&&(l=de([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[ue(i,l||ae("() => {}",!1,r))]};return o&&(u=o(u)),p&&(u.props[0].value=n.cache(u.props[0].value)),u},gn=(e,t,n)=>{const{exp:o,modifiers:r,loc:s}=e,c=e.arg;return 4!==c.type?(c.children.unshift("("),c.children.push(') || ""')):c.isStatic||(c.content=c.content+' || ""'),r.includes("camel")&&(4===c.type?c.content=c.isStatic?b(c.content):`${n.helperString(q)}(${c.content})`:(c.children.unshift(n.helperString(q)+"("),c.children.push(")"))),!o||4===o.type&&!o.content.trim()?{props:[ue(c,ae("",!0,s))]}:{props:[ue(c,o)]}},yn=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o=void 0,r=!1;for(let e=0;e{if(1===e.type&&Ee(e,"once",!0)){if(vn.has(e))return;return vn.add(e),t.helper(Z),()=>{const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},xn=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return Sn();const s=o.loc.source;if(!Oe(4===o.type?o.content:s))return Sn();const c=r||ae("modelValue",!0),i=r?Te(r)?"onUpdate:"+r.content:de(['"onUpdate:" + ',r]):"onUpdate:modelValue";let l;l=de([(n.isTS?"($event: any)":"$event")+" => (",o," = $event)"]);const p=[ue(c,e.exp),ue(i,l)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map(e=>(Ce(e)?e:JSON.stringify(e))+": true").join(", "),n=r?Te(r)?r.content+"Modifiers":de([r,' + "Modifiers"']):"modelModifiers";p.push(ue(n,ae(`{ ${t} }`,!1,e.loc,2)))}return Sn(p)};function Sn(e=[]){return{props:e}}function kn(e){return[[bn,At,zt,fn,cn,Xt,yn],{on:mn,bind:gn,model:xn}]}function Nn(e,t={}){const n=t.onError||T,o="module"===t.mode;!0===t.prefixIdentifiers?n(w(45)):o&&n(w(46));t.cacheHandlers&&n(w(47)),t.scopeId&&!o&&n(w(48));const r=d(e)?We(e,t):e,[s,c]=kn();return $t(r,a({},t,{prefixIdentifiers:false,nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:a({},c,t.directiveTransforms||{})})),Mt(r,a({},t,{prefixIdentifiers:false}))}const Tn=()=>({props:[]}),wn=Symbol(""),$n=Symbol(""),_n=Symbol(""),Cn=Symbol(""),Mn=Symbol(""),On=Symbol(""),In=Symbol(""),Pn=Symbol(""),Vn=Symbol(""),Bn=Symbol("");let En;re({[wn]:"vModelRadio",[$n]:"vModelCheckbox",[_n]:"vModelText",[Cn]:"vModelSelect",[Mn]:"vModelDynamic",[On]:"withModifiers",[In]:"withKeys",[Pn]:"vShow",[Vn]:"Transition",[Bn]:"TransitionGroup"});const Ln=e("style,iframe,script,noscript",!0),jn={isVoidTag:c,isNativeTag:e=>r(e)||s(e),isPreTag:e=>"pre"===e,decodeEntities:function(e){return(En||(En=document.createElement("div"))).innerHTML=e,En.textContent},isBuiltInComponent:e=>we(e,"Transition")?Vn:we(e,"TransitionGroup")?Bn:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(Ln(e))return 2}return 0}},Rn=e=>{1===e.type&&e.props.forEach((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:ae("style",!0,t.loc),exp:An(t.value.content,t.loc),modifiers:[],loc:t.loc})})},An=(e,t)=>{const r=function(e){const t={};return e.split(n).forEach(e=>{if(e){const n=e.split(o);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}(e);return ae(JSON.stringify(r),!1,t,3)};function Fn(e,t){return w(e,t)}const Dn=e("passive,once,capture"),Hn=e("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Un=e("left,right"),zn=e("onkeyup,onkeydown,onkeypress",!0),Jn=(e,t)=>Te(e)&&"onclick"===e.content.toLowerCase()?ae(t,!0):4!==e.type?de(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Gn=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},qn=[Rn],Kn={cloak:Tn,html:(e,t,n)=>{const{exp:o,loc:r}=e;return t.children.length&&(t.children.length=0),{props:[ue(ae("innerHTML",!0,r),o||ae("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return t.children.length&&(t.children.length=0),{props:[ue(ae("textContent",!0),o?he(n.helperString(z),[o],r):ae("",!0))]}},model:(e,t,n)=>{const o=xn(e,t,n);if(!o.props.length||1===t.tagType)return o;const{tag:r}=t,s=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||s){let e=_n,c=!1;if("input"===r||s){const n=Le(t,"type");if(n){if(7===n.type)e=Mn;else if(n.value)switch(n.value.content){case"radio":e=wn;break;case"checkbox":e=$n;break;case"file":c=!0}}else Re(t)&&(e=Mn)}else"select"===r&&(e=Cn);c||(o.needRuntime=n.helper(e))}return o.props=o.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),o},on:(e,t,n)=>mn(e,0,n,t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:s}=t.props[0];const{keyModifiers:c,nonKeyModifiers:i,eventOptionModifiers:l}=((e,t)=>{const n=[],o=[],r=[];for(let s=0;s({props:[],needRuntime:n.helper(Pn)})};function Wn(e,t={}){return Nn(e,a({},jn,t,{nodeTransforms:[Gn,...qn,...t.nodeTransforms||[]],directiveTransforms:a({},Kn,t.directiveTransforms||{}),transformHoist:null}))}function Zn(e,t={}){return We(e,a({},jn,t))}export{O as BASE_TRANSITION,q as CAMELIZE,K as CAPITALIZE,P as CREATE_BLOCK,B as CREATE_COMMENT,U as CREATE_SLOTS,L as CREATE_STATIC,E as CREATE_TEXT,V as CREATE_VNODE,Kn as DOMDirectiveTransforms,qn as DOMNodeTransforms,$ as FRAGMENT,ne as IS_REF,M as KEEP_ALIVE,J as MERGE_PROPS,I as OPEN_BLOCK,Y as POP_SCOPE_ID,Q as PUSH_SCOPE_ID,D as RENDER_LIST,H as RENDER_SLOT,j as RESOLVE_COMPONENT,A as RESOLVE_DIRECTIVE,R as RESOLVE_DYNAMIC_COMPONENT,Z as SET_BLOCK_TRACKING,C as SUSPENSE,_ as TELEPORT,z as TO_DISPLAY_STRING,G as TO_HANDLERS,W as TO_HANDLER_KEY,Vn as TRANSITION,Bn as TRANSITION_GROUP,te as UNREF,$n as V_MODEL_CHECKBOX,Mn as V_MODEL_DYNAMIC,wn as V_MODEL_RADIO,Cn as V_MODEL_SELECT,_n as V_MODEL_TEXT,In as V_ON_WITH_KEYS,On as V_ON_WITH_MODIFIERS,Pn as V_SHOW,ee as WITH_CTX,F as WITH_DIRECTIVES,X as WITH_SCOPE_ID,Pe as advancePositionWithClone,Ve as advancePositionWithMutation,Be as assert,Nn as baseCompile,We as baseParse,pn as buildProps,nn as buildSlots,Wn as compile,le as createArrayExpression,Se as createAssignmentExpression,ve as createBlockStatement,ye as createCacheExpression,he as createCallExpression,w as createCompilerError,de as createCompoundExpression,ge as createConditionalExpression,Fn as createDOMCompilerError,Qt as createForLoopParams,me as createFunctionExpression,xe as createIfStatement,fe as createInterpolation,pe as createObjectExpression,ue as createObjectProperty,Ne as createReturnStatement,ce as createRoot,ke as createSequenceExpression,ae as createSimpleExpression,Ct as createStructuralDirectiveTransform,be as createTemplateLiteral,wt as createTransformContext,ie as createVNodeCall,Ee as findDir,Le as findProp,Mt as generate,t as generateCodeFrame,kn as getBaseTransformPreset,Ie as getInnerRange,Re as hasDynamicKeyVBind,Je as hasScopeRef,oe as helperNameMap,Ue as injectProp,je as isBindKey,we as isBuiltInType,$e as isCoreComponent,Oe as isMemberExpression,Ce as isSimpleIdentifier,He as isSlotOutlet,Te as isStaticExp,De as isTemplateNode,Ae as isText,Fe as isVSlot,se as locStub,Tn as noopDirectiveTransform,Zn as parse,jn as parserOptions,Rt as processExpression,Jt as processFor,Ft as processIf,dn as processSlotOutlet,re as registerRuntimeHelpers,ln as resolveComponentType,ze as toValidAssetId,Xt as trackSlotScopes,en as trackVForSlotScopes,$t as transform,gn as transformBind,cn as transformElement,jt as transformExpression,xn as transformModel,mn as transformOn,Rn as transformStyle,_t as traverseNode};