mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-05 05:27:59 +08:00
7 lines
47 KiB
JavaScript
7 lines
47 KiB
JavaScript
/*!
|
|
* Vue.js v2.0.0-pre-alpha
|
|
* (c) 2014-2016 Evan You
|
|
* Released under the MIT License.
|
|
*/
|
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,function(){"use strict";function t(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function e(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function n(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function r(t,e){return Hn.call(t,e)}function i(t){return"string"==typeof t||"number"==typeof t}function o(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}function a(t,e){return e?e.toUpperCase():""}function s(t,e){return function(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}}function u(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function c(t,e){for(var n in e)t[n]=e[n];return t}function l(t){return null!==t&&"object"==typeof t}function f(t){return Jn.call(t)===Wn}function d(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function v(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function p(t){return Gn.test(t)?void 0:(t=t.split("."),function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e})}function h(){this.id=ir++,this.subs=[]}function m(){ar=[],sr=[],ur={},cr={},lr=fr=!1}function g(){ar.sort(y),_(ar),fr=!0,_(sr),m()}function y(t,e){return t.id-e.id}function _(t){for(or=0;or<t.length;or++){var e=t[or],n=e.id;ur[n]=null,e.run()}}function b(t){var e=t.id;if(null==ur[e])if(fr&&!t.user)sr.splice(or+1,0,t);else{var n=t.user?sr:ar;ur[e]=n.length,n.push(t),lr||(lr=!0,nr(g))}}function w(t,e,n,r){r&&c(this,r);var i="function"==typeof e;this.vm=t,t._watchers.push(this),this.expression=e,this.cb=n,this.id=++dr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new rr,this.newDepIds=new rr,i?this.getter=e:(this.getter=p(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get(),this.queued=this.shallow=!1}function $(t,e){var n=void 0,r=void 0,i=void 0,o=void 0;if(e||(e=pr,e.clear()),i=Zn(t),o=l(t),i||o){if(t.__ob__){var a=t.__ob__.dep.id;if(e.has(a))return;e.add(a)}if(i)for(n=t.length;n--;)$(t[n],e);else if(o)for(r=Object.keys(t),n=r.length;n--;)$(t[r[n]],e)}}function x(t){if(this.value=t,this.dep=new h,v(t,"__ob__",this),Zn(t)){var e=Kn?C:k;e(t,mr,gr),this.observeArray(t)}else this.walk(t)}function C(t,e){t.__proto__=e}function k(t,e,n){for(var r=0,i=n.length;i>r;r++){var o=n[r];v(t,o,e[o])}}function O(t,e){if(l(t)){var n;return r(t,"__ob__")&&t.__ob__ instanceof x?n=t.__ob__:yr.shouldConvert&&(Zn(t)||f(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new x(t)),n&&e&&n.addVm(e),n}}function A(t,e,n){var r=new h,i=Object.getOwnPropertyDescriptor(t,e);if(!i||i.configurable!==!1){var o=i&&i.get,a=i&&i.set,s=O(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=o?o.call(t):n;if(h.target&&(r.depend(),s&&s.dep.depend(),Zn(e)))for(var i,a=0,u=e.length;u>a;a++)i=e[a],i&&i.__ob__&&i.__ob__.dep.depend();return e},set:function(e){var i=o?o.call(t):n;e!==i&&(a?a.call(t,e):n=e,s=O(e),r.notify())}})}}function T(t,e,n){if(Zn(t))return t.splice(e,1,n);if(r(t,e))return void(t[e]=n);if(t._isVue)return void T(t._data,e,n);var i=t.__ob__;if(!i)return void(t[e]=n);if(i.convert(e,n),i.dep.notify(),i.vms)for(var o=i.vms.length;o--;){var a=i.vms[o];j(a,e),a.$forceUpdate()}return n}function L(t,e){if(r(t,e)){delete t[e];var n=t.__ob__;if(!n)return void(t._isVue&&(delete t._data[e],t.$forceUpdate()));if(n.dep.notify(),n.vms)for(var i=n.vms.length;i--;){var o=n.vms[i];E(o,e),o.$forceUpdate()}}}function j(t,e){d(e)||Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return t._data[e]},set:function(n){t._data[e]=n}})}function E(t,e){d(e)||delete t[e]}function S(t){t._watchers=[],M(t),N(t),R(t),U(t),P(t)}function M(t){var e=t.$options.props,n=t.$options.propsData;if(e){var r=t.$options.propKeys=Object.keys(e),i=!t.$parent;yr.shouldConvert=i;for(var o=0;o<r.length;o++){var a=r[o];A(t,a,$t(t,a,n))}yr.shouldConvert=!0}}function N(t){var e=t.$options.data;e=t._data="function"==typeof e?e():e||{},f(e)||(e={});for(var n=Object.keys(e),r=n.length;r--;)j(t,n[r]);O(e,t)}function D(){}function R(t){var e=t.$options.computed;if(e)for(var n in e){var r=e[n],i={enumerable:!0,configurable:!0};"function"==typeof r?(i.get=B(r,t),i.set=D):(i.get=r.get?r.cache!==!1?B(r.get,t):s(r.get,t):D,i.set=r.set?s(r.set,t):D),Object.defineProperty(t,n,i)}}function B(t,e){var n=new w(e,t,null,{lazy:!0});return function(){return n.dirty&&n.evaluate(),h.target&&n.depend(),n.value}}function U(t){var e=t.$options.methods;if(e)for(var n in e)t[n]=s(e[n],t)}function P(t){var e=t.$options.watch;if(e)for(var n in e){var r=e[n];if(Zn(r))for(var i=0;i<r.length;i++)I(t,n,r[i]);else I(t,n,r)}}function I(t,e,n){var r=void 0;f(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}function H(t){Object.defineProperty(t.prototype,"$data",{get:function(){return this._data},set:function(t){t!==this._data&&V(this,t)}}),t.prototype.$watch=function(t,e,n){n=n||{},n.user=!0;var r=new w(this,t,e,n);return n.immediate&&e.call(this,r.value),function(){r.teardown()}}}function V(t,e){e=e||{};var n=t._data;t._data=e;var i,o,a;for(i=Object.keys(n),a=i.length;a--;)o=i[a],o in e||E(t,o);for(i=Object.keys(e),a=i.length;a--;)o=i[a],r(t,o)||j(t,o);n.__ob__.removeVm(t),O(e,t),t.$forceUpdate()}function z(t,e,n,r,i,o,a){return{tag:t,data:e,children:n,text:r,elm:i,ns:o,context:a,key:e&&e.key}}function F(t){if("string"==typeof t)return[z(void 0,void 0,void 0,t)];if(Zn(t)){for(var e=[],n=0,r=t.length;r>n;n++){var o=t[n];Zn(o)?e.push.apply(e,F(o)):i(o)?e.push(z(void 0,void 0,void 0,o)):o&&e.push(o)}return e}}function q(t,e,n){var r=void 0,i=void 0,o=void 0,a=void 0,s=void 0;for(r in t)if(i=t[r],o=e[r],void 0===o)s="!"===r.charAt(0),a=s?r.slice(1):r,Zn(i)?n(a,J(i),s):(i={fn:i},t[r]=i,n(a,W(i),s));else if(Zn(o)){o.length=i.length;for(var u=0;u<o.length;u++)o[u]=i[u];t[r]=o}else o.fn=i,t[r]=o}function J(t){return function(e){for(var n=0;n<t.length;n++)t[n](e)}}function W(t){return function(e){t.fn(e)}}function Z(t){var e=t.$options;t.$parent=e.parent,t.$root=t.$parent?t.$parent.$root:t,t.$parent&&t.$parent.$children.push(t),t.$children=[],t.$refs={},t._isDestroyed=!1,t._isBeingDestroyed=!1}function G(t){t.prototype._mount=function(){var t=this;this.$options.render||(this.$options.render=function(){return t.$createElement("div")});var e=this.$options.staticRenderFns;if(e){this._staticTrees=new Array(e.length);for(var n=0;n<e.length;n++)this._staticTrees[n]=e[n].call(this._renderProxy)}return this._watcher=new w(this,this._render,this._update),this._update(this._watcher.value),this._mounted=!0,this.$root===this&&K(this,"ready"),this},t.prototype._update=function(t){this._mounted&&K(this,"beforeUpdate");var e=this.$options._parentVnode;t.parent=e,this._vnode?this.$el=this.__patch__(this._vnode,t):this.$el=this.__patch__(this.$el,t),this._vnode=t,e&&(e.elm=this.$el),this._mounted&&K(this,"updated")},t.prototype._updateFromParent=function(t,e,n,r){var i=this;if(this.$options._parentVnode=n,this.$options._renderChildren=r,t&&this.$options.props){yr.shouldConvert=!1;for(var o=this.$options.propKeys,a=0;a<o.length;a++){var s=o[a];this[s]=$t(this,s,t)}yr.shouldConvert=!0}if(e){var u=this.$options._parentListeners;this.$options._parentListeners=e,q(e,u||{},function(t,e){i.$on(t,e)})}},t.prototype.$forceUpdate=function(){this._watcher.update()},t.prototype.$destroy=function(){if(!this._isDestroyed){K(this,"beforeDestroy"),this._isBeingDestroyed=!0;var t=this.$parent;t&&!t._isBeingDestroyed&&n(t.$children,this),this._ref&&(this._context.$refs[this._ref]=void 0);for(var e=this._watchers.length;e--;)this._watchers[e].teardown();this._data.__ob__&&this._data.__ob__.removeVm(this),this._isDestroyed=!0,K(this,"destroyed"),this.$off()}}}function K(t,e){t.$emit("pre-hook:"+e);var n=t.$options[e];if(n)for(var r=0,i=n.length;i>r;r++)n[r].call(t);t.$emit("hook:"+e)}function Y(t,e,n,r,i){if(t){if(l(t)&&(t=vt.extend(t)),!t.cid){if(!t.resolved)return void nt(t,function(){n.$forceUpdate()});t=t.resolved}e=e||{},ot(e);var o=rt(e,t),a=e.on;a&&(e.on=null);var s=t.options.name?"-"+t.options.name:"",u=z("vue-component-"+t.cid+s,e,void 0,void 0,void 0,void 0,i);return u.componentOptions={Ctor:t,propsData:o,listeners:a,parent:n,children:r},u}}function Q(t){var e=t.componentOptions,n=e.Ctor,r=e.propsData,i=e.listeners,o=e.parent,a=e.children,s=new n({parent:o,propsData:r,_parentVnode:t,_parentListeners:i,_renderChildren:a});s.$mount(t.elm),t.child=s}function X(t,e){var n=e.componentOptions,r=n.listeners,i=n.propsData,o=n.children;e.child=t.child,e.child._updateFromParent(i,r,e,o)}function tt(t){K(t.child,"ready")}function et(t){t.child.$destroy()}function nt(t,e){t.resolved?e(t.resolved):t.requested?t.pendingCallbacks.push(e):!function(){t.requested=!0;var n=t.pendingCallbacks=[e];t(function(e){l(e)&&(e=vt.extend(e)),t.resolved=e;for(var r=0,i=n.length;i>r;r++)n[r](e)},function(t){})}()}function rt(t,e){var n=e.options.props;if(n){var r={},i=t.attrs,o=t.props,a=t.staticAttrs;if(!i&&!o)return r;for(var s in n){var u=qn(s);it(r,i,s,u)||it(r,o,s,u)||it(r,a,s,u)}return r}}function it(t,e,n,i){if(e){if(r(e,n))return t[n]=e[n],delete e[n],!0;if(r(e,i))return t[n]=e[i],delete e[i],!0}}function ot(t){if(t.hook)for(var e=0;e<br.length;e++){var n=br[e],r=t.hook[n],i=_r[n];t.hook[n]=r?at(i,r):i}else t.hook=_r}function at(t,e){return function(n,r){t(n,r),e(n,r)}}function st(t,e,n,r){var i=this,o=wr.activeInstance;if("string"==typeof t){var a=void 0;return Pn.isReservedTag(t)?z(t,e,F(n),void 0,void 0,r,i):(a=wt(i.$options,"components",t))?Y(a,e,o,n,i):z(t,e,F(n&&n()),void 0,void 0,r,i)}return Y(t,e,o,n,i)}function ut(t){t._vnode=null,t._mounted=!1,t._staticTrees=null,t.$slots={},t.$createElement=s(st,t),t.$options.el&&t.$mount(t.$options.el)}function ct(e){e.prototype._render=function(){var t=wr.activeInstance;wr.activeInstance=this;var e=this.$options,n=e.render,r=e._renderChildren;r&<(this,r);var i=n.call(this._renderProxy);return wr.activeInstance=t,i},e.prototype.__h__=st,e.prototype.__toString__=t,e.prototype.__renderList__=function(t,e){var n=void 0,r=void 0,i=void 0,o=void 0,a=void 0;if(Zn(t))for(n=new Array(t.length),r=0,i=t.length;i>r;r++)n[r]=e(t[r],r,r);else if("number"==typeof t)for(n=new Array(t),r=0;t>r;r++)n[r]=e(r+1,r,r);else if(l(t))for(o=Object.keys(t),n=new Array(o.length),r=0,i=o.length;i>r;r++)a=o[r],n[r]=e(t[a],r,a);return n},e.prototype.__registerRef__=function(t,e,n,r){var i=this.$refs;r?n?r(i[t],e):i[t]=void 0:n?i[t]?i[t].push(e):i[t]=[e]:i[t]=e}}function lt(t,e){if(e){e=F(Zn(e)?e:e());for(var n={"default":e},r=e.length,i=void 0,o=void 0;r--;)if(o=e[r],i=o.data&&o.data.slot){var a=n[i]||(n[i]=[]);"template"===o.tag?a.push.apply(a,o.children):a.push(o),e.splice(r,1)}t.$slots=n}}function ft(t){t._events=Object.create(null);var e=t.$options._parentListeners;e&&q(e,{},function(e,n){t.$on(e,n)})}function dt(t){t.prototype.$on=function(t,e){return(this._events[t]||(this._events[t]=[])).push(e),this},t.prototype.$once=function(t,e){function n(){r.$off(t,n),e.apply(this,arguments)}var r=this;return n.fn=e,this.$on(t,n),this},t.prototype.$off=function(t,e){var n;if(!arguments.length)return this._events=Object.create(null),this;if(n=this._events[t],!n)return this;if(1===arguments.length)return this._events[t]=null,this;for(var r,i=n.length;i--;)if(r=n[i],r===e||r.fn===e){n.splice(i,1);break}return this},t.prototype.$emit=function(t){var e=this._events[t];if(e){e=e.length>1?u(e):e;for(var n=u(arguments,1),r=0,i=e.length;i>r;r++)e[r].apply(this,n)}}}function vt(t){this._init(t)}function pt(t,e){var n,i,o;for(n in e)i=t[n],o=e[n],r(t,n)?l(i)&&l(o)&&pt(i,o):T(t,n,o);return t}function ht(t,e){return e?t?t.concat(e):Zn(e)?e:[e]:t}function mt(t,e){var n=Object.create(t);return e?c(n,e):n}function gt(t){if(t.components){var e,n=t.components;for(var r in n)In(r)||Pn.isReservedTag(r)||(e=n[r],f(e)&&(n[r]=vt.extend(e)))}}function yt(t){var e=t.props;if(e){var n={},r=void 0,i=void 0,o=void 0;if(Zn(e))for(r=e.length;r--;)i=e[r],"string"==typeof i&&(o=zn(i),n[o]={type:null});else if(f(e))for(var a in e)i=e[a],o=zn(a),n[o]=f(i)?i:{type:i};t.props=n}}function _t(t){var e=t.directives;if(e)for(var n in e)"function"==typeof e[n]&&(e[n]={update:e[n]})}function bt(t,e,n){function i(r){var i=Cr[r]||kr;a[r]=i(t[r],e[r],n,r)}gt(e),yt(e),_t(e);var o,a={};if(e.mixins)for(var s=0,u=e.mixins.length;u>s;s++)t=bt(t,e.mixins[s],n);for(o in t)i(o);for(o in e)r(t,o)||i(o);return a}function wt(t,e,n,r){if("string"==typeof n){var i,o=t[e],a=o[n]||o[i=zn(n)]||o[i.charAt(0).toUpperCase()+i.slice(1)];return a}}function $t(t,e,n){if(n){var i=t.$options.props[e],o=(r(n,e),n[e]);return void 0===o&&(o=xt(t,i,e),yr.shouldConvert=!0,O(o),yr.shouldConvert=!1),o}}function xt(t,e,n){if(!r(e,"default"))return e.type===Boolean?!1:void 0;var i=e["default"];return l(i),"function"==typeof i&&e.type!==Function?i.call(t):i}function Ct(t){var e=t.data,n=void 0;return(n=t.child)&&(n=n._vnode.data)&&(e=kt(n,e)),(n=t.parent)&&(n=n.data)&&(e=kt(e,n)),Ot(e)}function kt(t,e){return{staticClass:At(t.staticClass,e.staticClass),"class":t["class"]?c(t["class"],e["class"]):e["class"]}}function Ot(t){var e=t["class"],n=t.staticClass;return n||e?At(n,Tt(e)):void 0}function At(t,e){return t?e?t+" "+e:t:e||""}function Tt(t){if(!t)return"";if("string"==typeof t)return t;if(Zn(t)){for(var e="",n=0,r=t.length;r>n;n++)t[n]&&(e+=Tt(t[n])+" ");return e.slice(0,-1)}if(l(t)){var i="";for(var o in t)t[o]&&(i+=o+" ");return i.slice(0,-1)}}function Lt(t){return Br(t)?"svg":"math"===t?"math":void 0}function jt(t){if(!Yn)return!0;if(t=t.toLowerCase(),null!=Ur[t])return Ur[t];var e=document.createElement(t);return t.indexOf("-")>-1?Ur[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Ur[t]=/HTMLUnknownElement/.test(e.toString())&&!/^(data|time|rtc|rb)$/.test(t)}function Et(t){if("string"==typeof t){t=document.querySelector(t)}return t}function St(t){t.use=function(t){if(!t.installed){var e=u(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}}}function Mt(t){t.mixin=function(e){t.options=bt(t.options,e)}}function Nt(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=0===n.cid;if(r&&t._Ctor)return t._Ctor;var i=t.name||n.options.name,o=function(t){this._init(t)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=bt(n.options,t),o["super"]=n,o.extend=n.extend,Pn._assetTypes.forEach(function(t){o[t]=n[t]}),i&&(o.options.components[i]=o),r&&(t._Ctor=o),o}}function Dt(t){Pn._assetTypes.forEach(function(e){t[e]=function(n,r){return r?("component"===e&&f(r)&&(r.name=n,r=t.extend(r)),this.options[e+"s"][n]=r,r):this.options[e+"s"][n]}})}function Rt(t){t.config=Pn,t.util=Or,t.set=T,t["delete"]=L,t.nextTick=nr,t.options={directives:Object.create(null),filters:Object.create(null),components:Object.create(null),transitions:Object.create(null)},St(t),Mt(t),Nt(t),Dt(t)}function Bt(t){return void 0===t}function Ut(t){return void 0!==t}function Pt(t,e){return t.key===e.key&&t.tag===e.tag}function It(t,e,n){var r=void 0,i=void 0,o={};for(r=e;n>=r;++r)i=t[r].key,Ut(i)&&(o[i]=r);return o}function Ht(t){function e(t){return z(_.tagName(t).toLowerCase(),{},[],void 0,t)}function n(t,e){function n(){0===--n.listeners&&r(t)}return n.listeners=e,n}function r(t){var e=_.parentNode(t);_.removeChild(e,t)}function o(t,e){var n=void 0,r=void 0,s=t.data;if(Ut(s)&&(Ut(n=s.hook)&&Ut(n=n.init)&&n(t),Ut(n=t.child)))return a(t,e),t.elm;var u=t.children,c=t.tag;if(Ut(c)){if(r=t.elm=t.ns?_.createElementNS(t.ns,c):_.createElement(c),Array.isArray(u))for(n=0;n<u.length;++n)_.appendChild(r,o(u[n],e));else i(t.text)&&_.appendChild(r,_.createTextNode(t.text));Ut(s)&&a(t,e)}else r=t.elm=_.createTextNode(t.text);return t.elm}function a(t,e){for(var n=0;n<g.create.length;++n)g.create[n](Vr,t);h=t.data.hook,Ut(h)&&(h.create&&h.create(Vr,t),h.insert&&e.push(t))}function s(t,e,n,r,i,a){for(;i>=r;++r)_.insertBefore(t,o(n[r],a),e)}function u(t){var e=void 0,n=void 0,r=t.data;if(Ut(r)){for(Ut(e=r.hook)&&Ut(e=e.destroy)&&e(t),e=0;e<g.destroy.length;++e)g.destroy[e](t);if(Ut(e=t.children))for(n=0;n<t.children.length;++n)u(t.children[n]);Ut(e=t.child)&&u(e._vnode)}}function c(t,e,n,r){for(;r>=n;++n){var i=e[n];Ut(i)&&(Ut(i.tag)?(u(i),l(i)):_.removeChild(t,i.elm))}}function l(t,e){if(e||Ut(t.data)){var i=g.remove.length+1;for(e?e.listeners+=i:e=n(t.elm,i),Ut(h=t.child)&&Ut(h=h._vnode)&&Ut(h.data)&&l(h,e),h=0;h<g.remove.length;++h)g.remove[h](t,e);Ut(h=t.data.hook)&&Ut(h=h.remove)?h(t,e):e()}else r(t.elm)}function f(t,e,n,r){for(var i=0,a=0,u=e.length-1,l=e[0],f=e[u],v=n.length-1,p=n[0],h=n[v],m=void 0,g=void 0,y=void 0,b=void 0;u>=i&&v>=a;)Bt(l)?l=e[++i]:Bt(f)?f=e[--u]:Pt(l,p)?(d(l,p,r),l=e[++i],p=n[++a]):Pt(f,h)?(d(f,h,r),f=e[--u],h=n[--v]):Pt(l,h)?(d(l,h,r),_.insertBefore(t,l.elm,_.nextSibling(f.elm)),l=e[++i],h=n[--v]):Pt(f,p)?(d(f,p,r),_.insertBefore(t,f.elm,l.elm),f=e[--u],p=n[++a]):(Bt(m)&&(m=It(e,i,u)),g=m[p.key],Bt(g)?(_.insertBefore(t,o(p,r),l.elm),p=n[++a]):(y=e[g],d(y,p,r),e[g]=void 0,_.insertBefore(t,y.elm,l.elm),p=n[++a]));i>u?(b=Bt(n[v+1])?null:n[v+1].elm,s(t,b,n,a,v,r)):a>v&&c(t,e,i,u)}function d(t,e,n){var r=void 0,i=void 0;if(Ut(r=e.data)&&Ut(i=r.hook)&&Ut(r=i.prepatch)&&r(t,e),!Ut(r=e.data)||!r.pre){var a=e.elm=t.elm,u=t.children,l=e.children;if(t!==e){if(!Pt(t,e)){var d=_.parentNode(t.elm);return a=o(e,n),_.insertBefore(d,a,t.elm),void c(d,[t],0,0)}if(Ut(e.data)){for(r=0;r<g.update.length;++r)g.update[r](t,e);r=e.data.hook,Ut(r)&&Ut(r=r.update)&&r(t,e)}Bt(e.text)?Ut(u)&&Ut(l)?u!==l&&f(a,u,l,n):Ut(l)?(Ut(t.text)&&_.setTextContent(a,""),s(a,null,l,0,l.length-1,n)):Ut(u)?c(a,u,0,u.length-1):Ut(t.text)&&_.setTextContent(a,""):t.text!==e.text&&_.setTextContent(a,e.text),Ut(i)&&Ut(r=i.postpatch)&&r(t,e)}}}function v(t){for(h=0;h<t.length;++h)t[h].data.hook.insert(t[h])}function p(t,e,n){e.elm=t;var r=e.tag,i=e.data,o=e.children;if(Ut(i)&&(Ut(h=i.hook)&&Ut(h=h.init)&&h(e),Ut(h=e.child)))return a(e,n),!0;if(Ut(r)){if(Ut(o))for(var s=t.childNodes,u=0;u<o.length;u++){var c=p(s[u],o[u],n);if(!c)return!1}Ut(i)&&a(e,n)}return!0}var h=void 0,m=void 0,g={},y=t.modules,_=t.nodeOps;for(h=0;h<zr.length;++h)for(g[zr[h]]=[],m=0;m<y.length;++m)void 0!==y[m][zr[h]]&&g[zr[h]].push(y[m][zr[h]]);return function(t,n){var r,i,a=[];if(t)if(Pt(t,n))d(t,n,a);else{if(Bt(t.tag)){if(t.hasAttribute("server-rendered")&&(t.removeAttribute("server-rendered"),p(t,n,a)))return v(a),t;t=e(t)}r=t.elm,i=_.parentNode(r),o(n,a),null!==i&&(_.insertBefore(i,n.elm,_.nextSibling(r)),c(i,[t],0,0))}else o(n,a);return v(a),n.elm}}function Vt(t){return document.createElement(t)}function zt(t,e){return document.createElementNS(Sr[t],e)}function Ft(t){return document.createTextNode(t)}function qt(t,e,n){t.insertBefore(e,n)}function Jt(t,e){t.removeChild(e)}function Wt(t,e){t.appendChild(e)}function Zt(t){return t.parentElement}function Gt(t){return t.nextSibling}function Kt(t){return t.tagName}function Yt(t,e){t.textContent=e}function Qt(t){t.target.composing=!0}function Xt(t){t.target.composing=!1,te(t.target)}function te(t){var e=document.createEvent("HTMLEvents");e.initEvent("input",!0,!0),t.dispatchEvent(e)}function ee(t,e){Ir&&t.namespaceURI!==Jr?t.className=e:t.setAttribute("class",e)}function ne(t,e){if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+ie(t)+" ";n.indexOf(" "+e+" ")<0&&ee(t,(n+e).trim())}}function re(t,e){if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+ie(t)+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");ee(t,n.trim())}t.className||t.removeAttribute("class")}function ie(t){var e=t.className;return"object"==typeof e&&(e=e.baseVal||""),e}function oe(t){ei(function(){ei(t)})}function ae(t){var e=t.elm;e._leaveCb&&(e._leaveCb.cancelled=!0,e._leaveCb());var n=t.data.transition;if(n&&(t.context.$root._mounted||n.appear)){var r=ue(n.definition,t.context),i=r.enterClass,o=r.enterActiveClass,a=r.beforeEnter,s=r.enter,u=r.afterEnter,c=r.enterCancelled,l=s&&s.length>1,f=e._enterCb=he(function(){o&&le(e,o),f.cancelled?c&&c(e):u&&u(e),e._enterCb=null});a&&a(e),i&&(ce(e,i),oe(function(){le(e,i)})),o&&oe(function(){ce(e,o),l||fe(e,f)}),s&&s(e,f),o||l||f()}}function se(t,e){var n=t.elm;n._enterCb&&(n._enterCb.cancelled=!0,n._enterCb());var r=t.data.transition;if(!r)return e();var i=ue(r.definition,t.context),o=i.leaveClass,a=i.leaveActiveClass,s=i.beforeLeave,u=i.leave,c=i.afterLeave,l=i.leaveCancelled,f=u&&u.length>1,d=n._leaveCb=he(function(){a&&le(n,a),d.cancelled?l&&l(n):(e(),c&&c(n)),n._leaveCb=null});s&&s(n),o&&(ce(n,o),oe(function(){le(n,o)})),a&&oe(function(){ce(n,a),f||fe(n,d)}),u&&u(n,d),a||f||d()}function ue(t,e){var n=t&&"string"==typeof t?wt(e.$options,"transitions",t)||t:t;return n===!0&&(n="v"),"string"==typeof n?ni(n):n}function ce(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),ne(t,e)}function le(t,e){n(t._transitionClasses,e),re(t,e)}function fe(t,e){var n=de(t),r=n.type,i=n.timeout,o=n.propCount;if(!r)return e();var a=r===Wr?Kr:Qr,s=0,u=function(){t.removeEventListener(a,c),e()},c=function(){++s>=o&&u()};setTimeout(function(){o>s&&u()},i),t.addEventListener(a,c)}function de(t){var e=window.getComputedStyle(t),n=e[Gr+"Delay"].split(", "),r=e[Gr+"Duration"].split(", "),i=e[Yr+"Delay"].split(", "),o=e[Yr+"Duration"].split(", "),a=ve(n,r),s=ve(i,o),u=Math.max(a,s),c=u>0?a>s?Wr:Zr:null,l=c?c===Wr?r.length:o.length:0;return{type:c,timeout:u,propCount:l}}function ve(t,e){return Math.max.apply(null,e.map(function(e,n){return pe(e)+pe(t[n])}))}function pe(t){return 1e3*Number(t.slice(0,-1))}function he(t){var e=!1;return function(){e||(e=!0,t())}}function me(t){return t.parent&&t.parent.data.transition||t.data.show}function ge(t){var e=t.parent;return e&&null!=e.data.transition?e.data.transition:t.data.transition}function ye(t,e,n,r){var i=e.data.directives;if(i)for(var o=0;o<i.length;o++){var a=i[o],s=wt(e.context.$options,"directives",a.name,!0),u=s&&s[n];if(u){if(r){var c=t.data.directives[o].value;if(c===a.value)continue}u(e.elm,a.value,a.modifiers,e,t)}}}function _e(t,e){if(t.data.attrs||e.data.attrs){var n=void 0,r=void 0,i=void 0,o=e.elm,a=t.data.attrs||{},s=e.data.attrs||{};for(n in s)r=s[n],i=a[n],i!==r&&be(o,n,r);for(n in a)null==s[n]&&(Er(n)?o.removeAttributeNS(jr,n):o.removeAttribute(n))}}function be(t,e,n){Lr(e)?null==n?t.removeAttribute(e):t.setAttribute(e,e):Tr(e)?t.setAttribute(e,null==n?"false":"true"):Er(e)?t.setAttributeNS(jr,e,n):t.setAttribute(e,n)}function we(t,e){var n=e.elm,r=e.data;if(r.staticClass||r["class"]){var i=Ct(e),o=n._transitionClasses;o&&(i=At(i,Tt(o))),i!==n._prevClass&&(ee(n,i),n._prevClass=i)}}function $e(t,e){if(t.data.on||e.data.on){var n=e.data.on||{},r=t.data.on||{};q(n,r,function(t,n,r){e.elm.addEventListener(t,n,r)})}}function xe(t,e){if(t.data.props||e.data.props){var n=void 0,r=void 0,i=void 0,o=e.elm,a=t.data.props||{},s=e.data.props||{};for(n in a)null==s[n]&&(o[n]=void 0);for(n in s)r=s[n],i=a[n],i!==r&&("value"===n?o._value!==r&&(o.value=o._value=r):o[n]=r)}}function Ce(t,e){if(t.data.style||e.data.style){var n=void 0,r=void 0,i=e.elm,o=t.data.style||{},a=e.data.style||{};Zn(a)&&(a=e.data.style=ke(a));for(r in o)a[r]||(i.style[pi(r)]="");for(r in a)n=a[r],n!==o[r]&&(i.style[pi(r)]=n)}}function ke(t){for(var e=t[0]||{},n=1;n<t.length;n++)t[n]&&c(e,t[n]);return e}function Oe(t){return yi.innerHTML=t,yi.textContent}function Ae(t){var e=_i.source+"(?:\\s*("+Te(t)+")\\s*(?:"+$i.join("|")+"))?";return new RegExp("^\\s*"+e)}function Te(t){return wi.map(function(t){return"(?:"+t.source+")"}).join("|")}function Le(t,e){function n(t){var e=t.match(ki);if(e){var n={tagName:e[1],attrs:[]};t=t.slice(e[0].length);for(var r,i;!(r=t.match(Oi))&&(i=t.match(a));)t=t.slice(i[0].length),n.attrs.push(i);if(r)return n.unarySlash=r[1],n.rest=t.slice(r[0].length),n}}function r(t){var n=t.tagName,r=t.unarySlash;s&&("p"===d&&Rr(n)&&i("",d),Dr(n)&&d===n&&i("",n));var a=u(n)||"html"===n&&"head"===d||!!r,c=t.attrs.map(function(t){return Li&&-1===t[0].indexOf('""')&&(""===t[3]&&delete t[3],""===t[4]&&delete t[4],""===t[5]&&delete t[5]),{name:t[1],value:Oe(t[3]||t[4]||t[5]||"")}});a||(o.push({tag:n,attrs:c}),d=n,r=""),e.start&&e.start(n,c,a,r)}function i(t,n){var r;if(n){var i=n.toLowerCase();for(r=o.length-1;r>=0&&o[r].tag.toLowerCase()!==i;r--);}else r=0;if(r>=0){for(var a=o.length-1;a>=r;a--)e.end&&e.end(o[a].tag,o[a].attrs,a>r||!t);o.length=r,d=r&&o[r-1].tag}else"br"===n.toLowerCase()?e.start&&e.start(n,[],!0,""):"p"===n.toLowerCase()&&(e.start&&e.start(n,[],!1,"",!0),e.end&&e.end(n,[]))}for(var o=[],a=Ae(e),s=e.expectHTML,u=e.isUnaryTag||function(){return!1},c=void 0,l=void 0,f=void 0,d=void 0;t;){if(c=t,d&&ji(d)){var v=d.toLowerCase(),p=Ei[v]||(Ei[v]=new RegExp("([\\s\\S]*?)</"+v+"[^>]*>","i"));t=t.replace(p,function(t,n){return"script"!==v&&"style"!==v&&"noscript"!==v&&(n=n.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)\]\]>/g,"$1")),e.chars&&e.chars(n),""}),i("</"+v+">",v)}else{var h=t.indexOf("<");if(0===h){if(/^<!--/.test(t)){var m=t.indexOf("-->");if(m>=0){t=t.substring(m+3),l="";continue}}if(/^<!\[/.test(t)){var g=t.indexOf("]>");if(g>=0){t=t.substring(g+2),l="";continue}}var y=t.match(Ti);if(y){e.doctype&&e.doctype(y[0]),t=t.substring(y[0].length),l="";continue}var _=t.match(Ai);if(_){t=t.substring(_[0].length),_[0].replace(Ai,i),l="/"+_[1].toLowerCase();continue}var b=n(t);if(b){t=b.rest,r(b),l=b.tagName.toLowerCase();continue}}var w;h>=0?(w=t.substring(0,h),t=t.substring(h)):(w=t,t="");var $=n(t);$?f=$.tagName:($=t.match(Ai),f=$?"/"+$[1]:""),e.chars&&e.chars(w,l,f),l=""}if(t===c)throw new Error("Error parsing template:\n\n"+t)}e.partialMarkup||i()}function je(t){if(!Si.test(t))return null;for(var e,n,r=[],i=Si.lastIndex=0;e=Si.exec(t);){n=e.index,n>i&&r.push(JSON.stringify(t.slice(i,n)));var o=e[1].trim();r.push("__toString__("+o+")"),i=n+e[0].length}return i<t.length&&r.push(JSON.stringify(t.slice(i))),r.join("+")}function Ee(t,e,n){(t.props||(t.props=[])).push({name:e,value:n})}function Se(t,e,n){(t.attrs||(t.attrs=[])).push({name:e,value:n})}function Me(t,e,n){(t.staticAttrs||(t.staticAttrs=[])).push({name:e,value:n})}function Ne(t,e,n,r,i){(t.directives||(t.directives=[])).push({name:e,value:n,arg:r,modifiers:i})}function De(t,e,n){var r=t.hooks||(t.hooks={}),i=r[e];i?i.push(n):r[e]=[n]}function Re(t,e,n,r){var i=t.events||(t.events={});r&&r.capture&&(delete r.capture,e="!"+e);var o={value:n,modifiers:r},a=i[e];Zn(a)?a.push(o):a?i[e]=[a,o]:i[e]=o}function Be(t,e,n){var r=n!==!1&&Ue(t,e);return r||""===r?JSON.stringify(r):Ue(t,":"+e)||Ue(t,"v-bind:"+e)}function Ue(t,e){var n=void 0;if(null!=(n=t.attrsMap[e])){t.attrsMap[e]=null;for(var r=t.attrsList,i=0,o=r.length;o>i;i++)if(r[i].name===e){r.splice(i,1);break}}return n}function Pe(t,e){Vi=e.warn||zi,Fi=e.getTagNamespace||function(){return null},qi=e.mustUseProp||function(){return!1};var n=[],r=void 0,i=void 0,o=!1;return Le(t,{expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,start:function(t,e,a){Ii.test(t)&&(t=qn(t)),t=t.toLowerCase();var s={tag:t,attrsList:e,attrsMap:tn(e),parent:i,children:[]},u=void 0;((u=i&&i.ns)||(u=Fi(t)))&&(s.ns=u),o||(Ie(s),s.pre&&(o=!0)),o?He(s):(Ve(s),ze(s),qe(s),s.plain=!e.length,Je(s),We(s),Ze(s),Ge(s),Ke(s),Ye(s),Qe(s)),r||(r=s),i&&(s["else"]?Fe(s,i):(i.children.push(s),s.parent=i)),a||(i=s,n.push(s))},end:function(t){var e=n[n.length-1],r=e.children[e.children.length-1];r&&" "===r.text&&e.children.pop(),n.length-=1,i=n[n.length-1],e.pre&&(o=!1)},chars:function(t){if(i&&(t="pre"===i.tag||t.trim()?Hi(t):e.preserveWhitespace&&i.children.length?" ":null)){var n=void 0;!o&&" "!==t&&(n=je(t))?i.children.push({expression:n}):i.children.push({text:t})}}}),r}function Ie(t){null!=Ue(t,"v-pre")&&(t.pre=!0)}function He(t){var e=t.attrsList.length;if(e){t.attrs=new Array(e);for(var n=0;e>n;n++)t.attrs[n]={name:t.attrsList[n].name,value:JSON.stringify(t.attrsList[n].value)}}}function Ve(t){var e=void 0;if(e=Ue(t,"v-for")){var n=e.match(Ui);if(!n)return;t["for"]=n[2].trim();var r=n[1].trim(),i=r.match(Pi);i?(t.iterator=i[1].trim(),t.alias=i[2].trim()):t.alias=r,(e=Ue(t,"track-by"))&&(t.key="$index"===e?e:t.alias+'["'+e+'"]')}}function ze(t){var e=Ue(t,"v-if");e&&(t["if"]=e),null!=Ue(t,"v-else")&&(t["else"]=!0)}function Fe(t,e){var n=en(e.children);n&&(n["if"]||n.attrsMap["v-show"])&&(n["if"]?n.elseBlock=t:(Ne(t,"show","!("+n.attrsMap["v-show"]+")"),t.transition=n.transition,t.show=!0,e.children.push(t)))}function qe(t){var e=Ue(t,"v-once");null!=e&&(t.once=!0)}function Je(t){"render"===t.tag&&(t.render=!0,t.renderMethod=t.attrsMap.method,t.renderArgs=t.attrsMap[":args"]||t.attrsMap["v-bind:args"])}function We(t){if("slot"===t.tag)t.slotName=Be(t,"name");else{var e=Be(t,"slot");e&&(t.slotTarget=e)}}function Ze(t){"component"===t.tag&&(t.component=Be(t,"is"))}function Ge(t){var e=Ue(t,"class");t.staticClass=je(e)||JSON.stringify(e);var n=Be(t,"class",!1);n&&(t.classBinding=n)}function Ke(t){var e=Be(t,"style",!1);e&&(t.styleBinding=e)}function Ye(t){var e=Be(t,"transition");'""'===e&&(e=!0),e&&(t.transition=e,t.transitionOnAppear=null!=Be(t,"transition-on-appear"))}function Qe(t){var e=t.attrsList,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0;for(n=0,r=e.length;r>n;n++)if(i=e[n].name,o=e[n].value,Mi.test(i))s=Xe(i),s&&(i=i.replace(Bi,"")),Ni.test(i)?(i=i.replace(Ni,""),qi(i)?Ee(t,i,o):Se(t,i,o)):Di.test(i)?(i=i.replace(Di,""),Re(t,i,o,s)):(i=i.replace(Mi,""),(a=i.match(Ri))&&(a=a[1])&&(i=i.slice(0,-(a.length+1))),Ne(t,i,o,a,s));else{var u=je(o);u?Vi("Interpolation inside attributes has been deprecated. Use v-bind or the colon shorthand instead."):Me(t,i,JSON.stringify(o))}}function Xe(t){var e=t.match(Bi);if(e){var n=function(){var t={};return e.forEach(function(e){t[e.slice(1)]=!0}),{v:t}}();if("object"==typeof n)return n.v}}function tn(t){for(var e={},n=0,r=t.length;r>n;n++)e[t[n].name]=t[n].value;return e}function en(t){for(var e=t.length;e--;)if(t[e].tag)return t[e]}function nn(t,e){Ji=e.isReservedTag||function(){return!1},rn(t),on(t)}function rn(t){if(t["static"]=an(t),t.children)for(var e=0,n=t.children.length;n>e;e++){var r=t.children[e];rn(r),r["static"]||(t["static"]=!1)}}function on(t){if(t.tag&&(t.once||t["static"]))return void(t.staticRoot=!0);if(t.children)for(var e=0,n=t.children.length;n>e;e++)on(t.children[e])}function an(t){return!(!t.text&&!t.pre&&(t.expression||t["if"]||t["for"]||t.tag&&!Ji(t.tag)||In(t.tag)||!t.plain&&!Object.keys(t).every(Wi)))}function sn(t){var e="on:{";for(var n in t)e+='"'+n+'":'+un(t[n])+",";return e.slice(0,-1)+"}"}function un(t){if(t){if(Zn(t))return"["+t.map(un).join(",")+"]";if(t.modifiers){var e="function($event){";for(var n in t.modifiers)e+=Ki[n]||cn(n);var r=Zi.test(t.value)?t.value+"($event)":t.value;return e+r+"}"}return Zi.test(t.value)?t.value:"function($event){"+t.value+"}"}return"function(){}"}function cn(t){var e=Gi[t];return Zn(e)?"if("+e.map(function(t){return"$event.keyCode!=="+t}).join("&&")+")return;":"if($event.keyCode!=="+e+")return;"}function ln(t,e){for(var n=!1,r=t;r;)void 0!==r["for"]&&(n=!0),r=r.parent;var i='__registerRef__("'+e.arg+'", n1.child || n1.elm, '+(n?"true":"false");De(t,"insert",i+")"),De(t,"destroy",i+", true)")}function fn(t,e){to=[],Qi=e.directives||{},Xi=e.isReservedTag||function(){return!1};var n=t?dn(t):'__h__("div")';return{render:"with (this) { return "+n+"}",staticRenderFns:to}}function dn(t){if(t["for"])return hn(t);if(t["if"])return vn(t);if("template"!==t.tag||t.slotTarget){if("render"===t.tag)return wn(t);if("slot"===t.tag)return $n(t);if("component"===t.tag)return xn(t);
|
|
var e=yn(t,!Xi(t.tag)),n="__h__('"+t.tag+"', "+mn(t)+", "+e+", '"+(t.ns||"")+"')";return t.staticRoot?(to.push("with(this){return "+n+"}"),"_staticTrees["+(to.length-1)+"]"):n}return yn(t)}function vn(t){var e=t["if"];return t["if"]=!1,"("+e+") ? "+dn(t)+" : "+pn(t)}function pn(t){return t.elseBlock?dn(t.elseBlock):"null"}function hn(t){var e=t["for"],n=t.alias,r=t.iterator;return t["for"]=!1,"("+e+")&&__renderList__(("+e+"), "+("function("+n+",$index"+(r?","+r:"")+"){")+("return "+dn(t))+"})"}function mn(t){if(t.plain)return"undefined";var e="{";if(t.directives){var n=gn(t);n&&(e+=n+",")}return t.pre&&(e+="pre:true,"),t.key&&(e+="key:"+t.key+","),t.slotTarget&&(e+="slot:"+t.slotTarget+","),t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),t.styleBinding&&(e+="style:"+t.styleBinding+","),t.transition&&(e+="transition:{definition:("+t.transition+"),appear:"+t.transitionOnAppear+"},"),(t.attrsMap["v-show"]||t.show)&&(e+="show:true,"),t.props&&(e+="props:{"+Cn(t.props)+"},"),t.attrs&&(e+="attrs:{"+Cn(t.attrs)+"},"),t.staticAttrs&&(e+="staticAttrs:{"+Cn(t.staticAttrs)+"},"),t.hooks&&(e+="hook:{"+kn(t.hooks)+"},"),t.events&&(e+=sn(t.events)),e.replace(/,$/,"")+"}"}function gn(t){var e=t.directives,n="directives:[",r=!1,i=void 0,o=void 0,a=void 0,s=void 0;for(i=0,o=e.length;o>i;i++){a=e[i],s=!0;var u=Qi[a.name]||Yi[a.name];u&&(s=!!u(t,a)),s&&(r=!0,n+='{name:"'+a.name+'"'+(a.value?",value:("+a.value+")":"")+(a.arg?',arg:"'+a.arg+'"':"")+(a.modifiers?",modifiers:"+JSON.stringify(a.modifiers):"")+"},")}return r?n.slice(0,-1)+"]":void 0}function yn(t,e){if(!t.children.length)return"undefined";var n="["+t.children.map(_n).join(",")+"]";return e?"function(){return "+n+"}":n}function _n(t){return t.tag?dn(t):bn(t)}function bn(t){return t.expression?"("+t.expression+")":JSON.stringify(t.text)}function wn(t){return t.renderMethod+"("+(t.renderArgs||"null")+","+yn(t)+")"}function $n(t){var e=t.slotName||'"default"';return"($slots["+e+"] || "+yn(t)+")"}function xn(t){return"__h__("+t.component+", "+mn(t)+", "+yn(t,!0)+")"}function Cn(t){for(var e="",n=0;n<t.length;n++){var r=t[n];e+='"'+r.name+'":'+r.value+","}return e.slice(0,-1)}function kn(t){var e="";for(var n in t)e+='"'+n+'":function(n1,n2){'+t[n].join(";")+"},";return e.slice(0,-1)}function On(t,e){var n=Pe(t.trim(),e);return nn(n,e),fn(n,e)}function An(t,e){var n=e.value,r=e.modifiers;if("select"===t.tag)null!=t.attrsMap.multiple?Mn(t,n):Sn(t,n);else switch(t.attrsMap.type){case"checkbox":Tn(t,n);break;case"radio":Ln(t,n);break;default:return jn(t,n,r)}}function Tn(t,e){var n=Be(t,"value");Ee(t,"checked","Array.isArray("+e+")"+("?("+e+").indexOf("+n+")>-1")+(":!!("+e+")")),Re(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked;if(Array.isArray($$a)){"+("var $$v="+n+",")+"$$i=$$a.indexOf($$v);if($$c){$$i<0&&$$a.push($$v)}else{$$i>-1&&$$a.splice($$i,1)}"+("}else{"+e+"=$$c}"))}function Ln(t,e){var n=Be(t,"value");Ee(t,"checked","("+e+"=="+n+")"),Re(t,"change",e+"="+n)}function jn(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,u=o?"change":"input",c=!o&&"range"!==r,l="$event.target.value"+(s?".trim()":""),f=a||"number"===r?e+"=Number("+l+")":e+"="+l;return c&&(f="if($event.target.composing)return;"+f),Ee(t,"value","("+e+")"),Re(t,u,f),c?!0:void 0}function En(t,e){for(var n=0;n<t.children.length;n++){var r=t.children[n];"option"===r.tag&&Ee(r,"selected",e(Be(r,"value")))}}function Sn(t,e){Re(t,"change",e+"="+eo+"[0]"),En(t,function(t){return"$("+e+")===("+t+")"})}function Mn(t,e){Re(t,"change",e+"="+eo),En(t,function(t){return"$("+e+").indexOf("+t+")>-1"})}function Nn(t,e){e.value&&Ee(t,"textContent","__toString__("+e.value+")")}function Dn(t,e){e.value&&Ee(t,"innerHTML","__toString__("+e.value+")")}function Rn(t,e){return e=e?c(c({},oo),e):oo,On(t,e)}function Bn(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.preserveWhitespace!==!1,r=n?ro:io;if(r[t])return r[t];var i={},o=Rn(t,{preserveWhitespace:n});i.render=new Function(o.render);var a=o.staticRenderFns.length;if(a){i.staticRenderFns=new Array(a);for(var s=0;a>s;s++)i.staticRenderFns[s]=new Function(o.staticRenderFns[s])}return r[t]=i}function Un(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}var Pn={preserveWhitespace:!0,silent:!1,isReservedTag:function(){return!1},isUnknownElement:function(){return!1},_assetTypes:["component","directive","transition"],_lifecycleHooks:["init","created","beforeMount","mounted","ready","beforeUpdate","updated","beforeDestroy","destroyed"],_maxUpdateCount:100},In=e("slot,component,render,transition",!0),Hn=Object.prototype.hasOwnProperty,Vn=/-(\w)/g,zn=o(function(t){return t.replace(Vn,a)}),Fn=/([a-z\d])([A-Z])/g,qn=o(function(t){return t.replace(Fn,"$1-$2").toLowerCase()}),Jn=Object.prototype.toString,Wn="[object Object]",Zn=Array.isArray,Gn=/[^\w\.]/,Kn="__proto__"in{},Yn="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Qn=Yn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Xn=Yn&&window.navigator.userAgent.toLowerCase(),tr=Xn&&/(iphone|ipad|ipod|ios)/i.test(Xn),er=Xn&&Xn.indexOf("micromessenger")>0,nr=function(){function t(){r=!1;var t=n.slice(0);n=[];for(var e=0;e<t.length;e++)t[e]()}var e,n=[],r=!1;if("undefined"==typeof MutationObserver||er&&tr){var i=Yn?window:"undefined"!=typeof global?global:{};e=i.setImmediate||setTimeout}else{var o=1,a=new MutationObserver(t),s=document.createTextNode(o);a.observe(s,{characterData:!0}),e=function(){o=(o+1)%2,s.data=o}}return function(i,o){var a=o?function(){i.call(o)}:i;n.push(a),r||(r=!0,e(t,0))}}(),rr=void 0;"undefined"!=typeof Set&&Set.toString().match(/native code/)?rr=Set:(rr=function(){this.set=Object.create(null)},rr.prototype.has=function(t){return void 0!==this.set[t]},rr.prototype.add=function(t){this.set[t]=1},rr.prototype.clear=function(){this.set=Object.create(null)});var ir=0;h.target=null,h.prototype.addSub=function(t){this.subs.push(t)},h.prototype.removeSub=function(t){n(this.subs,t)},h.prototype.depend=function(){h.target.addDep(this)},h.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;n>e;e++)t[e].update()};var or,ar=[],sr=[],ur={},cr={},lr=!1,fr=!1,dr=0,vr=void 0;w.prototype.get=function(){this.beforeGet();var t=this.getter.call(this.vm,this.vm);return this.deep&&$(t),this.afterGet(),t},w.prototype.beforeGet=function(){vr=h.target,h.target=this},w.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},w.prototype.afterGet=function(){h.target=vr;for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},w.prototype.update=function(t){this.lazy?this.dirty=!0:this.sync?this.run():(this.shallow=this.queued?t?this.shallow:!1:!!t,this.queued=!0,b(this))},w.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||(l(t)||this.deep)&&!this.shallow){var e=this.value;this.value=t,this.cb.call(this.vm,t,e)}this.queued=this.shallow=!1}},w.prototype.evaluate=function(){var t=h.target;this.value=this.get(),this.dirty=!1,h.target=t},w.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},w.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||this.vm._vForRemoving||n(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.vm=this.cb=this.value=null}};var pr=new rr,hr=Array.prototype,mr=Object.create(hr);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=hr[t];v(mr,t,function(){for(var n=arguments.length,r=new Array(n);n--;)r[n]=arguments[n];var i,o=e.apply(this,r),a=this.__ob__;switch(t){case"push":i=r;break;case"unshift":i=r;break;case"splice":i=r.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o})});var gr=Object.getOwnPropertyNames(mr),yr={shouldConvert:!0};x.prototype.walk=function(t){for(var e in t)this.convert(e,t[e])},x.prototype.observeArray=function(t){for(var e=0,n=t.length;n>e;e++)O(t[e])},x.prototype.convert=function(t,e){A(this.value,t,e)},x.prototype.addVm=function(t){(this.vms||(this.vms=[])).push(t)},x.prototype.removeVm=function(t){n(this.vms,t)};var _r={init:Q,prepatch:X,insert:tt,destroy:et},br=Object.keys(_r),wr={activeInstance:null},$r=0;vt.prototype._init=function(t){this._uid=$r++,this._isVue=!0,this.$options=bt(this.constructor.options,t||{},this),this._renderProxy=this,Z(this),ft(this),K(this,"init"),S(this),K(this,"created"),ut(this)},vt.prototype.$nextTick=function(t){nr(t,this)},H(vt),dt(vt),G(vt),ct(vt);var xr=void 0,Cr=Pn.optionMergeStrategies=Object.create(null);Cr.data=function(t,e,n){return n?t||e?function(){var r="function"==typeof e?e.call(n):e,i="function"==typeof t?t.call(n):void 0;return r?pt(r,i):i}:void 0:e?"function"!=typeof e?t:t?function(){return pt(e.call(this),t.call(this))}:e:t},Cr.el=function(t,e,n){if(n||!e||"function"==typeof e){var r=e||t;return n&&"function"==typeof r?r.call(n):r}},Pn._lifecycleHooks.forEach(function(t){Cr[t]=ht}),Pn._assetTypes.forEach(function(t){Cr[t+"s"]=mt}),Cr.watch=function(t,e){if(!e)return t;if(!t)return e;var n={};c(n,t);for(var r in e){var i=n[r],o=e[r];i&&!Zn(i)&&(i=[i]),n[r]=i?i.concat(o):[o]}return n},Cr.props=Cr.methods=Cr.computed=function(t,e){if(!e)return t;if(!t)return e;var n=Object.create(null);return c(n,t),c(n,e),n};var kr=function(t,e){return void 0===e?t:e},Or=Object.freeze({defineReactive:A,renderString:t,makeMap:e,isBuiltInTag:In,remove:n,hasOwn:r,isPrimitive:i,cached:o,camelize:zn,hyphenate:qn,bind:s,toArray:u,extend:c,isObject:l,isPlainObject:f,isArray:Zn,isReserved:d,def:v,parsePath:p,hasProto:Kn,inBrowser:Yn,devtools:Qn,nextTick:nr,get _Set(){return rr},mergeOptions:bt,resolveAsset:wt,warn:xr,validateProp:$t}),Ar=e("value,selected,checked,muted"),Tr=e("contenteditable,draggable,spellcheck"),Lr=e("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),jr="http://www.w3.org/1999/xlink",Er=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Sr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Mr=e("html,base,head,link,meta,style,title,address,article,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,hr,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template"),Nr=e("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr",!0),Dr=e("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source",!0),Rr=e("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track",!0),Br=e("svg,g,defs,symbol,use,image,text,circle,ellipse,line,path,polygon,polyline,rect",!0),Ur=Object.create(null),Pr=Yn&&window.navigator.userAgent.toLowerCase(),Ir=Pr&&Pr.indexOf("msie 9.0")>0,Hr=Pr&&Pr.indexOf("android")>0;Rt(vt),vt.version="2.0.0-alpha.0";var Vr=z("",{},[]),zr=["create","update","remove","destroy"],Fr=Object.freeze({createElement:Vt,createElementNS:zt,createTextNode:Ft,insertBefore:qt,removeChild:Jt,appendChild:Wt,parentNode:Zt,nextSibling:Gt,tagName:Kt,setTextContent:Yt});Ir&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&te(t)});var qr={bind:function(t){Hr||(t.addEventListener("compositionstart",Qt),t.addEventListener("compositionend",Xt)),Ir&&(t.vmodel=!0)},unbind:function(t){Hr||(t.removeEventListener("compositionstart",Qt),t.removeEventListener("compositionend",Xt))}},Jr=Sr.svg,Wr="transition",Zr="animation",Gr=void 0,Kr=void 0,Yr=void 0,Qr=void 0;if(Yn&&!Ir){var Xr=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,ti=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;Gr=Xr?"WebkitTransition":"transition",Kr=Xr?"webkitTransitionEnd":"transitionend",Yr=ti?"WebkitAnimation":"animation",Qr=ti?"webkitAnimationEnd":"animationend"}var ei=Yn&&window.requestAnimationFrame||setTimeout,ni=o(function(t){return{enterClass:t+"-enter",leaveClass:t+"-leave",enterActiveClass:t+"-enter-active",leaveActiveClass:t+"-leave-active"}}),ri=Kr?{create:function(t,e){me(e)||ae(e)},remove:function(t,e){me(t)?e():se(t,e)}}:{},ii={bind:function(t,e,n,r){var i=ge(r);e&&i&&i.appea&&!Ir&&ae(r),t.style.display=e?"":"none"},update:function(t,e,n,r){var i=ge(r);i&&!Ir?e?(ae(r),t.style.display=""):se(r,function(){t.style.display="none"}):t.style.display=e?"":"none"}},oi={model:qr,show:ii},ai={create:function(t,e){ye(t,e,"bind")},update:function(t,e){ye(t,e,"update",!0)},destroy:function(t){ye(null,t,"unbind")}},si=[ai],ui={create:function(t,e){var n=e.data.staticAttrs;if(n)for(var r in n)!e.elm,be(e.elm,r,n[r]);_e(t,e)},update:_e},ci={create:we,update:we},li={create:$e,update:$e},fi={create:xe,update:xe},di=["Webkit","Moz","ms"],vi=Yn&&document.createElement("div"),pi=o(function(t){if(t=zn(t),"filter"!==t&&t in vi.style)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<di.length;n++){var r=di[n]+e;if(r in vi.style)return r}}),hi={create:Ce,update:Ce},mi=[ui,ci,li,fi,hi,ri];vt.config.isUnknownElement=jt,vt.config.isReservedTag=Mr,vt.options.directives=oi;var gi=si.concat(mi);vt.prototype.__patch__=Yn?Ht({nodeOps:Fr,modules:gi}):function(){},vt.prototype.$mount=function(t){this.$el=t&&Et(t),this._mount()};var yi=document.createElement("div"),_i=/([^\s"'<>\/=]+)/,bi=/=/,wi=[bi],$i=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],xi="[a-zA-Z_][\\w\\-\\.]*",Ci="((?:"+xi+"\\:)?"+xi+")",ki=new RegExp("^<"+Ci),Oi=/^\s*(\/?)>/,Ai=new RegExp("^<\\/"+Ci+"[^>]*>"),Ti=/^<!DOCTYPE [^>]+>/i,Li=!1;"x".replace(/x(.)?/g,function(t,e){Li=""===e});var ji=e("script,style",!0),Ei={},Si=/\{\{((?:.|\\n)+?)\}\}/g,Mi=/^v-|^@|^:/,Ni=/^:|^v-bind:/,Di=/^@|^v-on:/,Ri=/:(.*)$/,Bi=/\.[^\.]+/g,Ui=/(.*)\s+(?:in|of)\s+(.*)/,Pi=/\((.*),(.*)\)/,Ii=/[a-z\d][A-Z]/,Hi=o(Oe),Vi=void 0,zi=function(t){return console.error("[Vue parser]: "+t)},Fi=void 0,qi=void 0,Ji=void 0,Wi=e("tag,attrsList,attrsMap,plain,parent,children,staticAttrs,staticClass"),Zi=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/,Gi={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,"delete":[8,46]},Ki={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:"if($event.target !== $event.currentTarget)return;"},Yi={ref:ln,cloak:function(){}},Qi=void 0,Xi=void 0,to=void 0,eo='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){return "_value" in o ? o._value : o.value})',no={model:An,text:Nn,html:Dn},ro=Object.create(null),io=Object.create(null),oo={expectHTML:!0,directives:no,isReservedTag:Mr,isUnaryTag:Nr,mustUseProp:Ar,getTagNamespace:Lt},ao=o(function(t){return Et(t).innerHTML}),so=vt.prototype.$mount;return vt.prototype.$mount=function(t){t=t&&Et(t);var e=this.$options;if(!e.render){var n=e.template;if(n?"string"==typeof n?"#"===n.charAt(0)&&(n=ao(n)):n.nodeType?n=n.innerHTML:xr("invalid template option:"+n,this):t&&(n=Un(t)),n){var r=Bn(n,{preserveWhitespace:Pn.preserveWhitespace}),i=r.render,o=r.staticRenderFns;e.render=i,e.staticRenderFns=o}}so.call(this,t)},vt.compile=Bn,vt}); |