From 2856544afd58ca90e84fdd5db5efe2df229443aa Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 28 Dec 2016 00:54:34 -0500 Subject: [PATCH] [build] 2.1.8 --- dist/vue.common.js | 90 +++++++++++++++------ dist/vue.js | 90 +++++++++++++++------ dist/vue.min.js | 8 +- dist/vue.runtime.common.js | 69 ++++++++++++---- dist/vue.runtime.js | 69 ++++++++++++---- dist/vue.runtime.min.js | 6 +- packages/vue-server-renderer/build.js | 40 ++++++--- packages/vue-server-renderer/package.json | 2 +- packages/vue-template-compiler/build.js | 40 ++++++--- packages/vue-template-compiler/package.json | 2 +- 10 files changed, 299 insertions(+), 117 deletions(-) diff --git a/dist/vue.common.js b/dist/vue.common.js index 261485be..2fea0f33 100644 --- a/dist/vue.common.js +++ b/dist/vue.common.js @@ -1,5 +1,5 @@ /*! - * Vue.js v2.1.7 + * Vue.js v2.1.8 * (c) 2014-2016 Evan You * Released under the MIT License. */ @@ -82,10 +82,10 @@ function isPrimitive (value) { */ function cached (fn) { var cache = Object.create(null); - return function cachedFn (str) { + return (function cachedFn (str) { var hit = cache[str]; return hit || (cache[str] = fn(str)) - } + }) } /** @@ -1300,7 +1300,7 @@ function assertProp ( } for (var i = 0; i < type.length && !valid; i++) { var assertedType = assertType(value, type[i]); - expectedTypes.push(assertedType.expectedType); + expectedTypes.push(assertedType.expectedType || ''); valid = assertedType.valid; } } @@ -1791,9 +1791,8 @@ Watcher.prototype.teardown = function teardown () { if (this.active) { // remove self from vm's watcher list // this is a somewhat expensive operation so we skip it - // if the vm is being destroyed or is performing a v-for - // re-render (the watcher list is then filtered by v-for). - if (!this.vm._isBeingDestroyed && !this.vm._vForRemoving) { + // if the vm is being destroyed. + if (!this.vm._isBeingDestroyed) { remove$1(this.vm._watchers, this); } var i = this.deps.length; @@ -1933,6 +1932,14 @@ var computedSharedDefinition = { function initComputed (vm, computed) { for (var key in computed) { + /* istanbul ignore if */ + if (process.env.NODE_ENV !== 'production' && key in vm) { + warn( + "existing instance property \"" + key + "\" will be " + + "overwritten by a computed property with the same name.", + vm + ); + } var userDef = computed[key]; if (typeof userDef === 'function') { computedSharedDefinition.get = makeComputedGetter(userDef, vm); @@ -3651,7 +3658,7 @@ Object.defineProperty(Vue$3.prototype, '$isServer', { get: isServerRendering }); -Vue$3.version = '2.1.7'; +Vue$3.version = '2.1.8'; /* */ @@ -4478,6 +4485,8 @@ function createPatchFunction (backend) { } } } + } else if (elm.data !== vnode.text) { + elm.data = vnode.text; } return true } @@ -4489,7 +4498,7 @@ function createPatchFunction (backend) { vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase()) ) } else { - return _toString(vnode.text) === node.data + return node.nodeType === (vnode.isComment ? 8 : 3) } } @@ -5273,8 +5282,10 @@ function enter (vnode, toggleDisplay) { var css = data.css; var type = data.type; var enterClass = data.enterClass; + var enterToClass = data.enterToClass; var enterActiveClass = data.enterActiveClass; var appearClass = data.appearClass; + var appearToClass = data.appearToClass; var appearActiveClass = data.appearActiveClass; var beforeEnter = data.beforeEnter; var enter = data.enter; @@ -5304,6 +5315,7 @@ function enter (vnode, toggleDisplay) { var startClass = isAppear ? appearClass : enterClass; var activeClass = isAppear ? appearActiveClass : enterActiveClass; + var toClass = isAppear ? appearToClass : enterToClass; var beforeEnterHook = isAppear ? (beforeAppear || beforeEnter) : beforeEnter; var enterHook = isAppear ? (typeof appear === 'function' ? appear : enter) : enter; var afterEnterHook = isAppear ? (afterAppear || afterEnter) : afterEnter; @@ -5318,6 +5330,7 @@ function enter (vnode, toggleDisplay) { var cb = el._enterCb = once(function () { if (expectsCSS) { + removeTransitionClass(el, toClass); removeTransitionClass(el, activeClass); } if (cb.cancelled) { @@ -5350,9 +5363,10 @@ function enter (vnode, toggleDisplay) { beforeEnterHook && beforeEnterHook(el); if (expectsCSS) { addTransitionClass(el, startClass); + addTransitionClass(el, activeClass); nextFrame(function () { + addTransitionClass(el, toClass); removeTransitionClass(el, startClass); - addTransitionClass(el, activeClass); if (!cb.cancelled && !userWantsControl) { whenTransitionEnds(el, type, cb); } @@ -5391,6 +5405,7 @@ function leave (vnode, rm) { var css = data.css; var type = data.type; var leaveClass = data.leaveClass; + var leaveToClass = data.leaveToClass; var leaveActiveClass = data.leaveActiveClass; var beforeLeave = data.beforeLeave; var leave = data.leave; @@ -5410,6 +5425,7 @@ function leave (vnode, rm) { el.parentNode._pending[vnode.key] = null; } if (expectsCSS) { + removeTransitionClass(el, leaveToClass); removeTransitionClass(el, leaveActiveClass); } if (cb.cancelled) { @@ -5442,9 +5458,10 @@ function leave (vnode, rm) { beforeLeave && beforeLeave(el); if (expectsCSS) { addTransitionClass(el, leaveClass); + addTransitionClass(el, leaveActiveClass); nextFrame(function () { + addTransitionClass(el, leaveToClass); removeTransitionClass(el, leaveClass); - addTransitionClass(el, leaveActiveClass); if (!cb.cancelled && !userWantsControl) { whenTransitionEnds(el, type, cb); } @@ -5479,6 +5496,9 @@ var autoCssTransition = cached(function (name) { enterClass: (name + "-enter"), leaveClass: (name + "-leave"), appearClass: (name + "-enter"), + enterToClass: (name + "-enter-to"), + leaveToClass: (name + "-leave-to"), + appearToClass: (name + "-enter-to"), enterActiveClass: (name + "-enter-active"), leaveActiveClass: (name + "-leave-active"), appearActiveClass: (name + "-enter-active") @@ -5746,10 +5766,13 @@ var transitionProps = { type: String, enterClass: String, leaveClass: String, + enterToClass: String, + leaveToClass: String, enterActiveClass: String, leaveActiveClass: String, appearClass: String, - appearActiveClass: String + appearActiveClass: String, + appearToClass: String }; // in case the child is also an abstract component, e.g. @@ -5793,6 +5816,10 @@ function hasParentTransition (vnode) { } } +function isSameChild (child, oldChild) { + return oldChild.key === child.key && oldChild.tag === child.tag +} + var Transition = { name: 'transition', props: transitionProps, @@ -5865,11 +5892,10 @@ var Transition = { child.data.show = true; } - if (oldChild && oldChild.data && oldChild.key !== key) { + if (oldChild && oldChild.data && !isSameChild(child, oldChild)) { // replace old child transition data with fresh one // important for dynamic transitions! - var oldData = oldChild.data.transition = extend({}, data); - + var oldData = oldChild && (oldChild.data.transition = extend({}, data)); // handle transition mode if (mode === 'out-in') { // return placeholder node and queue update when leave finishes @@ -6080,6 +6106,15 @@ Vue$3.prototype.$mount = function ( return this._mount(el, hydrating) }; +if (process.env.NODE_ENV !== 'production' && + inBrowser && typeof console !== 'undefined') { + console[console.info ? 'info' : 'log']( + "You are running Vue in development mode.\n" + + "Make sure to turn on production mode when deploying for production.\n" + + "See more tips at https://vuejs.org/guide/deployment.html" + ); +} + // devtools global hook /* istanbul ignore next */ setTimeout(function () { @@ -6090,8 +6125,8 @@ setTimeout(function () { process.env.NODE_ENV !== 'production' && inBrowser && !isEdge && /Chrome\/\d+/.test(window.navigator.userAgent) ) { - console.log( - 'Download the Vue Devtools for a better development experience:\n' + + console[console.info ? 'info' : 'log']( + 'Download the Vue Devtools extension for a better development experience:\n' + 'https://github.com/vuejs/vue-devtools' ); } @@ -7542,6 +7577,8 @@ function bind$2 (el, dir) { }; } +/* */ + var baseDirectives = { bind: bind$2, cloak: noop @@ -7820,23 +7857,25 @@ function genChildren (el, checkSkip) { } } -// determine the normalzation needed for the children array. +// determine the normalization needed for the children array. // 0: no normalization needed // 1: simple normalization needed (possible 1-level deep nested array) -// 2: full nomralization needed +// 2: full normalization needed function getNormalizationType (children) { + var res = 0; for (var i = 0; i < children.length; i++) { var el = children[i]; if (needsNormalization(el) || (el.if && el.ifConditions.some(function (c) { return needsNormalization(c.block); }))) { - return 2 + res = 2; + break } if (maybeComponent(el) || (el.if && el.ifConditions.some(function (c) { return maybeComponent(c.block); }))) { - return 1 + res = 1; } } - return 0 + return res } function needsNormalization (el) { @@ -8141,8 +8180,11 @@ function genCheckboxModel ( var falseValueBinding = getBindingAttr(el, 'false-value') || 'false'; addProp(el, 'checked', "Array.isArray(" + value + ")" + - "?_i(" + value + "," + valueBinding + ")>-1" + - ":_q(" + value + "," + trueValueBinding + ")" + "?_i(" + value + "," + valueBinding + ")>-1" + ( + trueValueBinding === 'true' + ? (":(" + value + ")") + : (":_q(" + value + "," + trueValueBinding + ")") + ) ); addHandler(el, 'change', "var $$a=" + value + "," + diff --git a/dist/vue.js b/dist/vue.js index 2c307725..bf468499 100644 --- a/dist/vue.js +++ b/dist/vue.js @@ -1,5 +1,5 @@ /*! - * Vue.js v2.1.7 + * Vue.js v2.1.8 * (c) 2014-2016 Evan You * Released under the MIT License. */ @@ -86,10 +86,10 @@ function isPrimitive (value) { */ function cached (fn) { var cache = Object.create(null); - return function cachedFn (str) { + return (function cachedFn (str) { var hit = cache[str]; return hit || (cache[str] = fn(str)) - } + }) } /** @@ -1304,7 +1304,7 @@ function assertProp ( } for (var i = 0; i < type.length && !valid; i++) { var assertedType = assertType(value, type[i]); - expectedTypes.push(assertedType.expectedType); + expectedTypes.push(assertedType.expectedType || ''); valid = assertedType.valid; } } @@ -1793,9 +1793,8 @@ Watcher.prototype.teardown = function teardown () { if (this.active) { // remove self from vm's watcher list // this is a somewhat expensive operation so we skip it - // if the vm is being destroyed or is performing a v-for - // re-render (the watcher list is then filtered by v-for). - if (!this.vm._isBeingDestroyed && !this.vm._vForRemoving) { + // if the vm is being destroyed. + if (!this.vm._isBeingDestroyed) { remove$1(this.vm._watchers, this); } var i = this.deps.length; @@ -1933,6 +1932,14 @@ var computedSharedDefinition = { function initComputed (vm, computed) { for (var key in computed) { + /* istanbul ignore if */ + if ("development" !== 'production' && key in vm) { + warn( + "existing instance property \"" + key + "\" will be " + + "overwritten by a computed property with the same name.", + vm + ); + } var userDef = computed[key]; if (typeof userDef === 'function') { computedSharedDefinition.get = makeComputedGetter(userDef, vm); @@ -3649,7 +3656,7 @@ Object.defineProperty(Vue$3.prototype, '$isServer', { get: isServerRendering }); -Vue$3.version = '2.1.7'; +Vue$3.version = '2.1.8'; /* */ @@ -4476,6 +4483,8 @@ function createPatchFunction (backend) { } } } + } else if (elm.data !== vnode.text) { + elm.data = vnode.text; } return true } @@ -4487,7 +4496,7 @@ function createPatchFunction (backend) { vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase()) ) } else { - return _toString(vnode.text) === node.data + return node.nodeType === (vnode.isComment ? 8 : 3) } } @@ -5271,8 +5280,10 @@ function enter (vnode, toggleDisplay) { var css = data.css; var type = data.type; var enterClass = data.enterClass; + var enterToClass = data.enterToClass; var enterActiveClass = data.enterActiveClass; var appearClass = data.appearClass; + var appearToClass = data.appearToClass; var appearActiveClass = data.appearActiveClass; var beforeEnter = data.beforeEnter; var enter = data.enter; @@ -5302,6 +5313,7 @@ function enter (vnode, toggleDisplay) { var startClass = isAppear ? appearClass : enterClass; var activeClass = isAppear ? appearActiveClass : enterActiveClass; + var toClass = isAppear ? appearToClass : enterToClass; var beforeEnterHook = isAppear ? (beforeAppear || beforeEnter) : beforeEnter; var enterHook = isAppear ? (typeof appear === 'function' ? appear : enter) : enter; var afterEnterHook = isAppear ? (afterAppear || afterEnter) : afterEnter; @@ -5316,6 +5328,7 @@ function enter (vnode, toggleDisplay) { var cb = el._enterCb = once(function () { if (expectsCSS) { + removeTransitionClass(el, toClass); removeTransitionClass(el, activeClass); } if (cb.cancelled) { @@ -5348,9 +5361,10 @@ function enter (vnode, toggleDisplay) { beforeEnterHook && beforeEnterHook(el); if (expectsCSS) { addTransitionClass(el, startClass); + addTransitionClass(el, activeClass); nextFrame(function () { + addTransitionClass(el, toClass); removeTransitionClass(el, startClass); - addTransitionClass(el, activeClass); if (!cb.cancelled && !userWantsControl) { whenTransitionEnds(el, type, cb); } @@ -5389,6 +5403,7 @@ function leave (vnode, rm) { var css = data.css; var type = data.type; var leaveClass = data.leaveClass; + var leaveToClass = data.leaveToClass; var leaveActiveClass = data.leaveActiveClass; var beforeLeave = data.beforeLeave; var leave = data.leave; @@ -5408,6 +5423,7 @@ function leave (vnode, rm) { el.parentNode._pending[vnode.key] = null; } if (expectsCSS) { + removeTransitionClass(el, leaveToClass); removeTransitionClass(el, leaveActiveClass); } if (cb.cancelled) { @@ -5440,9 +5456,10 @@ function leave (vnode, rm) { beforeLeave && beforeLeave(el); if (expectsCSS) { addTransitionClass(el, leaveClass); + addTransitionClass(el, leaveActiveClass); nextFrame(function () { + addTransitionClass(el, leaveToClass); removeTransitionClass(el, leaveClass); - addTransitionClass(el, leaveActiveClass); if (!cb.cancelled && !userWantsControl) { whenTransitionEnds(el, type, cb); } @@ -5477,6 +5494,9 @@ var autoCssTransition = cached(function (name) { enterClass: (name + "-enter"), leaveClass: (name + "-leave"), appearClass: (name + "-enter"), + enterToClass: (name + "-enter-to"), + leaveToClass: (name + "-leave-to"), + appearToClass: (name + "-enter-to"), enterActiveClass: (name + "-enter-active"), leaveActiveClass: (name + "-leave-active"), appearActiveClass: (name + "-enter-active") @@ -5744,10 +5764,13 @@ var transitionProps = { type: String, enterClass: String, leaveClass: String, + enterToClass: String, + leaveToClass: String, enterActiveClass: String, leaveActiveClass: String, appearClass: String, - appearActiveClass: String + appearActiveClass: String, + appearToClass: String }; // in case the child is also an abstract component, e.g. @@ -5791,6 +5814,10 @@ function hasParentTransition (vnode) { } } +function isSameChild (child, oldChild) { + return oldChild.key === child.key && oldChild.tag === child.tag +} + var Transition = { name: 'transition', props: transitionProps, @@ -5863,11 +5890,10 @@ var Transition = { child.data.show = true; } - if (oldChild && oldChild.data && oldChild.key !== key) { + if (oldChild && oldChild.data && !isSameChild(child, oldChild)) { // replace old child transition data with fresh one // important for dynamic transitions! - var oldData = oldChild.data.transition = extend({}, data); - + var oldData = oldChild && (oldChild.data.transition = extend({}, data)); // handle transition mode if (mode === 'out-in') { // return placeholder node and queue update when leave finishes @@ -6078,6 +6104,15 @@ Vue$3.prototype.$mount = function ( return this._mount(el, hydrating) }; +if ("development" !== 'production' && + inBrowser && typeof console !== 'undefined') { + console[console.info ? 'info' : 'log']( + "You are running Vue in development mode.\n" + + "Make sure to turn on production mode when deploying for production.\n" + + "See more tips at https://vuejs.org/guide/deployment.html" + ); +} + // devtools global hook /* istanbul ignore next */ setTimeout(function () { @@ -6088,8 +6123,8 @@ setTimeout(function () { "development" !== 'production' && inBrowser && !isEdge && /Chrome\/\d+/.test(window.navigator.userAgent) ) { - console.log( - 'Download the Vue Devtools for a better development experience:\n' + + console[console.info ? 'info' : 'log']( + 'Download the Vue Devtools extension for a better development experience:\n' + 'https://github.com/vuejs/vue-devtools' ); } @@ -7540,6 +7575,8 @@ function bind$2 (el, dir) { }; } +/* */ + var baseDirectives = { bind: bind$2, cloak: noop @@ -7818,23 +7855,25 @@ function genChildren (el, checkSkip) { } } -// determine the normalzation needed for the children array. +// determine the normalization needed for the children array. // 0: no normalization needed // 1: simple normalization needed (possible 1-level deep nested array) -// 2: full nomralization needed +// 2: full normalization needed function getNormalizationType (children) { + var res = 0; for (var i = 0; i < children.length; i++) { var el = children[i]; if (needsNormalization(el) || (el.if && el.ifConditions.some(function (c) { return needsNormalization(c.block); }))) { - return 2 + res = 2; + break } if (maybeComponent(el) || (el.if && el.ifConditions.some(function (c) { return maybeComponent(c.block); }))) { - return 1 + res = 1; } } - return 0 + return res } function needsNormalization (el) { @@ -8139,8 +8178,11 @@ function genCheckboxModel ( var falseValueBinding = getBindingAttr(el, 'false-value') || 'false'; addProp(el, 'checked', "Array.isArray(" + value + ")" + - "?_i(" + value + "," + valueBinding + ")>-1" + - ":_q(" + value + "," + trueValueBinding + ")" + "?_i(" + value + "," + valueBinding + ")>-1" + ( + trueValueBinding === 'true' + ? (":(" + value + ")") + : (":_q(" + value + "," + trueValueBinding + ")") + ) ); addHandler(el, 'change', "var $$a=" + value + "," + diff --git a/dist/vue.min.js b/dist/vue.min.js index 330c8bde..9f146f14 100644 --- a/dist/vue.min.js +++ b/dist/vue.min.js @@ -1,8 +1,8 @@ /*! - * Vue.js v2.1.7 + * Vue.js v2.1.8 * (c) 2014-2016 Evan You * Released under the MIT License. */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";function e(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function t(e){var t=parseFloat(e,10);return t||0===t?t:e}function n(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}function i(e,t){return ti.call(e,t)}function a(e){return"string"==typeof e||"number"==typeof e}function o(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}function s(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function c(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function u(e,t){for(var n in t)e[n]=t[n];return e}function l(e){return null!==e&&"object"==typeof e}function f(e){return si.call(e)===ci}function d(e){for(var t={},n=0;n=0&&Ri[n].id>e.id;)n--;Ri.splice(Math.max(n,Ui)+1,0,e)}else Ri.push(e);Fi||(Fi=!0,xi(B))}}function V(e){Ji.clear(),J(e,Ji)}function J(e,t){var n,r,i=Array.isArray(e);if((i||l(e))&&Object.isExtensible(e)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(i)for(n=e.length;n--;)J(e[n],t);else for(r=Object.keys(e),n=r.length;n--;)J(e[r[n]],t)}}function K(e){e._watchers=[];var t=e.$options;t.props&&q(e,t.props),t.methods&&Y(e,t.methods),t.data?W(e):k(e._data={},!0),t.computed&&Z(e,t.computed),t.watch&&Q(e,t.watch)}function q(e,t){var n=e.$options.propsData||{},r=e.$options._propKeys=Object.keys(t),i=!e.$parent;Ni.shouldConvert=i;for(var a=function(i){var a=r[i];A(e,a,R(a,t,n,e))},o=0;o1?c(n):n;for(var r=c(arguments,1),i=0,a=n.length;i-1:e.test(t)}function We(e){var t={};t.get=function(){return fi},Object.defineProperty(e,"config",t),e.util=Pi,e.set=O,e.delete=S,e.nextTick=xi,e.options=Object.create(null),fi._assetTypes.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,u(e.options.components,ra),ze(e),Ve(e),Je(e),Ke(e)}function Ze(e){for(var t=e.data,n=e,r=e;r.child;)r=r.child._vnode,r.data&&(t=Ge(r.data,t));for(;n=n.parent;)n.data&&(t=Ge(t,n.data));return Ye(t)}function Ge(e,t){return{staticClass:Qe(e.staticClass,t.staticClass),class:e.class?[e.class,t.class]:t.class}}function Ye(e){var t=e.class,n=e.staticClass;return n||t?Qe(n,Xe(t)):""}function Qe(e,t){return e?t?e+" "+t:e:t||""}function Xe(e){var t="";if(!e)return t;if("string"==typeof e)return e;if(Array.isArray(e)){for(var n,r=0,i=e.length;r-1?_a[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:_a[e]=/HTMLUnknownElement/.test(t.toString())}function nt(e){if("string"==typeof e){if(e=document.querySelector(e),!e)return document.createElement("div")}return e}function rt(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&"multiple"in t.data.attrs&&n.setAttribute("multiple","multiple"),n)}function it(e,t){return document.createElementNS(va[e],t)}function at(e){return document.createTextNode(e)}function ot(e){return document.createComment(e)}function st(e,t,n){e.insertBefore(t,n)}function ct(e,t){e.removeChild(t)}function ut(e,t){e.appendChild(t)}function lt(e){return e.parentNode}function ft(e){return e.nextSibling}function dt(e){return e.tagName}function pt(e,t){e.textContent=t}function vt(e,t,n){e.setAttribute(t,n)}function ht(e,t){var n=e.data.ref;if(n){var i=e.context,a=e.child||e.elm,o=i.$refs;t?Array.isArray(o[n])?r(o[n],a):o[n]===a&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])&&o[n].indexOf(a)<0?o[n].push(a):o[n]=[a]:o[n]=a}}function mt(e){return null==e}function gt(e){return null!=e}function yt(e,t){return e.key===t.key&&e.tag===t.tag&&e.isComment===t.isComment&&!e.data==!t.data}function _t(e,t,n){var r,i,a={};for(r=t;r<=n;++r)i=e[r].key,gt(i)&&(a[i]=r);return a}function bt(e){function t(e){return new qi(O.tagName(e).toLowerCase(),{},[],void 0,e)}function r(e,t){function n(){0===--n.listeners&&i(e)}return n.listeners=t,n}function i(e){var t=O.parentNode(e);t&&O.removeChild(t,e)}function o(e,t,n,r,i){if(e.isRootInsert=!i,!s(e,t,n,r)){var a=e.data,o=e.children,c=e.tag;gt(c)?(e.elm=e.ns?O.createElementNS(e.ns,c):O.createElement(c,e),v(e),l(e,o,t),gt(a)&&d(e,t),u(n,e.elm,r)):e.isComment?(e.elm=O.createComment(e.text),u(n,e.elm,r)):(e.elm=O.createTextNode(e.text),u(n,e.elm,r))}}function s(e,t,n,r){var i=e.data;if(gt(i)){var a=gt(e.child)&&i.keepAlive;if(gt(i=i.hook)&>(i=i.init)&&i(e,!1,n,r),gt(e.child))return p(e,t),a&&c(e,t,n,r),!0}}function c(e,t,n,r){for(var i,a=e;a.child;)if(a=a.child._vnode,gt(i=a.data)&>(i=i.transition)){for(i=0;id?(u=mt(n[m+1])?null:n[m+1].elm,h(e,u,n,f,m,r)):f>m&&g(e,t,l,d)}function b(e,t,n,r){if(e!==t){if(t.isStatic&&e.isStatic&&t.key===e.key&&(t.isCloned||t.isOnce))return t.elm=e.elm,void(t.child=e.child);var i,a=t.data,o=gt(a);o&>(i=a.hook)&>(i=i.prepatch)&&i(e,t);var s=t.elm=e.elm,c=e.children,u=t.children;if(o&&f(t)){for(i=0;i-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+e.getAttribute("class")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Ut(e,t){if(t&&t.trim())if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t);else{for(var n=" "+e.getAttribute("class")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");e.setAttribute("class",n.trim())}}function Bt(e){Ja(function(){Ja(e)})}function zt(e,t){(e._transitionClasses||(e._transitionClasses=[])).push(t),Ht(e,t)}function Vt(e,t){e._transitionClasses&&r(e._transitionClasses,t),Ut(e,t)}function Jt(e,t,n){var r=Kt(e,t),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s=i===Fa?Ba:Va,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=o&&u()};setTimeout(function(){c0&&(n=Fa,l=o,f=a.length):t===Ha?u>0&&(n=Ha,l=u,f=c.length):(l=Math.max(o,u),n=l>0?o>u?Fa:Ha:null,f=n?n===Fa?a.length:c.length:0);var d=n===Fa&&Ka.test(r[Ua+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:d}}function qt(e,t){for(;e.length1,T=n._enterCb=Qt(function(){O&&Vt(n,w),T.cancelled?(O&&Vt(n,$),A&&A(n)):k&&k(n),n._enterCb=null});e.data.show||ae(e.data.hook||(e.data.hook={}),"insert",function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.context===e.context&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),C&&C(n,T)},"transition-insert"),x&&x(n),O&&(zt(n,$),Bt(function(){Vt(n,$),zt(n,w),T.cancelled||S||Jt(n,a,T)})),e.data.show&&(t&&t(),C&&C(n,T)),O||S||T()}}}function Gt(e,t){function n(){m.cancelled||(e.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[e.key]=e),u&&u(r),v&&(zt(r,s),Bt(function(){Vt(r,s),zt(r,c),m.cancelled||h||Jt(r,o,m)})),l&&l(r,m),v||h||m())}var r=e.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var i=Yt(e.data.transition);if(!i)return t();if(!r._leaveCb&&1===r.nodeType){var a=i.css,o=i.type,s=i.leaveClass,c=i.leaveActiveClass,u=i.beforeLeave,l=i.leave,f=i.afterLeave,d=i.leaveCancelled,p=i.delayLeave,v=a!==!1&&!gi,h=l&&(l._length||l.length)>1,m=r._leaveCb=Qt(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[e.key]=null),v&&Vt(r,c),m.cancelled?(v&&Vt(r,s),d&&d(r)):(t(),f&&f(r)),r._leaveCb=null});p?p(n):n()}}function Yt(e){if(e){if("object"==typeof e){var t={};return e.css!==!1&&u(t,qa(e.name||"v")),u(t,e),t}return"string"==typeof e?qa(e):void 0}}function Qt(e){var t=!1;return function(){t||(t=!0,e())}}function Xt(e,t){t.data.show||Zt(t)}function en(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var a,o,s=0,c=e.options.length;s-1,o.selected!==a&&(o.selected=a);else if(h(nn(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function tn(e,t){for(var n=0,r=t.length;n',n.innerHTML.indexOf(t)>0}function mn(e){return oo=oo||document.createElement("div"),oo.innerHTML=e,oo.textContent}function gn(e,t){return t&&(e=e.replace(ns,"\n")),e.replace(es,"<").replace(ts,">").replace(rs,"&").replace(is,'"')}function yn(e,t){function n(t){f+=t,e=e.substring(t)}function r(){var t=e.match(yo);if(t){var r={tagName:t[1],attrs:[],start:f};n(t[0].length);for(var i,a;!(i=e.match(_o))&&(a=e.match(ho));)n(a[0].length),r.attrs.push(a);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=f,r}}function i(e){var n=e.tagName,r=e.unarySlash;u&&("p"===s&&lo(n)&&a("",s),uo(n)&&s===n&&a("",n));for(var i=l(n)||"html"===n&&"head"===s||!!r,o=e.attrs.length,f=new Array(o),d=0;d=0&&c[a].tag.toLowerCase()!==o;a--);}else a=0;if(a>=0){for(var u=c.length-1;u>=a;u--)t.end&&t.end(c[u].tag,r,i);c.length=a,s=a&&c[a-1].tag}else"br"===n.toLowerCase()?t.start&&t.start(n,[],!0,r,i):"p"===n.toLowerCase()&&(t.start&&t.start(n,[],!1,r,i),t.end&&t.end(n,r,i))}for(var o,s,c=[],u=t.expectHTML,l=t.isUnaryTag||ui,f=0;e;){if(o=e,s&&Qo(s,t.sfc,c)){var d=s.toLowerCase(),p=Xo[d]||(Xo[d]=new RegExp("([\\s\\S]*?)(]*>)","i")),v=0,h=e.replace(p,function(e,n,r){return v=r.length,"script"!==d&&"style"!==d&&"noscript"!==d&&(n=n.replace(//g,"$1").replace(//g,"$1")),t.chars&&t.chars(n),""});f+=e.length-h.length,e=h,a("",d,f-v,f)}else{var m=e.indexOf("<");if(0===m){if(wo.test(e)){var g=e.indexOf("-->");if(g>=0){n(g+3);continue}}if(xo.test(e)){var y=e.indexOf("]>");if(y>=0){n(y+2);continue}}var _=e.match($o);if(_){n(_[0].length);continue}var b=e.match(bo);if(b){var $=f;n(b[0].length),a(b[0],b[1],$,f);continue}var w=r();if(w){i(w);continue}}var x=void 0,C=void 0,k=void 0;if(m>0){for(C=e.slice(m);!(bo.test(C)||yo.test(C)||wo.test(C)||xo.test(C)||(k=C.indexOf("<",1),k<0));)m+=k,C=e.slice(m);x=e.substring(0,m),n(m)}m<0&&(x=e,e=""),t.chars&&x&&t.chars(x)}if(e===o&&t.chars){t.chars(e);break}}a()}function _n(e){function t(){(o||(o=[])).push(e.slice(v,i).trim()),v=i+1}var n,r,i,a,o,s=!1,c=!1,u=!1,l=!1,f=0,d=0,p=0,v=0;for(i=0;i=0&&(m=e.charAt(h)," "===m);h--);m&&/[\w$]/.test(m)||(l=!0)}}else void 0===a?(v=i+1,a=e.slice(0,i).trim()):t();if(void 0===a?a=e.slice(0,i).trim():0!==v&&t(),o)for(i=0;io&&a.push(JSON.stringify(e.slice(o,i)));var s=_n(r[1].trim());a.push("_s("+s+")"),o=i+r[0].length}return o=ko}function Ln(e){return 34===e||39===e}function Dn(e){var t=1;for(To=So;!Nn();)if(e=jn(),Ln(e))Mn(e);else if(91===e&&t++,93===e&&t--,0===t){Eo=So;break}}function Mn(e){for(var t=e;!Nn()&&(e=jn(),e!==t););}function Pn(e,t){jo=t.warn||wn,No=t.getTagNamespace||ui,Lo=t.mustUseProp||ui,Do=t.isPreTag||ui,Mo=xn(t.modules,"preTransformNode"),Po=xn(t.modules,"transformNode"),Ro=xn(t.modules,"postTransformNode"),Io=t.delimiters;var n,r,i=[],a=t.preserveWhitespace!==!1,o=!1,s=!1;return yn(e,{expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,shouldDecodeNewlines:t.shouldDecodeNewlines,start:function(e,a,c){function u(e){}var l=r&&r.ns||No(e);mi&&"svg"===l&&(a=er(a));var f={type:1,tag:e,attrsList:a,attrsMap:Qn(a),parent:r,children:[]};l&&(f.ns=l),Xn(f)&&!$i()&&(f.forbidden=!0);for(var d=0;d-1:_q("+t+","+a+")"),On(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+o+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+t+"=$$a.concat($$v))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+t+"=$$c}",null,!0)}function Br(e,t,n){var r=n&&n.number,i=Sn(e,"value")||"null";i=r?"_n("+i+")":i,Cn(e,"checked","_q("+t+","+i+")"),On(e,"change",Jr(t,i),null,!0)}function zr(e,t,n){var r=e.attrsMap.type,i=n||{},a=i.lazy,o=i.number,s=i.trim,c=a||mi&&"range"===r?"change":"input",u=!a&&"range"!==r,l="input"===e.tag||"textarea"===e.tag,f=l?"$event.target.value"+(s?".trim()":""):s?"(typeof $event === 'string' ? $event.trim() : $event)":"$event";f=o||"number"===r?"_n("+f+")":f;var d=Jr(t,f);l&&u&&(d="if($event.target.composing)return;"+d),Cn(e,"value",l?"_s("+t+")":"("+t+")"),On(e,c,d,null,!0),(s||o||"number"===r)&&On(e,"blur","$forceUpdate()")}function Vr(e,t,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})"+(null==e.attrsMap.multiple?"[0]":""),a=Jr(t,i);On(e,"change",a,null,!0)}function Jr(e,t){var n=En(e);return null===n.idx?e+"="+t:"var $$exp = "+n.exp+", $$idx = "+n.idx+";if (!Array.isArray($$exp)){"+e+"="+t+"}else{$$exp.splice($$idx, 1, "+t+")}"}function Kr(e,t){t.value&&Cn(e,"textContent","_s("+t.value+")")}function qr(e,t){t.value&&Cn(e,"innerHTML","_s("+t.value+")")}function Wr(e,t){return t=t?u(u({},Ts),t):Ts,Mr(e,t)}function Zr(e,t,n){var r=(t&&t.warn||ki,t&&t.delimiters?String(t.delimiters)+e:e);if(Ss[r])return Ss[r];var i={},a=Wr(e,t);i.render=Gr(a.render);var o=a.staticRenderFns.length;i.staticRenderFns=new Array(o);for(var s=0;s0,yi=hi&&hi.indexOf("edge/")>0,_i=hi&&hi.indexOf("android")>0,bi=hi&&/iphone|ipad|ipod|ios/.test(hi),$i=function(){return void 0===Qr&&(Qr=!vi&&"undefined"!=typeof global&&"server"===global.process.env.VUE_ENV),Qr},wi=vi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,xi=function(){function e(){r=!1;var e=n.slice(0);n.length=0;for(var t=0;t1&&(t[n[0].trim()]=n[1].trim())}}),t}),Na=/^--/,La=/\s*!important$/,Da=function(e,t,n){Na.test(t)?e.style.setProperty(t,n):La.test(n)?e.style.setProperty(t,n.replace(La,""),"important"):e.style[Pa(t)]=n},Ma=["Webkit","Moz","ms"],Pa=o(function(e){if(aa=aa||document.createElement("div"),e=ri(e),"filter"!==e&&e in aa.style)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n\/=]+)/,po=/(?:=)/,vo=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],ho=new RegExp("^\\s*"+fo.source+"(?:\\s*("+po.source+")\\s*(?:"+vo.join("|")+"))?"),mo="[a-zA-Z_][\\w\\-\\.]*",go="((?:"+mo+"\\:)?"+mo+")",yo=new RegExp("^<"+go),_o=/^\s*(\/?)>/,bo=new RegExp("^<\\/"+go+"[^>]*>"),$o=/^]+>/i,wo=/^/g,"$1").replace(//g,"$1")),t.chars&&t.chars(n),""});f+=e.length-h.length,e=h,a("",d,f-v,f)}else{var m=e.indexOf("<");if(0===m){if(Co.test(e)){var g=e.indexOf("-->");if(g>=0){n(g+3);continue}}if(xo.test(e)){var y=e.indexOf("]>");if(y>=0){n(y+2);continue}}var _=e.match(wo);if(_){n(_[0].length);continue}var b=e.match($o);if(b){var $=f;n(b[0].length),a(b[0],b[1],$,f);continue}var w=r();if(w){i(w);continue}}var C=void 0,x=void 0,k=void 0;if(m>0){for(x=e.slice(m);!($o.test(x)||_o.test(x)||Co.test(x)||xo.test(x)||(k=x.indexOf("<",1),k<0));)m+=k,x=e.slice(m);C=e.substring(0,m),n(m)}m<0&&(C=e,e=""),t.chars&&C&&t.chars(C)}if(e===o&&t.chars){t.chars(e);break}}a()}function bn(e){function t(){(o||(o=[])).push(e.slice(v,i).trim()),v=i+1}var n,r,i,a,o,s=!1,c=!1,l=!1,u=!1,f=0,d=0,p=0,v=0;for(i=0;i=0&&(m=e.charAt(h)," "===m);h--);m&&/[\w$]/.test(m)||(u=!0)}}else void 0===a?(v=i+1,a=e.slice(0,i).trim()):t();if(void 0===a?a=e.slice(0,i).trim():0!==v&&t(),o)for(i=0;io&&a.push(JSON.stringify(e.slice(o,i)));var s=bn(r[1].trim());a.push("_s("+s+")"),o=i+r[0].length}return o=Ao}function Dn(e){return 34===e||39===e}function Mn(e){var t=1;for(Eo=To;!Ln();)if(e=Nn(),Dn(e))Pn(e);else if(91===e&&t++,93===e&&t--,0===t){jo=To;break}}function Pn(e){for(var t=e;!Ln()&&(e=Nn(),e!==t););}function Rn(e,t){No=t.warn||Cn,Lo=t.getTagNamespace||ui,Do=t.mustUseProp||ui,Mo=t.isPreTag||ui,Po=xn(t.modules,"preTransformNode"),Ro=xn(t.modules,"transformNode"),Io=xn(t.modules,"postTransformNode"),Fo=t.delimiters;var n,r,i=[],a=t.preserveWhitespace!==!1,o=!1,s=!1;return _n(e,{expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,shouldDecodeNewlines:t.shouldDecodeNewlines,start:function(e,a,c){function l(e){}var u=r&&r.ns||Lo(e);gi&&"svg"===u&&(a=tr(a));var f={type:1,tag:e,attrsList:a,attrsMap:Xn(a),parent:r,children:[]};u&&(f.ns=u),er(f)&&!wi()&&(f.forbidden=!0);for(var d=0;d-1"+("true"===a?":("+t+")":":_q("+t+","+a+")")),Sn(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+o+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+t+"=$$a.concat($$v))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+t+"=$$c}",null,!0)}function zr(e,t,n){var r=n&&n.number,i=Tn(e,"value")||"null";i=r?"_n("+i+")":i,kn(e,"checked","_q("+t+","+i+")"),Sn(e,"change",Kr(t,i),null,!0)}function Vr(e,t,n){var r=e.attrsMap.type,i=n||{},a=i.lazy,o=i.number,s=i.trim,c=a||gi&&"range"===r?"change":"input",l=!a&&"range"!==r,u="input"===e.tag||"textarea"===e.tag,f=u?"$event.target.value"+(s?".trim()":""):s?"(typeof $event === 'string' ? $event.trim() : $event)":"$event";f=o||"number"===r?"_n("+f+")":f;var d=Kr(t,f);u&&l&&(d="if($event.target.composing)return;"+d),kn(e,"value",u?"_s("+t+")":"("+t+")"),Sn(e,c,d,null,!0),(s||o||"number"===r)&&Sn(e,"blur","$forceUpdate()")}function Jr(e,t,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})"+(null==e.attrsMap.multiple?"[0]":""),a=Kr(t,i);Sn(e,"change",a,null,!0)}function Kr(e,t){var n=jn(e);return null===n.idx?e+"="+t:"var $$exp = "+n.exp+", $$idx = "+n.idx+";if (!Array.isArray($$exp)){"+e+"="+t+"}else{$$exp.splice($$idx, 1, "+t+")}"}function qr(e,t){t.value&&kn(e,"textContent","_s("+t.value+")")}function Wr(e,t){t.value&&kn(e,"innerHTML","_s("+t.value+")")}function Zr(e,t){return t=t?l(l({},Es),t):Es,Pr(e,t)}function Gr(e,t,n){var r=(t&&t.warn||Ai,t&&t.delimiters?String(t.delimiters)+e:e);if(Ts[r])return Ts[r];var i={},a=Zr(e,t);i.render=Yr(a.render);var o=a.staticRenderFns.length;i.staticRenderFns=new Array(o);for(var s=0;s0,_i=mi&&mi.indexOf("edge/")>0,bi=mi&&mi.indexOf("android")>0,$i=mi&&/iphone|ipad|ipod|ios/.test(mi),wi=function(){return void 0===Xr&&(Xr=!hi&&"undefined"!=typeof global&&"server"===global.process.env.VUE_ENV),Xr},Ci=hi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,xi=function(){function e(){r=!1;var e=n.slice(0);n.length=0;for(var t=0;t1&&(t[n[0].trim()]=n[1].trim())}}),t}),La=/^--/,Da=/\s*!important$/,Ma=function(e,t,n){La.test(t)?e.style.setProperty(t,n):Da.test(n)?e.style.setProperty(t,n.replace(Da,""),"important"):e.style[Ra(t)]=n},Pa=["Webkit","Moz","ms"],Ra=o(function(e){if(oa=oa||document.createElement("div"),e=ii(e),"filter"!==e&&e in oa.style)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n\/=]+)/,vo=/(?:=)/,ho=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],mo=new RegExp("^\\s*"+po.source+"(?:\\s*("+vo.source+")\\s*(?:"+ho.join("|")+"))?"),go="[a-zA-Z_][\\w\\-\\.]*",yo="((?:"+go+"\\:)?"+go+")",_o=new RegExp("^<"+yo),bo=/^\s*(\/?)>/,$o=new RegExp("^<\\/"+yo+"[^>]*>"),wo=/^]+>/i,Co=/^