diff --git a/.circleci/config.yml b/.circleci/config.yml index ab8973c4acf..9075ab237c9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -93,6 +93,7 @@ workflows: filters: branches: only: + - "2.6" - regression-test requires: - test-cover diff --git a/BACKERS.md b/BACKERS.md index 71b6a7e1183..445c50c4460 100644 --- a/BACKERS.md +++ b/BACKERS.md @@ -21,7 +21,7 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu

- +

Platinum via Patreon

@@ -320,12 +320,12 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu - Wasim Khamlichi -- errorrik +- errorrik - Alex Balashov - Konstantin Levinski - Ernest Sim - Blaise Laflamme -- Dilettant +- Dilettant

Backers via Patreon

@@ -344,10 +344,10 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu - Kirk Lewis - Karol F - Miljan Aleksic -- 叶解 +- 叶解 - Jake Ingman - Barbara Liau -- 4 +- 4 - Jarek Tkaczyk - Niannian Modisette - Ivan Sieder @@ -396,12 +396,12 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu - Jere Sjöroos - Wakana Seki - David Ang -- Dom +- Dom - Ben Hong - David Kaplan - John Cleveland - Jaeyoung Lee -- Amor +- Amor - Tom Ootes - Andy Foster - Joe Cochran @@ -428,10 +428,10 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu - Yusuke Kawabata - Nick Dandakis - JI CAI -- 龙腾道 +- 龙腾道 - Milos Stojanovic - Matkovsky Peter -- shimbaco +- shimbaco - Princeyesuraj Edward - Kenneth Crawford diff --git a/README.md b/README.md index c46728e97fb..07cc7fa9d3b 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu

- +

Platinum Sponsors

diff --git a/benchmarks/ssr/common.js b/benchmarks/ssr/common.js index 688832f6dda..0411ac896dc 100644 --- a/benchmarks/ssr/common.js +++ b/benchmarks/ssr/common.js @@ -1,6 +1,6 @@ 'use strict' -const self = (global || root) +const self = (global || root) // eslint-disable-line self.performance = { now: function () { @@ -35,11 +35,11 @@ module.exports = { } }, // template: '
123{{ item.id }}
', - template: '
', + template: '
', components: { row: { props: ['row'], - template: '{{ Math.random() }}', + template: '{{ Math.random() }}', components: { column: { template: '' + diff --git a/dist/vue.common.js b/dist/vue.common.js index 5569a140379..5666e41d09c 100644 --- a/dist/vue.common.js +++ b/dist/vue.common.js @@ -1927,7 +1927,7 @@ function withMacroTask (fn) { try { return fn.apply(null, arguments) } finally { - useMacroTask = false; + useMacroTask = false; } }) } @@ -11078,7 +11078,3 @@ function getOuterHTML (el) { return container.innerHTML } } - -Vue.compile = compileToFunctions; - -module.exports = Vue; diff --git a/dist/vue.min.js b/dist/vue.min.js index 5ebe4208e1c..caa22de7da4 100644 --- a/dist/vue.min.js +++ b/dist/vue.min.js @@ -3,4 +3,4 @@ * (c) 2014-2019 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";var e=Object.freeze({});function t(e){return null==e}function n(e){return null!=e}function r(e){return!0===e}function i(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function o(e){return null!==e&&"object"==typeof e}var a=Object.prototype.toString;function s(e){return"[object Object]"===a.call(e)}function c(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function l(e){var t=parseFloat(e);return isNaN(t)?e:t}function f(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var h=Object.prototype.hasOwnProperty;function m(e,t){return h.call(e,t)}function y(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var g=/-(\w)/g,_=y(function(e){return e.replace(g,function(e,t){return t?t.toUpperCase():""})}),b=y(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),$=/\B([A-Z])/g,w=y(function(e){return e.replace($,"-$1").toLowerCase()});var C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(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 x(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function k(e,t){for(var n in t)e[n]=t[n];return e}function A(e){for(var t={},n=0;n0,q=z&&z.indexOf("edge/")>0,W=(z&&z.indexOf("android"),z&&/iphone|ipad|ipod|ios/.test(z)||"ios"===V),G=(z&&/chrome\/\d+/.test(z),{}.watch),Z=!1;if(B)try{var X={};Object.defineProperty(X,"passive",{get:function(){Z=!0}}),window.addEventListener("test-passive",null,X)}catch(e){}var Y=function(){return void 0===R&&(R=!B&&!U&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),R},Q=B&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ee(e){return"function"==typeof e&&/native code/.test(e.toString())}var te,ne="undefined"!=typeof Symbol&&ee(Symbol)&&"undefined"!=typeof Reflect&&ee(Reflect.ownKeys);te="undefined"!=typeof Set&&ee(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var re=O,ie=0,oe=function(){this.id=ie++,this.subs=[]};oe.prototype.addSub=function(e){this.subs.push(e)},oe.prototype.removeSub=function(e){v(this.subs,e)},oe.prototype.depend=function(){oe.target&&oe.target.addDep(this)},oe.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(o&&!m(i,"default"))a=!1;else if(""===a||a===w(e)){var c=Me(String,i.type);(c<0||s0&&(it((u=e(u,(a||"")+"_"+c))[0])&&it(f)&&(s[l]=pe(f.text+u[0].text),u.shift()),s.push.apply(s,u)):i(u)?it(f)?s[l]=pe(f.text+u):""!==u&&s.push(pe(u)):it(u)&&it(f)?s[l]=pe(f.text+u.text):(r(o._isVList)&&n(u.tag)&&t(u.key)&&n(a)&&(u.key="__vlist"+a+"_"+c+"__"),s.push(u)));return s}(e):void 0}function it(e){return n(e)&&n(e.text)&&!1===e.isComment}function ot(e,t){return(e.__esModule||ne&&"Module"===e[Symbol.toStringTag])&&(e=e.default),o(e)?t.extend(e):e}function at(e){return e.isComment&&e.asyncFactory}function st(e){if(Array.isArray(e))for(var t=0;tkt&&bt[n].id>e.id;)n--;bt.splice(n+1,0,e)}else bt.push(e);Ct||(Ct=!0,We(At))}}(this)},St.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||o(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){De(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},St.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},St.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},St.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Tt={enumerable:!0,configurable:!0,get:O,set:O};function Nt(e,t,n){Tt.get=function(){return this[t][n]},Tt.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Tt)}function jt(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&ge(!1);var o=function(o){i.push(o);var a=Ee(o,t,n,e);$e(r,o,a),o in e||Nt(e,"_props",o)};for(var a in t)o(a);ge(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?O:C(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;s(t=e._data="function"==typeof t?function(e,t){se();try{return e.call(t,t)}catch(e){return De(e,t,"data()"),{}}finally{ce()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&m(r,o)||(void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&Nt(e,"_data",o))}var a;be(t,!0)}(e):be(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Y();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new St(e,a||O,O,Et)),i in e||It(e,i,o)}}(e,t.computed),t.watch&&t.watch!==G&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===a.call(n)&&e.test(t));var n}function dn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=fn(a.componentOptions);s&&!t(s)&&vn(n,o,r,i)}}}function vn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,v(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=sn++,n._isVue=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=Ne(cn(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&ft(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,i=r&&r.context;t.$slots=pt(n._renderChildren,i),t.$scopedSlots=e,t._c=function(e,n,r,i){return an(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return an(t,e,n,r,i,!0)};var o=r&&r.data;$e(t,"$attrs",o&&o.attrs||e,null,!0),$e(t,"$listeners",n._parentListeners||e,null,!0)}(n),_t(n,"beforeCreate"),function(e){var t=Pt(e.$options.inject,e);t&&(ge(!1),Object.keys(t).forEach(function(n){$e(e,n,t[n])}),ge(!0))}(n),jt(n),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(n),_t(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(un),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=we,e.prototype.$delete=Ce,e.prototype.$watch=function(e,t,n){if(s(t))return Dt(this,e,t,n);(n=n||{}).user=!0;var r=new St(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){De(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(un),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?x(t):t;for(var n=x(arguments,1),r=0,i=t.length;rparseInt(this.max)&&vn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return D}};Object.defineProperty(e,"config",t),e.util={warn:re,extend:k,mergeOptions:Ne,defineReactive:$e},e.set=we,e.delete=Ce,e.nextTick=We,e.options=Object.create(null),L.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,k(e.options.components,mn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=x(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ne(this.options,e),this}}(e),ln(e),function(e){L.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&s(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(un),Object.defineProperty(un.prototype,"$isServer",{get:Y}),Object.defineProperty(un.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(un,"FunctionalRenderContext",{value:Zt}),un.version="2.5.22";var yn=f("style,class"),gn=f("input,textarea,option,select,progress"),_n=function(e,t,n){return"value"===n&&gn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},bn=f("contenteditable,draggable,spellcheck"),$n=f("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"),wn="http://www.w3.org/1999/xlink",Cn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},xn=function(e){return Cn(e)?e.slice(6,e.length):""},kn=function(e){return null==e||!1===e};function An(e){for(var t=e.data,r=e,i=e;n(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=On(i.data,t));for(;n(r=r.parent);)r&&r.data&&(t=On(t,r.data));return function(e,t){if(n(e)||n(t))return Sn(e,Tn(t));return""}(t.staticClass,t.class)}function On(e,t){return{staticClass:Sn(e.staticClass,t.staticClass),class:n(e.class)?[e.class,t.class]:t.class}}function Sn(e,t){return e?t?e+" "+t:e:t||""}function Tn(e){return Array.isArray(e)?function(e){for(var t,r="",i=0,o=e.length;i-1?er(e,t,n):$n(t)?kn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):bn(t)?e.setAttribute(t,kn(n)||"false"===n?"false":"true"):Cn(t)?kn(n)?e.removeAttributeNS(wn,xn(t)):e.setAttributeNS(wn,t,n):er(e,t,n)}function er(e,t,n){if(kn(n))e.removeAttribute(t);else{if(K&&!J&&("TEXTAREA"===e.tagName||"INPUT"===e.tagName)&&"placeholder"===t&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var tr={create:Yn,update:Yn};function nr(e,r){var i=r.elm,o=r.data,a=e.data;if(!(t(o.staticClass)&&t(o.class)&&(t(a)||t(a.staticClass)&&t(a.class)))){var s=An(r),c=i._transitionClasses;n(c)&&(s=Sn(s,Tn(c))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var rr,ir,or,ar,sr,cr,ur={create:nr,update:nr},lr=/[\w).+\-_$\]]/;function fr(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r=0&&" "===(h=e.charAt(v));v--);h&&lr.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r-1?{exp:e.slice(0,ar),key:'"'+e.slice(ar+1)+'"'}:{exp:e,key:null};ir=e,ar=sr=cr=0;for(;!kr();)Ar(or=xr())?Sr(or):91===or&&Or(or);return{exp:e.slice(0,sr),key:e.slice(sr+1,cr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function xr(){return ir.charCodeAt(++ar)}function kr(){return ar>=rr}function Ar(e){return 34===e||39===e}function Or(e){var t=1;for(sr=ar;!kr();)if(Ar(e=xr()))Sr(e);else if(91===e&&t++,93===e&&t--,0===t){cr=ar;break}}function Sr(e){for(var t=e;!kr()&&(e=xr())!==t;);}var Tr,Nr="__r",jr="__c";function Er(e,t,n){var r=Tr;return function i(){null!==t.apply(null,arguments)&&Lr(e,i,n,r)}}function Ir(e,t,n,r){var i;t=(i=t)._withTask||(i._withTask=function(){ze=!0;try{return i.apply(null,arguments)}finally{ze=!1}}),Tr.addEventListener(e,t,Z?{capture:n,passive:r}:n)}function Lr(e,t,n,r){(r||Tr).removeEventListener(e,t._withTask||t,n)}function Mr(e,r){if(!t(e.data.on)||!t(r.data.on)){var i=r.data.on||{},o=e.data.on||{};Tr=r.elm,function(e){if(n(e[Nr])){var t=K?"change":"input";e[t]=[].concat(e[Nr],e[t]||[]),delete e[Nr]}n(e[jr])&&(e.change=[].concat(e[jr],e.change||[]),delete e[jr])}(i),et(i,o,Ir,Lr,Er,r.context),Tr=void 0}}var Dr={create:Mr,update:Mr};function Pr(e,r){if(!t(e.data.domProps)||!t(r.data.domProps)){var i,o,a=r.elm,s=e.data.domProps||{},c=r.data.domProps||{};for(i in n(c.__ob__)&&(c=r.data.domProps=k({},c)),s)t(c[i])&&(a[i]="");for(i in c){if(o=c[i],"textContent"===i||"innerHTML"===i){if(r.children&&(r.children.length=0),o===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i){a._value=o;var u=t(o)?"":String(o);Fr(a,u)&&(a.value=u)}else a[i]=o}}}function Fr(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var r=e.value,i=e._vModifiers;if(n(i)){if(i.lazy)return!1;if(i.number)return l(r)!==l(t);if(i.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var Rr={create:Pr,update:Pr},Hr=y(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function Br(e){var t=Ur(e.style);return e.staticStyle?k(e.staticStyle,t):t}function Ur(e){return Array.isArray(e)?A(e):"string"==typeof e?Hr(e):e}var Vr,zr=/^--/,Kr=/\s*!important$/,Jr=function(e,t,n){if(zr.test(t))e.style.setProperty(t,n);else if(Kr.test(n))e.style.setProperty(t,n.replace(Kr,""),"important");else{var r=Wr(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(Xr).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 Qr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Xr).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function ei(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&k(t,ti(e.name||"v")),k(t,e),t}return"string"==typeof e?ti(e):void 0}}var ti=y(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),ni=B&&!J,ri="transition",ii="animation",oi="transition",ai="transitionend",si="animation",ci="animationend";ni&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(oi="WebkitTransition",ai="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(si="WebkitAnimation",ci="webkitAnimationEnd"));var ui=B?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function li(e){ui(function(){ui(e)})}function fi(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Yr(e,t))}function pi(e,t){e._transitionClasses&&v(e._transitionClasses,t),Qr(e,t)}function di(e,t,n){var r=hi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ri?ai:ci,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=ri,l=a,f=o.length):t===ii?u>0&&(n=ii,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?ri:ii:null)?n===ri?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===ri&&vi.test(r[oi+"Property"])}}function mi(e,t){for(;e.length1}function wi(e,t){!0!==t.data.show&&gi(t)}var Ci=function(e){var o,a,s={},c=e.modules,u=e.nodeOps;for(o=0;ov?_(e,t(i[y+1])?null:i[y+1].elm,i,d,y,o):d>y&&$(0,r,f,v)}(f,h,y,o,l):n(y)?(n(e.text)&&u.setTextContent(f,""),_(f,null,y,0,y.length-1,o)):n(h)?$(0,h,0,h.length-1):n(e.text)&&u.setTextContent(f,""):e.text!==i.text&&u.setTextContent(f,i.text),n(v)&&n(d=v.hook)&&n(d=d.postpatch)&&d(e,i)}}}function k(e,t,i){if(r(i)&&n(e.parent))e.parent.data.pendingInsert=t;else for(var o=0;o-1,a.selected!==o&&(a.selected=o);else if(N(Si(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Oi(e,t){return t.every(function(t){return!N(t,e)})}function Si(e){return"_value"in e?e._value:e.value}function Ti(e){e.target.composing=!0}function Ni(e){e.target.composing&&(e.target.composing=!1,ji(e.target,"input"))}function ji(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ei(e){return!e.componentInstance||e.data&&e.data.transition?e:Ei(e.componentInstance._vnode)}var Ii={model:xi,show:{bind:function(e,t,n){var r=t.value,i=(n=Ei(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,gi(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Ei(n)).data&&n.data.transition?(n.data.show=!0,r?gi(n,function(){e.style.display=e.__vOriginalDisplay}):_i(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Li={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Mi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Mi(st(t.children)):e}function Di(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[_(o)]=i[o];return t}function Pi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Fi=function(e){return e.tag||at(e)},Ri=function(e){return"show"===e.name},Hi={name:"transition",props:Li,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Fi)).length){var r=this.mode,o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var a=Mi(o);if(!a)return o;if(this._leaving)return Pi(e,o);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:i(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var c=(a.data||(a.data={})).transition=Di(this),u=this._vnode,l=Mi(u);if(a.data.directives&&a.data.directives.some(Ri)&&(a.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,l)&&!at(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=k({},c);if("out-in"===r)return this._leaving=!0,tt(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Pi(e,o);if("in-out"===r){if(at(a))return u;var p,d=function(){p()};tt(c,"afterEnter",d),tt(c,"enterCancelled",d),tt(f,"delayLeave",function(e){p=e})}}return o}}},Bi=k({tag:String,moveClass:String},Li);function Ui(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Vi(e){e.data.newPos=e.elm.getBoundingClientRect()}function zi(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Bi.mode;var Ki={Transition:Hi,TransitionGroup:{props:Bi,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=mt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Di(this),s=0;s-1?Mn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Mn[e]=/HTMLUnknownElement/.test(t.toString())},k(un.options.directives,Ii),k(un.options.components,Ki),un.prototype.__patch__=B?Ci:O,un.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=fe),_t(e,"beforeMount"),r=function(){e._update(e._render(),n)},new St(e,r,O,{before:function(){e._isMounted&&!e._isDestroyed&&_t(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,_t(e,"mounted")),e}(this,e=e&&B?Pn(e):void 0,t)},B&&setTimeout(function(){D.devtools&&Q&&Q.emit("init",un)},0);var Ji=/\{\{((?:.|\r?\n)+?)\}\}/g,qi=/[-.*+?^${}()|[\]\/\\]/g,Wi=y(function(e){var t=e[0].replace(qi,"\\$&"),n=e[1].replace(qi,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});var Gi={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=$r(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=br(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var Zi,Xi={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=$r(e,"style");n&&(e.staticStyle=JSON.stringify(Hr(n)));var r=br(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},Yi=function(e){return(Zi=Zi||document.createElement("div")).innerHTML=e,Zi.textContent},Qi=f("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),eo=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),to=f("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"),no=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ro="[a-zA-Z_][\\w\\-\\.]*",io="((?:"+ro+"\\:)?"+ro+")",oo=new RegExp("^<"+io),ao=/^\s*(\/?)>/,so=new RegExp("^<\\/"+io+"[^>]*>"),co=/^]+>/i,uo=/^",""":'"',"&":"&"," ":"\n"," ":"\t"},ho=/&(?:lt|gt|quot|amp);/g,mo=/&(?:lt|gt|quot|amp|#10|#9);/g,yo=f("pre,textarea",!0),go=function(e,t){return e&&yo(e)&&"\n"===t[0]};function _o(e,t){var n=t?mo:ho;return e.replace(n,function(e){return vo[e]})}var bo,$o,wo,Co,xo,ko,Ao,Oo,So=/^@|^v-on:/,To=/^v-|^@|^:/,No=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,jo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Eo=/^\(|\)$/g,Io=/:(.*)$/,Lo=/^:|^v-bind:/,Mo=/\.[^.]+/g,Do=y(Yi);function Po(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:function(e){for(var t={},n=0,r=e.length;n]*>)","i")),p=e.replace(f,function(e,n,r){return u=r.length,fo(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),go(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-p.length,e=p,A(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(uo.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v)),C(v+3);continue}}if(lo.test(e)){var h=e.indexOf("]>");if(h>=0){C(h+2);continue}}var m=e.match(co);if(m){C(m[0].length);continue}var y=e.match(so);if(y){var g=c;C(y[0].length),A(y[1],g,c);continue}var _=x();if(_){k(_),go(_.tagName,e)&&C(1);continue}}var b=void 0,$=void 0,w=void 0;if(d>=0){for($=e.slice(d);!(so.test($)||oo.test($)||uo.test($)||lo.test($)||(w=$.indexOf("<",1))<0);)d+=w,$=e.slice(d);b=e.substring(0,d),C(d)}d<0&&(b=e,e=""),t.chars&&b&&t.chars(b)}if(e===n){t.chars&&t.chars(e);break}}function C(t){c+=t,e=e.substring(t)}function x(){var t=e.match(oo);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(C(t[0].length);!(n=e.match(ao))&&(r=e.match(no));)C(r[0].length),i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=c,i}}function k(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&to(n)&&A(r),s(n)&&r===n&&A(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}A()}(e,{warn:bo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,start:function(e,o,u){var l=r&&r.ns||Oo(e);K&&"svg"===l&&(o=function(e){for(var t=[],n=0;nc&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=fr(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),_r(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Cr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Cr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Cr(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=br(e,"value")||"null";hr(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),_r(e,"change",Cr(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Nr:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Cr(t,l);c&&(f="if($event.target.composing)return;"+f),hr(e,"value","("+t+")"),_r(e,u,f,null,!0),(s||a)&&_r(e,"blur","$forceUpdate()")}(e,r,i);else if(!D.isReservedTag(o))return wr(e,r,i),!1;return!0},text:function(e,t){t.value&&hr(e,"textContent","_s("+t.value+")")},html:function(e,t){t.value&&hr(e,"innerHTML","_s("+t.value+")")}},isPreTag:function(e){return"pre"===e},isUnaryTag:Qi,mustUseProp:_n,canBeLeftOpenTag:eo,isReservedTag:In,getTagNamespace:Ln,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(Jo)},Zo=y(function(e){return f("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(e?","+e:""))});function Xo(e,t){e&&(qo=Zo(t.staticKeys||""),Wo=t.isReservedTag||S,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||p(e.tag)||!Wo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(qo)))}(t);if(1===t.type){if(!Wo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function\s*\(/,Qo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ea={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ta={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},na=function(e){return"if("+e+")return null;"},ra={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:na("$event.target !== $event.currentTarget"),ctrl:na("!$event.ctrlKey"),shift:na("!$event.shiftKey"),alt:na("!$event.altKey"),meta:na("!$event.metaKey"),left:na("'button' in $event && $event.button !== 0"),middle:na("'button' in $event && $event.button !== 1"),right:na("'button' in $event && $event.button !== 2")};function ia(e,t){var n=t?"nativeOn:{":"on:{";for(var r in e)n+='"'+r+'":'+oa(r,e[r])+",";return n.slice(0,-1)+"}"}function oa(e,t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map(function(t){return oa(e,t)}).join(",")+"]";var n=Qo.test(t.value),r=Yo.test(t.value);if(t.modifiers){var i="",o="",a=[];for(var s in t.modifiers)if(ra[s])o+=ra[s],ea[s]&&a.push(s);else if("exact"===s){var c=t.modifiers;o+=na(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!('button' in $event)&&"+e.map(aa).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(n?"return "+t.value+"($event)":r?"return ("+t.value+")($event)":t.value)+"}"}return n||r?t.value:"function($event){"+t.value+"}"}function aa(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=ea[e],r=ta[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var sa={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:O},ca=function(e){this.options=e,this.warn=e.warn||dr,this.transforms=vr(e.modules,"transformCode"),this.dataGenFns=vr(e.modules,"genData"),this.directives=k(k({},sa),e.directives);var t=e.isReservedTag||S;this.maybeComponent=function(e){return!(t(e.tag)&&!e.component)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function ua(e,t){var n=new ca(t);return{render:"with(this){return "+(e?la(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function la(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return fa(e,t);if(e.once&&!e.onceProcessed)return pa(e,t);if(e.for&&!e.forProcessed)return function(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||la)(e,t)+"})"}(e,t);if(e.if&&!e.ifProcessed)return da(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=ma(e,t),i="_t("+n+(r?","+r:""),o=e.attrs&&"{"+e.attrs.map(function(e){return _(e.name)+":"+e.value}).join(",")+"}",a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:ma(t,n,!0);return"_c("+e+","+va(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=va(e,t));var i=e.inlineTemplate?null:ma(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o':'
',Ca.innerHTML.indexOf(" ")>0}var Oa=!!B&&Aa(!1),Sa=!!B&&Aa(!0),Ta=y(function(e){var t=Pn(e);return t&&t.innerHTML}),Na=un.prototype.$mount;return un.prototype.$mount=function(e,t){if((e=e&&Pn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Ta(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=ka(r,{shouldDecodeNewlines:Oa,shouldDecodeNewlinesForHref:Sa,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Na.call(this,e,t)},un.compile=ka,un}); \ No newline at end of file +!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";var e=Object.freeze({});function t(e){return null==e}function n(e){return null!=e}function r(e){return!0===e}function i(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function o(e){return null!==e&&"object"==typeof e}var a=Object.prototype.toString;function s(e){return"[object Object]"===a.call(e)}function c(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function l(e){var t=parseFloat(e);return isNaN(t)?e:t}function f(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var h=Object.prototype.hasOwnProperty;function m(e,t){return h.call(e,t)}function y(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var g=/-(\w)/g,_=y(function(e){return e.replace(g,function(e,t){return t?t.toUpperCase():""})}),b=y(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),$=/\B([A-Z])/g,w=y(function(e){return e.replace($,"-$1").toLowerCase()});var C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(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 x(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function k(e,t){for(var n in t)e[n]=t[n];return e}function A(e){for(var t={},n=0;n0,q=z&&z.indexOf("edge/")>0,W=(z&&z.indexOf("android"),z&&/iphone|ipad|ipod|ios/.test(z)||"ios"===V),G=(z&&/chrome\/\d+/.test(z),{}.watch),Z=!1;if(B)try{var X={};Object.defineProperty(X,"passive",{get:function(){Z=!0}}),window.addEventListener("test-passive",null,X)}catch(e){}var Y=function(){return void 0===R&&(R=!B&&!U&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),R},Q=B&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ee(e){return"function"==typeof e&&/native code/.test(e.toString())}var te,ne="undefined"!=typeof Symbol&&ee(Symbol)&&"undefined"!=typeof Reflect&&ee(Reflect.ownKeys);te="undefined"!=typeof Set&&ee(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var re=O,ie=0,oe=function(){this.id=ie++,this.subs=[]};oe.prototype.addSub=function(e){this.subs.push(e)},oe.prototype.removeSub=function(e){v(this.subs,e)},oe.prototype.depend=function(){oe.target&&oe.target.addDep(this)},oe.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(o&&!m(i,"default"))a=!1;else if(""===a||a===w(e)){var c=Me(String,i.type);(c<0||s0&&(it((u=e(u,(a||"")+"_"+c))[0])&&it(f)&&(s[l]=pe(f.text+u[0].text),u.shift()),s.push.apply(s,u)):i(u)?it(f)?s[l]=pe(f.text+u):""!==u&&s.push(pe(u)):it(u)&&it(f)?s[l]=pe(f.text+u.text):(r(o._isVList)&&n(u.tag)&&t(u.key)&&n(a)&&(u.key="__vlist"+a+"_"+c+"__"),s.push(u)));return s}(e):void 0}function it(e){return n(e)&&n(e.text)&&!1===e.isComment}function ot(e,t){return(e.__esModule||ne&&"Module"===e[Symbol.toStringTag])&&(e=e.default),o(e)?t.extend(e):e}function at(e){return e.isComment&&e.asyncFactory}function st(e){if(Array.isArray(e))for(var t=0;tkt&&bt[n].id>e.id;)n--;bt.splice(n+1,0,e)}else bt.push(e);Ct||(Ct=!0,We(At))}}(this)},St.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||o(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){De(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},St.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},St.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},St.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Tt={enumerable:!0,configurable:!0,get:O,set:O};function Nt(e,t,n){Tt.get=function(){return this[t][n]},Tt.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Tt)}function jt(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&ge(!1);var o=function(o){i.push(o);var a=Ee(o,t,n,e);$e(r,o,a),o in e||Nt(e,"_props",o)};for(var a in t)o(a);ge(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?O:C(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;s(t=e._data="function"==typeof t?function(e,t){se();try{return e.call(t,t)}catch(e){return De(e,t,"data()"),{}}finally{ce()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&m(r,o)||(void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&Nt(e,"_data",o))}var a;be(t,!0)}(e):be(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Y();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new St(e,a||O,O,Et)),i in e||It(e,i,o)}}(e,t.computed),t.watch&&t.watch!==G&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===a.call(n)&&e.test(t));var n}function dn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=fn(a.componentOptions);s&&!t(s)&&vn(n,o,r,i)}}}function vn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,v(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=sn++,n._isVue=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=Ne(cn(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&ft(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,i=r&&r.context;t.$slots=pt(n._renderChildren,i),t.$scopedSlots=e,t._c=function(e,n,r,i){return an(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return an(t,e,n,r,i,!0)};var o=r&&r.data;$e(t,"$attrs",o&&o.attrs||e,null,!0),$e(t,"$listeners",n._parentListeners||e,null,!0)}(n),_t(n,"beforeCreate"),function(e){var t=Pt(e.$options.inject,e);t&&(ge(!1),Object.keys(t).forEach(function(n){$e(e,n,t[n])}),ge(!0))}(n),jt(n),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(n),_t(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(un),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=we,e.prototype.$delete=Ce,e.prototype.$watch=function(e,t,n){if(s(t))return Dt(this,e,t,n);(n=n||{}).user=!0;var r=new St(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){De(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(un),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?x(t):t;for(var n=x(arguments,1),r=0,i=t.length;rparseInt(this.max)&&vn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return D}};Object.defineProperty(e,"config",t),e.util={warn:re,extend:k,mergeOptions:Ne,defineReactive:$e},e.set=we,e.delete=Ce,e.nextTick=We,e.options=Object.create(null),L.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,k(e.options.components,mn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=x(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ne(this.options,e),this}}(e),ln(e),function(e){L.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&s(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(un),Object.defineProperty(un.prototype,"$isServer",{get:Y}),Object.defineProperty(un.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(un,"FunctionalRenderContext",{value:Zt}),un.version="2.5.22";var yn=f("style,class"),gn=f("input,textarea,option,select,progress"),_n=function(e,t,n){return"value"===n&&gn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},bn=f("contenteditable,draggable,spellcheck"),$n=f("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"),wn="http://www.w3.org/1999/xlink",Cn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},xn=function(e){return Cn(e)?e.slice(6,e.length):""},kn=function(e){return null==e||!1===e};function An(e){for(var t=e.data,r=e,i=e;n(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=On(i.data,t));for(;n(r=r.parent);)r&&r.data&&(t=On(t,r.data));return function(e,t){if(n(e)||n(t))return Sn(e,Tn(t));return""}(t.staticClass,t.class)}function On(e,t){return{staticClass:Sn(e.staticClass,t.staticClass),class:n(e.class)?[e.class,t.class]:t.class}}function Sn(e,t){return e?t?e+" "+t:e:t||""}function Tn(e){return Array.isArray(e)?function(e){for(var t,r="",i=0,o=e.length;i-1?er(e,t,n):$n(t)?kn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):bn(t)?e.setAttribute(t,kn(n)||"false"===n?"false":"true"):Cn(t)?kn(n)?e.removeAttributeNS(wn,xn(t)):e.setAttributeNS(wn,t,n):er(e,t,n)}function er(e,t,n){if(kn(n))e.removeAttribute(t);else{if(K&&!J&&("TEXTAREA"===e.tagName||"INPUT"===e.tagName)&&"placeholder"===t&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var tr={create:Yn,update:Yn};function nr(e,r){var i=r.elm,o=r.data,a=e.data;if(!(t(o.staticClass)&&t(o.class)&&(t(a)||t(a.staticClass)&&t(a.class)))){var s=An(r),c=i._transitionClasses;n(c)&&(s=Sn(s,Tn(c))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var rr,ir,or,ar,sr,cr,ur={create:nr,update:nr},lr=/[\w).+\-_$\]]/;function fr(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r=0&&" "===(h=e.charAt(v));v--);h&&lr.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r-1?{exp:e.slice(0,ar),key:'"'+e.slice(ar+1)+'"'}:{exp:e,key:null};ir=e,ar=sr=cr=0;for(;!kr();)Ar(or=xr())?Sr(or):91===or&&Or(or);return{exp:e.slice(0,sr),key:e.slice(sr+1,cr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function xr(){return ir.charCodeAt(++ar)}function kr(){return ar>=rr}function Ar(e){return 34===e||39===e}function Or(e){var t=1;for(sr=ar;!kr();)if(Ar(e=xr()))Sr(e);else if(91===e&&t++,93===e&&t--,0===t){cr=ar;break}}function Sr(e){for(var t=e;!kr()&&(e=xr())!==t;);}var Tr,Nr="__r",jr="__c";function Er(e,t,n){var r=Tr;return function i(){null!==t.apply(null,arguments)&&Lr(e,i,n,r)}}function Ir(e,t,n,r){var i;t=(i=t)._withTask||(i._withTask=function(){ze=!0;try{return i.apply(null,arguments)}finally{ze=!1}}),Tr.addEventListener(e,t,Z?{capture:n,passive:r}:n)}function Lr(e,t,n,r){(r||Tr).removeEventListener(e,t._withTask||t,n)}function Mr(e,r){if(!t(e.data.on)||!t(r.data.on)){var i=r.data.on||{},o=e.data.on||{};Tr=r.elm,function(e){if(n(e[Nr])){var t=K?"change":"input";e[t]=[].concat(e[Nr],e[t]||[]),delete e[Nr]}n(e[jr])&&(e.change=[].concat(e[jr],e.change||[]),delete e[jr])}(i),et(i,o,Ir,Lr,Er,r.context),Tr=void 0}}var Dr={create:Mr,update:Mr};function Pr(e,r){if(!t(e.data.domProps)||!t(r.data.domProps)){var i,o,a=r.elm,s=e.data.domProps||{},c=r.data.domProps||{};for(i in n(c.__ob__)&&(c=r.data.domProps=k({},c)),s)t(c[i])&&(a[i]="");for(i in c){if(o=c[i],"textContent"===i||"innerHTML"===i){if(r.children&&(r.children.length=0),o===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i){a._value=o;var u=t(o)?"":String(o);Fr(a,u)&&(a.value=u)}else a[i]=o}}}function Fr(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var r=e.value,i=e._vModifiers;if(n(i)){if(i.lazy)return!1;if(i.number)return l(r)!==l(t);if(i.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var Rr={create:Pr,update:Pr},Hr=y(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function Br(e){var t=Ur(e.style);return e.staticStyle?k(e.staticStyle,t):t}function Ur(e){return Array.isArray(e)?A(e):"string"==typeof e?Hr(e):e}var Vr,zr=/^--/,Kr=/\s*!important$/,Jr=function(e,t,n){if(zr.test(t))e.style.setProperty(t,n);else if(Kr.test(n))e.style.setProperty(t,n.replace(Kr,""),"important");else{var r=Wr(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(Xr).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 Qr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Xr).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function ei(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&k(t,ti(e.name||"v")),k(t,e),t}return"string"==typeof e?ti(e):void 0}}var ti=y(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),ni=B&&!J,ri="transition",ii="animation",oi="transition",ai="transitionend",si="animation",ci="animationend";ni&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(oi="WebkitTransition",ai="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(si="WebkitAnimation",ci="webkitAnimationEnd"));var ui=B?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function li(e){ui(function(){ui(e)})}function fi(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Yr(e,t))}function pi(e,t){e._transitionClasses&&v(e._transitionClasses,t),Qr(e,t)}function di(e,t,n){var r=hi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ri?ai:ci,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=ri,l=a,f=o.length):t===ii?u>0&&(n=ii,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?ri:ii:null)?n===ri?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===ri&&vi.test(r[oi+"Property"])}}function mi(e,t){for(;e.length1}function wi(e,t){!0!==t.data.show&&gi(t)}var Ci=function(e){var o,a,s={},c=e.modules,u=e.nodeOps;for(o=0;ov?_(e,t(i[y+1])?null:i[y+1].elm,i,d,y,o):d>y&&$(0,r,f,v)}(f,h,y,o,l):n(y)?(n(e.text)&&u.setTextContent(f,""),_(f,null,y,0,y.length-1,o)):n(h)?$(0,h,0,h.length-1):n(e.text)&&u.setTextContent(f,""):e.text!==i.text&&u.setTextContent(f,i.text),n(v)&&n(d=v.hook)&&n(d=d.postpatch)&&d(e,i)}}}function k(e,t,i){if(r(i)&&n(e.parent))e.parent.data.pendingInsert=t;else for(var o=0;o-1,a.selected!==o&&(a.selected=o);else if(N(Si(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Oi(e,t){return t.every(function(t){return!N(t,e)})}function Si(e){return"_value"in e?e._value:e.value}function Ti(e){e.target.composing=!0}function Ni(e){e.target.composing&&(e.target.composing=!1,ji(e.target,"input"))}function ji(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ei(e){return!e.componentInstance||e.data&&e.data.transition?e:Ei(e.componentInstance._vnode)}var Ii={model:xi,show:{bind:function(e,t,n){var r=t.value,i=(n=Ei(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,gi(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Ei(n)).data&&n.data.transition?(n.data.show=!0,r?gi(n,function(){e.style.display=e.__vOriginalDisplay}):_i(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Li={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Mi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Mi(st(t.children)):e}function Di(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[_(o)]=i[o];return t}function Pi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Fi=function(e){return e.tag||at(e)},Ri=function(e){return"show"===e.name},Hi={name:"transition",props:Li,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Fi)).length){var r=this.mode,o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var a=Mi(o);if(!a)return o;if(this._leaving)return Pi(e,o);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:i(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var c=(a.data||(a.data={})).transition=Di(this),u=this._vnode,l=Mi(u);if(a.data.directives&&a.data.directives.some(Ri)&&(a.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,l)&&!at(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=k({},c);if("out-in"===r)return this._leaving=!0,tt(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Pi(e,o);if("in-out"===r){if(at(a))return u;var p,d=function(){p()};tt(c,"afterEnter",d),tt(c,"enterCancelled",d),tt(f,"delayLeave",function(e){p=e})}}return o}}},Bi=k({tag:String,moveClass:String},Li);function Ui(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Vi(e){e.data.newPos=e.elm.getBoundingClientRect()}function zi(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Bi.mode;var Ki={Transition:Hi,TransitionGroup:{props:Bi,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=mt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Di(this),s=0;s-1?Mn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Mn[e]=/HTMLUnknownElement/.test(t.toString())},k(un.options.directives,Ii),k(un.options.components,Ki),un.prototype.__patch__=B?Ci:O,un.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=fe),_t(e,"beforeMount"),r=function(){e._update(e._render(),n)},new St(e,r,O,{before:function(){e._isMounted&&!e._isDestroyed&&_t(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,_t(e,"mounted")),e}(this,e=e&&B?Pn(e):void 0,t)},B&&setTimeout(function(){D.devtools&&Q&&Q.emit("init",un)},0);var Ji=/\{\{((?:.|\r?\n)+?)\}\}/g,qi=/[-.*+?^${}()|[\]\/\\]/g,Wi=y(function(e){var t=e[0].replace(qi,"\\$&"),n=e[1].replace(qi,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});var Gi={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=$r(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=br(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var Zi,Xi={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=$r(e,"style");n&&(e.staticStyle=JSON.stringify(Hr(n)));var r=br(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},Yi=function(e){return(Zi=Zi||document.createElement("div")).innerHTML=e,Zi.textContent},Qi=f("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),eo=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),to=f("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"),no=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ro="[a-zA-Z_][\\w\\-\\.]*",io="((?:"+ro+"\\:)?"+ro+")",oo=new RegExp("^<"+io),ao=/^\s*(\/?)>/,so=new RegExp("^<\\/"+io+"[^>]*>"),co=/^]+>/i,uo=/^",""":'"',"&":"&"," ":"\n"," ":"\t"},ho=/&(?:lt|gt|quot|amp);/g,mo=/&(?:lt|gt|quot|amp|#10|#9);/g,yo=f("pre,textarea",!0),go=function(e,t){return e&&yo(e)&&"\n"===t[0]};function _o(e,t){var n=t?mo:ho;return e.replace(n,function(e){return vo[e]})}var bo,$o,wo,Co,xo,ko,Ao,Oo,So=/^@|^v-on:/,To=/^v-|^@|^:/,No=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,jo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Eo=/^\(|\)$/g,Io=/:(.*)$/,Lo=/^:|^v-bind:/,Mo=/\.[^.]+/g,Do=y(Yi);function Po(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:function(e){for(var t={},n=0,r=e.length;n]*>)","i")),p=e.replace(f,function(e,n,r){return u=r.length,fo(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),go(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-p.length,e=p,A(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(uo.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v)),C(v+3);continue}}if(lo.test(e)){var h=e.indexOf("]>");if(h>=0){C(h+2);continue}}var m=e.match(co);if(m){C(m[0].length);continue}var y=e.match(so);if(y){var g=c;C(y[0].length),A(y[1],g,c);continue}var _=x();if(_){k(_),go(_.tagName,e)&&C(1);continue}}var b=void 0,$=void 0,w=void 0;if(d>=0){for($=e.slice(d);!(so.test($)||oo.test($)||uo.test($)||lo.test($)||(w=$.indexOf("<",1))<0);)d+=w,$=e.slice(d);b=e.substring(0,d),C(d)}d<0&&(b=e,e=""),t.chars&&b&&t.chars(b)}if(e===n){t.chars&&t.chars(e);break}}function C(t){c+=t,e=e.substring(t)}function x(){var t=e.match(oo);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(C(t[0].length);!(n=e.match(ao))&&(r=e.match(no));)C(r[0].length),i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=c,i}}function k(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&to(n)&&A(r),s(n)&&r===n&&A(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}A()}(e,{warn:bo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,start:function(e,o,u){var l=r&&r.ns||Oo(e);K&&"svg"===l&&(o=function(e){for(var t=[],n=0;nc&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=fr(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),_r(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Cr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Cr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Cr(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=br(e,"value")||"null";hr(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),_r(e,"change",Cr(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Nr:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Cr(t,l);c&&(f="if($event.target.composing)return;"+f),hr(e,"value","("+t+")"),_r(e,u,f,null,!0),(s||a)&&_r(e,"blur","$forceUpdate()")}(e,r,i);else if(!D.isReservedTag(o))return wr(e,r,i),!1;return!0},text:function(e,t){t.value&&hr(e,"textContent","_s("+t.value+")")},html:function(e,t){t.value&&hr(e,"innerHTML","_s("+t.value+")")}},isPreTag:function(e){return"pre"===e},isUnaryTag:Qi,mustUseProp:_n,canBeLeftOpenTag:eo,isReservedTag:In,getTagNamespace:Ln,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(Jo)},Zo=y(function(e){return f("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(e?","+e:""))});function Xo(e,t){e&&(qo=Zo(t.staticKeys||""),Wo=t.isReservedTag||S,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||p(e.tag)||!Wo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(qo)))}(t);if(1===t.type){if(!Wo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function\s*\(/,Qo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ea={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ta={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},na=function(e){return"if("+e+")return null;"},ra={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:na("$event.target !== $event.currentTarget"),ctrl:na("!$event.ctrlKey"),shift:na("!$event.shiftKey"),alt:na("!$event.altKey"),meta:na("!$event.metaKey"),left:na("'button' in $event && $event.button !== 0"),middle:na("'button' in $event && $event.button !== 1"),right:na("'button' in $event && $event.button !== 2")};function ia(e,t){var n=t?"nativeOn:{":"on:{";for(var r in e)n+='"'+r+'":'+oa(r,e[r])+",";return n.slice(0,-1)+"}"}function oa(e,t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map(function(t){return oa(e,t)}).join(",")+"]";var n=Qo.test(t.value),r=Yo.test(t.value);if(t.modifiers){var i="",o="",a=[];for(var s in t.modifiers)if(ra[s])o+=ra[s],ea[s]&&a.push(s);else if("exact"===s){var c=t.modifiers;o+=na(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!('button' in $event)&&"+e.map(aa).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(n?"return "+t.value+"($event)":r?"return ("+t.value+")($event)":t.value)+"}"}return n||r?t.value:"function($event){"+t.value+"}"}function aa(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=ea[e],r=ta[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var sa={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:O},ca=function(e){this.options=e,this.warn=e.warn||dr,this.transforms=vr(e.modules,"transformCode"),this.dataGenFns=vr(e.modules,"genData"),this.directives=k(k({},sa),e.directives);var t=e.isReservedTag||S;this.maybeComponent=function(e){return!(t(e.tag)&&!e.component)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function ua(e,t){var n=new ca(t);return{render:"with(this){return "+(e?la(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function la(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return fa(e,t);if(e.once&&!e.onceProcessed)return pa(e,t);if(e.for&&!e.forProcessed)return function(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||la)(e,t)+"})"}(e,t);if(e.if&&!e.ifProcessed)return da(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=ma(e,t),i="_t("+n+(r?","+r:""),o=e.attrs&&"{"+e.attrs.map(function(e){return _(e.name)+":"+e.value}).join(",")+"}",a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:ma(t,n,!0);return"_c("+e+","+va(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=va(e,t));var i=e.inlineTemplate?null:ma(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o':'
',Ca.innerHTML.indexOf(" ")>0}var Oa=!!B&&Aa(!1),Sa=!!B&&Aa(!0),Ta=y(function(e){var t=Pn(e);return t&&t.innerHTML}),Na=un.prototype.$mount;return un.prototype.$mount=function(e,t){if((e=e&&Pn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Ta(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=ka(r,{shouldDecodeNewlines:Oa,shouldDecodeNewlinesForHref:Sa,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Na.call(this,e,t)},un.compile=ka,un}); diff --git a/dist/vue.runtime.common.js b/dist/vue.runtime.common.js index c5e07e34eed..7caaf50bc7d 100644 --- a/dist/vue.runtime.common.js +++ b/dist/vue.runtime.common.js @@ -1918,7 +1918,7 @@ function withMacroTask (fn) { try { return fn.apply(null, arguments) } finally { - useMacroTask = false; + useMacroTask = false; } }) } @@ -8103,7 +8103,3 @@ if (inBrowser) { } }, 0); } - -/* */ - -module.exports = Vue; diff --git a/flow/compiler.js b/flow/compiler.js index a5f3304de52..509633e33ca 100644 --- a/flow/compiler.js +++ b/flow/compiler.js @@ -6,7 +6,8 @@ declare type CompilerOptions = { isUnaryTag?: (tag: string) => ?boolean; // check if a tag is unary for the platform canBeLeftOpenTag?: (tag: string) => ?boolean; // check if a tag can be left opened isReservedTag?: (tag: string) => ?boolean; // check if a tag is a native for the platform - preserveWhitespace?: boolean; // preserve whitespace between elements? + preserveWhitespace?: boolean; // preserve whitespace between elements? (Deprecated) + whitespace?: 'preserve' | 'condense'; // whitespace handling strategy optimize?: boolean; // optimize static content? // web specific @@ -18,6 +19,7 @@ declare type CompilerOptions = { shouldDecodeTags?: boolean; shouldDecodeNewlines?: boolean; shouldDecodeNewlinesForHref?: boolean; + outputSourceRange?: boolean; // runtime user-configurable delimiters?: [string, string]; // template delimiters @@ -27,13 +29,19 @@ declare type CompilerOptions = { scopeId?: string; }; +declare type WarningMessage = { + msg: string; + start?: number; + end?: number; +}; + declare type CompiledResult = { ast: ?ASTElement; render: string; staticRenderFns: Array; stringRenderFns?: Array; - errors?: Array; - tips?: Array; + errors?: Array; + tips?: Array; }; declare type ModuleOptions = { @@ -53,11 +61,14 @@ declare type ModuleOptions = { declare type ASTModifiers = { [key: string]: boolean }; declare type ASTIfCondition = { exp: ?string; block: ASTElement }; declare type ASTIfConditions = Array; +declare type ASTAttr = { name: string; value: any; start?: number; end?: number }; declare type ASTElementHandler = { value: string; params?: Array; modifiers: ?ASTModifiers; + start?: number; + end?: number; }; declare type ASTElementHandlers = { @@ -70,18 +81,24 @@ declare type ASTDirective = { value: string; arg: ?string; modifiers: ?ASTModifiers; + start?: number; + end?: number; }; -declare type ASTNode = ASTElement | ASTText | ASTExpression; +declare type ASTNode = ASTElement | ASTText | ASTExpression declare type ASTElement = { type: 1; tag: string; - attrsList: Array<{ name: string; value: any }>; + attrsList: Array; attrsMap: { [key: string]: any }; + rawAttrsMap: { [key: string]: ASTAttr }; parent: ASTElement | void; children: Array; + start?: number; + end?: number; + processed?: true; static?: boolean; @@ -91,8 +108,8 @@ declare type ASTElement = { hasBindings?: boolean; text?: string; - attrs?: Array<{ name: string; value: any }>; - props?: Array<{ name: string; value: string }>; + attrs?: Array; + props?: Array; plain?: boolean; pre?: true; ns?: string; @@ -150,6 +167,9 @@ declare type ASTElement = { // weex specific appendAsTree?: boolean; + + // 2.6 $slot check + has$Slot?: boolean }; declare type ASTExpression = { @@ -160,6 +180,10 @@ declare type ASTExpression = { static?: boolean; // 2.4 ssr optimization ssrOptimizability?: number; + start?: number; + end?: number; + // 2.6 $slot check + has$Slot?: boolean }; declare type ASTText = { @@ -169,6 +193,10 @@ declare type ASTText = { isComment?: boolean; // 2.4 ssr optimization ssrOptimizability?: number; + start?: number; + end?: number; + // 2.6 $slot check + has$Slot?: boolean }; // SFC-parser related declarations @@ -179,7 +207,8 @@ declare type SFCDescriptor = { script: ?SFCBlock; styles: Array; customBlocks: Array; -}; + errors: Array; +} declare type SFCBlock = { type: string; diff --git a/flow/global-api.js b/flow/global-api.js index eab244c22bb..0ce54fda3f4 100644 --- a/flow/global-api.js +++ b/flow/global-api.js @@ -16,6 +16,8 @@ declare interface GlobalAPI { component: (id: string, def?: Class | Object) => Class; filter: (id: string, def?: Function) => Function | void; + observable: (value: T) => T; + // allow dynamic method registration [key: string]: any }; diff --git a/flow/options.js b/flow/options.js index 2e138a62ab9..ceaf8571e62 100644 --- a/flow/options.js +++ b/flow/options.js @@ -44,6 +44,7 @@ declare type ComponentOptions = { beforeDestroy?: Function; destroyed?: Function; errorCaptured?: () => boolean | void; + ssrPrefetch?: Function; // assets directives?: { [key: string]: Object }; diff --git a/package.json b/package.json index c48c249b250..b7105f065e5 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "sideEffects": false, "scripts": { "dev": "rollup -w -c scripts/config.js --environment TARGET:web-full-dev", - "dev:cjs": "rollup -w -c scripts/config.js --environment TARGET:web-runtime-cjs", + "dev:cjs": "rollup -w -c scripts/config.js --environment TARGET:web-runtime-cjs-dev", "dev:esm": "rollup -w -c scripts/config.js --environment TARGET:web-runtime-esm", "dev:test": "karma start test/unit/karma.dev.config.js", "dev:ssr": "rollup -w -c scripts/config.js --environment TARGET:web-server-renderer", @@ -74,10 +74,10 @@ "@babel/plugin-transform-flow-strip-types": "^7.0.0", "@babel/preset-env": "^7.0.0", "@babel/register": "^7.0.0", - "@types/node": "^8.0.33", - "@types/webpack": "^3.0.13", + "@types/node": "^10.12.18", + "@types/webpack": "^4.4.22", "acorn": "^5.2.1", - "babel-eslint": "^8.0.3", + "babel-eslint": "^10.0.1", "babel-helper-vue-jsx-merge-props": "^2.0.3", "babel-loader": "^8.0.4", "babel-plugin-istanbul": "^5.1.0", @@ -85,11 +85,11 @@ "babel-preset-flow-vue": "^1.0.0", "buble": "^0.19.3", "chalk": "^2.3.0", - "chromedriver": "^2.30.1", + "chromedriver": "^2.45.0", "codecov": "^3.0.0", "commitizen": "^2.9.6", "conventional-changelog": "^1.1.3", - "cross-spawn": "^5.1.0", + "cross-spawn": "^6.0.5", "cz-conventional-changelog": "^2.0.0", "de-indent": "^1.0.2", "es6-promise": "^4.1.0", @@ -97,7 +97,7 @@ "eslint": "^5.7.0", "eslint-plugin-flowtype": "^2.34.0", "eslint-plugin-jasmine": "^2.8.4", - "file-loader": "^1.1.5", + "file-loader": "^3.0.1", "flow-bin": "^0.61.0", "hash-sum": "^1.0.2", "he": "^1.1.1", @@ -112,35 +112,35 @@ "karma-mocha-reporter": "^2.2.3", "karma-phantomjs-launcher": "^1.0.4", "karma-safari-launcher": "^1.0.0", - "karma-sauce-launcher": "^1.1.0", + "karma-sauce-launcher": "^2.0.2", "karma-sourcemap-loader": "^0.3.7", "karma-webpack": "^4.0.0-rc.2", - "lint-staged": "^7.0.0", + "lint-staged": "^8.0.0", "lodash": "^4.17.4", "lodash.template": "^4.4.0", "lodash.uniq": "^4.5.0", - "lru-cache": "^4.1.1", + "lru-cache": "^5.1.1", "nightwatch": "^0.9.16", "nightwatch-helpers": "^1.2.0", "phantomjs-prebuilt": "^2.1.14", + "puppeteer": "^1.11.0", "resolve": "^1.3.3", - "rollup": "^0.66.6", + "rollup": "^1.0.0", "rollup-plugin-alias": "^1.3.1", - "rollup-plugin-babel": "^4.0.1", - "rollup-plugin-buble": "^0.19.2", + "rollup-plugin-buble": "^0.19.6", "rollup-plugin-commonjs": "^9.2.0", "rollup-plugin-flow-no-whitespace": "^1.0.0", - "rollup-plugin-node-resolve": "^3.0.0", + "rollup-plugin-node-resolve": "^4.0.0", "rollup-plugin-replace": "^2.0.0", "selenium-server": "^2.53.1", "serialize-javascript": "^1.3.0", "shelljs": "^0.8.1", - "typescript": "^3.1.3", "terser": "^3.10.2", + "typescript": "^3.1.3", "webpack": "^4.22.0", "weex-js-runtime": "^0.23.6", "weex-styler": "^0.3.0", - "yorkie": "^1.0.1" + "yorkie": "^2.0.0" }, "config": { "commitizen": { diff --git a/packages/vue-server-renderer/build.js b/packages/vue-server-renderer/build.dev.js similarity index 98% rename from packages/vue-server-renderer/build.js rename to packages/vue-server-renderer/build.dev.js index 56f3a976507..37cdca8424f 100644 --- a/packages/vue-server-renderer/build.js +++ b/packages/vue-server-renderer/build.dev.js @@ -733,12 +733,12 @@ var config = ({ /** * Show production mode tip message on boot? */ - productionTip: process.env.NODE_ENV !== 'production', + productionTip: "development" !== 'production', /** * Whether to enable devtools */ - devtools: process.env.NODE_ENV !== 'production', + devtools: "development" !== 'production', /** * Whether to record perf @@ -819,7 +819,7 @@ var tip = noop; var generateComponentTrace = (noop); // work around flow check var formatComponentName = (noop); -if (process.env.NODE_ENV !== 'production') { +{ var hasConsole = typeof console !== 'undefined'; var classifyRE = /(?:^|[-_])(\w)/g; var classify = function (str) { return str @@ -934,12 +934,6 @@ Dep.prototype.depend = function depend () { Dep.prototype.notify = function notify () { // stabilize the subscriber list first var subs = this.subs.slice(); - if (process.env.NODE_ENV !== 'production' && !config.async) { - // subs aren't sorted in scheduler if not running async - // we need to sort them now to make sure they fire in correct - // order - subs.sort(function (a, b) { return a.id - b.id; }); - } for (var i = 0, l = subs.length; i < l; i++) { subs[i].update(); } @@ -1165,7 +1159,7 @@ function defineReactive$$1 ( return } /* eslint-enable no-self-compare */ - if (process.env.NODE_ENV !== 'production' && customSetter) { + if (customSetter) { customSetter(); } // #7981: for accessor properties without setter @@ -1187,8 +1181,7 @@ function defineReactive$$1 ( * already exist. */ function set (target, key, val) { - if (process.env.NODE_ENV !== 'production' && - (isUndef(target) || isPrimitive(target)) + if (isUndef(target) || isPrimitive(target) ) { warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target)))); } @@ -1203,7 +1196,7 @@ function set (target, key, val) { } var ob = (target).__ob__; if (target._isVue || (ob && ob.vmCount)) { - process.env.NODE_ENV !== 'production' && warn( + warn( 'Avoid adding reactive properties to a Vue instance or its root $data ' + 'at runtime - declare it upfront in the data option.' ); @@ -1244,7 +1237,7 @@ var strats = config.optionMergeStrategies; /** * Options with restrictions */ -if (process.env.NODE_ENV !== 'production') { +{ strats.el = strats.propsData = function (parent, child, vm, key) { if (!vm) { warn( @@ -1332,7 +1325,7 @@ strats.data = function ( ) { if (!vm) { if (childVal && typeof childVal !== 'function') { - process.env.NODE_ENV !== 'production' && warn( + warn( 'The "data" option should be a function ' + 'that returns a per-instance value in component ' + 'definitions.', @@ -1395,7 +1388,7 @@ function mergeAssets ( ) { var res = Object.create(parentVal || null); if (childVal) { - process.env.NODE_ENV !== 'production' && assertObjectType(key, childVal, vm); + assertObjectType(key, childVal, vm); return extend(res, childVal) } else { return res @@ -1423,7 +1416,7 @@ strats.watch = function ( if (childVal === nativeWatch) { childVal = undefined; } /* istanbul ignore if */ if (!childVal) { return Object.create(parentVal || null) } - if (process.env.NODE_ENV !== 'production') { + { assertObjectType(key, childVal, vm); } if (!parentVal) { return childVal } @@ -1454,7 +1447,7 @@ strats.computed = function ( vm, key ) { - if (childVal && process.env.NODE_ENV !== 'production') { + if (childVal && "development" !== 'production') { assertObjectType(key, childVal, vm); } if (!parentVal) { return childVal } @@ -1515,7 +1508,7 @@ function normalizeProps (options, vm) { if (typeof val === 'string') { name = camelize(val); res[name] = { type: null }; - } else if (process.env.NODE_ENV !== 'production') { + } else { warn('props must be strings when using array syntax.'); } } @@ -1527,7 +1520,7 @@ function normalizeProps (options, vm) { ? val : { type: val }; } - } else if (process.env.NODE_ENV !== 'production') { + } else { warn( "Invalid value for option \"props\": expected an Array or an Object, " + "but got " + (toRawType(props)) + ".", @@ -1555,7 +1548,7 @@ function normalizeInject (options, vm) { ? extend({ from: key }, val) : { from: val }; } - } else if (process.env.NODE_ENV !== 'production') { + } else { warn( "Invalid value for option \"inject\": expected an Array or an Object, " + "but got " + (toRawType(inject)) + ".", @@ -1598,7 +1591,7 @@ function mergeOptions ( child, vm ) { - if (process.env.NODE_ENV !== 'production') { + { checkComponents(child); } @@ -1666,7 +1659,7 @@ function resolveAsset ( if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] } // fallback to prototype chain var res = assets[id] || assets[camelizedId] || assets[PascalCaseId]; - if (process.env.NODE_ENV !== 'production' && warnMissing && !res) { + if (warnMissing && !res) { warn( 'Failed to resolve ' + type.slice(0, -1) + ': ' + id, options @@ -1712,11 +1705,7 @@ function validateProp ( observe(value); toggleObserving(prevShouldObserve); } - if ( - process.env.NODE_ENV !== 'production' && - // skip validation for weex recycle-list child component props - !(false) - ) { + { assertProp(prop, key, value, vm, absent); } return value @@ -1732,7 +1721,7 @@ function getPropDefaultValue (vm, prop, key) { } var def = prop.default; // warn against non-factory defaults for Object & Array - if (process.env.NODE_ENV !== 'production' && isObject(def)) { + if (isObject(def)) { warn( 'Invalid default value for prop "' + key + '": ' + 'Props with type Object/Array must use a factory function ' + @@ -1928,7 +1917,7 @@ function globalHandleError (err, vm, info) { } function logError (err, vm, info) { - if (process.env.NODE_ENV !== 'production') { + { warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm); } /* istanbul ignore else */ @@ -2732,7 +2721,7 @@ function addHandler ( // warn prevent and passive modifier /* istanbul ignore if */ if ( - process.env.NODE_ENV !== 'production' && warn && + warn && modifiers.prevent && modifiers.passive ) { warn( @@ -2844,7 +2833,7 @@ function getAndRemoveAttr ( function transformNode (el, options) { var warn = options.warn || baseWarn; var staticClass = getAndRemoveAttr(el, 'class'); - if (process.env.NODE_ENV !== 'production' && staticClass) { + if (staticClass) { var res = parseText(staticClass, options.delimiters); if (res) { warn( @@ -2888,7 +2877,7 @@ function transformNode$1 (el, options) { var staticStyle = getAndRemoveAttr(el, 'style'); if (staticStyle) { /* istanbul ignore if */ - if (process.env.NODE_ENV !== 'production') { + { var res = parseText(staticStyle, options.delimiters); if (res) { warn( @@ -3083,7 +3072,7 @@ function parseHTML (html, options) { if (html === last) { options.chars && options.chars(html); - if (process.env.NODE_ENV !== 'production' && !stack.length && options.warn) { + if (!stack.length && options.warn) { options.warn(("Mal-formatted tag at end of template: \"" + html + "\"")); } break @@ -3181,8 +3170,7 @@ function parseHTML (html, options) { if (pos >= 0) { // Close all the open elements, up the stack for (var i = stack.length - 1; i >= pos; i--) { - if (process.env.NODE_ENV !== 'production' && - (i > pos || !tagName) && + if (i > pos || !tagName && options.warn ) { options.warn( @@ -3475,7 +3463,7 @@ function parse ( if (isForbiddenTag(element) && !isServerRendering()) { element.forbidden = true; - process.env.NODE_ENV !== 'production' && warn$1( + warn$1( 'Templates should only be responsible for mapping the state to the ' + 'UI. Avoid placing tags with side-effects in your templates, such as ' + "<" + tag + ">" + ', as they will not be parsed.' @@ -3508,7 +3496,7 @@ function parse ( } function checkRootConstraints (el) { - if (process.env.NODE_ENV !== 'production') { + { if (el.tag === 'slot' || el.tag === 'template') { warnOnce( "Cannot use <" + (el.tag) + "> as component root element because it may " + @@ -3536,7 +3524,7 @@ function parse ( exp: element.elseif, block: element }); - } else if (process.env.NODE_ENV !== 'production') { + } else { warnOnce( "Component template should contain exactly one root element. " + "If you are using v-if on multiple elements, " + @@ -3579,7 +3567,7 @@ function parse ( chars: function chars (text) { if (!currentParent) { - if (process.env.NODE_ENV !== 'production') { + { if (text === template) { warnOnce( 'Component template requires a root element, rather than just text.' @@ -3674,7 +3662,7 @@ function processElement (element, options) { function processKey (el) { var exp = getBindingAttr(el, 'key'); if (exp) { - if (process.env.NODE_ENV !== 'production') { + { if (el.tag === 'template') { warn$1("