yox
Version:
A lightweight mvvm framework
3 lines • 69.9 kB
JavaScript
const e=/^!(?:\s|--)/,t="undefined"!=typeof window?window:undefined,n="undefined"!=typeof document?document:undefined,r=function(){},o=Object.freeze({}),i=Object.freeze([]),s=/yox/.test(r.toString())?2:3,c={leftDelimiter:"{",rightDelimiter:"}",uglifyCompiled:false,minifyCompiled:false,logLevel:s};function a(e){return"function"==typeof e}function u(e){return Array.isArray(e)}function f(e){return null!==e&&"object"==typeof e}function l(e){return"string"==typeof e}function d(e){return"number"==typeof e&&!isNaN(e)}function p(e){return true===e||false===e}function h(e){return!isNaN(e-parseFloat(e))}var g=Object.freeze({__proto__:null,func:a,array:u,object:f,string:l,number:d,boolean:p,numeric:h});function m(e,t,n){return u(n)?e.apply(t,n):undefined!==t?e.call(t,n):undefined!==n?e(n):e()}class y{constructor(e,t){this.type=e,this.phase=y.PHASE_CURRENT,t&&(this.originalEvent=t)}static is(e){return e instanceof y}preventDefault(){const e=this;if(!e.isPrevented){const{originalEvent:t}=e;t&&t.preventDefault(),e.isPrevented=true}return e}stopPropagation(){const e=this;if(!e.isStoped){const{originalEvent:t}=e;t&&t.stopPropagation(),e.isStoped=true}return e}prevent(){return this.preventDefault()}stop(){return this.stopPropagation()}}function v(e,t,n){const{length:r}=e;if(r)if(n)for(let n=r-1;n>=0&&false!==t(e[n],n);n--);else for(let n=0;n<r&&false!==t(e[n],n);n++);}function x(e,t){e[e.length]=t}function $(e,t){e.unshift(t)}function b(e,t,n){u(t)?v(t,(function(t){n(e,t)})):n(e,t)}function k(e,t){b(e,t,x)}function w(e,t){b(e,t,$)}function S(e,t,n){let r=-1;return v(e,(function(e,o){if(false===n?e==t:e===t)return r=o,false})),r}function _(e){const{length:t}=e;if(t>0)return e[t-1]}function C(e){const{length:t}=e;if(t>0)return e.pop()}function N(e,t,n){let r=0;return v(e,(function(o,i){(false===n?o==t:o===t)&&(e.splice(i,1),r++)}),true),r}function A(e,t,n){return S(e,t,n)>=0}function E(e){return u(e)?e:m(i.slice,e)}function T(e,t,n){let r={};return v(e,(function(e){r[t?e[t]:e]=n||e})),r}function D(e,t){return e.join(t)}function O(e){return!u(e)||!e.length}y.PHASE_CURRENT=0,y.PHASE_UPWARD=1,y.PHASE_DOWNWARD=-1;var z=Object.freeze({__proto__:null,each:v,push:k,unshift:w,indexOf:S,last:_,pop:C,remove:N,has:A,toArray:E,toObject:T,join:D,falsy:O});function L(e,t){return null!=e&&e.toString?e.toString():undefined!==t?t:""}function P(e){return a(e)&&L(e).indexOf("[native code]")>=0}let V=function(){const e=Object.create(null);return{get:t=>e[t],set(t,n){e[t]=n},has:t=>t in e,keys:()=>Object.keys(e)}};function j(e){const t=V();return function(n){const r=t.get(n);if(undefined!==r)return r;const o=e(n);return t.set(n,o),o}}function U(e){const t=V();return function(n,r){let o=t.get(n);if(o){const e=o.get(r);if(e)return e}else o=V(),t.set(n,o);const i=e(n,r);return o.set(r,i),i}}const I=/-([a-z])/gi,R=/\B([A-Z])/g,M=/^[a-z]/,H=j((function(e){return e.replace(I,(function(e,t){return ee(t)}))})),F=j((function(e){return e.replace(R,(function(e,t){return"-"+te(t)}))})),K=j((function(e){return e.replace(M,ee)}));function W(e,t){return D(new Array(t+1),e)}function B(e){return oe(e)?"":e.trim()}function q(e,t,n){return d(n)?t===n?"":e.slice(t,n):e.slice(t)}function Y(e,t,n){return e.indexOf(t,undefined!==n?n:0)}function G(e,t,n){return e.lastIndexOf(t,undefined!==n?n:e.length)}function Z(e,t){return 0===Y(e,t)}function J(e,t){const n=e.length-t.length;return n>=0&&G(e,t)===n}function Q(e,t){return e.charAt(t||0)}function X(e,t){return e.charCodeAt(t||0)}function ee(e){return e.toUpperCase()}function te(e){return e.toLowerCase()}function ne(e,t){return Y(e,t)>=0}function re(e,t){const n=Object.create(null);return v(e.split(t||","),(function(e){n[e]=true})),n}function oe(e){return!l(e)||!e.length}var ie=Object.freeze({__proto__:null,camelize:H,hyphenate:F,capitalize:K,repeat:W,trim:B,slice:q,indexOf:Y,lastIndexOf:G,startsWith:Z,endsWith:J,charAt:Q,codeAt:X,upper:ee,lower:te,has:ne,toMap:re,falsy:oe});const se=/\./g,ce=/\*/g,ae=/\*\*/g,ue=U((function(e,t){return e===t||Z(e,t+=".")?t.length:-1})),fe=j((function(e){return Y(e,".")<0?[e]:e.split(".")}));function le(e,t){const n=l(e)?fe(e):e;for(let e=0,r=n.length-1;e<=r&&false!==t(n[e],e,r);e++);}const de=U((function(e,t){return e&&t?e+"."+t:e||t})),pe=j((function(e){return ne(e,"*")})),he=j((function(e){return new RegExp(`^${e.replace(se,"\\.").replace(ce,"(\\w+)").replace(ae,"([.\\w]+?)")}$`)})),ge=U((function(e,t){const n=e.match(he(t));return n?n[1]:undefined})),me={value:undefined};function ye(e){return Object.keys(e)}function ve(e,t){for(let n in e)if(false===t(e[n],n))break}function xe(e,t){return ve(t,(function(t,n){e[n]=t})),e}function $e(e,t){let n=e;return u(e)?t?(n=[],v(e,(function(e,r){n[r]=$e(e,t)}))):n=e.slice():f(e)&&(n={},ve(e,(function(e,r){n[r]=t?$e(e,t):e}))),n}function be(e){return a(e.get)?e.get():e}function ke(e,t,n){let r=e;return le(t,(function(e,t,o){if(null==r)return r=undefined,false;{let i=r[e],s=undefined!==i;i&&(i=(n||be)(i)),t===o?s?(me.value=i,r=me):r=undefined:r=i}})),r}function we(e,t){return undefined!==e[t]}var Se=Object.freeze({__proto__:null,keys:ye,each:ve,extend:xe,merge:function(e,t){return e&&t?xe(xe({},e),t):e||t},copy:$e,get:ke,set:function(e,t,n,r){let o=e;le(t,(function(e,t,i){if(t===i)o[e]=n;else if(o[e])o=o[e];else{if(!r)return false;o=o[e]={}}}))},has:we,falsy:function(e){return!f(e)||u(e)||!ye(e).length}});const _e="undefined"!=typeof console?console:null,Ce=t&&/edge|msie|trident/i.test(t.navigator.userAgent)?"":"%c",Ne=_e?Ce?function(e,t,n){_e.log(Ce+e,n,t)}:function(e,t){_e.log(e,t)}:r;function Ae(){const{logLevel:e}=c;return e>=1&&e<=5?e:s}function Ee(e){return`background-color:${e};border-radius:12px;color:#fff;font-size:10px;padding:3px 6px;`}var Te=Object.freeze({__proto__:null,DEBUG:1,INFO:2,WARN:3,ERROR:4,FATAL:5,debug:function(e,t){Ae()<=1&&Ne(t||"Yox debug",e,Ee("#999"))},info:function(e,t){Ae()<=2&&Ne(t||"Yox info",e,Ee("#2db7f5"))},warn:function(e,t){Ae()<=3&&Ne(t||"Yox warn",e,Ee("#f90"))},error:function(e,t){Ae()<=4&&Ne(t||"Yox error",e,Ee("#ed4014"))},fatal:function(e,t){if(Ae()<=5)throw new Error(`[${t||"Yox fatal"}]: ${e}`)}});class De{constructor(e){this.ns=e||false,this.listeners={}}fire(e,t,n){let r=this,o=l(e)?r.toEvent(e):e,i=r.listeners[o.type],s=true;if(i){i=i.slice();const e=t&&y.is(t[0])?t[0]:undefined;for(let c=0,a=i.length;c<a;c++){let a=i[c];if(!ze(o.ns,a)||!A(i,a)||n&&!n(o,t,a))continue;let u=m(a.listener,a.ctx,t);if(a.num=a.num?a.num+1:1,a.num===a.max&&r.off(o.type,{ns:o.ns,listener:a.listener}),e&&(false===u?e.prevent().stop():e.isStoped&&(u=false)),false===u){s=false;break}}}return s}on(e,t){const n=this,r=n.listeners,o=a(t)?{listener:t}:t;if(f(o)&&a(o.listener)){if(!l(o.ns)){const t=n.toEvent(e);o.ns=t.ns,e=t.type}k(r[e]||(r[e]=[]),o)}}off(e,t){const n=this,r=n.listeners;if(e){const o=n.toFilter(e,t),i=function(e,t){v(e,(function(t,n){Oe(o.listener,t)&&ze(o.ns,t)&&e.splice(n,1)}),true),e.length||delete r[t]};o.type?r[o.type]&&i(r[o.type],o.type):o.ns&&ve(r,i)}else n.listeners={}}has(e,t){let n=this.listeners,r=this.toFilter(e,t),o=true,i=function(e){return v(e,(function(e){if(Oe(r.listener,e)&&ze(r.ns,e))return o=false})),o};return r.type?n[r.type]&&i(n[r.type]):r.ns&&ve(n,i),!o}toEvent(e){const t={type:e,ns:""};if(this.ns){const n=Y(e,".");n>=0&&(t.type=q(e,0,n),t.ns=q(e,n+1))}return t}toFilter(e,t){let n;if(n=t?a(t)?{listener:t}:t:{},l(n.ns))n.type=e;else{const t=this.toEvent(e);n.type=t.type,n.ns=t.ns}return n}}function Oe(e,t){return!e||e===t.listener}function ze(e,t){const{ns:n}=t;return!n||!e||n===e}let Le;"function"==typeof setImmediate&&P(setImmediate)&&(Le=setImmediate),Le="function"==typeof MessageChannel&&P(MessageChannel)?function(e){const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(1)}:setTimeout;var Pe=Le;let Ve;class je{constructor(e){this.tasks=[],this.hooks=e||o}static shared(){return Ve||(Ve=new je)}append(e,t){const n=this,{tasks:r}=n;k(r,{fn:e,ctx:t}),1===r.length&&Pe((function(){n.run()}))}prepend(e,t){const n=this,{tasks:r}=n;w(r,{fn:e,ctx:t}),1===r.length&&Pe((function(){n.run()}))}clear(){this.tasks.length=0}run(){const e=this,{tasks:t,hooks:n}=e,{length:r}=t;if(r){e.tasks=[],n.beforeTask&&n.beforeTask();for(let e=0;e<r;e++)m(t[e].fn,t[e].ctx);n.afterTask&&n.afterTask()}}}function Ue(e,t,n){let r;return function(){if(!r){const o=E(arguments);n&&m(e,undefined,o),r=setTimeout((function(){r=undefined,n||m(e,undefined,o)}),t)}}}function Ie(e,t,n,r,o,i,s){let{name:c,listener:a}=s;if(i){const e=i[c]||i[""];true===e?c="change":e>0&&(a=Ue(a,e,"click"===c||"tap"===c))}if(n){if(s.isNative){const t=n.$el;return e.on(t,c,a),function(){e.off(t,c,a)}}n.on(c,s),r["$event_destroy"+o]=function(){n.off(c,s),delete r["$event_destroy"+o]}}else e.on(t,c,a),r["$event_destroy"+o]=function(){e.off(t,o,a),delete r["$event_destroy"+o]}}var Re=Object.freeze({__proto__:null,afterCreate:function(e,t){const{events:n}=t;if(n){const r=t.node,o=t.component,i=t.lazy,s=t.data;for(let t in n)Ie(e,r,o,s,t,i,n[t])}},afterUpdate:function(e,t,n){const r=t.events,i=n.events;if(r!==i){const n=t.node,s=t.component,c=t.lazy,a=t.data;if(i){const e=r||o;for(let t in i)if(!e[t]){const e=a["$event_destroy"+t];e&&e()}}if(r){const t=i||o;for(let o in r){const i=r[o],u=t[o];if(u)if(i.value!==u.value){const t=a["$event_destroy"+o];t&&t(),Ie(e,n,s,a,o,c,i)}else u.runtime&&i.runtime&&(u.runtime.execute=i.runtime.execute,i.runtime=u.runtime);else Ie(e,n,s,a,o,c,i)}}}},beforeDestroy:function(e,t){const n=t.events,r=t.data;if(n)for(let e in n){const t=r["$event_destroy"+e];t&&t()}}});function Me(e,t){return t&&true!==t?Ue(e,t):e}const He={set(e,t){e.value=L(t)},sync(e,t,n){n.set(t,e.value)}},Fe={set(e,t){e.checked=e.value===L(t)},sync(e,t,n){e.checked&&n.set(t,e.value)}},Ke={set(e,t){e.checked=u(t)?A(t,e.value,false):!!t},sync(e,t,n){const r=n.get(t);u(r)?e.checked?n.append(t,e.value):n.removeAt(t,S(r,e.value,false)):n.set(t,e.checked)}},We={set(e,t){const{multiple:n,options:r}=e;for(let o=0,i=r.length;o<i;o++)if(n)r[o].selected=A(t,r[o].value,false);else if(r[o].value==t)return void(e.selectedIndex=o);n||(e.selectedIndex=-1)},sync(e,t,n){const{multiple:r,options:o}=e;if(r){const e=[];for(let t=0,n=o.length;t<n;t++)o[t].selected&&e.push(o[t].value);n.set(t,e)}else n.set(t,o[e.selectedIndex].value)}};function Be(e,t,n,r,o){let{context:i,model:s,lazy:c,nativeAttrs:a}=o,{keypath:u,value:f}=s,l=c&&(c.model||c[""]);if(n){let e=n.$model,t=Me((function(e){i.set(u,e)}),l);n.watch(e,t),r.$model_destroy=function(){n.unwatch(e,t),delete r.$model_destroy}}else{let n="select"===o.tag?We:He,s="change";if(n===He){const e=a&&a.type;"radio"===e?n=Fe:"checkbox"===e?n=Ke:true!==l&&(s="model")}const c=Me((function(){n.sync(t,u,i)}),l);e.on(t,s,c),n.set(t,f),r.$model_control=n,r.$model_destroy=function(){e.off(t,s,c),delete r.$model_destroy,delete r.$model_control}}}var qe=Object.freeze({__proto__:null,afterCreate:function(e,t){t.model&&Be(e,t.node,t.component,t.data,t)},afterUpdate:function(e,t,n){const r=t.data,o=t.model,i=n.model;if(o){const n=t.node,s=t.component;if(i)if(o.keypath!==i.keypath)r.$model_destroy(),Be(e,n,s,r,t);else if(s)s.set(s.$model,o.value);else{const e=r.$model_control;e&&e.set(n,o.value)}else Be(e,n,s,r,t)}else i&&r.$model_destroy()},beforeDestroy:function(e,t){const n=t.data.$model_destroy;n&&n()}});var Ye=Object.freeze({__proto__:null,afterCreate:function(e,t){const{nativeAttrs:n}=t;if(n){const r=t.node;for(let t in n)e.setAttr(r,t,n[t])}},afterUpdate:function(e,t,n){const r=t.nativeAttrs,i=n.nativeAttrs;if(r!==i){const n=t.node;if(r){const t=i||o;for(let o in r)undefined!==t[o]&&r[o]===t[o]||e.setAttr(n,o,r[o])}if(i){const t=r||o;for(let r in i)undefined===t[r]&&e.removeAttr(n,r)}}}});var Ge=Object.freeze({__proto__:null,afterCreate:function(e,t){const{nativeStyles:n}=t;if(n){const r=t.node.style;for(let t in n)e.setStyle(r,t,n[t])}},afterUpdate:function(e,t,n){const r=t.nativeStyles,i=n.nativeStyles;if(r!==i){const n=t.node.style;if(r){const t=i||o;for(let o in r)undefined!==t[o]&&r[o]===t[o]||e.setStyle(n,o,r[o])}if(i){const t=r||o;for(let r in i)undefined===t[r]&&e.removeStyle(n,r)}}}});function Ze(e,t,n){e["$directive_hooks"+n.name]=n.create(t.component||t.node,n,t)}function Je(e,t,n,r){const o=e["$directive_hooks"+n.name],i=o&&o[r];i&&i(n,t)}function Qe(e){return function(t,n){const{directives:r}=n;if(r){const t=n.data;for(let o in r)Je(t,n,r[o],e)}}}const Xe=Qe("afterMount"),et=Qe("beforeDestroy");var tt=Object.freeze({__proto__:null,afterCreate:function(e,t){const{directives:n}=t;if(n){const e=t.data;for(let r in n)Ze(e,t,n[r])}},beforeUpdate:function(e,t,n){const r=t.directives,i=n.directives,s=t.data;if(i){const e=r||o;for(let n in i)undefined===e[n]&&Je(s,t,i[n],"beforeDestroy")}if(r){const e=i||o,n=[];for(let o in r){const i=r[o];undefined===e[o]?Ze(s,t,i):i.value!==e[o].value&&(Je(s,t,i,"beforeUpdate"),n.push(i))}s.$directive_updating=n}},afterUpdate:function(e,t,n){const{data:r}=t;if(r){const e=r.$directive_updating;if(e){for(let n=0,o=e.length;n<o;n++)Je(r,t,e[n],"afterUpdate");r.$directive_updating=undefined}}},afterMount:Xe,beforeDestroy:et});function nt(e,t){if(5===t.type||7===t.type){const n=t.children[0];return n?nt(e,n):e.createComment("")}return t.node}function rt(e,t,n,r){r?e.before(t,n,r):e.append(t,n)}function ot(e,t,n){const r=n.node;t.node=r,t.parentNode=n.parentNode,t.text!==n.text&&e.setNodeText(r,t.text)}function it(e){e.data&&Lt(e,e.node)}function st(e,t){e.data&&Pt(e,e.node,t)||t()}function ct(e,t,n,r){r?e.before(t,n.node,r.node):e.append(t,n.node)}function at(e,t){e.remove(t.parentNode,t.node)}function ut(e,t){t()}function ft(e,t){const n=t.children;for(let t=0,r=n.length;t<r;t++)At(e,n[t])}function lt(e,t,n,r){Vt(e,t,n.children,r.children)}function dt(e,t){const n=t.children;for(let t=0,r=n.length;t<r;t++)Ot(e,n[t])}function pt(e,t,n,r){const o=n.children;for(let n=0,i=o.length;n<i;n++)Tt(e,t,o[n],r)}function ht(e,t){const n=t.children;for(let t=0,r=n.length;t<r;t++)zt(e,n[t])}const gt={create(e,t){t.node=e.createText(t.text)},update:ot,destroy:r,insert:ct,remove:at,enter:r,leave:ut},mt={create(e,t){t.node=e.createComment(t.text)},update:ot,destroy:r,insert:ct,remove:at,enter:r,leave:ut},yt=[Ye,Ge,Object.freeze({__proto__:null,afterCreate:function(e,t){const n=t.ref;if(n){const e=t.context;let r=e.$refs;r||(r=e.$refs={}),r[n]=t.component||t.node}},beforeUpdate:function(e,t,n){const r=t.ref,o=n.ref;if(r||o){const e=t.context,n=t.component||t.node;let i=e.$refs;r?o?r!==o&&(i?i[r]===n&&delete i[r]:i=e.$refs={},i[r]=n):(i||(i=e.$refs={}),i[r]=n):i&&o&&i[o]===n&&delete i[o]}},beforeDestroy:function(e,t){const{ref:n}=t;if(n){const{$refs:e}=t.context,r=t.component||t.node;e&&e[n]===r&&delete e[n]}}}),Re,qe,tt],vt=yt.length;function xt(e,t){for(let n=0;n<vt;n++){const r=yt[n][e];r&&r.apply(undefined,t)}}const $t={create(e,t){const n=t.node=e.createElement(t.tag,t.isSvg);t.children?Et(e,n,t.children):t.text?e.setElementText(n,t.text):t.html&&e.setHtml(n,t.html),t.isPure||(t.data={}),xt("afterCreate",[e,t])},update(e,t,n){const r=n.node;t.node=r,t.parentNode=n.parentNode,t.data=n.data,!t.isPure&&n.isPure&&(t.data={}),xt("beforeUpdate",[e,t,n]);const{text:o,html:i,children:s}=t,c=n.text,a=n.html,u=n.children;l(o)?(u&&Dt(e,u),o!==c&&e.setElementText(r,o)):l(i)?(u&&Dt(e,u),i!==a&&e.setHtml(r,i)):s?u?s!==u&&Vt(e,r,s,u):((c||a)&&e.setElementText(r,""),Et(e,r,s)):u?Dt(e,u):(c||a)&&e.setElementText(r,""),xt("afterUpdate",[e,t,n])},destroy(e,t){if(t.isPure)return;xt("beforeDestroy",[e,t]);const{children:n}=t;if(n)for(let t=0,r=n.length;t<r;t++)Ot(e,n[t])},insert:ct,remove:at,enter:it,leave:st},bt={create(e,t){const n=t.data={};let r=undefined;t.tag&&t.context.loadComponent(t.tag,(function(o){we(n,"$loading")?n.$loading&&(n.$vnode&&(t=n.$vnode,delete n.$vnode),Nt(e,t,o),t.operator.enter(t)):r=o})),t.node=e.createComment("component"),r?Nt(e,t,r):n.$loading=true},update(e,t,n){const r=n.data;if(t.data=r,t.node=n.node,t.parentNode=n.parentNode,t.component=n.component,r.$loading)return void(r.$vnode=t);xt("beforeUpdate",[e,t,n]);const{component:o,slots:i}=t;if(o){let e=t.props;i&&(e=xe(e||{},i)),e&&o.forceUpdate(e)}xt("afterUpdate",[e,t,n])},destroy(e,t){const{component:n}=t;n?(xt("beforeDestroy",[e,t]),n.destroy(),t.shadow=n.$vnode,t.component=undefined):t.data.$loading=false},insert(e,t,n,r){const{shadow:o}=n;o?(o.operator.insert(e,t,o,r),o.parentNode=t):ct(e,t,n,r)},remove(e,t){const{shadow:n}=t;n?(n.operator.remove(e,n),n.parentNode=undefined):at(e,t)},enter(e){const{shadow:t}=e;t&&(e.transition?Lt(e,t.node):t.operator.enter(t))},leave(e,t){const{shadow:n}=e;if(n){if(!e.transition)return void n.operator.leave(n,t);if(Pt(e,n.node,t))return}t()}},kt={create(e,t){ft(e,t),t.node=nt(e,t)},update(e,t,n){const{parentNode:r}=n;t.node=n.node,t.parentNode=r,lt(e,r,t,n)},destroy:dt,insert:pt,remove:ht,enter:r,leave:ut},wt={create(e,t){let n=undefined;t.to&&(n=e.find(t.to)),n||(n=e.getBodyElement()),t.target=n,t.node=e.createComment("");const r=t.children;for(let t=0,o=r.length;t<o;t++)At(e,r[t]),Tt(e,n,r[t])},update(e,t,n){const{target:r}=n;t.node=n.node,t.parentNode=n.parentNode,t.target=r,lt(e,r,t,n)},destroy(e,t){const n=t.children;for(let t=0,r=n.length;t<r;t++)Ot(e,n[t]),zt(e,n[t])},insert:ct,remove:at,enter:r,leave:ut},St={create(e,t){ft(e,t),t.data={},t.node=nt(e,t),xt("afterCreate",[e,t])},update(e,t,n){const{parentNode:r}=n;t.node=n.node,t.parentNode=r,t.data=n.data,xt("beforeUpdate",[e,t,n]),lt(e,r,t,n),xt("afterUpdate",[e,t,n])},destroy(e,t){xt("beforeDestroy",[e,t]),dt(e,t)},insert:pt,remove:ht,enter:it,leave:st};function _t(e,t){return e.type===t.type&&e.tag===t.tag&&e.key===t.key}function Ct(e,t,n){let r,i,s;for(;t<=n;)i=e[t],i&&(s=i.key)&&(r||(r={}),r[s]=t),t++;return r||o}function Nt(e,t,n){const r=t.data,o=(t.parent||t.context).createComponent(n,t);return t.component=o,t.shadow=o.$vnode,r.$loading=false,xt("afterCreate",[e,t]),o}function At(e,t){t.node||t.operator.create(e,t)}function Et(e,t,n,r,o,i){let s,c=r||0,a=undefined!==o?o:n.length-1;for(;c<=a;)s=n[c],At(e,s),Tt(e,t,s,i),c++}function Tt(e,t,n,r){const{operator:o}=n;o.insert(e,t,n,r),n.parentNode=t,xt("afterMount",[e,n]),o.enter(n)}function Dt(e,t,n,r){let o,i=n||0,s=undefined!==r?r:t.length-1;for(;i<=s;)o=t[i],o&&(Ot(e,o),zt(e,o)),i++}function Ot(e,t){t.operator.destroy(e,t)}function zt(e,t){const{operator:n}=t;n.leave(t,(function(){n.remove(e,t),t.parentNode=undefined}))}function Lt(e,t){const{context:n,transition:r}=e,o=e.data.$leaving;if(o&&o(),r){const{enter:e}=r;e&&e.call(n,t)}}function Pt(e,t,n){const{context:r,transition:o}=e,i=e.data,s=i.$leaving;if(s&&s(),o){const{leave:e}=o;if(e)return e.call(r,t,i.$leaving=function(){i.$leaving&&(n(),i.$leaving=undefined)}),true}}function Vt(e,t,n,r){let o,i,s=0,c=n.length-1,a=n[s],u=n[c],f=0,l=r.length-1,d=r[f],p=r[l];for(;f<=l&&s<=c;)a?u?d?p?_t(a,d)?(jt(e,a,d),a=n[++s],d=r[++f]):_t(u,p)?(jt(e,u,p),u=n[--c],p=r[--l]):_t(u,d)?(jt(e,u,d),rt(e,t,d.node,e.next(p.node)),u=n[--c],d=r[++f]):_t(a,p)?(jt(e,a,p),rt(e,t,p.node,d.node),a=n[++s],p=r[--l]):(o||(o=Ct(r,f,l)),i=a.key?o[a.key]:undefined,undefined!==i?(Ut(e,a,r[i]),r[i]=undefined):At(e,a),Tt(e,t,a,d),a=n[++s]):p=r[--l]:d=r[++f]:u=n[--c]:a=n[++s];f>l?Et(e,t,n,s,c,n[c+1]):s>c&&Dt(e,r,f,l)}function jt(e,t,n){t!==n&&t.operator.update(e,t,n)}function Ut(e,t,n){if(t!==n){if(!_t(t,n)){const r=n.parentNode;return At(e,t),void(r&&(Tt(e,r,t,n),Ot(e,n),zt(e,n)))}jt(e,t,n)}}function It(e){const{children:t}=e;return{type:e.type,data:e.data,node:e.node,parentNode:e.parentNode,target:e.target,shadow:e.shadow,parent:e.parent,component:e.component,context:e.context,operator:e.operator,tag:e.tag,isSvg:e.isSvg,isStatic:e.isStatic,isPure:e.isPure,slots:e.slots,props:e.props,nativeAttrs:e.nativeAttrs,nativeStyles:e.nativeStyles,directives:e.directives,events:e.events,lazy:e.lazy,transition:e.transition,model:e.model,to:e.to,ref:e.ref,key:e.key,text:e.text,html:e.html,children:t?t.map(It):t}}const Rt={},Mt={},Ht={},Ft={};function Kt(e,t){return Mt[t.name]||"portal"===e.tag&&"to"===t.name||"slot"===e.tag&&"name"===t.name}function Wt(e,t){const n=e.split(";");for(let e=0,r=n.length;e<r;e++){const r=n[e],o=r.indexOf(":");if(o>0){const e=B(r.substring(0,o)),n=B(r.substring(o+1));e&&n&&t(H(e),n)}}}function Bt(e,t){return{type:2,isStatic:true,name:e,ns:t}}function qt(e,t,n){return{type:3,ns:t,name:e,modifier:n}}function Yt(e,t,n,r){return{type:9,from:e,to:t,equal:n||undefined,index:r,isVirtual:true}}function Gt(e){return{type:5,text:e,isStatic:true,isLeaf:true}}Rt.slot=Rt.portal=Rt.fragment=Rt.template=Mt.key=Mt.ref=Mt.slot=true,Ht.if=6,Ht.each=9,Ft.fragment=5,Ft.portal=6,Ft.slot=7;const Zt=/^[A-Z]|-/,Jt=/&[#\w\d]{2,6};/,Qt=re("area,base,embed,track,source,param,input,col,img,br,hr"),Xt=re("svg,g,defs,desc,metadata,symbol,use,image,path,rect,circle,line,ellipse,polyline,polygon,text,tspan,tref,textpath,marker,pattern,clippath,mask,filter,cursor,view,animate,font,font-face,glyph,missing-glyph,animateColor,animateMotion,animateTransform,textPath,foreignObject"),en=re("min,minlength,max,maxlength,step,size,rows,cols,tabindex,colspan,rowspan,frameborder"),tn=re("disabled,checked,required,multiple,readonly,autofocus,autoplay,reversed,selected,controls,default,loop,muted,novalidate,draggable,contenteditable,hidden,spellcheck,allowfullscreen");function nn(e,t,n){if(e.isComponent)return Bt(H(t),n);if("style"===t)return{type:4,isStatic:!0};const r=Bt(t,n);return sn(t)&&(r.defaultValue="spellcheck"===t||"img"===e.tag&&"draggable"===t),r}function rn(e,t,n){return on(e)?cn(e,t):sn(e)?an(e,t,n):t}function on(e){return en[e]}function sn(e){return tn[e]}function cn(e,t){return L(t)}function an(e,t,n){const r=true===t||"true"===t||t===e;return r===n?undefined:r?"true":"false"}function un(e,t){let n=false,r=false,o=false;return t?o=true:(n=undefined!==Xt[e],!n&&Zt.test(e)?o=true:"style"===e&&(r=true)),function(e,t,n,r,o){const i="slot"===e,s=!o&&!i&&!!Rt[e],c=!o&&!i&&!s;return{type:1,tag:e,dynamicTag:t,isSvg:n,isStyle:r,isStatic:c,isNative:c,isVirtual:s,isComponent:o}}(e,t,n,r,o)}function fn(e,t){return l(t)&&Jt.test(t)?e.html=t:e.text=t,true}function ln(e){return undefined!==e}const dn={};function pn(e){return e>0&&e<33||160===e}function hn(e){return e>47&&e<58}function gn(e){return 64===e}function mn(e){return 36===e||95===e||e>96&&e<123||e>64&&e<91}function yn(e){return mn(e)||hn(e)}function vn(e,t,n,r){return{type:5,raw:r,left:e,operator:t,right:n,isStatic:_n([e,n])}}function xn(e,t,n){let r=false,o=true,i=0;return"this"===t?(t="",o=false):".."===t?(t="",o=false,i=1):"~"===t?(t="",r=true,o=false):t=Sn(t),n?$n(t,e):kn(e,t,r,o,i)}function $n(e,t){return{type:1,raw:t,value:e,isStatic:true}}function bn(e,t){let n=t.shift(),r=false,o=true,i=0;if(t.length>0){let s=true,c=[],a="",u=[];if(v(t,(function(e){if(s)if(1===e.type){const t=e;if(".."===t.raw)return i+=1,void(a=a?a+"/..":"..");if("this"!==t.raw){const e=L(t.value);k(c,e),a&&(a+=J(a,"..")?"/":"."),a+=e}}else s=false;s||k(u,e)})),2===n.type){const t=n;r=t.root,o=t.lookup,i+=t.offset;let f=t.name;if(f&&(f=Sn(f,t),w(c,f)),f=D(c,"."),s)n=kn(e,f,r,o,i,c);else{let s=t.raw;if(a){let e=".";"~"!==s&&".."!==s||(e="/"),s+=e+a}n=wn(e,kn(s,f,r,o,i,c),undefined,u,r,o,i)}}else n=s?wn(e,n,D(c,"."),undefined,r,o,i):wn(e,n,undefined,u,r,o,i)}return n}function kn(e,t,n,r,o,i){return{type:2,raw:e,name:t,root:n,lookup:r,offset:o,literals:i&&i.length>1?i:undefined}}function wn(e,t,n,r,o,i,s){return{type:3,raw:e,lead:t,keypath:n,nodes:r,root:o,lookup:i,offset:s,isStatic:t.isStatic&&(!r||_n(r))}}function Sn(e,t){return gn(X(e,0))&&(e="$slot_"+q(e,1),t&&(t.name=e)),e}function _n(e){let t=true;return v(e,(function(e){if(!e.isStatic)return t=false})),t}dn.true=true,dn.false=false,dn.null=null,dn[void 0]=undefined;const Cn={"+":true,"-":true,"~":true,"!":true,"!!":true},Nn={"*":15,"/":15,"%":15,"+":14,"-":14,"<<":13,">>":13,">>>":13,"<":12,"<=":12,">":12,">=":12,"==":11,"!=":11,"===":11,"!==":11,"&":10,"^":9,"|":8,"&&":7,"||":6};class An{constructor(e){const t=this;t.index=-1,t.end=e.length,t.code=0,t.content=e,t.go()}go(e){let t=this,{index:n,end:r}=t;n+=e||1,n>=0&&n<r?(t.code=t.codeAt(n),t.index=n):(t.code=0,t.index=n<0?-1:r)}skip(e){const t=this,n=e&&e<0;if(0===t.code){const n=t.index;if(t.go(e),!pn(t.code))return void t.go(n-t.index)}else if(!pn(t.code))return;for(;;){if(!pn(t.code)){n&&t.go();break}t.go(e)}}is(e){return this.code===e}pick(e,t){return q(this.content,e,ln(t)?t:this.index)}codeAt(e){return X(this.content,e)}scanToken(){const e=this,{code:t,index:n}=e;let r=false;if(gn(t)&&(r=true,e.go()),mn(e.code))return e.scanTail(n,[e.scanIdentifier(n,r)]);if(r&&e.go(-1),hn(t))return e.scanNumber(n);switch(t){case 0:return;case 39:case 34:return e.scanTail(n,[e.scanString(n,t)]);case 46:return e.go(),hn(e.code)?e.scanNumber(n):e.scanPath(n);case 126:if(47===e.codeAt(n+1))return e.scanPath(n);break;case 40:return e.go(),e.scanTernary(41);case 91:return e.scanTail(n,[(o=e.scanTuple(n,93),i=e.pick(n),{type:7,raw:i,nodes:o,isStatic:_n(o)})]);case 123:return e.scanObject(n)}var o,i;const s=e.scanOperator(n);if(s&&Cn[s]){const t=e.scanTernary();if(t){if(1===t.type){const r=t.value;if(d(r))return e.skip(-1),$n(-r,e.pick(n))}return e.skip(-1),function(e,t,n){return{type:4,raw:n,operator:e,node:t,isStatic:t.isStatic}}(s,t,e.pick(n))}}}scanNumber(e){const t=this;for(;hn(n=t.code)||46===n;)t.go();var n;const r=t.pick(e);if(h(r))return $n(+r,r)}scanString(e,t){const n=this;e:for(;;)switch(n.go(),n.code){case 92:n.go();break;case t:n.go();break e;case 0:break e}const r=n.pick(e);return $n(new Function("return "+r)(),r)}scanObject(e){let t,n=this,r=[],o=[],i=true;n.go();e:for(;;)switch(n.code){case 125:n.go();break e;case 0:break e;case 58:n.go(),i=false;break;case 44:n.go(),i=true;break;default:if(t=n.scanTernary(),i){if(t)if(n.skip(),2===t.type)k(r,t.name);else{if(1!==t.type)break e;k(r,t.value)}}else{if(!t)break e;n.skip(),k(o,t)}}return function(e,t,n){return{type:8,raw:n,keys:e,values:t,isStatic:_n(t)}}(r,o,n.pick(e))}scanTuple(e,t){let n,r=this,o=[];r.go();e:for(;;)switch(r.code){case t:r.go();break e;case 0:break e;case 44:r.go();break;default:n=r.scanTernary(),n&&(r.skip(),k(o,n))}return o}scanPath(e){let t,n=this,r=[];for(;t="this",n.is(46)?(n.go(),t=".."):n.is(126)&&(n.go(),t="~"),k(r,xn(t,t,r.length>0)),n.is(47);){n.go();const{index:t,code:o}=n;let i=false;if(gn(o)&&(i=true,n.go()),mn(n.code))return k(r,n.scanIdentifier(t,i,true)),n.scanTail(e,r);if(i&&n.go(-1),!n.is(46))break;n.go()}}scanTail(e,t){let n,r=this;e:for(;;)switch(r.code){case 40:t=[(o=bn(r.pick(e),t),i=r.scanTuple(r.index,41),s=r.pick(e),{type:9,raw:s,name:o,args:i})];break;case 46:if(r.go(),yn(r.code)){k(t,r.scanIdentifier(r.index,false,true));break}break e;case 91:if(r.go(),n=r.scanTernary(93),n){k(t,n);break}break e;default:break e}var o,i,s;return bn(r.pick(e),t)}scanIdentifier(e,t,n){const r=this;do{r.go()}while(yn(r.code));const o=r.pick(e);return t&&1===o.length&&r.fatal(e,"A slot identifier must be followed by its name."),!n&&o in dn?$n(dn[o],o):xn(o,o,n)}scanOperator(e){const t=this;switch(t.code){case 47:case 37:case 126:case 94:case 42:case 43:case 45:t.go();break;case 33:t.go(),t.is(33)?t.go():t.is(61)&&(t.go(),t.is(61)&&t.go());break;case 38:t.go(),t.is(38)&&t.go();break;case 124:t.go(),t.is(124)&&t.go();break;case 61:t.go(),t.is(61)&&(t.go(),t.is(61)&&t.go());break;case 60:t.go(),(t.is(61)||t.is(60))&&t.go();break;case 62:t.go(),t.is(61)?t.go():t.is(62)&&(t.go(),t.is(62)&&t.go())}if(t.index>e)return t.pick(e)}scanBinary(e){let t,n,r,o,i,s,c=this,a=[];for(;;){if(c.skip(),k(a,c.index),t=c.scanToken(),t){if(k(a,t),k(a,c.index),c.skip(),r=c.scanOperator(c.index),r&&(o=Nn[r])){for(;n=a.length-4,(i=a[n])&&(s=Nn[i])&&s>=o;)a.splice(n-2,5,vn(a[n-2],i,a[n+2],c.pick(a[n-3],a[n+3])));k(a,r);continue}r=undefined}break}for(;;){if(!(a.length>=7))return a[1];n=a.length-4,a.splice(n-2,5,vn(a[n-2],a[n],a[n+2],c.pick(a[n-3],a[n+3])))}}scanTernary(e){const t=this;t.skip();let n,r,o=t.index,i=t.scanBinary(o);return t.is(63)&&(t.go(),n=t.scanTernary(),t.is(58)&&(t.go(),r=t.scanTernary()),i&&n&&r&&(t.skip(-1),i=function(e,t,n,r){return{type:6,raw:r,test:e,yes:t,no:n,isStatic:_n([e,t,n])}}(i,n,r,t.pick(o)))),ln(e)&&(t.skip(),t.is(e)&&t.go()),i}fatal(e,t){}}const En=j((function(e){return new An(e).scanTernary(0)})),Tn={},Dn=/\s*:\s*([_$a-z]+)$/i,On=/^\s*[\n\r]\s*|\s*[\n\r]\s*$/g,zn=/\s*(=>|->)\s*/,Ln=/<(\/)?([a-z][-a-z0-9]*|\$[^\s]*)/i,Pn=/^\s*([-$.:\w]+)(?:=(['"]))?/,Vn=/^\s*(\/)?>/;function jn(e,t){return B(q(e,t.length))}function Un(e){if(e.safe&&1===e.expr.type)return Gt(L(e.expr.value))}function In(e,t){return e>=0&&t>=0?e<t?-1:1:e>=0?-1:t>=0?1:0}function Rn(e,t,n,r){for(;;){const o=t.text.indexOf("\x3c!--",t.position),i=t.text.indexOf("--\x3e",t.position);switch(In(o,i)){case-1:t.position=o+1;const s={startIndex:o};k(e,s),n&&n(t,s);break;case 1:t.position=i+1;const{length:c}=e;if(c>0){const n=C(e);n.endIndex=i+"--\x3e".length;const o=1===c;if(r){if(false===r(t,n,o))return}if(o)return}break;case 0:return}}}function Mn(e){const t=[];let n=false;for(let r=0;r<e.length;r++){const o=e[r];if(5===o.type){const i=o;Rn(t,{text:i.text,position:0},(function(e,t){t.index=r,t.text=q(i.text,0,t.startIndex)}),(function(t,o){const s=o.index,c=r,a=o.text,u=q(i.text,o.endIndex);if(s===c)return t.text=i.text=a+u,void(t.position=o.startIndex);let f=s,l=c;a&&(e[s].text=a,f++),u&&(e[c].text=u,l--);const d=l-f+1;return d>0&&(n=true,e.splice(f,d),r=f-1),false}))}}if(n)for(let t=0;t<e.length;t++){const n=e[t];if(5===n.type){const r=e[t+1];r&&5===r.type&&(n.text+=r.text,e.splice(t+1,1))}}}function Hn(t){let n,r,o,i,s,a=W(c.leftDelimiter,2),u=W(c.rightDelimiter,2),f=c.leftDelimiter,l=c.rightDelimiter,d=[],p=[],h=[],g=[],m=[],y=[],x=t.length,$=0,b=0,w=0,N=0,A=1,E=[],T=[],D=function(e){const t=_(p);if(t&&1===t.type){const r=t;r.tag!==e&&(n=r.tag,void 0!==Qt[n])&&O(r.type,r.tag)}var n},O=function(e,t){const n=C(p),o=1===e,i=2===e,s=4===e,c=3===e,a=_(p);let{children:u}=n;if(u&&u.length>1&&(r||(Mn(u),u.length||(u=n.children=undefined))),u){const e=1===u.length&&u[0];if(e)switch(e.type){case 5:o?z(n,e):r&&(i?U(r,n,e):s?V(r,n,e):c&&M(r,n,e));break;case 11:o?L(n,e):r&&(i||s||c)&&I(r,n,e)}}else r&&(i?j(r,n):s?P(r,n):c&&R(r,n));return n.isVirtual&&!n.children&&J(n),o?K(n):r&&i&&G(r,n),a&&a.isStatic&&!n.isStatic&&(a.isStatic=false),n},z=function(e,t){e.isNative&&fn(e,t.text)&&(e.children=undefined)},L=function(e,t){e.isNative&&(t.safe&&fn(e,t.expr)||!t.safe&&function(e,t){return e.html=t,!0}(e,t.expr))&&(e.children=undefined)},P=function(e,t){J(t)},V=function(e,t,n){n.text?(t.value=n.text,t.children=undefined):J(t)},j=function(e,t){Kt(e,t)||(t.value=function(e,t,n){return!!e.isComponent||(on(t)?void 0:sn(t)?an(t,!0,n):"")}(e,t.name,t.defaultValue))},U=function(e,t,n){const{text:r}=n;e.isNative?t.value=rn(t.name,r,t.defaultValue):t.value=r,t.children=undefined},I=function(e,t,n){const{expr:r}=n;if(1===r.type){let n=r.value;e.isNative&&2===t.type&&(n=rn(t.name,n,t.defaultValue)),t.value=n}else t.expr=r;t.children=undefined},R=function(e,t){t.value=true},M=function(e,t,n){let r,o,{ns:i}=t,{text:s}=n,c="o"===i;try{r=En(s)}catch(e){o=e}if(r)t.expr=r,t.value=1===r.type?r.value:s;else{if(!c)throw o;t.value=s}t.children=undefined},F=function(e){let t=e,n=[],r=false,o=false;for(;k(n,t),t.next;)t=t.next;v(n,(function(e){e.children&&(!r&&e.next&&delete e.next,o=r=true)}),true),o||J(e)},K=function(e){const{tag:t,slot:n}=e;("template"===t||"fragment"===t||"portal"===t)&&!e.children?J(e):e.isNative&&function(e){let{attrs:t}=e,n=!1;if(t&&v(t,(function(e){"type"===(2===e.type?e.name:void 0)&&(n=!0)})),e.isStyle&&!n){const t=Bt("type");t.value="text/css",k(e.attrs||(e.attrs=[]),t)}}(e)},G=function(e,t){const{name:n,value:r}=t,o="slot"===n;if(Kt(e,t)){const i=o;e[n]=i?r:t,J(t),t.isStatic&&(t.isStatic=false)}},J=function(e,t){let n,o,i,s=_(p);s?(n=r&&r===s,o=n?s.attrs:s.children):o=d,o&&(i=S(o,e),i>=0&&(t?o[i]=t:(o.splice(i,1),s&&!o.length&&(n?delete s.attrs:s.children=undefined))))},X=function(e){r||D();let t=e.type,n=_(p),i=undefined,s=undefined,c=undefined;if(7===t){const e=_(g);e&&(6===e.type?i=e:7===e.type&&(s=e))}else if(8===t){const e=_(g),t=_(y);e&&n===e?6===e.type?i=e:7===e.type&&(s=e):t&&n===t&&9===t.type&&(c=t)}else if(n)if(r&&1===n.type)k(r.attrs||(r.attrs=[]),e);else{const i=n.children||(n.children=[]),s=_(i);if(11===t&&(!r||o&&i.length>0)){const n=Un(e);n&&(e=n,t=n.type)}if(s&&5===t){if(5===s.type)return void(s.text+=e.text);if(11===s.type){const t=Un(s);if(t)return i[i.length-1]=t,void(t.text+=e.text)}}k(i,e)}else k(d,e);6===t?(k(h,e),k(g,e)):9===t?(k(m,e),k(y,e)):i?(i.next=e,g[g.length-1]=e,O(i.type)):s?(s.next=e,g[g.length-1]=e,O(s.type)):c&&(c.next=e,y[y.length-1]=e,O(c.type)),e.isLeaf?n&&n.isStatic&&!e.isStatic&&(n.isStatic=false):k(p,e)},ee=function(e){(e=e.replace(On,""))&&X(Gt(e))},te=[function(e){if(!n&&!r){const t=e.match(Ln);if(t&&0===t.index){let e=t[2];if("/"===t[1])D(e),r=O(1);else{let t;"$"===Q(e)&&(e=q(e,1),t=En(e));const n=un(e,t);X(n),r=n}return t[0]}}},function(e){if(n)return;const t=e.match(Vn);return t&&r&&!o?("/"===t[1]&&O(r.type,r.tag),r=undefined,t[0]):void 0},function(e){if(!n&&r&&!o){const t=e.match(Pn);if(t){let e,n=t[1];if("model"===n||"transition"===n)e=qt("",n);else if(Z(n,"on-")){const t=jn(n,"on-"),r=H(t).split(".");e=qt(r[0],"event",r[1])}else if("lazy"===n)e=qt("","lazy");else if(Z(n,"lazy-")){const t=jn(n,"lazy-");e=qt(H(t),"lazy")}else if(Z(n,"o-")){const t=jn(n,"o-"),r=H(t).split(".");e=qt(r[0],"o",r[1])}else{const t=n.split(":");e=2===t.length?nn(r,t[1],t[0]):nn(r,n)}return X(e),s=t[2],s?o=e:O(e.type),t[0]}}},function(e){let t,i=undefined;if(!n&&o&&s)t=e.match(Tn[s]||(Tn[s]=new RegExp(s))),t?(i=q(e,0,t.index),ee(i),o.children||X(Gt("")),i+=s,O(o.type),o=undefined):(i=e,ee(i));else if(r)i=e;else{let r="";if(!n&&(t=e.match(Ln),t)){const n=t.index;In(n,e.indexOf("\x3c!--"))<0&&(i=q(e,0,n),r=i)}if(!ln(i)){let t=-1,o=-1;const s=n,c=n||[];n=undefined,Rn(c,{text:e,position:0},(function(o,s){t<0&&(t=s.startIndex,i=e,r=e,n=c)}),(function(c,a,u){u&&(n=undefined,o=a.endIndex,t>=0?s?(i=q(e,0,o),r=i):(i=q(e,0,o),r=q(e,0,t)):(i=q(e,0,o),r=i))}))}ln(i)||(i=e,r=e),ee(r)}return i}],ne=[function(e){if(Z(e,"#each")){let t=e=B(jn(e,"#each")),n=undefined,r=e.match(Dn);if(r&&(n=r[1],t=q(e,0,-1*r[0].length)),r=t.match(zn),r){const e=t.split(zn),o=En(e[0]),i=En(e[2]);if(o&&i)return Yt(o,i,"=>"===r[1],n)}else{const e=En(t);if(e)return Yt(e,undefined,false,n)}}},function(e){if(Z(e,">")){e=jn(e,">");return function(e){return{type:10,expr:e,isLeaf:!0}}(En(e))}},function(e){if(Z(e,"#if")){e=jn(e,"#if");return function(e){return{type:6,expr:e,isVirtual:!0}}(En(e))}},function(e){if(Z(e,"else if")){e=jn(e,"else if");return function(e){return{type:7,expr:e,isVirtual:!0}}(En(e))}},function(e){if(Z(e,"else"))return e=jn(e,"else"),{type:8,isVirtual:!0}},function(e){if(Z(e,"...")){e=jn(e,"...");const t=En(e);if(r&&r.isComponent)return function(e){return{type:12,expr:e,isLeaf:!0}}(t)}},function(t){if(!e.test(t)){t=B(t);return function(e,t){return{type:11,expr:e,safe:t,isLeaf:!0,isStatic:e.isStatic}}(En(t),2===A)}}],re=function(e){for(;e;)v(te,(function(t){const n=t(e);if(n)return e=q(e,n.length),false}))},oe=function(e){if("/"===Q(e)){D();const t=q(e,1);let n=Ht[t],r=undefined,o=undefined;if(6===n){const e=C(g);e&&(n=e.type,r=C(h))}else if(9===n){const e=C(y);e&&(n=e.type,o=C(m))}O(n),r?F(r):o&&F(o)}else v(ne,(function(t){const n=t(e);if(n)return X(n),false}))},ie=function(){if($=N+u.length,!($<=x))return true;$<x&&Q(t,$)===l?3===A&&(b=$+1):2===A&&(b=$),C(E),se(N)},se=function(e){E.length||k(T,e)};for(;;)if(se(b),w=Y(t,a,b),N=Y(t,u,b),N>=b&&(w<0||N<w)){if(ie())break}else{if(!(w>=b))break;if(A=2,se(w),w+=a.length,w<x&&(Q(t,w)===f&&(A=3,w++),se(w),se(A),k(E,true),w<x&&(N=Y(t,u,w),N>=w&&(b=Y(t,a,w),(b<0||N<b)&&ie()))))break}A=1;for(let e=0,n=T.length;e<n;e+=5)$=T[e],w=T[e+1],ln(w)?(re(q(t,$,w)),w=T[e+2],A=T[e+3],N=T[e+4],i=B(q(t,w,N)),i&&oe(i)):(A=1,re(q(t,$)));return p.length&&D(),d.length>0&&Mn(d),d}let Fn=undefined,Kn=undefined,Wn=re("abstract,goto,native,static,enum,implements,package,super,byte,export,import,private,protected,public,synchronized,char,extends,int,throws,class,final,interface,transient,yield,let,const,float,double,boolean,long,short,volatile,default"),Bn=0,qn={},Yn={},Gn="",Zn="",Jn="",Qn="",Xn="",er="",tr="",nr="",rr="";class or{constructor(e){this.value=e}toString(){const{value:e}=this;return true===e?Xn:false===e?er:null===e?Qn:undefined===e?Jn:l(e)?Lr(e):""+e}}class ir{constructor(e,t,n,r,o,i){this.left=e,this.right=t,this.separator=n,this.breakLine=r,this.offset=o,this.items=i||[]}unshift(e){w(this.items,e)}push(e){k(this.items,e)}toString(e){let{left:t,right:n,separator:r,breakLine:o,offset:i,items:s}=this,{length:c}=s;if(!c)return`${t}${n}`;const a=e||0,u=a+i,f=W(nr,a),l=W(nr,u),d=s.map((function(e){return e.toString(u)}));return t&&o&&(t+=rr+l),n&&o&&(n=rr+f+n),`${t}${D(d,o?r+rr+l:r+tr)}${n}`}}class sr{constructor(e){this.items=e||[]}add(e){k(this.items,e)}toString(e){const{items:t}=this;return 1===t.length?t[0].toString(e):new ir("(",")",",",true,1,t).toString(e)}}class cr{constructor(e){if(this.fields={},e){const t=this;ve(e,(function(e,n){t.set(n,e)}))}}set(e,t){t instanceof or&&undefined===t.value||(this.fields[e]=t)}isNotEmpty(){return ye(this.fields).length>0}toString(e){const{fields:t}=this;return $r("{","}",",",true,1,ye(t).sort().map((function(e){return{toString:n=>function(e,t){/^[\w$]+$/.test(e)&&!Wn[e]||(e=Lr(e));return`${e}:${tr}${t}`}(e,t[e].toString(n))}}))).toString(e)}}class ar{constructor(e,t){this.name=e,this.args=t}toString(e){const{name:t,args:n}=this,r=n?function(e){let t=[],n=true;return v(e,(function(e){!(e instanceof or)||undefined!==e.value?(n=false,w(t,e)):n||w(t,xr(undefined))}),true),t}(n):[];return r.length?`${t.toString(e)}${$r("(",")",",",true,1,r).toString(e)}`:t.toString(e)+"()"}}class ur{constructor(e){this.value=e}toString(e){return`(${this.value.toString(e)})`}}class fr{append(e){const{buffer:t}=this;this.buffer=t?Nr(t instanceof pr?_r(t):t,"+",e instanceof pr?_r(e):e):e}toString(e){return this.buffer.toString(e)}}class lr{constructor(e,t){this.operator=e,this.value=t}toString(e){return`${this.operator}${this.value.toString(e)}`}}class dr{constructor(e,t,n){this.left=e,this.operator=t,this.right=n}toString(e){return`${this.left.toString(e)}${tr}${this.operator}${tr}${this.right.toString(e)}`}}class pr{constructor(e,t,n){this.test=e,this.yes=t,this.no=n}toString(e){return`${this.test.toString(e)}${tr}?${tr}${this.yes.toString(e)}${tr}:${tr}${this.no.toString(e)}`}}class hr{constructor(e,t,n){this.args=e,this.body=t,this.returnValue=n}toString(e){const{args:t,body:n,returnValue:r}=this,o=e||0,i=o+1,s=W(nr,o),c=W(nr,i),a=t?$r("","",",",false,1,t).toString(o):"",u=[];return n&&k(u,n.toString(i)+(r?";":"")),r&&k(u,"return "+r.toString(i)),`function${tr}(${a})${tr}{${rr}${c}${D(u,rr+c)}${rr}${s}}`}}class gr{constructor(e,t){this.base=e,this.props=t}toString(e){const{base:t,props:n}=this;let r=t.toString(e);return v(n,(function(t){t instanceof or?h(t.value)?r+=`[${tr}${t.value}${tr}]`:r+="."+t.value:r+=`[${tr}${t.toString(e)}${tr}]`})),r}}class mr{constructor(e,t,n){this.name=e,this.value=t,this.isDeclaration=n}toString(e){const{name:t,value:n,isDeclaration:r}=this,o=`${t.toString(e)}${tr}=${tr}${n.toString(e)}`;return r?"var "+o:o}}class yr{constructor(e,t){this.array=e,this.item=t}toString(e){const{array:t,item:n}=this;return Sr(Tr(t,[xr("push")]),[n]).toString(e)}}class vr{constructor(e,t){this.value=e,this.type=t}toString(e){const{value:t,type:n}=this;return`typeof ${t.toString(e)}${tr}===${tr}${Lr(n)}`}}function xr(e){return new or(e)}function $r(e,t,n,r,o,i){return new ir(e,t,n,r,o,i)}function br(e){return new sr(e)}function kr(e,t){let n=$r("[","]",",",true,1,e);return l(t)?{toString:e=>`${n.toString(e)}.join(${xr(t).toString()})`}:n}function wr(e){return new cr(e)}function Sr(e,t){return new ar(e,t)}function _r(e){return new ur(e)}function Cr(){return new fr}function Nr(e,t,n){return new dr(e,t,n)}function Ar(e,t,n){return new pr(e,t,n)}function Er(e,t,n){return new hr(e,t,n)}function Tr(e,t){return new gr(e,t)}function Dr(e,t,n){return new mr(e,t,n)}function Or(e,t){return new yr(e,t)}function zr(){return Zn}function Lr(e){return`"${e=e.replace(/\\?'/g,"\\'").replace(/\\?"/g,'\\"').replace(/\n\s*/g,"\\n")}"`}function Pr(e,t){const n=e?e.toString():undefined;if(t&&n&&Yn[n])return Yn[n];const r=Gn+Bn++;return qn[r]=e,t&&n&&(Yn[n]=r),r}function Vr(e){return e.split(".").filter((function(e){return e.length>0})).map(xr)}function jr(e,t){const n=[];ve(qn,(function(e,t){k(n,{toString:n=>function(e,t){return void 0!==t?`${e}${tr}=${tr}${t}`:e}(t,e?e.toString(n):undefined)})}));return`(${Er(undefined,$r("var ","",",",false,0,n),Er(e,t)).toString()})()`}function Ur(e){return 6===e.type||5===e.type}function Ir(e,t,n,r,o,i,s){let c,a=false,u=function(e,i){return Ir(e,t,n,r,o,false,i)},f=function(e,t){return e.map((function(e){return u(e,t)}))};switch(e.type){case 1:c=xr(e.value);break;case 4:const l=e;c=function(e,t){return new lr(e,t)}(l.operator,u(l.node));break;case 5:let d=e,p=u(d.left),h=u(d.right);c=Nr(Ur(d.left)?_r(p):p,d.operator,Ur(d.right)?_r(h):h);break;case 6:const g=e;c=Ar(u(g.test),u(g.yes),u(g.no));break;case 7:c=kr(f(e.nodes,s));break;case 8:const m=e,y=wr();v(m.keys,(function(e,t){const n=m.values[t];y.set(e,u(n))})),c=y;break;case 2:a=true;const x=e;c=t(x)||n(x,x.name?Vr(x.name):[],x.name,i,s);break;case 3:a=true;const $=e;if($.isStatic)c=$.raw;else if(2===$.lead.type){const e=$.lead,o=t(e),a=f($.nodes||[]);o?c=r(o,a,i):(e.name&&v(Vr(e.name),(function(e){a.unshift(e)}),true),c=n($,a,undefined,i,s))}else c=$.nodes?r(u($.lead),f($.nodes||[]),i):r(u($.lead),Vr($.keypath),i);break;default:a=true;const b=e;c=o(b,u(b.name,b),b.args.length?f(b.args):undefined,i)}return!i||a?c:wr({value:c})}const Rr=[true],Mr=[],Hr=[],Fr=[],Kr=[true],Wr=[],Br=[],qr=["$keypath","$length","$event","$data"],Yr={},Gr=xr(undefined),Zr=xr(true);let Jr=undefined,Qr=undefined,Xr="",eo="",to="",no="",ro="",oo="",io="",so="",co="",ao="",uo="",fo="",lo="",po="",ho="",go="",mo="",yo="",vo="",xo="",$o="",bo="",ko="",wo="",So="",_o="",Co="",No="",Ao="",Eo="",To="",Do="",Oo="",zo="",Lo="",Po="",Vo="",jo="",Uo="",Io="",Ro="",Mo="",Ho="";class Fo{constructor(e){this.text=e}toString(e){return wr({type:xr(2),isPure:Zr,operator:$o,text:this.text}).toString(e)}}class Ko{constructor(e){this.buffer=Cr(),this.append(e)}append(e){this.buffer.append(e)}toString(e){return wr({type:xr(1),isPure:Zr,operator:xo,text:this.buffer}).toString(e)}}function Wo(e){if(A(qr,e))switch(e){case"$keypath":return Io;case"$length":return Ro;case"$event":return Mo;case"$data":return Ho;default:return e}}function Bo(e){const{name:t,root:n,lookup:r,offset:o,literals:i}=e;if(i){const e=Wo(i[0]);if(ln(e)){const t=$e(i);return t[0]=e,D(t,".")}}else{const e=Wo(t);if(ln(e))return e}if(_(Hr)&&false===n&&false===r&&0===o)return""===t?Uo:Tr(Uo,Vr(t))}function qo(e,t){return t?e:Tr(e,[xr("value")])}function Yo(e,t,n,r,o){const{root:i,lookup:s,offset:c}=e,{length:a}=t,u=function(e,t){return e?xr(0):Nr(Tr(Lo,[xr("length")]),"-",xr(1+(t||0)))}(i,c);let f=Gr;o&&9===o.type&&s&&n&&a>0&&(f=a>1?Tr(Eo,t):ri(Ao,Eo,n));let d=Sr(ho,[Lo,u,l(n)?xr(n):kr(t,"."),kr(t),s?Zr:Gr,f]);if(n&&1===a)if(i||c||s)if(i||c){const e=br(),t=zr();e.add(Dr(t,Tr(Lo,[u]))),e.add(Sr(yo,[Tr(Sr(Tr(t,[xr("getScope")])),[xr(n)]),Sr(Tr(t,[xr("getKeypath")]),[xr(n)])])),d=e}else d=Sr(go,[Lo,u,xr(n),f]);else d=Sr(yo,[Tr(Uo,t),Sr(Tr(Tr(Lo,[u]),[xr("getKeypath")]),[xr(n)])]);else if(!n&&!a){const e=br(),t=zr();e.add(Dr(t,Tr(Lo,[u]))),e.add(Sr(yo,[Sr(Tr(t,[xr("getScope")])),Tr(t,[xr("keypath")])])),d=e}return qo(d,r)}function Go(e,t,n){let r;switch(t.length){case 0:r=Sr(yo,[e]);break;case 1:r=Sr(yo,[Tr(e,t)]);break;default:r=Sr(mo,[e,kr(t)])}return qo(r,n)}function Zo(e,t,n,r){const o=br(),i=zr();return o.add(Dr(i,t)),o.add(Ar(new vr(i,"function"),Sr(i,n),Sr(Tr(No,[xr("fatal")]),[xr(`[${e.raw}] is not a function.`)]))),qo(Sr(yo,[o]),r)}function Jo(e,t){const n=Ir(e,Bo,Yo,Go,Zo,t);return e.isStatic?Pr(n,true):n}function Qo(e){const t=Cr();return k(Wr,t),v(e,(function(e){Yr[e.type](e)})),C(Wr),t}function Xo(e){return ln(e.value)?xr(e.value):e.expr?Jo(e.expr):e.children?Qo(e.children):Gr}function ei(e){Qr=undefined;const t=[];return v(e,(function(e){const n=Yr[e.type](e);n instanceof or&&undefined===n.value||k(t,n)})),Qr=undefined,t}function ti(e){return $r("","",";",true,0,ei(e))}function ni(e,t){const n=ti(e);return n.unshift(Dr(jo,kr(),true)),Er(t,n,Ar(Tr(jo,[xr("length")]),jo,xr(undefined)))}function ri(e,t,n){return Nr(Nr(e,"&&",Tr(e,[xr(n)])),"||",Tr(t,[xr(n)]))}function oi(e){return _(Kr)?function(e){return Qr=e instanceof Ko?e:void 0,Or(jo,e)}(e):e}function ii(e){return Qr?(Qr.append(e),Gr):oi(new Ko(e))}function si(e,t){let n=[],r=[],o=undefined,i=[],s=undefined,c=undefined,a=[],u=[],f=[];for(let l=0,d=e.length;l<d;l++){const d=e[l];if(2===d.type){const e=d;k(4===t||7===t?r:n,e)}else if(4===d.type)o=d;else if(3===d.type){const e=d;switch(e.ns){case"lazy":k(i,e);break;case"transition":s=e;break;case"model":c=e;break;case"event":k(a,e);break;default:k(u,e)}}else k(f,d)}return{nativeAttributeList:n,propertyList:r,style:o,lazyList:i,transition:s,model:c,eventList:a,customDirectiveList:u,otherList:f}}function ci(e){const{name:t}=e;let n=Xo(e);return n instanceof or||(on(t)?n=Sr(lo,[xr(t),n]):sn(t)&&(n=Sr(po,[xr(t),n,xr(e.defaultValue)]))),n}function ai(e,t){let n=undefined,r=undefined,o=t||false;return o||v(e,(function(e){if(!e.isStatic)return o=true,false})),k(Kr,o),o?n=Sr(ni(e)):r=kr(ei(e)),C(Kr),{dynamicChildren:n,staticChildren:r}}function ui(e){if(ln(e.value)){const t=wr();return Wt(e.value,(function(e,n){t.set(e,xr(n))})),Pr(t,true)}return e.expr?8===e.expr.type?Jo(e.expr):Sr(eo,[Jo(e.expr)]):Sr(Xr,[Qo(e.children)])}function fi(e){return xr(e.value)}function li(e){return Sr(to,[xr(e.value),ri(Oo,zo,e.value)])}function di(e){return Sr(no,[Jo(e.expr,true)])}function pi(e,t){k(e,Gr),k(e,Gr),4===_(Br)&&("native"===t.modifier?e[e.length-1]=Zr:e[e.length-2]=Zr)}function hi(e){const t=[];k(t,xr(gi(e))),k(t,xr(e.value)),k(t,xr(e.name)),k(t,xr(e.modifier||""));const n=e.expr,{raw:r}=n;if(9===n.type){const r=n;return k(t,xr(r.name.name)),O(r.args)?k(t,Gr):k(t,wr({execute:Er([Mo,Ho],undefined,kr(r.args.map((function(e){return Jo(e)}))))})),pi(t,e),{name:ro,args:t}}const o=r.split(".");return k(t,xr(o[0])),k(t,xr(o[1])),pi(t,e),{name:oo,args:t}}function gi(e){return de(e.name,e.modifier||"")}function mi(e){const t=[];return k(t,xr(gi(e))),k(t,xr(e.name)),k(t,xr(e.modifier)),k(t,e.expr?Jo(e.expr):xr(e.value)),k(t,ri(To,Do,e.name)),t}function yi(){return _(Rr)?oi(new Fo(xr(""))):_(Wr)?xr(""):Gr}function vi(e){if(e)return _(Mr)&&(e=function(e,t){const{nativeAttributeList:n,propertyList:r,style:o,lazyList:i,transition:s,model:c,eventList:a,customDirectiveList:u,otherList:f}=si(e,t),l=[];return k(l,n),k(l,r),o&&k(l,o),k(l,i),s&&k(l,s),c&&k(l,c),k(l,a),k(l,u),k(l,f),l}(e,_(Br))),_(Wr)?Qo(e):br(ei(e))}function xi(e){return Jr!==c.uglifyCompiled&&(c.uglifyCompiled?(Xr="_a",eo="_b",to="_c",no="_d",ro="_e",oo="_f",io="_g",so="_h",co="_i",ao="_j",uo="_k",fo="_l",lo="_m",po="_n",ho="_o",go="_p",mo="_q",yo="_r",vo="_s",xo="_t",$o="_u",bo="_v",ko="_w",wo="_x",So="_y",_o="_z",Co="_A",No="_B",Ao="_C",Eo="_D",To="_E",Do="_F",Oo="_G",zo="_H",Lo="_I",Po="_J",Vo="_K",jo="_L",Uo="_M",Io="_N",Ro="_O",Mo="_P",Ho="_Q"):(Xr="renderStyleStyle",eo="renderStyleExpr",to="renderTransition",no="renderModel",ro="renderEventMethod",oo="renderEventName",io="renderDirective",so="renderSpread",co="renderEach",ao="renderRange",uo="renderSlot",fo="appendVNodeProperty",lo="formatNativeAttributeNumberValue",po="formatNativeAttributeBooleanValue",ho="lookupKeypath",go="lookupProp",mo="readKeypath",yo="setValueHolder",vo="toString",xo="textVNodeOperator",$o="commentVNodeOperator",bo="elementVNodeOperator",ko="componentVNodeOperator",wo="fragmentVNodeOperator",So="portalVNodeOperator",_o="slotVNodeOperator",Co="instance",No="logger",Ao="filters",Eo="globalFilters",To="directives",Do="globalDirectives",Oo="transition",zo="globalTransitions",Lo="stack",Po="parent",Vo="vnode",jo="children",Uo="$scope",Io="$keypath",Ro="$length",Mo="$event",Ho="$data"),Jr=c.uglifyCompiled),Fn!==c.uglifyCompiled&&(Fn=c.uglifyCompiled,Gn=Fn?"$":"var"),Kn!==c.minifyCompiled&&(Kn=c.minifyCompiled,Kn?tr=nr=rr="":(tr=" ",nr=" ",rr="\n")),Bn=0,qn={},Yn={},Zn=Pr(),Jn=Pr("void 0"),Qn=Pr("null"),Xn=Pr("!0"),er=Pr("!1"),jr([Xr,eo,to,no,ro,oo,io,so,co,ao,uo,fo,lo,po,ho,go,mo,yo,vo,xo,$o,bo,ko,wo,So,_o,Co,No,Ao,Eo,To,Do,Oo,zo,Lo,Uo,Io,jo],Yr[e.type](e))}Yr[1]=function(e){let{tag:t,dynamicTag:n,isComponent:r,to:o,ref:i,key:s,html:c,text:a,attrs:u,children:f}=e,d=r?4:Ft[t]||3,p=wr({context:Co,type:xr(d),tag:n?Jo(n):xr(t)}),h=5===d,g=6===d,m=7===d,y=undefined,x=undefined,$=undefined,b=undefined;if(k(Rr,true),k(Mr,false),k(Br,d),f)if(r)$=function(e){const t=wr(),n={},r=function(e,t){O(t)||k(n[e="$slot_"+e]||(n[e]=[]),t)};if(k(Fr,!0),v(e,(function(e){if(1===e.type){const t=e;if(t.slot)return void r(t.slot,"template"===t.tag?t.children:[t])}r("children",[e])})),ve(n,(function(e,n){t.set(n,ni(e,[Po]))})),C(Fr),t.isNotEmpty())return t}(f);else{const{dynamicChildren:e,staticChildren:t}=ai(f);e?x=e:t&&(m?x=t:p.set("children",t))}if(Rr[Rr.length-1]=false,Mr[Mr.length-1]=true,o&&p.set("to",Xo(o)),i&&p.set("ref",Xo(i)),s&&p.set("key",Xo(s)),c&&p.set("html",l(c)?xr(c):Sr(vo,[Jo(c)])),a&&p.set("text",l(a)?xr(a):Sr(vo,[Jo(a)])),u){const{nativeAttributeList:e,propertyList:t,style:n,lazyList:r,transition:o,model:i,eventList:s,customDirectiveList:c,otherList:a}=si(u,d),f=a.length>0;if(e.length){let t=wr(),n=f;v(e,(function(e){e.isStatic||(n=true),t.set(e.name,ci(e))})),p.set("nativeAttrs",n?t:Pr(t,true))}if(t.length){const e=wr();v(t,(function(t){e.set(t.name,Xo(t))})),p.set("props",e)}if(n&&p.set("nativeStyles",ui(n)),r.length){const e=wr();v(r,(function(t){e.set(t.name,fi(t))})),p.set("lazy",Pr(e,true))}if(o&&p.set("transition",li(o)),i&&p.set("model",di(i)),s.length){const e=wr();v(s,(function(t){const n=hi(t);e.set(gi(t),Sr(n.name,n.args))})),p.set("events",e)}if(c.length){const e=wr();v(c,(function(t){e.set(gi(t),Sr(io,mi(t)))})),p.set("directives",e)}a.length&&(y=Er([Vo],ti(a),Vo))}if(m){const t=e.name;let n=xr("$slot_children");t&&(n=ln(t.value)?xr("$slot_"+t.value):Nr(xr("$slot_"),"+",_r(Xo(t)))),b=Sr(uo,[n,_(Fr)?Po:Gr])}C(Rr),C(Mr),C(Br),3===d?p.set("operator",bo):h?p.set("operator",wo):g?p.set("operator",So):r?(p.set("operator",ko),_(Fr)&&p.set("parent",Po)):m&&(p.set("operator",_o),x=x?Nr(b,"||",x):b),e.isSvg&&p.set("isSvg",Zr),e.isStatic&&(p.set("isStatic",Zr),p.set("isPure",Zr)),x&&p.set("children",x),$&&p.set("slots",$);const w=y?Sr(y,[p]):p;if(h||g||m){const e=br(),t=zr();return e.add(Dr(t,w)),e.add(Nr(Nr(Tr(t,[xr("children")]),"&&",Tr(t,[xr("children"),xr("length")])),"&&",Or(jo,t))),e}return oi(w)},Yr[2]=function(e){const t=_(Br);return Sr(fo,[Vo,xr(4===t||7===t?"props":"nativeAttrs"),xr(e.name),ci(e)])},Yr[4]=function(e){return Dr(Tr(Vo,[xr("nativeStyles")]),ui(e))},Yr[3]=function(e){switch(e.ns){case"lazy":return Sr(fo,[Vo,xr("lazy"),xr(e.name),fi(e)]);case"transition":return Dr(Tr(Vo,[xr("transition")]),li(e));case"model":return Dr(Tr(Vo,[xr("model")]),di(e));case"event":const t=hi(e);return Sr(fo,[Vo,xr("events"),xr(gi(e)),Sr(t.name,t.args)]);default:return Sr(fo,[Vo,xr("directives"),xr(gi(e)),Sr(io,mi(e))])}},Yr[12]=function(e){return Sr(so,[Vo,xr("props"),Jo(e.expr)])},Yr[5]=function(e){const t=xr(e.text);if(_(Rr))return ii(t);const n=_(Wr);return n?(n.append(t),Gr):t},Yr[11]=function(e){const t=Jo(e.expr);if(_(Rr))return ii(Sr(vo,[t]));const n=_(Wr);return n?(n.append(Sr(vo,[t])),Gr):t},Yr[6]=function(e){const{next:t}=e,n=_(Wr),r=yi(),o=Ar(Jo(e.expr),vi(e.children)||r,t?Yr[t.type](t):r);return n?(n.append(o),Gr):o},Yr[7]=function(e){const{next:t}=e,n=yi();return Ar(Jo(e.expr),vi(e.children)||n,t?Yr[t.type](t):n)},Yr[8]=function(e){return vi(e.children)||yi()},Yr[9]=function(e){const{index:t,from:n,to:r,equal:o,next:i}=e,s=r||7===n.type||8===n.type,c=[Lo,Uo,Io,Ro];t&&(k(c,t),k(qr,t)),k(Hr,s);const a=Er(c,ti(e.children));t&&C(qr),C(Hr);const u=i?Er(undefined,ti(i.children)):Gr;return r?Sr(ao,[Jo(n),Jo(r),xr(o),a,u]):Sr(co,[Jo(n,true),a,u])},Yr[10]=function(e){const t=zr(),n=br();return n.add(Dr(t,Jo(e.expr))),n.add(Ar(t,oi(t),Gr)),n};function $i(e){const{input:t,getter:n}=e;e.value=t?n.apply(undefined,t):n()}class bi{constructor(){this.map={},this.list=[]}add(e,t){const n=this.map[e.id]||(this.map[e.id]={});n[t]||(n[t]=e,this.list.push([e,t]))}watch(e){const{list:t}=this;if(t)for(let n=0,r=t.length;n<r;n++)t[n][0].watch(t[n][1],e)}unwatch(e){const{list:t}=this;if(t)for(let n=0,r=t.length;n<r;n++)t[n][0].unwatch(t[n][1],e)}}class ki{constructor(e,t,n,r,o,i,s,c){const a=this;a.status=1,a.keypath=e,a.cache=t,a.input=r,a.output=o,a.setter=s,a.getter=i,a.onChange=c,a.watcherOptions={sync:n,watcher(){a.refresh()}}}get(){const e=this,{status:t,watcherOptions:n}=e;if(e.cache){if(2!==t)if(e.staticDeps)$i(e);else{let{dynamicDeps:t}=e;t&&t.unwatch(n.watcher),e.dynamicDeps=undefined;const r=ki.current;ki.current=e,$i(e),ki.current=r,t=e.dynamicDeps,t&&t.watch(n)}}else $i(e);return 2!==t&&(e.status=2),function(e){const{value:t,output:n}=e;return n?n(t):t}(e)}set(e){const{setter:t}=this;t?t(e):a(e)&&(this.getter=e,this.refresh())}refresh(){const e=this.value;this.status=3;const t=this.get();t!==e&&this.onChange(this.keypath,t,e)}addStaticDeps(e,t){const n=this.staticDeps||(this.staticDeps=new bi);for(let r=0,o=t.length;r<o;r++)n.add(e,t[r]);n.watch(this.watcherOptions)}addDynamicDep(e,t){(this.dynamicDeps||(this.dynamicDeps=new bi)).add(e,t)}}class wi{constructor(e,t,n){this.keypath=e,this.scopeValue=t,this.scopeKey=n}getScope(){const{scopeValue:e,scopeKey:t}=this;return undefined!==t?e[t]:e}getKeypath(e){const{keypath:t}=this;return t?t+"."+e:e}}let Si=0,_i="cssFloat",Ci=function(e,t,n){e.addEventListener(t,n,false)},Ni=function(e,t,n){e.removeEventListener(t,n,false)},Ai=function(e,t){e.classList.add(t)},Ei=function(e,t){e.classList.remove(t)};if(n){let e=n.documentElement;_i in e.style||(_i="styleFloat"),e.classList||(Ai=function(e,t){const n=e.className.split(Ti);A(n,t)||(k(n,t),e.className=D(n,Ti))},Ei=function(e,t){const n=e.className.split(Ti);N(n,t)&&(e.className=D(n,Ti))}),e=undefined}const Ti=" ",Di={svg:"http://www.w3.org/2000/svg"},Oi={},zi={},Li={},Pi={};function Vi(e){return n.createComment(e)}function ji(e,t){e.appendChild(t)}Pi.model={on(e,t){let n=false;Hi(e,"compositionstart",t.compositionstart=function(){n=true}),Hi(e,"compositionend",t.compositionend=function(e){n=false,t(e)}),Ci(e,"input",t.input=function(e){n||t(e)})},off(e,t){Fi(e,"compositionstart",t.compositionstart),Fi(e,"compositionend",t.compositionend),Ni(e,"input",t.input),t.compositionstart=t.compositionend=t.input=undefined}};const Ui=function(e){const t=n.querySelector(e);if(t)return t};function Ii(e){return e.innerHTML}const Ri=Ai,Mi=Ei;function Hi(e,t,n){const r=e.$event||(e.$event=++Si),o=zi[r]||(zi[r]={}),i=Li[r]||(Li[r]={}),s=i[t]||(i[t]=[]);if(!o[t]){const n=Pi[t],i=function(e){let n;y.is(e)?(n=e,n.type!==t&&(n.type=t)):n=new y(t,function(e,t){return e}(e));const r=s.slice();for(let e=0,t=r.length;e<t;e++)r[e](n,undefined,true)};o[t]=i,Oi[r]?Oi[r]++:Oi[r]=1,n?n.on(e,i):Ci(e,t,i)}s.push(n)}function Fi(e,t,n){let r=e.$event,o=zi[r],i=Li[r],s=i&&i[t];if(s&&(N(s,n),s.length||(s=undefined,delete i[t])),o&&o[t]&&!s){const n=Pi[t],i=o[t];n?n.off(e,i):Ni(e,t,i),delete o[t],Oi[r]&&Oi[r]--}Oi[r]||(e.$event=undefined,delete zi[r],delete Li[r])}var Ki=Object.freeze({__proto__:null,getBodyElement:function(){return n.body},createElement:function(e,t){return t?n.createElementNS(Di.svg,e):n.createElement(e)},createText:function(e){return n.createTextNode(e)},createComment:Vi,getAttr:function(e,t){const n=e.getAttribute(t);if(null!=n)return n},setAttr:function(e,t,n){undefined===n?e.removeAttribute(t):e.setAttribute(t,n)},removeAttr:function(e,t){e.removeAttribute(t)},setStyle:function(e,t,n){null!=n?e["float"===t?_i:t]=n:e[t]=""},removeStyle:function(e,t){e[t]=""},before:function(e,t,n){e.insertBefore(t,n)},append:ji,replace:function(e,t,n){e.replaceChild(t,n)},remove:function(e,t){e.removeChild(t)},parent:function(e){const{parentNode:t}=e;if(t)return t},next:function(e){const{nextSibling:t}=e;if(t)return t},find:Ui,tag:function(e){if(1===e.nodeType)return te(e.tagName)},getNodeText:function(e){return e.textContent},setNodeText:function(e,t){e.textContent=t},getElementText:function(e){return e.textContent},setElementText:function(e,t){e.textContent=t},getHtml:Ii,setHtml:function(e,t){e.innerHTML=t},addClass:Ri,removeClass:Mi,on:Hi,off:Fi,addSpecialEvent:function(e,t){Pi[e]=t}});function Wi(e,t){return h(e)?+e:undefined!==t?t:0}function Bi(e,t){if(null==e||""===t)return e;const n=ke(e,t);return n?n.value:void 0}function qi(e,t,n,r,i,s){const c=function(t,n,o){if(n!==o){const c=de(e,t);for(let e=0;e<i;e++){const t=r[e];undefined!==ge(c,t)&&s(t,c,n,o)}qi(c,n,o,r,i,s)}};(function(e,t,n){const r=l(e),o=l(t);if(r||o)return n("length",r?e.length:void 0,o?t.length:void 0),!0})(t,n,c)||function(e,t,n){const r=u(e),o=u(t);if(r||o){const i=r?e.length:void 0,s=o?t.length:void 0;n("length",i,s);for(let c=0,a=Math.max(i||0,s||0);c<a;c++)n(""+c,r?e[c]:void 0,o?t[c]:void 0);return!0}}(t,n,c)||function(e,t,n){const r=f(e),i=f(t);if(r||i){const s=V(),c=r?e:o,a=i?t:o;if(r)for(let e in c){const t=c[e];t!==a[e]&&(s.set(e,!0),n(e,t,a[e]))}if(i)for(let e in a){const t=a[e];void 0===s.get(e)&&t!==c[e]&&n(e,c[e],t)}}}(t,n,c)}function Yi(e,t,n,r,o,i){let s;for(const c in r)if(pe(c))undefined!==ge(e,c)?i(c,e,t,n):o&&(s?s.push(c):s=[c]);else{const r=ue(c,e);if(r>=0){const e=q(c,r),o=Bi(t,e),s=Bi(n,e);o!==s&&i(c,c,o,s)}}s&&qi(e,t,n,s,s.length,i)}const Gi={watcher:r};function Zi(e,t){return a(e)?(Gi.watcher=e,Gi.immediate=true===t,Gi):e}let Ji=0;class Qi{constructor(e,t,n){const r=this;r.id=Ji++,r.data=e||{},r.context=t||r,r.nextTask=n||new je,r.syncEmitter=new De,r.asyncEmitter=new De,r.asyncOldValues={},r.asyncKeypaths={},r.onComputedChange=function(e,t,n){r.diff(e,t,n)}}get(e,t,n){const r=this,{data:o}=r,i=ki.current;if(""===e)return o;i&&!n&&i.addDynamicDep(r,e);const s=ke(o,e);return s?s.value:t}set(e,t){const n=this,{data:r}=n,o=function(e,t){const o=n.get(e);if(t===o)return;let i;le(e,(function(e,n,o){if(0!==n)i&&(n===o?i[e]=t:i=i[e]||(i[e]={}));else{const n=r[e];n&&n instanceof ki?0===o?n.set(t):i=n.get():0===o?r[e]=t:i=r[e]||(r[e]={})}})),n.diff(e,t,o)};if(l(e))o(e,t);else if(f(e))for(let t in e)o(t,e[t])}diff(e,t,n){let r=this,{syncEmitter:o,asyncEmitter:i,asyncOldValues:s,asyncKeypaths:c}=r,a=36!==X(e);Yi(e,t,n,o.listeners,a,(function(e,t,n,r){o.fire({type:e,ns:""},[n,r,t])})),Yi(e,t,n,i.listeners,a,(function(e,t,n,o){const a=i.listeners[e];for(let e=0,t=a.length;e<t;e++)a[e].count++;c[t]||(s[t]=o,c[t]={}),c[t][e]=true,r.pending||(r.pending=true,r.nextTask.append((function(){r.pending&&r.diffAsync()})))}))}diffAsync(){const e=this,{asyncEmitter:t,asyncOldValues:n,asyncKeypaths:r}=e;e.pending=undefined,e.asyncOldValues={},e.asyncKeypaths={};for(let o in n){const i=[e.get(o),n[o],o],s=r[o],c=i[0]!==i[1],a=function(e,t,n){if(n.count)return n.count--,c};for(let e in s)t.fire({type:e,ns:""},i,a)}}addComputed(e,t){let n,r,o,i,s,c=this,l=c.context,d=true,h=true;if(a(t))o=t.bind(l);else if(f(t)){const e=t;p(e.cache)&&(d=e.cache),p(e.sync)&&(h=e.sync),u(e.deps)&&(n=e.deps),O(e.input)||(r=e.input),a(e.output)&&(s=e.output),a(e.get)&&(o=e.get.bind(l)),a(e.set)&&(i=e.set.bind(l))}if(o){const t=new ki(e,d,h,r,s,o,i,c.onComputedChange);return d&&n&&t.addStaticDeps(c,n),c.data[e]=t}}removeComputed(e){delete this.data[e]}watch(e,t,n){const r=this,{context:o,syncEmitter:i,asyncEmitter:s}=r,c=function(e,t){const n=t.sync?i:s,c={ns:"",listener:t.watcher,ctx:o,count:0};t.once&&(c.max=1),n.on(e,c),t.immediate&&t.watcher.call(o,r.get(e),undefined,e)};if(l(e))c(e,Zi(t,n));else for(let t in e)c(t,Zi(e[t]))}unwatch(e,t){this.syncEmitter.off(e,t),this.asyncEmitter.off(e,t)}toggle(e){const t=!this.get(e);return this.set(e,t),t}increase(e,t,n){const r=Wi(this.get(e),0)+(t||1);if(!d(n)||r<=n)return this.set(e,r),r}decrease(e,t,n){const r=Wi(this.get(e),0)-(t||1);if(!d(n)||r>=n)return this.set(e,r),r}insert(e,t,n){let r=this.get(e);r=u(r)?r.slice():[];const{length:o}=r;if(true===n||n===o)r.push(t);else if(false===n||0===n)r.unshift(t);else{if(!(n>0&&n<o))return;r.splice(n,0,t)}return this.set(e,r),true}append(e,t){return this.insert(e,t,true)}prepend(e,t){return this.insert(e,t,false)}removeAt(e,t){let n=this.get(e);if(u(n)&&t>=0&&t<n.length)return n=n.slice(),n.splice(t,1),this.set(e,n),true}remove(e,t){let n=this.get(e);if(u(n)&&(n=n.slice(),N(n,t)))return this.set(e,n),true}copy(e,t){return $e(e,t)}destroy(){const e=this;e.syncEmitter.off(),e.asyncEmitter.off(),e.nextTask.clear(),e.data={}}}const Xi={},es={},ts={},ns={},rs=/^[#.][-\w+]+$/,os=new class{constructor(){this.$emitter=new De}fire(e,t,n){this.$emitter.fire(t,[e,n])}on(e,t){return this.$emitter.on(e,t),this}off(e,t){return this.$emitter.off(e,t),this}},is=j((function(e){return xi(Hn(e)[0])})),ss={watcher(e){this.update(e,this.$vnode)},sync:true},cs=function(e){return e?e.map(It):e};class as{constructor(e){const t=this,n=e||o;t.$emitter=new De(true),n.events&&t.on(n.events);{n.parent&&(t.$parent=n.parent);const e=n.beforeCreate;e&&e.call(t,n),os.fire(t,"beforeCreate",{options:n})}let{data:r,props:i,vnode:s,propTypes:c,computed:u,methods:d,watchers:p,extensions:h}=n;t.$options=n,h&&xe(t,h);const g=i?$e(i):{};c&&ve(c,(function(e,t){let n=g[t];undefined===n&&(n=e.value,undefined!==n&&(g[t]="function"===e.type?n:a(n)?n():n))}));const m=t.$observer=new Qi(g,t,t.$nextTask=new je);u&&ve(u,(function(e,t){m.addComputed(t,e)}));const y=a(r)?r.call(t,e):r;f(y)&&ve(y,(function(e,t){g[t]=e})),d&&ve(d,(function(e,n){t[n]=e}));{let e=undefined,{el:r,root:o,model:i,context:c,replace:a,template:u,transitions:f,components:d,directives:h,filters:g,slots:y}=n;if(i&&(t.$model=i),l(u)&&rs.test(u)&&(e=Ui(u),e&&(u=Ii(e),e=undefined)),r){if(l(r)){const t=r;rs.test(t)&&(e=Ui(t))}else e=r;a||ji(e,e=Vi(""))}if(o&&(t.$root=o),c&&(t.$context=c),hs(t,"transition",f),hs(t,"component",d),hs(t,"directive",h),hs(t,"filter",g),u){if(p&&m.watch(p),y)for(let e in y)m.addComputed(e,{get:y[e],input:[t],output:cs});m.addComputed("$$template",{get:t.render,sync:false}),m.watch("$$template",ss);{const e=n.afterCreate;e&&e.call(t),os.fire(t,"afterCreate")}return t.$template=l(u)?as.compile(u):u,s||(s=function(e,t,n){const r={context:n,node:t,parentNode:e.parent(t)};switch(t.nodeType){case 1:r.data={},r.tag=e.tag(t),r.type=3,r.operator=$t;break;case 3:r.isPure=!0,r.text=t.nodeValue,r.type=1,r.operator=gt;break;case 8:r.isPure=!0,r.text=t.nodeValue,r.type=2,r.operator=mt}return r}(Ki,e,t)),void t.update(t.get("$$template"),s)}}p&&m.watch(p);{const e=n.afterCreate;e&&e.call(t),os.fire(t,"afterCreate")}}static define(e){return e}static use(e){e.install(as)}static nextTick(e,t){je.shared().append(e,t)}static compile(e,t){return a(e)?e:(e=is(e),t?e:new Function("return "+e)())}static directive(e,t){if(l(e)&&!t)return ls(Xi,e);ps(Xi,e,t)}static transition(e,t){if(l(e)&&!t)return ls(es,e);ps(es,e,t)}static component(e,t){if(l(e)&&!t)return ls(ts,e);ps(ts,e,t)}static filter(e,t){if(l(e)&&!t)return ls(ns,e);ps(ns,e,t)}static method(e,t){if(l(e)&&!t)return us[e];ps(us,e,t)}get(e,t){return this.$observer.get(e,t)}set(e,t){const{$observer:n}=this;n&&n.set(e,t)}on(e,t){return ms(this,e,t),this}once(e,t){return ms(this,e,t,true),this}off(e,t){return this.$emitter.off(e,t),this}fire(e,t,n){const r=this,{$emitter:o,$parent:i,$children:s}=r;let c;if(y.is(e))c=e;else if(l(e))c=new y(e);else{const t=e;c=new y(t.type),c.ns=t.ns}if(undefined===c.ns){const e=o.toEvent(c.type);c.type=e.type,c.ns=e.ns}c.target||(c.target=r);let a,u=[c];return f(t)?k(u,t):true===t&&(n=true),a=!(!n||c.target!==r)||o.fire(c,u),a&&(n?s&&(c.phase=y.PHASE_DOWNWARD,v(s,(function(e){return a=e.fire(c,t,true)}))):i&&(c.phase=y.PHASE_UPWARD,a=i.fire(c,t))),a}watch(e,t,n){return this.$observer.watch(e,t,n),this}unwatch(e,t){return this.$observer.unwatch(e,t),this}loadComponent(e,t){fs(this.$components,e,t)||fs(ts,e,t)}createComponent(e,t){{const n=this;(e=$e(e)).root=n.$root||n,e.parent=n,e.context=t.context,e.vnode=t,e.replace=true;let{props:r,slots:o,model:i}=t;if(i){r||(r={});const t=e.model||"value";r[t]=i.value,e.model=t}r&&(e.props=r),o&&(e.slots=o);const s=new as(e);k(n.$children||(n.$children=[]),s);const c=s.$el;return c&&(t.node=c),s}}directive(e,t){{const n=this,{$directives:r}=n;if(l(e)&&!t)return ls(r,e,as.directive);ps(r||(n.$directives={}),e,t)}}transition(e,t){{const n=this,{$transitions:r}=n;if(l(e)&&!t)return ls(r,e,as.transition);ps(r||(n.$transitions={}),e,t)}}component(e,t){{const n=this,{$components:r}=n;if(l(e)&&!t)return ls(r,e,as.component);ps(r||(n.$components={}),e,t)}}filter(e,t){{const n=this,{$filters:r}=n;if(l(e)&&!t)return ls(r,e,as.filter);ps(r||(n.$filters={}),e,t)}}forceUpdate(e){{const t=this,{$options:n,$vnode:r,$nextTask:o}=t;if(r){if(e){const r=n.beforePropsUpdate;r&&r.call(t,e),t.set(e)}o.run(),e||r!==t.$vnode||t.update(t.get("$$template"),r)}}}render(){{const e=this,{$options:t,$observer:n}=e,{data:r}=n,o=t.beforeRender,i=t.afterRender;o&&o.call(e,r),os.fire(e,"beforeRender",{props:r});const s=function(e,t,n,r,o,i,s,c,d,p){let h=[new wi("",n)],g=[],v=function(e,t,n,r){if(e[t])e[t][n]=r;else{const o={};o[n]=r,e[t]=o}},x=function(e){const t={};return Wt(e,(function(e,n){t[e]=n})),t},$=function(e){if(u(e)){const t={};for(let n=0,r=e.length;n<r;n++){const r=$(e[n]);if(r)for(let e in r)t[e]=r[e]}return t}return f(e)?e:l(e)?x(e):void 0},b=function(e,t){return t},k=function(e){return{keypath:e.keypath,value:e.value}},w=function(t,n,r){return function(o,i,s){r&&o.phase===y.PHASE_DOWNWARD||(t===o.type&&n===o.ns||((o=new y(t,s?o.originalEvent:o)).ns=n),e.fire(o,i))}},S=function(e,t,n){return function(r,o){n&&r.phase===y.PHASE_DOWNWARD||!1===E(e,t?t.execute(r,o):o?[r,o]:[r])&&r.prevent().stop()}},C=function(e,t,n,r,o,i,s,c){return{key:e,value:t,name:n,ns:r,isNative:c,runtime:i,listener:S(o,i,s)}},N=function(e,t,n,r,o,i,s,c){return{key:e,value:t,name:n,ns:r,isNative:c,listener:w(o,i,s)}},A=function(e,t,n,r,o){return{ns:"o",name:t,value:r,modifier:n,create:o}},E=function(t,n){const r=e[t];return n&&n.length>0?m(r,e,n):e[t]()},T=function(e,t,n){if(f(n))for(let r in n)v(e,t,r,n[r])},D=function(e,t,n){let{keypath:r,value:o}=e,i=0,s=!!r,c=h,a=_(h).keypath;if(u(o)){i=o.length;for(let e=0;e<i;e++)s&&(a=r+"."+e,h=c.slice(),h.push(new wi(a,o,e))),t(h,o[e],a,i,e)}else if(f(o)){const e=ye(o);i=e.length;for(let n=0;n<i;n++){const u=e[n];s&&(a=r+"."+u,h=c.slice(),h.push(new wi(a,o,u))),t(h,o[u],a,i,u)}}h!==c&&(h=c),n&&0===i&&n()},O=function(e,t,n,r,o){let i=0,s=0,c=_(h).keypath;if(e<t)if(s=t-e,n)for(let n=e;n<=t;n++)r(h,n,c,s,i++);else for(let n=e;n<t;n++)r(h,n,c,s,i++);else if(s=e-t,n)for(let n=e;n>=t;n--)r(h,n,c,s,i++);else for(let n=e;n>t;n--)r(h,n,c,s,i++);o&&0===s&&o()},z=function(e,t){p(e);const r=n[e];if(r)return r instanceof ki?t?r.getter(t):r.get():r},P=function(e,t,n,r,o,i){let s;for(;t>=0;){const i=e[t],c=i.getKeypath(n),a=ke(i.getScope(),r),u=U(a?a.value:void 0,c);if(a)return u;if(s||(s=u),!(o&&t>0))break;t--}return i?U(i):s},V=function(e,t,n,r){return P(e,t,n,[n],!0,r)},j=function(e,t){const n=ke(e,t);return U(n?n.value:void 0)},U=function(e,t){return e&&a(e.get)&&(e=e.get()),me.keypath=t,me.value=e,void 0!==t&&p(t),me};return function(t,n,a,u){t(x,$,b,k,C,N,A,T,D,O,z,v,cn,an,P,V,j,U,L,gt,mt,$t,bt,kt,wt,St,e,Te,r,o,i,s,c,d,h,n,"",u)}(t,n,0,g),g[0]}(e,e.$template,r,e.$filters,ns,e.$directives,Xi,e.$transitions,es,(function(e){const{current:t}=ki;t&&t.addDynamicDep(n,e)}));return i&&i.call(e),os.fire(e,"afterRender"),s}}update(e,t){{let n,r=this,{$vnode:o,$options:i}=r;if(o){const o=i.beforeUpdate;o&&o.call(r),os.fire(r,"beforeUpdate"),Ut(Ki,e,t),n="afterUpdate"}else{const o=i.beforeMount;o&&o.call(r),os.fire(r,"beforeMount"),Ut(Ki,e,t),r.$el=e.node,n="afterMount"}r.$vnode=e,as.nextTick((function(){if(r.$vnode){const e=i[n];e&&e.call(r),os.fire(r,n)}}))}}checkProp(e,t){}destroy(){const e=this,{$parent:t,$options:n,$emitter:r,$observer:o}=e;{const r=n.beforeDestroy;r&&r.call(e),os.fire(e,"beforeDestroy"),t&&t.$children&&N(t.$children,e);const{$vnode:o}=e;o&&(c=!t,Ot(i=Ki,s=o),c&&zt(i,s))}var i,s,c;o.destroy();{const t=n.afterDestroy;t&&t.call(e),os.fire(e,"afterDestroy")}r.off(),e.$el=undefined}nextTick(e){this.$nextTask.append(e,this)}toggle(e){return this.$observer.toggle(e)}increase(e,t,n){return this.$observer.increase(e,t,n)}decrease(e,t,n){return this.$observer.decrease(e,t,n)}insert(e,t,n){return this.$observer.insert(e,t,n)}append(e,t){return this.$observer.append(e,t)}prepend(e,t){return this.$observer.prepend(e,t)}removeAt(e,t){return this.$observer.removeAt(e,t)}remove(e,t){return this.$observer.remove(e,t)}copy(e,t){return this.$observer.copy(e,t)}}as.version="1.0.0-alpha.408",as.is=g,as.dom=Ki,as.array=z,as.object=Se,as.string=ie,as.logger=Te,as.Event=y,as.Emitter=De,as.lifeCycle=os,as.config=c;const us=as.prototype;function fs(e,t,n){if(e&&e[t]){const r=e[t];if(a(r)){e[t]=[n];const o=function(n){const r=e[t],o=n.default||n;e[t]=o,v(r,(function(e){e(o)}))},i=r(o);i&&i.then(o)}else u(r)?k(r,n):n(r);return true}}function ls(e,t,n){return e&&e[t]?e[t]:n?n(t):void 0}function ds(e,t,n,r){r&&r.format&&(n=r.format(n)),e[t]=n}function ps(e,t,n,r){l(t)?ds(e,t,n,r):ve(t,(function(t,n){ds(e,n,t,r)}))}function hs(e,t,n){a(n)?e[t](n.call(e)):f(n)&&e[t](n)}function gs(e,t,n){e.$emitter.on(t.type,{listener:t.listener,ns:t.ns,max:n?1:-1,ctx:e})}function ms(e,t,n,r){const{$emitter:o}=e;l(t)?gs(e,o.toFilter(t,n),r):u(t)?v(t,(function(t){gs(e,t,r)})):ve(t,(function(t,n){gs(e,o.toFilter(n,t),r)}))}T(ye(us));export default as;
//# sourceMappingURL=yox.esm.min.js.map