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