"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("stream");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(require("he"));const r=Object.freeze({}),s=Array.isArray;function o(e){return null==e}function i(e){return null!=e}function c(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return"function"==typeof e}function u(e){return null!==e&&"object"==typeof e}const f=Object.prototype.toString;function p(e){return"[object Object]"===f.call(e)}function d(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===f?JSON.stringify(e,null,2):String(e)}function h(e){const t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;en[e.toLowerCase()]:e=>n[e]}const g=m("slot,component",!0),y=m("key,ref,slot,slot-scope,is");const $=Object.prototype.hasOwnProperty;function v(e,t){return $.call(e,t)}function b(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const _=/-(\w)/g,x=b((e=>e.replace(_,((e,t)=>t?t.toUpperCase():"")))),w=b((e=>e.charAt(0).toUpperCase()+e.slice(1))),S=/\B([A-Z])/g,k=b((e=>e.replace(S,"-$1").toLowerCase()));function O(e,t){for(const n in t)e[n]=t[n];return e}function C(e){const t={};for(let n=0;n!1,j=e=>e;function F(e,t){if(e===t)return!0;const n=u(e),r=u(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{const n=Array.isArray(e),r=Array.isArray(t);if(n&&r)return e.length===t.length&&e.every(((e,n)=>F(e,t[n])));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||r)return!1;{const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>F(e[n],t[n])))}}catch(e){return!1}}function P(e,t){for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,M=e=>I.test(e),R=e=>E(e)||0===e.indexOf("data-")||0===e.indexOf("aria-"),D={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},L={"<":"<",">":">",'"':""","&":"&"};function z(e){return e.replace(/[<>"&]/g,B)}function B(e){return L[e]||e}const U={"animation-iteration-count":!0,"border-image-outset":!0,"border-image-slice":!0,"border-image-width":!0,"box-flex":!0,"box-flex-group":!0,"box-ordinal-group":!0,"column-count":!0,columns:!0,flex:!0,"flex-grow":!0,"flex-positive":!0,"flex-shrink":!0,"flex-negative":!0,"flex-order":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-span":!0,"grid-row-start":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-span":!0,"grid-column-start":!0,"font-weight":!0,"line-clamp":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"tab-size":!0,widows:!0,"z-index":!0,zoom:!0,"fill-opacity":!0,"flood-opacity":!0,"stop-opacity":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-miterlimit":!0,"stroke-opacity":!0,"stroke-width":!0},q=e=>/\.js(\?[^.]+)?$/.test(e);function J(){let e,t;return{promise:new Promise(((n,r)=>{e=n,t=r})),cb:(n,r)=>{if(n)return t(n);e(r||"")}}}const K=m("input,textarea,option,select,progress"),H=m("contenteditable,draggable,spellcheck"),V=m("events,caret,typing,plaintext-only"),W=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Z=e=>null==e||!1===e;function G(e,t){if(W(e)){if(!Z(t))return` ${e}="${e}"`}else{if(H(e))return` ${e}="${z(((e,t)=>Z(t)||"false"===t?"false":"contenteditable"===e&&V(t)?t:"true")(e,t))}"`;if(!Z(t))return` ${e}="${z(String(t))}"`}return""}class Q{constructor(e,t,n,r,s,o,i,c){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=s,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=i,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=c,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}get child(){return this.componentInstance}}const X=(e="")=>{const t=new Q;return t.text=e,t.isComment=!0,t};function Y(e){return new Q(void 0,void 0,void 0,String(e))}function ee(e,t,n){const r=new Q(void 0,void 0,void 0,t);r.raw=n,e.children=[r]}function te(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}const ne="__proto__"in{},re="undefined"!=typeof window,se=re&&window.navigator.userAgent.toLowerCase(),oe=se&&/msie|trident/.test(se);se&&se.indexOf("msie 9.0");se&&se.indexOf("edge/");se&&se.indexOf("android"),se&&/iphone|ipad|ipod|ios/.test(se),se&&/chrome\/\d+/.test(se),se&&/phantomjs/.test(se),se&&se.match(/firefox\/(\d+)/);const ie={}.watch;let ce,ae=!1;if(re)try{const e={};Object.defineProperty(e,"passive",{get(){ae=!0}}),window.addEventListener("test-passive",null,e)}catch(e){}const le=()=>(void 0===ce&&(ce=!re&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),ce);function ue(e){return"function"==typeof e&&/native code/.test(e.toString())}const fe="undefined"!=typeof Symbol&&ue(Symbol)&&"undefined"!=typeof Reflect&&ue(Reflect.ownKeys);let pe;pe="undefined"!=typeof Set&&ue(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};const de=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"];var he={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:A,isReservedAttr:A,isUnknownElement:A,getTagNamespace:T,parsePlatformTagName:j,mustUseProp:A,async:!0,_lifecycleHooks:de};let me=null;function ge(e=null){e||me&&me._scope.off(),me=e,e&&e._scope.on()}let ye=0;class $e{constructor(){this.id=ye++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){!function(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)e.splice(n,1)}}(this.subs,e)}depend(e){$e.target&&$e.target.addDep(this)}notify(e){const t=this.subs.slice();for(let e=0,n=t.length;e=0&&Math.floor(t)===t&&isFinite(e)}(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),o&&!o.shallow&&o.mock&&je(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||o&&o.vmCount?n:o?(Fe(o.value,t,n,void 0,o.shallow,o.mock),o.dep.notify(),n):(e[t]=n,n)}function Ne(e){for(let t,n=0,r=e.length;n{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function Me(e,t){function n(){const e=n.fns;if(!s(e))return wt(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e0&&(l=Be(l,`${t||""}_${r}`),ze(l[0])&&ze(f)&&(n[u]=Y(f.text+l[0].text),l.shift()),n.push.apply(n,l)):a(l)?ze(f)?n[u]=Y(f.text+l):""!==l&&n.push(Y(l)):ze(l)&&ze(f)?n[u]=Y(f.text+l.text):(c(e._isVList)&&i(l.tag)&&o(l.key)&&i(t)&&(l.key=`__vlist${t}_${r}__`),n.push(l)));return n}function Ue(e,t,n,r,o,f){return(s(n)||a(n))&&(o=r,r=n,n=void 0),c(f)&&(o=2),function(e,t,n,r,o){if(i(n)&&i(n.__ob__))return X();i(n)&&i(n.is)&&(t=n.is);if(!t)return X();s(r)&&l(r[0])&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);2===o?r=Le(r):1===o&&(r=De(r));let c,a;if("string"==typeof t){let s;a=e.$vnode&&e.$vnode.ns||he.getTagNamespace(t),c=n&&n.pre||!i(s=Kt(e.$options,"components",t))?new Q(t,n,r,void 0,void 0,e):It(s,n,e,r,t)}else c=It(t,n,e,r);return s(c)?c:i(c)?(i(a)&&qe(c,a),i(n)&&function(e){u(e.style)&&Ct(e.style);u(e.class)&&Ct(e.class)}(n),c):X()}(e,t,n,r,o)}function qe(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(let r=0,s=e.children.length;r0,c=t?!!t.$stable:!i,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(c&&s&&s!==r&&a===s.$key&&!i&&!s.$hasNormal)return s;o={};for(const r in t)t[r]&&"$"!==r[0]&&(o[r]=at(e,n,r,t[r]))}else o={};for(const e in n)e in o||(o[e]=lt(n,e));return t&&Object.isExtensible(t)&&(t._normalized=o),te(o,"$stable",c),te(o,"$key",a),te(o,"$hasNormal",i),o}function at(e,t,n,r){const o=function(){const t=me;ge(e);let n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"==typeof n&&!s(n)?[n]:Le(n);const o=n&&n[0];return ge(t),n&&(!o||1===n.length&&o.isComment&&!it(o))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:o,enumerable:!0,configurable:!0}),o}function lt(e,t){return()=>e[t]}function ut(e,t,n){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:()=>n.$attrs[t]})}let ft;function pt(e,t){ft.$on(e,t)}function dt(e,t){ft.$off(e,t)}function ht(e,t){const n=ft;return function r(){const s=t.apply(null,arguments);null!==s&&n.$off(e,r)}}function mt(e,t,n){ft=e,function(e,t,n,r,s,i){let a,l,u,f;for(a in e)l=e[a],u=t[a],f=Ie(a),o(l)||(o(u)?(o(l.fns)&&(l=e[a]=Me(l,i)),c(f.once)&&(l=e[a]=s(f.name,l,f.capture)),n(f.name,l,f.capture,f.passive,f.params)):l!==u&&(u.fns=l,e[a]=u));for(a in t)o(e[a])&&(f=Ie(a),r(f.name,t[a],f.capture))}(t,n||{},pt,dt,ht,e),ft=void 0}function gt(e,t,n,s,o){const i=s.data.scopedSlots,c=e.$scopedSlots,a=!!(i&&!i.$stable||c!==r&&!c.$stable||i&&e.$scopedSlots.$key!==i.$key||!i&&e.$scopedSlots.$key);let l=!!(o||e.$options._renderChildren||a);const u=e.$vnode;e.$options._parentVnode=s,e.$vnode=s,e._vnode&&(e._vnode.parent=s),e.$options._renderChildren=o;const f=s.data.attrs||r;if(e._attrsProxy&&function(e,t,n,r){let s=!1;for(const o in t)o in e?t[o]!==n[o]&&(s=!0):(s=!0,ut(e,o,r));for(const n in e)n in t||(s=!0,delete e[n]);return s}(e._attrsProxy,f,u.data&&u.data.attrs||r,e)&&(l=!0),e.$attrs=f,e.$listeners=n||r,t&&e.$options.props){Ce(!1);const n=e._props,r=e.$options._propKeys||[];for(let s=0;sdocument.createEvent("Event").timeStamp&&(_t=()=>e.now())}function xt(e,t,n){be();try{if(t){let r=t;for(;r=r.$parent;){const s=r.$options.errorCaptured;if(s)for(let o=0;oxt(e,r,s+" (Promise/async)"))),o._handled=!0)}catch(e){xt(e,r,s)}var c;return o}function St(e,t,n){!function(e,t,n){if(!re||"undefined"==typeof console)throw e;console.error(e)}(e)}const kt=[];if("undefined"!=typeof Promise&&ue(Promise))Promise.resolve();else if(oe||"undefined"==typeof MutationObserver||!ue(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())"undefined"!=typeof setImmediate&&ue(setImmediate);else{let e=1;const t=new MutationObserver((function(){const e=kt.slice(0);kt.length=0;for(let t=0;t(this.$slots||ct(o,e.scopedSlots,this.$slots=st(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ct(o,e.scopedSlots,this.slots())}}),f&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=ct(o,e.scopedSlots,this.$slots)),a._scopeId?this._c=(e,t,n,r)=>{const i=Ue(u,e,t,n,r,p);return i&&!s(i)&&(i.fnScopeId=a._scopeId,i.fnContext=o),i}:this._c=(e,t,n,r)=>Ue(u,e,t,n,r,p)}function Ft(e,t,n,r,s){const o=function(e){const t=new Q(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Pt(e,t){for(const n in t)e[x(n)]=t[n]}!function(e){e._o=Qe,e._n=h,e._s=d,e._l=Je,e._t=Ke,e._q=F,e._i=P,e._m=Ge,e._f=He,e._k=We,e._b=Ze,e._v=Y,e._e=X,e._u=tt,e._g=et,e._d=nt,e._p=rt}(jt.prototype);const Nt={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Nt.prepatch(t,t)}else{(e.componentInstance=Mt(e,null)).$mount(t?e.elm:void 0,t)}},prepatch(e,t){const n=t.componentOptions;gt(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert(e){const{context:t,componentInstance:n}=e;n._isMounted||(n._isMounted=!0,bt(n,"mounted")),e.data.keepAlive&&(t._isMounted?function(e){e._inactive=!1}(n):$t(n,!0))},destroy(e){const{componentInstance:t}=e;t._isDestroyed||(e.data.keepAlive?vt(t,!0):t.$destroy())}},Et=Object.keys(Nt);function It(e,t,n,a,l){if(o(e))return;const f=n.$options._base;if(u(e)&&(e=f.extend(e)),"function"!=typeof e)return;let p;if(o(e.cid)&&(p=e,void 0===(e=c((d=p).error)&&i(d.errorComp)?d.errorComp:i(d.resolved)?d.resolved:c(d.loading)&&i(d.loadingComp)?d.loadingComp:void 0)))return function(e,t,n,r,s){const o=X();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:s},o}(p,t,n,a,l);var d;t=t||{},At(e),i(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const o=t.on||(t.on={}),c=o[r],a=t.model.callback;i(c)?(s(c)?-1===c.indexOf(a):c!==a)&&(o[r]=[a].concat(c)):o[r]=a}(e.options,t);const h=function(e,t,n){const r=t.options.props;if(o(r))return;const s={},{attrs:c,props:a}=e;if(i(c)||i(a))for(const e in r){const t=k(e);Re(s,a,e,t,!0)||Re(s,c,e,t,!1)}return s}(t,e);if(c(e.options.functional))return function(e,t,n,o,c){const a=e.options,l={},u=a.props;if(i(u))for(const e in u)l[e]=Ht(e,u,t||r);else i(n.attrs)&&Pt(l,n.attrs),i(n.props)&&Pt(l,n.props);const f=new jt(n,l,c,o,e),p=a.render.call(null,f._c,f);if(p instanceof Q)return Ft(p,n,f.parent,a);if(s(p)){const e=Le(p)||[],t=new Array(e.length);for(let r=0;r{e(n,r),t(n,r)};return n._merged=!0,n}const Dt=he.optionMergeStrategies;function Lt(e,t){if(!t)return e;let n,r,s;const o=fe?Reflect.ownKeys(t):Object.keys(t);for(let i=0;i{Dt[e]=Bt})),["component","directive","filter"].forEach((function(e){Dt[e+"s"]=Ut})),Dt.watch=function(e,t,n,r){if(e===ie&&(e=void 0),t===ie&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const o={};O(o,e);for(const e in t){let n=o[e];const r=t[e];n&&!s(n)&&(n=[n]),o[e]=n?n.concat(r):s(r)?r:[r]}return o},Dt.props=Dt.methods=Dt.inject=Dt.computed=function(e,t,n,r){if(!e)return t;const s=Object.create(null);return O(s,e),t&&O(s,t),s},Dt.provide=zt;const qt=function(e,t){return void 0===t?e:t};function Jt(e,t,n){if(l(t)&&(t=t.options),function(e,t){const n=e.props;if(!n)return;const r={};let o,i,c;if(s(n))for(o=n.length;o--;)i=n[o],"string"==typeof i&&(c=x(i),r[c]={type:null});else if(p(n))for(const e in n)i=n[e],c=x(e),r[c]=p(i)?i:{type:i};e.props=r}(t),function(e,t){const n=e.inject;if(!n)return;const r=e.inject={};if(s(n))for(let e=0;e-1)if(o&&!v(s,"default"))i=!1;else if(""===i||i===k(e)){const e=Gt(String,s.type);(e<0||c1&&(t[r[0].trim()]=r[1].trim())}})),t}));function sn(e){const t=on(e.style);return e.staticStyle?O(e.staticStyle,t):t}function on(e){return Array.isArray(e)?C(e):"string"==typeof e?rn(e):e}function cn(e){let t="";for(const n in e){const r=e[n],s=k(n);if(Array.isArray(r))for(let e=0,n=r.length;e-1&&fn(s)}else if(F(n,un(s)))return void fn(s)}}};const dn=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),hn=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),mn=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),gn=e=>e,yn="undefined"!=typeof process&&process.nextTick?process.nextTick:"undefined"!=typeof Promise?e=>Promise.resolve().then(e):"undefined"!=typeof setTimeout?setTimeout:gn;if(yn===gn)throw new Error("Your JavaScript runtime does not support any asynchronous primitives that are required by vue-server-renderer. Please use a polyfill for either Promise or setTimeout.");function $n(e,t){let n=0;const r=(s,o)=>{s&&r.caching&&(r.cacheBuffer[r.cacheBuffer.length-1]+=s);!0!==e(s,o)&&(n>=800?yn((()=>{try{o()}catch(e){t(e)}})):(n++,o(),n--))};return r.caching=!1,r.cacheBuffer=[],r.componentBuffer=[],r}class vn extends e.Readable{constructor(e){super(),this.buffer="",this.render=e,this.expectedSize=0,this.write=$n(((e,t)=>{const n=this.expectedSize;return this.buffer+=e,this.buffer.length>=n&&(this.next=t,this.pushBySize(n),!0)}),(e=>{this.emit("error",e)})),this.end=()=>{this.emit("beforeEnd"),this.done=!0,this.push(this.buffer)}}pushBySize(e){const t=this.buffer.substring(0,e);this.buffer=this.buffer.substring(e),this.push(t)}tryRender(){try{this.render(this.write,this.end)}catch(e){this.emit("error",e)}}tryNext(){try{this.next()}catch(e){this.emit("error",e)}}_read(e){this.expectedSize=e,c(this.done)?this.push(null):this.buffer.length>=e?this.pushBySize(e):o(this.next)?this.tryRender():this.tryNext()}}class bn{constructor(e){this.userContext=e.userContext,this.activeInstance=e.activeInstance,this.renderStates=[],this.write=e.write,this.done=e.done,this.renderNode=e.renderNode,this.isUnaryTag=e.isUnaryTag,this.modules=e.modules,this.directives=e.directives;const t=e.cache;if(t&&(!t.get||!t.set))throw new Error("renderer cache must implement at least get & set.");this.cache=t,this.get=t&&_n(t,"get"),this.has=t&&_n(t,"has"),this.next=this.next.bind(this)}next(){for(;;){const e=this.renderStates[this.renderStates.length-1];if(o(e))return this.done();switch(e.type){case"Element":case"Fragment":const{children:t,total:n}=e,r=e.rendered++;if(re.add(t)))}s.length=o,i.length=o}}}}function _n(e,t){const n=e[t];return o(n)?void 0:n.length>1?(t,r)=>n.call(e,t,r):(t,r)=>r(n.call(e,t))}const xn=/[\w).+\-_$\]]/;function wn(e){let t,n,r,s,o,i=!1,c=!1,a=!1,l=!1,u=0,f=0,p=0,d=0;for(r=0;r=0&&(t=e.charAt(n)," "===t);n--);t&&xn.test(t)||(l=!0)}}else void 0===s?(d=r+1,s=e.slice(0,r).trim()):h();function h(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===s?s=e.slice(0,r).trim():0!==d&&h(),o)for(r=0;r{const t=e[0].replace(On,"\\$&"),n=e[1].replace(On,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));function Tn(e,t){console.error(`[Vue compiler]: ${e}`)}function An(e,t){return e?e.map((e=>e[t])).filter((e=>e)):[]}function jn(e,t,n,r,s){(e.props||(e.props=[])).push(Ln({name:t,value:n,dynamic:s},r)),e.plain=!1}function Fn(e,t,n,r,s){(s?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Ln({name:t,value:n,dynamic:s},r)),e.plain=!1}function Pn(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Ln({name:t,value:n},r))}function Nn(e,t,n,r,s,o,i,c){(e.directives||(e.directives=[])).push(Ln({name:t,rawName:n,value:r,arg:s,isDynamicArg:o,modifiers:i},c)),e.plain=!1}function En(e,t,n){return n?`_p(${t},"${e}")`:e+t}function In(e,t,n,s,o,i,c,a){let l;(s=s||r).right?a?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete s.right):s.middle&&(a?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),s.capture&&(delete s.capture,t=En("!",t,a)),s.once&&(delete s.once,t=En("~",t,a)),s.passive&&(delete s.passive,t=En("&",t,a)),s.native?(delete s.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});const u=Ln({value:n.trim(),dynamic:a},c);s!==r&&(u.modifiers=s);const f=l[t];Array.isArray(f)?o?f.unshift(u):f.push(u):l[t]=f?o?[u,f]:[f,u]:u,e.plain=!1}function Mn(e,t,n){const r=Rn(e,":"+t)||Rn(e,"v-bind:"+t);if(null!=r)return wn(r);if(!1!==n){const n=Rn(e,t);if(null!=n)return JSON.stringify(n)}}function Rn(e,t,n){let r;if(null!=(r=e.attrsMap[t])){const n=e.attrsList;for(let e=0,r=n.length;e\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,qn=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Jn=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source}]*`,Kn=`((?:${Jn}\\:)?${Jn})`,Hn=new RegExp(`^<${Kn}`),Vn=/^\s*(\/?)>/,Wn=new RegExp(`^<\\/${Kn}[^>]*>`),Zn=/^]+>/i,Gn=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},tr=/&(?:lt|gt|quot|amp|#39);/g,nr=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,rr=m("pre,textarea",!0),sr=(e,t)=>e&&rr(e)&&"\n"===t[0];function or(e,t){const n=t?nr:tr;return e.replace(n,(e=>er[e]))}function ir(e,t,n){const{number:r,trim:s}=n||{},o="$$v";let i=o;s&&(i="(typeof $$v === 'string'? $$v.trim(): $$v)"),r&&(i=`_n(${i})`);const c=cr(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${c}}`}}function cr(e,t){const n=function(e){if(e=e.trim(),ar=e.length,e.indexOf("[")<0||e.lastIndexOf("]")-1?{exp:e.slice(0,fr),key:'"'+e.slice(fr+1)+'"'}:{exp:e,key:null};lr=e,fr=pr=dr=0;for(;!mr();)ur=hr(),gr(ur)?$r(ur):91===ur&&yr(ur);return{exp:e.slice(0,pr),key:e.slice(pr+1,dr)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let ar,lr,ur,fr,pr,dr;function hr(){return lr.charCodeAt(++fr)}function mr(){return fr>=ar}function gr(e){return 34===e||39===e}function yr(e){let t=1;for(pr=fr;!mr();)if(gr(e=hr()))$r(e);else if(91===e&&t++,93===e&&t--,0===t){dr=fr;break}}function $r(e){const t=e;for(;!mr()&&(e=hr())!==t;);}const vr=/^@|^v-on:/,br=/^v-|^@|^:|^#/,_r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,xr=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,wr=/^\(|\)$/g,Sr=/^\[.*\]$/,kr=/:(.*)$/,Or=/^:|^\.|^v-bind:/,Cr=/\.[^.\]]+(?=[^\]]*$)/g,Tr=/^v-slot(:|$)|^#/,Ar=/[\r\n]/,jr=/[ \f\t\r\n]+/g,Fr=b(n.default.decode);let Pr,Nr,Er,Ir,Mr,Rr,Dr,Lr;function zr(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:Vr(t),rawAttrsMap:{},parent:n,children:[]}}function Br(e,t){Pr=t.warn||Tn,Rr=t.isPreTag||A,Dr=t.mustUseProp||A,Lr=t.getTagNamespace||A,t.isReservedTag,Er=An(t.modules,"transformNode"),Ir=An(t.modules,"preTransformNode"),Mr=An(t.modules,"postTransformNode"),Nr=t.delimiters;const n=[],r=!1!==t.preserveWhitespace,s=t.whitespace;let o,i,c=!1,a=!1;function l(e){if(u(e),c||e.processed||(e=Ur(e,t)),n.length||e===o||o.if&&(e.elseif||e.else)&&Jr(o,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)!function(e,t){const n=function(e){let t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(t.children);n&&n.if&&Jr(n,{exp:e.elseif,block:e})}(e,i);else{if(e.slotScope){const t=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[t]=e}i.children.push(e),e.parent=i}e.children=e.children.filter((e=>!e.slotScope)),u(e),e.pre&&(c=!1),Rr(e.tag)&&(a=!1);for(let n=0;n]*>)","i")),o=e.replace(s,(function(e,s,o){return n=o.length,Xn(r)||"noscript"===r||(s=s.replace(//g,"$1").replace(//g,"$1")),sr(r,s)&&(s=s.slice(1)),t.chars&&t.chars(s),""}));a+=e.length-o.length,e=o,p(r,a-n,a)}else{let n,r,s,o=e.indexOf("<");if(0===o){if(Gn.test(e)){const n=e.indexOf("--\x3e");if(n>=0){t.shouldKeepComment&&t.comment&&t.comment(e.substring(4,n),a,a+n+3),l(n+3);continue}}if(Qn.test(e)){const t=e.indexOf("]>");if(t>=0){l(t+2);continue}}const n=e.match(Zn);if(n){l(n[0].length);continue}const r=e.match(Wn);if(r){const e=a;l(r[0].length),p(r[1],e,a);continue}const s=u();if(s){f(s),sr(s.tagName,e)&&l(1);continue}}if(o>=0){for(r=e.slice(o);!(Wn.test(r)||Hn.test(r)||Gn.test(r)||Qn.test(r)||(s=r.indexOf("<",1),s<0));)o+=s,r=e.slice(o);n=e.substring(0,o)}o<0&&(n=e),n&&l(n.length),t.chars&&n&&t.chars(n,a-n.length,a)}if(e===i){t.chars&&t.chars(e);break}}function l(t){a+=t,e=e.substring(t)}function u(){const t=e.match(Hn);if(t){const n={tagName:t[1],attrs:[],start:a};let r,s;for(l(t[0].length);!(r=e.match(Vn))&&(s=e.match(qn)||e.match(Un));)s.start=a,l(s[0].length),s.end=a,n.attrs.push(s);if(r)return n.unarySlash=r[1],l(r[0].length),n.end=a,n}}function f(e){const i=e.tagName,a=e.unarySlash;r&&("p"===c&&mn(i)&&p(c),o(i)&&c===i&&p(i));const l=s(i)||!!a,u=e.attrs.length,f=new Array(u);for(let n=0;n=0&&n[o].lowerCasedTag!==i;o--);else o=0;if(o>=0){for(let e=n.length-1;e>=o;e--)t.end&&t.end(n[e].tag,r,s);n.length=o,c=o&&n[o-1].tag}else"br"===i?t.start&&t.start(e,[],!0,r,s):"p"===i&&(t.start&&t.start(e,[],!1,r,s),t.end&&t.end(e,r,s))}p()}(e,{warn:Pr,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start(e,r,s,u,f){const p=i&&i.ns||Lr(e);oe&&"svg"===p&&(r=function(e){const t=[];for(let n=0;na&&(s.push(c=e.slice(a,i)),r.push(JSON.stringify(c)));const t=wn(o[1].trim());r.push(`_s(${t})`),s.push({"@binding":t}),a=i+o[0].length}return a{if(!e.slotScope)return e.parent=o,!0})),o.slotScope=t.value||"_empty_",e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=Mn(n,"name")),function(e){let t;(t=Mn(e,"is"))&&(e.component=t);null!=Rn(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n{e[t.slice(1)]=!0})),e}}function Vr(e){const t={};for(let n=0,r=e.length;n-1`+("true"===o?`:(${t})`:`:_q(${t},${o})`)),In(e,"change",`var $$a=${t},$$el=$event.target,$$c=$$el.checked?(${o}):(${i});if(Array.isArray($$a)){var $$v=${r?"_n("+s+")":s},$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(${cr(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${cr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${cr(t,"$$c")}}`,null,!0)}(e,r,s);else if("input"===o&&"radio"===i)!function(e,t,n){const r=n&&n.number;let s=Mn(e,"value")||"null";s=r?`_n(${s})`:s,jn(e,"checked",`_q(${t},${s})`),In(e,"change",cr(t,s),null,!0)}(e,r,s);else{if("input"!==o&&"textarea"!==o)return ir(e,r,s),!1;!function(e,t,n){const r=e.attrsMap.type,{lazy:s,number:o,trim:i}=n||{},c=!s&&"range"!==r,a=s?"change":"range"===r?"__r":"input";let l="$event.target.value";i&&(l="$event.target.value.trim()");o&&(l=`_n(${l})`);let u=cr(t,l);c&&(u=`if($event.target.composing)return;${u}`);jn(e,"value",`(${t})`),In(e,a,u,null,!0),(i||o)&&In(e,"blur","$forceUpdate()")}(e,r,s)}return!0},text:function(e,t){t.value&&jn(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&jn(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:dn,mustUseProp:(e,t,n)=>"value"===n&&K(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,canBeLeftOpenTag:hn,isReservedTag:e=>tn(e)||nn(e),getTagNamespace:function(e){return nn(e)?"svg":"math"===e?"math":void 0},staticKeys:function(e){return e.reduce(((e,t)=>e.concat(t.staticKeys||[])),[]).join(",")}(Qr)},Yr=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,es=/\([^)]*?\);*$/,ts=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ns={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},rs={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},ss=e=>`if(${e})return null;`,os={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ss("$event.target !== $event.currentTarget"),ctrl:ss("!$event.ctrlKey"),shift:ss("!$event.shiftKey"),alt:ss("!$event.altKey"),meta:ss("!$event.metaKey"),left:ss("'button' in $event && $event.button !== 0"),middle:ss("'button' in $event && $event.button !== 1"),right:ss("'button' in $event && $event.button !== 2")};function is(e,t){const n=t?"nativeOn:":"on:";let r="",s="";for(const t in e){const n=cs(e[t]);e[t]&&e[t].dynamic?s+=`${t},${n},`:r+=`"${t}":${n},`}return r=`{${r.slice(0,-1)}}`,s?n+`_d(${r},[${s.slice(0,-1)}])`:n+r}function cs(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map((e=>cs(e))).join(",")}]`;const t=ts.test(e.value),n=Yr.test(e.value),r=ts.test(e.value.replace(es,""));if(e.modifiers){let s="",o="";const i=[];for(const t in e.modifiers)if(os[t])o+=os[t],ns[t]&&i.push(t);else if("exact"===t){const t=e.modifiers;o+=ss(["ctrl","shift","alt","meta"].filter((e=>!t[e])).map((e=>`$event.${e}Key`)).join("||"))}else i.push(t);i.length&&(s+=function(e){return`if(!$event.type.indexOf('key')&&${e.map(as).join("&&")})return null;`}(i)),o&&(s+=o);return`function($event){${s}${t?`return ${e.value}.apply(null, arguments)`:n?`return (${e.value}).apply(null, arguments)`:r?`return ${e.value}`:e.value}}`}return t||n?e.value:`function($event){${r?`return ${e.value}`:e.value}}`}function as(e){const t=parseInt(e,10);if(t)return`$event.keyCode!==${t}`;const n=ns[e],r=rs[e];return`_k($event.keyCode,${JSON.stringify(e)},${JSON.stringify(n)},$event.key,${JSON.stringify(r)})`}var ls={on:function(e,t){e.wrapListeners=e=>`_g(${e},${t.value})`},bind:function(e,t){e.wrapData=n=>`_b(${n},'${e.tag}',${t.value},${t.modifiers&&t.modifiers.prop?"true":"false"}${t.modifiers&&t.modifiers.sync?",true":""})`},cloak:T};class us{constructor(e){this.options=e,this.warn=e.warn||Tn,this.transforms=An(e.modules,"transformCode"),this.dataGenFns=An(e.modules,"genData"),this.directives=O(O({},ls),e.directives);const t=e.isReservedTag||A;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function fs(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return ds(e,t);if(e.once&&!e.onceProcessed)return hs(e,t);if(e.for&&!e.forProcessed)return ys(e,t);if(e.if&&!e.ifProcessed)return ms(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',r=_s(e,t);let s=`_t(${n}${r?`,function(){return ${r}}`:""}`;const o=e.attrs||e.dynamicAttrs?ks((e.attrs||[]).concat(e.dynamicAttrs||[]).map((e=>({name:x(e.name),value:e.value,dynamic:e.dynamic})))):null,i=e.attrsMap["v-bind"];!o&&!i||r||(s+=",null");o&&(s+=`,${o}`);i&&(s+=`${o?"":",null"},${i}`);return s+")"}(e,t);{let n;if(e.component)n=function(e,t,n){const r=t.inlineTemplate?null:_s(t,n,!0);return`_c(${e},${$s(t,n)}${r?`,${r}`:""})`}(e.component,e,t);else{let r;const s=t.maybeComponent(e);let o;(!e.plain||e.pre&&s)&&(r=$s(e,t));const i=t.options.bindings;s&&i&&!1!==i.__isScriptSetup&&(o=ps(i,e.tag)||ps(i,x(e.tag))||ps(i,w(x(e.tag)))),o||(o=`'${e.tag}'`);const c=e.inlineTemplate?null:_s(e,t,!0);n=`_c(${o}${r?`,${r}`:""}${c?`,${c}`:""})`}for(let r=0;r{const n=t[e];return n.slotTargetDynamic||n.if||n.for||vs(n)})),s=!!e.if;if(!r){let t=e.parent;for(;t;){if(t.slotScope&&"_empty_"!==t.slotScope||t.for){r=!0;break}t.if&&(s=!0),t=t.parent}}const o=Object.keys(t).map((e=>bs(t[e],n))).join(",");return`scopedSlots:_u([${o}]${r?",null,true":""}${!r&&s?`,null,false,${function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(o)}`:""})`}(e,e.scopedSlots,t)},`),e.model&&(n+=`model:{value:${e.model.value},callback:${e.model.callback},expression:${e.model.expression}},`),e.inlineTemplate){const r=function(e,t){const n=e.children[0];if(n&&1===n.type){const e=function(e,t){const n=new us(t);return{render:`with(this){return ${e?"script"===e.tag?"null":fs(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}(n,t.options);return`inlineTemplate:{render:function(){${e.render}},staticRenderFns:[${e.staticRenderFns.map((e=>`function(){${e}}`)).join(",")}]}`}}(e,t);r&&(n+=`${r},`)}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n=`_b(${n},"${e.tag}",${ks(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function vs(e){return 1===e.type&&("slot"===e.tag||e.children.some(vs))}function bs(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return ms(e,t,bs,"null");if(e.for&&!e.forProcessed)return ys(e,t,bs);const r="_empty_"===e.slotScope?"":String(e.slotScope),s=`function(${r}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${_s(e,t)||"undefined"}:undefined`:_s(e,t)||"undefined":fs(e,t)}}`,o=r?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${s}${o}}`}function _s(e,t,n,r,s){const o=e.children;if(o.length){const e=o[0];if(1===o.length&&e.for&&"template"!==e.tag&&"slot"!==e.tag){const s=n?t.maybeComponent(e)?",1":",0":"";return`${(r||fs)(e,t)}${s}`}const i=n?function(e,t){let n=0;for(let r=0;rxs(e.block)))){n=2;break}(t(s)||s.ifConditions&&s.ifConditions.some((e=>t(e.block))))&&(n=1)}}return n}(o,t.maybeComponent):0,c=s||ws;return`[${o.map((e=>c(e,t))).join(",")}]${i?`,${i}`:""}`}}function xs(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function ws(e,t){return 1===e.type?fs(e,t):3===e.type&&e.isComment?function(e){return`_e(${JSON.stringify(e.text)})`}(e):Ss(e)}function Ss(e){return`_v(${2===e.type?e.expression:Os(JSON.stringify(e.text))})`}function ks(e){let t="",n="";for(let r=0;r"model"===e.name))}(e)}(e))return void(e.ssrOptimizability=As);const n=t||function(e){return 1===e.type&&e.directives&&e.directives.some((e=>!Rs(e.name)))}(e),r=t=>{t.ssrOptimizability!==js&&(e.ssrOptimizability=n?Ns:Fs)};if(n&&(e.ssrOptimizability=Ps),1===e.type){for(let t=0,n=e.children.length;t{r.length&&n.push({type:1,parent:e,tag:"template",attrsList:[],attrsMap:{},rawAttrsMap:{},children:r,ssrOptimizability:js}),r=[]};for(let e=0;e"${n?`,${n}`:""})`}(e,t);case Ps:return Bs(e,t,!0);case Ns:return Bs(e,t,!1);default:return fs(e,t)}}function Bs(e,t,n){const r=e.plain?void 0:$s(e,t),s=n?`[${Js(e,t)}]`:Us(e,t,!0);return`_c('${e.tag}'${r?`,${r}`:""}${s?`,${s}`:""})`}function Us(e,t,n){return _s(e,t,n,zs,qs)}function qs(e,t){return 1===e.type?zs(e,t):Ss(e)}function Js(e,t){return e.children.length?`_ssrNode(${Zs(Ws(e,t))})`:""}function Ks(e,t){return`(${Zs(Hs(e,t))})`}function Hs(e,t){if(e.for&&!e.forProcessed)return e.forProcessed=!0,[{type:Ls,value:ys(e,t,Ks,"_ssrList")}];if(e.if&&!e.ifProcessed)return e.ifProcessed=!0,[{type:Ls,value:ms(e,t,Ks,'"\x3c!----\x3e"')}];if("template"===e.tag)return Ws(e,t);const n=Vs(e,t),r=Ws(e,t),{isUnaryTag:s}=t.options,o=s&&s(e.tag)?[]:[{type:Ds,value:``}];return n.concat(r,o)}function Vs(e,t){let n;!function(e,t){if(e.directives)for(let n=0;n"value"!==e.name)));break}}}(e,t);const r=[{type:Ds,value:`<${e.tag}`}];var s,o,i,c,a,l;return e.attrs&&r.push.apply(r,e.attrs.map((({name:e,value:t})=>Ts(e,t)))),e.props&&r.push.apply(r,function(e,t){const n=[];return e.forEach((({name:e,value:r})=>{e=D[e]||e.toLowerCase(),!R(e)||t&&t.some((t=>t.name===e))||n.push(Ts(e,r))})),n}(e.props,e.attrs)),(n=e.attrsMap["v-bind"])&&r.push({type:Ls,value:`_ssrAttrs(${n})`}),(n=e.attrsMap["v-bind.prop"])&&r.push({type:Ls,value:`_ssrDOMProps(${n})`}),(e.staticClass||e.classBinding)&&r.push.apply(r,(s=e.staticClass,o=e.classBinding,s&&!o?[{type:Ds,value:` class="${JSON.parse(s)}"`}]:[{type:Ls,value:`_ssrClass(${s||"null"},${o||"null"})`}])),(e.staticStyle||e.styleBinding||e.attrsMap["v-show"])&&r.push.apply(r,(i=e.attrsMap.style,c=e.staticStyle,a=e.styleBinding,l=e.attrsMap["v-show"],!i||a||l?[{type:Ls,value:`_ssrStyle(${c||"null"},${a||"null"}, ${l?`{ display: (${l}) ? '' : 'none' }`:"null"})`}]:[{type:Ds,value:` style=${JSON.stringify(i)}`}])),t.options.scopeId&&r.push({type:Ds,value:` ${t.options.scopeId}`}),r.push({type:Ds,value:">"}),r}function Ws(e,t){let n;return(n=e.attrsMap["v-html"])?[{type:Ls,value:`_s(${n})`}]:(n=e.attrsMap["v-text"])||"textarea"===e.tag&&(n=e.attrsMap["v-model"])?[{type:1,value:`_s(${n})`}]:e.children?function(e,t){const n=[];for(let r=0;r{n&&(t.push(JSON.stringify(n)),n="")};for(let s=0;sGs(e,a))),t[o]=c}}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");const Xs=(Ys=function(e,t){const n=Br(e.trim(),t);Is(n,t);const r=function(e,t){const n=new us(t);return{render:`with(this){return ${e?zs(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){const r=Object.create(e),s=[],o=[];if(n){n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=O(Object.create(e.directives||null),n.directives));for(const e in n)"modules"!==e&&"directives"!==e&&(r[e]=n[e])}r.warn=(e,t,n)=>{(n?o:s).push(e)};const i=Ys(t.trim(),r);return i.errors=s,i.tips=o,i}return{compile:t,compileToFunctions:Qs(t)}});var Ys;const{compile:eo,compileToFunctions:to}=Xs(Xr),no={_ssrEscape:z,_ssrNode:function(e,t,n,r){return new ro(e,t,n,r)},_ssrList:function(e,t){let n,r,s,o,i="";if(Array.isArray(e)||"string"==typeof e)for(n=0,r=e.length;n{so[e]||(so[e]=!0,console.warn(`\n\x1b[31m${e}\x1b[39m\n`))},io=(e,t)=>{const n=t?undefined(t):"";throw new Error(`\n\x1b[31m${e}${n}\x1b[39m\n`)},co=e=>{const{render:t,template:n,_scopeId:r}=e.$options;if(o(t)){if(!n)throw new Error(`render function or template not defined in component: ${e.$options.name||e.$options._componentTag||"anonymous"}`);{const t=to(n,{scopeId:r,warn:io},e);e.$options.render=t.render,e.$options.staticRenderFns=t.staticRenderFns}}};function ao(e,t,n){let r=e.$options.serverPrefetch;if(i(r)){Array.isArray(r)||(r=[r]);try{const s=[];for(let t=0,n=r.length;t"show"===e.name)),n&&(t=n)),e=e.parent;return t}(e);c&&r.show(e,c);for(let t=0;t"}(e,n),l=``;if(n.isUnaryTag(e.tag))r(a,s);else if(o(e.children)||0===e.children.length)r(a+l,s);else{const t=e.children;n.renderStates.push({type:"Element",children:t,rendered:0,total:t.length,endTag:l}),r(a,s)}}(e,t,n):c(e.isComment)?i(e.asyncFactory)?function(e,t,n){const r=e.asyncFactory,s=r=>{r.__esModule&&r.default&&(r=r.default);const{data:s,children:o,tag:i}=e.asyncMeta,c=It(r,s,e.asyncMeta.context,o,i);c?c.componentOptions?fo(c,t,n):Array.isArray(c)?(n.renderStates.push({type:"Fragment",children:c,rendered:0,total:c.length}),n.next()):lo(c,t,n):n.write("\x3c!----\x3e",n.next)};if(r.resolved)return void s(r.resolved);const o=n.done;let i;try{i=r(s,o)}catch(e){o(e)}if(i)if("function"==typeof i.then)i.then(s,o).catch(o);else{const e=i.component;e&&"function"==typeof e.then&&e.then(s,o).catch(o)}}(e,t,n):n.write(`\x3c!--${e.text}--\x3e`,n.next):n.write(e.raw?e.text:z(String(e.text)),n.next)}function uo(e,t){const n=e._ssrRegister;return t.caching&&i(n)&&t.componentBuffer[t.componentBuffer.length-1].add(n),n}function fo(e,t,n){const{write:r,next:s,userContext:c}=n,a=e.componentOptions.Ctor,l=a.options.serverCacheKey,u=a.options.name,f=n.cache,p=uo(a.options,r);if(i(l)&&i(f)&&i(u)){const o=l(e.componentOptions.propsData);if(!1===o)return void ho(e,t,n);const a=u+"::"+o,{has:f,get:d}=n;i(f)?f(a,(o=>{!0===o&&i(d)?d(a,(e=>{i(p)&&p(c),e.components.forEach((e=>e(c))),r(e.html,s)})):po(e,t,a,n)})):i(d)&&d(a,(o=>{i(o)?(i(p)&&p(c),o.components.forEach((e=>e(c))),r(o.html,s)):po(e,t,a,n)}))}else i(l)&&o(f)&&oo(`[vue-server-renderer] Component ${a.options.name||"(anonymous)"} implemented serverCacheKey, but no cache was provided to the renderer.`),i(l)&&o(u)&&oo('[vue-server-renderer] Components that implement "serverCacheKey" must also define a unique "name" option.'),ho(e,t,n)}function po(e,t,n,r){const s=r.write;s.caching=!0;const o=s.cacheBuffer,i=o.push("")-1,c=s.componentBuffer;c.push(new Set),r.renderStates.push({type:"ComponentWithCache",key:n,buffer:o,bufferIndex:i,componentBuffer:c}),ho(e,t,r)}function ho(e,t,n){const r=n.activeInstance;e.ssrContext=n.userContext;const s=n.activeInstance=Mt(e,n.activeInstance);co(s);const o=n.done;ao(s,(()=>{const o=s._render();o.parent=e,n.renderStates.push({type:"Component",prevActive:r}),lo(o,t,n)}),o)}function mo(e){const t=e.parent;return i(t)&&(i(t.data)||mo(t))}function go(e,t,n,r){return function(s,o,i,c){so=Object.create(null);const a=new bn({activeInstance:s,userContext:i,write:o,done:c,renderNode:lo,isUnaryTag:n,modules:e,directives:t,cache:r});!function(e){if(e._ssrNode)return;let t=e.constructor;for(;t.super;)t=t.super;O(t.prototype,no),t.FunctionalRenderContext&&O(t.FunctionalRenderContext.prototype,no)}(s),co(s);ao(s,(()=>{lo(s._render(),!0,a)}),c)}}class yo extends e.Transform{constructor(e,t,n){super(),this.started=!1,this.renderer=e,this.template=t,this.context=n||{},this.inject=e.inject}_transform(e,t,n){this.started||(this.emit("beforeStart"),this.start()),this.push(e),n()}start(){if(this.started=!0,this.push(this.template.head(this.context)),this.inject){this.context.head&&this.push(this.context.head);const e=this.renderer.renderResourceHints(this.context);e&&this.push(e);const t=this.renderer.renderStyles(this.context);t&&this.push(t)}this.push(this.template.neck(this.context))}_flush(e){if(this.emit("beforeEnd"),this.inject){const e=this.renderer.renderState(this.context);e&&this.push(e);const t=this.renderer.renderScripts(this.context);t&&this.push(t)}this.push(this.template.tail(this.context)),e()}}const $o=require("lodash.template"),vo={escape:/{{([^{][\s\S]+?[^}])}}/g,interpolate:/{{{([\s\S]+?)}}}/g};function bo(e){const t=function(e){const t=new Map;return Object.keys(e.modules).forEach((n=>{t.set(n,function(e,t){const n=[],r=t.modules[e];r&&r.forEach((e=>{const r=t.all[e];r&&(t.async.indexOf(r)>-1||!/\.(js|css)($|\?)/.test(r))&&n.push(r)}));return n}(n,e))})),t}(e);return function(e){const n=new Set;for(let r=0;r");const r=e.indexOf(t);if(r<0)throw new Error("Content placeholder not found in template.");return n<0&&(n=e.indexOf(""),n<0&&(n=r)),{head:$o(e.slice(0,n),vo),neck:$o(e.slice(n,r),vo),tail:$o(e.slice(r+t.length),vo)}}(t):t:null,this.serialize=e.serializer||(e=>xo(e,{isJSON:!0})),e.clientManifest){const t=this.clientManifest=e.clientManifest;this.publicPath=""===t.publicPath?"":t.publicPath.replace(/([^\/])$/,"$1/"),this.preloadFiles=(t.initial||[]).map(So),this.prefetchFiles=(t.async||[]).map(So),this.mapFiles=bo(t)}}bindRenderFns(e){const t=this;["ResourceHints","State","Scripts","Styles"].forEach((n=>{e[`render${n}`]=t[`render${n}`].bind(t,e)})),e.getPreloadFiles=t.getPreloadFiles.bind(t,e)}render(e,t){const n=this.parsedTemplate;if(!n)throw new Error("render cannot be called without a template.");return t=t||{},"function"==typeof n?n(e,t):this.inject?n.head(t)+(t.head||"")+this.renderResourceHints(t)+this.renderStyles(t)+n.neck(t)+e+this.renderState(t)+this.renderScripts(t)+n.tail(t):n.head(t)+n.neck(t)+e+n.tail(t)}renderStyles(e){const t=this.preloadFiles||[],n=this.getUsedAsyncFiles(e)||[],r=t.concat(n).filter((({file:e})=>(e=>/\.css(\?[^.]+)?$/.test(e))(e)));return(r.length?r.map((({file:e})=>``)).join(""):"")+(e.styles||"")}renderResourceHints(e){return this.renderPreloadLinks(e)+this.renderPrefetchLinks(e)}getPreloadFiles(e){const t=this.getUsedAsyncFiles(e);return this.preloadFiles||t?(this.preloadFiles||[]).concat(t||[]):[]}renderPreloadLinks(e){const t=this.getPreloadFiles(e),n=this.options.shouldPreload;return t.length?t.map((({file:e,extension:t,fileWithoutQuery:r,asType:s})=>{let o="";return n||"script"===s||"style"===s?n&&!n(r,s)?"":("font"===s&&(o=` type="font/${t}" crossorigin`),``):""})).join(""):""}renderPrefetchLinks(e){const t=this.options.shouldPrefetch;if(this.prefetchFiles){const n=this.getUsedAsyncFiles(e),r=e=>n&&n.some((t=>t.file===e));return this.prefetchFiles.map((({file:e,fileWithoutQuery:n,asType:s})=>t&&!t(n,s)||r(e)?"":``)).join("")}return""}renderState(e,t){const{contextKey:n="state",windowKey:r="__INITIAL_STATE__"}=t||{},s=this.serialize(e[n]),o=e.nonce?` nonce="${e.nonce}"`:"";return e[n]?`window.${r}=${s};(function(){var s;(s=document.currentScript||document.scripts[document.scripts.length-1]).parentNode.removeChild(s);}());<\/script>`:""}renderScripts(e){if(this.clientManifest){const t=this.preloadFiles.filter((({file:e})=>q(e))),n=(this.getUsedAsyncFiles(e)||[]).filter((({file:e})=>q(e)));return[t[0]].concat(n,t.slice(1)).map((({file:e})=>`