Comparing version 0.11.0 to 0.11.1
/** | ||
* Vue.js v0.11.0 | ||
* Vue.js v0.11.1 | ||
* (c) 2014 Evan You | ||
* Released under the MIT License. | ||
*/ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):"object"==typeof exports?exports.Vue=e():t.Vue=e()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){function n(t){this._init(t)}var r=i(1),s=r.extend;s(n,i(2)),n.options={directives:i(8),filters:i(9),partials:{},transitions:{},components:{}};var o=n.prototype;Object.defineProperty(o,"$data",{get:function(){return this._data},set:function(t){this._setData(t)}}),s(o,i(10)),s(o,i(11)),s(o,i(12)),s(o,i(13)),s(o,i(3)),s(o,i(4)),s(o,i(5)),s(o,i(6)),s(o,i(7)),t.exports=r.Vue=n},function(t,e,i){var n=i(14),r=n.extend;r(e,n),r(e,i(15)),r(e,i(16)),r(e,i(17)),r(e,i(18))},function(t,e,i){function n(t){return new Function("return function "+s.camelize(t,!0)+" (options) { this._init(options) }")()}function r(t){c.forEach(function(e){t[e]=function(t,i){return i?void(this.options[e+"s"][t]=i):this.options[e+"s"][t]}}),t.component=function(t,e){return e?(s.isPlainObject(e)&&(e.name=t,e=s.Vue.extend(e)),void(this.options.components[t]=e)):this.options.components[t]}}var s=i(1),o=i(19);e.util=s,e.nextTick=s.nextTick,e.config=i(20),e.cid=0;var a=1;e.extend=function(t){t=t||{};var e=this,i=n(t.name||"VueComponent");return i.prototype=Object.create(e.prototype),i.prototype.constructor=i,i.cid=a++,i.options=o(e.options,t),i["super"]=e,i.extend=e.extend,r(i),i},e.use=function(t){var e=s.toArray(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),this};var c=["directive","filter","partial","transition"];r(e)},function(t,e,i){var n=i(1),r=i(21),s=i(41),o=i(42),a=i(43),c=i(44),h=/[^|]\|[^|]/;e.$get=function(t){var e=c.parse(t);return e?e.get.call(this,this):void 0},e.$set=function(t,e){var i=c.parse(t,!0);i&&i.set&&i.set.call(this,this,e)},e.$add=function(t,e){this._data.$add(t,e)},e.$delete=function(t){this._data.$delete(t)},e.$watch=function(t,e,i,n){var s=this,o=i?t+"**deep**":t,a=s._userWatchers[o],c=function(t,i){e.call(s,t,i)};return a?a.addCb(c):a=s._userWatchers[o]=new r(s,t,c,null,!1,i),n&&c(a.value),function(){a.removeCb(c),a.active||(s._userWatchers[o]=null)}},e.$eval=function(t){if(h.test(t)){var e=a.parse(t)[0];return e.filters?n.applyFilters(this.$get(e.expression),n.resolveFilters(this,e.filters).read,this):this.$get(e.expression)}return this.$get(t)},e.$interpolate=function(t){var e=o.parse(t),i=this;return e?1===e.length?i.$eval(e[0].value):e.map(function(t){return t.tag?i.$eval(t.value):t.value}).join(""):t},e.$log=function(t){var e=t?s.get(this,t):this._data;console.log(JSON.parse(JSON.stringify(e)))}},function(t,e,i){function n(t,e,i,n,s){var o=!n&&!t._isAttached&&!h.inDoc(t.$el);t._isBlock?r(t,e,i,s):i(t.$el,e,t,s),o&&t._callHook("attached")}function r(t,e,i,n){for(var r,s=t._blockStart,o=t._blockEnd;r!==o;)r=s.nextSibling,i(s,e,t),s=r;i(o,e,t,n)}function s(t){return"string"==typeof t?document.querySelector(t):t}function o(t,e,i,n){e.appendChild(t),n&&n()}function a(t,e,i,n){h.before(t,e),n&&n()}function c(t,e,i){h.remove(t),i&&i()}var h=i(1),l=i(45);e.$appendTo=function(t,e,i){t=s(t);var r=!h.inDoc(t),a=i===!1||r?o:l.append;return n(this,t,a,r,e),this},e.$prependTo=function(t,e,i){return t=s(t),t.hasChildNodes()?this.$before(t.firstChild,e,i):this.$appendTo(t,e,i),this},e.$before=function(t,e,i){t=s(t);var r=!h.inDoc(t),o=i===!1||r?a:l.before;return n(this,t,o,r,e),this},e.$after=function(t,e,i){return t=s(t),t.nextSibling?this.$before(t.nextSibling,e,i):this.$appendTo(t.parentNode,e,i),this},e.$remove=function(t,e){var i=this._isAttached&&h.inDoc(this.$el);i||(e=!1);var n,s=this,a=function(){i&&s._callHook("detached"),t&&t()};return this._isBlock&&!this._blockFragment.hasChildNodes()?(n=e===!1?o:l.removeThenAppend,r(this,this._blockFragment,n,a)):(n=e===!1?c:l.remove)(this.$el,this,a),this}},function(t,e,i){function n(t,e,i){var n=t.$parent;if(n&&i&&!s.test(e))for(;n;)n._eventsCount[e]=(n._eventsCount[e]||0)+i,n=n.$parent}var r=i(1);e.$on=function(t,e){return(this._events[t]||(this._events[t]=[])).push(e),n(this,t,1),this},e.$once=function(t,e){function i(){n.$off(t,i),e.apply(this,arguments)}var n=this;return i.fn=e,this.$on(t,i),this},e.$off=function(t,e){var i;if(!arguments.length){if(this.$parent)for(t in this._events)i=this._events[t],i&&n(this,t,-i.length);return this._events={},this}if(i=this._events[t],!i)return this;if(1===arguments.length)return n(this,t,-i.length),this._events[t]=null,this;for(var r,s=i.length;s--;)if(r=i[s],r===e||r.fn===e){n(this,t,-1),i.splice(s,1);break}return this},e.$emit=function(t){this._eventCancelled=!1;var e=this._events[t];if(e){for(var i=arguments.length-1,n=new Array(i);i--;)n[i]=arguments[i+1];i=0,e=e.length>1?r.toArray(e):e;for(var s=e.length;s>i;i++)e[i].apply(this,n)===!1&&(this._eventCancelled=!0)}return this},e.$broadcast=function(t){if(this._eventsCount[t]){var e=this._children;if(e)for(var i=0,n=e.length;n>i;i++){var r=e[i];r.$emit.apply(r,arguments),r._eventCancelled||r.$broadcast.apply(r,arguments)}return this}},e.$dispatch=function(){for(var t=this.$parent;t;)t.$emit.apply(t,arguments),t=t._eventCancelled?null:t.$parent;return this};var s=/^hook:/},function(t,e,i){var n=i(1);e.$addChild=function(t,e){e=e||n.Vue,t=t||{};var i,r=this,s=void 0!==t.inherit?t.inherit:e.options.inherit;if(s){var o=r._childCtors;if(o||(o=r._childCtors={}),i=o[e.cid],!i){var a=e.options.name,c=a?n.camelize(a,!0):"VueComponent";i=new Function("return function "+c+" (options) {this.constructor = "+c+";this._init(options) }")(),i.options=e.options,i.prototype=this,o[e.cid]=i}}else i=e;t._parent=r,t._root=r.$root;var h=new i(t);return this._children||(this._children=[]),this._children.push(h),h}},function(t,e,i){function n(){this._isAttached=!0,this._isReady=!0,this._callHook("ready")}function r(t){t._data.__ob__.removeVm(t),t._data=t._watchers=t._userWatchers=t._watcherList=t.$el=t.$parent=t.$root=t._children=t._bindings=t._directives=null,t._isDestroyed=!0,t._callHook("destroyed"),t.$off()}var s=i(1),o=i(46);e.$mount=function(t){if(!this._isCompiled){if(t){if("string"==typeof t){if(t=document.querySelector(t),!t)return}}else t=document.createElement("div");return this._compile(t),this._isCompiled=!0,this._callHook("compiled"),s.inDoc(this.$el)?(this._callHook("attached"),this._initDOMHooks(),n.call(this)):(this._initDOMHooks(),this.$once("hook:attached",n)),this}},e.$destroy=function(t){if(!this._isBeingDestroyed){this._callHook("beforeDestroy"),this._isBeingDestroyed=!0;var e,i=this.$parent;if(i&&!i._isBeingDestroyed&&(e=i._children.indexOf(this),i._children.splice(e,1)),this._children)for(e=this._children.length;e--;)this._children[e].$destroy();for(e=this._directives.length;e--;)this._directives[e]._teardown();for(e in this._userWatchers)this._userWatchers[e].teardown();this.$el&&(this.$el.__vue__=null);var n=this;t&&this.$el?this.$remove(function(){r(n)}):r(n)}},e.$compile=function(t){return o(t,this.$options,!0)(this,t)}},function(t,e,i){e.text=i(22),e.html=i(23),e.attr=i(24),e.show=i(25),e["class"]=i(26),e.el=i(27),e.ref=i(28),e.cloak=i(29),e.style=i(30),e.partial=i(31),e.transition=i(32),e.on=i(33),e.model=i(48),e.component=i(34),e.repeat=i(35),e["if"]=i(36),e["with"]=i(37)},function(t,e,i){var n=i(1);e.json=function(t,e){return JSON.stringify(t,null,Number(e)||2)},e.capitalize=function(t){return t||0===t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""},e.uppercase=function(t){return t||0===t?t.toString().toUpperCase():""},e.lowercase=function(t){return t||0===t?t.toString().toLowerCase():""};var r=/(\d{3})(?=\d)/g;e.currency=function(t,e){if(t=parseFloat(t),!t&&0!==t)return"";e=e||"$";var i=Math.floor(Math.abs(t)).toString(),n=i.length%3,s=n>0?i.slice(0,n)+(i.length>3?",":""):"",o="."+t.toFixed(2).slice(-2);return(0>t?"-":"")+e+s+i.slice(n).replace(r,"$1,")+o},e.pluralize=function(t){var e=n.toArray(arguments,1);return e.length>1?e[t%10-1]||e[e.length-1]:e[0]+(1===t?"":"s")};var s={enter:13,tab:9,"delete":46,up:38,left:37,right:39,down:40,esc:27};e.key=function(t,e){if(t){var i=s[e];return i||(i=parseInt(e,10)),function(e){return e.keyCode===i?t.call(this,e):void 0}}},n.extend(e,i(38))},function(t,e,i){var n=i(19);e._init=function(t){t=t||{},this.$el=null,this.$parent=t._parent,this.$root=t._root||this,this.$={},this.$$={},this._watcherList=[],this._watchers={},this._userWatchers={},this._directives=[],this._isVue=!0,this._events={},this._eventsCount={},this._eventCancelled=!1,this._isBlock=!1,this._blockStart=this._blockEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=!1,this._children=this._childCtors=null,t=this.$options=n(this.constructor.options,t,this),this._data=t.data||{},this._initScope(),this._initEvents(),this._callHook("created"),t.el&&this.$mount(t.el)}},function(t,e,i){function n(t,e,i){if(i){var n,s,o,c;for(s in i)if(n=i[s],a.isArray(n))for(o=0,c=n.length;c>o;o++)r(t,e,s,n[o]);else r(t,e,s,n)}}function r(t,e,i,n){var r=typeof n;if("function"===r)t[e](i,n);else if("string"===r){var s=t.$options.methods,o=s&&s[n];o&&t[e](i,o)}}function s(){this._isAttached=!0;var t=this._children;if(t)for(var e=0,i=t.length;i>e;e++){var n=t[e];!n._isAttached&&c(n.$el)&&n._callHook("attached")}}function o(){this._isAttached=!1;var t=this._children;if(t)for(var e=0,i=t.length;i>e;e++){var n=t[e];n._isAttached&&!c(n.$el)&&n._callHook("detached")}}var a=i(1),c=a.inDoc;e._initEvents=function(){var t=this.$options;n(this,"$on",t.events),n(this,"$watch",t.watch)},e._initDOMHooks=function(){this.$on("hook:attached",s),this.$on("hook:detached",o)},e._callHook=function(t){var e=this.$options[t];if(e)for(var i=0,n=e.length;n>i;i++)e[i].call(this);this.$emit("hook:"+t)}},function(t,e,i){function n(){}var r=i(1),s=i(49),o=i(39);e._initScope=function(){this._initData(),this._initComputed(),this._initMethods(),this._initMeta()},e._initData=function(){for(var t,e=this._data,i=Object.keys(e),n=i.length;n--;)t=i[n],r.isReserved(t)||this._proxy(t);s.create(e).addVm(this)},e._setData=function(t){t=t||{};var e=this._data;this._data=t;var i,n,o;for(i=Object.keys(e),o=i.length;o--;)n=i[o],r.isReserved(n)||n in t||this._unproxy(n);for(i=Object.keys(t),o=i.length;o--;)n=i[o],this.hasOwnProperty(n)||r.isReserved(n)||this._proxy(n);e.__ob__.removeVm(this),s.create(t).addVm(this),this._digest()},e._proxy=function(t){var e=this;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(i){e._data[t]=i}})},e._unproxy=function(t){delete this[t]},e._digest=function(){for(var t=this._watcherList.length;t--;)this._watcherList[t].update();var e,i=this._children;if(i)for(t=i.length;t--;)e=i[t],e.$options.inherit&&e._digest()},e._initComputed=function(){var t=this.$options.computed;if(t)for(var e in t){var i=t[e],s={enumerable:!0,configurable:!0};"function"==typeof i?(s.get=r.bind(i,this),s.set=n):(s.get=i.get?r.bind(i.get,this):n,s.set=i.set?r.bind(i.set,this):n),Object.defineProperty(this,e,s)}},e._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=r.bind(t[e],this)},e._initMeta=function(){var t=this.$options._meta;if(t)for(var e in t)this._defineMeta(e,t[e])},e._defineMeta=function(t,e){var i=new o;Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:function(){return s.target&&s.target.addDep(i),e},set:function(t){t!==e&&(e=t,i.notify())}})}},function(t,e,i){var n=i(1),r=i(40),s=i(46),o=i(47);e._compile=function(t){var e=this.$options;if(e._linker)this._initElement(t),e._linker(this,t);else{var i=t;t=o(t,e),this._initElement(t);var r=s(t,e);r(this,t),e.replace&&n.replace(i,t)}return t},e._initElement=function(t){t instanceof DocumentFragment?(this._isBlock=!0,this.$el=this._blockStart=t.firstChild,this._blockEnd=t.lastChild,this._blockFragment=t):this.$el=t,this.$el.__vue__=this,this._callHook("beforeCompile")},e._bindDir=function(t,e,i,n,s){this._directives.push(new r(t,e,this,i,n,s))}},function(t,e){e.isReserved=function(t){var e=t.charCodeAt(0);return 36===e||95===e},e.toString=function(t){return null==t?"":t.toString()},e.toNumber=function(t){return isNaN(t)||null===t||"boolean"==typeof t?t:Number(t)},e.stripQuotes=function(t){var e=t.charCodeAt(0),i=t.charCodeAt(t.length-1);return e!==i||34!==e&&39!==e?!1:t.slice(1,-1)};var i=/[-_](\w)/g,n=/(?:^|[-_])(\w)/g;e.camelize=function(t,e){var r=e?n:i;return t.replace(r,function(t,e){return e?e.toUpperCase():""})},e.bind=function(t,e){return function(){return t.apply(e,arguments)}},e.toArray=function(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n},e.extend=function(t,e){for(var i in e)t[i]=e[i]},e.isObject=function(t){return t&&"object"==typeof t};var r=Object.prototype.toString;e.isPlainObject=function(t){return"[object Object]"===r.call(t)},e.isArray=function(t){return Array.isArray(t)},e.define=function(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}},function(t,e){e.hasProto="__proto__"in{};var i=Object.prototype.toString,n=e.inBrowser="undefined"!=typeof window&&"[object Object]"!==i.call(window),r=n?window.requestAnimationFrame||window.webkitRequestAnimationFrame||setTimeout:setTimeout;if(e.nextTick=function(t,e){e?r(function(){t.call(e)},0):r(t,0)},e.isIE9=n&&navigator.userAgent.indexOf("MSIE 9.0")>0,n&&!e.isIE9){var s=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,o=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;e.transitionProp=s?"WebkitTransition":"transition",e.transitionEndEvent=s?"webkitTransitionEnd":"transitionend",e.animationProp=o?"WebkitAnimation":"animation",e.animationEndEvent=o?"webkitAnimationEnd":"animationend"}},function(t,e,i){var n=i(20),r="undefined"!=typeof document&&document.documentElement;e.inDoc=function(t){return r&&r.contains(t)},e.attr=function(t,e){e=n.prefix+e;var i=t.getAttribute(e);return null!==i&&t.removeAttribute(e),i},e.before=function(t,e){e.parentNode.insertBefore(t,e)},e.after=function(t,i){i.nextSibling?e.before(t,i.nextSibling):i.parentNode.appendChild(t)},e.remove=function(t){t.parentNode.removeChild(t)},e.prepend=function(t,i){i.firstChild?e.before(t,i.firstChild):i.appendChild(t)},e.replace=function(t,e){var i=t.parentNode;i&&i.replaceChild(e,t)},e.copyAttributes=function(t,e){if(t.hasAttributes())for(var i=t.attributes,n=0,r=i.length;r>n;n++){var s=i[n];e.setAttribute(s.name,s.value)}},e.on=function(t,e,i){t.addEventListener(e,i)},e.off=function(t,e,i){t.removeEventListener(e,i)},e.addClass=function(t,e){if(t.classList)t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&t.setAttribute("class",(i+e).trim())}},e.removeClass=function(t,e){if(t.classList)t.classList.remove(e);else{for(var i=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";i.indexOf(n)>=0;)i=i.replace(n," ");t.setAttribute("class",i.trim())}}},function(t,e,i){i(18);e.resolveFilters=function(t,e,i){if(e){var n=i||{};return e.forEach(function(e){var i=t.$options.filters[e.name];if(i){var r,s,o=e.args;"function"==typeof i?r=i:(r=i.read,s=i.write),r&&(n.read||(n.read=[]),n.read.push(function(e){return o?r.apply(t,[e].concat(o)):r.call(t,e)})),s&&(n.write||(n.write=[]),n.write.push(function(e,i){return o?s.apply(t,[e,i].concat(o)):s.call(t,e,i)}))}}),n}},e.applyFilters=function(t,e,i,n){if(!e)return t;for(var r=0,s=e.length;s>r;r++)t=e[r].call(i,t,n);return t}},function(t,e,i){i(20)},function(t,e,i){function n(t){if(t){var e;for(var i in t)e=t[i],r.isPlainObject(e)&&(e.name=i,t[i]=r.Vue.extend(e))}}var r=i(1),s=r.extend,o=Object.create(null);o.data=function(t,e,i){if(!i){if(e&&"function"!=typeof e)return;return e||t}var n="function"==typeof e?e.call(i):e,r="function"==typeof t?t.call(i):void 0;if(n){for(var s in r)n.hasOwnProperty(s)||n.$add(s,r[s]);return n}return r},o.el=function(t,e,i){if(i||!e||"function"==typeof e){var n=e||t;return i&&"function"==typeof n?n.call(i):n}},o.created=o.ready=o.attached=o.detached=o.beforeCompile=o.compiled=o.beforeDestroy=o.destroyed=o.paramAttributes=function(t,e){return e?t?t.concat(e):r.isArray(e)?e:[e]:t},o.directives=o.filters=o.partials=o.transitions=o.components=function(t,e,i,n){var o=Object.create(i&&i.$parent?i.$parent.$options[n]:r.Vue.options[n]);if(t)for(var a,c=Object.keys(t),h=c.length;h--;)a=c[h],o[a]=t[a];return e&&s(o,e),o},o.watch=o.events=function(t,e){if(!e)return t;if(!t)return e;var i={};s(i,t);for(var n in e){var r=i[n],o=e[n];i[n]=r?r.concat(o):[o]}return i},o.methods=o.computed=function(t,e){if(!e)return t;if(!t)return e;var i=Object.create(t);return s(i,e),i};var a=function(t,e){return void 0===e?t:e};t.exports=function(t,e,i){function r(t,e,n){var r=o[n]||a;c[n]=r(t,e,i,n)}n(e.components);var s,c={};for(s in t)r(t[s],e[s],s);for(s in e)t.hasOwnProperty(s)||r(t[s],e[s],s);var h=e.mixins;if(h)for(var l=0,u=h.length;u>l;l++)for(s in h[l])r(c[s],h[l][s],s);return c}},function(t){t.exports={prefix:"v-",debug:!1,silent:!1,proto:!0,interpolate:!0,async:!0,_delimitersChanged:!0};var e=["{{","}}"];Object.defineProperty(t.exports,"delimiters",{get:function(){return e},set:function(t){e=t,this._delimitersChanged=!0}})},function(t,e,i){function n(t,e,i,n,r,s){this.vm=t,t._watcherList.push(this),this.expression=e,this.cbs=[i],this.id=++l,this.active=!0,this.deep=s,this.deps=Object.create(null),this.readFilters=n&&n.read,this.writeFilters=n&&n.write;var o=a.parse(e,r);this.getter=o.get,this.setter=o.set,this.value=this.get()}var r=i(1),s=i(20),o=i(49),a=i(44),c=i(50),h=new c,l=0,u=n.prototype;u.addDep=function(t){var e=t.id;this.newDeps[e]||(this.newDeps[e]=t,this.deps[e]||(this.deps[e]=t,t.addSub(this)))},u.get=function(){this.beforeGet();var t,e=this.vm;try{t=this.getter.call(e,e)}catch(i){}return this.deep&&JSON.stringify(t),t=r.applyFilters(t,this.readFilters,e),this.afterGet(),t},u.set=function(t){var e=this.vm;t=r.applyFilters(t,this.writeFilters,e,this.value);try{this.setter.call(e,e,t)}catch(i){}},u.beforeGet=function(){o.target=this,this.newDeps={}},u.afterGet=function(){o.target=null;for(var t in this.deps)this.newDeps[t]||this.deps[t].removeSub(this);this.deps=this.newDeps},u.update=function(){s.async?h.push(this):this.run()},u.run=function(){if(this.active){var t=this.get();if("object"==typeof t&&null!==t||t!==this.value){var e=this.value;this.value=t;for(var i=this.cbs,n=0,r=i.length;r>n;n++){i[n](t,e);var s=r-i.length;s&&(n-=s,r-=s)}}}},u.addCb=function(t){this.cbs.push(t)},u.removeCb=function(t){var e=this.cbs;if(e.length>1){var i=e.indexOf(t);i>-1&&e.splice(i,1)}else t===e[0]&&this.teardown()},u.teardown=function(){if(this.active){if(!this.vm._isBeingDestroyed){var t=this.vm._watcherList;t.splice(t.indexOf(this))}for(var e in this.deps)this.deps[e].removeSub(this);this.active=!1,this.vm=this.cbs=this.value=null}},t.exports=n},function(t,e,i){var n=i(1);t.exports={bind:function(){this.attr=3===this.el.nodeType?"nodeValue":"textContent"},update:function(t){this.el[this.attr]=n.toString(t)}}},function(t,e,i){var n=i(1),r=i(51);t.exports={bind:function(){8===this.el.nodeType&&(this.nodes=[])},update:function(t){t=n.toString(t),this.nodes?this.swap(t):this.el.innerHTML=t},swap:function(t){for(var e=this.nodes.length;e--;)n.remove(this.nodes[e]);var i=r.parse(t,!0);this.nodes=n.toArray(i.childNodes),n.before(i,this.el)}}},function(t){function e(t){t||0===t?this.el.setAttribute(this.arg,t):this.el.removeAttribute(this.arg)}function i(t){null!=t?this.el.setAttributeNS(n,this.arg,t):this.el.removeAttributeNS(n,"href")}var n="http://www.w3.org/1999/xlink",r=/^xlink:/;t.exports={priority:850,bind:function(){var t=this.arg;this.update=r.test(t)?i:e}}},function(t,e,i){var n=i(45);t.exports=function(t){var e=this.el;n.apply(e,t?1:-1,function(){e.style.display=t?"":"none"},this.vm)}},function(t,e,i){var n=i(1),r=n.addClass,s=n.removeClass;t.exports=function(t){if(this.arg){var e=t?r:s;e(this.el,this.arg)}else this.lastVal&&s(this.el,this.lastVal),t&&(r(this.el,t),this.lastVal=t)}},function(t){t.exports={isLiteral:!0,bind:function(){this.vm.$$[this.expression]=this.el},unbind:function(){delete this.vm.$$[this.expression]}}},function(t,e,i){i(1);t.exports={isLiteral:!0,bind:function(){this.el===this.vm.$el&&(this.owner=this.vm.$parent,this.owner.$[this.expression]=this.vm)},unbind:function(){this.owner.$[this.expression]===this.vm&&delete this.owner.$[this.expression]}}},function(t,e,i){var n=i(20);t.exports={bind:function(){var t=this.el;this.vm.$once("hook:compiled",function(){t.removeAttribute(n.prefix+"cloak")})}}},function(t){var e=["-webkit-","-moz-","-ms-"],i=/!important;?$/;t.exports={bind:function(){var t=this.arg;t&&("$"===t.charAt(0)&&(t=t.slice(1),this.prefixed=!0),this.prop=t)},update:function(t){var n=this.prop;if(null!=t&&(t+=""),n){var r=i.test(t)?"important":"";if(r&&(t=t.replace(i,"").trim()),this.el.style.setProperty(n,t,r),this.prefixed)for(var s=e.length;s--;)this.el.style.setProperty(e[s]+n,t,r)}else this.el.style.cssText=t}}},function(t,e,i){var n=i(1),r=i(51),s=i(45);t.exports={isLiteral:!0,bind:function(){var t=this.el;this.start=document.createComment("v-partial-start"),this.end=document.createComment("v-partial-end"),8!==t.nodeType&&(t.innerHTML=""),"TEMPLATE"===t.tagName||8===t.nodeType?n.replace(t,this.end):t.appendChild(this.end),n.before(this.start,this.end),this._isDynamicLiteral||this.compile(this.expression)},update:function(t){this.teardown(),this.compile(t)},compile:function(t){var e=this.vm.$options.partials[t];if(e){var i=this.vm,n=r.parse(e,!0),o=i.$compile(n);this.decompile=function(){o(),s.blockRemove(this.start,this.end,i)},s.blockAppend(n,this.end,i)}},teardown:function(){this.decompile&&(this.decompile(),this.decompile=null)}}},function(t){t.exports={priority:1e3,isLiteral:!0,bind:function(){this.el.__v_trans={id:this.expression}}}},function(t,e,i){var n=i(1);t.exports={acceptStatement:!0,priority:700,bind:function(){if("IFRAME"===this.el.tagName&&"load"!==this.arg){var t=this;this.iframeBind=function(){n.on(t.el.contentWindow,t.arg,t.handler)},n.on(this.el,"load",this.iframeBind)}},update:function(t){if("function"==typeof t){this.reset();var e=this.vm;this.handler=function(i){i.targetVM=e,e.$event=i;var n=t(i);return e.$event=null,n},this.iframeBind?this.iframeBind():n.on(this.el,this.arg,this.handler)}},reset:function(){var t=this.iframeBind?this.el.contentWindow:this.el;this.handler&&n.off(t,this.arg,this.handler)},unbind:function(){this.reset(),n.off(this.el,"load",this.iframeBind)}}},function(t,e,i){var n=i(1),r=i(51);t.exports={isLiteral:!0,bind:function(){this.el.__vue__||(this.ref=document.createComment("v-component"),n.replace(this.el,this.ref),this.checkKeepAlive(),this.parentLinker=this.el._parentLinker,this._isDynamicLiteral||(this.resolveCtor(this.expression),this.build()))},checkKeepAlive:function(){this.keepAlive=this.el.hasAttribute("keep-alive"),this.keepAlive&&(this.el.removeAttribute("keep-alive"),this.cache={})},resolveCtor:function(t){this.ctorId=t,this.Ctor=this.vm.$options.components[t]},build:function(){if(this.keepAlive){var t=this.cache[this.ctorId];if(t)return this.childVM=t,void t.$before(this.ref)}var e=this.vm;if(this.Ctor&&!this.childVM){if(this.childVM=e.$addChild({el:r.clone(this.el)},this.Ctor),this.parentLinker){var i=e._directives.length,n=this.childVM.$options.inherit?this.childVM:e;this.parentLinker(n,this.childVM.$el),this.parentDirs=e._directives.slice(i)}this.keepAlive&&(this.cache[this.ctorId]=this.childVM),this.childVM.$before(this.ref)}},unbuild:function(t){var e=this.childVM;if(e){if(this.keepAlive)t&&e.$remove();else{e.$destroy(t);var i=this.parentDirs;if(i)for(var n=i.length;n--;)i[n]._teardown()}this.childVM=null}},update:function(t){this.unbuild(!0),t&&(this.resolveCtor(t),this.build())},unbind:function(){this.keepAlive=!1,this.unbuild()}}},function(t,e,i){function n(t,e){for(var i=(t._blockEnd||t.$el).nextSibling;!i.__vue__&&i!==e;)i=i.nextSibling;return i.__vue__}function r(t){if(!o.isPlainObject(t))return t;for(var e,i=Object.keys(t),n=i.length,r=new Array(n);n--;)e=i[n],r[n]={key:e,value:t[e]};return this.converted=!0,r}function s(t){for(var e=-1,i=new Array(t);++e<t;)i[e]=e;return i}var o=i(1),a=o.isObject,c=i(42),h=i(44),l=i(51),u=i(46),f=i(47),d=i(19),p=0;t.exports={bind:function(){this.id="__v_repeat_"+ ++p,this.filters||(this.filters={});var t=o.bind(r,this);this.filters.read?this.filters.read.unshift(t):this.filters.read=[t],this.ref=document.createComment("v-repeat"),o.replace(this.el,this.ref),this.template="TEMPLATE"===this.el.tagName?l.parse(this.el,!0):this.el,this.checkIf(),this.checkRef(),this.checkTrackById(),this.checkComponent(),this.cache=Object.create(null)},checkIf:function(){null!==o.attr(this.el,"if")},checkRef:function(){var t=o.attr(this.el,"ref");this.childId=t?this.vm.$interpolate(t):null;var e=o.attr(this.el,"el");this.elId=e?this.vm.$interpolate(e):null},checkTrackById:function(){this.idKey=this.el.getAttribute("trackby"),null!==this.idKey&&this.el.removeAttribute("trackby")},checkComponent:function(){var t=o.attr(this.el,"component"),e=this.vm.$options;if(t){var i=c.parse(t);if(i){var n=c.tokensToExp(i);this.ctorGetter=h.parse(n).get}else{var r=this.Ctor=e.components[t];if(r){var s=d(r.options,{},{$parent:this.vm});this.template=f(this.template,s),this._linker=u(this.template,s)}}}else this.Ctor=o.Vue,this.inherit=!0,this.template=f(this.template),this._linker=u(this.template,e)},update:function(t){"number"==typeof t&&(t=s(t)),this.vms=this.diff(t||[],this.vms),this.childId&&(this.vm.$[this.childId]=this.vms),this.elId&&(this.vm.$$[this.elId]=this.vms.map(function(t){return t.$el}))},diff:function(t,e){var i,r,s,o,a,c=this.idKey,h=this.converted,l=this.ref,u=this.arg,f=!e,d=new Array(t.length);for(o=0,a=t.length;a>o;o++)i=t[o],r=h?i.value:i,s=!f&&this.getVm(r),s?(s._reused=!0,s.$index=o,h&&(s.$key=i.key),c&&(u?s[u]=r:s._setData(r))):(s=this.build(i,o),s._new=!0),d[o]=s,f&&s.$before(l);if(f)return d;for(o=0,a=e.length;a>o;o++)s=e[o],s._reused||(this.uncacheVm(s),s.$destroy(!0));var p,v;for(o=d.length;o--;)s=d[o],p=d[o+1],p?s._reused?(v=n(s,l),v!==p&&s.$before(p.$el,null,!1)):s.$before(p.$el):s._reused||s.$before(l),s._new=!1,s._reused=!1;return d},build:function(t,e){var i=t,n={$index:e};this.converted&&(n.$key=i.key);var r=this.converted?t.value:t,s=this.arg,o=!a(r)||s;t=o?{}:r,s?t[s]=r:o&&(n.$value=r);var c=this.Ctor||this.resolveCtor(t,n),h=this.vm.$addChild({el:l.clone(this.template),_linker:this._linker,_meta:n,data:t,inherit:this.inherit},c);return this.cacheVm(r,h),h},resolveCtor:function(t,e){var i,n=Object.create(this.vm);for(i in t)o.define(n,i,t[i]);for(i in e)o.define(n,i,e[i]);var r=this.ctorGetter.call(n,n),s=this.vm.$options.components[r];return s},unbind:function(){if(this.childId&&delete this.vm.$[this.childId],this.vms)for(var t,e=this.vms.length;e--;)t=this.vms[e],this.uncacheVm(t),t.$destroy()},cacheVm:function(t,e){var i,n=this.idKey,r=this.cache;n?(i=t[n],r[i]||(r[i]=e)):a(t)?(i=this.id,t.hasOwnProperty(i)?null===t[i]&&(t[i]=e):o.define(t,this.id,e)):r[t]?r[t].push(e):r[t]=[e],e._raw=t},getVm:function(t){if(this.idKey)return this.cache[t[this.idKey]];if(a(t))return t[this.id];var e=this.cache[t];if(e){for(var i=0,n=e[i];n&&(n._reused||n._new);)n=e[++i];return n}},uncacheVm:function(t){var e=t._raw;this.idKey?this.cache[e[this.idKey]]=null:a(e)?(e[this.id]=null,t._raw=null):this.cache[e].pop()}}},function(t,e,i){var n=i(1),r=i(46),s=i(51),o=i(45);t.exports={bind:function(){var t=this.el;t.__vue__?this.invalid=!0:(this.start=document.createComment("v-if-start"),this.end=document.createComment("v-if-end"),n.replace(t,this.end),n.before(this.start,this.end),"TEMPLATE"===t.tagName?this.template=s.parse(t,!0):(this.template=document.createDocumentFragment(),this.template.appendChild(t)),this.linker=r(this.template,this.vm.$options,!0))},update:function(t){this.invalid||(t?this.insert():this.teardown())},insert:function(){if(!this.decompile){var t=this.vm,e=s.clone(this.template),i=this.linker(t,e);this.decompile=function(){i(),o.blockRemove(this.start,this.end,t)},o.blockAppend(e,this.end,t)}},teardown:function(){this.decompile&&(this.decompile(),this.decompile=null)}}},function(t,e,i){var n=(i(1),i(21));t.exports={priority:900,bind:function(){var t=this.vm;if(this.el!==t.$el);else if(t.$parent){var e=this.arg;this.watcher=new n(t.$parent,this.expression,e?function(i){t.$set(e,i)}:function(e){t.$data=e});var i=this.watcher.value;e?t.$set(e,i):t.$data=i}else;},unbind:function(){this.watcher&&this.watcher.teardown()}}},function(t,e,i){function n(t,e){if(r.isObject(t)){for(var i in t)if(n(t[i],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}var r=i(1),s=i(41);e.filterBy=function(t,e,i,o){i&&"in"!==i&&(o=i);var a=r.stripQuotes(e)||this.$get(e);return a?(a=a.toLowerCase(),o=o&&(r.stripQuotes(o)||this.$get(o)),t.filter(function(t){return o?n(s.get(t,o),a):n(t,a)})):t},e.orderBy=function(t,e,i){var n=r.stripQuotes(e)||this.$get(e);if(!n)return t;var o=1;return i&&("-1"===i?o=-1:33===i.charCodeAt(0)?(i=i.slice(1),o=this.$get(i)?1:-1):o=this.$get(i)?-1:1),t.slice().sort(function(t,e){return t=s.get(t,n),e=s.get(e,n),t===e?0:t>e?o:-o})}},function(t){function e(){this.id=++i,this.subs=[]}var i=0,n=e.prototype;n.addSub=function(t){this.subs.push(t)},n.removeSub=function(t){if(this.subs.length){var e=this.subs.indexOf(t);e>-1&&this.subs.splice(e,1)}},n.notify=function(){for(var t=0,e=this.subs.length;e>t;t++)this.subs[t].update()},t.exports=e},function(t,e,i){function n(t,e,i,n,s,o){this.name=t,this.el=e,this.vm=i,this.raw=n.raw,this.expression=n.expression,this.arg=n.arg,this.filters=r.resolveFilters(i,n.filters),this._linker=o,this._locked=!1,this._bound=!1,this._bind(s)}var r=i(1),s=i(20),o=i(21),a=i(42),c=i(44),h=n.prototype;h._bind=function(t){if("cloak"!==this.name&&this.el.removeAttribute&&this.el.removeAttribute(s.prefix+this.name),"function"==typeof t?this.update=t:r.extend(this,t),this._watcherExp=this.expression,this._checkDynamicLiteral(),this.bind&&this.bind(),this.update&&this._watcherExp&&(!this.isLiteral||this._isDynamicLiteral)&&!this._checkStatement()){var e=this.vm._watchers[this.raw],i=this,n=this._update=function(t,e){i._locked||i.update(t,e)};e?e.addCb(n):e=this.vm._watchers[this.raw]=new o(this.vm,this._watcherExp,n,this.filters,this.twoWay),this._watcher=e,null!=this._initValue?e.set(this._initValue):this.update(e.value)}this._bound=!0},h._checkDynamicLiteral=function(){var t=this.expression;if(t&&this.isLiteral){var e=a.parse(t);if(e){var i=a.tokensToExp(e);this.expression=this.vm.$get(i),this._watcherExp=i,this._isDynamicLiteral=!0}}},h._checkStatement=function(){var t=this.expression;if(t&&this.acceptStatement&&!c.pathTestRE.test(t)){var e=c.parse(t).get,i=this.vm,n=function(){e.call(i,i)};return this.filters&&(n=r.applyFilters(n,this.filters.read,i)),this.update(n),!0}},h._teardown=function(){if(this._bound){this.unbind&&this.unbind();var t=this._watcher;t&&t.active&&(t.removeCb(this._update),t.active||(this.vm._watchers[this.raw]=null)),this._bound=!1,this.vm=this.el=this._watcher=null}},h.set=function(t,e){if(this.twoWay&&(e&&(this._locked=!0),this._watcher.set(t),e)){var i=this;r.nextTick(function(){i._locked=!1})}},t.exports=n},function(t,e,i){function n(){}function r(t){if(void 0===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:case 48:return t;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return e>=97&&122>=e||e>=65&&90>=e?"ident":e>=49&&57>=e?"number":"else"}function s(t){function e(){var e=t[d+1];return"inSingleQuote"===p&&"'"===e||"inDoubleQuote"===p&&'"'===e?(d++,s=e,v.append(),!0):void 0}for(var i,s,o,a,c,h,l,f=[],d=-1,p="beforePath",v={push:function(){void 0!==o&&(f.push(o),o=void 0)},append:function(){void 0===o?o=s:o+=s}};p;)if(d++,i=t[d],"\\"!==i||!e()){if(a=r(i),l=u[p],c=l[a]||l["else"]||"error","error"===c)return; | ||
if(p=c[0],h=v[c[1]]||n,s=void 0===c[2]?i:c[2],h(),"afterPath"===p)return f}}function o(t){return l.test(t)?"."+t:+t===t>>>0?"["+t+"]":'["'+t.replace(/"/g,'\\"')+'"]'}var a=i(1),c=i(52),h=new c(1e3),l=/^[$_a-zA-Z]+[\w$]*$/,u={beforePath:{ws:["beforePath"],ident:["inIdent","append"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath"],".":["beforeIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:["beforeIdent"],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],0:["inIdent","append"],number:["inIdent","append"],ws:["inPath","push"],".":["beforeIdent","push"],"[":["beforeElement","push"],eof:["afterPath","push"]},beforeElement:{ws:["beforeElement"],0:["afterZero","append"],number:["inIndex","append"],"'":["inSingleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZero:{ws:["afterElement","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","append"],number:["inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSingleQuote:{"'":["afterElement"],eof:"error","else":["inSingleQuote","append"]},inDoubleQuote:{'"':["afterElement"],eof:"error","else":["inDoubleQuote","append"]},afterElement:{ws:["afterElement"],"]":["inPath","push"]}};e.compileGetter=function(t){var e="try{return o"+t.map(o).join("")+"}catch(e){};";return new Function("o",e)},e.parse=function(t){var i=h.get(t);return i||(i=s(t),i&&(i.get=e.compileGetter(i),h.put(t,i))),i},e.get=function(t,i){return i=e.parse(i),i?i.get(t):void 0},e.set=function(t,i,n){if("string"==typeof i&&(i=e.parse(i)),!i||!a.isObject(t))return!1;for(var r,s,o=0,c=i.length-1;c>o;o++)r=t,s=i[o],t=t[s],a.isObject(t)||(t={},r.$add(s,t));return s=i[o],s in t?t[s]=n:t.$add(s,n),!0}},function(t,e,i){function n(t){return t.replace(v,"\\$&")}function r(){d._delimitersChanged=!1;var t=d.delimiters[0],e=d.delimiters[1];l=t.charAt(0),u=e.charAt(e.length-1);var i=n(l),r=n(u),s=n(t),o=n(e);c=new RegExp(i+"?"+s+"(.+?)"+o+r+"?","g"),h=new RegExp("^"+i+s+".*"+o+r+"$"),a=new f(1e3)}function s(t,e,i){return t.tag?e&&t.oneTime?'"'+e.$eval(t.value)+'"':i?t.value:o(t.value):'"'+t.value+'"'}function o(t){if(m.test(t)){var e=p.parse(t)[0];if(e.filters){t=e.expression;for(var i=0,n=e.filters.length;n>i;i++){var r=e.filters[i],s=r.args?',"'+r.args.join('","')+'"':"";t='this.$options.filters["'+r.name+'"].apply(this,['+t+s+"])"}return t}return"("+t+")"}return"("+t+")"}var a,c,h,l,u,f=i(52),d=i(20),p=i(43),v=/[-.*+?^${}()|[\]\/\\]/g;e.parse=function(t){d._delimitersChanged&&r();var e=a.get(t);if(e)return e;if(!c.test(t))return null;for(var i,n,s,o,l,u,f=[],p=c.lastIndex=0;i=c.exec(t);)n=i.index,n>p&&f.push({value:t.slice(p,n)}),o=i[1].charCodeAt(0),l=42===o,u=62===o,s=l||u?i[1].slice(1):i[1],f.push({tag:!0,value:s.trim(),html:h.test(i[0]),oneTime:l,partial:u}),p=n+i[0].length;return p<t.length&&f.push({value:t.slice(p)}),a.put(t,f),f},e.tokensToExp=function(t,e){return t.length>1?t.map(function(t){return s(t,e)}).join("+"):s(t[0],e,!0)};var m=/[^|]\|[^|]/},function(t,e,i){function n(){_.raw=s.slice(p,a).trim(),void 0===_.expression?_.expression=s.slice(v,a).trim():b!==p&&r(),(0===a||_.expression)&&m.push(_)}function r(){var t,e=s.slice(b,a).trim();if(e){t={};var i=e.match(k);t.name=i[0],t.args=i.length>1?i.slice(1):null}t&&(_.filters=_.filters||[]).push(t),b=a+1}var s,o,a,c,h,l,u,f,d,p,v,m,_,b,g,y=i(1),w=i(52),$=new w(1e3),x=/^[^\{\?]+$|^'[^']*'$|^"[^"]*"$/,k=/[^\s'"]+|'[^']+'|"[^"]+"/g;e.parse=function(t){var e=$.get(t);if(e)return e;for(s=t,h=l=!1,u=f=d=p=v=0,b=0,m=[],_={},g=null,a=0,c=s.length;c>a;a++)if(o=s.charCodeAt(a),h)39===o&&(h=!h);else if(l)34===o&&(l=!l);else if(44!==o||d||u||f)if(58!==o||_.expression||_.arg)if(124===o&&124!==s.charCodeAt(a+1)&&124!==s.charCodeAt(a-1))void 0===_.expression?(b=a+1,_.expression=s.slice(v,a).trim()):r();else switch(o){case 34:l=!0;break;case 39:h=!0;break;case 40:d++;break;case 41:d--;break;case 91:f++;break;case 93:f--;break;case 123:u++;break;case 125:u--}else g=s.slice(p,a).trim(),x.test(g)&&(v=a+1,_.arg=y.stripQuotes(g)||g);else n(),_={},p=v=b=a+1;return(0===a||p!==a)&&n(),$.put(t,m),m}},function(t,e,i){function n(t){var e=$.length;return $[e]=t.replace(m,"\\n"),'"'+e+'"'}function r(t){var e=t.charAt(0),i=t.slice(1);return w.test(i)?t:(i=i.indexOf('"')>-1?i.replace(b,s):i,e+"scope."+i)}function s(t,e){return $[e]}function o(t,e){$.length=0;var i=t.replace(_,n).replace(v,"");i=(" "+i).replace(y,r).replace(b,s);var o=c(i);return o?{get:o,body:i,set:e?h(i):null}:void 0}function a(t){var e,i;return t.indexOf("[")<0?(i=t.split("."),e=u.compileGetter(i)):(i=u.parse(t),e=i.get),{get:e,set:function(t,e){u.set(t,i,e)}}}function c(t){try{return new Function("scope","return "+t+";")}catch(e){}}function h(t){try{return new Function("scope","value",t+"=value;")}catch(e){}}function l(t){t.set||(t.set=h(t.body))}var u=(i(1),i(41)),f=i(52),d=new f(1e3),p="Math,break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,undefined,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield",v=/\s/g,m=/\n/g,_=/[\{,]\s*[\w\$_]+\s*:|'[^']*'|"[^"]*"/g,b=/"(\d+)"/g,g=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\])*$/,y=/[^\w$\.]([A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\])*)/g,w=new RegExp("^("+p.replace(/,/g,"\\b|")+"\\b)"),$=[];e.parse=function(t,e){t=t.trim();var i=d.get(t);if(i)return e&&l(i),i;var n=g.test(t)?a(t):o(t,e);return d.put(t,n),n},e.pathTestRE=g},function(t,e,i){var n=i(1),r=i(53),s=i(54);e.append=function(t,e,i,n){o(t,1,function(){e.appendChild(t)},i,n)},e.before=function(t,e,i,r){o(t,1,function(){n.before(t,e)},i,r)},e.remove=function(t,e,i){o(t,-1,function(){n.remove(t)},e,i)},e.removeThenAppend=function(t,e,i,n){o(t,-1,function(){e.appendChild(t)},i,n)},e.blockAppend=function(t,i,r){for(var s=n.toArray(t.childNodes),o=0,a=s.length;a>o;o++)e.before(s[o],i,r)},e.blockRemove=function(t,i,n){for(var r,s=t.nextSibling;s!==i;)r=s.nextSibling,e.remove(s,n),s=r};var o=e.apply=function(t,e,i,o,a){var c=t.__v_trans;if(!c||!o._isCompiled||o.$parent&&!o.$parent._isCompiled)return i(),void(a&&a());var h=o.$options.transitions[c.id];h?s(t,e,i,c,h,o,a):n.transitionEndEvent?r(t,e,i,c,a):(i(),a&&a())}},function(t,e,i){function n(t,e){var i=t.nodeType;return 1===i&&"SCRIPT"!==t.tagName?r(t,e):3===i&&g.interpolate?o(t,e):void 0}function r(t,e){var i,n,r;if(t.__vue__||(n=t.tagName.toLowerCase(),r=n.indexOf("-")>0&&e.components[n],r&&t.setAttribute(g.prefix+"component",n)),(r||t.hasAttributes())&&(i=d(t,e),!i)){var o=v(t,e);i=o.length?s(o):null}if("TEXTAREA"===t.tagName){var a=i;i=function(t,e){e.value=t.$interpolate(e.value),a&&a(t,e)},i.terminal=!0}return i}function s(t){return function(e,i){for(var n,r,s,o=t.length;o--;)if(n=t[o],n._link)n._link(e,i);else for(s=n.descriptors.length,r=0;s>r;r++)e._bindDir(n.name,i,n.descriptors[r],n.def)}}function o(t,e){var i=y.parse(t.nodeValue);if(!i)return null;for(var n,r,s,o=document.createDocumentFragment(),c=e.directives,h=0,l=i.length;l>h;h++)r=i[h],s=r.value,r.tag?r.oneTime?n=document.createTextNode(s):r.html?(n=document.createComment("v-html"),r.type="html",r.def=c.html,r.descriptor=w.parse(s)[0]):r.partial?(n=document.createComment("v-partial"),r.type="partial",r.def=c.partial,r.descriptor=w.parse(s)[0]):(n=document.createTextNode(" "),r.type="text",r.def=c.text,r.descriptor=w.parse(s)[0]):n=document.createTextNode(s),o.appendChild(n);return a(i,o,e)}function a(t,e){return function(i,n){for(var r,s,o,a=e.cloneNode(!0),c=b.toArray(a.childNodes),h=0,l=t.length;l>h;h++)r=t[h],s=r.value,r.tag&&(o=c[h],r.oneTime?(s=i.$eval(s),r.html?b.replace(o,$.parse(s,!0)):o.nodeValue=s):i._bindDir(r.type,o,r.descriptor,r.def));b.replace(n,a)}}function c(t,e){for(var i,r,s,o=[],a=0,l=t.length;l>a;a++)s=t[a],i=n(s,e),r=i&&i.terminal||!s.hasChildNodes()?null:c(s.childNodes,e),o.push(i,r);return o.length?h(o):null}function h(t){return function(e,i){i=b.toArray(i);for(var n,r,s,o=0,a=0,c=t.length;c>o;a++)n=i[a],r=t[o++],s=t[o++],r&&r(e,n),s&&s(e,n.childNodes)}}function l(t,e,i){for(var n,r,s,o=[],a=e.length;a--;)if(n=e[a],r=t.getAttribute(n),null!==r){s={name:n,value:r};var c=y.parse(r);if(c){if(t.removeAttribute(n),c.length>1)continue;s.dynamic=!0,s.value=c[0].value}o.push(s)}return u(o,i)}function u(t,e){var i=e.directives["with"];return function(e,n){for(var r,s,o=t.length;o--;)r=t[o],s=b.camelize(r.name.replace(x,"")),r.dynamic?e._bindDir("with",n,{arg:s,expression:r.value},i):e.$set(s,r.value)}}function f(){}function d(t,e){if(null!==b.attr(t,"pre"))return f;for(var i,n,r=0;3>r;r++)if(n=k[r],i=b.attr(t,n))return p(t,n,i,e)}function p(t,e,i,n){var r=w.parse(i)[0],o=n.directives[e];if("component"===e){var a=v(t,n,!0);t._parentLinker=a.length?s(a):null}var c=function(t,i){t._bindDir(e,i,r,o)};return c.terminal=!0,c}function v(t,e,i){for(var n,r,s,o,a,c=b.toArray(t.attributes),h=c.length,l=[];h--;)if(n=c[h],r=n.name,0===r.indexOf(g.prefix)){if(o=r.slice(g.prefix.length),i&&("with"===o||"ref"===o))continue;a=e.directives[o],a&&l.push({name:o,descriptors:w.parse(n.value),def:a})}else g.interpolate&&(s=m(t,r,n.value,e),s&&l.push(s));return l.sort(_),l}function m(t,e,i,n){var r=y.parse(i);if(r){for(var s=n.directives.attr,o=r.length,a=!0;o--;){var c=r[o];c.tag&&!c.oneTime&&(a=!1)}return{def:s,_link:a?function(t,n){n.setAttribute(e,t.$interpolate(i))}:function(t,i){var n=y.tokensToExp(r,t),o=w.parse(e+":"+n)[0];t._bindDir("attr",i,o,s)}}}}function _(t,e){return t=t.def.priority||0,e=e.def.priority||0,t>e?1:-1}var b=i(1),g=i(20),y=i(42),w=i(43),$=i(51);t.exports=function(t,e,i){var r=!i&&e.paramAttributes,s=r?l(t,r,e):null,o=t instanceof DocumentFragment?null:n(t,e),a=o&&o.terminal||!t.hasChildNodes()?null:c(t.childNodes,e);return function(t,e){var n=t._directives.length;if(s&&s(t,e),o&&o(t,e),a&&a(t,e.childNodes),i){var r=t._directives.slice(n);return function(){for(var e=r.length;e--;)r[e]._teardown();e=t._directives.indexOf(r[0]),t._directives.splice(e,r.length)}}}};var x=/^data-/,k=["repeat","if","component"];f.terminal=!0},function(t,e,i){function n(t,e){var i=e.template,n=h.parse(i,!0);if(n){if(r(t),e.replace){if(n.childNodes.length>1)return s(n),n;var o=n.firstChild;return c.copyAttributes(t,o),s(o),o}return t.appendChild(n),s(t),t}}function r(t){var e;if(l=null,t.hasChildNodes())for(l=document.createElement("div");e=t.firstChild;)l.appendChild(e)}function s(t){var e=o(t),i=e.length;if(i){for(var n,r,s,h,u;i--;)n=e[i],l?(r=n.getAttribute("select"),r?(s=l.querySelectorAll(r),n.content=c.toArray(s.length?s:n.childNodes)):u=n):n.content=c.toArray(n.childNodes);for(i=0,h=e.length;h>i;i++)n=e[i],n!==u&&a(n,n.content);u&&a(u,c.toArray(l.childNodes))}}function o(t){return c.isArray(t)?u.apply([],t.map(o)):t.querySelectorAll?c.toArray(t.querySelectorAll("content")):[]}function a(t,e){for(var i=t.parentNode,n=0,r=e.length;r>n;n++)i.insertBefore(e[n],t);i.removeChild(t)}var c=i(1),h=i(51);t.exports=function(t,e){return"TEMPLATE"===t.tagName&&(t=h.parse(t)),e&&e.template&&(t=n(t,e)),t instanceof DocumentFragment&&(c.prepend(document.createComment("v-start"),t),t.appendChild(document.createComment("v-end"))),t};var l,u=[].concat},function(t,e,i){var n=(i(1),{_default:i(55),radio:i(56),select:i(57),checkbox:i(58)});t.exports={priority:800,twoWay:!0,handlers:n,bind:function(){var t=this.filters;t&&t.read&&!t.write;var e,i=this.el,r=i.tagName;if("INPUT"===r)e=n[i.type]||n._default;else if("SELECT"===r)e=n.select;else{if("TEXTAREA"!==r)return;e=n._default}e.bind.call(this),this.update=e.update,this.unbind=e.unbind}}},function(t,e,i){function n(t,e){t.__proto__=e}function r(t,e,i){for(var n,r=i.length;r--;)n=i[r],o.define(t,n,e[n])}function s(t,e){if(this.id=++u,this.value=t,this.active=!0,this.bindings=[],o.define(t,"__ob__",this),e===f){var i=a.proto&&o.hasProto?n:r;i(t,h,l),this.observeArray(t)}else e===d&&this.walk(t)}var o=i(1),a=i(20),c=i(39),h=i(59),l=Object.getOwnPropertyNames(h);i(60);var u=0,f=0,d=1;s.target=null;var p=s.prototype;s.create=function(t){return t&&t.hasOwnProperty("__ob__")&&t.__ob__ instanceof s?t.__ob__:o.isArray(t)?new s(t,f):o.isPlainObject(t)&&!t._isVue?new s(t,d):void 0},p.walk=function(t){for(var e,i,n=Object.keys(t),r=n.length;r--;)e=n[r],i=e.charCodeAt(0),36!==i&&95!==i&&this.convert(e,t[e])},p.observe=function(t){return s.create(t)},p.observeArray=function(t){for(var e=t.length;e--;)this.observe(t[e])},p.convert=function(t,e){var i=this,n=i.observe(e),r=new c;n&&n.bindings.push(r),Object.defineProperty(i.value,t,{enumerable:!0,configurable:!0,get:function(){return i.active&&s.target&&s.target.addDep(r),e},set:function(t){if(t!==e){var n=e&&e.__ob__;if(n){var s=n.bindings;s.splice(s.indexOf(r),1)}e=t;var o=i.observe(t);o&&o.bindings.push(r),r.notify()}}})},p.notify=function(){for(var t=this.bindings,e=0,i=t.length;i>e;e++)t[e].notify()},p.addVm=function(t){(this.vms=this.vms||[]).push(t)},p.removeVm=function(t){this.vms.splice(this.vms.indexOf(t),1)},t.exports=s},function(t,e,i){function n(){this.reset()}var r=i(1),s=n.prototype;s.push=function(t){t.id&&this.has[t.id]&&!this.flushing||(this.queue.push(t),this.has[t.id]=t,this.waiting||(this.waiting=!0,r.nextTick(this.flush,this)))},s.flush=function(){this.flushing=!0;for(var t=0;t<this.queue.length;t++){var e=this.queue[t];e.cancelled||e.run()}this.reset()},s.reset=function(){this.has={},this.queue=[],this.waiting=!1,this.flushing=!1},t.exports=n},function(t,e,i){function n(t){var e=a.get(t);if(e)return e;var i=document.createDocumentFragment(),n=l.exec(t);if(n){var r=n[1],s=h[r]||h._default,o=s[0],c=s[1],u=s[2],f=document.createElement("div");for(f.innerHTML=c+t.trim()+u;o--;)f=f.lastChild;for(var d;d=f.firstChild;)i.appendChild(d)}else i.appendChild(document.createTextNode(t));return a.put(t,i),i}function r(t){var e=t.tagName;return"TEMPLATE"===e&&t.content instanceof DocumentFragment?t.content:n("SCRIPT"===e?t.textContent:t.innerHTML)}var s=i(1),o=i(52),a=new o(100),c=s.inBrowser?function(){var t=document.createElement("div");return t.innerHTML="<template>1</template>",!t.cloneNode(!0).firstChild.innerHTML}():!1,h={_default:[0,"",""],legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]};h.td=h.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],h.option=h.optgroup=[1,'<select multiple="multiple">',"</select>"],h.thead=h.tbody=h.colgroup=h.caption=h.tfoot=[1,"<table>","</table>"],h.g=h.defs=h.symbol=h.use=h.image=h.text=h.circle=h.ellipse=h.line=h.path=h.polygon=h.polyline=h.rect=[1,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events"version="1.1">',"</svg>"];var l=/<([\w:]+)/;e.clone=function(t){var e=t.cloneNode(!0);if(c){var i=t.querySelectorAll("template");if(i.length)for(var n=e.querySelectorAll("template"),r=n.length;r--;)n[r].parentNode.replaceChild(i[r].cloneNode(!0),n[r])}return e},e.parse=function(t,i){var s,o;return t instanceof DocumentFragment?i?t.cloneNode(!0):t:("string"==typeof t?"#"===t.charAt(0)?(o=a.get(t),o||(s=document.getElementById(t.slice(1)),s&&(o=r(s),a.put(t,o)))):o=n(t):t.nodeType&&(o=r(t)),o&&i?e.clone(o):o)}},function(t){function e(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap={}}var i=e.prototype;i.put=function(t,e){var i={key:t,value:e};return this._keymap[t]=i,this.tail?(this.tail.newer=i,i.older=this.tail):this.head=i,this.tail=i,this.size===this.limit?this.shift():void this.size++},i.shift=function(){var t=this.head;return t&&(this.head=this.head.newer,this.head.older=void 0,t.newer=t.older=void 0,this._keymap[t.key]=void 0),t},i.get=function(t,e){var i=this._keymap[t];if(void 0!==i)return i===this.tail?e?i:i.value:(i.newer&&(i===this.head&&(this.head=i.newer),i.newer.older=i.older),i.older&&(i.older.newer=i.newer),i.newer=void 0,i.older=this.tail,this.tail&&(this.tail.newer=i),this.tail=i,e?i:i.value)},t.exports=e},function(t,e,i){function n(t,e,i,n,s){f.push({el:t,dir:e,cb:s,cls:n,op:i}),d||(d=!0,a.nextTick(r))}function r(){document.documentElement.offsetHeight;f.forEach(s),f=[],d=!1}function s(t){function e(t,e){n.event=t;var r=n.callback=function(o){o.target===i&&(a.off(i,t,r),n.event=n.callback=null,e&&e(),s&&s())};a.on(i,t,r)}var i=t.el,n=i.__v_trans,r=t.cls,s=t.cb,c=t.op,l=o(i,n,r);if(t.dir>0)1===l?(h(i,r),s&&e(a.transitionEndEvent)):2===l?e(a.animationEndEvent,function(){h(i,r)}):(h(i,r),s&&s());else if(l){var u=1===l?a.transitionEndEvent:a.animationEndEvent;e(u,function(){c(),h(i,r)})}else c(),h(i,r),s&&s()}function o(t,e,i){var n=e.cache&&e.cache[i];if(n)return n;var r=t.style,s=window.getComputedStyle(t),o=r[l]||s[l];if(o&&"0s"!==o)n=1;else{var a=r[u]||s[u];a&&"0s"!==a&&(n=2)}return n&&(e.cache||(e.cache={}),e.cache[i]=n),n}var a=i(1),c=a.addClass,h=a.removeClass,l=a.transitionProp+"Duration",u=a.animationProp+"Duration",f=[],d=!1;t.exports=function(t,e,i,r,s){var o=r.id||"v",l=o+"-enter",u=o+"-leave";r.callback&&(a.off(t,r.event,r.callback),h(t,l),h(t,u),r.event=r.callback=null),e>0?(c(t,l),i(),n(t,e,null,l,s)):(c(t,u),n(t,e,i,u,s))}},function(t){t.exports=function(t,e,i,n,r,s,o){n.cancel&&(n.cancel(),n.cancel=null),e>0?(r.beforeEnter&&r.beforeEnter.call(s,t),i(),r.enter?n.cancel=r.enter.call(s,t,function(){n.cancel=null,o&&o()}):o&&o()):r.leave?n.cancel=r.leave.call(s,t,function(){n.cancel=null,i(),o&&o()}):(i(),o&&o())}},function(t,e,i){var n=i(1);t.exports={bind:function(){function t(){e.set(s?n.toNumber(i.value):i.value,!0)}var e=this,i=this.el,r=i.hasAttribute("lazy");r&&i.removeAttribute("lazy");var s=i.hasAttribute("number")||"number"===i.type;s&&i.removeAttribute("number");var o=!1;this.cpLock=function(){o=!0},this.cpUnlock=function(){o=!1,t()},n.on(i,"compositionstart",this.cpLock),n.on(i,"compositionend",this.cpUnlock),this.listener=function(){if(!o){var r;try{r=i.value.length-i.selectionStart}catch(s){}t(),n.nextTick(function(){var t=e._watcher.value;if(e.update(t),null!=r){var s=n.toString(t).length-r;i.setSelectionRange(s,s)}})}},this.event=r?"change":"input",n.on(i,this.event,this.listener),!r&&n.isIE9&&(this.onCut=function(){n.nextTick(e.listener)},this.onDel=function(t){(46===t.keyCode||8===t.keyCode)&&e.listener()},n.on(i,"cut",this.onCut),n.on(i,"keyup",this.onDel)),(i.hasAttribute("value")||"TEXTAREA"===i.tagName&&i.value.trim())&&(this._initValue=s?n.toNumber(i.value):i.value)},update:function(t){this.el.value=n.toString(t)},unbind:function(){var t=this.el;n.off(t,this.event,this.listener),n.off(t,"compositionstart",this.cpLock),n.off(t,"compositionend",this.cpUnlock),this.onCut&&(n.off(t,"cut",this.onCut),n.off(t,"keyup",this.onDel))}}},function(t,e,i){var n=i(1);t.exports={bind:function(){var t=this,e=this.el;this.listener=function(){t.set(e.value,!0)},n.on(e,"change",this.listener),e.checked&&(this._initValue=e.value)},update:function(t){this.el.checked=t==this.el.value},unbind:function(){n.off(this.el,"change",this.listener)}}},function(t,e,i){function n(t){function e(t){l.isArray(t)&&(i.el.innerHTML="",r(i.el,t),i._watcher&&i.update(i._watcher.value))}var i=this;this.optionWatcher=new u(this.vm,t,e),e(this.optionWatcher.value)}function r(t,e){for(var i,n,s=0,o=e.length;o>s;s++)i=e[s],i.options?(n=document.createElement("optgroup"),n.label=i.label,r(n,i.options)):(n=document.createElement("option"),"string"==typeof i?n.text=n.value=i:(n.text=i.text,n.value=i.value)),t.appendChild(n)}function s(){for(var t,e=this.el.options,i=0,n=e.length;n>i;i++)e[i].hasAttribute("selected")&&(this.multiple?(t||(t=[])).push(e[i].value):t=e[i].value);t&&(this._initValue=t)}function o(t){return Array.prototype.filter.call(t.options,a).map(c)}function a(t){return t.selected}function c(t){return t.value||t.text}function h(t,e){for(var i=t.length;i--;)if(t[i]==e)return i;return-1}var l=i(1),u=i(21);t.exports={bind:function(){var t=this,e=this.el,i=e.getAttribute("options");i&&(e.removeAttribute("options"),n.call(this,i)),this.multiple=e.hasAttribute("multiple"),this.listener=function(){var i=t.multiple?o(e):e.value;t.set(i,!0)},l.on(e,"change",this.listener),s.call(this)},update:function(t){var e=this.el;e.selectedIndex=-1;for(var i,n=this.multiple&&l.isArray(t),r=e.options,s=r.length;s--;)i=r[s],i.selected=n?h(t,i.value)>-1:t==i.value},unbind:function(){l.off(this.el,"change",this.listener),this.optionWatcher&&this.optionWatcher.teardown()}}},function(t,e,i){var n=i(1);t.exports={bind:function(){var t=this,e=this.el;this.listener=function(){t.set(e.checked,!0)},n.on(e,"change",this.listener),e.checked&&(this._initValue=e.checked)},update:function(t){this.el.checked=!!t},unbind:function(){n.off(this.el,"change",this.listener)}}},function(t,e,i){var n=i(1),r=Array.prototype,s=Object.create(r);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=r[t];n.define(s,t,function(){for(var i=arguments.length,n=new Array(i);i--;)n[i]=arguments[i];var r,s=e.apply(this,n),o=this.__ob__;switch(t){case"push":r=n;break;case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&o.observeArray(r),o.notify(),s})}),n.define(r,"$set",function(t,e){return t>=this.length&&(this.length=t+1),this.splice(t,1,e)[0]}),n.define(r,"$remove",function(t){return"number"!=typeof t&&(t=this.indexOf(t)),t>-1?this.splice(t,1)[0]:void 0}),t.exports=s},function(t,e,i){var n=i(1),r=Object.prototype;n.define(r,"$add",function(t,e){var i=this.__ob__;if(!i)return void(this[t]=e);if(!n.isReserved(t)&&!this.hasOwnProperty(t))if(i.convert(t,e),i.vms)for(var r=i.vms.length;r--;){var s=i.vms[r];s._proxy(t),s._digest()}else i.notify()}),n.define(r,"$delete",function(t){var e=this.__ob__;if(!e)return void delete this[t];if(!n.isReserved(t)&&this.hasOwnProperty(t))if(delete this[t],e.vms)for(var i=e.vms.length;i--;){var r=e.vms[i];r._unproxy(t),r._digest()}else e.notify()})}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):"object"==typeof exports?exports.Vue=e():t.Vue=e()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){function n(t){this._init(t)}var r=i(1),s=r.extend;s(n,i(2)),n.options={directives:i(8),filters:i(9),partials:{},transitions:{},components:{}};var o=n.prototype;Object.defineProperty(o,"$data",{get:function(){return this._data},set:function(t){this._setData(t)}}),s(o,i(10)),s(o,i(11)),s(o,i(12)),s(o,i(13)),s(o,i(3)),s(o,i(4)),s(o,i(5)),s(o,i(6)),s(o,i(7)),t.exports=r.Vue=n},function(t,e,i){var n=i(14),r=n.extend;r(e,n),r(e,i(15)),r(e,i(16)),r(e,i(17)),r(e,i(18))},function(t,e,i){function n(t){return new Function("return function "+s.camelize(t,!0)+" (options) { this._init(options) }")()}function r(t){c.forEach(function(e){t[e]=function(t,i){return i?void(this.options[e+"s"][t]=i):this.options[e+"s"][t]}}),t.component=function(t,e){return e?(s.isPlainObject(e)&&(e.name=t,e=s.Vue.extend(e)),void(this.options.components[t]=e)):this.options.components[t]}}var s=i(1),o=i(19);e.util=s,e.nextTick=s.nextTick,e.config=i(20),e.compiler={compile:i(41),transclude:i(42)},e.parsers={path:i(43),text:i(44),template:i(45),directive:i(46),expression:i(47)},e.cid=0;var a=1;e.extend=function(t){t=t||{};var e=this,i=n(t.name||"VueComponent");return i.prototype=Object.create(e.prototype),i.prototype.constructor=i,i.cid=a++,i.options=o(e.options,t),i["super"]=e,i.extend=e.extend,r(i),i},e.use=function(t){var e=s.toArray(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),this};var c=["directive","filter","partial","transition"];r(e)},function(t,e,i){var n=i(1),r=i(21),s=i(43),o=i(44),a=i(46),c=i(47),h=/[^|]\|[^|]/;e.$get=function(t){var e=c.parse(t);return e?e.get.call(this,this):void 0},e.$set=function(t,e){var i=c.parse(t,!0);i&&i.set&&i.set.call(this,this,e)},e.$add=function(t,e){this._data.$add(t,e)},e.$delete=function(t){this._data.$delete(t)},e.$watch=function(t,e,i,n){var s=this,o=i?t+"**deep**":t,a=s._userWatchers[o],c=function(t,i){e.call(s,t,i)};return a?a.addCb(c):a=s._userWatchers[o]=new r(s,t,c,null,!1,i),n&&c(a.value),function(){a.removeCb(c),a.active||(s._userWatchers[o]=null)}},e.$eval=function(t){if(h.test(t)){var e=a.parse(t)[0];return e.filters?n.applyFilters(this.$get(e.expression),n.resolveFilters(this,e.filters).read,this):this.$get(e.expression)}return this.$get(t)},e.$interpolate=function(t){var e=o.parse(t),i=this;return e?1===e.length?i.$eval(e[0].value):e.map(function(t){return t.tag?i.$eval(t.value):t.value}).join(""):t},e.$log=function(t){var e=t?s.get(this._data,t):this._data;e&&(e=JSON.parse(JSON.stringify(e))),console.log(e)}},function(t,e,i){function n(t,e,i,n,o,a){e=s(e);var c=!h.inDoc(e),l=n===!1||c?o:a,u=!c&&!t._isAttached&&!h.inDoc(t.$el);return t._isBlock?r(t,e,l,i):l(t.$el,e,t,i),u&&t._callHook("attached"),t}function r(t,e,i,n){for(var r,s=t._blockStart,o=t._blockEnd;r!==o;)r=s.nextSibling,i(s,e,t),s=r;i(o,e,t,n)}function s(t){return"string"==typeof t?document.querySelector(t):t}function o(t,e,i,n){e.appendChild(t),n&&n()}function a(t,e,i,n){h.before(t,e),n&&n()}function c(t,e,i){h.remove(t),i&&i()}var h=i(1),l=i(48);e.$appendTo=function(t,e,i){return n(this,t,e,i,o,l.append)},e.$prependTo=function(t,e,i){return t=s(t),t.hasChildNodes()?this.$before(t.firstChild,e,i):this.$appendTo(t,e,i),this},e.$before=function(t,e,i){return n(this,t,e,i,a,l.before)},e.$after=function(t,e,i){return t=s(t),t.nextSibling?this.$before(t.nextSibling,e,i):this.$appendTo(t.parentNode,e,i),this},e.$remove=function(t,e){var i=this._isAttached&&h.inDoc(this.$el);i||(e=!1);var n,s=this,a=function(){i&&s._callHook("detached"),t&&t()};return this._isBlock&&!this._blockFragment.hasChildNodes()?(n=e===!1?o:l.removeThenAppend,r(this,this._blockFragment,n,a)):(n=e===!1?c:l.remove)(this.$el,this,a),this}},function(t,e,i){function n(t,e,i){var n=t.$parent;if(n&&i&&!s.test(e))for(;n;)n._eventsCount[e]=(n._eventsCount[e]||0)+i,n=n.$parent}var r=i(1);e.$on=function(t,e){return(this._events[t]||(this._events[t]=[])).push(e),n(this,t,1),this},e.$once=function(t,e){function i(){n.$off(t,i),e.apply(this,arguments)}var n=this;return i.fn=e,this.$on(t,i),this},e.$off=function(t,e){var i;if(!arguments.length){if(this.$parent)for(t in this._events)i=this._events[t],i&&n(this,t,-i.length);return this._events={},this}if(i=this._events[t],!i)return this;if(1===arguments.length)return n(this,t,-i.length),this._events[t]=null,this;for(var r,s=i.length;s--;)if(r=i[s],r===e||r.fn===e){n(this,t,-1),i.splice(s,1);break}return this},e.$emit=function(t){this._eventCancelled=!1;var e=this._events[t];if(e){for(var i=arguments.length-1,n=new Array(i);i--;)n[i]=arguments[i+1];i=0,e=e.length>1?r.toArray(e):e;for(var s=e.length;s>i;i++)e[i].apply(this,n)===!1&&(this._eventCancelled=!0)}return this},e.$broadcast=function(t){if(this._eventsCount[t]){var e=this._children;if(e)for(var i=0,n=e.length;n>i;i++){var r=e[i];r.$emit.apply(r,arguments),r._eventCancelled||r.$broadcast.apply(r,arguments)}return this}},e.$dispatch=function(){for(var t=this.$parent;t;)t.$emit.apply(t,arguments),t=t._eventCancelled?null:t.$parent;return this};var s=/^hook:/},function(t,e,i){var n=i(1);e.$addChild=function(t,e){e=e||n.Vue,t=t||{};var i,r=this,s=void 0!==t.inherit?t.inherit:e.options.inherit;if(s){var o=r._childCtors;if(o||(o=r._childCtors={}),i=o[e.cid],!i){var a=e.options.name,c=a?n.camelize(a,!0):"VueComponent";i=new Function("return function "+c+" (options) {this.constructor = "+c+";this._init(options) }")(),i.options=e.options,i.prototype=this,o[e.cid]=i}}else i=e;t._parent=r,t._root=r.$root;var h=new i(t);return this._children||(this._children=[]),this._children.push(h),h}},function(t,e,i){function n(){this._isAttached=!0,this._isReady=!0,this._callHook("ready")}var r=i(1),s=i(41);e.$mount=function(t){if(!this._isCompiled){if(t){if("string"==typeof t){if(t=document.querySelector(t),!t)return}}else t=document.createElement("div");return this._compile(t),this._isCompiled=!0,this._callHook("compiled"),r.inDoc(this.$el)?(this._callHook("attached"),this._initDOMHooks(),n.call(this)):(this._initDOMHooks(),this.$once("hook:attached",n)),this}},e.$destroy=function(t,e){if(!this._isBeingDestroyed){this._callHook("beforeDestroy"),this._isBeingDestroyed=!0;var i,n=this.$parent;if(n&&!n._isBeingDestroyed&&(i=n._children.indexOf(this),n._children.splice(i,1)),this._children)for(i=this._children.length;i--;)this._children[i].$destroy();for(i=this._directives.length;i--;)this._directives[i]._teardown();for(i in this._userWatchers)this._userWatchers[i].teardown();this.$el&&(this.$el.__vue__=null);var r=this;t&&this.$el?this.$remove(function(){r._cleanup()}):e||this._cleanup()}},e._cleanup=function(){this._data.__ob__.removeVm(this),this._data=this._watchers=this._userWatchers=this._watcherList=this.$el=this.$parent=this.$root=this._children=this._directives=null,this._isDestroyed=!0,this._callHook("destroyed"),this.$off()},e.$compile=function(t){return s(t,this.$options,!0)(this,t)}},function(t,e,i){e.text=i(22),e.html=i(23),e.attr=i(24),e.show=i(25),e["class"]=i(26),e.el=i(27),e.ref=i(28),e.cloak=i(29),e.style=i(30),e.partial=i(31),e.transition=i(32),e.on=i(33),e.model=i(49),e.component=i(34),e.repeat=i(35),e["if"]=i(36),e["with"]=i(37)},function(t,e,i){var n=i(1);e.json={read:function(t,e){return"string"==typeof t?t:JSON.stringify(t,null,Number(e)||2)},write:function(t){try{return JSON.parse(t)}catch(e){return t}}},e.capitalize=function(t){return t||0===t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""},e.uppercase=function(t){return t||0===t?t.toString().toUpperCase():""},e.lowercase=function(t){return t||0===t?t.toString().toLowerCase():""};var r=/(\d{3})(?=\d)/g;e.currency=function(t,e){if(t=parseFloat(t),!t&&0!==t)return"";e=e||"$";var i=Math.floor(Math.abs(t)).toString(),n=i.length%3,s=n>0?i.slice(0,n)+(i.length>3?",":""):"",o="."+t.toFixed(2).slice(-2);return(0>t?"-":"")+e+s+i.slice(n).replace(r,"$1,")+o},e.pluralize=function(t){var e=n.toArray(arguments,1);return e.length>1?e[t%10-1]||e[e.length-1]:e[0]+(1===t?"":"s")};var s={enter:13,tab:9,"delete":46,up:38,left:37,right:39,down:40,esc:27};e.key=function(t,e){if(t){var i=s[e];return i||(i=parseInt(e,10)),function(e){return e.keyCode===i?t.call(this,e):void 0}}},e.key.keyCodes=s,n.extend(e,i(38))},function(t,e,i){var n=i(19);e._init=function(t){t=t||{},this.$el=null,this.$parent=t._parent,this.$root=t._root||this,this.$={},this.$$={},this._watcherList=[],this._watchers={},this._userWatchers={},this._directives=[],this._isVue=!0,this._events={},this._eventsCount={},this._eventCancelled=!1,this._isBlock=!1,this._blockStart=this._blockEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=!1,this._children=this._childCtors=null,t=this.$options=n(this.constructor.options,t,this),this._data=t.data||{},this._initScope(),this._initEvents(),this._callHook("created"),t.el&&this.$mount(t.el)}},function(t,e,i){function n(t,e,i){if(i){var n,s,o,c;for(s in i)if(n=i[s],a.isArray(n))for(o=0,c=n.length;c>o;o++)r(t,e,s,n[o]);else r(t,e,s,n)}}function r(t,e,i,n){var r=typeof n;if("function"===r)t[e](i,n);else if("string"===r){var s=t.$options.methods,o=s&&s[n];o&&t[e](i,o)}}function s(){this._isAttached=!0;var t=this._children;if(t)for(var e=0,i=t.length;i>e;e++){var n=t[e];!n._isAttached&&c(n.$el)&&n._callHook("attached")}}function o(){this._isAttached=!1;var t=this._children;if(t)for(var e=0,i=t.length;i>e;e++){var n=t[e];n._isAttached&&!c(n.$el)&&n._callHook("detached")}}var a=i(1),c=a.inDoc;e._initEvents=function(){var t=this.$options;n(this,"$on",t.events),n(this,"$watch",t.watch)},e._initDOMHooks=function(){this.$on("hook:attached",s),this.$on("hook:detached",o)},e._callHook=function(t){var e=this.$options[t];if(e)for(var i=0,n=e.length;n>i;i++)e[i].call(this);this.$emit("hook:"+t)}},function(t,e,i){function n(){}var r=i(1),s=i(50),o=i(39);e._initScope=function(){this._initData(),this._initComputed(),this._initMethods(),this._initMeta()},e._initData=function(){for(var t,e=this._data,i=Object.keys(e),n=i.length;n--;)t=i[n],r.isReserved(t)||this._proxy(t);s.create(e).addVm(this)},e._setData=function(t){t=t||{};var e=this._data;this._data=t;var i,n,o;for(i=Object.keys(e),o=i.length;o--;)n=i[o],r.isReserved(n)||n in t||this._unproxy(n);for(i=Object.keys(t),o=i.length;o--;)n=i[o],this.hasOwnProperty(n)||r.isReserved(n)||this._proxy(n);e.__ob__.removeVm(this),s.create(t).addVm(this),this._digest()},e._proxy=function(t){var e=this;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(i){e._data[t]=i}})},e._unproxy=function(t){delete this[t]},e._digest=function(){for(var t=this._watcherList.length;t--;)this._watcherList[t].update();var e,i=this._children;if(i)for(t=i.length;t--;)e=i[t],e.$options.inherit&&e._digest()},e._initComputed=function(){var t=this.$options.computed;if(t)for(var e in t){var i=t[e],s={enumerable:!0,configurable:!0};"function"==typeof i?(s.get=r.bind(i,this),s.set=n):(s.get=i.get?r.bind(i.get,this):n,s.set=i.set?r.bind(i.set,this):n),Object.defineProperty(this,e,s)}},e._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=r.bind(t[e],this)},e._initMeta=function(){var t=this.$options._meta;if(t)for(var e in t)this._defineMeta(e,t[e])},e._defineMeta=function(t,e){var i=new o;Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:function(){return s.target&&s.target.addDep(i),e},set:function(t){t!==e&&(e=t,i.notify())}})}},function(t,e,i){var n=i(1),r=i(40),s=i(41),o=i(42);e._compile=function(t){var e=this.$options;if(e._linker)this._initElement(t),e._linker(this,t);else{var i=t;t=o(t,e),this._initElement(t);var r=s(t,e);r(this,t),e.replace&&n.replace(i,t)}return t},e._initElement=function(t){t instanceof DocumentFragment?(this._isBlock=!0,this.$el=this._blockStart=t.firstChild,this._blockEnd=t.lastChild,this._blockFragment=t):this.$el=t,this.$el.__vue__=this,this._callHook("beforeCompile")},e._bindDir=function(t,e,i,n,s){this._directives.push(new r(t,e,this,i,n,s))}},function(t,e){e.isReserved=function(t){var e=t.charCodeAt(0);return 36===e||95===e},e.toString=function(t){return null==t?"":t.toString()},e.toNumber=function(t){return isNaN(t)||null===t||"boolean"==typeof t?t:Number(t)},e.stripQuotes=function(t){var e=t.charCodeAt(0),i=t.charCodeAt(t.length-1);return e!==i||34!==e&&39!==e?!1:t.slice(1,-1)};var i=/[-_](\w)/g,n=/(?:^|[-_])(\w)/g;e.camelize=function(t,e){var r=e?n:i;return t.replace(r,function(t,e){return e?e.toUpperCase():""})},e.bind=function(t,e){return function(){return t.apply(e,arguments)}},e.toArray=function(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n},e.extend=function(t,e){for(var i in e)t[i]=e[i];return t},e.isObject=function(t){return t&&"object"==typeof t};var r=Object.prototype.toString;e.isPlainObject=function(t){return"[object Object]"===r.call(t)},e.isArray=function(t){return Array.isArray(t)},e.define=function(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}},function(t,e){e.hasProto="__proto__"in{};var i=Object.prototype.toString,n=e.inBrowser="undefined"!=typeof window&&"[object Object]"!==i.call(window),r=n?window.requestAnimationFrame||window.webkitRequestAnimationFrame||setTimeout:setTimeout;if(e.nextTick=function(t,e){e?r(function(){t.call(e)},0):r(t,0)},e.isIE9=n&&navigator.userAgent.indexOf("MSIE 9.0")>0,n&&!e.isIE9){var s=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,o=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;e.transitionProp=s?"WebkitTransition":"transition",e.transitionEndEvent=s?"webkitTransitionEnd":"transitionend",e.animationProp=o?"WebkitAnimation":"animation",e.animationEndEvent=o?"webkitAnimationEnd":"animationend"}},function(t,e,i){var n=i(20),r="undefined"!=typeof document&&document.documentElement;e.inDoc=function(t){return r&&r.contains(t)},e.attr=function(t,e){e=n.prefix+e;var i=t.getAttribute(e);return null!==i&&t.removeAttribute(e),i},e.before=function(t,e){e.parentNode.insertBefore(t,e)},e.after=function(t,i){i.nextSibling?e.before(t,i.nextSibling):i.parentNode.appendChild(t)},e.remove=function(t){t.parentNode.removeChild(t)},e.prepend=function(t,i){i.firstChild?e.before(t,i.firstChild):i.appendChild(t)},e.replace=function(t,e){var i=t.parentNode;i&&i.replaceChild(e,t)},e.copyAttributes=function(t,e){if(t.hasAttributes())for(var i=t.attributes,n=0,r=i.length;r>n;n++){var s=i[n];e.setAttribute(s.name,s.value)}},e.on=function(t,e,i){t.addEventListener(e,i)},e.off=function(t,e,i){t.removeEventListener(e,i)},e.addClass=function(t,e){if(t.classList)t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&t.setAttribute("class",(i+e).trim())}},e.removeClass=function(t,e){if(t.classList)t.classList.remove(e);else{for(var i=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";i.indexOf(n)>=0;)i=i.replace(n," ");t.setAttribute("class",i.trim())}}},function(t,e,i){i(18);e.resolveFilters=function(t,e,i){if(e){var n=i||{};return e.forEach(function(e){var i=t.$options.filters[e.name];if(i){var r,s,o=e.args;"function"==typeof i?r=i:(r=i.read,s=i.write),r&&(n.read||(n.read=[]),n.read.push(function(e){return o?r.apply(t,[e].concat(o)):r.call(t,e)})),s&&(n.write||(n.write=[]),n.write.push(function(e,i){return o?s.apply(t,[e,i].concat(o)):s.call(t,e,i)}))}}),n}},e.applyFilters=function(t,e,i,n){if(!e)return t;for(var r=0,s=e.length;s>r;r++)t=e[r].call(i,t,n);return t}},function(t,e,i){i(20)},function(t,e,i){function n(t,e){var i,r,o;for(i in e)r=t[i],o=e[i],t.hasOwnProperty(i)?s.isObject(r)&&s.isObject(o)&&n(r,o):t.$add(i,o);return t}function r(t){if(t){var e;for(var i in t)e=t[i],s.isPlainObject(e)&&(e.name=i,t[i]=s.Vue.extend(e))}}var s=i(1),o=s.extend,a=Object.create(null);a.data=function(t,e,i){if(i){var r="function"==typeof e?e.call(i):e,s="function"==typeof t?t.call(i):void 0;return r?n(r,s):s}return e?"function"!=typeof e?t:t?function(){return n(e.call(this),t.call(this))}:e:t},a.el=function(t,e,i){if(i||!e||"function"==typeof e){var n=e||t;return i&&"function"==typeof n?n.call(i):n}},a.created=a.ready=a.attached=a.detached=a.beforeCompile=a.compiled=a.beforeDestroy=a.destroyed=a.paramAttributes=function(t,e){return e?t?t.concat(e):s.isArray(e)?e:[e]:t},a.directives=a.filters=a.partials=a.transitions=a.components=function(t,e,i,n){var r=Object.create(i&&i.$parent?i.$parent.$options[n]:s.Vue.options[n]);if(t)for(var a,c=Object.keys(t),h=c.length;h--;)a=c[h],r[a]=t[a];return e&&o(r,e),r},a.watch=a.events=function(t,e){if(!e)return t;if(!t)return e;var i={};o(i,t);for(var n in e){var r=i[n],s=e[n];i[n]=r?r.concat(s):[s]}return i},a.methods=a.computed=function(t,e){if(!e)return t;if(!t)return e;var i=Object.create(t);return o(i,e),i};var c=function(t,e){return void 0===e?t:e};t.exports=function(t,e,i){function n(t,e,n){var r=a[n]||c;o[n]=r(t,e,i,n)}r(e.components);var s,o={};for(s in t)n(t[s],e[s],s);for(s in e)t.hasOwnProperty(s)||n(t[s],e[s],s);var h=e.mixins;if(h)for(var l=0,u=h.length;u>l;l++)for(s in h[l])n(o[s],h[l][s],s);return o}},function(t){t.exports={prefix:"v-",debug:!1,silent:!1,proto:!0,interpolate:!0,async:!0,_delimitersChanged:!0};var e=["{{","}}"];Object.defineProperty(t.exports,"delimiters",{get:function(){return e},set:function(t){e=t,this._delimitersChanged=!0}})},function(t,e,i){function n(t,e,i,n,r,s){this.vm=t,t._watcherList.push(this),this.expression=e,this.cbs=[i],this.id=++u,this.active=!0,this.deep=s,this.deps=Object.create(null),this.readFilters=n&&n.read,this.writeFilters=n&&n.write;var o=c.parse(e,r);this.getter=o.get,this.setter=o.set,this.value=this.get()}function r(t){var e,i,n;for(e in t)if(i=t[e],s.isArray(i))for(n=i.length;n--;)r(i[n]);else s.isObject(i)&&r(i)}var s=i(1),o=i(20),a=i(50),c=i(47),h=i(51),l=new h,u=0,f=n.prototype;f.addDep=function(t){var e=t.id;this.newDeps[e]||(this.newDeps[e]=t,this.deps[e]||(this.deps[e]=t,t.addSub(this)))},f.get=function(){this.beforeGet();var t,e=this.vm;try{t=this.getter.call(e,e)}catch(i){}return this.deep&&r(t),t=s.applyFilters(t,this.readFilters,e),this.afterGet(),t},f.set=function(t){var e=this.vm;t=s.applyFilters(t,this.writeFilters,e,this.value);try{this.setter.call(e,e,t)}catch(i){}},f.beforeGet=function(){a.target=this,this.newDeps={}},f.afterGet=function(){a.target=null;for(var t in this.deps)this.newDeps[t]||this.deps[t].removeSub(this);this.deps=this.newDeps},f.update=function(){o.async?l.push(this):this.run()},f.run=function(){if(this.active){var t=this.get();if("object"==typeof t&&null!==t||t!==this.value){var e=this.value;this.value=t;for(var i=this.cbs,n=0,r=i.length;r>n;n++){i[n](t,e);var s=r-i.length;s&&(n-=s,r-=s)}}}},f.addCb=function(t){this.cbs.push(t)},f.removeCb=function(t){var e=this.cbs;if(e.length>1){var i=e.indexOf(t);i>-1&&e.splice(i,1)}else t===e[0]&&this.teardown()},f.teardown=function(){if(this.active){if(!this.vm._isBeingDestroyed){var t=this.vm._watcherList;t.splice(t.indexOf(this))}for(var e in this.deps)this.deps[e].removeSub(this);this.active=!1,this.vm=this.cbs=this.value=null}},t.exports=n},function(t,e,i){var n=i(1);t.exports={bind:function(){this.attr=3===this.el.nodeType?"nodeValue":"textContent"},update:function(t){this.el[this.attr]=n.toString(t)}}},function(t,e,i){var n=i(1),r=i(45);t.exports={bind:function(){8===this.el.nodeType&&(this.nodes=[])},update:function(t){t=n.toString(t),this.nodes?this.swap(t):this.el.innerHTML=t},swap:function(t){for(var e=this.nodes.length;e--;)n.remove(this.nodes[e]);var i=r.parse(t,!0);this.nodes=n.toArray(i.childNodes),n.before(i,this.el)}}},function(t){function e(t){t||0===t?this.el.setAttribute(this.arg,t):this.el.removeAttribute(this.arg)}function i(t){null!=t?this.el.setAttributeNS(n,this.arg,t):this.el.removeAttributeNS(n,"href")}var n="http://www.w3.org/1999/xlink",r=/^xlink:/;t.exports={priority:850,bind:function(){var t=this.arg;this.update=r.test(t)?i:e}}},function(t,e,i){var n=i(48);t.exports=function(t){var e=this.el;n.apply(e,t?1:-1,function(){e.style.display=t?"":"none"},this.vm)}},function(t,e,i){var n=i(1),r=n.addClass,s=n.removeClass;t.exports=function(t){if(this.arg){var e=t?r:s;e(this.el,this.arg)}else this.lastVal&&s(this.el,this.lastVal),t&&(r(this.el,t),this.lastVal=t)}},function(t){t.exports={isLiteral:!0,bind:function(){this.vm.$$[this.expression]=this.el},unbind:function(){delete this.vm.$$[this.expression]}}},function(t,e,i){i(1);t.exports={isLiteral:!0,bind:function(){this.el===this.vm.$el&&(this.owner=this.vm.$parent,this.owner.$[this.expression]=this.vm)},unbind:function(){this.owner.$[this.expression]===this.vm&&delete this.owner.$[this.expression]}}},function(t,e,i){var n=i(20);t.exports={bind:function(){var t=this.el;this.vm.$once("hook:compiled",function(){t.removeAttribute(n.prefix+"cloak")})}}},function(t){var e=["-webkit-","-moz-","-ms-"],i=/!important;?$/;t.exports={deep:!0,bind:function(){var t=this.arg;t&&(this.prop=t)},update:function(t){if(this.prop)this.setCssProperty(this.prop,t);else if("object"==typeof t)for(var e in t)this.setCssProperty(e,t[e]);else this.el.style.cssText=t},setCssProperty:function(t,n){var r=!1;"$"===t.charAt(0)&&(t=t.slice(1),r=!0),null!=n&&(n+="");var s=i.test(n)?"important":"";if(s&&(n=n.replace(i,"").trim()),this.el.style.setProperty(t,n,s),r)for(var o=e.length;o--;)this.el.style.setProperty(e[o]+t,n,s)}}},function(t,e,i){var n=i(1),r=i(45),s=i(36);t.exports={isLiteral:!0,compile:s.compile,teardown:s.teardown,bind:function(){var t=this.el;this.start=document.createComment("v-partial-start"),this.end=document.createComment("v-partial-end"),8!==t.nodeType&&(t.innerHTML=""),"TEMPLATE"===t.tagName||8===t.nodeType?n.replace(t,this.end):t.appendChild(this.end),n.before(this.start,this.end),this._isDynamicLiteral||this.insert(this.expression)},update:function(t){this.teardown(),this.insert(t)},insert:function(t){var e=this.vm.$options.partials[t];e&&this.compile(r.parse(e))}}},function(t){t.exports={priority:1e3,isLiteral:!0,bind:function(){this.el.__v_trans={id:this.expression}}}},function(t,e,i){var n=i(1);t.exports={acceptStatement:!0,priority:700,bind:function(){if("IFRAME"===this.el.tagName&&"load"!==this.arg){var t=this;this.iframeBind=function(){n.on(t.el.contentWindow,t.arg,t.handler)},n.on(this.el,"load",this.iframeBind)}},update:function(t){if("function"==typeof t){this.reset();var e=this.vm;this.handler=function(i){i.targetVM=e,e.$event=i;var n=t(i);return e.$event=null,n},this.iframeBind?this.iframeBind():n.on(this.el,this.arg,this.handler)}},reset:function(){var t=this.iframeBind?this.el.contentWindow:this.el;this.handler&&n.off(t,this.arg,this.handler)},unbind:function(){this.reset(),n.off(this.el,"load",this.iframeBind)}}},function(t,e,i){var n=i(1),r=i(41),s=i(45);t.exports={isLiteral:!0,bind:function(){this.el.__vue__||(this.ref=document.createComment("v-component"),n.replace(this.el,this.ref),this.keepAlive=null!=this._checkParam("keep-alive"),this.keepAlive&&(this.cache={}),this.parentLinkFn=r(this.el,this.vm.$options,!0,!0),this._isDynamicLiteral?(this.readyEvent=this._checkParam("wait-for"),this.transMode=this._checkParam("transition-mode")):(this.resolveCtor(this.expression),this.childVM=this.build(),this.childVM.$before(this.ref)))},resolveCtor:function(t){this.ctorId=t,this.Ctor=this.vm.$options.components[t]},build:function(){if(this.keepAlive){var t=this.cache[this.ctorId];if(t)return t}var e=this.vm,i=s.clone(this.el);if(this.Ctor){var n;this.parentLinkFn&&(n=this.parentLinkFn(e,i));var r=e.$addChild({el:i},this.Ctor);return r._parentUnlinkFn=n,this.keepAlive&&(this.cache[this.ctorId]=r),r}},unbuild:function(){var t=this.childVM;t&&!this.keepAlive&&(t._parentUnlinkFn&&t._parentUnlinkFn(),t.$destroy(!1,!0))},removeCurrent:function(t){var e=this.childVM,i=this.keepAlive;e?e.$remove(function(){i||e._cleanup(),t&&t()}):t&&t()},update:function(t){if(t){this.resolveCtor(t),this.unbuild();var e=this.build(),i=this;this.readyEvent?e.$once(this.readyEvent,function(){i.swapTo(e)}):this.swapTo(e)}else this.unbuild(),this.removeCurrent(),this.childVM=null},swapTo:function(t){var e=this;switch(e.transMode){case"in-out":t.$before(e.ref,function(){e.removeCurrent(),e.childVM=t});break;case"out-in":e.removeCurrent(function(){t.$before(e.ref),e.childVM=t});break;default:e.removeCurrent(),t.$before(e.ref),e.childVM=t}},unbind:function(){if(this.unbuild(),this.cache){for(var t in this.cache){var e=this.cache[t];e._parentUnlinkFn&&e._parentUnlinkFn(),e.$destroy()}this.cache=null}}}},function(t,e,i){function n(t,e){for(var i=(t._blockEnd||t.$el).nextSibling;!i.__vue__&&i!==e;)i=i.nextSibling;return i.__vue__}function r(t){if(!o.isPlainObject(t))return t;for(var e,i=Object.keys(t),n=i.length,r=new Array(n);n--;)e=i[n],r[n]={key:e,value:t[e]};return this.converted=!0,r}function s(t){for(var e=-1,i=new Array(t);++e<t;)i[e]=e;return i}var o=i(1),a=o.isObject,c=i(44),h=i(47),l=i(45),u=i(41),f=i(42),d=i(19),p=0;t.exports={bind:function(){this.id="__v_repeat_"+ ++p,this.filters||(this.filters={});var t=o.bind(r,this);this.filters.read?this.filters.read.unshift(t):this.filters.read=[t],this.ref=document.createComment("v-repeat"),o.replace(this.el,this.ref),this.template="TEMPLATE"===this.el.tagName?l.parse(this.el,!0):this.el,this.checkIf(),this.checkRef(),this.checkComponent(),this.idKey=this._checkParam("track-by")||this._checkParam("trackby"),this.cache=Object.create(null)},checkIf:function(){null!==o.attr(this.el,"if")},checkRef:function(){var t=o.attr(this.el,"ref");this.childId=t?this.vm.$interpolate(t):null;var e=o.attr(this.el,"el");this.elId=e?this.vm.$interpolate(e):null},checkComponent:function(){var t=o.attr(this.el,"component"),e=this.vm.$options;if(t){var i=c.parse(t);if(i){var n=c.tokensToExp(i);this.ctorGetter=h.parse(n).get}else{var r=this.Ctor=e.components[t];if(r){var s=d(r.options,{},{$parent:this.vm});this.template=f(this.template,s),this._linker=u(this.template,s)}}}else this.Ctor=o.Vue,this.inherit=!0,this.template=f(this.template),this._linker=u(this.template,e)},update:function(t){"number"==typeof t&&(t=s(t)),this.vms=this.diff(t||[],this.vms),this.childId&&(this.vm.$[this.childId]=this.vms),this.elId&&(this.vm.$$[this.elId]=this.vms.map(function(t){return t.$el}))},diff:function(t,e){var i,r,s,o,a,c=this.idKey,h=this.converted,l=this.ref,u=this.arg,f=!e,d=new Array(t.length);for(o=0,a=t.length;a>o;o++)i=t[o],r=h?i.value:i,s=!f&&this.getVm(r),s?(s._reused=!0,s.$index=o,h&&(s.$key=i.key),c&&(u?s[u]=r:s._setData(r))):(s=this.build(i,o),s._new=!0),d[o]=s,f&&s.$before(l);if(f)return d;for(o=0,a=e.length;a>o;o++)s=e[o],s._reused||(this.uncacheVm(s),s.$destroy(!0));var p,v;for(o=d.length;o--;)s=d[o],p=d[o+1],p?s._reused?(v=n(s,l),v!==p&&s.$before(p.$el,null,!1)):s.$before(p.$el):s._reused||s.$before(l),s._new=!1,s._reused=!1;return d},build:function(t,e){var i=t,n={$index:e};this.converted&&(n.$key=i.key);var r=this.converted?t.value:t,s=this.arg,o=!a(r)||s;t=o?{}:r,s?t[s]=r:o&&(n.$value=r);var c=this.Ctor||this.resolveCtor(t,n),h=this.vm.$addChild({el:l.clone(this.template),_linker:this._linker,_meta:n,data:t,inherit:this.inherit},c);return this.cacheVm(r,h),h},resolveCtor:function(t,e){var i,n=Object.create(this.vm);for(i in t)o.define(n,i,t[i]);for(i in e)o.define(n,i,e[i]);var r=this.ctorGetter.call(n,n),s=this.vm.$options.components[r];return s},unbind:function(){if(this.childId&&delete this.vm.$[this.childId],this.vms)for(var t,e=this.vms.length;e--;)t=this.vms[e],this.uncacheVm(t),t.$destroy()},cacheVm:function(t,e){var i,n=this.idKey,r=this.cache;n?(i=t[n],r[i]||(r[i]=e)):a(t)?(i=this.id,t.hasOwnProperty(i)?null===t[i]&&(t[i]=e):o.define(t,this.id,e)):r[t]?r[t].push(e):r[t]=[e],e._raw=t},getVm:function(t){if(this.idKey)return this.cache[t[this.idKey]];if(a(t))return t[this.id];var e=this.cache[t];if(e){for(var i=0,n=e[i];n&&(n._reused||n._new);)n=e[++i];return n}},uncacheVm:function(t){var e=t._raw;this.idKey?this.cache[e[this.idKey]]=null:a(e)?(e[this.id]=null,t._raw=null):this.cache[e].pop()}}},function(t,e,i){var n=i(1),r=i(41),s=i(45),o=i(48);t.exports={bind:function(){var t=this.el;t.__vue__?this.invalid=!0:(this.start=document.createComment("v-if-start"),this.end=document.createComment("v-if-end"),n.replace(t,this.end),n.before(this.start,this.end),"TEMPLATE"===t.tagName?this.template=s.parse(t,!0):(this.template=document.createDocumentFragment(),this.template.appendChild(t)),this.linker=r(this.template,this.vm.$options,!0))},update:function(t){this.invalid||(t?this.insert():this.teardown())},insert:function(){this.unlink||this.compile(this.template)},compile:function(t){var e=this.vm,i=s.clone(t),r=e._children?e._children.length:0;this.unlink=this.linker?this.linker(e,i):e.$compile(i),o.blockAppend(i,this.end,e),this.children=e._children?e._children.slice(r):null,this.children&&n.inDoc(e.$el)&&this.children.forEach(function(t){t._callHook("attached")})},teardown:function(){this.unlink&&(o.blockRemove(this.start,this.end,this.vm),this.children&&n.inDoc(this.vm.$el)&&this.children.forEach(function(t){t._isDestroyed||t._callHook("detached")}),this.unlink(),this.unlink=null)}}},function(t,e,i){var n=(i(1),i(21));t.exports={priority:900,bind:function(){var t=this.vm;if(this.el!==t.$el);else if(t.$parent){var e=this.arg;this.watcher=new n(t.$parent,this.expression,e?function(i){t.$set(e,i)}:function(e){t.$data=e});var i=this.watcher.value;e?t.$set(e,i):t.$data=i}else;},unbind:function(){this.watcher&&this.watcher.teardown()}}},function(t,e,i){function n(t,e){if(r.isObject(t)){for(var i in t)if(n(t[i],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}var r=i(1),s=i(43);e.filterBy=function(t,e,i,o){i&&"in"!==i&&(o=i);var a=r.stripQuotes(e)||this.$get(e);return a?(a=(""+a).toLowerCase(),o=o&&(r.stripQuotes(o)||this.$get(o)),t.filter(function(t){return o?n(s.get(t,o),a):n(t,a)})):t},e.orderBy=function(t,e,i){var n=r.stripQuotes(e)||this.$get(e);if(!n)return t;var o=1;return i&&("-1"===i?o=-1:33===i.charCodeAt(0)?(i=i.slice(1),o=this.$get(i)?1:-1):o=this.$get(i)?-1:1),t.slice().sort(function(t,e){return t=s.get(t,n),e=s.get(e,n),t===e?0:t>e?o:-o})}},function(t){function e(){this.id=++i,this.subs=[]}var i=0,n=e.prototype;n.addSub=function(t){this.subs.push(t)},n.removeSub=function(t){if(this.subs.length){var e=this.subs.indexOf(t);e>-1&&this.subs.splice(e,1)}},n.notify=function(){for(var t=0,e=this.subs.length;e>t;t++)this.subs[t].update()},t.exports=e},function(t,e,i){function n(t,e,i,n,s,o){this.name=t,this.el=e,this.vm=i,this.raw=n.raw,this.expression=n.expression,this.arg=n.arg,this.filters=r.resolveFilters(i,n.filters),this._linker=o,this._locked=!1,this._bound=!1,this._bind(s)}var r=i(1),s=i(20),o=i(21),a=i(44),c=i(47),h=n.prototype;h._bind=function(t){if("cloak"!==this.name&&this.el.removeAttribute&&this.el.removeAttribute(s.prefix+this.name),"function"==typeof t?this.update=t:r.extend(this,t),this._watcherExp=this.expression,this._checkDynamicLiteral(),this.bind&&this.bind(),this.update&&this._watcherExp&&(!this.isLiteral||this._isDynamicLiteral)&&!this._checkStatement()){var e=this.vm._watchers[this.raw],i=this,n=this._update=function(t,e){i._locked||i.update(t,e)};e?e.addCb(n):e=this.vm._watchers[this.raw]=new o(this.vm,this._watcherExp,n,this.filters,this.twoWay,this.deep),this._watcher=e,null!=this._initValue?e.set(this._initValue):this.update(e.value)}this._bound=!0},h._checkDynamicLiteral=function(){var t=this.expression;if(t&&this.isLiteral){var e=a.parse(t);if(e){var i=a.tokensToExp(e);this.expression=this.vm.$get(i),this._watcherExp=i,this._isDynamicLiteral=!0}}},h._checkStatement=function(){var t=this.expression;if(t&&this.acceptStatement&&!c.pathTestRE.test(t)){var e=c.parse(t).get,i=this.vm,n=function(){e.call(i,i) | ||
};return this.filters&&(n=r.applyFilters(n,this.filters.read,i)),this.update(n),!0}},h._checkParam=function(t){var e=this.el.getAttribute(t);return null!==e&&this.el.removeAttribute(t),e},h._teardown=function(){if(this._bound){this.unbind&&this.unbind();var t=this._watcher;t&&t.active&&(t.removeCb(this._update),t.active||(this.vm._watchers[this.raw]=null)),this._bound=!1,this.vm=this.el=this._watcher=null}},h.set=function(t,e){if(this.twoWay&&(e&&(this._locked=!0),this._watcher.set(t),e)){var i=this;r.nextTick(function(){i._locked=!1})}},t.exports=n},function(t,e,i){function n(t,e,i){var n=t.nodeType;return 1===n&&"SCRIPT"!==t.tagName?r(t,e,i):3===n&&y.interpolate?o(t,e):void 0}function r(t,e,i){var n,r,o;if(i||t.__vue__||(r=t.tagName.toLowerCase(),o=r.indexOf("-")>0&&e.components[r],o&&t.setAttribute(y.prefix+"component",r)),(o||t.hasAttributes())&&(i||(n=p(t,e)),!n)){var a=m(t,e,i);n=a.length?s(a):null}if("TEXTAREA"===t.tagName){var c=n;n=function(t,e){e.value=t.$interpolate(e.value),c&&c(t,e)},n.terminal=!0}return n}function s(t){return function(e,i){for(var n,r,s,o=t.length;o--;)if(n=t[o],n._link)n._link(e,i);else for(s=n.descriptors.length,r=0;s>r;r++)e._bindDir(n.name,i,n.descriptors[r],n.def)}}function o(t,e){var i=w.parse(t.nodeValue);if(!i)return null;for(var n,r,s=document.createDocumentFragment(),o=0,h=i.length;h>o;o++)r=i[o],n=r.tag?a(r,e):document.createTextNode(r.value),s.appendChild(n);return c(i,s,e)}function a(t,e){function i(i){t.type=i,t.def=e.directives[i],t.descriptor=$.parse(t.value)[0]}var n;return t.oneTime?n=document.createTextNode(t.value):t.html?(n=document.createComment("v-html"),i("html")):t.partial?(n=document.createComment("v-partial"),i("partial")):(n=document.createTextNode(" "),i("text")),n}function c(t,e){return function(i,n){for(var r,s,o,a=e.cloneNode(!0),c=b.toArray(a.childNodes),h=0,l=t.length;l>h;h++)r=t[h],s=r.value,r.tag&&(o=c[h],r.oneTime?(s=i.$eval(s),r.html?b.replace(o,k.parse(s,!0)):o.nodeValue=s):i._bindDir(r.type,o,r.descriptor,r.def));b.replace(n,a)}}function h(t,e){for(var i,r,s,o=[],a=0,c=t.length;c>a;a++)s=t[a],i=n(s,e),r=i&&i.terminal||"SCRIPT"===s.tagName||!s.hasChildNodes()?null:h(s.childNodes,e),o.push(i,r);return o.length?l(o):null}function l(t){return function(e,i){i=b.toArray(i);for(var n,r,s,o=0,a=0,c=t.length;c>o;a++)n=i[a],r=t[o++],s=t[o++],r&&r(e,n),s&&s(e,n.childNodes)}}function u(t,e,i){for(var n,r,s,o=[],a=e.length;a--;)if(n=e[a],r=t.getAttribute(n),null!==r){s={name:n,value:r};var c=w.parse(r);if(c){if(t.removeAttribute(n),c.length>1)continue;s.dynamic=!0,s.value=c[0].value}o.push(s)}return f(o,i)}function f(t,e){var i=e.directives["with"];return function(e,n){for(var r,s,o=t.length;o--;)r=t[o],s=b.camelize(r.name.replace(x,"")),r.dynamic?e._bindDir("with",n,{arg:s,expression:r.value},i):e.$set(s,r.value)}}function d(){}function p(t,e){if(null!==b.attr(t,"pre"))return d;for(var i,n,r=0;3>r;r++)if(n=C[r],i=b.attr(t,n))return v(t,n,i,e)}function v(t,e,i,n){var r=$.parse(i)[0],s=n.directives[e],o=function(t,i){t._bindDir(e,i,r,s)};return o.terminal=!0,o}function m(t,e,i){for(var n,r,s,o,a,c=b.toArray(t.attributes),h=c.length,l=[];h--;)if(n=c[h],r=n.name,0===r.indexOf(y.prefix)){if(o=r.slice(y.prefix.length),i&&("with"===o||"ref"===o||"component"===o))continue;a=e.directives[o],a&&l.push({name:o,descriptors:$.parse(n.value),def:a})}else y.interpolate&&(s=_(t,r,n.value,e),s&&l.push(s));return l.sort(g),l}function _(t,e,i,n){var r=w.parse(i);if(r){for(var s=n.directives.attr,o=r.length,a=!0;o--;){var c=r[o];c.tag&&!c.oneTime&&(a=!1)}return{def:s,_link:a?function(t,n){n.setAttribute(e,t.$interpolate(i))}:function(t,i){var n=w.tokensToExp(r,t),o=$.parse(e+":"+n)[0];t._bindDir("attr",i,o,s)}}}}function g(t,e){return t=t.def.priority||0,e=e.def.priority||0,t>e?1:-1}var b=i(1),y=i(20),w=i(44),$=i(46),k=i(45);t.exports=function(t,e,i,r){var s=!i&&e.paramAttributes,o=s?u(t,s,e):null,a=t instanceof DocumentFragment?null:n(t,e,r),c=a&&a.terminal||"SCRIPT"===t.tagName||!t.hasChildNodes()?null:h(t.childNodes,e);return function(t,e){var n=t._directives.length;if(o&&o(t,e),a&&a(t,e),c&&c(t,e.childNodes),i){var r=t._directives.slice(n);return function(){for(var e=r.length;e--;)r[e]._teardown();e=t._directives.indexOf(r[0]),t._directives.splice(e,r.length)}}}};var x=/^data-/,C=["repeat","if","component"];d.terminal=!0},function(t,e,i){function n(t,e){var i=e.template,n=h.parse(i,!0);if(n){if(r(t),e.replace){if(n.childNodes.length>1)return s(n),n;var o=n.firstChild;return c.copyAttributes(t,o),s(o),o}return t.appendChild(n),s(t),t}}function r(t){var e;if(l=null,t.hasChildNodes())for(l=document.createElement("div");e=t.firstChild;)l.appendChild(e)}function s(t){var e=o(t),i=e.length;if(i){for(var n,r,s,h,u;i--;)n=e[i],l?(r=n.getAttribute("select"),r?(s=l.querySelectorAll(r),n.content=c.toArray(s.length?s:n.childNodes)):u=n):n.content=c.toArray(n.childNodes);for(i=0,h=e.length;h>i;i++)n=e[i],n!==u&&a(n,n.content);u&&a(u,c.toArray(l.childNodes))}}function o(t){return c.isArray(t)?u.apply([],t.map(o)):t.querySelectorAll?c.toArray(t.querySelectorAll("content")):[]}function a(t,e){for(var i=t.parentNode,n=0,r=e.length;r>n;n++)i.insertBefore(e[n],t);i.removeChild(t)}var c=i(1),h=i(45);t.exports=function(t,e){return"TEMPLATE"===t.tagName&&(t=h.parse(t)),e&&e.template&&(t=n(t,e)),t instanceof DocumentFragment&&(c.prepend(document.createComment("v-start"),t),t.appendChild(document.createComment("v-end"))),t};var l,u=[].concat},function(t,e,i){function n(){}function r(t){if(void 0===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:case 48:return t;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return e>=97&&122>=e||e>=65&&90>=e?"ident":e>=49&&57>=e?"number":"else"}function s(t){function e(){var e=t[d+1];return"inSingleQuote"===p&&"'"===e||"inDoubleQuote"===p&&'"'===e?(d++,s=e,v.append(),!0):void 0}for(var i,s,o,a,c,h,l,f=[],d=-1,p="beforePath",v={push:function(){void 0!==o&&(f.push(o),o=void 0)},append:function(){void 0===o?o=s:o+=s}};p;)if(d++,i=t[d],"\\"!==i||!e()){if(a=r(i),l=u[p],c=l[a]||l["else"]||"error","error"===c)return;if(p=c[0],h=v[c[1]]||n,s=void 0===c[2]?i:c[2],h(),"afterPath"===p)return f}}function o(t){return l.test(t)?"."+t:+t===t>>>0?"["+t+"]":'["'+t.replace(/"/g,'\\"')+'"]'}var a=i(1),c=i(52),h=new c(1e3),l=/^[$_a-zA-Z]+[\w$]*$/,u={beforePath:{ws:["beforePath"],ident:["inIdent","append"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath"],".":["beforeIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:["beforeIdent"],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],0:["inIdent","append"],number:["inIdent","append"],ws:["inPath","push"],".":["beforeIdent","push"],"[":["beforeElement","push"],eof:["afterPath","push"]},beforeElement:{ws:["beforeElement"],0:["afterZero","append"],number:["inIndex","append"],"'":["inSingleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZero:{ws:["afterElement","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","append"],number:["inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSingleQuote:{"'":["afterElement"],eof:"error","else":["inSingleQuote","append"]},inDoubleQuote:{'"':["afterElement"],eof:"error","else":["inDoubleQuote","append"]},afterElement:{ws:["afterElement"],"]":["inPath","push"]}};e.compileGetter=function(t){var e="try{return o"+t.map(o).join("")+"}catch(e){};";return new Function("o",e)},e.parse=function(t){var i=h.get(t);return i||(i=s(t),i&&(i.get=e.compileGetter(i),h.put(t,i))),i},e.get=function(t,i){return i=e.parse(i),i?i.get(t):void 0},e.set=function(t,i,n){if("string"==typeof i&&(i=e.parse(i)),!i||!a.isObject(t))return!1;for(var r,s,o=0,c=i.length-1;c>o;o++)r=t,s=i[o],t=t[s],a.isObject(t)||(t={},r.$add(s,t));return s=i[o],s in t?t[s]=n:t.$add(s,n),!0}},function(t,e,i){function n(t){return t.replace(v,"\\$&")}function r(){d._delimitersChanged=!1;var t=d.delimiters[0],e=d.delimiters[1];l=t.charAt(0),u=e.charAt(e.length-1);var i=n(l),r=n(u),s=n(t),o=n(e);c=new RegExp(i+"?"+s+"(.+?)"+o+r+"?","g"),h=new RegExp("^"+i+s+".*"+o+r+"$"),a=new f(1e3)}function s(t,e,i){return t.tag?e&&t.oneTime?'"'+e.$eval(t.value)+'"':i?t.value:o(t.value):'"'+t.value+'"'}function o(t){if(m.test(t)){var e=p.parse(t)[0];if(e.filters){t=e.expression;for(var i=0,n=e.filters.length;n>i;i++){var r=e.filters[i],s=r.args?',"'+r.args.join('","')+'"':"";t='this.$options.filters["'+r.name+'"].apply(this,['+t+s+"])"}return t}return"("+t+")"}return"("+t+")"}var a,c,h,l,u,f=i(52),d=i(20),p=i(46),v=/[-.*+?^${}()|[\]\/\\]/g;e.parse=function(t){d._delimitersChanged&&r();var e=a.get(t);if(e)return e;if(!c.test(t))return null;for(var i,n,s,o,l,u,f=[],p=c.lastIndex=0;i=c.exec(t);)n=i.index,n>p&&f.push({value:t.slice(p,n)}),o=i[1].charCodeAt(0),l=42===o,u=62===o,s=l||u?i[1].slice(1):i[1],f.push({tag:!0,value:s.trim(),html:h.test(i[0]),oneTime:l,partial:u}),p=n+i[0].length;return p<t.length&&f.push({value:t.slice(p)}),a.put(t,f),f},e.tokensToExp=function(t,e){return t.length>1?t.map(function(t){return s(t,e)}).join("+"):s(t[0],e,!0)};var m=/[^|]\|[^|]/},function(t,e,i){function n(t){var e=a.get(t);if(e)return e;var i=document.createDocumentFragment(),n=h.exec(t);if(n){var r=n[1],s=c[r]||c._default,o=s[0],l=s[1],u=s[2],f=document.createElement("div");for(f.innerHTML=l+t.trim()+u;o--;)f=f.lastChild;for(var d;d=f.firstChild;)i.appendChild(d)}else i.appendChild(document.createTextNode(t));return a.put(t,i),i}function r(t){var e=t.tagName;return"TEMPLATE"===e&&t.content instanceof DocumentFragment?t.content:n("SCRIPT"===e?t.textContent:t.innerHTML)}var s=i(1),o=i(52),a=new o(100),c={_default:[0,"",""],legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]};c.td=c.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],c.option=c.optgroup=[1,'<select multiple="multiple">',"</select>"],c.thead=c.tbody=c.colgroup=c.caption=c.tfoot=[1,"<table>","</table>"],c.g=c.defs=c.symbol=c.use=c.image=c.text=c.circle=c.ellipse=c.line=c.path=c.polygon=c.polyline=c.rect=[1,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events"version="1.1">',"</svg>"];var h=/<([\w:]+)/,l=s.inBrowser?function(){var t=document.createElement("div");return t.innerHTML="<template>1</template>",!t.cloneNode(!0).firstChild.innerHTML}():!1,u=s.inBrowser?function(){var t=document.createElement("textarea");return t.placeholder="t","t"===t.cloneNode(!0).value}():!1;e.clone=function(t){var e,i,n,r=t.cloneNode(!0);if(l&&(i=t.querySelectorAll("template"),i.length))for(n=r.querySelectorAll("template"),e=n.length;e--;)n[e].parentNode.replaceChild(i[e].cloneNode(!0),n[e]);if(u)if("TEXTAREA"===t.tagName)r.value=t.value;else if(i=t.querySelectorAll("textarea"),i.length)for(n=r.querySelectorAll("textarea"),e=n.length;e--;)n[e].value=i[e].value;return r},e.parse=function(t,i){var s,o;return t instanceof DocumentFragment?i?t.cloneNode(!0):t:("string"==typeof t?"#"===t.charAt(0)?(o=a.get(t),o||(s=document.getElementById(t.slice(1)),s&&(o=r(s),a.put(t,o)))):o=n(t):t.nodeType&&(o=r(t)),o&&i?e.clone(o):o)}},function(t,e,i){function n(){_.raw=s.slice(p,a).trim(),void 0===_.expression?_.expression=s.slice(v,a).trim():g!==p&&r(),(0===a||_.expression)&&m.push(_)}function r(){var t,e=s.slice(g,a).trim();if(e){t={};var i=e.match(x);t.name=i[0],t.args=i.length>1?i.slice(1):null}t&&(_.filters=_.filters||[]).push(t),g=a+1}var s,o,a,c,h,l,u,f,d,p,v,m,_,g,b,y=i(1),w=i(52),$=new w(1e3),k=/^[^\{\?]+$|^'[^']*'$|^"[^"]*"$/,x=/[^\s'"]+|'[^']+'|"[^"]+"/g;e.parse=function(t){var e=$.get(t);if(e)return e;for(s=t,h=l=!1,u=f=d=p=v=0,g=0,m=[],_={},b=null,a=0,c=s.length;c>a;a++)if(o=s.charCodeAt(a),h)39===o&&(h=!h);else if(l)34===o&&(l=!l);else if(44!==o||d||u||f)if(58!==o||_.expression||_.arg)if(124===o&&124!==s.charCodeAt(a+1)&&124!==s.charCodeAt(a-1))void 0===_.expression?(g=a+1,_.expression=s.slice(v,a).trim()):r();else switch(o){case 34:l=!0;break;case 39:h=!0;break;case 40:d++;break;case 41:d--;break;case 91:f++;break;case 93:f--;break;case 123:u++;break;case 125:u--}else b=s.slice(p,a).trim(),k.test(b)&&(v=a+1,_.arg=y.stripQuotes(b)||b);else n(),_={},p=v=g=a+1;return(0===a||p!==a)&&n(),$.put(t,m),m}},function(t,e,i){function n(t){var e=$.length;return $[e]=t.replace(m,"\\n"),'"'+e+'"'}function r(t){var e=t.charAt(0),i=t.slice(1);return w.test(i)?t:(i=i.indexOf('"')>-1?i.replace(g,s):i,e+"scope."+i)}function s(t,e){return $[e]}function o(t,e){$.length=0;var i=t.replace(_,n).replace(v,"");i=(" "+i).replace(y,r).replace(g,s);var o=c(i);return o?{get:o,body:i,set:e?h(i):null}:void 0}function a(t){var e,i;return t.indexOf("[")<0?(i=t.split("."),e=u.compileGetter(i)):(i=u.parse(t),e=i.get),{get:e,set:function(t,e){u.set(t,i,e)}}}function c(t){try{return new Function("scope","return "+t+";")}catch(e){}}function h(t){try{return new Function("scope","value",t+"=value;")}catch(e){}}function l(t){t.set||(t.set=h(t.body))}var u=(i(1),i(43)),f=i(52),d=new f(1e3),p="Math,break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,undefined,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield",v=/\s/g,m=/\n/g,_=/[\{,]\s*[\w\$_]+\s*:|'[^']*'|"[^"]*"/g,g=/"(\d+)"/g,b=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\])*$/,y=/[^\w$\.]([A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\])*)/g,w=new RegExp("^("+p.replace(/,/g,"\\b|")+"\\b)"),$=[];e.parse=function(t,e){t=t.trim();var i=d.get(t);if(i)return e&&l(i),i;var n=b.test(t)?a(t):o(t,e);return d.put(t,n),n},e.pathTestRE=b},function(t,e,i){var n=i(1),r=i(53),s=i(54);e.append=function(t,e,i,n){o(t,1,function(){e.appendChild(t)},i,n)},e.before=function(t,e,i,r){o(t,1,function(){n.before(t,e)},i,r)},e.remove=function(t,e,i){o(t,-1,function(){n.remove(t)},e,i)},e.removeThenAppend=function(t,e,i,n){o(t,-1,function(){e.appendChild(t)},i,n)},e.blockAppend=function(t,i,r){for(var s=n.toArray(t.childNodes),o=0,a=s.length;a>o;o++)e.before(s[o],i,r)},e.blockRemove=function(t,i,n){for(var r,s=t.nextSibling;s!==i;)r=s.nextSibling,e.remove(s,n),s=r};var o=e.apply=function(t,e,i,o,a){var c=t.__v_trans;if(!c||!o._isCompiled||o.$parent&&!o.$parent._isCompiled)return i(),void(a&&a());var h=o.$options.transitions[c.id];h?s(t,e,i,c,h,o,a):n.transitionEndEvent?r(t,e,i,c,a):(i(),a&&a())}},function(t,e,i){var n=(i(1),{_default:i(55),radio:i(56),select:i(57),checkbox:i(58)});t.exports={priority:800,twoWay:!0,handlers:n,bind:function(){var t=this.filters;t&&t.read&&!t.write;var e,i=this.el,r=i.tagName;if("INPUT"===r)e=n[i.type]||n._default;else if("SELECT"===r)e=n.select;else{if("TEXTAREA"!==r)return;e=n._default}e.bind.call(this),this.update=e.update,this.unbind=e.unbind}}},function(t,e,i){function n(t,e){t.__proto__=e}function r(t,e,i){for(var n,r=i.length;r--;)n=i[r],o.define(t,n,e[n])}function s(t,e){if(this.id=++u,this.value=t,this.active=!0,this.deps=[],o.define(t,"__ob__",this),e===f){var i=a.proto&&o.hasProto?n:r;i(t,h,l),this.observeArray(t)}else e===d&&this.walk(t)}var o=i(1),a=i(20),c=i(39),h=i(59),l=Object.getOwnPropertyNames(h);i(60);var u=0,f=0,d=1;s.target=null;var p=s.prototype;s.create=function(t){return t&&t.hasOwnProperty("__ob__")&&t.__ob__ instanceof s?t.__ob__:o.isArray(t)?new s(t,f):o.isPlainObject(t)&&!t._isVue?new s(t,d):void 0},p.walk=function(t){for(var e,i,n=Object.keys(t),r=n.length;r--;)e=n[r],i=e.charCodeAt(0),36!==i&&95!==i&&this.convert(e,t[e])},p.observe=function(t){return s.create(t)},p.observeArray=function(t){for(var e=t.length;e--;)this.observe(t[e])},p.convert=function(t,e){var i=this,n=i.observe(e),r=new c;n&&n.deps.push(r),Object.defineProperty(i.value,t,{enumerable:!0,configurable:!0,get:function(){return i.active&&s.target&&s.target.addDep(r),e},set:function(t){if(t!==e){var n=e&&e.__ob__;if(n){var s=n.deps;s.splice(s.indexOf(r),1)}e=t;var o=i.observe(t);o&&o.deps.push(r),r.notify()}}})},p.notify=function(){for(var t=this.deps,e=0,i=t.length;i>e;e++)t[e].notify()},p.addVm=function(t){(this.vms=this.vms||[]).push(t)},p.removeVm=function(t){this.vms.splice(this.vms.indexOf(t),1)},t.exports=s},function(t,e,i){function n(){this.reset()}var r=i(1),s=n.prototype;s.push=function(t){t.id&&this.has[t.id]&&!this.flushing||(this.queue.push(t),this.has[t.id]=t,this.waiting||(this.waiting=!0,r.nextTick(this.flush,this)))},s.flush=function(){this.flushing=!0;for(var t=0;t<this.queue.length;t++){var e=this.queue[t];e.cancelled||e.run()}this.reset()},s.reset=function(){this.has={},this.queue=[],this.waiting=!1,this.flushing=!1},t.exports=n},function(t){function e(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap={}}var i=e.prototype;i.put=function(t,e){var i={key:t,value:e};return this._keymap[t]=i,this.tail?(this.tail.newer=i,i.older=this.tail):this.head=i,this.tail=i,this.size===this.limit?this.shift():void this.size++},i.shift=function(){var t=this.head;return t&&(this.head=this.head.newer,this.head.older=void 0,t.newer=t.older=void 0,this._keymap[t.key]=void 0),t},i.get=function(t,e){var i=this._keymap[t];if(void 0!==i)return i===this.tail?e?i:i.value:(i.newer&&(i===this.head&&(this.head=i.newer),i.newer.older=i.older),i.older&&(i.older.newer=i.newer),i.newer=void 0,i.older=this.tail,this.tail&&(this.tail.newer=i),this.tail=i,e?i:i.value)},t.exports=e},function(t,e,i){function n(t,e,i,n,s){f.push({el:t,dir:e,cb:s,cls:n,op:i}),d||(d=!0,a.nextTick(r))}function r(){document.documentElement.offsetHeight;f.forEach(s),f=[],d=!1}function s(t){function e(t,e){n.event=t;var r=n.callback=function(o){o.target===i&&(a.off(i,t,r),n.event=n.callback=null,e&&e(),s&&s())};a.on(i,t,r)}var i=t.el,n=i.__v_trans,r=t.cls,s=t.cb,c=t.op,l=o(i,n,r);if(t.dir>0)1===l?(h(i,r),s&&e(a.transitionEndEvent)):2===l?e(a.animationEndEvent,function(){h(i,r)}):(h(i,r),s&&s());else if(l){var u=1===l?a.transitionEndEvent:a.animationEndEvent;e(u,function(){c(),h(i,r)})}else c(),h(i,r),s&&s()}function o(t,e,i){var n=e.cache&&e.cache[i];if(n)return n;var r=t.style,s=window.getComputedStyle(t),o=r[l]||s[l];if(o&&"0s"!==o)n=1;else{var a=r[u]||s[u];a&&"0s"!==a&&(n=2)}return n&&(e.cache||(e.cache={}),e.cache[i]=n),n}var a=i(1),c=a.addClass,h=a.removeClass,l=a.transitionProp+"Duration",u=a.animationProp+"Duration",f=[],d=!1;t.exports=function(t,e,i,r,s){var o=r.id||"v",l=o+"-enter",u=o+"-leave";r.callback&&(a.off(t,r.event,r.callback),h(t,l),h(t,u),r.event=r.callback=null),e>0?(c(t,l),i(),n(t,e,null,l,s)):(c(t,u),n(t,e,i,u,s))}},function(t){t.exports=function(t,e,i,n,r,s,o){n.cancel&&(n.cancel(),n.cancel=null),e>0?(r.beforeEnter&&r.beforeEnter.call(s,t),i(),r.enter?n.cancel=r.enter.call(s,t,function(){n.cancel=null,o&&o()}):o&&o()):r.leave?n.cancel=r.leave.call(s,t,function(){n.cancel=null,i(),o&&o()}):(i(),o&&o())}},function(t,e,i){var n=i(1);t.exports={bind:function(){function t(){e.set(s?n.toNumber(i.value):i.value,!0)}var e=this,i=this.el,r=null!=this._checkParam("lazy"),s=null!=this._checkParam("number"),o=!1;this.cpLock=function(){o=!0},this.cpUnlock=function(){o=!1,t()},n.on(i,"compositionstart",this.cpLock),n.on(i,"compositionend",this.cpUnlock),this.listener=this.filters||"range"===i.type?function(){if(!o){var r;try{r=i.value.length-i.selectionStart}catch(s){}0>r||(t(),n.nextTick(function(){var t=e._watcher.value;if(e.update(t),null!=r){var s=n.toString(t).length-r;i.setSelectionRange(s,s)}}))}}:function(){o||t()},this.event=r?"change":"input",n.on(i,this.event,this.listener),!r&&n.isIE9&&(this.onCut=function(){n.nextTick(e.listener)},this.onDel=function(t){(46===t.keyCode||8===t.keyCode)&&e.listener()},n.on(i,"cut",this.onCut),n.on(i,"keyup",this.onDel)),(i.hasAttribute("value")||"TEXTAREA"===i.tagName&&i.value.trim())&&(this._initValue=s?n.toNumber(i.value):i.value)},update:function(t){this.el.value=n.toString(t)},unbind:function(){var t=this.el;n.off(t,this.event,this.listener),n.off(t,"compositionstart",this.cpLock),n.off(t,"compositionend",this.cpUnlock),this.onCut&&(n.off(t,"cut",this.onCut),n.off(t,"keyup",this.onDel))}}},function(t,e,i){var n=i(1);t.exports={bind:function(){var t=this,e=this.el;this.listener=function(){t.set(e.value,!0)},n.on(e,"change",this.listener),e.checked&&(this._initValue=e.value)},update:function(t){this.el.checked=t==this.el.value},unbind:function(){n.off(this.el,"change",this.listener)}}},function(t,e,i){function n(t){function e(t){l.isArray(t)&&(i.el.innerHTML="",r(i.el,t),i._watcher&&i.update(i._watcher.value))}var i=this;this.optionWatcher=new u(this.vm,t,e),e(this.optionWatcher.value)}function r(t,e){for(var i,n,s=0,o=e.length;o>s;s++)i=e[s],i.options?(n=document.createElement("optgroup"),n.label=i.label,r(n,i.options)):(n=document.createElement("option"),"string"==typeof i?n.text=n.value=i:(n.text=i.text,n.value=i.value)),t.appendChild(n)}function s(){for(var t,e=this.el.options,i=0,n=e.length;n>i;i++)e[i].hasAttribute("selected")&&(this.multiple?(t||(t=[])).push(e[i].value):t=e[i].value);t&&(this._initValue=t)}function o(t){return Array.prototype.filter.call(t.options,a).map(c)}function a(t){return t.selected}function c(t){return t.value||t.text}function h(t,e){for(var i=t.length;i--;)if(t[i]==e)return i;return-1}var l=i(1),u=i(21);t.exports={bind:function(){var t=this,e=this.el,i=this._checkParam("options");i&&n.call(this,i),this.multiple=e.hasAttribute("multiple"),this.listener=function(){var i=t.multiple?o(e):e.value;t.set(i,!0)},l.on(e,"change",this.listener),s.call(this)},update:function(t){var e=this.el;e.selectedIndex=-1;for(var i,n=this.multiple&&l.isArray(t),r=e.options,s=r.length;s--;)i=r[s],i.selected=n?h(t,i.value)>-1:t==i.value},unbind:function(){l.off(this.el,"change",this.listener),this.optionWatcher&&this.optionWatcher.teardown()}}},function(t,e,i){var n=i(1);t.exports={bind:function(){var t=this,e=this.el;this.listener=function(){t.set(e.checked,!0)},n.on(e,"change",this.listener),e.checked&&(this._initValue=e.checked)},update:function(t){this.el.checked=!!t},unbind:function(){n.off(this.el,"change",this.listener)}}},function(t,e,i){var n=i(1),r=Array.prototype,s=Object.create(r);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=r[t];n.define(s,t,function(){for(var i=arguments.length,n=new Array(i);i--;)n[i]=arguments[i];var r,s=e.apply(this,n),o=this.__ob__;switch(t){case"push":r=n;break;case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&o.observeArray(r),o.notify(),s})}),n.define(r,"$set",function(t,e){return t>=this.length&&(this.length=t+1),this.splice(t,1,e)[0]}),n.define(r,"$remove",function(t){return"number"!=typeof t&&(t=this.indexOf(t)),t>-1?this.splice(t,1)[0]:void 0}),t.exports=s},function(t,e,i){var n=i(1),r=Object.prototype;n.define(r,"$add",function(t,e){var i=this.__ob__;if(!i)return void(this[t]=e);if(!n.isReserved(t)&&!this.hasOwnProperty(t))if(i.convert(t,e),i.vms)for(var r=i.vms.length;r--;){var s=i.vms[r];s._proxy(t),s._digest()}else i.notify()}),n.define(r,"$delete",function(t){var e=this.__ob__;if(!e)return void delete this[t];if(!n.isReserved(t)&&this.hasOwnProperty(t))if(delete this[t],e.vms)for(var i=e.vms.length;i--;){var r=e.vms[i];r._unproxy(t),r._digest()}else e.notify()})}])}); |
{ | ||
"name": "vue", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"author": "Evan You <yyx990803@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -48,6 +48,6 @@ <p align="center"><a href="http://vuejs.org" target="_blank"><img width="100"src="http://vuejs.org/images/logo.png"></a></p> | ||
- For latest releases and announcements, follow on Twitter: [@vuejs](https://twitter.com/vuejs) | ||
- Live discussion: [![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/yyx990803/vue) | ||
- Bugs reports: first read the [issue checklist](https://github.com/yyx990803/vue/blob/master/CONTRIBUTING.md#issue-reporting-checklist), then [open an issue](https://github.com/yyx990803/vue/issues). | ||
- Questions, suggestions, feature requests: open an issue at [vuejs/Discussion](https://github.com/vuejs/Discussion/issues). | ||
- If you have a Vue-related project/component/tool, add it to [this list](https://github.com/yyx990803/vue/wiki/User-Contributed-Components-&-Tools)! | ||
- freenode IRC Channel: #vuejs | ||
@@ -54,0 +54,0 @@ ## Changelog |
var _ = require('../util') | ||
var Watcher = require('../watcher') | ||
var Path = require('../parse/path') | ||
var textParser = require('../parse/text') | ||
var dirParser = require('../parse/directive') | ||
var expParser = require('../parse/expression') | ||
var Path = require('../parsers/path') | ||
var textParser = require('../parsers/text') | ||
var dirParser = require('../parsers/directive') | ||
var expParser = require('../parsers/expression') | ||
var filterRE = /[^|]\|[^|]/ | ||
@@ -155,5 +155,8 @@ | ||
var data = path | ||
? Path.get(this, path) | ||
? Path.get(this._data, path) | ||
: this._data | ||
console.log(JSON.parse(JSON.stringify(data))) | ||
if (data) { | ||
data = JSON.parse(JSON.stringify(data)) | ||
} | ||
console.log(data) | ||
} |
@@ -13,9 +13,6 @@ var _ = require('../util') | ||
exports.$appendTo = function (target, cb, withTransition) { | ||
target = query(target) | ||
var targetIsDetached = !_.inDoc(target) | ||
var op = withTransition === false || targetIsDetached | ||
? append | ||
: transition.append | ||
insert(this, target, op, targetIsDetached, cb) | ||
return this | ||
return insert( | ||
this, target, cb, withTransition, | ||
append, transition.append | ||
) | ||
} | ||
@@ -50,9 +47,6 @@ | ||
exports.$before = function (target, cb, withTransition) { | ||
target = query(target) | ||
var targetIsDetached = !_.inDoc(target) | ||
var op = withTransition === false || targetIsDetached | ||
? before | ||
: transition.before | ||
insert(this, target, op, targetIsDetached, cb) | ||
return this | ||
return insert( | ||
this, target, cb, withTransition, | ||
before, transition.before | ||
) | ||
} | ||
@@ -102,3 +96,3 @@ | ||
? append | ||
: transition.removeThenAppend | ||
: transition.removeThenAppend | ||
blockOp(this, this._blockFragment, op, realCb) | ||
@@ -119,8 +113,15 @@ } else { | ||
* @param {Element} target | ||
* @param {Function} op | ||
* @param {Boolean} targetIsDetached | ||
* @param {Function} [cb] | ||
* @param {Boolean} [withTransition] | ||
* @param {Function} op1 - op for non-transition insert | ||
* @param {Function} op2 - op for transition insert | ||
* @return vm | ||
*/ | ||
function insert (vm, target, op, targetIsDetached, cb) { | ||
function insert (vm, target, cb, withTransition, op1, op2) { | ||
target = query(target) | ||
var targetIsDetached = !_.inDoc(target) | ||
var op = withTransition === false || targetIsDetached | ||
? op1 | ||
: op2 | ||
var shouldCallHook = | ||
@@ -138,2 +139,3 @@ !targetIsDetached && | ||
} | ||
return vm | ||
} | ||
@@ -140,0 +142,0 @@ |
@@ -8,6 +8,19 @@ var _ = require('../util') | ||
exports.util = _ | ||
exports.nextTick = _.nextTick | ||
exports.config = require('../config') | ||
exports.util = _ | ||
exports.nextTick = _.nextTick | ||
exports.config = require('../config') | ||
exports.compiler = { | ||
compile: require('../compiler/compile'), | ||
transclude: require('../compiler/transclude') | ||
} | ||
exports.parsers = { | ||
path: require('../parsers/path'), | ||
text: require('../parsers/text'), | ||
template: require('../parsers/template'), | ||
directive: require('../parsers/directive'), | ||
expression: require('../parsers/expression') | ||
} | ||
/** | ||
@@ -14,0 +27,0 @@ * Each instance constructor, including Vue, has a unique |
var _ = require('../util') | ||
var compile = require('../compile/compile') | ||
var compile = require('../compiler/compile') | ||
@@ -58,6 +58,8 @@ /** | ||
* @param {Boolean} remove - whether to remove the DOM node. | ||
* @param {Boolean} deferCleanup - if true, defer cleanup to | ||
* be called later | ||
* @public | ||
*/ | ||
exports.$destroy = function (remove) { | ||
exports.$destroy = function (remove, deferCleanup) { | ||
if (this._isBeingDestroyed) { | ||
@@ -101,6 +103,6 @@ return | ||
this.$remove(function () { | ||
cleanup(self) | ||
self._cleanup() | ||
}) | ||
} else { | ||
cleanup(self) | ||
} else if (!deferCleanup) { | ||
this._cleanup() | ||
} | ||
@@ -113,24 +115,21 @@ } | ||
* is any. | ||
* | ||
* @param {Vue} vm | ||
*/ | ||
function cleanup (vm) { | ||
exports._cleanup = function () { | ||
// remove reference from data ob | ||
vm._data.__ob__.removeVm(vm) | ||
vm._data = | ||
vm._watchers = | ||
vm._userWatchers = | ||
vm._watcherList = | ||
vm.$el = | ||
vm.$parent = | ||
vm.$root = | ||
vm._children = | ||
vm._bindings = | ||
vm._directives = null | ||
this._data.__ob__.removeVm(this) | ||
this._data = | ||
this._watchers = | ||
this._userWatchers = | ||
this._watcherList = | ||
this.$el = | ||
this.$parent = | ||
this.$root = | ||
this._children = | ||
this._directives = null | ||
// call the last hook... | ||
vm._isDestroyed = true | ||
vm._callHook('destroyed') | ||
this._isDestroyed = true | ||
this._callHook('destroyed') | ||
// turn off all instance listeners. | ||
vm.$off() | ||
this.$off() | ||
} | ||
@@ -137,0 +136,0 @@ |
var _ = require('./util') | ||
var config = require('./config') | ||
var Watcher = require('./watcher') | ||
var textParser = require('./parse/text') | ||
var expParser = require('./parse/expression') | ||
var textParser = require('./parsers/text') | ||
var expParser = require('./parsers/expression') | ||
@@ -88,3 +88,4 @@ /** | ||
this.filters, | ||
this.twoWay // need setter | ||
this.twoWay, // need setter, | ||
this.deep | ||
) | ||
@@ -158,2 +159,17 @@ } else { | ||
/** | ||
* Check for an attribute directive param, e.g. lazy | ||
* | ||
* @param {String} name | ||
* @return {String} | ||
*/ | ||
p._checkParam = function (name) { | ||
var param = this.el.getAttribute(name) | ||
if (param !== null) { | ||
this.el.removeAttribute(name) | ||
} | ||
return param | ||
} | ||
/** | ||
* Teardown the watcher and call unbind. | ||
@@ -198,3 +214,3 @@ */ | ||
_.nextTick(function () { | ||
self._locked = false | ||
self._locked = false | ||
}) | ||
@@ -201,0 +217,0 @@ } |
var _ = require('../util') | ||
var templateParser = require('../parse/template') | ||
var compile = require('../compiler/compile') | ||
var templateParser = require('../parsers/template') | ||
@@ -23,10 +24,26 @@ module.exports = { | ||
_.replace(this.el, this.ref) | ||
// check keep-alive options | ||
this.checkKeepAlive() | ||
// check parent directives | ||
this.parentLinker = this.el._parentLinker | ||
// check keep-alive options. | ||
// If yes, instead of destroying the active vm when | ||
// hiding (v-if) or switching (dynamic literal) it, | ||
// we simply remove it from the DOM and save it in a | ||
// cache object, with its constructor id as the key. | ||
this.keepAlive = this._checkParam('keep-alive') != null | ||
if (this.keepAlive) { | ||
this.cache = {} | ||
} | ||
// compile parent scope content | ||
this.parentLinkFn = compile( | ||
this.el, this.vm.$options, | ||
true, // partial | ||
true // asParent | ||
) | ||
// if static, build right now. | ||
if (!this._isDynamicLiteral) { | ||
this.resolveCtor(this.expression) | ||
this.build() | ||
this.childVM = this.build() | ||
this.childVM.$before(this.ref) | ||
} else { | ||
// check dynamic component params | ||
this.readyEvent = this._checkParam('wait-for') | ||
this.transMode = this._checkParam('transition-mode') | ||
} | ||
@@ -42,19 +59,2 @@ } else { | ||
/** | ||
* Check if the "keep-alive" flag is present. | ||
* If yes, instead of destroying the active vm when | ||
* hiding (v-if) or switching (dynamic literal) it, | ||
* we simply remove it from the DOM and save it in a | ||
* cache object, with its constructor id as the key. | ||
*/ | ||
checkKeepAlive: function () { | ||
// check keep-alive flag | ||
this.keepAlive = this.el.hasAttribute('keep-alive') | ||
if (this.keepAlive) { | ||
this.el.removeAttribute('keep-alive') | ||
this.cache = {} | ||
} | ||
}, | ||
/** | ||
* Resolve the component constructor to use when creating | ||
@@ -74,2 +74,4 @@ * the child vm. | ||
* instance; otherwise build a new one and cache it. | ||
* | ||
* @return {Vue} - the created instance | ||
*/ | ||
@@ -81,24 +83,20 @@ | ||
if (cached) { | ||
this.childVM = cached | ||
cached.$before(this.ref) | ||
return | ||
return cached | ||
} | ||
} | ||
var vm = this.vm | ||
if (this.Ctor && !this.childVM) { | ||
this.childVM = vm.$addChild({ | ||
el: templateParser.clone(this.el) | ||
var el = templateParser.clone(this.el) | ||
if (this.Ctor) { | ||
var parentUnlinkFn | ||
if (this.parentLinkFn) { | ||
parentUnlinkFn = this.parentLinkFn(vm, el) | ||
} | ||
var child = vm.$addChild({ | ||
el: el | ||
}, this.Ctor) | ||
if (this.parentLinker) { | ||
var dirCount = vm._directives.length | ||
var targetVM = this.childVM.$options.inherit | ||
? this.childVM | ||
: vm | ||
this.parentLinker(targetVM, this.childVM.$el) | ||
this.parentDirs = vm._directives.slice(dirCount) | ||
} | ||
child._parentUnlinkFn = parentUnlinkFn | ||
if (this.keepAlive) { | ||
this.cache[this.ctorId] = this.childVM | ||
this.cache[this.ctorId] = child | ||
} | ||
this.childVM.$before(this.ref) | ||
return child | ||
} | ||
@@ -108,31 +106,41 @@ }, | ||
/** | ||
* Teardown the active vm. | ||
* If keep alive, simply remove it; otherwise destroy it. | ||
* | ||
* @param {Boolean} remove | ||
* Teardown the current child, but defers cleanup so | ||
* that we can separate the destroy and removal steps. | ||
*/ | ||
unbuild: function (remove) { | ||
unbuild: function () { | ||
var child = this.childVM | ||
if (!child) { | ||
if (!child || this.keepAlive) { | ||
return | ||
} | ||
if (this.keepAlive) { | ||
if (remove) { | ||
child.$remove() | ||
} | ||
} else { | ||
child.$destroy(remove) | ||
var parentDirs = this.parentDirs | ||
if (parentDirs) { | ||
var i = parentDirs.length | ||
while (i--) { | ||
parentDirs[i]._teardown() | ||
} | ||
} | ||
if (child._parentUnlinkFn) { | ||
child._parentUnlinkFn() | ||
} | ||
this.childVM = null | ||
// the sole purpose of `deferCleanup` is so that we can | ||
// "deactivate" the vm right now and perform DOM removal | ||
// later. | ||
child.$destroy(false, true) | ||
}, | ||
/** | ||
* Remove current destroyed child and manually do | ||
* the cleanup after removal. | ||
* | ||
* @param {Function} cb | ||
*/ | ||
removeCurrent: function (cb) { | ||
var child = this.childVM | ||
var keepAlive = this.keepAlive | ||
if (child) { | ||
child.$remove(function () { | ||
if (!keepAlive) child._cleanup() | ||
if (cb) cb() | ||
}) | ||
} else if (cb) { | ||
cb() | ||
} | ||
}, | ||
/** | ||
* Update callback for the dynamic literal scenario, | ||
@@ -143,6 +151,19 @@ * e.g. v-component="{{view}}" | ||
update: function (value) { | ||
this.unbuild(true) | ||
if (value) { | ||
if (!value) { | ||
// just destroy and remove current | ||
this.unbuild() | ||
this.removeCurrent() | ||
this.childVM = null | ||
} else { | ||
this.resolveCtor(value) | ||
this.build() | ||
this.unbuild() | ||
var newComponent = this.build() | ||
var self = this | ||
if (this.readyEvent) { | ||
newComponent.$once(this.readyEvent, function () { | ||
self.swapTo(newComponent) | ||
}) | ||
} else { | ||
this.swapTo(newComponent) | ||
} | ||
} | ||
@@ -152,12 +173,49 @@ }, | ||
/** | ||
* Actually swap the components, depending on the | ||
* transition mode. Defaults to simultaneous. | ||
* | ||
* @param {Vue} target | ||
*/ | ||
swapTo: function (target) { | ||
var self = this | ||
switch (self.transMode) { | ||
case 'in-out': | ||
target.$before(self.ref, function () { | ||
self.removeCurrent() | ||
self.childVM = target | ||
}) | ||
break | ||
case 'out-in': | ||
self.removeCurrent(function () { | ||
target.$before(self.ref) | ||
self.childVM = target | ||
}) | ||
break | ||
default: | ||
self.removeCurrent() | ||
target.$before(self.ref) | ||
self.childVM = target | ||
} | ||
}, | ||
/** | ||
* Unbind. | ||
* Make sure keepAlive is set to false so that the | ||
* instance is always destroyed. | ||
*/ | ||
unbind: function () { | ||
this.keepAlive = false | ||
this.unbuild() | ||
// destroy all keep-alive cached instances | ||
if (this.cache) { | ||
for (var key in this.cache) { | ||
var child = this.cache[key] | ||
if (child._parentUnlinkFn) { | ||
child._parentUnlinkFn() | ||
} | ||
child.$destroy() | ||
} | ||
this.cache = null | ||
} | ||
} | ||
} |
var _ = require('../util') | ||
var templateParser = require('../parse/template') | ||
var templateParser = require('../parsers/template') | ||
@@ -4,0 +4,0 @@ module.exports = { |
var _ = require('../util') | ||
var compile = require('../compile/compile') | ||
var templateParser = require('../parse/template') | ||
var compile = require('../compiler/compile') | ||
var templateParser = require('../parsers/template') | ||
var transition = require('../transition') | ||
@@ -48,22 +48,41 @@ | ||
// called with different truthy values | ||
if (this.decompile) { | ||
return | ||
if (!this.unlink) { | ||
this.compile(this.template) | ||
} | ||
}, | ||
compile: function (template) { | ||
var vm = this.vm | ||
var frag = templateParser.clone(this.template) | ||
var decompile = this.linker(vm, frag) | ||
this.decompile = function () { | ||
decompile() | ||
transition.blockRemove(this.start, this.end, vm) | ||
var frag = templateParser.clone(template) | ||
var originalChildLength = vm._children | ||
? vm._children.length | ||
: 0 | ||
this.unlink = this.linker | ||
? this.linker(vm, frag) | ||
: vm.$compile(frag) | ||
transition.blockAppend(frag, this.end, vm) | ||
this.children = vm._children | ||
? vm._children.slice(originalChildLength) | ||
: null | ||
if (this.children && _.inDoc(vm.$el)) { | ||
this.children.forEach(function (child) { | ||
child._callHook('attached') | ||
}) | ||
} | ||
transition.blockAppend(frag, this.end, vm) | ||
}, | ||
teardown: function () { | ||
if (this.decompile) { | ||
this.decompile() | ||
this.decompile = null | ||
if (!this.unlink) return | ||
transition.blockRemove(this.start, this.end, this.vm) | ||
if (this.children && _.inDoc(this.vm.$el)) { | ||
this.children.forEach(function (child) { | ||
if (!child._isDestroyed) { | ||
child._callHook('detached') | ||
} | ||
}) | ||
} | ||
this.unlink() | ||
this.unlink = null | ||
} | ||
} |
@@ -11,13 +11,5 @@ var _ = require('../../util') | ||
// - lazy: update model on "change" instead of "input" | ||
var lazy = el.hasAttribute('lazy') | ||
if (lazy) { | ||
el.removeAttribute('lazy') | ||
} | ||
var lazy = this._checkParam('lazy') != null | ||
// - number: cast value into number when updating model. | ||
var number = | ||
el.hasAttribute('number') || | ||
el.type === 'number' | ||
if (number) { | ||
el.removeAttribute('number') | ||
} | ||
var number = this._checkParam('number') != null | ||
@@ -51,26 +43,40 @@ // handle composition events. | ||
// the input with the filtered value. | ||
this.listener = function textInputListener () { | ||
if (cpLocked) return | ||
var charsOffset | ||
// some HTML5 input types throw error here | ||
try { | ||
// record how many chars from the end of input | ||
// the cursor was at | ||
charsOffset = el.value.length - el.selectionStart | ||
} catch (e) {} | ||
set() | ||
// force a value update, because in | ||
// certain cases the write filters output the same | ||
// result for different input values, and the Observer | ||
// set events won't be triggered. | ||
_.nextTick(function () { | ||
var newVal = self._watcher.value | ||
self.update(newVal) | ||
if (charsOffset != null) { | ||
var cursorPos = | ||
_.toString(newVal).length - charsOffset | ||
el.setSelectionRange(cursorPos, cursorPos) | ||
// also force update for type="range" inputs to enable | ||
// "lock in range" (see #506) | ||
this.listener = this.filters || el.type === 'range' | ||
? function textInputListener () { | ||
if (cpLocked) return | ||
var charsOffset | ||
// some HTML5 input types throw error here | ||
try { | ||
// record how many chars from the end of input | ||
// the cursor was at | ||
charsOffset = el.value.length - el.selectionStart | ||
} catch (e) {} | ||
// Fix IE10/11 infinite update cycle | ||
// https://github.com/yyx990803/vue/issues/592 | ||
/* istanbul ignore if */ | ||
if (charsOffset < 0) { | ||
return | ||
} | ||
set() | ||
_.nextTick(function () { | ||
// force a value update, because in | ||
// certain cases the write filters output the | ||
// same result for different input values, and | ||
// the Observer set events won't be triggered. | ||
var newVal = self._watcher.value | ||
self.update(newVal) | ||
if (charsOffset != null) { | ||
var cursorPos = | ||
_.toString(newVal).length - charsOffset | ||
el.setSelectionRange(cursorPos, cursorPos) | ||
} | ||
}) | ||
} | ||
}) | ||
} | ||
: function textInputListener () { | ||
if (cpLocked) return | ||
set() | ||
} | ||
this.event = lazy ? 'change' : 'input' | ||
@@ -77,0 +83,0 @@ _.on(el, this.event, this.listener) |
@@ -10,5 +10,4 @@ var _ = require('../../util') | ||
// check options param | ||
var optionsParam = el.getAttribute('options') | ||
var optionsParam = this._checkParam('options') | ||
if (optionsParam) { | ||
el.removeAttribute('options') | ||
initOptions.call(this, optionsParam) | ||
@@ -15,0 +14,0 @@ } |
var _ = require('../util') | ||
var templateParser = require('../parse/template') | ||
var transition = require('../transition') | ||
var templateParser = require('../parsers/template') | ||
var vIf = require('./if') | ||
@@ -9,2 +9,6 @@ module.exports = { | ||
// same logic reuse from v-if | ||
compile: vIf.compile, | ||
teardown: vIf.teardown, | ||
bind: function () { | ||
@@ -24,3 +28,3 @@ var el = this.el | ||
if (!this._isDynamicLiteral) { | ||
this.compile(this.expression) | ||
this.insert(this.expression) | ||
} | ||
@@ -31,28 +35,13 @@ }, | ||
this.teardown() | ||
this.compile(id) | ||
this.insert(id) | ||
}, | ||
compile: function (id) { | ||
insert: function (id) { | ||
var partial = this.vm.$options.partials[id] | ||
_.assertAsset(partial, 'partial', id) | ||
if (!partial) { | ||
return | ||
if (partial) { | ||
this.compile(templateParser.parse(partial)) | ||
} | ||
var vm = this.vm | ||
var frag = templateParser.parse(partial, true) | ||
var decompile = vm.$compile(frag) | ||
this.decompile = function () { | ||
decompile() | ||
transition.blockRemove(this.start, this.end, vm) | ||
} | ||
transition.blockAppend(frag, this.end, vm) | ||
}, | ||
teardown: function () { | ||
if (this.decompile) { | ||
this.decompile() | ||
this.decompile = null | ||
} | ||
} | ||
} |
var _ = require('../util') | ||
var isObject = _.isObject | ||
var textParser = require('../parse/text') | ||
var expParser = require('../parse/expression') | ||
var templateParser = require('../parse/template') | ||
var compile = require('../compile/compile') | ||
var transclude = require('../compile/transclude') | ||
var textParser = require('../parsers/text') | ||
var expParser = require('../parsers/expression') | ||
var templateParser = require('../parsers/template') | ||
var compile = require('../compiler/compile') | ||
var transclude = require('../compiler/transclude') | ||
var mergeOptions = require('../util/merge-option') | ||
@@ -43,4 +43,7 @@ var uid = 0 | ||
this.checkRef() | ||
this.checkTrackById() | ||
this.checkComponent() | ||
// check for trackby param | ||
this.idKey = | ||
this._checkParam('track-by') || | ||
this._checkParam('trackby') // 0.11.0 compat | ||
// cache for primitive value instances | ||
@@ -79,15 +82,2 @@ this.cache = Object.create(null) | ||
/** | ||
* Check for a track-by ID, which allows us to identify | ||
* a piece of data and its associated instance by its | ||
* unique id. | ||
*/ | ||
checkTrackById: function () { | ||
this.idKey = this.el.getAttribute('trackby') | ||
if (this.idKey !== null) { | ||
this.el.removeAttribute('trackby') | ||
} | ||
}, | ||
/** | ||
* Check the component constructor to use for repeated | ||
@@ -94,0 +84,0 @@ * instances. If static we resolve it now, otherwise it |
@@ -6,15 +6,31 @@ var prefixes = ['-webkit-', '-moz-', '-ms-'] | ||
deep: true, | ||
bind: function () { | ||
var prop = this.arg | ||
if (!prop) return | ||
this.prop = prop | ||
}, | ||
update: function (value) { | ||
if (this.prop) { | ||
this.setCssProperty(this.prop, value) | ||
} else { | ||
if (typeof value === 'object') { | ||
for (var prop in value) { | ||
this.setCssProperty(prop, value[prop]) | ||
} | ||
} else { | ||
this.el.style.cssText = value | ||
} | ||
} | ||
}, | ||
setCssProperty: function (prop, value) { | ||
var prefixed = false | ||
if (prop.charAt(0) === '$') { | ||
// properties that start with $ will be auto-prefixed | ||
prop = prop.slice(1) | ||
this.prefixed = true | ||
prefixed = true | ||
} | ||
this.prop = prop | ||
}, | ||
update: function (value) { | ||
var prop = this.prop | ||
// cast possible numbers/booleans into strings | ||
@@ -24,22 +40,18 @@ if (value != null) { | ||
} | ||
if (prop) { | ||
var isImportant = importantRE.test(value) | ||
? 'important' | ||
: '' | ||
if (isImportant) { | ||
value = value.replace(importantRE, '').trim() | ||
var isImportant = importantRE.test(value) | ||
? 'important' | ||
: '' | ||
if (isImportant) { | ||
value = value.replace(importantRE, '').trim() | ||
} | ||
this.el.style.setProperty(prop, value, isImportant) | ||
if (prefixed) { | ||
var i = prefixes.length | ||
while (i--) { | ||
this.el.style.setProperty( | ||
prefixes[i] + prop, | ||
value, | ||
isImportant | ||
) | ||
} | ||
this.el.style.setProperty(prop, value, isImportant) | ||
if (this.prefixed) { | ||
var i = prefixes.length | ||
while (i--) { | ||
this.el.style.setProperty( | ||
prefixes[i] + prop, | ||
value, | ||
isImportant | ||
) | ||
} | ||
} | ||
} else { | ||
this.el.style.cssText = value | ||
} | ||
@@ -46,0 +58,0 @@ } |
var _ = require('../util') | ||
var Path = require('../parse/path') | ||
var Path = require('../parsers/path') | ||
@@ -25,3 +25,3 @@ /** | ||
} | ||
search = search.toLowerCase() | ||
search = ('' + search).toLowerCase() | ||
// get the optional dataKey | ||
@@ -28,0 +28,0 @@ dataKey = |
@@ -9,4 +9,15 @@ var _ = require('../util') | ||
exports.json = function (value, indent) { | ||
return JSON.stringify(value, null, Number(indent) || 2) | ||
exports.json = { | ||
read: function (value, indent) { | ||
return typeof value === 'string' | ||
? value | ||
: JSON.stringify(value, null, Number(indent) || 2) | ||
}, | ||
write: function (value) { | ||
try { | ||
return JSON.parse(value) | ||
} catch (e) { | ||
return value | ||
} | ||
} | ||
} | ||
@@ -118,2 +129,5 @@ | ||
// expose keycode hash | ||
exports.key.keyCodes = keyCodes | ||
/** | ||
@@ -120,0 +134,0 @@ * Install special array filters |
var _ = require('../util') | ||
var Directive = require('../directive') | ||
var compile = require('../compile/compile') | ||
var transclude = require('../compile/transclude') | ||
var compile = require('../compiler/compile') | ||
var transclude = require('../compiler/transclude') | ||
@@ -6,0 +6,0 @@ /** |
var _ = require('../util') | ||
var Observer = require('../observer') | ||
var Binding = require('../binding') | ||
var Dep = require('../observer/dep') | ||
@@ -200,3 +200,3 @@ /** | ||
exports._defineMeta = function (key, value) { | ||
var binding = new Binding() | ||
var dep = new Dep() | ||
Object.defineProperty(this, key, { | ||
@@ -207,3 +207,3 @@ enumerable: true, | ||
if (Observer.target) { | ||
Observer.target.addDep(binding) | ||
Observer.target.addDep(dep) | ||
} | ||
@@ -215,3 +215,3 @@ return value | ||
value = val | ||
binding.notify() | ||
dep.notify() | ||
} | ||
@@ -218,0 +218,0 @@ } |
var _ = require('../util') | ||
var config = require('../config') | ||
var Binding = require('../binding') | ||
var Dep = require('./dep') | ||
var arrayMethods = require('./array') | ||
@@ -61,3 +61,3 @@ var arrayKeys = Object.getOwnPropertyNames(arrayMethods) | ||
this.active = true | ||
this.bindings = [] | ||
this.deps = [] | ||
_.define(value, '__ob__', this) | ||
@@ -130,6 +130,6 @@ if (type === ARRAY) { | ||
* Try to carete an observer for a child value, | ||
* and if value is array, link binding to the array. | ||
* and if value is array, link dep to the array. | ||
* | ||
* @param {*} val | ||
* @return {Binding|undefined} | ||
* @return {Dep|undefined} | ||
*/ | ||
@@ -165,5 +165,5 @@ | ||
var childOb = ob.observe(val) | ||
var binding = new Binding() | ||
var dep = new Dep() | ||
if (childOb) { | ||
childOb.bindings.push(binding) | ||
childOb.deps.push(dep) | ||
} | ||
@@ -177,3 +177,3 @@ Object.defineProperty(ob.value, key, { | ||
if (ob.active && Observer.target) { | ||
Observer.target.addDep(binding) | ||
Observer.target.addDep(dep) | ||
} | ||
@@ -184,15 +184,15 @@ return val | ||
if (newVal === val) return | ||
// remove binding from old value | ||
// remove dep from old value | ||
var oldChildOb = val && val.__ob__ | ||
if (oldChildOb) { | ||
var oldBindings = oldChildOb.bindings | ||
oldBindings.splice(oldBindings.indexOf(binding), 1) | ||
var oldDeps = oldChildOb.deps | ||
oldDeps.splice(oldDeps.indexOf(dep), 1) | ||
} | ||
val = newVal | ||
// add binding to new value | ||
// add dep to new value | ||
var newChildOb = ob.observe(newVal) | ||
if (newChildOb) { | ||
newChildOb.bindings.push(binding) | ||
newChildOb.deps.push(dep) | ||
} | ||
binding.notify() | ||
dep.notify() | ||
} | ||
@@ -203,3 +203,3 @@ }) | ||
/** | ||
* Notify change on all self bindings on an observer. | ||
* Notify change on all self deps on an observer. | ||
* This is called when a mutable value mutates. e.g. | ||
@@ -211,5 +211,5 @@ * when an Array's mutating methods are called, or an | ||
p.notify = function () { | ||
var bindings = this.bindings | ||
for (var i = 0, l = bindings.length; i < l; i++) { | ||
bindings[i].notify() | ||
var deps = this.deps | ||
for (var i = 0, l = deps.length; i < l; i++) { | ||
deps[i].notify() | ||
} | ||
@@ -216,0 +216,0 @@ } |
@@ -72,3 +72,3 @@ /** | ||
return str.replace(RE, function (_, c) { | ||
return c ? c.toUpperCase () : ''; | ||
return c ? c.toUpperCase () : '' | ||
}) | ||
@@ -120,2 +120,3 @@ } | ||
} | ||
return to | ||
} | ||
@@ -122,0 +123,0 @@ |
@@ -19,2 +19,20 @@ var _ = require('./index') | ||
/** | ||
* Helper that recursively merges two data objects together. | ||
*/ | ||
function mergeData (to, from) { | ||
var key, toVal, fromVal | ||
for (key in from) { | ||
toVal = to[key] | ||
fromVal = from[key] | ||
if (!to.hasOwnProperty(key)) { | ||
to.$add(key, fromVal) | ||
} else if (_.isObject(toVal) && _.isObject(fromVal)) { | ||
mergeData(toVal, fromVal) | ||
} | ||
} | ||
return to | ||
} | ||
/** | ||
* Data | ||
@@ -24,6 +42,8 @@ */ | ||
strats.data = function (parentVal, childVal, vm) { | ||
// in a class merge, both should be functions | ||
// so we just return child if it exists | ||
if (!vm) { | ||
if (childVal && typeof childVal !== 'function') { | ||
// in a Vue.extend merge, both should be functions | ||
if (!childVal) { | ||
return parentVal | ||
} | ||
if (typeof childVal !== 'function') { | ||
_.warn( | ||
@@ -34,22 +54,31 @@ 'The "data" option should be a function ' + | ||
) | ||
return | ||
return parentVal | ||
} | ||
return childVal || parentVal | ||
} | ||
var instanceData = typeof childVal === 'function' | ||
? childVal.call(vm) | ||
: childVal | ||
var defaultData = typeof parentVal === 'function' | ||
? parentVal.call(vm) | ||
: undefined | ||
if (instanceData) { | ||
// mix default data into instance data | ||
for (var key in defaultData) { | ||
if (!instanceData.hasOwnProperty(key)) { | ||
instanceData.$add(key, defaultData[key]) | ||
} | ||
if (!parentVal) { | ||
return childVal | ||
} | ||
return instanceData | ||
// when parentVal & childVal are both present, | ||
// we need to return a function that returns the | ||
// merged result of both functions... no need to | ||
// check if parentVal is a function here because | ||
// it has to be a function to pass previous merges. | ||
return function mergedDataFn () { | ||
return mergeData( | ||
childVal.call(this), | ||
parentVal.call(this) | ||
) | ||
} | ||
} else { | ||
return defaultData | ||
// instance merge, return raw object | ||
var instanceData = typeof childVal === 'function' | ||
? childVal.call(vm) | ||
: childVal | ||
var defaultData = typeof parentVal === 'function' | ||
? parentVal.call(vm) | ||
: undefined | ||
if (instanceData) { | ||
return mergeData(instanceData, defaultData) | ||
} else { | ||
return defaultData | ||
} | ||
} | ||
@@ -56,0 +85,0 @@ } |
var _ = require('./util') | ||
var config = require('./config') | ||
var Observer = require('./observer') | ||
var expParser = require('./parse/expression') | ||
var expParser = require('./parsers/expression') | ||
var Batcher = require('./batcher') | ||
@@ -49,14 +49,14 @@ | ||
/** | ||
* Add a binding dependency to this directive. | ||
* Add a dependency to this directive. | ||
* | ||
* @param {Binding} binding | ||
* @param {Dep} dep | ||
*/ | ||
p.addDep = function (binding) { | ||
var id = binding.id | ||
p.addDep = function (dep) { | ||
var id = dep.id | ||
if (!this.newDeps[id]) { | ||
this.newDeps[id] = binding | ||
this.newDeps[id] = dep | ||
if (!this.deps[id]) { | ||
this.deps[id] = binding | ||
binding.addSub(this) | ||
this.deps[id] = dep | ||
dep.addSub(this) | ||
} | ||
@@ -76,7 +76,10 @@ } | ||
value = this.getter.call(vm, vm) | ||
} catch (e) {} | ||
// use JSON.stringify to "touch" every property | ||
// so they are all tracked as dependencies for | ||
// deep watching | ||
if (this.deep) JSON.stringify(value) | ||
} catch (e) { | ||
_.warn(e) | ||
} | ||
// "touch" every property so they are all tracked as | ||
// dependencies for deep watching | ||
if (this.deep) { | ||
traverse(value) | ||
} | ||
value = _.applyFilters(value, this.readFilters, vm) | ||
@@ -217,2 +220,24 @@ this.afterGet() | ||
/** | ||
* Recrusively traverse an object to evoke all converted | ||
* getters, so that every nested property inside the object | ||
* is collected as a "deep" dependency. | ||
* | ||
* @param {Object} obj | ||
*/ | ||
function traverse (obj) { | ||
var key, val, i | ||
for (key in obj) { | ||
val = obj[key] | ||
if (_.isArray(val)) { | ||
i = val.length | ||
while (i--) traverse(val[i]) | ||
} else if (_.isObject(val)) { | ||
traverse(val) | ||
} | ||
} | ||
} | ||
module.exports = Watcher |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
420926
13813