You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
47 KiB

8 years ago
/*!
8 years ago
* Vue.js v2.0.7
8 years ago
* (c) 2014-2016 Evan You
* Released under the MIT License.
*/
8 years ago
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,function(){"use strict";function t(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function e(t){var e=parseFloat(t,10);return e||0===e?e:t}function n(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function r(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function i(t,e){return on.call(t,e)}function o(t){return"string"==typeof t||"number"==typeof t}function a(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}function s(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function c(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function u(t,e){for(var n in e)t[n]=e[n];return t}function l(t){return null!==t&&"object"==typeof t}function f(t){return fn.call(t)===dn}function d(t){for(var e={},n=0;n<t.length;n++)t[n]&&u(e,t[n]);return e}function p(){}function v(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}function h(t,e){return t==e||!(!l(t)||!l(e))&&JSON.stringify(t)===JSON.stringify(e)}function m(t,e){for(var n=0;n<t.length;n++)if(h(t[n],e))return n;return-1}function _(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function y(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function g(t){if(!hn.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}function b(t){return/native code/.test(t.toString())}function C(t){On.target&&Sn.push(On.target),On.target=t}function w(){On.target=Sn.pop()}function $(){jn.length=0,En={},Tn=Dn=!1}function x(){for(Dn=!0,jn.sort(function(t,e){return t.id-e.id}),Ln=0;Ln<jn.length;Ln++){var t=jn[Ln],e=t.id;En[e]=null,t.run()}xn&&vn.devtools&&xn.emit("flush"),$()}function A(t){var e=t.id;if(null==En[e]){if(En[e]=!0,Dn){for(var n=jn.length-1;n>=0&&jn[n].id>t.id;)n--;jn.splice(Math.max(n,Ln)+1,0,t)}else jn.push(t);Tn||(Tn=!0,An(x))}}function k(t){Mn.clear(),O(t,Mn)}function O(t,e){var n,r,i=Array.isArray(t);if((i||l(t))&&Object.isExtensible(t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)O(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)O(t[r[n]],e)}}function S(t,e){t.__proto__=e}function j(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];y(t,o,e[o])}}function E(t){if(l(t)){var e;return i(t,"__ob__")&&t.__ob__ instanceof Vn?e=t.__ob__:Rn.shouldConvert&&!vn._isServer&&(Array.isArray(t)||f(t))&&Object.isExtensible(t)&&!t._isVue&&(e=new Vn(t)),e}}function T(t,e,n,r){var i=new On,o=Object.getOwnPropertyDescriptor(t,e);if(!o||o.configurable!==!1){var a=o&&o.get,s=o&&o.set,c=E(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):n;return On.target&&(i.depend(),c&&c.dep.depend(),Array.isArray(e)&&N(e)),e},set:function(e){var r=a?a.call(t):n;e!==r&&(s?s.call(t,e):n=e,c=E(e),i.notify())}})}}function D(t,e,n){if(Array.isArray(t))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(i(t,e))return void(t[e]=n);var r=t.__ob__;if(!(t._isVue||r&&r.vmCount))return r?(T(r.value,e,n),r.dep.notify(),n):void(t[e]=n)}function L(t,e){var n=t.__ob__;t._isVue||n&&n.vmCount||i(t,e)&&(delete t[e],n&&n.dep.notify())}function N(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&N(e)}function P(t){t._watchers=[],M(t),I(t),B(t),R(t),V(t)}function M(t){var e=t.$options.props;if(e){var n=t.$options.propsData||{},r=t.$options._propKeys=Object.keys(e),i=!t.$parent;Rn.shouldConvert=i;for(var o=function(i){var o=r[i];T(t,o,Nt(o,e,n,t))},a=0;a<r.length;a++)o(a);Rn.shouldConvert=!0}}function I(t){var e=t.$options.data;e=t._data="function"==typeof e?e.call(t):e||{},f(e)||(e={});for(var n=Object.keys(e),r=t.$options.props,o=n.length;o--;)
t.target.composing=!0}function Ke(t){t.target.composing=!1,We(t.target,"input")}function We(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Je(t){return!t.child||t.data&&t.data.transition?t:Je(t.child._vnode)}function Ge(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ge(tt(e.children)):t}function Ze(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[sn(o)]=i[o].fn;return e}function Qe(t,e){return/\d-keep-alive$/.test(e.tag)?t("keep-alive"):null}function Xe(t){for(;t=t.parent;)if(t.data.transition)return!0}function Ye(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function tn(t){t.data.newPos=t.elm.getBoundingClientRect()}function en(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var nn,rn=n("slot,component",!0),on=Object.prototype.hasOwnProperty,an=/-(\w)/g,sn=a(function(t){return t.replace(an,function(t,e){return e?e.toUpperCase():""})}),cn=a(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),un=/([^-])([A-Z])/g,ln=a(function(t){return t.replace(un,"$1-$2").replace(un,"$1-$2").toLowerCase()}),fn=Object.prototype.toString,dn="[object Object]",pn=function(){return!1},vn={optionMergeStrategies:Object.create(null),silent:!1,devtools:!1,errorHandler:null,ignoredElements:null,keyCodes:Object.create(null),isReservedTag:pn,isUnknownElement:pn,getTagNamespace:p,mustUseProp:pn,_assetTypes:["component","directive","filter"],_lifecycleHooks:["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],_maxUpdateCount:100,_isServer:!1},hn=/[^\w.$]/,mn="__proto__"in{},_n="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),yn=_n&&window.navigator.userAgent.toLowerCase(),gn=yn&&/msie|trident/.test(yn),bn=yn&&yn.indexOf("msie 9.0")>0,Cn=yn&&yn.indexOf("edge/")>0,wn=yn&&yn.indexOf("android")>0,$n=yn&&/iphone|ipad|ipod|ios/.test(yn),xn=_n&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,An=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e<t.length;e++)t[e]()}var e,n=[],r=!1;if("undefined"!=typeof Promise&&b(Promise)){var i=Promise.resolve();e=function(){i.then(t),$n&&setTimeout(p)}}else if("undefined"==typeof MutationObserver||!b(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())e=function(){setTimeout(t,0)};else{var o=1,a=new MutationObserver(t),s=document.createTextNode(String(o));a.observe(s,{characterData:!0}),e=function(){o=(o+1)%2,s.data=String(o)}}return function(t,i){var o=i?function(){t.call(i)}:t;n.push(o),r||(r=!0,e())}}();nn="undefined"!=typeof Set&&b(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return void 0!==this.set[t]},t.prototype.add=function(t){this.set[t]=1},t.prototype.clear=function(){this.set=Object.create(null)},t}();var kn=0,On=function(){this.id=kn++,this.subs=[]};On.prototype.addSub=function(t){this.subs.push(t)},On.prototype.removeSub=function(t){r(this.subs,t)},On.prototype.depend=function(){On.target&&On.target.addDep(this)},On.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},On.target=null;var Sn=[],jn=[],En={},Tn=!1,Dn=!1,Ln=0,Nn=0,Pn=function(t,e,n,r){void 0===r&&(r={}),this.vm=t,t._watchers.push(this),this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.expression=e.toString(),this.cb=n,this.id=++Nn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new nn,this.newDepIds=new nn,"function"==typeof e?this.getter=e:(this.getter=g(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};Pn.prototype.get=function(){C(this);var t=this.getter.call(this.vm,this.vm);return this.deep&&k(t),w(),this.cleanupDeps(),t},Pn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this